@lokalise/content-conversion-schemas 1.0.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,1255 @@
1
+ import { type ConsumerMessageSchema, type PublisherMessageSchema } from '@message-queue-toolkit/schemas';
2
+ import { z } from 'zod';
3
+ export declare const UPLOAD_CONTENT_FILE_UPLOADED_EVENT_SCHEMA: z.ZodObject<{
4
+ userId: z.ZodOptional<z.ZodString>;
5
+ projectId: z.ZodString;
6
+ fileId: z.ZodString;
7
+ storageId: z.ZodString;
8
+ filePath: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ projectId: string;
11
+ storageId: string;
12
+ fileId: string;
13
+ filePath: string;
14
+ userId?: string | undefined;
15
+ }, {
16
+ projectId: string;
17
+ storageId: string;
18
+ fileId: string;
19
+ filePath: string;
20
+ userId?: string | undefined;
21
+ }>;
22
+ export declare const UPLOAD_CONTENT_FILE_PARSED_EVENT_SCHEMA: z.ZodObject<{
23
+ userId: z.ZodOptional<z.ZodString>;
24
+ projectId: z.ZodString;
25
+ fileId: z.ZodString;
26
+ filePath: z.ZodString;
27
+ filePathWithLocalePlaceholder: z.ZodNullable<z.ZodString>;
28
+ keyCount: z.ZodNumber;
29
+ wordCount: z.ZodOptional<z.ZodNumber>;
30
+ locale: z.ZodNullable<z.ZodString>;
31
+ contentHash: z.ZodOptional<z.ZodString>;
32
+ parsedContentStorageId: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ locale: string | null;
35
+ projectId: string;
36
+ fileId: string;
37
+ filePath: string;
38
+ filePathWithLocalePlaceholder: string | null;
39
+ keyCount: number;
40
+ parsedContentStorageId: string;
41
+ userId?: string | undefined;
42
+ wordCount?: number | undefined;
43
+ contentHash?: string | undefined;
44
+ }, {
45
+ locale: string | null;
46
+ projectId: string;
47
+ fileId: string;
48
+ filePath: string;
49
+ filePathWithLocalePlaceholder: string | null;
50
+ keyCount: number;
51
+ parsedContentStorageId: string;
52
+ userId?: string | undefined;
53
+ wordCount?: number | undefined;
54
+ contentHash?: string | undefined;
55
+ }>;
56
+ export declare const UPLOAD_CONTENT_FILE_PARSE_FAILED_EVENT_SCHEMA: z.ZodObject<{
57
+ userId: z.ZodOptional<z.ZodString>;
58
+ projectId: z.ZodString;
59
+ fileId: z.ZodString;
60
+ filePath: z.ZodString;
61
+ reason: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ projectId: string;
64
+ fileId: string;
65
+ reason: string;
66
+ filePath: string;
67
+ userId?: string | undefined;
68
+ }, {
69
+ projectId: string;
70
+ fileId: string;
71
+ reason: string;
72
+ filePath: string;
73
+ userId?: string | undefined;
74
+ }>;
75
+ export declare const UPLOAD_CONTENT_ITEM_COLLECTION_UPLOADED_EVENT_SCHEMA: z.ZodObject<{
76
+ projectId: z.ZodString;
77
+ locale: z.ZodEffects<z.ZodString, string, string>;
78
+ contentItemCollectionId: z.ZodString;
79
+ rawContentFileId: z.ZodString;
80
+ }, "strip", z.ZodTypeAny, {
81
+ locale: string;
82
+ projectId: string;
83
+ contentItemCollectionId: string;
84
+ rawContentFileId: string;
85
+ }, {
86
+ locale: string;
87
+ projectId: string;
88
+ contentItemCollectionId: string;
89
+ rawContentFileId: string;
90
+ }>;
91
+ export declare const UPLOAD_CONTENT_ITEM_COLLECTION_PARSE_ERROR_EVENT_SCHEMA: z.ZodObject<{
92
+ projectId: z.ZodString;
93
+ contentItemCollectionId: z.ZodString;
94
+ reason: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ projectId: string;
97
+ reason: string;
98
+ contentItemCollectionId: string;
99
+ }, {
100
+ projectId: string;
101
+ reason: string;
102
+ contentItemCollectionId: string;
103
+ }>;
104
+ export declare const UPLOAD_CONTENT_ITEM_COLLECTION_PARSED_EVENT_SCHEMA: z.ZodObject<{
105
+ projectId: z.ZodString;
106
+ contentItemCollectionId: z.ZodString;
107
+ parsedContentFileId: z.ZodString;
108
+ parsedItemIdentifiers: z.ZodArray<z.ZodString, "many">;
109
+ parsingFailedItemsCount: z.ZodNumber;
110
+ }, "strip", z.ZodTypeAny, {
111
+ projectId: string;
112
+ contentItemCollectionId: string;
113
+ parsedContentFileId: string;
114
+ parsedItemIdentifiers: string[];
115
+ parsingFailedItemsCount: number;
116
+ }, {
117
+ projectId: string;
118
+ contentItemCollectionId: string;
119
+ parsedContentFileId: string;
120
+ parsedItemIdentifiers: string[];
121
+ parsingFailedItemsCount: number;
122
+ }>;
123
+ export declare const UPLOAD_CONTENT_ITEM_COLLECTION_UPLOAD_FINISHED_EVENT_SCHEMA: z.ZodObject<{
124
+ contentItemCollectionId: z.ZodString;
125
+ result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ contentItemCollectionId: string;
128
+ result: "SUCCESS" | "FAILURE";
129
+ }, {
130
+ contentItemCollectionId: string;
131
+ result: "SUCCESS" | "FAILURE";
132
+ }>;
133
+ export declare const UploadEvents: {
134
+ 'upload.content_file_uploaded': {
135
+ snsTopic: "autopilot-upload";
136
+ producedBy: string[];
137
+ consumerSchema: z.ZodObject<{
138
+ id: z.ZodString;
139
+ timestamp: z.ZodString;
140
+ type: z.ZodLiteral<"upload.content_file_uploaded">;
141
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
143
+ payload: z.ZodObject<{
144
+ userId: z.ZodOptional<z.ZodString>;
145
+ projectId: z.ZodString;
146
+ fileId: z.ZodString;
147
+ storageId: z.ZodString;
148
+ filePath: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ projectId: string;
151
+ storageId: string;
152
+ fileId: string;
153
+ filePath: string;
154
+ userId?: string | undefined;
155
+ }, {
156
+ projectId: string;
157
+ storageId: string;
158
+ fileId: string;
159
+ filePath: string;
160
+ userId?: string | undefined;
161
+ }>;
162
+ metadata: import("@message-queue-toolkit/schemas").MetadataObject;
163
+ }, "strip", z.ZodTypeAny, {
164
+ id: string;
165
+ type: "upload.content_file_uploaded";
166
+ metadata: {
167
+ schemaVersion: string;
168
+ producedBy: string;
169
+ originatedFrom: string;
170
+ correlationId: string;
171
+ };
172
+ timestamp: string;
173
+ payload: {
174
+ projectId: string;
175
+ storageId: string;
176
+ fileId: string;
177
+ filePath: string;
178
+ userId?: string | undefined;
179
+ };
180
+ deduplicationId?: string | null | undefined;
181
+ deduplicationOptions?: {
182
+ deduplicationWindowSeconds?: number | undefined;
183
+ lockTimeoutSeconds?: number | undefined;
184
+ acquireTimeoutSeconds?: number | undefined;
185
+ refreshIntervalSeconds?: number | undefined;
186
+ } | null | undefined;
187
+ }, {
188
+ id: string;
189
+ type: "upload.content_file_uploaded";
190
+ metadata: {
191
+ schemaVersion: string;
192
+ producedBy: string;
193
+ originatedFrom: string;
194
+ correlationId: string;
195
+ };
196
+ timestamp: string;
197
+ payload: {
198
+ projectId: string;
199
+ storageId: string;
200
+ fileId: string;
201
+ filePath: string;
202
+ userId?: string | undefined;
203
+ };
204
+ deduplicationId?: string | null | undefined;
205
+ deduplicationOptions?: {
206
+ deduplicationWindowSeconds?: number | undefined;
207
+ lockTimeoutSeconds?: number | undefined;
208
+ acquireTimeoutSeconds?: number | undefined;
209
+ refreshIntervalSeconds?: number | undefined;
210
+ } | null | undefined;
211
+ }>;
212
+ publisherSchema: z.ZodObject<{
213
+ id: z.ZodOptional<z.ZodString>;
214
+ timestamp: z.ZodOptional<z.ZodString>;
215
+ type: z.ZodLiteral<"upload.content_file_uploaded">;
216
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
218
+ payload: z.ZodObject<{
219
+ userId: z.ZodOptional<z.ZodString>;
220
+ projectId: z.ZodString;
221
+ fileId: z.ZodString;
222
+ storageId: z.ZodString;
223
+ filePath: z.ZodString;
224
+ }, "strip", z.ZodTypeAny, {
225
+ projectId: string;
226
+ storageId: string;
227
+ fileId: string;
228
+ filePath: string;
229
+ userId?: string | undefined;
230
+ }, {
231
+ projectId: string;
232
+ storageId: string;
233
+ fileId: string;
234
+ filePath: string;
235
+ userId?: string | undefined;
236
+ }>;
237
+ metadata: z.ZodOptional<z.ZodObject<{
238
+ schemaVersion: z.ZodOptional<z.ZodString>;
239
+ producedBy: z.ZodOptional<z.ZodString>;
240
+ originatedFrom: z.ZodOptional<z.ZodString>;
241
+ correlationId: z.ZodOptional<z.ZodString>;
242
+ }, "strip">>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: "upload.content_file_uploaded";
245
+ payload: {
246
+ projectId: string;
247
+ storageId: string;
248
+ fileId: string;
249
+ filePath: string;
250
+ userId?: string | undefined;
251
+ };
252
+ id?: string | undefined;
253
+ metadata?: {
254
+ schemaVersion?: string | undefined;
255
+ producedBy?: string | undefined;
256
+ originatedFrom?: string | undefined;
257
+ correlationId?: string | undefined;
258
+ } | undefined;
259
+ timestamp?: string | undefined;
260
+ deduplicationId?: string | null | undefined;
261
+ deduplicationOptions?: {
262
+ deduplicationWindowSeconds?: number | undefined;
263
+ lockTimeoutSeconds?: number | undefined;
264
+ acquireTimeoutSeconds?: number | undefined;
265
+ refreshIntervalSeconds?: number | undefined;
266
+ } | null | undefined;
267
+ }, {
268
+ type: "upload.content_file_uploaded";
269
+ payload: {
270
+ projectId: string;
271
+ storageId: string;
272
+ fileId: string;
273
+ filePath: string;
274
+ userId?: string | undefined;
275
+ };
276
+ id?: string | undefined;
277
+ metadata?: {
278
+ schemaVersion?: string | undefined;
279
+ producedBy?: string | undefined;
280
+ originatedFrom?: string | undefined;
281
+ correlationId?: string | undefined;
282
+ } | undefined;
283
+ timestamp?: string | undefined;
284
+ deduplicationId?: string | null | undefined;
285
+ deduplicationOptions?: {
286
+ deduplicationWindowSeconds?: number | undefined;
287
+ lockTimeoutSeconds?: number | undefined;
288
+ acquireTimeoutSeconds?: number | undefined;
289
+ refreshIntervalSeconds?: number | undefined;
290
+ } | null | undefined;
291
+ }>;
292
+ };
293
+ 'upload.content_file_parsed': {
294
+ producedBy: string[];
295
+ snsTopic: "autopilot-upload";
296
+ consumerSchema: z.ZodObject<{
297
+ id: z.ZodString;
298
+ timestamp: z.ZodString;
299
+ type: z.ZodLiteral<"upload.content_file_parsed">;
300
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
302
+ payload: z.ZodObject<{
303
+ userId: z.ZodOptional<z.ZodString>;
304
+ projectId: z.ZodString;
305
+ fileId: z.ZodString;
306
+ filePath: z.ZodString;
307
+ filePathWithLocalePlaceholder: z.ZodNullable<z.ZodString>;
308
+ keyCount: z.ZodNumber;
309
+ wordCount: z.ZodOptional<z.ZodNumber>;
310
+ locale: z.ZodNullable<z.ZodString>;
311
+ contentHash: z.ZodOptional<z.ZodString>;
312
+ parsedContentStorageId: z.ZodString;
313
+ }, "strip", z.ZodTypeAny, {
314
+ locale: string | null;
315
+ projectId: string;
316
+ fileId: string;
317
+ filePath: string;
318
+ filePathWithLocalePlaceholder: string | null;
319
+ keyCount: number;
320
+ parsedContentStorageId: string;
321
+ userId?: string | undefined;
322
+ wordCount?: number | undefined;
323
+ contentHash?: string | undefined;
324
+ }, {
325
+ locale: string | null;
326
+ projectId: string;
327
+ fileId: string;
328
+ filePath: string;
329
+ filePathWithLocalePlaceholder: string | null;
330
+ keyCount: number;
331
+ parsedContentStorageId: string;
332
+ userId?: string | undefined;
333
+ wordCount?: number | undefined;
334
+ contentHash?: string | undefined;
335
+ }>;
336
+ metadata: import("@message-queue-toolkit/schemas").MetadataObject;
337
+ }, "strip", z.ZodTypeAny, {
338
+ id: string;
339
+ type: "upload.content_file_parsed";
340
+ metadata: {
341
+ schemaVersion: string;
342
+ producedBy: string;
343
+ originatedFrom: string;
344
+ correlationId: string;
345
+ };
346
+ timestamp: string;
347
+ payload: {
348
+ locale: string | null;
349
+ projectId: string;
350
+ fileId: string;
351
+ filePath: string;
352
+ filePathWithLocalePlaceholder: string | null;
353
+ keyCount: number;
354
+ parsedContentStorageId: string;
355
+ userId?: string | undefined;
356
+ wordCount?: number | undefined;
357
+ contentHash?: string | undefined;
358
+ };
359
+ deduplicationId?: string | null | undefined;
360
+ deduplicationOptions?: {
361
+ deduplicationWindowSeconds?: number | undefined;
362
+ lockTimeoutSeconds?: number | undefined;
363
+ acquireTimeoutSeconds?: number | undefined;
364
+ refreshIntervalSeconds?: number | undefined;
365
+ } | null | undefined;
366
+ }, {
367
+ id: string;
368
+ type: "upload.content_file_parsed";
369
+ metadata: {
370
+ schemaVersion: string;
371
+ producedBy: string;
372
+ originatedFrom: string;
373
+ correlationId: string;
374
+ };
375
+ timestamp: string;
376
+ payload: {
377
+ locale: string | null;
378
+ projectId: string;
379
+ fileId: string;
380
+ filePath: string;
381
+ filePathWithLocalePlaceholder: string | null;
382
+ keyCount: number;
383
+ parsedContentStorageId: string;
384
+ userId?: string | undefined;
385
+ wordCount?: number | undefined;
386
+ contentHash?: string | undefined;
387
+ };
388
+ deduplicationId?: string | null | undefined;
389
+ deduplicationOptions?: {
390
+ deduplicationWindowSeconds?: number | undefined;
391
+ lockTimeoutSeconds?: number | undefined;
392
+ acquireTimeoutSeconds?: number | undefined;
393
+ refreshIntervalSeconds?: number | undefined;
394
+ } | null | undefined;
395
+ }>;
396
+ publisherSchema: z.ZodObject<{
397
+ id: z.ZodOptional<z.ZodString>;
398
+ timestamp: z.ZodOptional<z.ZodString>;
399
+ type: z.ZodLiteral<"upload.content_file_parsed">;
400
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
402
+ payload: z.ZodObject<{
403
+ userId: z.ZodOptional<z.ZodString>;
404
+ projectId: z.ZodString;
405
+ fileId: z.ZodString;
406
+ filePath: z.ZodString;
407
+ filePathWithLocalePlaceholder: z.ZodNullable<z.ZodString>;
408
+ keyCount: z.ZodNumber;
409
+ wordCount: z.ZodOptional<z.ZodNumber>;
410
+ locale: z.ZodNullable<z.ZodString>;
411
+ contentHash: z.ZodOptional<z.ZodString>;
412
+ parsedContentStorageId: z.ZodString;
413
+ }, "strip", z.ZodTypeAny, {
414
+ locale: string | null;
415
+ projectId: string;
416
+ fileId: string;
417
+ filePath: string;
418
+ filePathWithLocalePlaceholder: string | null;
419
+ keyCount: number;
420
+ parsedContentStorageId: string;
421
+ userId?: string | undefined;
422
+ wordCount?: number | undefined;
423
+ contentHash?: string | undefined;
424
+ }, {
425
+ locale: string | null;
426
+ projectId: string;
427
+ fileId: string;
428
+ filePath: string;
429
+ filePathWithLocalePlaceholder: string | null;
430
+ keyCount: number;
431
+ parsedContentStorageId: string;
432
+ userId?: string | undefined;
433
+ wordCount?: number | undefined;
434
+ contentHash?: string | undefined;
435
+ }>;
436
+ metadata: z.ZodOptional<z.ZodObject<{
437
+ schemaVersion: z.ZodOptional<z.ZodString>;
438
+ producedBy: z.ZodOptional<z.ZodString>;
439
+ originatedFrom: z.ZodOptional<z.ZodString>;
440
+ correlationId: z.ZodOptional<z.ZodString>;
441
+ }, "strip">>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ type: "upload.content_file_parsed";
444
+ payload: {
445
+ locale: string | null;
446
+ projectId: string;
447
+ fileId: string;
448
+ filePath: string;
449
+ filePathWithLocalePlaceholder: string | null;
450
+ keyCount: number;
451
+ parsedContentStorageId: string;
452
+ userId?: string | undefined;
453
+ wordCount?: number | undefined;
454
+ contentHash?: string | undefined;
455
+ };
456
+ id?: string | undefined;
457
+ metadata?: {
458
+ schemaVersion?: string | undefined;
459
+ producedBy?: string | undefined;
460
+ originatedFrom?: string | undefined;
461
+ correlationId?: string | undefined;
462
+ } | undefined;
463
+ timestamp?: string | undefined;
464
+ deduplicationId?: string | null | undefined;
465
+ deduplicationOptions?: {
466
+ deduplicationWindowSeconds?: number | undefined;
467
+ lockTimeoutSeconds?: number | undefined;
468
+ acquireTimeoutSeconds?: number | undefined;
469
+ refreshIntervalSeconds?: number | undefined;
470
+ } | null | undefined;
471
+ }, {
472
+ type: "upload.content_file_parsed";
473
+ payload: {
474
+ locale: string | null;
475
+ projectId: string;
476
+ fileId: string;
477
+ filePath: string;
478
+ filePathWithLocalePlaceholder: string | null;
479
+ keyCount: number;
480
+ parsedContentStorageId: string;
481
+ userId?: string | undefined;
482
+ wordCount?: number | undefined;
483
+ contentHash?: string | undefined;
484
+ };
485
+ id?: string | undefined;
486
+ metadata?: {
487
+ schemaVersion?: string | undefined;
488
+ producedBy?: string | undefined;
489
+ originatedFrom?: string | undefined;
490
+ correlationId?: string | undefined;
491
+ } | undefined;
492
+ timestamp?: string | undefined;
493
+ deduplicationId?: string | null | undefined;
494
+ deduplicationOptions?: {
495
+ deduplicationWindowSeconds?: number | undefined;
496
+ lockTimeoutSeconds?: number | undefined;
497
+ acquireTimeoutSeconds?: number | undefined;
498
+ refreshIntervalSeconds?: number | undefined;
499
+ } | null | undefined;
500
+ }>;
501
+ };
502
+ 'upload.content_file_parse_failed': {
503
+ producedBy: string[];
504
+ snsTopic: "autopilot-upload";
505
+ consumerSchema: z.ZodObject<{
506
+ id: z.ZodString;
507
+ timestamp: z.ZodString;
508
+ type: z.ZodLiteral<"upload.content_file_parse_failed">;
509
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
511
+ payload: z.ZodObject<{
512
+ userId: z.ZodOptional<z.ZodString>;
513
+ projectId: z.ZodString;
514
+ fileId: z.ZodString;
515
+ filePath: z.ZodString;
516
+ reason: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ projectId: string;
519
+ fileId: string;
520
+ reason: string;
521
+ filePath: string;
522
+ userId?: string | undefined;
523
+ }, {
524
+ projectId: string;
525
+ fileId: string;
526
+ reason: string;
527
+ filePath: string;
528
+ userId?: string | undefined;
529
+ }>;
530
+ metadata: import("@message-queue-toolkit/schemas").MetadataObject;
531
+ }, "strip", z.ZodTypeAny, {
532
+ id: string;
533
+ type: "upload.content_file_parse_failed";
534
+ metadata: {
535
+ schemaVersion: string;
536
+ producedBy: string;
537
+ originatedFrom: string;
538
+ correlationId: string;
539
+ };
540
+ timestamp: string;
541
+ payload: {
542
+ projectId: string;
543
+ fileId: string;
544
+ reason: string;
545
+ filePath: string;
546
+ userId?: string | undefined;
547
+ };
548
+ deduplicationId?: string | null | undefined;
549
+ deduplicationOptions?: {
550
+ deduplicationWindowSeconds?: number | undefined;
551
+ lockTimeoutSeconds?: number | undefined;
552
+ acquireTimeoutSeconds?: number | undefined;
553
+ refreshIntervalSeconds?: number | undefined;
554
+ } | null | undefined;
555
+ }, {
556
+ id: string;
557
+ type: "upload.content_file_parse_failed";
558
+ metadata: {
559
+ schemaVersion: string;
560
+ producedBy: string;
561
+ originatedFrom: string;
562
+ correlationId: string;
563
+ };
564
+ timestamp: string;
565
+ payload: {
566
+ projectId: string;
567
+ fileId: string;
568
+ reason: string;
569
+ filePath: string;
570
+ userId?: string | undefined;
571
+ };
572
+ deduplicationId?: string | null | undefined;
573
+ deduplicationOptions?: {
574
+ deduplicationWindowSeconds?: number | undefined;
575
+ lockTimeoutSeconds?: number | undefined;
576
+ acquireTimeoutSeconds?: number | undefined;
577
+ refreshIntervalSeconds?: number | undefined;
578
+ } | null | undefined;
579
+ }>;
580
+ publisherSchema: z.ZodObject<{
581
+ id: z.ZodOptional<z.ZodString>;
582
+ timestamp: z.ZodOptional<z.ZodString>;
583
+ type: z.ZodLiteral<"upload.content_file_parse_failed">;
584
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
585
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
586
+ payload: z.ZodObject<{
587
+ userId: z.ZodOptional<z.ZodString>;
588
+ projectId: z.ZodString;
589
+ fileId: z.ZodString;
590
+ filePath: z.ZodString;
591
+ reason: z.ZodString;
592
+ }, "strip", z.ZodTypeAny, {
593
+ projectId: string;
594
+ fileId: string;
595
+ reason: string;
596
+ filePath: string;
597
+ userId?: string | undefined;
598
+ }, {
599
+ projectId: string;
600
+ fileId: string;
601
+ reason: string;
602
+ filePath: string;
603
+ userId?: string | undefined;
604
+ }>;
605
+ metadata: z.ZodOptional<z.ZodObject<{
606
+ schemaVersion: z.ZodOptional<z.ZodString>;
607
+ producedBy: z.ZodOptional<z.ZodString>;
608
+ originatedFrom: z.ZodOptional<z.ZodString>;
609
+ correlationId: z.ZodOptional<z.ZodString>;
610
+ }, "strip">>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: "upload.content_file_parse_failed";
613
+ payload: {
614
+ projectId: string;
615
+ fileId: string;
616
+ reason: string;
617
+ filePath: string;
618
+ userId?: string | undefined;
619
+ };
620
+ id?: string | undefined;
621
+ metadata?: {
622
+ schemaVersion?: string | undefined;
623
+ producedBy?: string | undefined;
624
+ originatedFrom?: string | undefined;
625
+ correlationId?: string | undefined;
626
+ } | undefined;
627
+ timestamp?: string | undefined;
628
+ deduplicationId?: string | null | undefined;
629
+ deduplicationOptions?: {
630
+ deduplicationWindowSeconds?: number | undefined;
631
+ lockTimeoutSeconds?: number | undefined;
632
+ acquireTimeoutSeconds?: number | undefined;
633
+ refreshIntervalSeconds?: number | undefined;
634
+ } | null | undefined;
635
+ }, {
636
+ type: "upload.content_file_parse_failed";
637
+ payload: {
638
+ projectId: string;
639
+ fileId: string;
640
+ reason: string;
641
+ filePath: string;
642
+ userId?: string | undefined;
643
+ };
644
+ id?: string | undefined;
645
+ metadata?: {
646
+ schemaVersion?: string | undefined;
647
+ producedBy?: string | undefined;
648
+ originatedFrom?: string | undefined;
649
+ correlationId?: string | undefined;
650
+ } | undefined;
651
+ timestamp?: string | undefined;
652
+ deduplicationId?: string | null | undefined;
653
+ deduplicationOptions?: {
654
+ deduplicationWindowSeconds?: number | undefined;
655
+ lockTimeoutSeconds?: number | undefined;
656
+ acquireTimeoutSeconds?: number | undefined;
657
+ refreshIntervalSeconds?: number | undefined;
658
+ } | null | undefined;
659
+ }>;
660
+ };
661
+ 'upload.content_item_collection_uploaded': {
662
+ producedBy: string[];
663
+ snsTopic: "autopilot-upload";
664
+ consumerSchema: z.ZodObject<{
665
+ id: z.ZodString;
666
+ timestamp: z.ZodString;
667
+ type: z.ZodLiteral<"upload.content_item_collection_uploaded">;
668
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
669
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
670
+ payload: z.ZodObject<{
671
+ projectId: z.ZodString;
672
+ locale: z.ZodEffects<z.ZodString, string, string>;
673
+ contentItemCollectionId: z.ZodString;
674
+ rawContentFileId: z.ZodString;
675
+ }, "strip", z.ZodTypeAny, {
676
+ locale: string;
677
+ projectId: string;
678
+ contentItemCollectionId: string;
679
+ rawContentFileId: string;
680
+ }, {
681
+ locale: string;
682
+ projectId: string;
683
+ contentItemCollectionId: string;
684
+ rawContentFileId: string;
685
+ }>;
686
+ metadata: import("@message-queue-toolkit/schemas").MetadataObject;
687
+ }, "strip", z.ZodTypeAny, {
688
+ id: string;
689
+ type: "upload.content_item_collection_uploaded";
690
+ metadata: {
691
+ schemaVersion: string;
692
+ producedBy: string;
693
+ originatedFrom: string;
694
+ correlationId: string;
695
+ };
696
+ timestamp: string;
697
+ payload: {
698
+ locale: string;
699
+ projectId: string;
700
+ contentItemCollectionId: string;
701
+ rawContentFileId: string;
702
+ };
703
+ deduplicationId?: string | null | undefined;
704
+ deduplicationOptions?: {
705
+ deduplicationWindowSeconds?: number | undefined;
706
+ lockTimeoutSeconds?: number | undefined;
707
+ acquireTimeoutSeconds?: number | undefined;
708
+ refreshIntervalSeconds?: number | undefined;
709
+ } | null | undefined;
710
+ }, {
711
+ id: string;
712
+ type: "upload.content_item_collection_uploaded";
713
+ metadata: {
714
+ schemaVersion: string;
715
+ producedBy: string;
716
+ originatedFrom: string;
717
+ correlationId: string;
718
+ };
719
+ timestamp: string;
720
+ payload: {
721
+ locale: string;
722
+ projectId: string;
723
+ contentItemCollectionId: string;
724
+ rawContentFileId: string;
725
+ };
726
+ deduplicationId?: string | null | undefined;
727
+ deduplicationOptions?: {
728
+ deduplicationWindowSeconds?: number | undefined;
729
+ lockTimeoutSeconds?: number | undefined;
730
+ acquireTimeoutSeconds?: number | undefined;
731
+ refreshIntervalSeconds?: number | undefined;
732
+ } | null | undefined;
733
+ }>;
734
+ publisherSchema: z.ZodObject<{
735
+ id: z.ZodOptional<z.ZodString>;
736
+ timestamp: z.ZodOptional<z.ZodString>;
737
+ type: z.ZodLiteral<"upload.content_item_collection_uploaded">;
738
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
740
+ payload: z.ZodObject<{
741
+ projectId: z.ZodString;
742
+ locale: z.ZodEffects<z.ZodString, string, string>;
743
+ contentItemCollectionId: z.ZodString;
744
+ rawContentFileId: z.ZodString;
745
+ }, "strip", z.ZodTypeAny, {
746
+ locale: string;
747
+ projectId: string;
748
+ contentItemCollectionId: string;
749
+ rawContentFileId: string;
750
+ }, {
751
+ locale: string;
752
+ projectId: string;
753
+ contentItemCollectionId: string;
754
+ rawContentFileId: string;
755
+ }>;
756
+ metadata: z.ZodOptional<z.ZodObject<{
757
+ schemaVersion: z.ZodOptional<z.ZodString>;
758
+ producedBy: z.ZodOptional<z.ZodString>;
759
+ originatedFrom: z.ZodOptional<z.ZodString>;
760
+ correlationId: z.ZodOptional<z.ZodString>;
761
+ }, "strip">>;
762
+ }, "strip", z.ZodTypeAny, {
763
+ type: "upload.content_item_collection_uploaded";
764
+ payload: {
765
+ locale: string;
766
+ projectId: string;
767
+ contentItemCollectionId: string;
768
+ rawContentFileId: string;
769
+ };
770
+ id?: string | undefined;
771
+ metadata?: {
772
+ schemaVersion?: string | undefined;
773
+ producedBy?: string | undefined;
774
+ originatedFrom?: string | undefined;
775
+ correlationId?: string | undefined;
776
+ } | undefined;
777
+ timestamp?: string | undefined;
778
+ deduplicationId?: string | null | undefined;
779
+ deduplicationOptions?: {
780
+ deduplicationWindowSeconds?: number | undefined;
781
+ lockTimeoutSeconds?: number | undefined;
782
+ acquireTimeoutSeconds?: number | undefined;
783
+ refreshIntervalSeconds?: number | undefined;
784
+ } | null | undefined;
785
+ }, {
786
+ type: "upload.content_item_collection_uploaded";
787
+ payload: {
788
+ locale: string;
789
+ projectId: string;
790
+ contentItemCollectionId: string;
791
+ rawContentFileId: string;
792
+ };
793
+ id?: string | undefined;
794
+ metadata?: {
795
+ schemaVersion?: string | undefined;
796
+ producedBy?: string | undefined;
797
+ originatedFrom?: string | undefined;
798
+ correlationId?: string | undefined;
799
+ } | undefined;
800
+ timestamp?: string | undefined;
801
+ deduplicationId?: string | null | undefined;
802
+ deduplicationOptions?: {
803
+ deduplicationWindowSeconds?: number | undefined;
804
+ lockTimeoutSeconds?: number | undefined;
805
+ acquireTimeoutSeconds?: number | undefined;
806
+ refreshIntervalSeconds?: number | undefined;
807
+ } | null | undefined;
808
+ }>;
809
+ };
810
+ 'upload.content_item_collection_parse_error': {
811
+ producedBy: string[];
812
+ snsTopic: "autopilot-upload";
813
+ consumerSchema: z.ZodObject<{
814
+ id: z.ZodString;
815
+ timestamp: z.ZodString;
816
+ type: z.ZodLiteral<"upload.content_item_collection_parse_error">;
817
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
818
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
819
+ payload: z.ZodObject<{
820
+ projectId: z.ZodString;
821
+ contentItemCollectionId: z.ZodString;
822
+ reason: z.ZodString;
823
+ }, "strip", z.ZodTypeAny, {
824
+ projectId: string;
825
+ reason: string;
826
+ contentItemCollectionId: string;
827
+ }, {
828
+ projectId: string;
829
+ reason: string;
830
+ contentItemCollectionId: string;
831
+ }>;
832
+ metadata: import("@message-queue-toolkit/schemas").MetadataObject;
833
+ }, "strip", z.ZodTypeAny, {
834
+ id: string;
835
+ type: "upload.content_item_collection_parse_error";
836
+ metadata: {
837
+ schemaVersion: string;
838
+ producedBy: string;
839
+ originatedFrom: string;
840
+ correlationId: string;
841
+ };
842
+ timestamp: string;
843
+ payload: {
844
+ projectId: string;
845
+ reason: string;
846
+ contentItemCollectionId: string;
847
+ };
848
+ deduplicationId?: string | null | undefined;
849
+ deduplicationOptions?: {
850
+ deduplicationWindowSeconds?: number | undefined;
851
+ lockTimeoutSeconds?: number | undefined;
852
+ acquireTimeoutSeconds?: number | undefined;
853
+ refreshIntervalSeconds?: number | undefined;
854
+ } | null | undefined;
855
+ }, {
856
+ id: string;
857
+ type: "upload.content_item_collection_parse_error";
858
+ metadata: {
859
+ schemaVersion: string;
860
+ producedBy: string;
861
+ originatedFrom: string;
862
+ correlationId: string;
863
+ };
864
+ timestamp: string;
865
+ payload: {
866
+ projectId: string;
867
+ reason: string;
868
+ contentItemCollectionId: string;
869
+ };
870
+ deduplicationId?: string | null | undefined;
871
+ deduplicationOptions?: {
872
+ deduplicationWindowSeconds?: number | undefined;
873
+ lockTimeoutSeconds?: number | undefined;
874
+ acquireTimeoutSeconds?: number | undefined;
875
+ refreshIntervalSeconds?: number | undefined;
876
+ } | null | undefined;
877
+ }>;
878
+ publisherSchema: z.ZodObject<{
879
+ id: z.ZodOptional<z.ZodString>;
880
+ timestamp: z.ZodOptional<z.ZodString>;
881
+ type: z.ZodLiteral<"upload.content_item_collection_parse_error">;
882
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
884
+ payload: z.ZodObject<{
885
+ projectId: z.ZodString;
886
+ contentItemCollectionId: z.ZodString;
887
+ reason: z.ZodString;
888
+ }, "strip", z.ZodTypeAny, {
889
+ projectId: string;
890
+ reason: string;
891
+ contentItemCollectionId: string;
892
+ }, {
893
+ projectId: string;
894
+ reason: string;
895
+ contentItemCollectionId: string;
896
+ }>;
897
+ metadata: z.ZodOptional<z.ZodObject<{
898
+ schemaVersion: z.ZodOptional<z.ZodString>;
899
+ producedBy: z.ZodOptional<z.ZodString>;
900
+ originatedFrom: z.ZodOptional<z.ZodString>;
901
+ correlationId: z.ZodOptional<z.ZodString>;
902
+ }, "strip">>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ type: "upload.content_item_collection_parse_error";
905
+ payload: {
906
+ projectId: string;
907
+ reason: string;
908
+ contentItemCollectionId: string;
909
+ };
910
+ id?: string | undefined;
911
+ metadata?: {
912
+ schemaVersion?: string | undefined;
913
+ producedBy?: string | undefined;
914
+ originatedFrom?: string | undefined;
915
+ correlationId?: string | undefined;
916
+ } | undefined;
917
+ timestamp?: string | undefined;
918
+ deduplicationId?: string | null | undefined;
919
+ deduplicationOptions?: {
920
+ deduplicationWindowSeconds?: number | undefined;
921
+ lockTimeoutSeconds?: number | undefined;
922
+ acquireTimeoutSeconds?: number | undefined;
923
+ refreshIntervalSeconds?: number | undefined;
924
+ } | null | undefined;
925
+ }, {
926
+ type: "upload.content_item_collection_parse_error";
927
+ payload: {
928
+ projectId: string;
929
+ reason: string;
930
+ contentItemCollectionId: string;
931
+ };
932
+ id?: string | undefined;
933
+ metadata?: {
934
+ schemaVersion?: string | undefined;
935
+ producedBy?: string | undefined;
936
+ originatedFrom?: string | undefined;
937
+ correlationId?: string | undefined;
938
+ } | undefined;
939
+ timestamp?: string | undefined;
940
+ deduplicationId?: string | null | undefined;
941
+ deduplicationOptions?: {
942
+ deduplicationWindowSeconds?: number | undefined;
943
+ lockTimeoutSeconds?: number | undefined;
944
+ acquireTimeoutSeconds?: number | undefined;
945
+ refreshIntervalSeconds?: number | undefined;
946
+ } | null | undefined;
947
+ }>;
948
+ };
949
+ 'upload.content_item_collection_parsed': {
950
+ producedBy: string[];
951
+ snsTopic: "autopilot-upload";
952
+ consumerSchema: z.ZodObject<{
953
+ id: z.ZodString;
954
+ timestamp: z.ZodString;
955
+ type: z.ZodLiteral<"upload.content_item_collection_parsed">;
956
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
958
+ payload: z.ZodObject<{
959
+ projectId: z.ZodString;
960
+ contentItemCollectionId: z.ZodString;
961
+ parsedContentFileId: z.ZodString;
962
+ parsedItemIdentifiers: z.ZodArray<z.ZodString, "many">;
963
+ parsingFailedItemsCount: z.ZodNumber;
964
+ }, "strip", z.ZodTypeAny, {
965
+ projectId: string;
966
+ contentItemCollectionId: string;
967
+ parsedContentFileId: string;
968
+ parsedItemIdentifiers: string[];
969
+ parsingFailedItemsCount: number;
970
+ }, {
971
+ projectId: string;
972
+ contentItemCollectionId: string;
973
+ parsedContentFileId: string;
974
+ parsedItemIdentifiers: string[];
975
+ parsingFailedItemsCount: number;
976
+ }>;
977
+ metadata: import("@message-queue-toolkit/schemas").MetadataObject;
978
+ }, "strip", z.ZodTypeAny, {
979
+ id: string;
980
+ type: "upload.content_item_collection_parsed";
981
+ metadata: {
982
+ schemaVersion: string;
983
+ producedBy: string;
984
+ originatedFrom: string;
985
+ correlationId: string;
986
+ };
987
+ timestamp: string;
988
+ payload: {
989
+ projectId: string;
990
+ contentItemCollectionId: string;
991
+ parsedContentFileId: string;
992
+ parsedItemIdentifiers: string[];
993
+ parsingFailedItemsCount: number;
994
+ };
995
+ deduplicationId?: string | null | undefined;
996
+ deduplicationOptions?: {
997
+ deduplicationWindowSeconds?: number | undefined;
998
+ lockTimeoutSeconds?: number | undefined;
999
+ acquireTimeoutSeconds?: number | undefined;
1000
+ refreshIntervalSeconds?: number | undefined;
1001
+ } | null | undefined;
1002
+ }, {
1003
+ id: string;
1004
+ type: "upload.content_item_collection_parsed";
1005
+ metadata: {
1006
+ schemaVersion: string;
1007
+ producedBy: string;
1008
+ originatedFrom: string;
1009
+ correlationId: string;
1010
+ };
1011
+ timestamp: string;
1012
+ payload: {
1013
+ projectId: string;
1014
+ contentItemCollectionId: string;
1015
+ parsedContentFileId: string;
1016
+ parsedItemIdentifiers: string[];
1017
+ parsingFailedItemsCount: number;
1018
+ };
1019
+ deduplicationId?: string | null | undefined;
1020
+ deduplicationOptions?: {
1021
+ deduplicationWindowSeconds?: number | undefined;
1022
+ lockTimeoutSeconds?: number | undefined;
1023
+ acquireTimeoutSeconds?: number | undefined;
1024
+ refreshIntervalSeconds?: number | undefined;
1025
+ } | null | undefined;
1026
+ }>;
1027
+ publisherSchema: z.ZodObject<{
1028
+ id: z.ZodOptional<z.ZodString>;
1029
+ timestamp: z.ZodOptional<z.ZodString>;
1030
+ type: z.ZodLiteral<"upload.content_item_collection_parsed">;
1031
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1032
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1033
+ payload: z.ZodObject<{
1034
+ projectId: z.ZodString;
1035
+ contentItemCollectionId: z.ZodString;
1036
+ parsedContentFileId: z.ZodString;
1037
+ parsedItemIdentifiers: z.ZodArray<z.ZodString, "many">;
1038
+ parsingFailedItemsCount: z.ZodNumber;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ projectId: string;
1041
+ contentItemCollectionId: string;
1042
+ parsedContentFileId: string;
1043
+ parsedItemIdentifiers: string[];
1044
+ parsingFailedItemsCount: number;
1045
+ }, {
1046
+ projectId: string;
1047
+ contentItemCollectionId: string;
1048
+ parsedContentFileId: string;
1049
+ parsedItemIdentifiers: string[];
1050
+ parsingFailedItemsCount: number;
1051
+ }>;
1052
+ metadata: z.ZodOptional<z.ZodObject<{
1053
+ schemaVersion: z.ZodOptional<z.ZodString>;
1054
+ producedBy: z.ZodOptional<z.ZodString>;
1055
+ originatedFrom: z.ZodOptional<z.ZodString>;
1056
+ correlationId: z.ZodOptional<z.ZodString>;
1057
+ }, "strip">>;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ type: "upload.content_item_collection_parsed";
1060
+ payload: {
1061
+ projectId: string;
1062
+ contentItemCollectionId: string;
1063
+ parsedContentFileId: string;
1064
+ parsedItemIdentifiers: string[];
1065
+ parsingFailedItemsCount: number;
1066
+ };
1067
+ id?: string | undefined;
1068
+ metadata?: {
1069
+ schemaVersion?: string | undefined;
1070
+ producedBy?: string | undefined;
1071
+ originatedFrom?: string | undefined;
1072
+ correlationId?: string | undefined;
1073
+ } | undefined;
1074
+ timestamp?: string | undefined;
1075
+ deduplicationId?: string | null | undefined;
1076
+ deduplicationOptions?: {
1077
+ deduplicationWindowSeconds?: number | undefined;
1078
+ lockTimeoutSeconds?: number | undefined;
1079
+ acquireTimeoutSeconds?: number | undefined;
1080
+ refreshIntervalSeconds?: number | undefined;
1081
+ } | null | undefined;
1082
+ }, {
1083
+ type: "upload.content_item_collection_parsed";
1084
+ payload: {
1085
+ projectId: string;
1086
+ contentItemCollectionId: string;
1087
+ parsedContentFileId: string;
1088
+ parsedItemIdentifiers: string[];
1089
+ parsingFailedItemsCount: number;
1090
+ };
1091
+ id?: string | undefined;
1092
+ metadata?: {
1093
+ schemaVersion?: string | undefined;
1094
+ producedBy?: string | undefined;
1095
+ originatedFrom?: string | undefined;
1096
+ correlationId?: string | undefined;
1097
+ } | undefined;
1098
+ timestamp?: string | undefined;
1099
+ deduplicationId?: string | null | undefined;
1100
+ deduplicationOptions?: {
1101
+ deduplicationWindowSeconds?: number | undefined;
1102
+ lockTimeoutSeconds?: number | undefined;
1103
+ acquireTimeoutSeconds?: number | undefined;
1104
+ refreshIntervalSeconds?: number | undefined;
1105
+ } | null | undefined;
1106
+ }>;
1107
+ };
1108
+ 'upload.content_item_collection_upload_finished': {
1109
+ producedBy: string[];
1110
+ snsTopic: "autopilot-upload";
1111
+ consumerSchema: z.ZodObject<{
1112
+ id: z.ZodString;
1113
+ timestamp: z.ZodString;
1114
+ type: z.ZodLiteral<"upload.content_item_collection_upload_finished">;
1115
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1116
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1117
+ payload: z.ZodObject<{
1118
+ contentItemCollectionId: z.ZodString;
1119
+ result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ contentItemCollectionId: string;
1122
+ result: "SUCCESS" | "FAILURE";
1123
+ }, {
1124
+ contentItemCollectionId: string;
1125
+ result: "SUCCESS" | "FAILURE";
1126
+ }>;
1127
+ metadata: import("@message-queue-toolkit/schemas").MetadataObject;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ id: string;
1130
+ type: "upload.content_item_collection_upload_finished";
1131
+ metadata: {
1132
+ schemaVersion: string;
1133
+ producedBy: string;
1134
+ originatedFrom: string;
1135
+ correlationId: string;
1136
+ };
1137
+ timestamp: string;
1138
+ payload: {
1139
+ contentItemCollectionId: string;
1140
+ result: "SUCCESS" | "FAILURE";
1141
+ };
1142
+ deduplicationId?: string | null | undefined;
1143
+ deduplicationOptions?: {
1144
+ deduplicationWindowSeconds?: number | undefined;
1145
+ lockTimeoutSeconds?: number | undefined;
1146
+ acquireTimeoutSeconds?: number | undefined;
1147
+ refreshIntervalSeconds?: number | undefined;
1148
+ } | null | undefined;
1149
+ }, {
1150
+ id: string;
1151
+ type: "upload.content_item_collection_upload_finished";
1152
+ metadata: {
1153
+ schemaVersion: string;
1154
+ producedBy: string;
1155
+ originatedFrom: string;
1156
+ correlationId: string;
1157
+ };
1158
+ timestamp: string;
1159
+ payload: {
1160
+ contentItemCollectionId: string;
1161
+ result: "SUCCESS" | "FAILURE";
1162
+ };
1163
+ deduplicationId?: string | null | undefined;
1164
+ deduplicationOptions?: {
1165
+ deduplicationWindowSeconds?: number | undefined;
1166
+ lockTimeoutSeconds?: number | undefined;
1167
+ acquireTimeoutSeconds?: number | undefined;
1168
+ refreshIntervalSeconds?: number | undefined;
1169
+ } | null | undefined;
1170
+ }>;
1171
+ publisherSchema: z.ZodObject<{
1172
+ id: z.ZodOptional<z.ZodString>;
1173
+ timestamp: z.ZodOptional<z.ZodString>;
1174
+ type: z.ZodLiteral<"upload.content_item_collection_upload_finished">;
1175
+ deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1176
+ deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1177
+ payload: z.ZodObject<{
1178
+ contentItemCollectionId: z.ZodString;
1179
+ result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ contentItemCollectionId: string;
1182
+ result: "SUCCESS" | "FAILURE";
1183
+ }, {
1184
+ contentItemCollectionId: string;
1185
+ result: "SUCCESS" | "FAILURE";
1186
+ }>;
1187
+ metadata: z.ZodOptional<z.ZodObject<{
1188
+ schemaVersion: z.ZodOptional<z.ZodString>;
1189
+ producedBy: z.ZodOptional<z.ZodString>;
1190
+ originatedFrom: z.ZodOptional<z.ZodString>;
1191
+ correlationId: z.ZodOptional<z.ZodString>;
1192
+ }, "strip">>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ type: "upload.content_item_collection_upload_finished";
1195
+ payload: {
1196
+ contentItemCollectionId: string;
1197
+ result: "SUCCESS" | "FAILURE";
1198
+ };
1199
+ id?: string | undefined;
1200
+ metadata?: {
1201
+ schemaVersion?: string | undefined;
1202
+ producedBy?: string | undefined;
1203
+ originatedFrom?: string | undefined;
1204
+ correlationId?: string | undefined;
1205
+ } | undefined;
1206
+ timestamp?: string | undefined;
1207
+ deduplicationId?: string | null | undefined;
1208
+ deduplicationOptions?: {
1209
+ deduplicationWindowSeconds?: number | undefined;
1210
+ lockTimeoutSeconds?: number | undefined;
1211
+ acquireTimeoutSeconds?: number | undefined;
1212
+ refreshIntervalSeconds?: number | undefined;
1213
+ } | null | undefined;
1214
+ }, {
1215
+ type: "upload.content_item_collection_upload_finished";
1216
+ payload: {
1217
+ contentItemCollectionId: string;
1218
+ result: "SUCCESS" | "FAILURE";
1219
+ };
1220
+ id?: string | undefined;
1221
+ metadata?: {
1222
+ schemaVersion?: string | undefined;
1223
+ producedBy?: string | undefined;
1224
+ originatedFrom?: string | undefined;
1225
+ correlationId?: string | undefined;
1226
+ } | undefined;
1227
+ timestamp?: string | undefined;
1228
+ deduplicationId?: string | null | undefined;
1229
+ deduplicationOptions?: {
1230
+ deduplicationWindowSeconds?: number | undefined;
1231
+ lockTimeoutSeconds?: number | undefined;
1232
+ acquireTimeoutSeconds?: number | undefined;
1233
+ refreshIntervalSeconds?: number | undefined;
1234
+ } | null | undefined;
1235
+ }>;
1236
+ };
1237
+ };
1238
+ export type UploadContentFileUploadedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_file_uploaded']>;
1239
+ export type UploadContentFileUploadedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_file_uploaded']>;
1240
+ export type UploadContentFileUploadedEventPayload = z.infer<typeof UPLOAD_CONTENT_FILE_UPLOADED_EVENT_SCHEMA>;
1241
+ export type UploadContentParsedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_file_parsed']>;
1242
+ export type UploadContentParsedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_file_parsed']>;
1243
+ export type UploadContentItemCollectionUploadedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_item_collection_uploaded']>;
1244
+ export type UploadedContentItemCollectionConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_item_collection_uploaded']>;
1245
+ export type UploadContentItemCollectionUploadedEventPayload = z.infer<typeof UPLOAD_CONTENT_ITEM_COLLECTION_UPLOADED_EVENT_SCHEMA>;
1246
+ export type UploadContentItemCollectionParseErrorEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_item_collection_parse_error']>;
1247
+ export type UploadContentItemCollectionParseErrorConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_item_collection_parse_error']>;
1248
+ export type UploadContentItemCollectionParseErrorEventPayload = z.infer<typeof UPLOAD_CONTENT_ITEM_COLLECTION_PARSE_ERROR_EVENT_SCHEMA>;
1249
+ export type UploadContentItemCollectionParsedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_item_collection_parsed']>;
1250
+ export type UploadContentItemCollectionParsedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_item_collection_parsed']>;
1251
+ export type UploadContentItemCollectionParsedEventPayload = z.infer<typeof UPLOAD_CONTENT_ITEM_COLLECTION_PARSED_EVENT_SCHEMA>;
1252
+ export type UploadContentItemCollectionUploadFinishedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_item_collection_upload_finished']>;
1253
+ export type UploadContentItemCollectionUploadFinishedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_item_collection_upload_finished']>;
1254
+ export type UploadContentItemCollectionUploadFinishedEventPayload = z.infer<typeof UPLOAD_CONTENT_ITEM_COLLECTION_UPLOAD_FINISHED_EVENT_SCHEMA>;
1255
+ //# sourceMappingURL=upload.d.ts.map