@ttt-productions/media-schemas 0.4.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.
@@ -0,0 +1,2059 @@
1
+ import { z } from "zod";
2
+ export declare function createPendingMediaSchemas<TFileOriginSchema extends z.ZodTypeAny, TDomainEventSchema extends z.ZodTypeAny>(deps: {
3
+ fileOriginSchema: TFileOriginSchema;
4
+ domainEventSchema: TDomainEventSchema;
5
+ }): {
6
+ PendingMediaErrorCategorySchema: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
7
+ PendingMediaResultSchema: z.ZodObject<{
8
+ events: z.ZodArray<TDomainEventSchema, "many">;
9
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ collection: z.ZodString;
11
+ docId: z.ZodString;
12
+ operation: z.ZodEnum<["create", "update"]>;
13
+ }, "strict", z.ZodTypeAny, {
14
+ collection: string;
15
+ docId: string;
16
+ operation: "create" | "update";
17
+ }, {
18
+ collection: string;
19
+ docId: string;
20
+ operation: "create" | "update";
21
+ }>, "many">>;
22
+ }, "strict", z.ZodTypeAny, {
23
+ events: TDomainEventSchema["_output"][];
24
+ affected?: {
25
+ collection: string;
26
+ docId: string;
27
+ operation: "create" | "update";
28
+ }[] | undefined;
29
+ }, {
30
+ events: TDomainEventSchema["_input"][];
31
+ affected?: {
32
+ collection: string;
33
+ docId: string;
34
+ operation: "create" | "update";
35
+ }[] | undefined;
36
+ }>;
37
+ PendingMediaPendingSchema: z.ZodObject<{
38
+ status: z.ZodLiteral<"pending">;
39
+ id: z.ZodString;
40
+ userId: z.ZodString;
41
+ fileOrigin: TFileOriginSchema;
42
+ originalFileName: z.ZodString;
43
+ pendingStoragePath: z.ZodString;
44
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
45
+ textContent: z.ZodOptional<z.ZodString>;
46
+ clientContext: z.ZodObject<{
47
+ surface: z.ZodString;
48
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ }, "strict", z.ZodTypeAny, {
50
+ surface: string;
51
+ targetIds?: string[] | undefined;
52
+ }, {
53
+ surface: string;
54
+ targetIds?: string[] | undefined;
55
+ }>;
56
+ createdAt: z.ZodNumber;
57
+ updatedAt: z.ZodNumber;
58
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
59
+ terminalAt: z.ZodOptional<z.ZodNumber>;
60
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
61
+ status: z.ZodLiteral<"pending">;
62
+ id: z.ZodString;
63
+ userId: z.ZodString;
64
+ fileOrigin: TFileOriginSchema;
65
+ originalFileName: z.ZodString;
66
+ pendingStoragePath: z.ZodString;
67
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
68
+ textContent: z.ZodOptional<z.ZodString>;
69
+ clientContext: z.ZodObject<{
70
+ surface: z.ZodString;
71
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
+ }, "strict", z.ZodTypeAny, {
73
+ surface: string;
74
+ targetIds?: string[] | undefined;
75
+ }, {
76
+ surface: string;
77
+ targetIds?: string[] | undefined;
78
+ }>;
79
+ createdAt: z.ZodNumber;
80
+ updatedAt: z.ZodNumber;
81
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
82
+ terminalAt: z.ZodOptional<z.ZodNumber>;
83
+ }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
84
+ status: z.ZodLiteral<"pending">;
85
+ id: z.ZodString;
86
+ userId: z.ZodString;
87
+ fileOrigin: TFileOriginSchema;
88
+ originalFileName: z.ZodString;
89
+ pendingStoragePath: z.ZodString;
90
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
91
+ textContent: z.ZodOptional<z.ZodString>;
92
+ clientContext: z.ZodObject<{
93
+ surface: z.ZodString;
94
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
+ }, "strict", z.ZodTypeAny, {
96
+ surface: string;
97
+ targetIds?: string[] | undefined;
98
+ }, {
99
+ surface: string;
100
+ targetIds?: string[] | undefined;
101
+ }>;
102
+ createdAt: z.ZodNumber;
103
+ updatedAt: z.ZodNumber;
104
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
105
+ terminalAt: z.ZodOptional<z.ZodNumber>;
106
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>;
107
+ PendingMediaProcessingSchema: z.ZodObject<{
108
+ status: z.ZodLiteral<"processing">;
109
+ id: z.ZodString;
110
+ userId: z.ZodString;
111
+ fileOrigin: TFileOriginSchema;
112
+ originalFileName: z.ZodString;
113
+ pendingStoragePath: z.ZodString;
114
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
115
+ textContent: z.ZodOptional<z.ZodString>;
116
+ clientContext: z.ZodObject<{
117
+ surface: z.ZodString;
118
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ surface: string;
121
+ targetIds?: string[] | undefined;
122
+ }, {
123
+ surface: string;
124
+ targetIds?: string[] | undefined;
125
+ }>;
126
+ createdAt: z.ZodNumber;
127
+ updatedAt: z.ZodNumber;
128
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
129
+ terminalAt: z.ZodOptional<z.ZodNumber>;
130
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
131
+ status: z.ZodLiteral<"processing">;
132
+ id: z.ZodString;
133
+ userId: z.ZodString;
134
+ fileOrigin: TFileOriginSchema;
135
+ originalFileName: z.ZodString;
136
+ pendingStoragePath: z.ZodString;
137
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
138
+ textContent: z.ZodOptional<z.ZodString>;
139
+ clientContext: z.ZodObject<{
140
+ surface: z.ZodString;
141
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ surface: string;
144
+ targetIds?: string[] | undefined;
145
+ }, {
146
+ surface: string;
147
+ targetIds?: string[] | undefined;
148
+ }>;
149
+ createdAt: z.ZodNumber;
150
+ updatedAt: z.ZodNumber;
151
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
152
+ terminalAt: z.ZodOptional<z.ZodNumber>;
153
+ }>, any> extends infer T_2 ? { [k_2 in keyof T_2]: T_2[k_2]; } : never, z.baseObjectInputType<{
154
+ status: z.ZodLiteral<"processing">;
155
+ id: z.ZodString;
156
+ userId: z.ZodString;
157
+ fileOrigin: TFileOriginSchema;
158
+ originalFileName: z.ZodString;
159
+ pendingStoragePath: z.ZodString;
160
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
161
+ textContent: z.ZodOptional<z.ZodString>;
162
+ clientContext: z.ZodObject<{
163
+ surface: z.ZodString;
164
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165
+ }, "strict", z.ZodTypeAny, {
166
+ surface: string;
167
+ targetIds?: string[] | undefined;
168
+ }, {
169
+ surface: string;
170
+ targetIds?: string[] | undefined;
171
+ }>;
172
+ createdAt: z.ZodNumber;
173
+ updatedAt: z.ZodNumber;
174
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
175
+ terminalAt: z.ZodOptional<z.ZodNumber>;
176
+ }> extends infer T_3 ? { [k_3 in keyof T_3]: T_3[k_3]; } : never>;
177
+ PendingMediaCompletedSchema: z.ZodObject<{
178
+ status: z.ZodLiteral<"completed">;
179
+ completedAt: z.ZodNumber;
180
+ terminalAt: z.ZodNumber;
181
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
182
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
183
+ result: z.ZodObject<{
184
+ events: z.ZodArray<TDomainEventSchema, "many">;
185
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
186
+ collection: z.ZodString;
187
+ docId: z.ZodString;
188
+ operation: z.ZodEnum<["create", "update"]>;
189
+ }, "strict", z.ZodTypeAny, {
190
+ collection: string;
191
+ docId: string;
192
+ operation: "create" | "update";
193
+ }, {
194
+ collection: string;
195
+ docId: string;
196
+ operation: "create" | "update";
197
+ }>, "many">>;
198
+ }, "strict", z.ZodTypeAny, {
199
+ events: TDomainEventSchema["_output"][];
200
+ affected?: {
201
+ collection: string;
202
+ docId: string;
203
+ operation: "create" | "update";
204
+ }[] | undefined;
205
+ }, {
206
+ events: TDomainEventSchema["_input"][];
207
+ affected?: {
208
+ collection: string;
209
+ docId: string;
210
+ operation: "create" | "update";
211
+ }[] | undefined;
212
+ }>;
213
+ id: z.ZodString;
214
+ userId: z.ZodString;
215
+ fileOrigin: TFileOriginSchema;
216
+ originalFileName: z.ZodString;
217
+ pendingStoragePath: z.ZodString;
218
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
219
+ textContent: z.ZodOptional<z.ZodString>;
220
+ clientContext: z.ZodObject<{
221
+ surface: z.ZodString;
222
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ }, "strict", z.ZodTypeAny, {
224
+ surface: string;
225
+ targetIds?: string[] | undefined;
226
+ }, {
227
+ surface: string;
228
+ targetIds?: string[] | undefined;
229
+ }>;
230
+ createdAt: z.ZodNumber;
231
+ updatedAt: z.ZodNumber;
232
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
233
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
234
+ status: z.ZodLiteral<"completed">;
235
+ completedAt: z.ZodNumber;
236
+ terminalAt: z.ZodNumber;
237
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
238
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
239
+ result: z.ZodObject<{
240
+ events: z.ZodArray<TDomainEventSchema, "many">;
241
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
242
+ collection: z.ZodString;
243
+ docId: z.ZodString;
244
+ operation: z.ZodEnum<["create", "update"]>;
245
+ }, "strict", z.ZodTypeAny, {
246
+ collection: string;
247
+ docId: string;
248
+ operation: "create" | "update";
249
+ }, {
250
+ collection: string;
251
+ docId: string;
252
+ operation: "create" | "update";
253
+ }>, "many">>;
254
+ }, "strict", z.ZodTypeAny, {
255
+ events: TDomainEventSchema["_output"][];
256
+ affected?: {
257
+ collection: string;
258
+ docId: string;
259
+ operation: "create" | "update";
260
+ }[] | undefined;
261
+ }, {
262
+ events: TDomainEventSchema["_input"][];
263
+ affected?: {
264
+ collection: string;
265
+ docId: string;
266
+ operation: "create" | "update";
267
+ }[] | undefined;
268
+ }>;
269
+ id: z.ZodString;
270
+ userId: z.ZodString;
271
+ fileOrigin: TFileOriginSchema;
272
+ originalFileName: z.ZodString;
273
+ pendingStoragePath: z.ZodString;
274
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
275
+ textContent: z.ZodOptional<z.ZodString>;
276
+ clientContext: z.ZodObject<{
277
+ surface: z.ZodString;
278
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
279
+ }, "strict", z.ZodTypeAny, {
280
+ surface: string;
281
+ targetIds?: string[] | undefined;
282
+ }, {
283
+ surface: string;
284
+ targetIds?: string[] | undefined;
285
+ }>;
286
+ createdAt: z.ZodNumber;
287
+ updatedAt: z.ZodNumber;
288
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
289
+ }>, any> extends infer T_4 ? { [k_4 in keyof T_4]: T_4[k_4]; } : never, z.baseObjectInputType<{
290
+ status: z.ZodLiteral<"completed">;
291
+ completedAt: z.ZodNumber;
292
+ terminalAt: z.ZodNumber;
293
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
294
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
295
+ result: z.ZodObject<{
296
+ events: z.ZodArray<TDomainEventSchema, "many">;
297
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
298
+ collection: z.ZodString;
299
+ docId: z.ZodString;
300
+ operation: z.ZodEnum<["create", "update"]>;
301
+ }, "strict", z.ZodTypeAny, {
302
+ collection: string;
303
+ docId: string;
304
+ operation: "create" | "update";
305
+ }, {
306
+ collection: string;
307
+ docId: string;
308
+ operation: "create" | "update";
309
+ }>, "many">>;
310
+ }, "strict", z.ZodTypeAny, {
311
+ events: TDomainEventSchema["_output"][];
312
+ affected?: {
313
+ collection: string;
314
+ docId: string;
315
+ operation: "create" | "update";
316
+ }[] | undefined;
317
+ }, {
318
+ events: TDomainEventSchema["_input"][];
319
+ affected?: {
320
+ collection: string;
321
+ docId: string;
322
+ operation: "create" | "update";
323
+ }[] | undefined;
324
+ }>;
325
+ id: z.ZodString;
326
+ userId: z.ZodString;
327
+ fileOrigin: TFileOriginSchema;
328
+ originalFileName: z.ZodString;
329
+ pendingStoragePath: z.ZodString;
330
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
331
+ textContent: z.ZodOptional<z.ZodString>;
332
+ clientContext: z.ZodObject<{
333
+ surface: z.ZodString;
334
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ }, "strict", z.ZodTypeAny, {
336
+ surface: string;
337
+ targetIds?: string[] | undefined;
338
+ }, {
339
+ surface: string;
340
+ targetIds?: string[] | undefined;
341
+ }>;
342
+ createdAt: z.ZodNumber;
343
+ updatedAt: z.ZodNumber;
344
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
345
+ }> extends infer T_5 ? { [k_5 in keyof T_5]: T_5[k_5]; } : never>;
346
+ PendingMediaFailedSchema: z.ZodObject<{
347
+ status: z.ZodLiteral<"failed">;
348
+ failedAt: z.ZodNumber;
349
+ terminalAt: z.ZodNumber;
350
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
351
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
352
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
353
+ errorMessage: z.ZodString;
354
+ id: z.ZodString;
355
+ userId: z.ZodString;
356
+ fileOrigin: TFileOriginSchema;
357
+ originalFileName: z.ZodString;
358
+ pendingStoragePath: z.ZodString;
359
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
360
+ textContent: z.ZodOptional<z.ZodString>;
361
+ clientContext: z.ZodObject<{
362
+ surface: z.ZodString;
363
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
364
+ }, "strict", z.ZodTypeAny, {
365
+ surface: string;
366
+ targetIds?: string[] | undefined;
367
+ }, {
368
+ surface: string;
369
+ targetIds?: string[] | undefined;
370
+ }>;
371
+ createdAt: z.ZodNumber;
372
+ updatedAt: z.ZodNumber;
373
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
374
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
375
+ status: z.ZodLiteral<"failed">;
376
+ failedAt: z.ZodNumber;
377
+ terminalAt: z.ZodNumber;
378
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
379
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
380
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
381
+ errorMessage: z.ZodString;
382
+ id: z.ZodString;
383
+ userId: z.ZodString;
384
+ fileOrigin: TFileOriginSchema;
385
+ originalFileName: z.ZodString;
386
+ pendingStoragePath: z.ZodString;
387
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
388
+ textContent: z.ZodOptional<z.ZodString>;
389
+ clientContext: z.ZodObject<{
390
+ surface: z.ZodString;
391
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
392
+ }, "strict", z.ZodTypeAny, {
393
+ surface: string;
394
+ targetIds?: string[] | undefined;
395
+ }, {
396
+ surface: string;
397
+ targetIds?: string[] | undefined;
398
+ }>;
399
+ createdAt: z.ZodNumber;
400
+ updatedAt: z.ZodNumber;
401
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
402
+ }>, any> extends infer T_6 ? { [k_6 in keyof T_6]: T_6[k_6]; } : never, z.baseObjectInputType<{
403
+ status: z.ZodLiteral<"failed">;
404
+ failedAt: z.ZodNumber;
405
+ terminalAt: z.ZodNumber;
406
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
407
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
408
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
409
+ errorMessage: z.ZodString;
410
+ id: z.ZodString;
411
+ userId: z.ZodString;
412
+ fileOrigin: TFileOriginSchema;
413
+ originalFileName: z.ZodString;
414
+ pendingStoragePath: z.ZodString;
415
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
416
+ textContent: z.ZodOptional<z.ZodString>;
417
+ clientContext: z.ZodObject<{
418
+ surface: z.ZodString;
419
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
420
+ }, "strict", z.ZodTypeAny, {
421
+ surface: string;
422
+ targetIds?: string[] | undefined;
423
+ }, {
424
+ surface: string;
425
+ targetIds?: string[] | undefined;
426
+ }>;
427
+ createdAt: z.ZodNumber;
428
+ updatedAt: z.ZodNumber;
429
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
430
+ }> extends infer T_7 ? { [k_7 in keyof T_7]: T_7[k_7]; } : never>;
431
+ PendingMediaRejectedSchema: z.ZodObject<{
432
+ status: z.ZodLiteral<"rejected">;
433
+ rejectedAt: z.ZodNumber;
434
+ terminalAt: z.ZodNumber;
435
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
436
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
437
+ rejectionType: z.ZodEnum<["text", "media"]>;
438
+ errorMessage: z.ZodString;
439
+ violationId: z.ZodOptional<z.ZodString>;
440
+ result: z.ZodOptional<z.ZodObject<{
441
+ events: z.ZodArray<TDomainEventSchema, "many">;
442
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ collection: z.ZodString;
444
+ docId: z.ZodString;
445
+ operation: z.ZodEnum<["create", "update"]>;
446
+ }, "strict", z.ZodTypeAny, {
447
+ collection: string;
448
+ docId: string;
449
+ operation: "create" | "update";
450
+ }, {
451
+ collection: string;
452
+ docId: string;
453
+ operation: "create" | "update";
454
+ }>, "many">>;
455
+ }, "strict", z.ZodTypeAny, {
456
+ events: TDomainEventSchema["_output"][];
457
+ affected?: {
458
+ collection: string;
459
+ docId: string;
460
+ operation: "create" | "update";
461
+ }[] | undefined;
462
+ }, {
463
+ events: TDomainEventSchema["_input"][];
464
+ affected?: {
465
+ collection: string;
466
+ docId: string;
467
+ operation: "create" | "update";
468
+ }[] | undefined;
469
+ }>>;
470
+ id: z.ZodString;
471
+ userId: z.ZodString;
472
+ fileOrigin: TFileOriginSchema;
473
+ originalFileName: z.ZodString;
474
+ pendingStoragePath: z.ZodString;
475
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
476
+ textContent: z.ZodOptional<z.ZodString>;
477
+ clientContext: z.ZodObject<{
478
+ surface: z.ZodString;
479
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
480
+ }, "strict", z.ZodTypeAny, {
481
+ surface: string;
482
+ targetIds?: string[] | undefined;
483
+ }, {
484
+ surface: string;
485
+ targetIds?: string[] | undefined;
486
+ }>;
487
+ createdAt: z.ZodNumber;
488
+ updatedAt: z.ZodNumber;
489
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
490
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
491
+ status: z.ZodLiteral<"rejected">;
492
+ rejectedAt: z.ZodNumber;
493
+ terminalAt: z.ZodNumber;
494
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
495
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
496
+ rejectionType: z.ZodEnum<["text", "media"]>;
497
+ errorMessage: z.ZodString;
498
+ violationId: z.ZodOptional<z.ZodString>;
499
+ result: z.ZodOptional<z.ZodObject<{
500
+ events: z.ZodArray<TDomainEventSchema, "many">;
501
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
+ collection: z.ZodString;
503
+ docId: z.ZodString;
504
+ operation: z.ZodEnum<["create", "update"]>;
505
+ }, "strict", z.ZodTypeAny, {
506
+ collection: string;
507
+ docId: string;
508
+ operation: "create" | "update";
509
+ }, {
510
+ collection: string;
511
+ docId: string;
512
+ operation: "create" | "update";
513
+ }>, "many">>;
514
+ }, "strict", z.ZodTypeAny, {
515
+ events: TDomainEventSchema["_output"][];
516
+ affected?: {
517
+ collection: string;
518
+ docId: string;
519
+ operation: "create" | "update";
520
+ }[] | undefined;
521
+ }, {
522
+ events: TDomainEventSchema["_input"][];
523
+ affected?: {
524
+ collection: string;
525
+ docId: string;
526
+ operation: "create" | "update";
527
+ }[] | undefined;
528
+ }>>;
529
+ id: z.ZodString;
530
+ userId: z.ZodString;
531
+ fileOrigin: TFileOriginSchema;
532
+ originalFileName: z.ZodString;
533
+ pendingStoragePath: z.ZodString;
534
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
535
+ textContent: z.ZodOptional<z.ZodString>;
536
+ clientContext: z.ZodObject<{
537
+ surface: z.ZodString;
538
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
539
+ }, "strict", z.ZodTypeAny, {
540
+ surface: string;
541
+ targetIds?: string[] | undefined;
542
+ }, {
543
+ surface: string;
544
+ targetIds?: string[] | undefined;
545
+ }>;
546
+ createdAt: z.ZodNumber;
547
+ updatedAt: z.ZodNumber;
548
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
549
+ }>, any> extends infer T_8 ? { [k_8 in keyof T_8]: T_8[k_8]; } : never, z.baseObjectInputType<{
550
+ status: z.ZodLiteral<"rejected">;
551
+ rejectedAt: z.ZodNumber;
552
+ terminalAt: z.ZodNumber;
553
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
554
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
555
+ rejectionType: z.ZodEnum<["text", "media"]>;
556
+ errorMessage: z.ZodString;
557
+ violationId: z.ZodOptional<z.ZodString>;
558
+ result: z.ZodOptional<z.ZodObject<{
559
+ events: z.ZodArray<TDomainEventSchema, "many">;
560
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
561
+ collection: z.ZodString;
562
+ docId: z.ZodString;
563
+ operation: z.ZodEnum<["create", "update"]>;
564
+ }, "strict", z.ZodTypeAny, {
565
+ collection: string;
566
+ docId: string;
567
+ operation: "create" | "update";
568
+ }, {
569
+ collection: string;
570
+ docId: string;
571
+ operation: "create" | "update";
572
+ }>, "many">>;
573
+ }, "strict", z.ZodTypeAny, {
574
+ events: TDomainEventSchema["_output"][];
575
+ affected?: {
576
+ collection: string;
577
+ docId: string;
578
+ operation: "create" | "update";
579
+ }[] | undefined;
580
+ }, {
581
+ events: TDomainEventSchema["_input"][];
582
+ affected?: {
583
+ collection: string;
584
+ docId: string;
585
+ operation: "create" | "update";
586
+ }[] | undefined;
587
+ }>>;
588
+ id: z.ZodString;
589
+ userId: z.ZodString;
590
+ fileOrigin: TFileOriginSchema;
591
+ originalFileName: z.ZodString;
592
+ pendingStoragePath: z.ZodString;
593
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
594
+ textContent: z.ZodOptional<z.ZodString>;
595
+ clientContext: z.ZodObject<{
596
+ surface: z.ZodString;
597
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
598
+ }, "strict", z.ZodTypeAny, {
599
+ surface: string;
600
+ targetIds?: string[] | undefined;
601
+ }, {
602
+ surface: string;
603
+ targetIds?: string[] | undefined;
604
+ }>;
605
+ createdAt: z.ZodNumber;
606
+ updatedAt: z.ZodNumber;
607
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
608
+ }> extends infer T_9 ? { [k_9 in keyof T_9]: T_9[k_9]; } : never>;
609
+ PendingMediaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
610
+ status: z.ZodLiteral<"pending">;
611
+ id: z.ZodString;
612
+ userId: z.ZodString;
613
+ fileOrigin: TFileOriginSchema;
614
+ originalFileName: z.ZodString;
615
+ pendingStoragePath: z.ZodString;
616
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
617
+ textContent: z.ZodOptional<z.ZodString>;
618
+ clientContext: z.ZodObject<{
619
+ surface: z.ZodString;
620
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
621
+ }, "strict", z.ZodTypeAny, {
622
+ surface: string;
623
+ targetIds?: string[] | undefined;
624
+ }, {
625
+ surface: string;
626
+ targetIds?: string[] | undefined;
627
+ }>;
628
+ createdAt: z.ZodNumber;
629
+ updatedAt: z.ZodNumber;
630
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
631
+ terminalAt: z.ZodOptional<z.ZodNumber>;
632
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
633
+ status: z.ZodLiteral<"pending">;
634
+ id: z.ZodString;
635
+ userId: z.ZodString;
636
+ fileOrigin: TFileOriginSchema;
637
+ originalFileName: z.ZodString;
638
+ pendingStoragePath: z.ZodString;
639
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
640
+ textContent: z.ZodOptional<z.ZodString>;
641
+ clientContext: z.ZodObject<{
642
+ surface: z.ZodString;
643
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
644
+ }, "strict", z.ZodTypeAny, {
645
+ surface: string;
646
+ targetIds?: string[] | undefined;
647
+ }, {
648
+ surface: string;
649
+ targetIds?: string[] | undefined;
650
+ }>;
651
+ createdAt: z.ZodNumber;
652
+ updatedAt: z.ZodNumber;
653
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
654
+ terminalAt: z.ZodOptional<z.ZodNumber>;
655
+ }>, any> extends infer T_10 ? { [k in keyof T_10]: T_10[k]; } : never, z.baseObjectInputType<{
656
+ status: z.ZodLiteral<"pending">;
657
+ id: z.ZodString;
658
+ userId: z.ZodString;
659
+ fileOrigin: TFileOriginSchema;
660
+ originalFileName: z.ZodString;
661
+ pendingStoragePath: z.ZodString;
662
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
663
+ textContent: z.ZodOptional<z.ZodString>;
664
+ clientContext: z.ZodObject<{
665
+ surface: z.ZodString;
666
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
667
+ }, "strict", z.ZodTypeAny, {
668
+ surface: string;
669
+ targetIds?: string[] | undefined;
670
+ }, {
671
+ surface: string;
672
+ targetIds?: string[] | undefined;
673
+ }>;
674
+ createdAt: z.ZodNumber;
675
+ updatedAt: z.ZodNumber;
676
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
677
+ terminalAt: z.ZodOptional<z.ZodNumber>;
678
+ }> extends infer T_11 ? { [k_1 in keyof T_11]: T_11[k_1]; } : never>, z.ZodObject<{
679
+ status: z.ZodLiteral<"processing">;
680
+ id: z.ZodString;
681
+ userId: z.ZodString;
682
+ fileOrigin: TFileOriginSchema;
683
+ originalFileName: z.ZodString;
684
+ pendingStoragePath: z.ZodString;
685
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
686
+ textContent: z.ZodOptional<z.ZodString>;
687
+ clientContext: z.ZodObject<{
688
+ surface: z.ZodString;
689
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
690
+ }, "strict", z.ZodTypeAny, {
691
+ surface: string;
692
+ targetIds?: string[] | undefined;
693
+ }, {
694
+ surface: string;
695
+ targetIds?: string[] | undefined;
696
+ }>;
697
+ createdAt: z.ZodNumber;
698
+ updatedAt: z.ZodNumber;
699
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
700
+ terminalAt: z.ZodOptional<z.ZodNumber>;
701
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
702
+ status: z.ZodLiteral<"processing">;
703
+ id: z.ZodString;
704
+ userId: z.ZodString;
705
+ fileOrigin: TFileOriginSchema;
706
+ originalFileName: z.ZodString;
707
+ pendingStoragePath: z.ZodString;
708
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
709
+ textContent: z.ZodOptional<z.ZodString>;
710
+ clientContext: z.ZodObject<{
711
+ surface: z.ZodString;
712
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
713
+ }, "strict", z.ZodTypeAny, {
714
+ surface: string;
715
+ targetIds?: string[] | undefined;
716
+ }, {
717
+ surface: string;
718
+ targetIds?: string[] | undefined;
719
+ }>;
720
+ createdAt: z.ZodNumber;
721
+ updatedAt: z.ZodNumber;
722
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
723
+ terminalAt: z.ZodOptional<z.ZodNumber>;
724
+ }>, any> extends infer T_12 ? { [k_2 in keyof T_12]: T_12[k_2]; } : never, z.baseObjectInputType<{
725
+ status: z.ZodLiteral<"processing">;
726
+ id: z.ZodString;
727
+ userId: z.ZodString;
728
+ fileOrigin: TFileOriginSchema;
729
+ originalFileName: z.ZodString;
730
+ pendingStoragePath: z.ZodString;
731
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
732
+ textContent: z.ZodOptional<z.ZodString>;
733
+ clientContext: z.ZodObject<{
734
+ surface: z.ZodString;
735
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
736
+ }, "strict", z.ZodTypeAny, {
737
+ surface: string;
738
+ targetIds?: string[] | undefined;
739
+ }, {
740
+ surface: string;
741
+ targetIds?: string[] | undefined;
742
+ }>;
743
+ createdAt: z.ZodNumber;
744
+ updatedAt: z.ZodNumber;
745
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
746
+ terminalAt: z.ZodOptional<z.ZodNumber>;
747
+ }> extends infer T_13 ? { [k_3 in keyof T_13]: T_13[k_3]; } : never>, z.ZodObject<{
748
+ status: z.ZodLiteral<"completed">;
749
+ completedAt: z.ZodNumber;
750
+ terminalAt: z.ZodNumber;
751
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
752
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
753
+ result: z.ZodObject<{
754
+ events: z.ZodArray<TDomainEventSchema, "many">;
755
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
756
+ collection: z.ZodString;
757
+ docId: z.ZodString;
758
+ operation: z.ZodEnum<["create", "update"]>;
759
+ }, "strict", z.ZodTypeAny, {
760
+ collection: string;
761
+ docId: string;
762
+ operation: "create" | "update";
763
+ }, {
764
+ collection: string;
765
+ docId: string;
766
+ operation: "create" | "update";
767
+ }>, "many">>;
768
+ }, "strict", z.ZodTypeAny, {
769
+ events: TDomainEventSchema["_output"][];
770
+ affected?: {
771
+ collection: string;
772
+ docId: string;
773
+ operation: "create" | "update";
774
+ }[] | undefined;
775
+ }, {
776
+ events: TDomainEventSchema["_input"][];
777
+ affected?: {
778
+ collection: string;
779
+ docId: string;
780
+ operation: "create" | "update";
781
+ }[] | undefined;
782
+ }>;
783
+ id: z.ZodString;
784
+ userId: z.ZodString;
785
+ fileOrigin: TFileOriginSchema;
786
+ originalFileName: z.ZodString;
787
+ pendingStoragePath: z.ZodString;
788
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
789
+ textContent: z.ZodOptional<z.ZodString>;
790
+ clientContext: z.ZodObject<{
791
+ surface: z.ZodString;
792
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
793
+ }, "strict", z.ZodTypeAny, {
794
+ surface: string;
795
+ targetIds?: string[] | undefined;
796
+ }, {
797
+ surface: string;
798
+ targetIds?: string[] | undefined;
799
+ }>;
800
+ createdAt: z.ZodNumber;
801
+ updatedAt: z.ZodNumber;
802
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
803
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
804
+ status: z.ZodLiteral<"completed">;
805
+ completedAt: z.ZodNumber;
806
+ terminalAt: z.ZodNumber;
807
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
808
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
809
+ result: z.ZodObject<{
810
+ events: z.ZodArray<TDomainEventSchema, "many">;
811
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
812
+ collection: z.ZodString;
813
+ docId: z.ZodString;
814
+ operation: z.ZodEnum<["create", "update"]>;
815
+ }, "strict", z.ZodTypeAny, {
816
+ collection: string;
817
+ docId: string;
818
+ operation: "create" | "update";
819
+ }, {
820
+ collection: string;
821
+ docId: string;
822
+ operation: "create" | "update";
823
+ }>, "many">>;
824
+ }, "strict", z.ZodTypeAny, {
825
+ events: TDomainEventSchema["_output"][];
826
+ affected?: {
827
+ collection: string;
828
+ docId: string;
829
+ operation: "create" | "update";
830
+ }[] | undefined;
831
+ }, {
832
+ events: TDomainEventSchema["_input"][];
833
+ affected?: {
834
+ collection: string;
835
+ docId: string;
836
+ operation: "create" | "update";
837
+ }[] | undefined;
838
+ }>;
839
+ id: z.ZodString;
840
+ userId: z.ZodString;
841
+ fileOrigin: TFileOriginSchema;
842
+ originalFileName: z.ZodString;
843
+ pendingStoragePath: z.ZodString;
844
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
845
+ textContent: z.ZodOptional<z.ZodString>;
846
+ clientContext: z.ZodObject<{
847
+ surface: z.ZodString;
848
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
849
+ }, "strict", z.ZodTypeAny, {
850
+ surface: string;
851
+ targetIds?: string[] | undefined;
852
+ }, {
853
+ surface: string;
854
+ targetIds?: string[] | undefined;
855
+ }>;
856
+ createdAt: z.ZodNumber;
857
+ updatedAt: z.ZodNumber;
858
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
859
+ }>, any> extends infer T_14 ? { [k_4 in keyof T_14]: T_14[k_4]; } : never, z.baseObjectInputType<{
860
+ status: z.ZodLiteral<"completed">;
861
+ completedAt: z.ZodNumber;
862
+ terminalAt: z.ZodNumber;
863
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
864
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
865
+ result: z.ZodObject<{
866
+ events: z.ZodArray<TDomainEventSchema, "many">;
867
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
868
+ collection: z.ZodString;
869
+ docId: z.ZodString;
870
+ operation: z.ZodEnum<["create", "update"]>;
871
+ }, "strict", z.ZodTypeAny, {
872
+ collection: string;
873
+ docId: string;
874
+ operation: "create" | "update";
875
+ }, {
876
+ collection: string;
877
+ docId: string;
878
+ operation: "create" | "update";
879
+ }>, "many">>;
880
+ }, "strict", z.ZodTypeAny, {
881
+ events: TDomainEventSchema["_output"][];
882
+ affected?: {
883
+ collection: string;
884
+ docId: string;
885
+ operation: "create" | "update";
886
+ }[] | undefined;
887
+ }, {
888
+ events: TDomainEventSchema["_input"][];
889
+ affected?: {
890
+ collection: string;
891
+ docId: string;
892
+ operation: "create" | "update";
893
+ }[] | undefined;
894
+ }>;
895
+ id: z.ZodString;
896
+ userId: z.ZodString;
897
+ fileOrigin: TFileOriginSchema;
898
+ originalFileName: z.ZodString;
899
+ pendingStoragePath: z.ZodString;
900
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
901
+ textContent: z.ZodOptional<z.ZodString>;
902
+ clientContext: z.ZodObject<{
903
+ surface: z.ZodString;
904
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
905
+ }, "strict", z.ZodTypeAny, {
906
+ surface: string;
907
+ targetIds?: string[] | undefined;
908
+ }, {
909
+ surface: string;
910
+ targetIds?: string[] | undefined;
911
+ }>;
912
+ createdAt: z.ZodNumber;
913
+ updatedAt: z.ZodNumber;
914
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
915
+ }> extends infer T_15 ? { [k_5 in keyof T_15]: T_15[k_5]; } : never>, z.ZodObject<{
916
+ status: z.ZodLiteral<"failed">;
917
+ failedAt: z.ZodNumber;
918
+ terminalAt: z.ZodNumber;
919
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
920
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
921
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
922
+ errorMessage: z.ZodString;
923
+ id: z.ZodString;
924
+ userId: z.ZodString;
925
+ fileOrigin: TFileOriginSchema;
926
+ originalFileName: z.ZodString;
927
+ pendingStoragePath: z.ZodString;
928
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
929
+ textContent: z.ZodOptional<z.ZodString>;
930
+ clientContext: z.ZodObject<{
931
+ surface: z.ZodString;
932
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
933
+ }, "strict", z.ZodTypeAny, {
934
+ surface: string;
935
+ targetIds?: string[] | undefined;
936
+ }, {
937
+ surface: string;
938
+ targetIds?: string[] | undefined;
939
+ }>;
940
+ createdAt: z.ZodNumber;
941
+ updatedAt: z.ZodNumber;
942
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
943
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
944
+ status: z.ZodLiteral<"failed">;
945
+ failedAt: z.ZodNumber;
946
+ terminalAt: z.ZodNumber;
947
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
948
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
949
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
950
+ errorMessage: z.ZodString;
951
+ id: z.ZodString;
952
+ userId: z.ZodString;
953
+ fileOrigin: TFileOriginSchema;
954
+ originalFileName: z.ZodString;
955
+ pendingStoragePath: z.ZodString;
956
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
957
+ textContent: z.ZodOptional<z.ZodString>;
958
+ clientContext: z.ZodObject<{
959
+ surface: z.ZodString;
960
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
961
+ }, "strict", z.ZodTypeAny, {
962
+ surface: string;
963
+ targetIds?: string[] | undefined;
964
+ }, {
965
+ surface: string;
966
+ targetIds?: string[] | undefined;
967
+ }>;
968
+ createdAt: z.ZodNumber;
969
+ updatedAt: z.ZodNumber;
970
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
971
+ }>, any> extends infer T_16 ? { [k_6 in keyof T_16]: T_16[k_6]; } : never, z.baseObjectInputType<{
972
+ status: z.ZodLiteral<"failed">;
973
+ failedAt: z.ZodNumber;
974
+ terminalAt: z.ZodNumber;
975
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
976
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
977
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
978
+ errorMessage: z.ZodString;
979
+ id: z.ZodString;
980
+ userId: z.ZodString;
981
+ fileOrigin: TFileOriginSchema;
982
+ originalFileName: z.ZodString;
983
+ pendingStoragePath: z.ZodString;
984
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
985
+ textContent: z.ZodOptional<z.ZodString>;
986
+ clientContext: z.ZodObject<{
987
+ surface: z.ZodString;
988
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
989
+ }, "strict", z.ZodTypeAny, {
990
+ surface: string;
991
+ targetIds?: string[] | undefined;
992
+ }, {
993
+ surface: string;
994
+ targetIds?: string[] | undefined;
995
+ }>;
996
+ createdAt: z.ZodNumber;
997
+ updatedAt: z.ZodNumber;
998
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
999
+ }> extends infer T_17 ? { [k_7 in keyof T_17]: T_17[k_7]; } : never>, z.ZodObject<{
1000
+ status: z.ZodLiteral<"rejected">;
1001
+ rejectedAt: z.ZodNumber;
1002
+ terminalAt: z.ZodNumber;
1003
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1004
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1005
+ rejectionType: z.ZodEnum<["text", "media"]>;
1006
+ errorMessage: z.ZodString;
1007
+ violationId: z.ZodOptional<z.ZodString>;
1008
+ result: z.ZodOptional<z.ZodObject<{
1009
+ events: z.ZodArray<TDomainEventSchema, "many">;
1010
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1011
+ collection: z.ZodString;
1012
+ docId: z.ZodString;
1013
+ operation: z.ZodEnum<["create", "update"]>;
1014
+ }, "strict", z.ZodTypeAny, {
1015
+ collection: string;
1016
+ docId: string;
1017
+ operation: "create" | "update";
1018
+ }, {
1019
+ collection: string;
1020
+ docId: string;
1021
+ operation: "create" | "update";
1022
+ }>, "many">>;
1023
+ }, "strict", z.ZodTypeAny, {
1024
+ events: TDomainEventSchema["_output"][];
1025
+ affected?: {
1026
+ collection: string;
1027
+ docId: string;
1028
+ operation: "create" | "update";
1029
+ }[] | undefined;
1030
+ }, {
1031
+ events: TDomainEventSchema["_input"][];
1032
+ affected?: {
1033
+ collection: string;
1034
+ docId: string;
1035
+ operation: "create" | "update";
1036
+ }[] | undefined;
1037
+ }>>;
1038
+ id: z.ZodString;
1039
+ userId: z.ZodString;
1040
+ fileOrigin: TFileOriginSchema;
1041
+ originalFileName: z.ZodString;
1042
+ pendingStoragePath: z.ZodString;
1043
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1044
+ textContent: z.ZodOptional<z.ZodString>;
1045
+ clientContext: z.ZodObject<{
1046
+ surface: z.ZodString;
1047
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1048
+ }, "strict", z.ZodTypeAny, {
1049
+ surface: string;
1050
+ targetIds?: string[] | undefined;
1051
+ }, {
1052
+ surface: string;
1053
+ targetIds?: string[] | undefined;
1054
+ }>;
1055
+ createdAt: z.ZodNumber;
1056
+ updatedAt: z.ZodNumber;
1057
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1058
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1059
+ status: z.ZodLiteral<"rejected">;
1060
+ rejectedAt: z.ZodNumber;
1061
+ terminalAt: z.ZodNumber;
1062
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1063
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1064
+ rejectionType: z.ZodEnum<["text", "media"]>;
1065
+ errorMessage: z.ZodString;
1066
+ violationId: z.ZodOptional<z.ZodString>;
1067
+ result: z.ZodOptional<z.ZodObject<{
1068
+ events: z.ZodArray<TDomainEventSchema, "many">;
1069
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1070
+ collection: z.ZodString;
1071
+ docId: z.ZodString;
1072
+ operation: z.ZodEnum<["create", "update"]>;
1073
+ }, "strict", z.ZodTypeAny, {
1074
+ collection: string;
1075
+ docId: string;
1076
+ operation: "create" | "update";
1077
+ }, {
1078
+ collection: string;
1079
+ docId: string;
1080
+ operation: "create" | "update";
1081
+ }>, "many">>;
1082
+ }, "strict", z.ZodTypeAny, {
1083
+ events: TDomainEventSchema["_output"][];
1084
+ affected?: {
1085
+ collection: string;
1086
+ docId: string;
1087
+ operation: "create" | "update";
1088
+ }[] | undefined;
1089
+ }, {
1090
+ events: TDomainEventSchema["_input"][];
1091
+ affected?: {
1092
+ collection: string;
1093
+ docId: string;
1094
+ operation: "create" | "update";
1095
+ }[] | undefined;
1096
+ }>>;
1097
+ id: z.ZodString;
1098
+ userId: z.ZodString;
1099
+ fileOrigin: TFileOriginSchema;
1100
+ originalFileName: z.ZodString;
1101
+ pendingStoragePath: z.ZodString;
1102
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1103
+ textContent: z.ZodOptional<z.ZodString>;
1104
+ clientContext: z.ZodObject<{
1105
+ surface: z.ZodString;
1106
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1107
+ }, "strict", z.ZodTypeAny, {
1108
+ surface: string;
1109
+ targetIds?: string[] | undefined;
1110
+ }, {
1111
+ surface: string;
1112
+ targetIds?: string[] | undefined;
1113
+ }>;
1114
+ createdAt: z.ZodNumber;
1115
+ updatedAt: z.ZodNumber;
1116
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1117
+ }>, any> extends infer T_18 ? { [k_8 in keyof T_18]: T_18[k_8]; } : never, z.baseObjectInputType<{
1118
+ status: z.ZodLiteral<"rejected">;
1119
+ rejectedAt: z.ZodNumber;
1120
+ terminalAt: z.ZodNumber;
1121
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1122
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1123
+ rejectionType: z.ZodEnum<["text", "media"]>;
1124
+ errorMessage: z.ZodString;
1125
+ violationId: z.ZodOptional<z.ZodString>;
1126
+ result: z.ZodOptional<z.ZodObject<{
1127
+ events: z.ZodArray<TDomainEventSchema, "many">;
1128
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1129
+ collection: z.ZodString;
1130
+ docId: z.ZodString;
1131
+ operation: z.ZodEnum<["create", "update"]>;
1132
+ }, "strict", z.ZodTypeAny, {
1133
+ collection: string;
1134
+ docId: string;
1135
+ operation: "create" | "update";
1136
+ }, {
1137
+ collection: string;
1138
+ docId: string;
1139
+ operation: "create" | "update";
1140
+ }>, "many">>;
1141
+ }, "strict", z.ZodTypeAny, {
1142
+ events: TDomainEventSchema["_output"][];
1143
+ affected?: {
1144
+ collection: string;
1145
+ docId: string;
1146
+ operation: "create" | "update";
1147
+ }[] | undefined;
1148
+ }, {
1149
+ events: TDomainEventSchema["_input"][];
1150
+ affected?: {
1151
+ collection: string;
1152
+ docId: string;
1153
+ operation: "create" | "update";
1154
+ }[] | undefined;
1155
+ }>>;
1156
+ id: z.ZodString;
1157
+ userId: z.ZodString;
1158
+ fileOrigin: TFileOriginSchema;
1159
+ originalFileName: z.ZodString;
1160
+ pendingStoragePath: z.ZodString;
1161
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1162
+ textContent: z.ZodOptional<z.ZodString>;
1163
+ clientContext: z.ZodObject<{
1164
+ surface: z.ZodString;
1165
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1166
+ }, "strict", z.ZodTypeAny, {
1167
+ surface: string;
1168
+ targetIds?: string[] | undefined;
1169
+ }, {
1170
+ surface: string;
1171
+ targetIds?: string[] | undefined;
1172
+ }>;
1173
+ createdAt: z.ZodNumber;
1174
+ updatedAt: z.ZodNumber;
1175
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1176
+ }> extends infer T_19 ? { [k_9 in keyof T_19]: T_19[k_9]; } : never>]>;
1177
+ ArchivedPendingMediaCompletedSchema: z.ZodObject<{
1178
+ status: z.ZodLiteral<"completed">;
1179
+ completedAt: z.ZodNumber;
1180
+ terminalAt: z.ZodNumber;
1181
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1182
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1183
+ result: z.ZodObject<{
1184
+ events: z.ZodArray<TDomainEventSchema, "many">;
1185
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1186
+ collection: z.ZodString;
1187
+ docId: z.ZodString;
1188
+ operation: z.ZodEnum<["create", "update"]>;
1189
+ }, "strict", z.ZodTypeAny, {
1190
+ collection: string;
1191
+ docId: string;
1192
+ operation: "create" | "update";
1193
+ }, {
1194
+ collection: string;
1195
+ docId: string;
1196
+ operation: "create" | "update";
1197
+ }>, "many">>;
1198
+ }, "strict", z.ZodTypeAny, {
1199
+ events: TDomainEventSchema["_output"][];
1200
+ affected?: {
1201
+ collection: string;
1202
+ docId: string;
1203
+ operation: "create" | "update";
1204
+ }[] | undefined;
1205
+ }, {
1206
+ events: TDomainEventSchema["_input"][];
1207
+ affected?: {
1208
+ collection: string;
1209
+ docId: string;
1210
+ operation: "create" | "update";
1211
+ }[] | undefined;
1212
+ }>;
1213
+ archivedAt: z.ZodNumber;
1214
+ id: z.ZodString;
1215
+ userId: z.ZodString;
1216
+ fileOrigin: TFileOriginSchema;
1217
+ originalFileName: z.ZodString;
1218
+ pendingStoragePath: z.ZodString;
1219
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1220
+ textContent: z.ZodOptional<z.ZodString>;
1221
+ clientContext: z.ZodObject<{
1222
+ surface: z.ZodString;
1223
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1224
+ }, "strict", z.ZodTypeAny, {
1225
+ surface: string;
1226
+ targetIds?: string[] | undefined;
1227
+ }, {
1228
+ surface: string;
1229
+ targetIds?: string[] | undefined;
1230
+ }>;
1231
+ createdAt: z.ZodNumber;
1232
+ updatedAt: z.ZodNumber;
1233
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1234
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1235
+ status: z.ZodLiteral<"completed">;
1236
+ completedAt: z.ZodNumber;
1237
+ terminalAt: z.ZodNumber;
1238
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1239
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1240
+ result: z.ZodObject<{
1241
+ events: z.ZodArray<TDomainEventSchema, "many">;
1242
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1243
+ collection: z.ZodString;
1244
+ docId: z.ZodString;
1245
+ operation: z.ZodEnum<["create", "update"]>;
1246
+ }, "strict", z.ZodTypeAny, {
1247
+ collection: string;
1248
+ docId: string;
1249
+ operation: "create" | "update";
1250
+ }, {
1251
+ collection: string;
1252
+ docId: string;
1253
+ operation: "create" | "update";
1254
+ }>, "many">>;
1255
+ }, "strict", z.ZodTypeAny, {
1256
+ events: TDomainEventSchema["_output"][];
1257
+ affected?: {
1258
+ collection: string;
1259
+ docId: string;
1260
+ operation: "create" | "update";
1261
+ }[] | undefined;
1262
+ }, {
1263
+ events: TDomainEventSchema["_input"][];
1264
+ affected?: {
1265
+ collection: string;
1266
+ docId: string;
1267
+ operation: "create" | "update";
1268
+ }[] | undefined;
1269
+ }>;
1270
+ archivedAt: z.ZodNumber;
1271
+ id: z.ZodString;
1272
+ userId: z.ZodString;
1273
+ fileOrigin: TFileOriginSchema;
1274
+ originalFileName: z.ZodString;
1275
+ pendingStoragePath: z.ZodString;
1276
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1277
+ textContent: z.ZodOptional<z.ZodString>;
1278
+ clientContext: z.ZodObject<{
1279
+ surface: z.ZodString;
1280
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1281
+ }, "strict", z.ZodTypeAny, {
1282
+ surface: string;
1283
+ targetIds?: string[] | undefined;
1284
+ }, {
1285
+ surface: string;
1286
+ targetIds?: string[] | undefined;
1287
+ }>;
1288
+ createdAt: z.ZodNumber;
1289
+ updatedAt: z.ZodNumber;
1290
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1291
+ }>, any> extends infer T_20 ? { [k_10 in keyof T_20]: T_20[k_10]; } : never, z.baseObjectInputType<{
1292
+ status: z.ZodLiteral<"completed">;
1293
+ completedAt: z.ZodNumber;
1294
+ terminalAt: z.ZodNumber;
1295
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1296
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1297
+ result: z.ZodObject<{
1298
+ events: z.ZodArray<TDomainEventSchema, "many">;
1299
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1300
+ collection: z.ZodString;
1301
+ docId: z.ZodString;
1302
+ operation: z.ZodEnum<["create", "update"]>;
1303
+ }, "strict", z.ZodTypeAny, {
1304
+ collection: string;
1305
+ docId: string;
1306
+ operation: "create" | "update";
1307
+ }, {
1308
+ collection: string;
1309
+ docId: string;
1310
+ operation: "create" | "update";
1311
+ }>, "many">>;
1312
+ }, "strict", z.ZodTypeAny, {
1313
+ events: TDomainEventSchema["_output"][];
1314
+ affected?: {
1315
+ collection: string;
1316
+ docId: string;
1317
+ operation: "create" | "update";
1318
+ }[] | undefined;
1319
+ }, {
1320
+ events: TDomainEventSchema["_input"][];
1321
+ affected?: {
1322
+ collection: string;
1323
+ docId: string;
1324
+ operation: "create" | "update";
1325
+ }[] | undefined;
1326
+ }>;
1327
+ archivedAt: z.ZodNumber;
1328
+ id: z.ZodString;
1329
+ userId: z.ZodString;
1330
+ fileOrigin: TFileOriginSchema;
1331
+ originalFileName: z.ZodString;
1332
+ pendingStoragePath: z.ZodString;
1333
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1334
+ textContent: z.ZodOptional<z.ZodString>;
1335
+ clientContext: z.ZodObject<{
1336
+ surface: z.ZodString;
1337
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1338
+ }, "strict", z.ZodTypeAny, {
1339
+ surface: string;
1340
+ targetIds?: string[] | undefined;
1341
+ }, {
1342
+ surface: string;
1343
+ targetIds?: string[] | undefined;
1344
+ }>;
1345
+ createdAt: z.ZodNumber;
1346
+ updatedAt: z.ZodNumber;
1347
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1348
+ }> extends infer T_21 ? { [k_11 in keyof T_21]: T_21[k_11]; } : never>;
1349
+ ArchivedPendingMediaFailedSchema: z.ZodObject<{
1350
+ status: z.ZodLiteral<"failed">;
1351
+ failedAt: z.ZodNumber;
1352
+ terminalAt: z.ZodNumber;
1353
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1354
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1355
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
1356
+ errorMessage: z.ZodString;
1357
+ archivedAt: z.ZodNumber;
1358
+ id: z.ZodString;
1359
+ userId: z.ZodString;
1360
+ fileOrigin: TFileOriginSchema;
1361
+ originalFileName: z.ZodString;
1362
+ pendingStoragePath: z.ZodString;
1363
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1364
+ textContent: z.ZodOptional<z.ZodString>;
1365
+ clientContext: z.ZodObject<{
1366
+ surface: z.ZodString;
1367
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1368
+ }, "strict", z.ZodTypeAny, {
1369
+ surface: string;
1370
+ targetIds?: string[] | undefined;
1371
+ }, {
1372
+ surface: string;
1373
+ targetIds?: string[] | undefined;
1374
+ }>;
1375
+ createdAt: z.ZodNumber;
1376
+ updatedAt: z.ZodNumber;
1377
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1378
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1379
+ status: z.ZodLiteral<"failed">;
1380
+ failedAt: z.ZodNumber;
1381
+ terminalAt: z.ZodNumber;
1382
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1383
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1384
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
1385
+ errorMessage: z.ZodString;
1386
+ archivedAt: z.ZodNumber;
1387
+ id: z.ZodString;
1388
+ userId: z.ZodString;
1389
+ fileOrigin: TFileOriginSchema;
1390
+ originalFileName: z.ZodString;
1391
+ pendingStoragePath: z.ZodString;
1392
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1393
+ textContent: z.ZodOptional<z.ZodString>;
1394
+ clientContext: z.ZodObject<{
1395
+ surface: z.ZodString;
1396
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1397
+ }, "strict", z.ZodTypeAny, {
1398
+ surface: string;
1399
+ targetIds?: string[] | undefined;
1400
+ }, {
1401
+ surface: string;
1402
+ targetIds?: string[] | undefined;
1403
+ }>;
1404
+ createdAt: z.ZodNumber;
1405
+ updatedAt: z.ZodNumber;
1406
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1407
+ }>, any> extends infer T_22 ? { [k_12 in keyof T_22]: T_22[k_12]; } : never, z.baseObjectInputType<{
1408
+ status: z.ZodLiteral<"failed">;
1409
+ failedAt: z.ZodNumber;
1410
+ terminalAt: z.ZodNumber;
1411
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1412
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1413
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
1414
+ errorMessage: z.ZodString;
1415
+ archivedAt: z.ZodNumber;
1416
+ id: z.ZodString;
1417
+ userId: z.ZodString;
1418
+ fileOrigin: TFileOriginSchema;
1419
+ originalFileName: z.ZodString;
1420
+ pendingStoragePath: z.ZodString;
1421
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1422
+ textContent: z.ZodOptional<z.ZodString>;
1423
+ clientContext: z.ZodObject<{
1424
+ surface: z.ZodString;
1425
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1426
+ }, "strict", z.ZodTypeAny, {
1427
+ surface: string;
1428
+ targetIds?: string[] | undefined;
1429
+ }, {
1430
+ surface: string;
1431
+ targetIds?: string[] | undefined;
1432
+ }>;
1433
+ createdAt: z.ZodNumber;
1434
+ updatedAt: z.ZodNumber;
1435
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1436
+ }> extends infer T_23 ? { [k_13 in keyof T_23]: T_23[k_13]; } : never>;
1437
+ ArchivedPendingMediaRejectedSchema: z.ZodObject<{
1438
+ status: z.ZodLiteral<"rejected">;
1439
+ rejectedAt: z.ZodNumber;
1440
+ terminalAt: z.ZodNumber;
1441
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1442
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1443
+ rejectionType: z.ZodEnum<["text", "media"]>;
1444
+ errorMessage: z.ZodString;
1445
+ violationId: z.ZodOptional<z.ZodString>;
1446
+ result: z.ZodOptional<z.ZodObject<{
1447
+ events: z.ZodArray<TDomainEventSchema, "many">;
1448
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1449
+ collection: z.ZodString;
1450
+ docId: z.ZodString;
1451
+ operation: z.ZodEnum<["create", "update"]>;
1452
+ }, "strict", z.ZodTypeAny, {
1453
+ collection: string;
1454
+ docId: string;
1455
+ operation: "create" | "update";
1456
+ }, {
1457
+ collection: string;
1458
+ docId: string;
1459
+ operation: "create" | "update";
1460
+ }>, "many">>;
1461
+ }, "strict", z.ZodTypeAny, {
1462
+ events: TDomainEventSchema["_output"][];
1463
+ affected?: {
1464
+ collection: string;
1465
+ docId: string;
1466
+ operation: "create" | "update";
1467
+ }[] | undefined;
1468
+ }, {
1469
+ events: TDomainEventSchema["_input"][];
1470
+ affected?: {
1471
+ collection: string;
1472
+ docId: string;
1473
+ operation: "create" | "update";
1474
+ }[] | undefined;
1475
+ }>>;
1476
+ archivedAt: z.ZodNumber;
1477
+ id: z.ZodString;
1478
+ userId: z.ZodString;
1479
+ fileOrigin: TFileOriginSchema;
1480
+ originalFileName: z.ZodString;
1481
+ pendingStoragePath: z.ZodString;
1482
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1483
+ textContent: z.ZodOptional<z.ZodString>;
1484
+ clientContext: z.ZodObject<{
1485
+ surface: z.ZodString;
1486
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1487
+ }, "strict", z.ZodTypeAny, {
1488
+ surface: string;
1489
+ targetIds?: string[] | undefined;
1490
+ }, {
1491
+ surface: string;
1492
+ targetIds?: string[] | undefined;
1493
+ }>;
1494
+ createdAt: z.ZodNumber;
1495
+ updatedAt: z.ZodNumber;
1496
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1497
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1498
+ status: z.ZodLiteral<"rejected">;
1499
+ rejectedAt: z.ZodNumber;
1500
+ terminalAt: z.ZodNumber;
1501
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1502
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1503
+ rejectionType: z.ZodEnum<["text", "media"]>;
1504
+ errorMessage: z.ZodString;
1505
+ violationId: z.ZodOptional<z.ZodString>;
1506
+ result: z.ZodOptional<z.ZodObject<{
1507
+ events: z.ZodArray<TDomainEventSchema, "many">;
1508
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1509
+ collection: z.ZodString;
1510
+ docId: z.ZodString;
1511
+ operation: z.ZodEnum<["create", "update"]>;
1512
+ }, "strict", z.ZodTypeAny, {
1513
+ collection: string;
1514
+ docId: string;
1515
+ operation: "create" | "update";
1516
+ }, {
1517
+ collection: string;
1518
+ docId: string;
1519
+ operation: "create" | "update";
1520
+ }>, "many">>;
1521
+ }, "strict", z.ZodTypeAny, {
1522
+ events: TDomainEventSchema["_output"][];
1523
+ affected?: {
1524
+ collection: string;
1525
+ docId: string;
1526
+ operation: "create" | "update";
1527
+ }[] | undefined;
1528
+ }, {
1529
+ events: TDomainEventSchema["_input"][];
1530
+ affected?: {
1531
+ collection: string;
1532
+ docId: string;
1533
+ operation: "create" | "update";
1534
+ }[] | undefined;
1535
+ }>>;
1536
+ archivedAt: z.ZodNumber;
1537
+ id: z.ZodString;
1538
+ userId: z.ZodString;
1539
+ fileOrigin: TFileOriginSchema;
1540
+ originalFileName: z.ZodString;
1541
+ pendingStoragePath: z.ZodString;
1542
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1543
+ textContent: z.ZodOptional<z.ZodString>;
1544
+ clientContext: z.ZodObject<{
1545
+ surface: z.ZodString;
1546
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1547
+ }, "strict", z.ZodTypeAny, {
1548
+ surface: string;
1549
+ targetIds?: string[] | undefined;
1550
+ }, {
1551
+ surface: string;
1552
+ targetIds?: string[] | undefined;
1553
+ }>;
1554
+ createdAt: z.ZodNumber;
1555
+ updatedAt: z.ZodNumber;
1556
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1557
+ }>, any> extends infer T_24 ? { [k_14 in keyof T_24]: T_24[k_14]; } : never, z.baseObjectInputType<{
1558
+ status: z.ZodLiteral<"rejected">;
1559
+ rejectedAt: z.ZodNumber;
1560
+ terminalAt: z.ZodNumber;
1561
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1562
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1563
+ rejectionType: z.ZodEnum<["text", "media"]>;
1564
+ errorMessage: z.ZodString;
1565
+ violationId: z.ZodOptional<z.ZodString>;
1566
+ result: z.ZodOptional<z.ZodObject<{
1567
+ events: z.ZodArray<TDomainEventSchema, "many">;
1568
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1569
+ collection: z.ZodString;
1570
+ docId: z.ZodString;
1571
+ operation: z.ZodEnum<["create", "update"]>;
1572
+ }, "strict", z.ZodTypeAny, {
1573
+ collection: string;
1574
+ docId: string;
1575
+ operation: "create" | "update";
1576
+ }, {
1577
+ collection: string;
1578
+ docId: string;
1579
+ operation: "create" | "update";
1580
+ }>, "many">>;
1581
+ }, "strict", z.ZodTypeAny, {
1582
+ events: TDomainEventSchema["_output"][];
1583
+ affected?: {
1584
+ collection: string;
1585
+ docId: string;
1586
+ operation: "create" | "update";
1587
+ }[] | undefined;
1588
+ }, {
1589
+ events: TDomainEventSchema["_input"][];
1590
+ affected?: {
1591
+ collection: string;
1592
+ docId: string;
1593
+ operation: "create" | "update";
1594
+ }[] | undefined;
1595
+ }>>;
1596
+ archivedAt: z.ZodNumber;
1597
+ id: z.ZodString;
1598
+ userId: z.ZodString;
1599
+ fileOrigin: TFileOriginSchema;
1600
+ originalFileName: z.ZodString;
1601
+ pendingStoragePath: z.ZodString;
1602
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1603
+ textContent: z.ZodOptional<z.ZodString>;
1604
+ clientContext: z.ZodObject<{
1605
+ surface: z.ZodString;
1606
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1607
+ }, "strict", z.ZodTypeAny, {
1608
+ surface: string;
1609
+ targetIds?: string[] | undefined;
1610
+ }, {
1611
+ surface: string;
1612
+ targetIds?: string[] | undefined;
1613
+ }>;
1614
+ createdAt: z.ZodNumber;
1615
+ updatedAt: z.ZodNumber;
1616
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1617
+ }> extends infer T_25 ? { [k_15 in keyof T_25]: T_25[k_15]; } : never>;
1618
+ ArchivedPendingMediaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
1619
+ status: z.ZodLiteral<"completed">;
1620
+ completedAt: z.ZodNumber;
1621
+ terminalAt: z.ZodNumber;
1622
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1623
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1624
+ result: z.ZodObject<{
1625
+ events: z.ZodArray<TDomainEventSchema, "many">;
1626
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1627
+ collection: z.ZodString;
1628
+ docId: z.ZodString;
1629
+ operation: z.ZodEnum<["create", "update"]>;
1630
+ }, "strict", z.ZodTypeAny, {
1631
+ collection: string;
1632
+ docId: string;
1633
+ operation: "create" | "update";
1634
+ }, {
1635
+ collection: string;
1636
+ docId: string;
1637
+ operation: "create" | "update";
1638
+ }>, "many">>;
1639
+ }, "strict", z.ZodTypeAny, {
1640
+ events: TDomainEventSchema["_output"][];
1641
+ affected?: {
1642
+ collection: string;
1643
+ docId: string;
1644
+ operation: "create" | "update";
1645
+ }[] | undefined;
1646
+ }, {
1647
+ events: TDomainEventSchema["_input"][];
1648
+ affected?: {
1649
+ collection: string;
1650
+ docId: string;
1651
+ operation: "create" | "update";
1652
+ }[] | undefined;
1653
+ }>;
1654
+ archivedAt: z.ZodNumber;
1655
+ id: z.ZodString;
1656
+ userId: z.ZodString;
1657
+ fileOrigin: TFileOriginSchema;
1658
+ originalFileName: z.ZodString;
1659
+ pendingStoragePath: z.ZodString;
1660
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1661
+ textContent: z.ZodOptional<z.ZodString>;
1662
+ clientContext: z.ZodObject<{
1663
+ surface: z.ZodString;
1664
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1665
+ }, "strict", z.ZodTypeAny, {
1666
+ surface: string;
1667
+ targetIds?: string[] | undefined;
1668
+ }, {
1669
+ surface: string;
1670
+ targetIds?: string[] | undefined;
1671
+ }>;
1672
+ createdAt: z.ZodNumber;
1673
+ updatedAt: z.ZodNumber;
1674
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1675
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1676
+ status: z.ZodLiteral<"completed">;
1677
+ completedAt: z.ZodNumber;
1678
+ terminalAt: z.ZodNumber;
1679
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1680
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1681
+ result: z.ZodObject<{
1682
+ events: z.ZodArray<TDomainEventSchema, "many">;
1683
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1684
+ collection: z.ZodString;
1685
+ docId: z.ZodString;
1686
+ operation: z.ZodEnum<["create", "update"]>;
1687
+ }, "strict", z.ZodTypeAny, {
1688
+ collection: string;
1689
+ docId: string;
1690
+ operation: "create" | "update";
1691
+ }, {
1692
+ collection: string;
1693
+ docId: string;
1694
+ operation: "create" | "update";
1695
+ }>, "many">>;
1696
+ }, "strict", z.ZodTypeAny, {
1697
+ events: TDomainEventSchema["_output"][];
1698
+ affected?: {
1699
+ collection: string;
1700
+ docId: string;
1701
+ operation: "create" | "update";
1702
+ }[] | undefined;
1703
+ }, {
1704
+ events: TDomainEventSchema["_input"][];
1705
+ affected?: {
1706
+ collection: string;
1707
+ docId: string;
1708
+ operation: "create" | "update";
1709
+ }[] | undefined;
1710
+ }>;
1711
+ archivedAt: z.ZodNumber;
1712
+ id: z.ZodString;
1713
+ userId: z.ZodString;
1714
+ fileOrigin: TFileOriginSchema;
1715
+ originalFileName: z.ZodString;
1716
+ pendingStoragePath: z.ZodString;
1717
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1718
+ textContent: z.ZodOptional<z.ZodString>;
1719
+ clientContext: z.ZodObject<{
1720
+ surface: z.ZodString;
1721
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1722
+ }, "strict", z.ZodTypeAny, {
1723
+ surface: string;
1724
+ targetIds?: string[] | undefined;
1725
+ }, {
1726
+ surface: string;
1727
+ targetIds?: string[] | undefined;
1728
+ }>;
1729
+ createdAt: z.ZodNumber;
1730
+ updatedAt: z.ZodNumber;
1731
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1732
+ }>, any> extends infer T_26 ? { [k_10 in keyof T_26]: T_26[k_10]; } : never, z.baseObjectInputType<{
1733
+ status: z.ZodLiteral<"completed">;
1734
+ completedAt: z.ZodNumber;
1735
+ terminalAt: z.ZodNumber;
1736
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1737
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1738
+ result: z.ZodObject<{
1739
+ events: z.ZodArray<TDomainEventSchema, "many">;
1740
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1741
+ collection: z.ZodString;
1742
+ docId: z.ZodString;
1743
+ operation: z.ZodEnum<["create", "update"]>;
1744
+ }, "strict", z.ZodTypeAny, {
1745
+ collection: string;
1746
+ docId: string;
1747
+ operation: "create" | "update";
1748
+ }, {
1749
+ collection: string;
1750
+ docId: string;
1751
+ operation: "create" | "update";
1752
+ }>, "many">>;
1753
+ }, "strict", z.ZodTypeAny, {
1754
+ events: TDomainEventSchema["_output"][];
1755
+ affected?: {
1756
+ collection: string;
1757
+ docId: string;
1758
+ operation: "create" | "update";
1759
+ }[] | undefined;
1760
+ }, {
1761
+ events: TDomainEventSchema["_input"][];
1762
+ affected?: {
1763
+ collection: string;
1764
+ docId: string;
1765
+ operation: "create" | "update";
1766
+ }[] | undefined;
1767
+ }>;
1768
+ archivedAt: z.ZodNumber;
1769
+ id: z.ZodString;
1770
+ userId: z.ZodString;
1771
+ fileOrigin: TFileOriginSchema;
1772
+ originalFileName: z.ZodString;
1773
+ pendingStoragePath: z.ZodString;
1774
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1775
+ textContent: z.ZodOptional<z.ZodString>;
1776
+ clientContext: z.ZodObject<{
1777
+ surface: z.ZodString;
1778
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1779
+ }, "strict", z.ZodTypeAny, {
1780
+ surface: string;
1781
+ targetIds?: string[] | undefined;
1782
+ }, {
1783
+ surface: string;
1784
+ targetIds?: string[] | undefined;
1785
+ }>;
1786
+ createdAt: z.ZodNumber;
1787
+ updatedAt: z.ZodNumber;
1788
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1789
+ }> extends infer T_27 ? { [k_11 in keyof T_27]: T_27[k_11]; } : never>, z.ZodObject<{
1790
+ status: z.ZodLiteral<"failed">;
1791
+ failedAt: z.ZodNumber;
1792
+ terminalAt: z.ZodNumber;
1793
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1794
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1795
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
1796
+ errorMessage: z.ZodString;
1797
+ archivedAt: z.ZodNumber;
1798
+ id: z.ZodString;
1799
+ userId: z.ZodString;
1800
+ fileOrigin: TFileOriginSchema;
1801
+ originalFileName: z.ZodString;
1802
+ pendingStoragePath: z.ZodString;
1803
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1804
+ textContent: z.ZodOptional<z.ZodString>;
1805
+ clientContext: z.ZodObject<{
1806
+ surface: z.ZodString;
1807
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1808
+ }, "strict", z.ZodTypeAny, {
1809
+ surface: string;
1810
+ targetIds?: string[] | undefined;
1811
+ }, {
1812
+ surface: string;
1813
+ targetIds?: string[] | undefined;
1814
+ }>;
1815
+ createdAt: z.ZodNumber;
1816
+ updatedAt: z.ZodNumber;
1817
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1818
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1819
+ status: z.ZodLiteral<"failed">;
1820
+ failedAt: z.ZodNumber;
1821
+ terminalAt: z.ZodNumber;
1822
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1823
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1824
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
1825
+ errorMessage: z.ZodString;
1826
+ archivedAt: z.ZodNumber;
1827
+ id: z.ZodString;
1828
+ userId: z.ZodString;
1829
+ fileOrigin: TFileOriginSchema;
1830
+ originalFileName: z.ZodString;
1831
+ pendingStoragePath: z.ZodString;
1832
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1833
+ textContent: z.ZodOptional<z.ZodString>;
1834
+ clientContext: z.ZodObject<{
1835
+ surface: z.ZodString;
1836
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1837
+ }, "strict", z.ZodTypeAny, {
1838
+ surface: string;
1839
+ targetIds?: string[] | undefined;
1840
+ }, {
1841
+ surface: string;
1842
+ targetIds?: string[] | undefined;
1843
+ }>;
1844
+ createdAt: z.ZodNumber;
1845
+ updatedAt: z.ZodNumber;
1846
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1847
+ }>, any> extends infer T_28 ? { [k_12 in keyof T_28]: T_28[k_12]; } : never, z.baseObjectInputType<{
1848
+ status: z.ZodLiteral<"failed">;
1849
+ failedAt: z.ZodNumber;
1850
+ terminalAt: z.ZodNumber;
1851
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1852
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1853
+ errorCategory: z.ZodEnum<["system", "rate_limit", "validation", "kind_mismatch", "storage", "moderation"]>;
1854
+ errorMessage: z.ZodString;
1855
+ archivedAt: z.ZodNumber;
1856
+ id: z.ZodString;
1857
+ userId: z.ZodString;
1858
+ fileOrigin: TFileOriginSchema;
1859
+ originalFileName: z.ZodString;
1860
+ pendingStoragePath: z.ZodString;
1861
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1862
+ textContent: z.ZodOptional<z.ZodString>;
1863
+ clientContext: z.ZodObject<{
1864
+ surface: z.ZodString;
1865
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1866
+ }, "strict", z.ZodTypeAny, {
1867
+ surface: string;
1868
+ targetIds?: string[] | undefined;
1869
+ }, {
1870
+ surface: string;
1871
+ targetIds?: string[] | undefined;
1872
+ }>;
1873
+ createdAt: z.ZodNumber;
1874
+ updatedAt: z.ZodNumber;
1875
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1876
+ }> extends infer T_29 ? { [k_13 in keyof T_29]: T_29[k_13]; } : never>, z.ZodObject<{
1877
+ status: z.ZodLiteral<"rejected">;
1878
+ rejectedAt: z.ZodNumber;
1879
+ terminalAt: z.ZodNumber;
1880
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1881
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1882
+ rejectionType: z.ZodEnum<["text", "media"]>;
1883
+ errorMessage: z.ZodString;
1884
+ violationId: z.ZodOptional<z.ZodString>;
1885
+ result: z.ZodOptional<z.ZodObject<{
1886
+ events: z.ZodArray<TDomainEventSchema, "many">;
1887
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1888
+ collection: z.ZodString;
1889
+ docId: z.ZodString;
1890
+ operation: z.ZodEnum<["create", "update"]>;
1891
+ }, "strict", z.ZodTypeAny, {
1892
+ collection: string;
1893
+ docId: string;
1894
+ operation: "create" | "update";
1895
+ }, {
1896
+ collection: string;
1897
+ docId: string;
1898
+ operation: "create" | "update";
1899
+ }>, "many">>;
1900
+ }, "strict", z.ZodTypeAny, {
1901
+ events: TDomainEventSchema["_output"][];
1902
+ affected?: {
1903
+ collection: string;
1904
+ docId: string;
1905
+ operation: "create" | "update";
1906
+ }[] | undefined;
1907
+ }, {
1908
+ events: TDomainEventSchema["_input"][];
1909
+ affected?: {
1910
+ collection: string;
1911
+ docId: string;
1912
+ operation: "create" | "update";
1913
+ }[] | undefined;
1914
+ }>>;
1915
+ archivedAt: z.ZodNumber;
1916
+ id: z.ZodString;
1917
+ userId: z.ZodString;
1918
+ fileOrigin: TFileOriginSchema;
1919
+ originalFileName: z.ZodString;
1920
+ pendingStoragePath: z.ZodString;
1921
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1922
+ textContent: z.ZodOptional<z.ZodString>;
1923
+ clientContext: z.ZodObject<{
1924
+ surface: z.ZodString;
1925
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1926
+ }, "strict", z.ZodTypeAny, {
1927
+ surface: string;
1928
+ targetIds?: string[] | undefined;
1929
+ }, {
1930
+ surface: string;
1931
+ targetIds?: string[] | undefined;
1932
+ }>;
1933
+ createdAt: z.ZodNumber;
1934
+ updatedAt: z.ZodNumber;
1935
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1936
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1937
+ status: z.ZodLiteral<"rejected">;
1938
+ rejectedAt: z.ZodNumber;
1939
+ terminalAt: z.ZodNumber;
1940
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
1941
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
1942
+ rejectionType: z.ZodEnum<["text", "media"]>;
1943
+ errorMessage: z.ZodString;
1944
+ violationId: z.ZodOptional<z.ZodString>;
1945
+ result: z.ZodOptional<z.ZodObject<{
1946
+ events: z.ZodArray<TDomainEventSchema, "many">;
1947
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
1948
+ collection: z.ZodString;
1949
+ docId: z.ZodString;
1950
+ operation: z.ZodEnum<["create", "update"]>;
1951
+ }, "strict", z.ZodTypeAny, {
1952
+ collection: string;
1953
+ docId: string;
1954
+ operation: "create" | "update";
1955
+ }, {
1956
+ collection: string;
1957
+ docId: string;
1958
+ operation: "create" | "update";
1959
+ }>, "many">>;
1960
+ }, "strict", z.ZodTypeAny, {
1961
+ events: TDomainEventSchema["_output"][];
1962
+ affected?: {
1963
+ collection: string;
1964
+ docId: string;
1965
+ operation: "create" | "update";
1966
+ }[] | undefined;
1967
+ }, {
1968
+ events: TDomainEventSchema["_input"][];
1969
+ affected?: {
1970
+ collection: string;
1971
+ docId: string;
1972
+ operation: "create" | "update";
1973
+ }[] | undefined;
1974
+ }>>;
1975
+ archivedAt: z.ZodNumber;
1976
+ id: z.ZodString;
1977
+ userId: z.ZodString;
1978
+ fileOrigin: TFileOriginSchema;
1979
+ originalFileName: z.ZodString;
1980
+ pendingStoragePath: z.ZodString;
1981
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
1982
+ textContent: z.ZodOptional<z.ZodString>;
1983
+ clientContext: z.ZodObject<{
1984
+ surface: z.ZodString;
1985
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1986
+ }, "strict", z.ZodTypeAny, {
1987
+ surface: string;
1988
+ targetIds?: string[] | undefined;
1989
+ }, {
1990
+ surface: string;
1991
+ targetIds?: string[] | undefined;
1992
+ }>;
1993
+ createdAt: z.ZodNumber;
1994
+ updatedAt: z.ZodNumber;
1995
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
1996
+ }>, any> extends infer T_30 ? { [k_14 in keyof T_30]: T_30[k_14]; } : never, z.baseObjectInputType<{
1997
+ status: z.ZodLiteral<"rejected">;
1998
+ rejectedAt: z.ZodNumber;
1999
+ terminalAt: z.ZodNumber;
2000
+ uploadTrayClearedAt: z.ZodOptional<z.ZodNumber>;
2001
+ uploadTrayClearedBy: z.ZodOptional<z.ZodString>;
2002
+ rejectionType: z.ZodEnum<["text", "media"]>;
2003
+ errorMessage: z.ZodString;
2004
+ violationId: z.ZodOptional<z.ZodString>;
2005
+ result: z.ZodOptional<z.ZodObject<{
2006
+ events: z.ZodArray<TDomainEventSchema, "many">;
2007
+ affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
2008
+ collection: z.ZodString;
2009
+ docId: z.ZodString;
2010
+ operation: z.ZodEnum<["create", "update"]>;
2011
+ }, "strict", z.ZodTypeAny, {
2012
+ collection: string;
2013
+ docId: string;
2014
+ operation: "create" | "update";
2015
+ }, {
2016
+ collection: string;
2017
+ docId: string;
2018
+ operation: "create" | "update";
2019
+ }>, "many">>;
2020
+ }, "strict", z.ZodTypeAny, {
2021
+ events: TDomainEventSchema["_output"][];
2022
+ affected?: {
2023
+ collection: string;
2024
+ docId: string;
2025
+ operation: "create" | "update";
2026
+ }[] | undefined;
2027
+ }, {
2028
+ events: TDomainEventSchema["_input"][];
2029
+ affected?: {
2030
+ collection: string;
2031
+ docId: string;
2032
+ operation: "create" | "update";
2033
+ }[] | undefined;
2034
+ }>>;
2035
+ archivedAt: z.ZodNumber;
2036
+ id: z.ZodString;
2037
+ userId: z.ZodString;
2038
+ fileOrigin: TFileOriginSchema;
2039
+ originalFileName: z.ZodString;
2040
+ pendingStoragePath: z.ZodString;
2041
+ targetInfo: z.ZodOptional<z.ZodUnknown>;
2042
+ textContent: z.ZodOptional<z.ZodString>;
2043
+ clientContext: z.ZodObject<{
2044
+ surface: z.ZodString;
2045
+ targetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2046
+ }, "strict", z.ZodTypeAny, {
2047
+ surface: string;
2048
+ targetIds?: string[] | undefined;
2049
+ }, {
2050
+ surface: string;
2051
+ targetIds?: string[] | undefined;
2052
+ }>;
2053
+ createdAt: z.ZodNumber;
2054
+ updatedAt: z.ZodNumber;
2055
+ processingStartedAt: z.ZodOptional<z.ZodNumber>;
2056
+ }> extends infer T_31 ? { [k_15 in keyof T_31]: T_31[k_15]; } : never>]>;
2057
+ };
2058
+ export type PendingMediaSchemas<TFileOriginSchema extends z.ZodTypeAny, TDomainEventSchema extends z.ZodTypeAny> = ReturnType<typeof createPendingMediaSchemas<TFileOriginSchema, TDomainEventSchema>>;
2059
+ //# sourceMappingURL=pending-media.d.ts.map