@ttt-productions/ttt-core 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/doc-schemas/audit.d.ts +2 -2
- package/dist/doc-schemas/commissions.d.ts +4 -4
- package/dist/doc-schemas/messaging.d.ts +112 -12
- package/dist/doc-schemas/messaging.d.ts.map +1 -1
- package/dist/doc-schemas/messaging.js +27 -2
- package/dist/doc-schemas/messaging.js.map +1 -1
- package/dist/doc-schemas/moderation.d.ts +50 -44
- package/dist/doc-schemas/moderation.d.ts.map +1 -1
- package/dist/doc-schemas/moderation.js +13 -6
- package/dist/doc-schemas/moderation.js.map +1 -1
- package/dist/doc-schemas/notifications.d.ts +154 -4
- package/dist/doc-schemas/notifications.d.ts.map +1 -1
- package/dist/doc-schemas/notifications.js +37 -0
- package/dist/doc-schemas/notifications.js.map +1 -1
- package/dist/doc-schemas/operational.d.ts +82 -0
- package/dist/doc-schemas/operational.d.ts.map +1 -1
- package/dist/doc-schemas/operational.js +30 -0
- package/dist/doc-schemas/operational.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +713 -82
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/registry.js +35 -36
- package/dist/doc-schemas/registry.js.map +1 -1
- package/dist/doc-schemas/report-docs.d.ts +91 -0
- package/dist/doc-schemas/report-docs.d.ts.map +1 -1
- package/dist/doc-schemas/report-docs.js +22 -0
- package/dist/doc-schemas/report-docs.js.map +1 -1
- package/dist/doc-schemas/social.d.ts +56 -0
- package/dist/doc-schemas/social.d.ts.map +1 -1
- package/dist/doc-schemas/social.js +24 -0
- package/dist/doc-schemas/social.js.map +1 -1
- package/dist/doc-schemas/system.d.ts +25 -0
- package/dist/doc-schemas/system.d.ts.map +1 -1
- package/dist/doc-schemas/system.js +13 -0
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/doc-schemas/work-project.d.ts +0 -61
- package/dist/doc-schemas/work-project.d.ts.map +1 -1
- package/dist/doc-schemas/work-project.js +0 -10
- package/dist/doc-schemas/work-project.js.map +1 -1
- package/dist/media/target-info.d.ts +12 -12
- package/dist/paths/collections.d.ts +1 -1
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +2 -1
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts +0 -1
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +0 -1
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/schemas/chat.d.ts +29 -29
- package/dist/types/work-project.d.ts +1 -1
- package/dist/types/work-project.d.ts.map +1 -1
- package/dist/types/work-project.js.map +1 -1
- package/package.json +1 -1
|
@@ -53,6 +53,7 @@ export declare const TTTAuditEventSchema: z.ZodObject<{
|
|
|
53
53
|
type: string;
|
|
54
54
|
id: string;
|
|
55
55
|
result: "success" | "failure";
|
|
56
|
+
metadata: Record<string, unknown>;
|
|
56
57
|
timestamp: number;
|
|
57
58
|
schemaVersion: number;
|
|
58
59
|
actor: {
|
|
@@ -72,13 +73,13 @@ export declare const TTTAuditEventSchema: z.ZodObject<{
|
|
|
72
73
|
ip: string | null;
|
|
73
74
|
userAgent: string | null;
|
|
74
75
|
region: string | null;
|
|
75
|
-
metadata: Record<string, unknown>;
|
|
76
76
|
failureReason: string | null;
|
|
77
77
|
correlationId: string | null;
|
|
78
78
|
}, {
|
|
79
79
|
type: string;
|
|
80
80
|
id: string;
|
|
81
81
|
result: "success" | "failure";
|
|
82
|
+
metadata: Record<string, unknown>;
|
|
82
83
|
timestamp: number;
|
|
83
84
|
schemaVersion: number;
|
|
84
85
|
actor: {
|
|
@@ -98,7 +99,6 @@ export declare const TTTAuditEventSchema: z.ZodObject<{
|
|
|
98
99
|
ip: string | null;
|
|
99
100
|
userAgent: string | null;
|
|
100
101
|
region: string | null;
|
|
101
|
-
metadata: Record<string, unknown>;
|
|
102
102
|
failureReason: string | null;
|
|
103
103
|
correlationId: string | null;
|
|
104
104
|
}>;
|
|
@@ -143,7 +143,7 @@ export declare const CommissionProposalSchema: z.ZodObject<{
|
|
|
143
143
|
acceptedOn: z.ZodOptional<z.ZodNumber>;
|
|
144
144
|
rejectedAt: z.ZodOptional<z.ZodNumber>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
status: "open" | "rejected" | "
|
|
146
|
+
status: "open" | "rejected" | "invited" | "accepted";
|
|
147
147
|
createdOn: number;
|
|
148
148
|
workProjectId: string;
|
|
149
149
|
createdBy: {
|
|
@@ -152,14 +152,14 @@ export declare const CommissionProposalSchema: z.ZodObject<{
|
|
|
152
152
|
commissionListingId: string;
|
|
153
153
|
commissionProposalId: string;
|
|
154
154
|
proposalText: string;
|
|
155
|
-
guildInviteId?: string | undefined;
|
|
156
155
|
proposalFileUrl?: string | undefined;
|
|
157
156
|
proposalFileType?: string | undefined;
|
|
157
|
+
guildInviteId?: string | undefined;
|
|
158
158
|
invitedOn?: number | undefined;
|
|
159
159
|
acceptedOn?: number | undefined;
|
|
160
160
|
rejectedAt?: number | undefined;
|
|
161
161
|
}, {
|
|
162
|
-
status: "open" | "rejected" | "
|
|
162
|
+
status: "open" | "rejected" | "invited" | "accepted";
|
|
163
163
|
createdOn: number;
|
|
164
164
|
workProjectId: string;
|
|
165
165
|
createdBy: {
|
|
@@ -168,9 +168,9 @@ export declare const CommissionProposalSchema: z.ZodObject<{
|
|
|
168
168
|
commissionListingId: string;
|
|
169
169
|
commissionProposalId: string;
|
|
170
170
|
proposalText: string;
|
|
171
|
-
guildInviteId?: string | undefined;
|
|
172
171
|
proposalFileUrl?: string | undefined;
|
|
173
172
|
proposalFileType?: string | undefined;
|
|
173
|
+
guildInviteId?: string | undefined;
|
|
174
174
|
invitedOn?: number | undefined;
|
|
175
175
|
acceptedOn?: number | undefined;
|
|
176
176
|
rejectedAt?: number | undefined;
|
|
@@ -44,7 +44,6 @@ export declare const GuildInviteConversationSchema: z.ZodObject<{
|
|
|
44
44
|
guildInviteId: z.ZodString;
|
|
45
45
|
workProjectId: z.ZodString;
|
|
46
46
|
relatedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
47
|
-
workProjectTitle: z.ZodString;
|
|
48
47
|
workProject: z.ZodObject<{
|
|
49
48
|
workProjectId: z.ZodString;
|
|
50
49
|
workingTitle: z.ZodString;
|
|
@@ -61,7 +60,7 @@ export declare const GuildInviteConversationSchema: z.ZodObject<{
|
|
|
61
60
|
workingTitle: string;
|
|
62
61
|
workingDescription: string;
|
|
63
62
|
}>;
|
|
64
|
-
|
|
63
|
+
createdBy: z.ZodObject<{
|
|
65
64
|
uid: z.ZodString;
|
|
66
65
|
}, "strip", z.ZodTypeAny, {
|
|
67
66
|
uid: string;
|
|
@@ -200,6 +199,7 @@ export declare const GuildInviteConversationSchema: z.ZodObject<{
|
|
|
200
199
|
status: z.ZodEnum<["pending", "accepted", "declined", "cancelled", "finalized", "error"]>;
|
|
201
200
|
createdAt: z.ZodNumber;
|
|
202
201
|
updatedAt: z.ZodNumber;
|
|
202
|
+
lastUpdatedAt: z.ZodNumber;
|
|
203
203
|
finalizedAt: z.ZodOptional<z.ZodNumber>;
|
|
204
204
|
senderConfirmed: z.ZodBoolean;
|
|
205
205
|
recipientConfirmed: z.ZodBoolean;
|
|
@@ -215,8 +215,12 @@ export declare const GuildInviteConversationSchema: z.ZodObject<{
|
|
|
215
215
|
workingTitle: string;
|
|
216
216
|
workingDescription: string;
|
|
217
217
|
};
|
|
218
|
-
|
|
218
|
+
createdBy: {
|
|
219
|
+
uid: string;
|
|
220
|
+
};
|
|
221
|
+
lastUpdatedAt: number;
|
|
219
222
|
stakeSharesOffered: number;
|
|
223
|
+
guildInviteId: string;
|
|
220
224
|
source: {
|
|
221
225
|
type: "standalone";
|
|
222
226
|
} | {
|
|
@@ -246,10 +250,6 @@ export declare const GuildInviteConversationSchema: z.ZodObject<{
|
|
|
246
250
|
};
|
|
247
251
|
};
|
|
248
252
|
relatedUserIds: string[];
|
|
249
|
-
workProjectTitle: string;
|
|
250
|
-
workSteward: {
|
|
251
|
-
uid: string;
|
|
252
|
-
};
|
|
253
253
|
sender: {
|
|
254
254
|
uid: string;
|
|
255
255
|
};
|
|
@@ -272,8 +272,12 @@ export declare const GuildInviteConversationSchema: z.ZodObject<{
|
|
|
272
272
|
workingTitle: string;
|
|
273
273
|
workingDescription: string;
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
createdBy: {
|
|
276
|
+
uid: string;
|
|
277
|
+
};
|
|
278
|
+
lastUpdatedAt: number;
|
|
276
279
|
stakeSharesOffered: number;
|
|
280
|
+
guildInviteId: string;
|
|
277
281
|
source: {
|
|
278
282
|
type: "standalone";
|
|
279
283
|
} | {
|
|
@@ -303,10 +307,6 @@ export declare const GuildInviteConversationSchema: z.ZodObject<{
|
|
|
303
307
|
};
|
|
304
308
|
};
|
|
305
309
|
relatedUserIds: string[];
|
|
306
|
-
workProjectTitle: string;
|
|
307
|
-
workSteward: {
|
|
308
|
-
uid: string;
|
|
309
|
-
};
|
|
310
310
|
sender: {
|
|
311
311
|
uid: string;
|
|
312
312
|
};
|
|
@@ -359,4 +359,104 @@ export declare const AdminDispatchSchema: z.ZodObject<{
|
|
|
359
359
|
closedBy?: string | undefined;
|
|
360
360
|
}>;
|
|
361
361
|
export type AdminDispatch = z.infer<typeof AdminDispatchSchema>;
|
|
362
|
+
export declare const ChatMessageV1Schema: z.ZodObject<{
|
|
363
|
+
senderId: z.ZodString;
|
|
364
|
+
text: z.ZodString;
|
|
365
|
+
createdAt: z.ZodNumber;
|
|
366
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
367
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
368
|
+
type: z.ZodOptional<z.ZodString>;
|
|
369
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
id: z.ZodString;
|
|
371
|
+
name: z.ZodString;
|
|
372
|
+
type: z.ZodEnum<["image", "video", "audio", "text"]>;
|
|
373
|
+
size: z.ZodNumber;
|
|
374
|
+
url: z.ZodOptional<z.ZodString>;
|
|
375
|
+
storagePath: z.ZodString;
|
|
376
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed"]>>;
|
|
377
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
378
|
+
}, "strict", z.ZodTypeAny, {
|
|
379
|
+
type: "image" | "video" | "audio" | "text";
|
|
380
|
+
id: string;
|
|
381
|
+
name: string;
|
|
382
|
+
size: number;
|
|
383
|
+
storagePath: string;
|
|
384
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
385
|
+
url?: string | undefined;
|
|
386
|
+
failureReason?: string | undefined;
|
|
387
|
+
}, {
|
|
388
|
+
type: "image" | "video" | "audio" | "text";
|
|
389
|
+
id: string;
|
|
390
|
+
name: string;
|
|
391
|
+
size: number;
|
|
392
|
+
storagePath: string;
|
|
393
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
394
|
+
url?: string | undefined;
|
|
395
|
+
failureReason?: string | undefined;
|
|
396
|
+
}>>;
|
|
397
|
+
replyTo: z.ZodOptional<z.ZodObject<{
|
|
398
|
+
messageId: z.ZodString;
|
|
399
|
+
senderId: z.ZodString;
|
|
400
|
+
messagePreview: z.ZodString;
|
|
401
|
+
}, "strict", z.ZodTypeAny, {
|
|
402
|
+
messageId: string;
|
|
403
|
+
senderId: string;
|
|
404
|
+
messagePreview: string;
|
|
405
|
+
}, {
|
|
406
|
+
messageId: string;
|
|
407
|
+
senderId: string;
|
|
408
|
+
messagePreview: string;
|
|
409
|
+
}>>;
|
|
410
|
+
isSystemMessage: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
createdAt: number;
|
|
414
|
+
text: string;
|
|
415
|
+
senderId: string;
|
|
416
|
+
type?: string | undefined;
|
|
417
|
+
messageId?: string | undefined;
|
|
418
|
+
threadId?: string | undefined;
|
|
419
|
+
attachment?: {
|
|
420
|
+
type: "image" | "video" | "audio" | "text";
|
|
421
|
+
id: string;
|
|
422
|
+
name: string;
|
|
423
|
+
size: number;
|
|
424
|
+
storagePath: string;
|
|
425
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
426
|
+
url?: string | undefined;
|
|
427
|
+
failureReason?: string | undefined;
|
|
428
|
+
} | undefined;
|
|
429
|
+
replyTo?: {
|
|
430
|
+
messageId: string;
|
|
431
|
+
senderId: string;
|
|
432
|
+
messagePreview: string;
|
|
433
|
+
} | undefined;
|
|
434
|
+
isSystemMessage?: boolean | undefined;
|
|
435
|
+
meta?: Record<string, unknown> | undefined;
|
|
436
|
+
}, {
|
|
437
|
+
createdAt: number;
|
|
438
|
+
text: string;
|
|
439
|
+
senderId: string;
|
|
440
|
+
type?: string | undefined;
|
|
441
|
+
messageId?: string | undefined;
|
|
442
|
+
threadId?: string | undefined;
|
|
443
|
+
attachment?: {
|
|
444
|
+
type: "image" | "video" | "audio" | "text";
|
|
445
|
+
id: string;
|
|
446
|
+
name: string;
|
|
447
|
+
size: number;
|
|
448
|
+
storagePath: string;
|
|
449
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
450
|
+
url?: string | undefined;
|
|
451
|
+
failureReason?: string | undefined;
|
|
452
|
+
} | undefined;
|
|
453
|
+
replyTo?: {
|
|
454
|
+
messageId: string;
|
|
455
|
+
senderId: string;
|
|
456
|
+
messagePreview: string;
|
|
457
|
+
} | undefined;
|
|
458
|
+
isSystemMessage?: boolean | undefined;
|
|
459
|
+
meta?: Record<string, unknown> | undefined;
|
|
460
|
+
}>;
|
|
461
|
+
export type ChatMessageV1Doc = z.infer<typeof ChatMessageV1Schema>;
|
|
362
462
|
//# sourceMappingURL=messaging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/messaging.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAA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t-productions/chat-core (ChatMessageV1); ttt-core owns the thread docs.
|
|
4
4
|
// Types inferred via z.infer.
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
+
import { ReplyToSchema, ChatAttachmentSchema } from '@ttt-productions/chat-schemas';
|
|
6
7
|
import { InviteSourceSchema } from '../schemas/work-project-management.js';
|
|
7
8
|
const userRefSchema = z.object({ uid: z.string() });
|
|
8
9
|
export const GuildChatChannelSchema = z.object({
|
|
@@ -21,18 +22,23 @@ export const GuildChatChannelSchema = z.object({
|
|
|
21
22
|
messageCount: z.number(),
|
|
22
23
|
isArchived: z.boolean(),
|
|
23
24
|
});
|
|
25
|
+
// The guildInviteConversations/{guildInviteId} doc as actually written by inviteUserToGuild
|
|
26
|
+
// (and mutated by the accept/decline/finalize/cancel callables). This is the single source of
|
|
27
|
+
// truth — the former duplicate `GuildInviteSchema` in ./work-project.ts was a stale, narrower
|
|
28
|
+
// shape that the callable bypassed with an `as unknown as` cast. The inviter is `createdBy`
|
|
29
|
+
// (== `sender`); there is no separate `workSteward`/`workProjectTitle` field (the title lives in
|
|
30
|
+
// `workProject.workingTitle`).
|
|
24
31
|
export const GuildInviteConversationSchema = z.object({
|
|
25
32
|
guildInviteId: z.string(),
|
|
26
33
|
workProjectId: z.string(),
|
|
27
34
|
relatedUserIds: z.array(z.string()),
|
|
28
|
-
workProjectTitle: z.string(),
|
|
29
35
|
workProject: z.object({
|
|
30
36
|
workProjectId: z.string(),
|
|
31
37
|
workingTitle: z.string(),
|
|
32
38
|
type: z.string(),
|
|
33
39
|
workingDescription: z.string(),
|
|
34
40
|
}),
|
|
35
|
-
|
|
41
|
+
createdBy: userRefSchema,
|
|
36
42
|
sender: userRefSchema,
|
|
37
43
|
recipient: userRefSchema,
|
|
38
44
|
stakeSharesOffered: z.number(),
|
|
@@ -40,6 +46,7 @@ export const GuildInviteConversationSchema = z.object({
|
|
|
40
46
|
status: z.enum(['pending', 'accepted', 'declined', 'cancelled', 'finalized', 'error']),
|
|
41
47
|
createdAt: z.number(),
|
|
42
48
|
updatedAt: z.number(),
|
|
49
|
+
lastUpdatedAt: z.number(),
|
|
43
50
|
finalizedAt: z.number().optional(),
|
|
44
51
|
senderConfirmed: z.boolean(),
|
|
45
52
|
recipientConfirmed: z.boolean(),
|
|
@@ -59,4 +66,22 @@ export const AdminDispatchSchema = z.object({
|
|
|
59
66
|
readByUser: z.boolean(),
|
|
60
67
|
closedBy: z.string().optional(),
|
|
61
68
|
});
|
|
69
|
+
// Per-message body stored in the three chat collections — guildChatMessages, conversationMessages,
|
|
70
|
+
// and inviteMessages. All three are written by ONE path (runSendGuildChatMessage: senderId/text/
|
|
71
|
+
// createdAt + optional replyTo/attachment); the admin-dispatch INITIAL message
|
|
72
|
+
// (runStartAdminSupportThread) additionally stores `messageId`. This is the STORED shape — a relaxed
|
|
73
|
+
// @ttt-productions/chat-core ChatMessageV1: `messageId` is the doc id (only sometimes persisted) and
|
|
74
|
+
// `threadId` is not stored. Reuses the chat-schemas Zod shapes for attachment + replyTo.
|
|
75
|
+
export const ChatMessageV1Schema = z.object({
|
|
76
|
+
senderId: z.string(),
|
|
77
|
+
text: z.string(),
|
|
78
|
+
createdAt: z.number(),
|
|
79
|
+
messageId: z.string().optional(),
|
|
80
|
+
threadId: z.string().optional(),
|
|
81
|
+
type: z.string().optional(),
|
|
82
|
+
attachment: ChatAttachmentSchema.optional(),
|
|
83
|
+
replyTo: ReplyToSchema.optional(),
|
|
84
|
+
isSystemMessage: z.boolean().optional(),
|
|
85
|
+
meta: z.record(z.string(), z.unknown()).optional(),
|
|
86
|
+
});
|
|
62
87
|
//# sourceMappingURL=messaging.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.js","sourceRoot":"","sources":["../../src/doc-schemas/messaging.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,sFAAsF;AACtF,qFAAqF;AACrF,8BAA8B;AAE9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,O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,EAAE;CACnD,CAAC,CAAC"}
|
|
@@ -4,9 +4,13 @@ export declare const ContentViolationSchema: z.ZodObject<{
|
|
|
4
4
|
userId: z.ZodString;
|
|
5
5
|
fileType: z.ZodString;
|
|
6
6
|
violationType: z.ZodOptional<z.ZodEnum<["text", "media"]>>;
|
|
7
|
-
originalFileName: z.ZodString;
|
|
8
7
|
reason: z.ZodString;
|
|
9
|
-
|
|
8
|
+
timestamp: z.ZodNumber;
|
|
9
|
+
appealStatus: z.ZodEnum<["none", "pending", "approved", "denied"]>;
|
|
10
|
+
flaggedWords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
originalText: z.ZodOptional<z.ZodString>;
|
|
12
|
+
originalFileName: z.ZodOptional<z.ZodString>;
|
|
13
|
+
scores: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
14
|
adult: z.ZodString;
|
|
11
15
|
violence: z.ZodString;
|
|
12
16
|
racy: z.ZodString;
|
|
@@ -18,18 +22,10 @@ export declare const ContentViolationSchema: z.ZodObject<{
|
|
|
18
22
|
adult: string;
|
|
19
23
|
violence: string;
|
|
20
24
|
racy: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
rejectedFilePath: z.ZodString;
|
|
25
|
+
}>>>;
|
|
26
|
+
rejectedFilePath: z.ZodOptional<z.ZodString>;
|
|
24
27
|
rejectedFileUrl: z.ZodOptional<z.ZodString>;
|
|
25
|
-
|
|
26
|
-
appealMessage: z.ZodOptional<z.ZodString>;
|
|
27
|
-
appealedAt: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
29
|
-
reviewedAt: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
reviewDecision: z.ZodOptional<z.ZodEnum<["approved", "denied"]>>;
|
|
31
|
-
reviewNotes: z.ZodOptional<z.ZodString>;
|
|
32
|
-
pendingFile: z.ZodObject<{
|
|
28
|
+
pendingFile: z.ZodOptional<z.ZodObject<{
|
|
33
29
|
status: z.ZodOptional<z.ZodLiteral<"pending">>;
|
|
34
30
|
id: z.ZodOptional<z.ZodString>;
|
|
35
31
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -92,22 +88,35 @@ export declare const ContentViolationSchema: z.ZodObject<{
|
|
|
92
88
|
} | undefined;
|
|
93
89
|
processingStartedAt?: number | undefined;
|
|
94
90
|
terminalAt?: number | undefined;
|
|
95
|
-
}
|
|
91
|
+
}>>;
|
|
92
|
+
appealMessage: z.ZodOptional<z.ZodString>;
|
|
93
|
+
appealedAt: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
95
|
+
reviewedAt: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
reviewDecision: z.ZodOptional<z.ZodEnum<["approved", "denied"]>>;
|
|
97
|
+
reviewNotes: z.ZodOptional<z.ZodString>;
|
|
96
98
|
}, "strip", z.ZodTypeAny, {
|
|
97
99
|
userId: string;
|
|
98
100
|
id: string;
|
|
99
|
-
|
|
101
|
+
fileType: string;
|
|
100
102
|
reason: string;
|
|
101
103
|
timestamp: number;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
appealStatus: "pending" | "approved" | "none" | "denied";
|
|
105
|
+
reviewedAt?: number | undefined;
|
|
106
|
+
reviewedBy?: string | undefined;
|
|
107
|
+
originalFileName?: string | undefined;
|
|
108
|
+
appealMessage?: string | undefined;
|
|
109
|
+
rejectedFilePath?: string | undefined;
|
|
110
|
+
violationType?: "text" | "media" | undefined;
|
|
111
|
+
flaggedWords?: string[] | undefined;
|
|
112
|
+
originalText?: string | undefined;
|
|
113
|
+
scores?: {
|
|
104
114
|
adult: string;
|
|
105
115
|
violence: string;
|
|
106
116
|
racy: string;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
pendingFile: {
|
|
117
|
+
} | null | undefined;
|
|
118
|
+
rejectedFileUrl?: string | undefined;
|
|
119
|
+
pendingFile?: {
|
|
111
120
|
status?: "pending" | undefined;
|
|
112
121
|
userId?: string | undefined;
|
|
113
122
|
id?: string | undefined;
|
|
@@ -126,30 +135,32 @@ export declare const ContentViolationSchema: z.ZodObject<{
|
|
|
126
135
|
} | undefined;
|
|
127
136
|
processingStartedAt?: number | undefined;
|
|
128
137
|
terminalAt?: number | undefined;
|
|
129
|
-
};
|
|
130
|
-
reviewedAt?: number | undefined;
|
|
131
|
-
reviewedBy?: string | undefined;
|
|
132
|
-
violationType?: "text" | "media" | undefined;
|
|
133
|
-
rejectedFileUrl?: string | undefined;
|
|
134
|
-
appealMessage?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
135
139
|
appealedAt?: number | undefined;
|
|
136
140
|
reviewDecision?: "approved" | "denied" | undefined;
|
|
137
141
|
reviewNotes?: string | undefined;
|
|
138
142
|
}, {
|
|
139
143
|
userId: string;
|
|
140
144
|
id: string;
|
|
141
|
-
|
|
145
|
+
fileType: string;
|
|
142
146
|
reason: string;
|
|
143
147
|
timestamp: number;
|
|
144
|
-
|
|
145
|
-
|
|
148
|
+
appealStatus: "pending" | "approved" | "none" | "denied";
|
|
149
|
+
reviewedAt?: number | undefined;
|
|
150
|
+
reviewedBy?: string | undefined;
|
|
151
|
+
originalFileName?: string | undefined;
|
|
152
|
+
appealMessage?: string | undefined;
|
|
153
|
+
rejectedFilePath?: string | undefined;
|
|
154
|
+
violationType?: "text" | "media" | undefined;
|
|
155
|
+
flaggedWords?: string[] | undefined;
|
|
156
|
+
originalText?: string | undefined;
|
|
157
|
+
scores?: {
|
|
146
158
|
adult: string;
|
|
147
159
|
violence: string;
|
|
148
160
|
racy: string;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
pendingFile: {
|
|
161
|
+
} | null | undefined;
|
|
162
|
+
rejectedFileUrl?: string | undefined;
|
|
163
|
+
pendingFile?: {
|
|
153
164
|
status?: "pending" | undefined;
|
|
154
165
|
userId?: string | undefined;
|
|
155
166
|
id?: string | undefined;
|
|
@@ -168,12 +179,7 @@ export declare const ContentViolationSchema: z.ZodObject<{
|
|
|
168
179
|
} | undefined;
|
|
169
180
|
processingStartedAt?: number | undefined;
|
|
170
181
|
terminalAt?: number | undefined;
|
|
171
|
-
};
|
|
172
|
-
reviewedAt?: number | undefined;
|
|
173
|
-
reviewedBy?: string | undefined;
|
|
174
|
-
violationType?: "text" | "media" | undefined;
|
|
175
|
-
rejectedFileUrl?: string | undefined;
|
|
176
|
-
appealMessage?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
177
183
|
appealedAt?: number | undefined;
|
|
178
184
|
reviewDecision?: "approved" | "denied" | undefined;
|
|
179
185
|
reviewNotes?: string | undefined;
|
|
@@ -233,9 +239,9 @@ export declare const ContentAppealTaskSchema: z.ZodObject<{
|
|
|
233
239
|
summary: string;
|
|
234
240
|
priority: number;
|
|
235
241
|
fileType: string;
|
|
236
|
-
rejectedFilePath: string;
|
|
237
|
-
appealMessage: string;
|
|
238
242
|
rejectionReason: string;
|
|
243
|
+
appealMessage: string;
|
|
244
|
+
rejectedFilePath: string;
|
|
239
245
|
completedAt?: number | undefined;
|
|
240
246
|
itemData?: unknown;
|
|
241
247
|
}, {
|
|
@@ -257,9 +263,9 @@ export declare const ContentAppealTaskSchema: z.ZodObject<{
|
|
|
257
263
|
summary: string;
|
|
258
264
|
priority: number;
|
|
259
265
|
fileType: string;
|
|
260
|
-
rejectedFilePath: string;
|
|
261
|
-
appealMessage: string;
|
|
262
266
|
rejectionReason: string;
|
|
267
|
+
appealMessage: string;
|
|
268
|
+
rejectedFilePath: string;
|
|
263
269
|
completedAt?: number | undefined;
|
|
264
270
|
itemData?: unknown;
|
|
265
271
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/moderation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB
|
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,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;EAQ5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -9,24 +9,31 @@ export const ContentViolationSchema = z.object({
|
|
|
9
9
|
userId: z.string(),
|
|
10
10
|
fileType: z.string(),
|
|
11
11
|
violationType: z.enum(['text', 'media']).optional(),
|
|
12
|
-
originalFileName: z.string(),
|
|
13
12
|
reason: z.string(),
|
|
13
|
+
timestamp: z.number(),
|
|
14
|
+
appealStatus: z.enum(['none', 'pending', 'approved', 'denied']),
|
|
15
|
+
// Text violations (moderateTextOrThrow / media-result-handler 'text_rejected') write these and
|
|
16
|
+
// omit the media-only fields below; media violations (logContentViolation) do the reverse.
|
|
17
|
+
flaggedWords: z.array(z.string()).optional(),
|
|
18
|
+
originalText: z.string().optional(),
|
|
19
|
+
// Media-only fields. Optional because text violations omit them, and `scores` is nullable
|
|
20
|
+
// because moderateTextOrThrow writes `scores: result.scores ?? null`.
|
|
21
|
+
originalFileName: z.string().optional(),
|
|
14
22
|
scores: z.object({
|
|
15
23
|
adult: z.string(),
|
|
16
24
|
violence: z.string(),
|
|
17
25
|
racy: z.string(),
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
rejectedFilePath: z.string(),
|
|
26
|
+
}).nullable().optional(),
|
|
27
|
+
rejectedFilePath: z.string().optional(),
|
|
21
28
|
rejectedFileUrl: z.string().optional(),
|
|
22
|
-
|
|
29
|
+
pendingFile: PendingMediaPendingSchema.partial().optional(),
|
|
30
|
+
// Appeal lifecycle (submitContentAppeal / reviewContentAppeal).
|
|
23
31
|
appealMessage: z.string().optional(),
|
|
24
32
|
appealedAt: z.number().optional(),
|
|
25
33
|
reviewedBy: z.string().optional(),
|
|
26
34
|
reviewedAt: z.number().optional(),
|
|
27
35
|
reviewDecision: z.enum(['approved', 'denied']).optional(),
|
|
28
36
|
reviewNotes: z.string().optional(),
|
|
29
|
-
pendingFile: PendingMediaPendingSchema.partial(),
|
|
30
37
|
});
|
|
31
38
|
// content-appeal admin task: the generic AdminTask specialized to 'content-appeal' plus
|
|
32
39
|
// the appeal-specific denormalized fields used by the admin review view.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../src/doc-schemas/moderation.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,+EAA+E;AAC/E,8BAA8B;AAE9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnD,
|
|
1
|
+
{"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../src/doc-schemas/moderation.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,+EAA+E;AAC/E,8BAA8B;AAE9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,a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