mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 17:03:09 +02:00
9208825975
動作確認済み Resolve #7735
44 lines
916 B
TypeScript
44 lines
916 B
TypeScript
import { DriveFile } from '@/models/entities/drive-file';
|
|
import { User } from '@/models/entities/user';
|
|
import { IActivity } from '@/remote/activitypub/type';
|
|
import * as httpSignature from 'http-signature';
|
|
|
|
export type DeliverJobData = {
|
|
/** Actor */
|
|
user: ThinUser;
|
|
/** Activity */
|
|
content: unknown;
|
|
/** inbox URL to deliver */
|
|
to: string;
|
|
};
|
|
|
|
export type InboxJobData = {
|
|
activity: IActivity;
|
|
signature: httpSignature.IParsedSignature;
|
|
};
|
|
|
|
export type DbJobData = DbUserJobData | DbUserImportJobData | DbUserDeleteJobData;
|
|
|
|
export type DbUserJobData = {
|
|
user: ThinUser;
|
|
};
|
|
|
|
export type DbUserDeleteJobData = {
|
|
user: ThinUser;
|
|
soft?: boolean;
|
|
};
|
|
|
|
export type DbUserImportJobData = {
|
|
user: ThinUser;
|
|
fileId: DriveFile['id'];
|
|
};
|
|
|
|
export type ObjectStorageJobData = ObjectStorageFileJobData | {};
|
|
|
|
export type ObjectStorageFileJobData = {
|
|
key: string;
|
|
};
|
|
|
|
export type ThinUser = {
|
|
id: User['id'];
|
|
};
|