@lokalise/content-conversion-schemas 1.0.0 → 2.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.
Files changed (37) hide show
  1. package/dist/api/contentObjects.d.ts +112 -328
  2. package/dist/api/contentObjects.d.ts.map +1 -1
  3. package/dist/api/contentObjects.js +22 -4
  4. package/dist/api/contentObjects.js.map +1 -1
  5. package/dist/api/contentObjectsNew.d.ts +252 -0
  6. package/dist/api/contentObjectsNew.d.ts.map +1 -0
  7. package/dist/api/contentObjectsNew.js +79 -0
  8. package/dist/api/contentObjectsNew.js.map +1 -0
  9. package/dist/api/enums.d.ts +27 -0
  10. package/dist/api/enums.d.ts.map +1 -1
  11. package/dist/api/enums.js +22 -0
  12. package/dist/api/enums.js.map +1 -1
  13. package/dist/api/exportObjects.d.ts +237 -1369
  14. package/dist/api/exportObjects.d.ts.map +1 -1
  15. package/dist/api/exportObjects.js +37 -38
  16. package/dist/api/exportObjects.js.map +1 -1
  17. package/dist/common.d.ts +9 -7
  18. package/dist/common.d.ts.map +1 -1
  19. package/dist/common.js +9 -10
  20. package/dist/common.js.map +1 -1
  21. package/dist/events/conversion.d.ts +488 -0
  22. package/dist/events/conversion.d.ts.map +1 -0
  23. package/dist/events/conversion.js +60 -0
  24. package/dist/events/conversion.js.map +1 -0
  25. package/dist/events/export.d.ts +51 -4182
  26. package/dist/events/export.d.ts.map +1 -1
  27. package/dist/events/export.js +12 -192
  28. package/dist/events/export.js.map +1 -1
  29. package/dist/events/upload.d.ts +119 -1063
  30. package/dist/events/upload.d.ts.map +1 -1
  31. package/dist/events/upload.js +21 -29
  32. package/dist/events/upload.js.map +1 -1
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +2 -0
  36. package/dist/index.js.map +1 -1
  37. package/package.json +12 -9
@@ -1,4279 +1,148 @@
1
1
  import { type ConsumerMessageSchema, type PublisherMessageSchema } from '@message-queue-toolkit/schemas';
2
- import { z } from 'zod';
2
+ import { z } from 'zod/v4';
3
3
  declare const EXPORT_PROCESS_LANGUAGE: z.ZodObject<{
4
- id: z.ZodString;
4
+ id: z.ZodGUID;
5
5
  locale: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- id: string;
8
- locale: string;
9
- }, {
10
- id: string;
11
- locale: string;
12
- }>;
6
+ }, z.core.$strip>;
13
7
  export type ExportProcessLanguage = z.infer<typeof EXPORT_PROCESS_LANGUAGE>;
14
- export declare const EXPORTED_FILE_METADATA: z.ZodObject<{
15
- contentGatheringStartTimestamp: z.ZodOptional<z.ZodString>;
16
- itemIds: z.ZodArray<z.ZodString, "atleastone">;
17
- }, "strip", z.ZodTypeAny, {
18
- itemIds: [string, ...string[]];
19
- contentGatheringStartTimestamp?: string | undefined;
20
- }, {
21
- itemIds: [string, ...string[]];
22
- contentGatheringStartTimestamp?: string | undefined;
23
- }>;
24
- export type ExportedFileMetadata = z.infer<typeof EXPORTED_FILE_METADATA>;
25
- declare const EXPORT_UPLOADED_FILE: z.ZodObject<{
26
- fileId: z.ZodString;
27
- metadataStorageId: z.ZodString;
28
- language: z.ZodObject<{
29
- id: z.ZodString;
30
- locale: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- id: string;
33
- locale: string;
34
- }, {
35
- id: string;
36
- locale: string;
37
- }>;
38
- totalItemsCount: z.ZodNumber;
39
- }, "strip", z.ZodTypeAny, {
40
- language: {
41
- id: string;
42
- locale: string;
43
- };
44
- fileId: string;
45
- metadataStorageId: string;
46
- totalItemsCount: number;
47
- }, {
48
- language: {
49
- id: string;
50
- locale: string;
51
- };
52
- fileId: string;
53
- metadataStorageId: string;
54
- totalItemsCount: number;
55
- }>;
56
- export type ExportUploadedFile = z.infer<typeof EXPORT_UPLOADED_FILE>;
57
8
  export declare const ExportProcessEvents: {
58
- 'export_process.data_gathering_completed': {
59
- snsTopic: "autopilot-export_process";
60
- producedBy: string[];
61
- consumerSchema: z.ZodObject<{
62
- id: z.ZodString;
63
- timestamp: z.ZodString;
64
- type: z.ZodLiteral<"export_process.data_gathering_completed">;
65
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
67
- payload: z.ZodObject<{
68
- processId: z.ZodString;
69
- projectId: z.ZodString;
70
- languages: z.ZodArray<z.ZodObject<{
71
- id: z.ZodString;
72
- locale: z.ZodString;
73
- }, "strip", z.ZodTypeAny, {
74
- id: string;
75
- locale: string;
76
- }, {
77
- id: string;
78
- locale: string;
79
- }>, "atleastone">;
80
- totalItemsCount: z.ZodNumber;
81
- totalContentUnitsCount: z.ZodNumber;
82
- totalBatches: z.ZodNumber;
83
- uploadedFiles: z.ZodArray<z.ZodObject<{
84
- fileId: z.ZodString;
85
- metadataStorageId: z.ZodString;
86
- language: z.ZodObject<{
87
- id: z.ZodString;
88
- locale: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- id: string;
91
- locale: string;
92
- }, {
93
- id: string;
94
- locale: string;
95
- }>;
96
- totalItemsCount: z.ZodNumber;
97
- }, "strip", z.ZodTypeAny, {
98
- language: {
99
- id: string;
100
- locale: string;
101
- };
102
- fileId: string;
103
- metadataStorageId: string;
104
- totalItemsCount: number;
105
- }, {
106
- language: {
107
- id: string;
108
- locale: string;
109
- };
110
- fileId: string;
111
- metadataStorageId: string;
112
- totalItemsCount: number;
113
- }>, "many">;
114
- }, "strip", z.ZodTypeAny, {
115
- languages: [{
116
- id: string;
117
- locale: string;
118
- }, ...{
119
- id: string;
120
- locale: string;
121
- }[]];
122
- projectId: string;
123
- processId: string;
124
- totalItemsCount: number;
125
- totalContentUnitsCount: number;
126
- totalBatches: number;
127
- uploadedFiles: {
128
- language: {
129
- id: string;
130
- locale: string;
131
- };
132
- fileId: string;
133
- metadataStorageId: string;
134
- totalItemsCount: number;
135
- }[];
136
- }, {
137
- languages: [{
138
- id: string;
139
- locale: string;
140
- }, ...{
141
- id: string;
142
- locale: string;
143
- }[]];
144
- projectId: string;
145
- processId: string;
146
- totalItemsCount: number;
147
- totalContentUnitsCount: number;
148
- totalBatches: number;
149
- uploadedFiles: {
150
- language: {
151
- id: string;
152
- locale: string;
153
- };
154
- fileId: string;
155
- metadataStorageId: string;
156
- totalItemsCount: number;
157
- }[];
158
- }>;
159
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
160
- }, "strip", z.ZodTypeAny, {
161
- id: string;
162
- type: "export_process.data_gathering_completed";
163
- metadata: {
164
- schemaVersion: string;
165
- producedBy: string;
166
- originatedFrom: string;
167
- correlationId: string;
168
- };
169
- timestamp: string;
170
- payload: {
171
- languages: [{
172
- id: string;
173
- locale: string;
174
- }, ...{
175
- id: string;
176
- locale: string;
177
- }[]];
178
- projectId: string;
179
- processId: string;
180
- totalItemsCount: number;
181
- totalContentUnitsCount: number;
182
- totalBatches: number;
183
- uploadedFiles: {
184
- language: {
185
- id: string;
186
- locale: string;
187
- };
188
- fileId: string;
189
- metadataStorageId: string;
190
- totalItemsCount: number;
191
- }[];
192
- };
193
- deduplicationId?: string | null | undefined;
194
- deduplicationOptions?: {
195
- deduplicationWindowSeconds?: number | undefined;
196
- lockTimeoutSeconds?: number | undefined;
197
- acquireTimeoutSeconds?: number | undefined;
198
- refreshIntervalSeconds?: number | undefined;
199
- } | null | undefined;
200
- }, {
201
- id: string;
202
- type: "export_process.data_gathering_completed";
203
- metadata: {
204
- schemaVersion: string;
205
- producedBy: string;
206
- originatedFrom: string;
207
- correlationId: string;
208
- };
209
- timestamp: string;
210
- payload: {
211
- languages: [{
212
- id: string;
213
- locale: string;
214
- }, ...{
215
- id: string;
216
- locale: string;
217
- }[]];
218
- projectId: string;
219
- processId: string;
220
- totalItemsCount: number;
221
- totalContentUnitsCount: number;
222
- totalBatches: number;
223
- uploadedFiles: {
224
- language: {
225
- id: string;
226
- locale: string;
227
- };
228
- fileId: string;
229
- metadataStorageId: string;
230
- totalItemsCount: number;
231
- }[];
232
- };
233
- deduplicationId?: string | null | undefined;
234
- deduplicationOptions?: {
235
- deduplicationWindowSeconds?: number | undefined;
236
- lockTimeoutSeconds?: number | undefined;
237
- acquireTimeoutSeconds?: number | undefined;
238
- refreshIntervalSeconds?: number | undefined;
239
- } | null | undefined;
240
- }>;
241
- publisherSchema: z.ZodObject<{
242
- id: z.ZodOptional<z.ZodString>;
243
- timestamp: z.ZodOptional<z.ZodString>;
244
- type: z.ZodLiteral<"export_process.data_gathering_completed">;
245
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
247
- payload: z.ZodObject<{
248
- processId: z.ZodString;
249
- projectId: z.ZodString;
250
- languages: z.ZodArray<z.ZodObject<{
251
- id: z.ZodString;
252
- locale: z.ZodString;
253
- }, "strip", z.ZodTypeAny, {
254
- id: string;
255
- locale: string;
256
- }, {
257
- id: string;
258
- locale: string;
259
- }>, "atleastone">;
260
- totalItemsCount: z.ZodNumber;
261
- totalContentUnitsCount: z.ZodNumber;
262
- totalBatches: z.ZodNumber;
263
- uploadedFiles: z.ZodArray<z.ZodObject<{
264
- fileId: z.ZodString;
265
- metadataStorageId: z.ZodString;
266
- language: z.ZodObject<{
267
- id: z.ZodString;
268
- locale: z.ZodString;
269
- }, "strip", z.ZodTypeAny, {
270
- id: string;
271
- locale: string;
272
- }, {
273
- id: string;
274
- locale: string;
275
- }>;
276
- totalItemsCount: z.ZodNumber;
277
- }, "strip", z.ZodTypeAny, {
278
- language: {
279
- id: string;
280
- locale: string;
281
- };
282
- fileId: string;
283
- metadataStorageId: string;
284
- totalItemsCount: number;
285
- }, {
286
- language: {
287
- id: string;
288
- locale: string;
289
- };
290
- fileId: string;
291
- metadataStorageId: string;
292
- totalItemsCount: number;
293
- }>, "many">;
294
- }, "strip", z.ZodTypeAny, {
295
- languages: [{
296
- id: string;
297
- locale: string;
298
- }, ...{
299
- id: string;
300
- locale: string;
301
- }[]];
302
- projectId: string;
303
- processId: string;
304
- totalItemsCount: number;
305
- totalContentUnitsCount: number;
306
- totalBatches: number;
307
- uploadedFiles: {
308
- language: {
309
- id: string;
310
- locale: string;
311
- };
312
- fileId: string;
313
- metadataStorageId: string;
314
- totalItemsCount: number;
315
- }[];
316
- }, {
317
- languages: [{
318
- id: string;
319
- locale: string;
320
- }, ...{
321
- id: string;
322
- locale: string;
323
- }[]];
324
- projectId: string;
325
- processId: string;
326
- totalItemsCount: number;
327
- totalContentUnitsCount: number;
328
- totalBatches: number;
329
- uploadedFiles: {
330
- language: {
331
- id: string;
332
- locale: string;
333
- };
334
- fileId: string;
335
- metadataStorageId: string;
336
- totalItemsCount: number;
337
- }[];
338
- }>;
339
- metadata: z.ZodOptional<z.ZodObject<{
340
- schemaVersion: z.ZodOptional<z.ZodString>;
341
- producedBy: z.ZodOptional<z.ZodString>;
342
- originatedFrom: z.ZodOptional<z.ZodString>;
343
- correlationId: z.ZodOptional<z.ZodString>;
344
- }, "strip">>;
345
- }, "strip", z.ZodTypeAny, {
346
- type: "export_process.data_gathering_completed";
347
- payload: {
348
- languages: [{
349
- id: string;
350
- locale: string;
351
- }, ...{
352
- id: string;
353
- locale: string;
354
- }[]];
355
- projectId: string;
356
- processId: string;
357
- totalItemsCount: number;
358
- totalContentUnitsCount: number;
359
- totalBatches: number;
360
- uploadedFiles: {
361
- language: {
362
- id: string;
363
- locale: string;
364
- };
365
- fileId: string;
366
- metadataStorageId: string;
367
- totalItemsCount: number;
368
- }[];
369
- };
370
- id?: string | undefined;
371
- metadata?: {
372
- schemaVersion?: string | undefined;
373
- producedBy?: string | undefined;
374
- originatedFrom?: string | undefined;
375
- correlationId?: string | undefined;
376
- } | undefined;
377
- timestamp?: string | undefined;
378
- deduplicationId?: string | null | undefined;
379
- deduplicationOptions?: {
380
- deduplicationWindowSeconds?: number | undefined;
381
- lockTimeoutSeconds?: number | undefined;
382
- acquireTimeoutSeconds?: number | undefined;
383
- refreshIntervalSeconds?: number | undefined;
384
- } | null | undefined;
385
- }, {
386
- type: "export_process.data_gathering_completed";
387
- payload: {
388
- languages: [{
389
- id: string;
390
- locale: string;
391
- }, ...{
392
- id: string;
393
- locale: string;
394
- }[]];
395
- projectId: string;
396
- processId: string;
397
- totalItemsCount: number;
398
- totalContentUnitsCount: number;
399
- totalBatches: number;
400
- uploadedFiles: {
401
- language: {
402
- id: string;
403
- locale: string;
404
- };
405
- fileId: string;
406
- metadataStorageId: string;
407
- totalItemsCount: number;
408
- }[];
409
- };
410
- id?: string | undefined;
411
- metadata?: {
412
- schemaVersion?: string | undefined;
413
- producedBy?: string | undefined;
414
- originatedFrom?: string | undefined;
415
- correlationId?: string | undefined;
416
- } | undefined;
417
- timestamp?: string | undefined;
418
- deduplicationId?: string | null | undefined;
419
- deduplicationOptions?: {
420
- deduplicationWindowSeconds?: number | undefined;
421
- lockTimeoutSeconds?: number | undefined;
422
- acquireTimeoutSeconds?: number | undefined;
423
- refreshIntervalSeconds?: number | undefined;
424
- } | null | undefined;
425
- }>;
426
- };
427
- 'export_process.data_gathering_failed': {
428
- snsTopic: "autopilot-export_process";
429
- producedBy: string[];
430
- consumerSchema: z.ZodObject<{
431
- id: z.ZodString;
432
- timestamp: z.ZodString;
433
- type: z.ZodLiteral<"export_process.data_gathering_failed">;
434
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
436
- payload: z.ZodObject<{
437
- processId: z.ZodString;
438
- projectId: z.ZodString;
439
- languages: z.ZodArray<z.ZodObject<{
440
- id: z.ZodString;
441
- locale: z.ZodString;
442
- }, "strip", z.ZodTypeAny, {
443
- id: string;
444
- locale: string;
445
- }, {
446
- id: string;
447
- locale: string;
448
- }>, "many">;
449
- totalItemsCount: z.ZodNumber;
450
- totalContentUnitsCount: z.ZodNumber;
451
- totalBatches: z.ZodNumber;
452
- uploadedFiles: z.ZodArray<z.ZodObject<{
453
- fileId: z.ZodString;
454
- metadataStorageId: z.ZodString;
455
- language: z.ZodObject<{
456
- id: z.ZodString;
457
- locale: z.ZodString;
458
- }, "strip", z.ZodTypeAny, {
459
- id: string;
460
- locale: string;
461
- }, {
462
- id: string;
463
- locale: string;
464
- }>;
465
- totalItemsCount: z.ZodNumber;
466
- }, "strip", z.ZodTypeAny, {
467
- language: {
468
- id: string;
469
- locale: string;
470
- };
471
- fileId: string;
472
- metadataStorageId: string;
473
- totalItemsCount: number;
474
- }, {
475
- language: {
476
- id: string;
477
- locale: string;
478
- };
479
- fileId: string;
480
- metadataStorageId: string;
481
- totalItemsCount: number;
482
- }>, "many">;
483
- }, "strip", z.ZodTypeAny, {
484
- languages: {
485
- id: string;
486
- locale: string;
487
- }[];
488
- projectId: string;
489
- processId: string;
490
- totalItemsCount: number;
491
- totalContentUnitsCount: number;
492
- totalBatches: number;
493
- uploadedFiles: {
494
- language: {
495
- id: string;
496
- locale: string;
497
- };
498
- fileId: string;
499
- metadataStorageId: string;
500
- totalItemsCount: number;
501
- }[];
502
- }, {
503
- languages: {
504
- id: string;
505
- locale: string;
506
- }[];
507
- projectId: string;
508
- processId: string;
509
- totalItemsCount: number;
510
- totalContentUnitsCount: number;
511
- totalBatches: number;
512
- uploadedFiles: {
513
- language: {
514
- id: string;
515
- locale: string;
516
- };
517
- fileId: string;
518
- metadataStorageId: string;
519
- totalItemsCount: number;
520
- }[];
521
- }>;
522
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
523
- }, "strip", z.ZodTypeAny, {
524
- id: string;
525
- type: "export_process.data_gathering_failed";
526
- metadata: {
527
- schemaVersion: string;
528
- producedBy: string;
529
- originatedFrom: string;
530
- correlationId: string;
531
- };
532
- timestamp: string;
533
- payload: {
534
- languages: {
535
- id: string;
536
- locale: string;
537
- }[];
538
- projectId: string;
539
- processId: string;
540
- totalItemsCount: number;
541
- totalContentUnitsCount: number;
542
- totalBatches: number;
543
- uploadedFiles: {
544
- language: {
545
- id: string;
546
- locale: string;
547
- };
548
- fileId: string;
549
- metadataStorageId: string;
550
- totalItemsCount: number;
551
- }[];
552
- };
553
- deduplicationId?: string | null | undefined;
554
- deduplicationOptions?: {
555
- deduplicationWindowSeconds?: number | undefined;
556
- lockTimeoutSeconds?: number | undefined;
557
- acquireTimeoutSeconds?: number | undefined;
558
- refreshIntervalSeconds?: number | undefined;
559
- } | null | undefined;
560
- }, {
561
- id: string;
562
- type: "export_process.data_gathering_failed";
563
- metadata: {
564
- schemaVersion: string;
565
- producedBy: string;
566
- originatedFrom: string;
567
- correlationId: string;
568
- };
569
- timestamp: string;
570
- payload: {
571
- languages: {
572
- id: string;
573
- locale: string;
574
- }[];
575
- projectId: string;
576
- processId: string;
577
- totalItemsCount: number;
578
- totalContentUnitsCount: number;
579
- totalBatches: number;
580
- uploadedFiles: {
581
- language: {
582
- id: string;
583
- locale: string;
584
- };
585
- fileId: string;
586
- metadataStorageId: string;
587
- totalItemsCount: number;
588
- }[];
589
- };
590
- deduplicationId?: string | null | undefined;
591
- deduplicationOptions?: {
592
- deduplicationWindowSeconds?: number | undefined;
593
- lockTimeoutSeconds?: number | undefined;
594
- acquireTimeoutSeconds?: number | undefined;
595
- refreshIntervalSeconds?: number | undefined;
596
- } | null | undefined;
597
- }>;
598
- publisherSchema: z.ZodObject<{
599
- id: z.ZodOptional<z.ZodString>;
600
- timestamp: z.ZodOptional<z.ZodString>;
601
- type: z.ZodLiteral<"export_process.data_gathering_failed">;
602
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
604
- payload: z.ZodObject<{
605
- processId: z.ZodString;
606
- projectId: z.ZodString;
607
- languages: z.ZodArray<z.ZodObject<{
608
- id: z.ZodString;
609
- locale: z.ZodString;
610
- }, "strip", z.ZodTypeAny, {
611
- id: string;
612
- locale: string;
613
- }, {
614
- id: string;
615
- locale: string;
616
- }>, "many">;
617
- totalItemsCount: z.ZodNumber;
618
- totalContentUnitsCount: z.ZodNumber;
619
- totalBatches: z.ZodNumber;
620
- uploadedFiles: z.ZodArray<z.ZodObject<{
621
- fileId: z.ZodString;
622
- metadataStorageId: z.ZodString;
623
- language: z.ZodObject<{
624
- id: z.ZodString;
625
- locale: z.ZodString;
626
- }, "strip", z.ZodTypeAny, {
627
- id: string;
628
- locale: string;
629
- }, {
630
- id: string;
631
- locale: string;
632
- }>;
633
- totalItemsCount: z.ZodNumber;
634
- }, "strip", z.ZodTypeAny, {
635
- language: {
636
- id: string;
637
- locale: string;
638
- };
639
- fileId: string;
640
- metadataStorageId: string;
641
- totalItemsCount: number;
642
- }, {
643
- language: {
644
- id: string;
645
- locale: string;
646
- };
647
- fileId: string;
648
- metadataStorageId: string;
649
- totalItemsCount: number;
650
- }>, "many">;
651
- }, "strip", z.ZodTypeAny, {
652
- languages: {
653
- id: string;
654
- locale: string;
655
- }[];
656
- projectId: string;
657
- processId: string;
658
- totalItemsCount: number;
659
- totalContentUnitsCount: number;
660
- totalBatches: number;
661
- uploadedFiles: {
662
- language: {
663
- id: string;
664
- locale: string;
665
- };
666
- fileId: string;
667
- metadataStorageId: string;
668
- totalItemsCount: number;
669
- }[];
670
- }, {
671
- languages: {
672
- id: string;
673
- locale: string;
674
- }[];
675
- projectId: string;
676
- processId: string;
677
- totalItemsCount: number;
678
- totalContentUnitsCount: number;
679
- totalBatches: number;
680
- uploadedFiles: {
681
- language: {
682
- id: string;
683
- locale: string;
684
- };
685
- fileId: string;
686
- metadataStorageId: string;
687
- totalItemsCount: number;
688
- }[];
689
- }>;
690
- metadata: z.ZodOptional<z.ZodObject<{
691
- schemaVersion: z.ZodOptional<z.ZodString>;
692
- producedBy: z.ZodOptional<z.ZodString>;
693
- originatedFrom: z.ZodOptional<z.ZodString>;
694
- correlationId: z.ZodOptional<z.ZodString>;
695
- }, "strip">>;
696
- }, "strip", z.ZodTypeAny, {
697
- type: "export_process.data_gathering_failed";
698
- payload: {
699
- languages: {
700
- id: string;
701
- locale: string;
702
- }[];
703
- projectId: string;
704
- processId: string;
705
- totalItemsCount: number;
706
- totalContentUnitsCount: number;
707
- totalBatches: number;
708
- uploadedFiles: {
709
- language: {
710
- id: string;
711
- locale: string;
712
- };
713
- fileId: string;
714
- metadataStorageId: string;
715
- totalItemsCount: number;
716
- }[];
717
- };
718
- id?: string | undefined;
719
- metadata?: {
720
- schemaVersion?: string | undefined;
721
- producedBy?: string | undefined;
722
- originatedFrom?: string | undefined;
723
- correlationId?: string | undefined;
724
- } | undefined;
725
- timestamp?: string | undefined;
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
- type: "export_process.data_gathering_failed";
735
- payload: {
736
- languages: {
737
- id: string;
738
- locale: string;
739
- }[];
740
- projectId: string;
741
- processId: string;
742
- totalItemsCount: number;
743
- totalContentUnitsCount: number;
744
- totalBatches: number;
745
- uploadedFiles: {
746
- language: {
747
- id: string;
748
- locale: string;
749
- };
750
- fileId: string;
751
- metadataStorageId: string;
752
- totalItemsCount: number;
753
- }[];
754
- };
755
- id?: string | undefined;
756
- metadata?: {
757
- schemaVersion?: string | undefined;
758
- producedBy?: string | undefined;
759
- originatedFrom?: string | undefined;
760
- correlationId?: string | undefined;
761
- } | undefined;
762
- timestamp?: string | undefined;
763
- deduplicationId?: string | null | undefined;
764
- deduplicationOptions?: {
765
- deduplicationWindowSeconds?: number | undefined;
766
- lockTimeoutSeconds?: number | undefined;
767
- acquireTimeoutSeconds?: number | undefined;
768
- refreshIntervalSeconds?: number | undefined;
769
- } | null | undefined;
770
- }>;
771
- };
772
9
  'export_process.data_chunk_created': {
773
10
  snsTopic: "autopilot-export_process";
774
11
  producedBy: string[];
775
12
  consumerSchema: z.ZodObject<{
776
13
  id: z.ZodString;
777
- timestamp: z.ZodString;
14
+ timestamp: z.ZodISODateTime;
778
15
  type: z.ZodLiteral<"export_process.data_chunk_created">;
779
16
  deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
17
  deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
781
18
  payload: z.ZodObject<{
782
- chunkId: z.ZodString;
19
+ chunkId: z.ZodGUID;
783
20
  externalStorageId: z.ZodString;
784
- processId: z.ZodString;
785
- projectId: z.ZodString;
21
+ processId: z.ZodGUID;
22
+ projectId: z.ZodGUID;
786
23
  language: z.ZodObject<{
787
- id: z.ZodString;
24
+ id: z.ZodGUID;
788
25
  locale: z.ZodString;
789
- }, "strip", z.ZodTypeAny, {
790
- id: string;
791
- locale: string;
792
- }, {
793
- id: string;
794
- locale: string;
795
- }>;
796
- }, "strip", z.ZodTypeAny, {
797
- projectId: string;
798
- language: {
799
- id: string;
800
- locale: string;
801
- };
802
- chunkId: string;
803
- processId: string;
804
- externalStorageId: string;
805
- }, {
806
- projectId: string;
807
- language: {
808
- id: string;
809
- locale: string;
810
- };
811
- chunkId: string;
812
- processId: string;
813
- externalStorageId: string;
814
- }>;
26
+ }, z.core.$strip>;
27
+ }, z.core.$strip>;
815
28
  metadata: import("@message-queue-toolkit/schemas").MetadataObject;
816
- }, "strip", z.ZodTypeAny, {
817
- id: string;
818
- type: "export_process.data_chunk_created";
819
- metadata: {
820
- schemaVersion: string;
821
- producedBy: string;
822
- originatedFrom: string;
823
- correlationId: string;
824
- };
825
- timestamp: string;
826
- payload: {
827
- projectId: string;
828
- language: {
829
- id: string;
830
- locale: string;
831
- };
832
- chunkId: string;
833
- processId: string;
834
- externalStorageId: string;
835
- };
836
- deduplicationId?: string | null | undefined;
837
- deduplicationOptions?: {
838
- deduplicationWindowSeconds?: number | undefined;
839
- lockTimeoutSeconds?: number | undefined;
840
- acquireTimeoutSeconds?: number | undefined;
841
- refreshIntervalSeconds?: number | undefined;
842
- } | null | undefined;
843
- }, {
844
- id: string;
845
- type: "export_process.data_chunk_created";
846
- metadata: {
847
- schemaVersion: string;
848
- producedBy: string;
849
- originatedFrom: string;
850
- correlationId: string;
851
- };
852
- timestamp: string;
853
- payload: {
854
- projectId: string;
855
- language: {
856
- id: string;
857
- locale: string;
858
- };
859
- chunkId: string;
860
- processId: string;
861
- externalStorageId: string;
862
- };
863
- deduplicationId?: string | null | undefined;
864
- deduplicationOptions?: {
865
- deduplicationWindowSeconds?: number | undefined;
866
- lockTimeoutSeconds?: number | undefined;
867
- acquireTimeoutSeconds?: number | undefined;
868
- refreshIntervalSeconds?: number | undefined;
869
- } | null | undefined;
870
- }>;
29
+ }, z.core.$strip>;
871
30
  publisherSchema: z.ZodObject<{
872
31
  id: z.ZodOptional<z.ZodString>;
873
- timestamp: z.ZodOptional<z.ZodString>;
32
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
874
33
  type: z.ZodLiteral<"export_process.data_chunk_created">;
875
34
  deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
35
  deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
877
36
  payload: z.ZodObject<{
878
- chunkId: z.ZodString;
37
+ chunkId: z.ZodGUID;
879
38
  externalStorageId: z.ZodString;
880
- processId: z.ZodString;
881
- projectId: z.ZodString;
39
+ processId: z.ZodGUID;
40
+ projectId: z.ZodGUID;
882
41
  language: z.ZodObject<{
883
- id: z.ZodString;
42
+ id: z.ZodGUID;
884
43
  locale: z.ZodString;
885
- }, "strip", z.ZodTypeAny, {
886
- id: string;
887
- locale: string;
888
- }, {
889
- id: string;
890
- locale: string;
891
- }>;
892
- }, "strip", z.ZodTypeAny, {
893
- projectId: string;
894
- language: {
895
- id: string;
896
- locale: string;
897
- };
898
- chunkId: string;
899
- processId: string;
900
- externalStorageId: string;
901
- }, {
902
- projectId: string;
903
- language: {
904
- id: string;
905
- locale: string;
906
- };
907
- chunkId: string;
908
- processId: string;
909
- externalStorageId: string;
910
- }>;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>;
911
46
  metadata: z.ZodOptional<z.ZodObject<{
912
47
  schemaVersion: z.ZodOptional<z.ZodString>;
913
48
  producedBy: z.ZodOptional<z.ZodString>;
914
49
  originatedFrom: z.ZodOptional<z.ZodString>;
915
50
  correlationId: z.ZodOptional<z.ZodString>;
916
- }, "strip">>;
917
- }, "strip", z.ZodTypeAny, {
918
- type: "export_process.data_chunk_created";
919
- payload: {
920
- projectId: string;
921
- language: {
922
- id: string;
923
- locale: string;
924
- };
925
- chunkId: string;
926
- processId: string;
927
- externalStorageId: string;
928
- };
929
- id?: string | undefined;
930
- metadata?: {
931
- schemaVersion?: string | undefined;
932
- producedBy?: string | undefined;
933
- originatedFrom?: string | undefined;
934
- correlationId?: string | undefined;
935
- } | undefined;
936
- timestamp?: string | undefined;
937
- deduplicationId?: string | null | undefined;
938
- deduplicationOptions?: {
939
- deduplicationWindowSeconds?: number | undefined;
940
- lockTimeoutSeconds?: number | undefined;
941
- acquireTimeoutSeconds?: number | undefined;
942
- refreshIntervalSeconds?: number | undefined;
943
- } | null | undefined;
944
- }, {
945
- type: "export_process.data_chunk_created";
946
- payload: {
947
- projectId: string;
948
- language: {
949
- id: string;
950
- locale: string;
951
- };
952
- chunkId: string;
953
- processId: string;
954
- externalStorageId: string;
955
- };
956
- id?: string | undefined;
957
- metadata?: {
958
- schemaVersion?: string | undefined;
959
- producedBy?: string | undefined;
960
- originatedFrom?: string | undefined;
961
- correlationId?: string | undefined;
962
- } | undefined;
963
- timestamp?: string | undefined;
964
- deduplicationId?: string | null | undefined;
965
- deduplicationOptions?: {
966
- deduplicationWindowSeconds?: number | undefined;
967
- lockTimeoutSeconds?: number | undefined;
968
- acquireTimeoutSeconds?: number | undefined;
969
- refreshIntervalSeconds?: number | undefined;
970
- } | null | undefined;
971
- }>;
51
+ }>>;
52
+ }, z.core.$strip>;
972
53
  };
973
54
  'export_process.data_chunk_converted': {
974
55
  snsTopic: "autopilot-export_process";
975
56
  producedBy: string[];
976
57
  consumerSchema: z.ZodObject<{
977
58
  id: z.ZodString;
978
- timestamp: z.ZodString;
59
+ timestamp: z.ZodISODateTime;
979
60
  type: z.ZodLiteral<"export_process.data_chunk_converted">;
980
61
  deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
981
62
  deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
982
63
  payload: z.ZodObject<{
983
- projectId: z.ZodString;
984
- processId: z.ZodString;
985
- chunkId: z.ZodString;
64
+ projectId: z.ZodGUID;
65
+ processId: z.ZodGUID;
66
+ chunkId: z.ZodGUID;
986
67
  externalStorageId: z.ZodString;
987
68
  language: z.ZodObject<{
988
- id: z.ZodString;
69
+ id: z.ZodGUID;
989
70
  locale: z.ZodString;
990
- }, "strip", z.ZodTypeAny, {
991
- id: string;
992
- locale: string;
993
- }, {
994
- id: string;
995
- locale: string;
996
- }>;
71
+ }, z.core.$strip>;
997
72
  processedItemsCount: z.ZodNumber;
998
- }, "strip", z.ZodTypeAny, {
999
- projectId: string;
1000
- language: {
1001
- id: string;
1002
- locale: string;
1003
- };
1004
- chunkId: string;
1005
- processId: string;
1006
- processedItemsCount: number;
1007
- externalStorageId: string;
1008
- }, {
1009
- projectId: string;
1010
- language: {
1011
- id: string;
1012
- locale: string;
1013
- };
1014
- chunkId: string;
1015
- processId: string;
1016
- processedItemsCount: number;
1017
- externalStorageId: string;
1018
- }>;
73
+ }, z.core.$strip>;
1019
74
  metadata: import("@message-queue-toolkit/schemas").MetadataObject;
1020
- }, "strip", z.ZodTypeAny, {
1021
- id: string;
1022
- type: "export_process.data_chunk_converted";
1023
- metadata: {
1024
- schemaVersion: string;
1025
- producedBy: string;
1026
- originatedFrom: string;
1027
- correlationId: string;
1028
- };
1029
- timestamp: string;
1030
- payload: {
1031
- projectId: string;
1032
- language: {
1033
- id: string;
1034
- locale: string;
1035
- };
1036
- chunkId: string;
1037
- processId: string;
1038
- processedItemsCount: number;
1039
- externalStorageId: string;
1040
- };
1041
- deduplicationId?: string | null | undefined;
1042
- deduplicationOptions?: {
1043
- deduplicationWindowSeconds?: number | undefined;
1044
- lockTimeoutSeconds?: number | undefined;
1045
- acquireTimeoutSeconds?: number | undefined;
1046
- refreshIntervalSeconds?: number | undefined;
1047
- } | null | undefined;
1048
- }, {
1049
- id: string;
1050
- type: "export_process.data_chunk_converted";
1051
- metadata: {
1052
- schemaVersion: string;
1053
- producedBy: string;
1054
- originatedFrom: string;
1055
- correlationId: string;
1056
- };
1057
- timestamp: string;
1058
- payload: {
1059
- projectId: string;
1060
- language: {
1061
- id: string;
1062
- locale: string;
1063
- };
1064
- chunkId: string;
1065
- processId: string;
1066
- processedItemsCount: number;
1067
- externalStorageId: string;
1068
- };
1069
- deduplicationId?: string | null | undefined;
1070
- deduplicationOptions?: {
1071
- deduplicationWindowSeconds?: number | undefined;
1072
- lockTimeoutSeconds?: number | undefined;
1073
- acquireTimeoutSeconds?: number | undefined;
1074
- refreshIntervalSeconds?: number | undefined;
1075
- } | null | undefined;
1076
- }>;
75
+ }, z.core.$strip>;
1077
76
  publisherSchema: z.ZodObject<{
1078
77
  id: z.ZodOptional<z.ZodString>;
1079
- timestamp: z.ZodOptional<z.ZodString>;
78
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
1080
79
  type: z.ZodLiteral<"export_process.data_chunk_converted">;
1081
80
  deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1082
81
  deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1083
82
  payload: z.ZodObject<{
1084
- projectId: z.ZodString;
1085
- processId: z.ZodString;
1086
- chunkId: z.ZodString;
83
+ projectId: z.ZodGUID;
84
+ processId: z.ZodGUID;
85
+ chunkId: z.ZodGUID;
1087
86
  externalStorageId: z.ZodString;
1088
87
  language: z.ZodObject<{
1089
- id: z.ZodString;
88
+ id: z.ZodGUID;
1090
89
  locale: z.ZodString;
1091
- }, "strip", z.ZodTypeAny, {
1092
- id: string;
1093
- locale: string;
1094
- }, {
1095
- id: string;
1096
- locale: string;
1097
- }>;
90
+ }, z.core.$strip>;
1098
91
  processedItemsCount: z.ZodNumber;
1099
- }, "strip", z.ZodTypeAny, {
1100
- projectId: string;
1101
- language: {
1102
- id: string;
1103
- locale: string;
1104
- };
1105
- chunkId: string;
1106
- processId: string;
1107
- processedItemsCount: number;
1108
- externalStorageId: string;
1109
- }, {
1110
- projectId: string;
1111
- language: {
1112
- id: string;
1113
- locale: string;
1114
- };
1115
- chunkId: string;
1116
- processId: string;
1117
- processedItemsCount: number;
1118
- externalStorageId: string;
1119
- }>;
92
+ }, z.core.$strip>;
1120
93
  metadata: z.ZodOptional<z.ZodObject<{
1121
94
  schemaVersion: z.ZodOptional<z.ZodString>;
1122
95
  producedBy: z.ZodOptional<z.ZodString>;
1123
96
  originatedFrom: z.ZodOptional<z.ZodString>;
1124
97
  correlationId: z.ZodOptional<z.ZodString>;
1125
- }, "strip">>;
1126
- }, "strip", z.ZodTypeAny, {
1127
- type: "export_process.data_chunk_converted";
1128
- payload: {
1129
- projectId: string;
1130
- language: {
1131
- id: string;
1132
- locale: string;
1133
- };
1134
- chunkId: string;
1135
- processId: string;
1136
- processedItemsCount: number;
1137
- externalStorageId: string;
1138
- };
1139
- id?: string | undefined;
1140
- metadata?: {
1141
- schemaVersion?: string | undefined;
1142
- producedBy?: string | undefined;
1143
- originatedFrom?: string | undefined;
1144
- correlationId?: string | undefined;
1145
- } | undefined;
1146
- timestamp?: string | undefined;
1147
- deduplicationId?: string | null | undefined;
1148
- deduplicationOptions?: {
1149
- deduplicationWindowSeconds?: number | undefined;
1150
- lockTimeoutSeconds?: number | undefined;
1151
- acquireTimeoutSeconds?: number | undefined;
1152
- refreshIntervalSeconds?: number | undefined;
1153
- } | null | undefined;
1154
- }, {
1155
- type: "export_process.data_chunk_converted";
1156
- payload: {
1157
- projectId: string;
1158
- language: {
1159
- id: string;
1160
- locale: string;
1161
- };
1162
- chunkId: string;
1163
- processId: string;
1164
- processedItemsCount: number;
1165
- externalStorageId: string;
1166
- };
1167
- id?: string | undefined;
1168
- metadata?: {
1169
- schemaVersion?: string | undefined;
1170
- producedBy?: string | undefined;
1171
- originatedFrom?: string | undefined;
1172
- correlationId?: string | undefined;
1173
- } | undefined;
1174
- timestamp?: string | undefined;
1175
- deduplicationId?: string | null | undefined;
1176
- deduplicationOptions?: {
1177
- deduplicationWindowSeconds?: number | undefined;
1178
- lockTimeoutSeconds?: number | undefined;
1179
- acquireTimeoutSeconds?: number | undefined;
1180
- refreshIntervalSeconds?: number | undefined;
1181
- } | null | undefined;
1182
- }>;
1183
- };
1184
- 'export_process.data_chunk_ready': {
1185
- snsTopic: "autopilot-export_process";
1186
- producedBy: string[];
1187
- consumerSchema: z.ZodObject<{
1188
- id: z.ZodString;
1189
- timestamp: z.ZodString;
1190
- type: z.ZodLiteral<"export_process.data_chunk_ready">;
1191
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1193
- payload: z.ZodObject<{
1194
- projectId: z.ZodString;
1195
- processId: z.ZodString;
1196
- chunkId: z.ZodString;
1197
- externalStorageId: z.ZodString;
1198
- language: z.ZodObject<{
1199
- id: z.ZodString;
1200
- locale: z.ZodString;
1201
- }, "strip", z.ZodTypeAny, {
1202
- id: string;
1203
- locale: string;
1204
- }, {
1205
- id: string;
1206
- locale: string;
1207
- }>;
1208
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
1209
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1210
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1211
- }, "strip", z.ZodTypeAny, {
1212
- languages?: string[] | undefined;
1213
- }, {
1214
- languages?: string[] | undefined;
1215
- }>>>;
1216
- } & {
1217
- outputType: z.ZodLiteral<"FILE">;
1218
- }, "strip", z.ZodTypeAny, {
1219
- outputType: "FILE";
1220
- items?: Record<string, {
1221
- languages?: string[] | undefined;
1222
- }> | undefined;
1223
- }, {
1224
- outputType: "FILE";
1225
- items?: Record<string, {
1226
- languages?: string[] | undefined;
1227
- }> | undefined;
1228
- }>, z.ZodObject<{
1229
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1230
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1231
- }, "strip", z.ZodTypeAny, {
1232
- languages?: string[] | undefined;
1233
- }, {
1234
- languages?: string[] | undefined;
1235
- }>>>;
1236
- } & {
1237
- outputType: z.ZodLiteral<"GIT">;
1238
- branchName: z.ZodOptional<z.ZodString>;
1239
- }, "strip", z.ZodTypeAny, {
1240
- outputType: "GIT";
1241
- items?: Record<string, {
1242
- languages?: string[] | undefined;
1243
- }> | undefined;
1244
- branchName?: string | undefined;
1245
- }, {
1246
- outputType: "GIT";
1247
- items?: Record<string, {
1248
- languages?: string[] | undefined;
1249
- }> | undefined;
1250
- branchName?: string | undefined;
1251
- }>, z.ZodObject<{
1252
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1253
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1254
- }, "strip", z.ZodTypeAny, {
1255
- languages?: string[] | undefined;
1256
- }, {
1257
- languages?: string[] | undefined;
1258
- }>>>;
1259
- } & {
1260
- outputType: z.ZodLiteral<"SHOPIFY">;
1261
- force: z.ZodOptional<z.ZodBoolean>;
1262
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
1263
- }, "strip", z.ZodTypeAny, {
1264
- outputType: "SHOPIFY";
1265
- items?: Record<string, {
1266
- languages?: string[] | undefined;
1267
- }> | undefined;
1268
- force?: boolean | undefined;
1269
- useNonTranslatableMarkers?: boolean | undefined;
1270
- }, {
1271
- outputType: "SHOPIFY";
1272
- items?: Record<string, {
1273
- languages?: string[] | undefined;
1274
- }> | undefined;
1275
- force?: boolean | undefined;
1276
- useNonTranslatableMarkers?: boolean | undefined;
1277
- }>]>;
1278
- }, "strip", z.ZodTypeAny, {
1279
- options: {
1280
- outputType: "GIT";
1281
- items?: Record<string, {
1282
- languages?: string[] | undefined;
1283
- }> | undefined;
1284
- branchName?: string | undefined;
1285
- } | {
1286
- outputType: "SHOPIFY";
1287
- items?: Record<string, {
1288
- languages?: string[] | undefined;
1289
- }> | undefined;
1290
- force?: boolean | undefined;
1291
- useNonTranslatableMarkers?: boolean | undefined;
1292
- } | {
1293
- outputType: "FILE";
1294
- items?: Record<string, {
1295
- languages?: string[] | undefined;
1296
- }> | undefined;
1297
- };
1298
- projectId: string;
1299
- language: {
1300
- id: string;
1301
- locale: string;
1302
- };
1303
- chunkId: string;
1304
- processId: string;
1305
- externalStorageId: string;
1306
- }, {
1307
- options: {
1308
- outputType: "GIT";
1309
- items?: Record<string, {
1310
- languages?: string[] | undefined;
1311
- }> | undefined;
1312
- branchName?: string | undefined;
1313
- } | {
1314
- outputType: "SHOPIFY";
1315
- items?: Record<string, {
1316
- languages?: string[] | undefined;
1317
- }> | undefined;
1318
- force?: boolean | undefined;
1319
- useNonTranslatableMarkers?: boolean | undefined;
1320
- } | {
1321
- outputType: "FILE";
1322
- items?: Record<string, {
1323
- languages?: string[] | undefined;
1324
- }> | undefined;
1325
- };
1326
- projectId: string;
1327
- language: {
1328
- id: string;
1329
- locale: string;
1330
- };
1331
- chunkId: string;
1332
- processId: string;
1333
- externalStorageId: string;
1334
- }>;
1335
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
1336
- }, "strip", z.ZodTypeAny, {
1337
- id: string;
1338
- type: "export_process.data_chunk_ready";
1339
- metadata: {
1340
- schemaVersion: string;
1341
- producedBy: string;
1342
- originatedFrom: string;
1343
- correlationId: string;
1344
- };
1345
- timestamp: string;
1346
- payload: {
1347
- options: {
1348
- outputType: "GIT";
1349
- items?: Record<string, {
1350
- languages?: string[] | undefined;
1351
- }> | undefined;
1352
- branchName?: string | undefined;
1353
- } | {
1354
- outputType: "SHOPIFY";
1355
- items?: Record<string, {
1356
- languages?: string[] | undefined;
1357
- }> | undefined;
1358
- force?: boolean | undefined;
1359
- useNonTranslatableMarkers?: boolean | undefined;
1360
- } | {
1361
- outputType: "FILE";
1362
- items?: Record<string, {
1363
- languages?: string[] | undefined;
1364
- }> | undefined;
1365
- };
1366
- projectId: string;
1367
- language: {
1368
- id: string;
1369
- locale: string;
1370
- };
1371
- chunkId: string;
1372
- processId: string;
1373
- externalStorageId: string;
1374
- };
1375
- deduplicationId?: string | null | undefined;
1376
- deduplicationOptions?: {
1377
- deduplicationWindowSeconds?: number | undefined;
1378
- lockTimeoutSeconds?: number | undefined;
1379
- acquireTimeoutSeconds?: number | undefined;
1380
- refreshIntervalSeconds?: number | undefined;
1381
- } | null | undefined;
1382
- }, {
1383
- id: string;
1384
- type: "export_process.data_chunk_ready";
1385
- metadata: {
1386
- schemaVersion: string;
1387
- producedBy: string;
1388
- originatedFrom: string;
1389
- correlationId: string;
1390
- };
1391
- timestamp: string;
1392
- payload: {
1393
- options: {
1394
- outputType: "GIT";
1395
- items?: Record<string, {
1396
- languages?: string[] | undefined;
1397
- }> | undefined;
1398
- branchName?: string | undefined;
1399
- } | {
1400
- outputType: "SHOPIFY";
1401
- items?: Record<string, {
1402
- languages?: string[] | undefined;
1403
- }> | undefined;
1404
- force?: boolean | undefined;
1405
- useNonTranslatableMarkers?: boolean | undefined;
1406
- } | {
1407
- outputType: "FILE";
1408
- items?: Record<string, {
1409
- languages?: string[] | undefined;
1410
- }> | undefined;
1411
- };
1412
- projectId: string;
1413
- language: {
1414
- id: string;
1415
- locale: string;
1416
- };
1417
- chunkId: string;
1418
- processId: string;
1419
- externalStorageId: string;
1420
- };
1421
- deduplicationId?: string | null | undefined;
1422
- deduplicationOptions?: {
1423
- deduplicationWindowSeconds?: number | undefined;
1424
- lockTimeoutSeconds?: number | undefined;
1425
- acquireTimeoutSeconds?: number | undefined;
1426
- refreshIntervalSeconds?: number | undefined;
1427
- } | null | undefined;
1428
- }>;
1429
- publisherSchema: z.ZodObject<{
1430
- id: z.ZodOptional<z.ZodString>;
1431
- timestamp: z.ZodOptional<z.ZodString>;
1432
- type: z.ZodLiteral<"export_process.data_chunk_ready">;
1433
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1434
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1435
- payload: z.ZodObject<{
1436
- projectId: z.ZodString;
1437
- processId: z.ZodString;
1438
- chunkId: z.ZodString;
1439
- externalStorageId: z.ZodString;
1440
- language: z.ZodObject<{
1441
- id: z.ZodString;
1442
- locale: z.ZodString;
1443
- }, "strip", z.ZodTypeAny, {
1444
- id: string;
1445
- locale: string;
1446
- }, {
1447
- id: string;
1448
- locale: string;
1449
- }>;
1450
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
1451
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1452
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1453
- }, "strip", z.ZodTypeAny, {
1454
- languages?: string[] | undefined;
1455
- }, {
1456
- languages?: string[] | undefined;
1457
- }>>>;
1458
- } & {
1459
- outputType: z.ZodLiteral<"FILE">;
1460
- }, "strip", z.ZodTypeAny, {
1461
- outputType: "FILE";
1462
- items?: Record<string, {
1463
- languages?: string[] | undefined;
1464
- }> | undefined;
1465
- }, {
1466
- outputType: "FILE";
1467
- items?: Record<string, {
1468
- languages?: string[] | undefined;
1469
- }> | undefined;
1470
- }>, z.ZodObject<{
1471
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1472
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1473
- }, "strip", z.ZodTypeAny, {
1474
- languages?: string[] | undefined;
1475
- }, {
1476
- languages?: string[] | undefined;
1477
- }>>>;
1478
- } & {
1479
- outputType: z.ZodLiteral<"GIT">;
1480
- branchName: z.ZodOptional<z.ZodString>;
1481
- }, "strip", z.ZodTypeAny, {
1482
- outputType: "GIT";
1483
- items?: Record<string, {
1484
- languages?: string[] | undefined;
1485
- }> | undefined;
1486
- branchName?: string | undefined;
1487
- }, {
1488
- outputType: "GIT";
1489
- items?: Record<string, {
1490
- languages?: string[] | undefined;
1491
- }> | undefined;
1492
- branchName?: string | undefined;
1493
- }>, z.ZodObject<{
1494
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1495
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1496
- }, "strip", z.ZodTypeAny, {
1497
- languages?: string[] | undefined;
1498
- }, {
1499
- languages?: string[] | undefined;
1500
- }>>>;
1501
- } & {
1502
- outputType: z.ZodLiteral<"SHOPIFY">;
1503
- force: z.ZodOptional<z.ZodBoolean>;
1504
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
1505
- }, "strip", z.ZodTypeAny, {
1506
- outputType: "SHOPIFY";
1507
- items?: Record<string, {
1508
- languages?: string[] | undefined;
1509
- }> | undefined;
1510
- force?: boolean | undefined;
1511
- useNonTranslatableMarkers?: boolean | undefined;
1512
- }, {
1513
- outputType: "SHOPIFY";
1514
- items?: Record<string, {
1515
- languages?: string[] | undefined;
1516
- }> | undefined;
1517
- force?: boolean | undefined;
1518
- useNonTranslatableMarkers?: boolean | undefined;
1519
- }>]>;
1520
- }, "strip", z.ZodTypeAny, {
1521
- options: {
1522
- outputType: "GIT";
1523
- items?: Record<string, {
1524
- languages?: string[] | undefined;
1525
- }> | undefined;
1526
- branchName?: string | undefined;
1527
- } | {
1528
- outputType: "SHOPIFY";
1529
- items?: Record<string, {
1530
- languages?: string[] | undefined;
1531
- }> | undefined;
1532
- force?: boolean | undefined;
1533
- useNonTranslatableMarkers?: boolean | undefined;
1534
- } | {
1535
- outputType: "FILE";
1536
- items?: Record<string, {
1537
- languages?: string[] | undefined;
1538
- }> | undefined;
1539
- };
1540
- projectId: string;
1541
- language: {
1542
- id: string;
1543
- locale: string;
1544
- };
1545
- chunkId: string;
1546
- processId: string;
1547
- externalStorageId: string;
1548
- }, {
1549
- options: {
1550
- outputType: "GIT";
1551
- items?: Record<string, {
1552
- languages?: string[] | undefined;
1553
- }> | undefined;
1554
- branchName?: string | undefined;
1555
- } | {
1556
- outputType: "SHOPIFY";
1557
- items?: Record<string, {
1558
- languages?: string[] | undefined;
1559
- }> | undefined;
1560
- force?: boolean | undefined;
1561
- useNonTranslatableMarkers?: boolean | undefined;
1562
- } | {
1563
- outputType: "FILE";
1564
- items?: Record<string, {
1565
- languages?: string[] | undefined;
1566
- }> | undefined;
1567
- };
1568
- projectId: string;
1569
- language: {
1570
- id: string;
1571
- locale: string;
1572
- };
1573
- chunkId: string;
1574
- processId: string;
1575
- externalStorageId: string;
1576
- }>;
1577
- metadata: z.ZodOptional<z.ZodObject<{
1578
- schemaVersion: z.ZodOptional<z.ZodString>;
1579
- producedBy: z.ZodOptional<z.ZodString>;
1580
- originatedFrom: z.ZodOptional<z.ZodString>;
1581
- correlationId: z.ZodOptional<z.ZodString>;
1582
- }, "strip">>;
1583
- }, "strip", z.ZodTypeAny, {
1584
- type: "export_process.data_chunk_ready";
1585
- payload: {
1586
- options: {
1587
- outputType: "GIT";
1588
- items?: Record<string, {
1589
- languages?: string[] | undefined;
1590
- }> | undefined;
1591
- branchName?: string | undefined;
1592
- } | {
1593
- outputType: "SHOPIFY";
1594
- items?: Record<string, {
1595
- languages?: string[] | undefined;
1596
- }> | undefined;
1597
- force?: boolean | undefined;
1598
- useNonTranslatableMarkers?: boolean | undefined;
1599
- } | {
1600
- outputType: "FILE";
1601
- items?: Record<string, {
1602
- languages?: string[] | undefined;
1603
- }> | undefined;
1604
- };
1605
- projectId: string;
1606
- language: {
1607
- id: string;
1608
- locale: string;
1609
- };
1610
- chunkId: string;
1611
- processId: string;
1612
- externalStorageId: string;
1613
- };
1614
- id?: string | undefined;
1615
- metadata?: {
1616
- schemaVersion?: string | undefined;
1617
- producedBy?: string | undefined;
1618
- originatedFrom?: string | undefined;
1619
- correlationId?: string | undefined;
1620
- } | undefined;
1621
- timestamp?: string | undefined;
1622
- deduplicationId?: string | null | undefined;
1623
- deduplicationOptions?: {
1624
- deduplicationWindowSeconds?: number | undefined;
1625
- lockTimeoutSeconds?: number | undefined;
1626
- acquireTimeoutSeconds?: number | undefined;
1627
- refreshIntervalSeconds?: number | undefined;
1628
- } | null | undefined;
1629
- }, {
1630
- type: "export_process.data_chunk_ready";
1631
- payload: {
1632
- options: {
1633
- outputType: "GIT";
1634
- items?: Record<string, {
1635
- languages?: string[] | undefined;
1636
- }> | undefined;
1637
- branchName?: string | undefined;
1638
- } | {
1639
- outputType: "SHOPIFY";
1640
- items?: Record<string, {
1641
- languages?: string[] | undefined;
1642
- }> | undefined;
1643
- force?: boolean | undefined;
1644
- useNonTranslatableMarkers?: boolean | undefined;
1645
- } | {
1646
- outputType: "FILE";
1647
- items?: Record<string, {
1648
- languages?: string[] | undefined;
1649
- }> | undefined;
1650
- };
1651
- projectId: string;
1652
- language: {
1653
- id: string;
1654
- locale: string;
1655
- };
1656
- chunkId: string;
1657
- processId: string;
1658
- externalStorageId: string;
1659
- };
1660
- id?: string | undefined;
1661
- metadata?: {
1662
- schemaVersion?: string | undefined;
1663
- producedBy?: string | undefined;
1664
- originatedFrom?: string | undefined;
1665
- correlationId?: string | undefined;
1666
- } | undefined;
1667
- timestamp?: string | undefined;
1668
- deduplicationId?: string | null | undefined;
1669
- deduplicationOptions?: {
1670
- deduplicationWindowSeconds?: number | undefined;
1671
- lockTimeoutSeconds?: number | undefined;
1672
- acquireTimeoutSeconds?: number | undefined;
1673
- refreshIntervalSeconds?: number | undefined;
1674
- } | null | undefined;
1675
- }>;
98
+ }>>;
99
+ }, z.core.$strip>;
1676
100
  };
1677
101
  'export_process.data_chunk_conversion_failed': {
1678
102
  snsTopic: "autopilot-export_process";
1679
103
  producedBy: string[];
1680
104
  consumerSchema: z.ZodObject<{
1681
105
  id: z.ZodString;
1682
- timestamp: z.ZodString;
106
+ timestamp: z.ZodISODateTime;
1683
107
  type: z.ZodLiteral<"export_process.data_chunk_conversion_failed">;
1684
108
  deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1685
109
  deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1686
110
  payload: z.ZodObject<{
1687
- projectId: z.ZodString;
1688
- processId: z.ZodString;
1689
- chunkId: z.ZodString;
111
+ projectId: z.ZodGUID;
112
+ processId: z.ZodGUID;
113
+ chunkId: z.ZodGUID;
1690
114
  reason: z.ZodString;
1691
115
  processedItemsCount: z.ZodNumber;
1692
- }, "strip", z.ZodTypeAny, {
1693
- projectId: string;
1694
- chunkId: string;
1695
- processId: string;
1696
- processedItemsCount: number;
1697
- reason: string;
1698
- }, {
1699
- projectId: string;
1700
- chunkId: string;
1701
- processId: string;
1702
- processedItemsCount: number;
1703
- reason: string;
1704
- }>;
116
+ }, z.core.$strip>;
1705
117
  metadata: import("@message-queue-toolkit/schemas").MetadataObject;
1706
- }, "strip", z.ZodTypeAny, {
1707
- id: string;
1708
- type: "export_process.data_chunk_conversion_failed";
1709
- metadata: {
1710
- schemaVersion: string;
1711
- producedBy: string;
1712
- originatedFrom: string;
1713
- correlationId: string;
1714
- };
1715
- timestamp: string;
1716
- payload: {
1717
- projectId: string;
1718
- chunkId: string;
1719
- processId: string;
1720
- processedItemsCount: number;
1721
- reason: string;
1722
- };
1723
- deduplicationId?: string | null | undefined;
1724
- deduplicationOptions?: {
1725
- deduplicationWindowSeconds?: number | undefined;
1726
- lockTimeoutSeconds?: number | undefined;
1727
- acquireTimeoutSeconds?: number | undefined;
1728
- refreshIntervalSeconds?: number | undefined;
1729
- } | null | undefined;
1730
- }, {
1731
- id: string;
1732
- type: "export_process.data_chunk_conversion_failed";
1733
- metadata: {
1734
- schemaVersion: string;
1735
- producedBy: string;
1736
- originatedFrom: string;
1737
- correlationId: string;
1738
- };
1739
- timestamp: string;
1740
- payload: {
1741
- projectId: string;
1742
- chunkId: string;
1743
- processId: string;
1744
- processedItemsCount: number;
1745
- reason: string;
1746
- };
1747
- deduplicationId?: string | null | undefined;
1748
- deduplicationOptions?: {
1749
- deduplicationWindowSeconds?: number | undefined;
1750
- lockTimeoutSeconds?: number | undefined;
1751
- acquireTimeoutSeconds?: number | undefined;
1752
- refreshIntervalSeconds?: number | undefined;
1753
- } | null | undefined;
1754
- }>;
118
+ }, z.core.$strip>;
1755
119
  publisherSchema: z.ZodObject<{
1756
120
  id: z.ZodOptional<z.ZodString>;
1757
- timestamp: z.ZodOptional<z.ZodString>;
121
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
1758
122
  type: z.ZodLiteral<"export_process.data_chunk_conversion_failed">;
1759
123
  deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1760
124
  deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1761
125
  payload: z.ZodObject<{
1762
- projectId: z.ZodString;
1763
- processId: z.ZodString;
1764
- chunkId: z.ZodString;
126
+ projectId: z.ZodGUID;
127
+ processId: z.ZodGUID;
128
+ chunkId: z.ZodGUID;
1765
129
  reason: z.ZodString;
1766
130
  processedItemsCount: z.ZodNumber;
1767
- }, "strip", z.ZodTypeAny, {
1768
- projectId: string;
1769
- chunkId: string;
1770
- processId: string;
1771
- processedItemsCount: number;
1772
- reason: string;
1773
- }, {
1774
- projectId: string;
1775
- chunkId: string;
1776
- processId: string;
1777
- processedItemsCount: number;
1778
- reason: string;
1779
- }>;
1780
- metadata: z.ZodOptional<z.ZodObject<{
1781
- schemaVersion: z.ZodOptional<z.ZodString>;
1782
- producedBy: z.ZodOptional<z.ZodString>;
1783
- originatedFrom: z.ZodOptional<z.ZodString>;
1784
- correlationId: z.ZodOptional<z.ZodString>;
1785
- }, "strip">>;
1786
- }, "strip", z.ZodTypeAny, {
1787
- type: "export_process.data_chunk_conversion_failed";
1788
- payload: {
1789
- projectId: string;
1790
- chunkId: string;
1791
- processId: string;
1792
- processedItemsCount: number;
1793
- reason: string;
1794
- };
1795
- id?: string | undefined;
1796
- metadata?: {
1797
- schemaVersion?: string | undefined;
1798
- producedBy?: string | undefined;
1799
- originatedFrom?: string | undefined;
1800
- correlationId?: string | undefined;
1801
- } | undefined;
1802
- timestamp?: string | undefined;
1803
- deduplicationId?: string | null | undefined;
1804
- deduplicationOptions?: {
1805
- deduplicationWindowSeconds?: number | undefined;
1806
- lockTimeoutSeconds?: number | undefined;
1807
- acquireTimeoutSeconds?: number | undefined;
1808
- refreshIntervalSeconds?: number | undefined;
1809
- } | null | undefined;
1810
- }, {
1811
- type: "export_process.data_chunk_conversion_failed";
1812
- payload: {
1813
- projectId: string;
1814
- chunkId: string;
1815
- processId: string;
1816
- processedItemsCount: number;
1817
- reason: string;
1818
- };
1819
- id?: string | undefined;
1820
- metadata?: {
1821
- schemaVersion?: string | undefined;
1822
- producedBy?: string | undefined;
1823
- originatedFrom?: string | undefined;
1824
- correlationId?: string | undefined;
1825
- } | undefined;
1826
- timestamp?: string | undefined;
1827
- deduplicationId?: string | null | undefined;
1828
- deduplicationOptions?: {
1829
- deduplicationWindowSeconds?: number | undefined;
1830
- lockTimeoutSeconds?: number | undefined;
1831
- acquireTimeoutSeconds?: number | undefined;
1832
- refreshIntervalSeconds?: number | undefined;
1833
- } | null | undefined;
1834
- }>;
1835
- };
1836
- 'export_process.data_chunk_push_completed': {
1837
- snsTopic: "autopilot-export_process";
1838
- producedBy: string[];
1839
- consumerSchema: z.ZodObject<{
1840
- id: z.ZodString;
1841
- timestamp: z.ZodString;
1842
- type: z.ZodLiteral<"export_process.data_chunk_push_completed">;
1843
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1844
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1845
- payload: z.ZodObject<{
1846
- chunkId: z.ZodString;
1847
- processId: z.ZodString;
1848
- projectId: z.ZodString;
1849
- locale: z.ZodEffects<z.ZodString, string, string>;
1850
- processedItemsCount: z.ZodNumber;
1851
- }, "strip", z.ZodTypeAny, {
1852
- locale: string;
1853
- projectId: string;
1854
- chunkId: string;
1855
- processId: string;
1856
- processedItemsCount: number;
1857
- }, {
1858
- locale: string;
1859
- projectId: string;
1860
- chunkId: string;
1861
- processId: string;
1862
- processedItemsCount: number;
1863
- }>;
1864
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
1865
- }, "strip", z.ZodTypeAny, {
1866
- id: string;
1867
- type: "export_process.data_chunk_push_completed";
1868
- metadata: {
1869
- schemaVersion: string;
1870
- producedBy: string;
1871
- originatedFrom: string;
1872
- correlationId: string;
1873
- };
1874
- timestamp: string;
1875
- payload: {
1876
- locale: string;
1877
- projectId: string;
1878
- chunkId: string;
1879
- processId: string;
1880
- processedItemsCount: number;
1881
- };
1882
- deduplicationId?: string | null | undefined;
1883
- deduplicationOptions?: {
1884
- deduplicationWindowSeconds?: number | undefined;
1885
- lockTimeoutSeconds?: number | undefined;
1886
- acquireTimeoutSeconds?: number | undefined;
1887
- refreshIntervalSeconds?: number | undefined;
1888
- } | null | undefined;
1889
- }, {
1890
- id: string;
1891
- type: "export_process.data_chunk_push_completed";
1892
- metadata: {
1893
- schemaVersion: string;
1894
- producedBy: string;
1895
- originatedFrom: string;
1896
- correlationId: string;
1897
- };
1898
- timestamp: string;
1899
- payload: {
1900
- locale: string;
1901
- projectId: string;
1902
- chunkId: string;
1903
- processId: string;
1904
- processedItemsCount: number;
1905
- };
1906
- deduplicationId?: string | null | undefined;
1907
- deduplicationOptions?: {
1908
- deduplicationWindowSeconds?: number | undefined;
1909
- lockTimeoutSeconds?: number | undefined;
1910
- acquireTimeoutSeconds?: number | undefined;
1911
- refreshIntervalSeconds?: number | undefined;
1912
- } | null | undefined;
1913
- }>;
1914
- publisherSchema: z.ZodObject<{
1915
- id: z.ZodOptional<z.ZodString>;
1916
- timestamp: z.ZodOptional<z.ZodString>;
1917
- type: z.ZodLiteral<"export_process.data_chunk_push_completed">;
1918
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1919
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
1920
- payload: z.ZodObject<{
1921
- chunkId: z.ZodString;
1922
- processId: z.ZodString;
1923
- projectId: z.ZodString;
1924
- locale: z.ZodEffects<z.ZodString, string, string>;
1925
- processedItemsCount: z.ZodNumber;
1926
- }, "strip", z.ZodTypeAny, {
1927
- locale: string;
1928
- projectId: string;
1929
- chunkId: string;
1930
- processId: string;
1931
- processedItemsCount: number;
1932
- }, {
1933
- locale: string;
1934
- projectId: string;
1935
- chunkId: string;
1936
- processId: string;
1937
- processedItemsCount: number;
1938
- }>;
1939
- metadata: z.ZodOptional<z.ZodObject<{
1940
- schemaVersion: z.ZodOptional<z.ZodString>;
1941
- producedBy: z.ZodOptional<z.ZodString>;
1942
- originatedFrom: z.ZodOptional<z.ZodString>;
1943
- correlationId: z.ZodOptional<z.ZodString>;
1944
- }, "strip">>;
1945
- }, "strip", z.ZodTypeAny, {
1946
- type: "export_process.data_chunk_push_completed";
1947
- payload: {
1948
- locale: string;
1949
- projectId: string;
1950
- chunkId: string;
1951
- processId: string;
1952
- processedItemsCount: number;
1953
- };
1954
- id?: string | undefined;
1955
- metadata?: {
1956
- schemaVersion?: string | undefined;
1957
- producedBy?: string | undefined;
1958
- originatedFrom?: string | undefined;
1959
- correlationId?: string | undefined;
1960
- } | undefined;
1961
- timestamp?: string | undefined;
1962
- deduplicationId?: string | null | undefined;
1963
- deduplicationOptions?: {
1964
- deduplicationWindowSeconds?: number | undefined;
1965
- lockTimeoutSeconds?: number | undefined;
1966
- acquireTimeoutSeconds?: number | undefined;
1967
- refreshIntervalSeconds?: number | undefined;
1968
- } | null | undefined;
1969
- }, {
1970
- type: "export_process.data_chunk_push_completed";
1971
- payload: {
1972
- locale: string;
1973
- projectId: string;
1974
- chunkId: string;
1975
- processId: string;
1976
- processedItemsCount: number;
1977
- };
1978
- id?: string | undefined;
1979
- metadata?: {
1980
- schemaVersion?: string | undefined;
1981
- producedBy?: string | undefined;
1982
- originatedFrom?: string | undefined;
1983
- correlationId?: string | undefined;
1984
- } | undefined;
1985
- timestamp?: string | undefined;
1986
- deduplicationId?: string | null | undefined;
1987
- deduplicationOptions?: {
1988
- deduplicationWindowSeconds?: number | undefined;
1989
- lockTimeoutSeconds?: number | undefined;
1990
- acquireTimeoutSeconds?: number | undefined;
1991
- refreshIntervalSeconds?: number | undefined;
1992
- } | null | undefined;
1993
- }>;
1994
- };
1995
- 'export_process.data_chunk_push_failed': {
1996
- snsTopic: "autopilot-export_process";
1997
- producedBy: string[];
1998
- consumerSchema: z.ZodObject<{
1999
- id: z.ZodString;
2000
- timestamp: z.ZodString;
2001
- type: z.ZodLiteral<"export_process.data_chunk_push_failed">;
2002
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2003
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2004
- payload: z.ZodObject<{
2005
- chunkId: z.ZodString;
2006
- processId: z.ZodString;
2007
- projectId: z.ZodString;
2008
- locale: z.ZodEffects<z.ZodString, string, string>;
2009
- processedItemsCount: z.ZodNumber;
2010
- }, "strip", z.ZodTypeAny, {
2011
- locale: string;
2012
- projectId: string;
2013
- chunkId: string;
2014
- processId: string;
2015
- processedItemsCount: number;
2016
- }, {
2017
- locale: string;
2018
- projectId: string;
2019
- chunkId: string;
2020
- processId: string;
2021
- processedItemsCount: number;
2022
- }>;
2023
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
2024
- }, "strip", z.ZodTypeAny, {
2025
- id: string;
2026
- type: "export_process.data_chunk_push_failed";
2027
- metadata: {
2028
- schemaVersion: string;
2029
- producedBy: string;
2030
- originatedFrom: string;
2031
- correlationId: string;
2032
- };
2033
- timestamp: string;
2034
- payload: {
2035
- locale: string;
2036
- projectId: string;
2037
- chunkId: string;
2038
- processId: string;
2039
- processedItemsCount: number;
2040
- };
2041
- deduplicationId?: string | null | undefined;
2042
- deduplicationOptions?: {
2043
- deduplicationWindowSeconds?: number | undefined;
2044
- lockTimeoutSeconds?: number | undefined;
2045
- acquireTimeoutSeconds?: number | undefined;
2046
- refreshIntervalSeconds?: number | undefined;
2047
- } | null | undefined;
2048
- }, {
2049
- id: string;
2050
- type: "export_process.data_chunk_push_failed";
2051
- metadata: {
2052
- schemaVersion: string;
2053
- producedBy: string;
2054
- originatedFrom: string;
2055
- correlationId: string;
2056
- };
2057
- timestamp: string;
2058
- payload: {
2059
- locale: string;
2060
- projectId: string;
2061
- chunkId: string;
2062
- processId: string;
2063
- processedItemsCount: number;
2064
- };
2065
- deduplicationId?: string | null | undefined;
2066
- deduplicationOptions?: {
2067
- deduplicationWindowSeconds?: number | undefined;
2068
- lockTimeoutSeconds?: number | undefined;
2069
- acquireTimeoutSeconds?: number | undefined;
2070
- refreshIntervalSeconds?: number | undefined;
2071
- } | null | undefined;
2072
- }>;
2073
- publisherSchema: z.ZodObject<{
2074
- id: z.ZodOptional<z.ZodString>;
2075
- timestamp: z.ZodOptional<z.ZodString>;
2076
- type: z.ZodLiteral<"export_process.data_chunk_push_failed">;
2077
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2078
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2079
- payload: z.ZodObject<{
2080
- chunkId: z.ZodString;
2081
- processId: z.ZodString;
2082
- projectId: z.ZodString;
2083
- locale: z.ZodEffects<z.ZodString, string, string>;
2084
- processedItemsCount: z.ZodNumber;
2085
- }, "strip", z.ZodTypeAny, {
2086
- locale: string;
2087
- projectId: string;
2088
- chunkId: string;
2089
- processId: string;
2090
- processedItemsCount: number;
2091
- }, {
2092
- locale: string;
2093
- projectId: string;
2094
- chunkId: string;
2095
- processId: string;
2096
- processedItemsCount: number;
2097
- }>;
2098
- metadata: z.ZodOptional<z.ZodObject<{
2099
- schemaVersion: z.ZodOptional<z.ZodString>;
2100
- producedBy: z.ZodOptional<z.ZodString>;
2101
- originatedFrom: z.ZodOptional<z.ZodString>;
2102
- correlationId: z.ZodOptional<z.ZodString>;
2103
- }, "strip">>;
2104
- }, "strip", z.ZodTypeAny, {
2105
- type: "export_process.data_chunk_push_failed";
2106
- payload: {
2107
- locale: string;
2108
- projectId: string;
2109
- chunkId: string;
2110
- processId: string;
2111
- processedItemsCount: number;
2112
- };
2113
- id?: string | undefined;
2114
- metadata?: {
2115
- schemaVersion?: string | undefined;
2116
- producedBy?: string | undefined;
2117
- originatedFrom?: string | undefined;
2118
- correlationId?: string | undefined;
2119
- } | undefined;
2120
- timestamp?: string | undefined;
2121
- deduplicationId?: string | null | undefined;
2122
- deduplicationOptions?: {
2123
- deduplicationWindowSeconds?: number | undefined;
2124
- lockTimeoutSeconds?: number | undefined;
2125
- acquireTimeoutSeconds?: number | undefined;
2126
- refreshIntervalSeconds?: number | undefined;
2127
- } | null | undefined;
2128
- }, {
2129
- type: "export_process.data_chunk_push_failed";
2130
- payload: {
2131
- locale: string;
2132
- projectId: string;
2133
- chunkId: string;
2134
- processId: string;
2135
- processedItemsCount: number;
2136
- };
2137
- id?: string | undefined;
2138
- metadata?: {
2139
- schemaVersion?: string | undefined;
2140
- producedBy?: string | undefined;
2141
- originatedFrom?: string | undefined;
2142
- correlationId?: string | undefined;
2143
- } | undefined;
2144
- timestamp?: string | undefined;
2145
- deduplicationId?: string | null | undefined;
2146
- deduplicationOptions?: {
2147
- deduplicationWindowSeconds?: number | undefined;
2148
- lockTimeoutSeconds?: number | undefined;
2149
- acquireTimeoutSeconds?: number | undefined;
2150
- refreshIntervalSeconds?: number | undefined;
2151
- } | null | undefined;
2152
- }>;
2153
- };
2154
- 'export_process.data_chunk_processed': {
2155
- snsTopic: "autopilot-export_process";
2156
- producedBy: string[];
2157
- consumerSchema: z.ZodObject<{
2158
- id: z.ZodString;
2159
- timestamp: z.ZodString;
2160
- type: z.ZodLiteral<"export_process.data_chunk_processed">;
2161
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2162
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2163
- payload: z.ZodObject<{
2164
- exportRequestId: z.ZodString;
2165
- processId: z.ZodString;
2166
- projectId: z.ZodString;
2167
- chunkId: z.ZodString;
2168
- metadataExternalStorageId: z.ZodString;
2169
- }, "strip", z.ZodTypeAny, {
2170
- projectId: string;
2171
- exportRequestId: string;
2172
- chunkId: string;
2173
- processId: string;
2174
- metadataExternalStorageId: string;
2175
- }, {
2176
- projectId: string;
2177
- exportRequestId: string;
2178
- chunkId: string;
2179
- processId: string;
2180
- metadataExternalStorageId: string;
2181
- }>;
2182
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
2183
- }, "strip", z.ZodTypeAny, {
2184
- id: string;
2185
- type: "export_process.data_chunk_processed";
2186
- metadata: {
2187
- schemaVersion: string;
2188
- producedBy: string;
2189
- originatedFrom: string;
2190
- correlationId: string;
2191
- };
2192
- timestamp: string;
2193
- payload: {
2194
- projectId: string;
2195
- exportRequestId: string;
2196
- chunkId: string;
2197
- processId: string;
2198
- metadataExternalStorageId: string;
2199
- };
2200
- deduplicationId?: string | null | undefined;
2201
- deduplicationOptions?: {
2202
- deduplicationWindowSeconds?: number | undefined;
2203
- lockTimeoutSeconds?: number | undefined;
2204
- acquireTimeoutSeconds?: number | undefined;
2205
- refreshIntervalSeconds?: number | undefined;
2206
- } | null | undefined;
2207
- }, {
2208
- id: string;
2209
- type: "export_process.data_chunk_processed";
2210
- metadata: {
2211
- schemaVersion: string;
2212
- producedBy: string;
2213
- originatedFrom: string;
2214
- correlationId: string;
2215
- };
2216
- timestamp: string;
2217
- payload: {
2218
- projectId: string;
2219
- exportRequestId: string;
2220
- chunkId: string;
2221
- processId: string;
2222
- metadataExternalStorageId: string;
2223
- };
2224
- deduplicationId?: string | null | undefined;
2225
- deduplicationOptions?: {
2226
- deduplicationWindowSeconds?: number | undefined;
2227
- lockTimeoutSeconds?: number | undefined;
2228
- acquireTimeoutSeconds?: number | undefined;
2229
- refreshIntervalSeconds?: number | undefined;
2230
- } | null | undefined;
2231
- }>;
2232
- publisherSchema: z.ZodObject<{
2233
- id: z.ZodOptional<z.ZodString>;
2234
- timestamp: z.ZodOptional<z.ZodString>;
2235
- type: z.ZodLiteral<"export_process.data_chunk_processed">;
2236
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2237
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2238
- payload: z.ZodObject<{
2239
- exportRequestId: z.ZodString;
2240
- processId: z.ZodString;
2241
- projectId: z.ZodString;
2242
- chunkId: z.ZodString;
2243
- metadataExternalStorageId: z.ZodString;
2244
- }, "strip", z.ZodTypeAny, {
2245
- projectId: string;
2246
- exportRequestId: string;
2247
- chunkId: string;
2248
- processId: string;
2249
- metadataExternalStorageId: string;
2250
- }, {
2251
- projectId: string;
2252
- exportRequestId: string;
2253
- chunkId: string;
2254
- processId: string;
2255
- metadataExternalStorageId: string;
2256
- }>;
2257
- metadata: z.ZodOptional<z.ZodObject<{
2258
- schemaVersion: z.ZodOptional<z.ZodString>;
2259
- producedBy: z.ZodOptional<z.ZodString>;
2260
- originatedFrom: z.ZodOptional<z.ZodString>;
2261
- correlationId: z.ZodOptional<z.ZodString>;
2262
- }, "strip">>;
2263
- }, "strip", z.ZodTypeAny, {
2264
- type: "export_process.data_chunk_processed";
2265
- payload: {
2266
- projectId: string;
2267
- exportRequestId: string;
2268
- chunkId: string;
2269
- processId: string;
2270
- metadataExternalStorageId: string;
2271
- };
2272
- id?: string | undefined;
2273
- metadata?: {
2274
- schemaVersion?: string | undefined;
2275
- producedBy?: string | undefined;
2276
- originatedFrom?: string | undefined;
2277
- correlationId?: string | undefined;
2278
- } | undefined;
2279
- timestamp?: string | undefined;
2280
- deduplicationId?: string | null | undefined;
2281
- deduplicationOptions?: {
2282
- deduplicationWindowSeconds?: number | undefined;
2283
- lockTimeoutSeconds?: number | undefined;
2284
- acquireTimeoutSeconds?: number | undefined;
2285
- refreshIntervalSeconds?: number | undefined;
2286
- } | null | undefined;
2287
- }, {
2288
- type: "export_process.data_chunk_processed";
2289
- payload: {
2290
- projectId: string;
2291
- exportRequestId: string;
2292
- chunkId: string;
2293
- processId: string;
2294
- metadataExternalStorageId: string;
2295
- };
2296
- id?: string | undefined;
2297
- metadata?: {
2298
- schemaVersion?: string | undefined;
2299
- producedBy?: string | undefined;
2300
- originatedFrom?: string | undefined;
2301
- correlationId?: string | undefined;
2302
- } | undefined;
2303
- timestamp?: string | undefined;
2304
- deduplicationId?: string | null | undefined;
2305
- deduplicationOptions?: {
2306
- deduplicationWindowSeconds?: number | undefined;
2307
- lockTimeoutSeconds?: number | undefined;
2308
- acquireTimeoutSeconds?: number | undefined;
2309
- refreshIntervalSeconds?: number | undefined;
2310
- } | null | undefined;
2311
- }>;
2312
- };
2313
- 'export_process.data_chunk_processing_failed': {
2314
- snsTopic: "autopilot-export_process";
2315
- producedBy: string[];
2316
- consumerSchema: z.ZodObject<{
2317
- id: z.ZodString;
2318
- timestamp: z.ZodString;
2319
- type: z.ZodLiteral<"export_process.data_chunk_processing_failed">;
2320
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2321
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2322
- payload: z.ZodObject<{
2323
- exportRequestId: z.ZodString;
2324
- processId: z.ZodString;
2325
- projectId: z.ZodString;
2326
- chunkId: z.ZodString;
2327
- metadataExternalStorageId: z.ZodString;
2328
- failReason: z.ZodString;
2329
- }, "strip", z.ZodTypeAny, {
2330
- projectId: string;
2331
- exportRequestId: string;
2332
- chunkId: string;
2333
- processId: string;
2334
- metadataExternalStorageId: string;
2335
- failReason: string;
2336
- }, {
2337
- projectId: string;
2338
- exportRequestId: string;
2339
- chunkId: string;
2340
- processId: string;
2341
- metadataExternalStorageId: string;
2342
- failReason: string;
2343
- }>;
2344
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
2345
- }, "strip", z.ZodTypeAny, {
2346
- id: string;
2347
- type: "export_process.data_chunk_processing_failed";
2348
- metadata: {
2349
- schemaVersion: string;
2350
- producedBy: string;
2351
- originatedFrom: string;
2352
- correlationId: string;
2353
- };
2354
- timestamp: string;
2355
- payload: {
2356
- projectId: string;
2357
- exportRequestId: string;
2358
- chunkId: string;
2359
- processId: string;
2360
- metadataExternalStorageId: string;
2361
- failReason: string;
2362
- };
2363
- deduplicationId?: string | null | undefined;
2364
- deduplicationOptions?: {
2365
- deduplicationWindowSeconds?: number | undefined;
2366
- lockTimeoutSeconds?: number | undefined;
2367
- acquireTimeoutSeconds?: number | undefined;
2368
- refreshIntervalSeconds?: number | undefined;
2369
- } | null | undefined;
2370
- }, {
2371
- id: string;
2372
- type: "export_process.data_chunk_processing_failed";
2373
- metadata: {
2374
- schemaVersion: string;
2375
- producedBy: string;
2376
- originatedFrom: string;
2377
- correlationId: string;
2378
- };
2379
- timestamp: string;
2380
- payload: {
2381
- projectId: string;
2382
- exportRequestId: string;
2383
- chunkId: string;
2384
- processId: string;
2385
- metadataExternalStorageId: string;
2386
- failReason: string;
2387
- };
2388
- deduplicationId?: string | null | undefined;
2389
- deduplicationOptions?: {
2390
- deduplicationWindowSeconds?: number | undefined;
2391
- lockTimeoutSeconds?: number | undefined;
2392
- acquireTimeoutSeconds?: number | undefined;
2393
- refreshIntervalSeconds?: number | undefined;
2394
- } | null | undefined;
2395
- }>;
2396
- publisherSchema: z.ZodObject<{
2397
- id: z.ZodOptional<z.ZodString>;
2398
- timestamp: z.ZodOptional<z.ZodString>;
2399
- type: z.ZodLiteral<"export_process.data_chunk_processing_failed">;
2400
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2401
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2402
- payload: z.ZodObject<{
2403
- exportRequestId: z.ZodString;
2404
- processId: z.ZodString;
2405
- projectId: z.ZodString;
2406
- chunkId: z.ZodString;
2407
- metadataExternalStorageId: z.ZodString;
2408
- failReason: z.ZodString;
2409
- }, "strip", z.ZodTypeAny, {
2410
- projectId: string;
2411
- exportRequestId: string;
2412
- chunkId: string;
2413
- processId: string;
2414
- metadataExternalStorageId: string;
2415
- failReason: string;
2416
- }, {
2417
- projectId: string;
2418
- exportRequestId: string;
2419
- chunkId: string;
2420
- processId: string;
2421
- metadataExternalStorageId: string;
2422
- failReason: string;
2423
- }>;
2424
- metadata: z.ZodOptional<z.ZodObject<{
2425
- schemaVersion: z.ZodOptional<z.ZodString>;
2426
- producedBy: z.ZodOptional<z.ZodString>;
2427
- originatedFrom: z.ZodOptional<z.ZodString>;
2428
- correlationId: z.ZodOptional<z.ZodString>;
2429
- }, "strip">>;
2430
- }, "strip", z.ZodTypeAny, {
2431
- type: "export_process.data_chunk_processing_failed";
2432
- payload: {
2433
- projectId: string;
2434
- exportRequestId: string;
2435
- chunkId: string;
2436
- processId: string;
2437
- metadataExternalStorageId: string;
2438
- failReason: string;
2439
- };
2440
- id?: string | undefined;
2441
- metadata?: {
2442
- schemaVersion?: string | undefined;
2443
- producedBy?: string | undefined;
2444
- originatedFrom?: string | undefined;
2445
- correlationId?: string | undefined;
2446
- } | undefined;
2447
- timestamp?: string | undefined;
2448
- deduplicationId?: string | null | undefined;
2449
- deduplicationOptions?: {
2450
- deduplicationWindowSeconds?: number | undefined;
2451
- lockTimeoutSeconds?: number | undefined;
2452
- acquireTimeoutSeconds?: number | undefined;
2453
- refreshIntervalSeconds?: number | undefined;
2454
- } | null | undefined;
2455
- }, {
2456
- type: "export_process.data_chunk_processing_failed";
2457
- payload: {
2458
- projectId: string;
2459
- exportRequestId: string;
2460
- chunkId: string;
2461
- processId: string;
2462
- metadataExternalStorageId: string;
2463
- failReason: string;
2464
- };
2465
- id?: string | undefined;
2466
- metadata?: {
2467
- schemaVersion?: string | undefined;
2468
- producedBy?: string | undefined;
2469
- originatedFrom?: string | undefined;
2470
- correlationId?: string | undefined;
2471
- } | undefined;
2472
- timestamp?: string | undefined;
2473
- deduplicationId?: string | null | undefined;
2474
- deduplicationOptions?: {
2475
- deduplicationWindowSeconds?: number | undefined;
2476
- lockTimeoutSeconds?: number | undefined;
2477
- acquireTimeoutSeconds?: number | undefined;
2478
- refreshIntervalSeconds?: number | undefined;
2479
- } | null | undefined;
2480
- }>;
2481
- };
2482
- 'export_process.all_data_chunks_processed': {
2483
- snsTopic: "autopilot-export_process";
2484
- producedBy: string[];
2485
- consumerSchema: z.ZodObject<{
2486
- id: z.ZodString;
2487
- timestamp: z.ZodString;
2488
- type: z.ZodLiteral<"export_process.all_data_chunks_processed">;
2489
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2490
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2491
- payload: z.ZodObject<{
2492
- projectId: z.ZodString;
2493
- processId: z.ZodString;
2494
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
2495
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2496
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2497
- }, "strip", z.ZodTypeAny, {
2498
- languages?: string[] | undefined;
2499
- }, {
2500
- languages?: string[] | undefined;
2501
- }>>>;
2502
- } & {
2503
- outputType: z.ZodLiteral<"FILE">;
2504
- }, "strip", z.ZodTypeAny, {
2505
- outputType: "FILE";
2506
- items?: Record<string, {
2507
- languages?: string[] | undefined;
2508
- }> | undefined;
2509
- }, {
2510
- outputType: "FILE";
2511
- items?: Record<string, {
2512
- languages?: string[] | undefined;
2513
- }> | undefined;
2514
- }>, z.ZodObject<{
2515
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2516
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2517
- }, "strip", z.ZodTypeAny, {
2518
- languages?: string[] | undefined;
2519
- }, {
2520
- languages?: string[] | undefined;
2521
- }>>>;
2522
- } & {
2523
- outputType: z.ZodLiteral<"GIT">;
2524
- branchName: z.ZodOptional<z.ZodString>;
2525
- }, "strip", z.ZodTypeAny, {
2526
- outputType: "GIT";
2527
- items?: Record<string, {
2528
- languages?: string[] | undefined;
2529
- }> | undefined;
2530
- branchName?: string | undefined;
2531
- }, {
2532
- outputType: "GIT";
2533
- items?: Record<string, {
2534
- languages?: string[] | undefined;
2535
- }> | undefined;
2536
- branchName?: string | undefined;
2537
- }>, z.ZodObject<{
2538
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2539
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2540
- }, "strip", z.ZodTypeAny, {
2541
- languages?: string[] | undefined;
2542
- }, {
2543
- languages?: string[] | undefined;
2544
- }>>>;
2545
- } & {
2546
- outputType: z.ZodLiteral<"SHOPIFY">;
2547
- force: z.ZodOptional<z.ZodBoolean>;
2548
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
2549
- }, "strip", z.ZodTypeAny, {
2550
- outputType: "SHOPIFY";
2551
- items?: Record<string, {
2552
- languages?: string[] | undefined;
2553
- }> | undefined;
2554
- force?: boolean | undefined;
2555
- useNonTranslatableMarkers?: boolean | undefined;
2556
- }, {
2557
- outputType: "SHOPIFY";
2558
- items?: Record<string, {
2559
- languages?: string[] | undefined;
2560
- }> | undefined;
2561
- force?: boolean | undefined;
2562
- useNonTranslatableMarkers?: boolean | undefined;
2563
- }>]>;
2564
- }, "strip", z.ZodTypeAny, {
2565
- options: {
2566
- outputType: "GIT";
2567
- items?: Record<string, {
2568
- languages?: string[] | undefined;
2569
- }> | undefined;
2570
- branchName?: string | undefined;
2571
- } | {
2572
- outputType: "SHOPIFY";
2573
- items?: Record<string, {
2574
- languages?: string[] | undefined;
2575
- }> | undefined;
2576
- force?: boolean | undefined;
2577
- useNonTranslatableMarkers?: boolean | undefined;
2578
- } | {
2579
- outputType: "FILE";
2580
- items?: Record<string, {
2581
- languages?: string[] | undefined;
2582
- }> | undefined;
2583
- };
2584
- projectId: string;
2585
- processId: string;
2586
- }, {
2587
- options: {
2588
- outputType: "GIT";
2589
- items?: Record<string, {
2590
- languages?: string[] | undefined;
2591
- }> | undefined;
2592
- branchName?: string | undefined;
2593
- } | {
2594
- outputType: "SHOPIFY";
2595
- items?: Record<string, {
2596
- languages?: string[] | undefined;
2597
- }> | undefined;
2598
- force?: boolean | undefined;
2599
- useNonTranslatableMarkers?: boolean | undefined;
2600
- } | {
2601
- outputType: "FILE";
2602
- items?: Record<string, {
2603
- languages?: string[] | undefined;
2604
- }> | undefined;
2605
- };
2606
- projectId: string;
2607
- processId: string;
2608
- }>;
2609
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
2610
- }, "strip", z.ZodTypeAny, {
2611
- id: string;
2612
- type: "export_process.all_data_chunks_processed";
2613
- metadata: {
2614
- schemaVersion: string;
2615
- producedBy: string;
2616
- originatedFrom: string;
2617
- correlationId: string;
2618
- };
2619
- timestamp: string;
2620
- payload: {
2621
- options: {
2622
- outputType: "GIT";
2623
- items?: Record<string, {
2624
- languages?: string[] | undefined;
2625
- }> | undefined;
2626
- branchName?: string | undefined;
2627
- } | {
2628
- outputType: "SHOPIFY";
2629
- items?: Record<string, {
2630
- languages?: string[] | undefined;
2631
- }> | undefined;
2632
- force?: boolean | undefined;
2633
- useNonTranslatableMarkers?: boolean | undefined;
2634
- } | {
2635
- outputType: "FILE";
2636
- items?: Record<string, {
2637
- languages?: string[] | undefined;
2638
- }> | undefined;
2639
- };
2640
- projectId: string;
2641
- processId: string;
2642
- };
2643
- deduplicationId?: string | null | undefined;
2644
- deduplicationOptions?: {
2645
- deduplicationWindowSeconds?: number | undefined;
2646
- lockTimeoutSeconds?: number | undefined;
2647
- acquireTimeoutSeconds?: number | undefined;
2648
- refreshIntervalSeconds?: number | undefined;
2649
- } | null | undefined;
2650
- }, {
2651
- id: string;
2652
- type: "export_process.all_data_chunks_processed";
2653
- metadata: {
2654
- schemaVersion: string;
2655
- producedBy: string;
2656
- originatedFrom: string;
2657
- correlationId: string;
2658
- };
2659
- timestamp: string;
2660
- payload: {
2661
- options: {
2662
- outputType: "GIT";
2663
- items?: Record<string, {
2664
- languages?: string[] | undefined;
2665
- }> | undefined;
2666
- branchName?: string | undefined;
2667
- } | {
2668
- outputType: "SHOPIFY";
2669
- items?: Record<string, {
2670
- languages?: string[] | undefined;
2671
- }> | undefined;
2672
- force?: boolean | undefined;
2673
- useNonTranslatableMarkers?: boolean | undefined;
2674
- } | {
2675
- outputType: "FILE";
2676
- items?: Record<string, {
2677
- languages?: string[] | undefined;
2678
- }> | undefined;
2679
- };
2680
- projectId: string;
2681
- processId: string;
2682
- };
2683
- deduplicationId?: string | null | undefined;
2684
- deduplicationOptions?: {
2685
- deduplicationWindowSeconds?: number | undefined;
2686
- lockTimeoutSeconds?: number | undefined;
2687
- acquireTimeoutSeconds?: number | undefined;
2688
- refreshIntervalSeconds?: number | undefined;
2689
- } | null | undefined;
2690
- }>;
2691
- publisherSchema: z.ZodObject<{
2692
- id: z.ZodOptional<z.ZodString>;
2693
- timestamp: z.ZodOptional<z.ZodString>;
2694
- type: z.ZodLiteral<"export_process.all_data_chunks_processed">;
2695
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2696
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2697
- payload: z.ZodObject<{
2698
- projectId: z.ZodString;
2699
- processId: z.ZodString;
2700
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
2701
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2702
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2703
- }, "strip", z.ZodTypeAny, {
2704
- languages?: string[] | undefined;
2705
- }, {
2706
- languages?: string[] | undefined;
2707
- }>>>;
2708
- } & {
2709
- outputType: z.ZodLiteral<"FILE">;
2710
- }, "strip", z.ZodTypeAny, {
2711
- outputType: "FILE";
2712
- items?: Record<string, {
2713
- languages?: string[] | undefined;
2714
- }> | undefined;
2715
- }, {
2716
- outputType: "FILE";
2717
- items?: Record<string, {
2718
- languages?: string[] | undefined;
2719
- }> | undefined;
2720
- }>, z.ZodObject<{
2721
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2722
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2723
- }, "strip", z.ZodTypeAny, {
2724
- languages?: string[] | undefined;
2725
- }, {
2726
- languages?: string[] | undefined;
2727
- }>>>;
2728
- } & {
2729
- outputType: z.ZodLiteral<"GIT">;
2730
- branchName: z.ZodOptional<z.ZodString>;
2731
- }, "strip", z.ZodTypeAny, {
2732
- outputType: "GIT";
2733
- items?: Record<string, {
2734
- languages?: string[] | undefined;
2735
- }> | undefined;
2736
- branchName?: string | undefined;
2737
- }, {
2738
- outputType: "GIT";
2739
- items?: Record<string, {
2740
- languages?: string[] | undefined;
2741
- }> | undefined;
2742
- branchName?: string | undefined;
2743
- }>, z.ZodObject<{
2744
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2745
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2746
- }, "strip", z.ZodTypeAny, {
2747
- languages?: string[] | undefined;
2748
- }, {
2749
- languages?: string[] | undefined;
2750
- }>>>;
2751
- } & {
2752
- outputType: z.ZodLiteral<"SHOPIFY">;
2753
- force: z.ZodOptional<z.ZodBoolean>;
2754
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
2755
- }, "strip", z.ZodTypeAny, {
2756
- outputType: "SHOPIFY";
2757
- items?: Record<string, {
2758
- languages?: string[] | undefined;
2759
- }> | undefined;
2760
- force?: boolean | undefined;
2761
- useNonTranslatableMarkers?: boolean | undefined;
2762
- }, {
2763
- outputType: "SHOPIFY";
2764
- items?: Record<string, {
2765
- languages?: string[] | undefined;
2766
- }> | undefined;
2767
- force?: boolean | undefined;
2768
- useNonTranslatableMarkers?: boolean | undefined;
2769
- }>]>;
2770
- }, "strip", z.ZodTypeAny, {
2771
- options: {
2772
- outputType: "GIT";
2773
- items?: Record<string, {
2774
- languages?: string[] | undefined;
2775
- }> | undefined;
2776
- branchName?: string | undefined;
2777
- } | {
2778
- outputType: "SHOPIFY";
2779
- items?: Record<string, {
2780
- languages?: string[] | undefined;
2781
- }> | undefined;
2782
- force?: boolean | undefined;
2783
- useNonTranslatableMarkers?: boolean | undefined;
2784
- } | {
2785
- outputType: "FILE";
2786
- items?: Record<string, {
2787
- languages?: string[] | undefined;
2788
- }> | undefined;
2789
- };
2790
- projectId: string;
2791
- processId: string;
2792
- }, {
2793
- options: {
2794
- outputType: "GIT";
2795
- items?: Record<string, {
2796
- languages?: string[] | undefined;
2797
- }> | undefined;
2798
- branchName?: string | undefined;
2799
- } | {
2800
- outputType: "SHOPIFY";
2801
- items?: Record<string, {
2802
- languages?: string[] | undefined;
2803
- }> | undefined;
2804
- force?: boolean | undefined;
2805
- useNonTranslatableMarkers?: boolean | undefined;
2806
- } | {
2807
- outputType: "FILE";
2808
- items?: Record<string, {
2809
- languages?: string[] | undefined;
2810
- }> | undefined;
2811
- };
2812
- projectId: string;
2813
- processId: string;
2814
- }>;
2815
- metadata: z.ZodOptional<z.ZodObject<{
2816
- schemaVersion: z.ZodOptional<z.ZodString>;
2817
- producedBy: z.ZodOptional<z.ZodString>;
2818
- originatedFrom: z.ZodOptional<z.ZodString>;
2819
- correlationId: z.ZodOptional<z.ZodString>;
2820
- }, "strip">>;
2821
- }, "strip", z.ZodTypeAny, {
2822
- type: "export_process.all_data_chunks_processed";
2823
- payload: {
2824
- options: {
2825
- outputType: "GIT";
2826
- items?: Record<string, {
2827
- languages?: string[] | undefined;
2828
- }> | undefined;
2829
- branchName?: string | undefined;
2830
- } | {
2831
- outputType: "SHOPIFY";
2832
- items?: Record<string, {
2833
- languages?: string[] | undefined;
2834
- }> | undefined;
2835
- force?: boolean | undefined;
2836
- useNonTranslatableMarkers?: boolean | undefined;
2837
- } | {
2838
- outputType: "FILE";
2839
- items?: Record<string, {
2840
- languages?: string[] | undefined;
2841
- }> | undefined;
2842
- };
2843
- projectId: string;
2844
- processId: string;
2845
- };
2846
- id?: string | undefined;
2847
- metadata?: {
2848
- schemaVersion?: string | undefined;
2849
- producedBy?: string | undefined;
2850
- originatedFrom?: string | undefined;
2851
- correlationId?: string | undefined;
2852
- } | undefined;
2853
- timestamp?: string | undefined;
2854
- deduplicationId?: string | null | undefined;
2855
- deduplicationOptions?: {
2856
- deduplicationWindowSeconds?: number | undefined;
2857
- lockTimeoutSeconds?: number | undefined;
2858
- acquireTimeoutSeconds?: number | undefined;
2859
- refreshIntervalSeconds?: number | undefined;
2860
- } | null | undefined;
2861
- }, {
2862
- type: "export_process.all_data_chunks_processed";
2863
- payload: {
2864
- options: {
2865
- outputType: "GIT";
2866
- items?: Record<string, {
2867
- languages?: string[] | undefined;
2868
- }> | undefined;
2869
- branchName?: string | undefined;
2870
- } | {
2871
- outputType: "SHOPIFY";
2872
- items?: Record<string, {
2873
- languages?: string[] | undefined;
2874
- }> | undefined;
2875
- force?: boolean | undefined;
2876
- useNonTranslatableMarkers?: boolean | undefined;
2877
- } | {
2878
- outputType: "FILE";
2879
- items?: Record<string, {
2880
- languages?: string[] | undefined;
2881
- }> | undefined;
2882
- };
2883
- projectId: string;
2884
- processId: string;
2885
- };
2886
- id?: string | undefined;
2887
- metadata?: {
2888
- schemaVersion?: string | undefined;
2889
- producedBy?: string | undefined;
2890
- originatedFrom?: string | undefined;
2891
- correlationId?: string | undefined;
2892
- } | undefined;
2893
- timestamp?: string | undefined;
2894
- deduplicationId?: string | null | undefined;
2895
- deduplicationOptions?: {
2896
- deduplicationWindowSeconds?: number | undefined;
2897
- lockTimeoutSeconds?: number | undefined;
2898
- acquireTimeoutSeconds?: number | undefined;
2899
- refreshIntervalSeconds?: number | undefined;
2900
- } | null | undefined;
2901
- }>;
2902
- };
2903
- 'export_process.completed': {
2904
- snsTopic: "autopilot-export_process";
2905
- producedBy: string[];
2906
- consumerSchema: z.ZodObject<{
2907
- id: z.ZodString;
2908
- timestamp: z.ZodString;
2909
- type: z.ZodLiteral<"export_process.completed">;
2910
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2911
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
2912
- payload: z.ZodObject<{
2913
- exportRequestId: z.ZodString;
2914
- processId: z.ZodString;
2915
- projectId: z.ZodString;
2916
- targetLanguageIds: z.ZodArray<z.ZodString, "many">;
2917
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
2918
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2919
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2920
- }, "strip", z.ZodTypeAny, {
2921
- languages?: string[] | undefined;
2922
- }, {
2923
- languages?: string[] | undefined;
2924
- }>>>;
2925
- } & {
2926
- outputType: z.ZodLiteral<"FILE">;
2927
- }, "strip", z.ZodTypeAny, {
2928
- outputType: "FILE";
2929
- items?: Record<string, {
2930
- languages?: string[] | undefined;
2931
- }> | undefined;
2932
- }, {
2933
- outputType: "FILE";
2934
- items?: Record<string, {
2935
- languages?: string[] | undefined;
2936
- }> | undefined;
2937
- }>, z.ZodObject<{
2938
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2939
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2940
- }, "strip", z.ZodTypeAny, {
2941
- languages?: string[] | undefined;
2942
- }, {
2943
- languages?: string[] | undefined;
2944
- }>>>;
2945
- } & {
2946
- outputType: z.ZodLiteral<"GIT">;
2947
- branchName: z.ZodOptional<z.ZodString>;
2948
- }, "strip", z.ZodTypeAny, {
2949
- outputType: "GIT";
2950
- items?: Record<string, {
2951
- languages?: string[] | undefined;
2952
- }> | undefined;
2953
- branchName?: string | undefined;
2954
- }, {
2955
- outputType: "GIT";
2956
- items?: Record<string, {
2957
- languages?: string[] | undefined;
2958
- }> | undefined;
2959
- branchName?: string | undefined;
2960
- }>, z.ZodObject<{
2961
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2962
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2963
- }, "strip", z.ZodTypeAny, {
2964
- languages?: string[] | undefined;
2965
- }, {
2966
- languages?: string[] | undefined;
2967
- }>>>;
2968
- } & {
2969
- outputType: z.ZodLiteral<"SHOPIFY">;
2970
- force: z.ZodOptional<z.ZodBoolean>;
2971
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
2972
- }, "strip", z.ZodTypeAny, {
2973
- outputType: "SHOPIFY";
2974
- items?: Record<string, {
2975
- languages?: string[] | undefined;
2976
- }> | undefined;
2977
- force?: boolean | undefined;
2978
- useNonTranslatableMarkers?: boolean | undefined;
2979
- }, {
2980
- outputType: "SHOPIFY";
2981
- items?: Record<string, {
2982
- languages?: string[] | undefined;
2983
- }> | undefined;
2984
- force?: boolean | undefined;
2985
- useNonTranslatableMarkers?: boolean | undefined;
2986
- }>]>;
2987
- }, "strip", z.ZodTypeAny, {
2988
- options: {
2989
- outputType: "GIT";
2990
- items?: Record<string, {
2991
- languages?: string[] | undefined;
2992
- }> | undefined;
2993
- branchName?: string | undefined;
2994
- } | {
2995
- outputType: "SHOPIFY";
2996
- items?: Record<string, {
2997
- languages?: string[] | undefined;
2998
- }> | undefined;
2999
- force?: boolean | undefined;
3000
- useNonTranslatableMarkers?: boolean | undefined;
3001
- } | {
3002
- outputType: "FILE";
3003
- items?: Record<string, {
3004
- languages?: string[] | undefined;
3005
- }> | undefined;
3006
- };
3007
- projectId: string;
3008
- exportRequestId: string;
3009
- processId: string;
3010
- targetLanguageIds: string[];
3011
- }, {
3012
- options: {
3013
- outputType: "GIT";
3014
- items?: Record<string, {
3015
- languages?: string[] | undefined;
3016
- }> | undefined;
3017
- branchName?: string | undefined;
3018
- } | {
3019
- outputType: "SHOPIFY";
3020
- items?: Record<string, {
3021
- languages?: string[] | undefined;
3022
- }> | undefined;
3023
- force?: boolean | undefined;
3024
- useNonTranslatableMarkers?: boolean | undefined;
3025
- } | {
3026
- outputType: "FILE";
3027
- items?: Record<string, {
3028
- languages?: string[] | undefined;
3029
- }> | undefined;
3030
- };
3031
- projectId: string;
3032
- exportRequestId: string;
3033
- processId: string;
3034
- targetLanguageIds: string[];
3035
- }>;
3036
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
3037
- }, "strip", z.ZodTypeAny, {
3038
- id: string;
3039
- type: "export_process.completed";
3040
- metadata: {
3041
- schemaVersion: string;
3042
- producedBy: string;
3043
- originatedFrom: string;
3044
- correlationId: string;
3045
- };
3046
- timestamp: string;
3047
- payload: {
3048
- options: {
3049
- outputType: "GIT";
3050
- items?: Record<string, {
3051
- languages?: string[] | undefined;
3052
- }> | undefined;
3053
- branchName?: string | undefined;
3054
- } | {
3055
- outputType: "SHOPIFY";
3056
- items?: Record<string, {
3057
- languages?: string[] | undefined;
3058
- }> | undefined;
3059
- force?: boolean | undefined;
3060
- useNonTranslatableMarkers?: boolean | undefined;
3061
- } | {
3062
- outputType: "FILE";
3063
- items?: Record<string, {
3064
- languages?: string[] | undefined;
3065
- }> | undefined;
3066
- };
3067
- projectId: string;
3068
- exportRequestId: string;
3069
- processId: string;
3070
- targetLanguageIds: string[];
3071
- };
3072
- deduplicationId?: string | null | undefined;
3073
- deduplicationOptions?: {
3074
- deduplicationWindowSeconds?: number | undefined;
3075
- lockTimeoutSeconds?: number | undefined;
3076
- acquireTimeoutSeconds?: number | undefined;
3077
- refreshIntervalSeconds?: number | undefined;
3078
- } | null | undefined;
3079
- }, {
3080
- id: string;
3081
- type: "export_process.completed";
3082
- metadata: {
3083
- schemaVersion: string;
3084
- producedBy: string;
3085
- originatedFrom: string;
3086
- correlationId: string;
3087
- };
3088
- timestamp: string;
3089
- payload: {
3090
- options: {
3091
- outputType: "GIT";
3092
- items?: Record<string, {
3093
- languages?: string[] | undefined;
3094
- }> | undefined;
3095
- branchName?: string | undefined;
3096
- } | {
3097
- outputType: "SHOPIFY";
3098
- items?: Record<string, {
3099
- languages?: string[] | undefined;
3100
- }> | undefined;
3101
- force?: boolean | undefined;
3102
- useNonTranslatableMarkers?: boolean | undefined;
3103
- } | {
3104
- outputType: "FILE";
3105
- items?: Record<string, {
3106
- languages?: string[] | undefined;
3107
- }> | undefined;
3108
- };
3109
- projectId: string;
3110
- exportRequestId: string;
3111
- processId: string;
3112
- targetLanguageIds: string[];
3113
- };
3114
- deduplicationId?: string | null | undefined;
3115
- deduplicationOptions?: {
3116
- deduplicationWindowSeconds?: number | undefined;
3117
- lockTimeoutSeconds?: number | undefined;
3118
- acquireTimeoutSeconds?: number | undefined;
3119
- refreshIntervalSeconds?: number | undefined;
3120
- } | null | undefined;
3121
- }>;
3122
- publisherSchema: z.ZodObject<{
3123
- id: z.ZodOptional<z.ZodString>;
3124
- timestamp: z.ZodOptional<z.ZodString>;
3125
- type: z.ZodLiteral<"export_process.completed">;
3126
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3127
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
3128
- payload: z.ZodObject<{
3129
- exportRequestId: z.ZodString;
3130
- processId: z.ZodString;
3131
- projectId: z.ZodString;
3132
- targetLanguageIds: z.ZodArray<z.ZodString, "many">;
3133
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
3134
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3135
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3136
- }, "strip", z.ZodTypeAny, {
3137
- languages?: string[] | undefined;
3138
- }, {
3139
- languages?: string[] | undefined;
3140
- }>>>;
3141
- } & {
3142
- outputType: z.ZodLiteral<"FILE">;
3143
- }, "strip", z.ZodTypeAny, {
3144
- outputType: "FILE";
3145
- items?: Record<string, {
3146
- languages?: string[] | undefined;
3147
- }> | undefined;
3148
- }, {
3149
- outputType: "FILE";
3150
- items?: Record<string, {
3151
- languages?: string[] | undefined;
3152
- }> | undefined;
3153
- }>, z.ZodObject<{
3154
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3155
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3156
- }, "strip", z.ZodTypeAny, {
3157
- languages?: string[] | undefined;
3158
- }, {
3159
- languages?: string[] | undefined;
3160
- }>>>;
3161
- } & {
3162
- outputType: z.ZodLiteral<"GIT">;
3163
- branchName: z.ZodOptional<z.ZodString>;
3164
- }, "strip", z.ZodTypeAny, {
3165
- outputType: "GIT";
3166
- items?: Record<string, {
3167
- languages?: string[] | undefined;
3168
- }> | undefined;
3169
- branchName?: string | undefined;
3170
- }, {
3171
- outputType: "GIT";
3172
- items?: Record<string, {
3173
- languages?: string[] | undefined;
3174
- }> | undefined;
3175
- branchName?: string | undefined;
3176
- }>, z.ZodObject<{
3177
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3178
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3179
- }, "strip", z.ZodTypeAny, {
3180
- languages?: string[] | undefined;
3181
- }, {
3182
- languages?: string[] | undefined;
3183
- }>>>;
3184
- } & {
3185
- outputType: z.ZodLiteral<"SHOPIFY">;
3186
- force: z.ZodOptional<z.ZodBoolean>;
3187
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
3188
- }, "strip", z.ZodTypeAny, {
3189
- outputType: "SHOPIFY";
3190
- items?: Record<string, {
3191
- languages?: string[] | undefined;
3192
- }> | undefined;
3193
- force?: boolean | undefined;
3194
- useNonTranslatableMarkers?: boolean | undefined;
3195
- }, {
3196
- outputType: "SHOPIFY";
3197
- items?: Record<string, {
3198
- languages?: string[] | undefined;
3199
- }> | undefined;
3200
- force?: boolean | undefined;
3201
- useNonTranslatableMarkers?: boolean | undefined;
3202
- }>]>;
3203
- }, "strip", z.ZodTypeAny, {
3204
- options: {
3205
- outputType: "GIT";
3206
- items?: Record<string, {
3207
- languages?: string[] | undefined;
3208
- }> | undefined;
3209
- branchName?: string | undefined;
3210
- } | {
3211
- outputType: "SHOPIFY";
3212
- items?: Record<string, {
3213
- languages?: string[] | undefined;
3214
- }> | undefined;
3215
- force?: boolean | undefined;
3216
- useNonTranslatableMarkers?: boolean | undefined;
3217
- } | {
3218
- outputType: "FILE";
3219
- items?: Record<string, {
3220
- languages?: string[] | undefined;
3221
- }> | undefined;
3222
- };
3223
- projectId: string;
3224
- exportRequestId: string;
3225
- processId: string;
3226
- targetLanguageIds: string[];
3227
- }, {
3228
- options: {
3229
- outputType: "GIT";
3230
- items?: Record<string, {
3231
- languages?: string[] | undefined;
3232
- }> | undefined;
3233
- branchName?: string | undefined;
3234
- } | {
3235
- outputType: "SHOPIFY";
3236
- items?: Record<string, {
3237
- languages?: string[] | undefined;
3238
- }> | undefined;
3239
- force?: boolean | undefined;
3240
- useNonTranslatableMarkers?: boolean | undefined;
3241
- } | {
3242
- outputType: "FILE";
3243
- items?: Record<string, {
3244
- languages?: string[] | undefined;
3245
- }> | undefined;
3246
- };
3247
- projectId: string;
3248
- exportRequestId: string;
3249
- processId: string;
3250
- targetLanguageIds: string[];
3251
- }>;
3252
- metadata: z.ZodOptional<z.ZodObject<{
3253
- schemaVersion: z.ZodOptional<z.ZodString>;
3254
- producedBy: z.ZodOptional<z.ZodString>;
3255
- originatedFrom: z.ZodOptional<z.ZodString>;
3256
- correlationId: z.ZodOptional<z.ZodString>;
3257
- }, "strip">>;
3258
- }, "strip", z.ZodTypeAny, {
3259
- type: "export_process.completed";
3260
- payload: {
3261
- options: {
3262
- outputType: "GIT";
3263
- items?: Record<string, {
3264
- languages?: string[] | undefined;
3265
- }> | undefined;
3266
- branchName?: string | undefined;
3267
- } | {
3268
- outputType: "SHOPIFY";
3269
- items?: Record<string, {
3270
- languages?: string[] | undefined;
3271
- }> | undefined;
3272
- force?: boolean | undefined;
3273
- useNonTranslatableMarkers?: boolean | undefined;
3274
- } | {
3275
- outputType: "FILE";
3276
- items?: Record<string, {
3277
- languages?: string[] | undefined;
3278
- }> | undefined;
3279
- };
3280
- projectId: string;
3281
- exportRequestId: string;
3282
- processId: string;
3283
- targetLanguageIds: string[];
3284
- };
3285
- id?: string | undefined;
3286
- metadata?: {
3287
- schemaVersion?: string | undefined;
3288
- producedBy?: string | undefined;
3289
- originatedFrom?: string | undefined;
3290
- correlationId?: string | undefined;
3291
- } | undefined;
3292
- timestamp?: string | undefined;
3293
- deduplicationId?: string | null | undefined;
3294
- deduplicationOptions?: {
3295
- deduplicationWindowSeconds?: number | undefined;
3296
- lockTimeoutSeconds?: number | undefined;
3297
- acquireTimeoutSeconds?: number | undefined;
3298
- refreshIntervalSeconds?: number | undefined;
3299
- } | null | undefined;
3300
- }, {
3301
- type: "export_process.completed";
3302
- payload: {
3303
- options: {
3304
- outputType: "GIT";
3305
- items?: Record<string, {
3306
- languages?: string[] | undefined;
3307
- }> | undefined;
3308
- branchName?: string | undefined;
3309
- } | {
3310
- outputType: "SHOPIFY";
3311
- items?: Record<string, {
3312
- languages?: string[] | undefined;
3313
- }> | undefined;
3314
- force?: boolean | undefined;
3315
- useNonTranslatableMarkers?: boolean | undefined;
3316
- } | {
3317
- outputType: "FILE";
3318
- items?: Record<string, {
3319
- languages?: string[] | undefined;
3320
- }> | undefined;
3321
- };
3322
- projectId: string;
3323
- exportRequestId: string;
3324
- processId: string;
3325
- targetLanguageIds: string[];
3326
- };
3327
- id?: string | undefined;
3328
- metadata?: {
3329
- schemaVersion?: string | undefined;
3330
- producedBy?: string | undefined;
3331
- originatedFrom?: string | undefined;
3332
- correlationId?: string | undefined;
3333
- } | undefined;
3334
- timestamp?: string | undefined;
3335
- deduplicationId?: string | null | undefined;
3336
- deduplicationOptions?: {
3337
- deduplicationWindowSeconds?: number | undefined;
3338
- lockTimeoutSeconds?: number | undefined;
3339
- acquireTimeoutSeconds?: number | undefined;
3340
- refreshIntervalSeconds?: number | undefined;
3341
- } | null | undefined;
3342
- }>;
3343
- };
3344
- 'export_process.failed': {
3345
- snsTopic: "autopilot-export_process";
3346
- producedBy: string[];
3347
- consumerSchema: z.ZodObject<{
3348
- id: z.ZodString;
3349
- timestamp: z.ZodString;
3350
- type: z.ZodLiteral<"export_process.failed">;
3351
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3352
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
3353
- payload: z.ZodObject<{
3354
- projectId: z.ZodString;
3355
- processId: z.ZodString;
3356
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
3357
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3358
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3359
- }, "strip", z.ZodTypeAny, {
3360
- languages?: string[] | undefined;
3361
- }, {
3362
- languages?: string[] | undefined;
3363
- }>>>;
3364
- } & {
3365
- outputType: z.ZodLiteral<"FILE">;
3366
- }, "strip", z.ZodTypeAny, {
3367
- outputType: "FILE";
3368
- items?: Record<string, {
3369
- languages?: string[] | undefined;
3370
- }> | undefined;
3371
- }, {
3372
- outputType: "FILE";
3373
- items?: Record<string, {
3374
- languages?: string[] | undefined;
3375
- }> | undefined;
3376
- }>, z.ZodObject<{
3377
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3378
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3379
- }, "strip", z.ZodTypeAny, {
3380
- languages?: string[] | undefined;
3381
- }, {
3382
- languages?: string[] | undefined;
3383
- }>>>;
3384
- } & {
3385
- outputType: z.ZodLiteral<"GIT">;
3386
- branchName: z.ZodOptional<z.ZodString>;
3387
- }, "strip", z.ZodTypeAny, {
3388
- outputType: "GIT";
3389
- items?: Record<string, {
3390
- languages?: string[] | undefined;
3391
- }> | undefined;
3392
- branchName?: string | undefined;
3393
- }, {
3394
- outputType: "GIT";
3395
- items?: Record<string, {
3396
- languages?: string[] | undefined;
3397
- }> | undefined;
3398
- branchName?: string | undefined;
3399
- }>, z.ZodObject<{
3400
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3401
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3402
- }, "strip", z.ZodTypeAny, {
3403
- languages?: string[] | undefined;
3404
- }, {
3405
- languages?: string[] | undefined;
3406
- }>>>;
3407
- } & {
3408
- outputType: z.ZodLiteral<"SHOPIFY">;
3409
- force: z.ZodOptional<z.ZodBoolean>;
3410
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
3411
- }, "strip", z.ZodTypeAny, {
3412
- outputType: "SHOPIFY";
3413
- items?: Record<string, {
3414
- languages?: string[] | undefined;
3415
- }> | undefined;
3416
- force?: boolean | undefined;
3417
- useNonTranslatableMarkers?: boolean | undefined;
3418
- }, {
3419
- outputType: "SHOPIFY";
3420
- items?: Record<string, {
3421
- languages?: string[] | undefined;
3422
- }> | undefined;
3423
- force?: boolean | undefined;
3424
- useNonTranslatableMarkers?: boolean | undefined;
3425
- }>]>;
3426
- exportRequestId: z.ZodString;
3427
- }, "strip", z.ZodTypeAny, {
3428
- options: {
3429
- outputType: "GIT";
3430
- items?: Record<string, {
3431
- languages?: string[] | undefined;
3432
- }> | undefined;
3433
- branchName?: string | undefined;
3434
- } | {
3435
- outputType: "SHOPIFY";
3436
- items?: Record<string, {
3437
- languages?: string[] | undefined;
3438
- }> | undefined;
3439
- force?: boolean | undefined;
3440
- useNonTranslatableMarkers?: boolean | undefined;
3441
- } | {
3442
- outputType: "FILE";
3443
- items?: Record<string, {
3444
- languages?: string[] | undefined;
3445
- }> | undefined;
3446
- };
3447
- projectId: string;
3448
- exportRequestId: string;
3449
- processId: string;
3450
- }, {
3451
- options: {
3452
- outputType: "GIT";
3453
- items?: Record<string, {
3454
- languages?: string[] | undefined;
3455
- }> | undefined;
3456
- branchName?: string | undefined;
3457
- } | {
3458
- outputType: "SHOPIFY";
3459
- items?: Record<string, {
3460
- languages?: string[] | undefined;
3461
- }> | undefined;
3462
- force?: boolean | undefined;
3463
- useNonTranslatableMarkers?: boolean | undefined;
3464
- } | {
3465
- outputType: "FILE";
3466
- items?: Record<string, {
3467
- languages?: string[] | undefined;
3468
- }> | undefined;
3469
- };
3470
- projectId: string;
3471
- exportRequestId: string;
3472
- processId: string;
3473
- }>;
3474
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
3475
- }, "strip", z.ZodTypeAny, {
3476
- id: string;
3477
- type: "export_process.failed";
3478
- metadata: {
3479
- schemaVersion: string;
3480
- producedBy: string;
3481
- originatedFrom: string;
3482
- correlationId: string;
3483
- };
3484
- timestamp: string;
3485
- payload: {
3486
- options: {
3487
- outputType: "GIT";
3488
- items?: Record<string, {
3489
- languages?: string[] | undefined;
3490
- }> | undefined;
3491
- branchName?: string | undefined;
3492
- } | {
3493
- outputType: "SHOPIFY";
3494
- items?: Record<string, {
3495
- languages?: string[] | undefined;
3496
- }> | undefined;
3497
- force?: boolean | undefined;
3498
- useNonTranslatableMarkers?: boolean | undefined;
3499
- } | {
3500
- outputType: "FILE";
3501
- items?: Record<string, {
3502
- languages?: string[] | undefined;
3503
- }> | undefined;
3504
- };
3505
- projectId: string;
3506
- exportRequestId: string;
3507
- processId: string;
3508
- };
3509
- deduplicationId?: string | null | undefined;
3510
- deduplicationOptions?: {
3511
- deduplicationWindowSeconds?: number | undefined;
3512
- lockTimeoutSeconds?: number | undefined;
3513
- acquireTimeoutSeconds?: number | undefined;
3514
- refreshIntervalSeconds?: number | undefined;
3515
- } | null | undefined;
3516
- }, {
3517
- id: string;
3518
- type: "export_process.failed";
3519
- metadata: {
3520
- schemaVersion: string;
3521
- producedBy: string;
3522
- originatedFrom: string;
3523
- correlationId: string;
3524
- };
3525
- timestamp: string;
3526
- payload: {
3527
- options: {
3528
- outputType: "GIT";
3529
- items?: Record<string, {
3530
- languages?: string[] | undefined;
3531
- }> | undefined;
3532
- branchName?: string | undefined;
3533
- } | {
3534
- outputType: "SHOPIFY";
3535
- items?: Record<string, {
3536
- languages?: string[] | undefined;
3537
- }> | undefined;
3538
- force?: boolean | undefined;
3539
- useNonTranslatableMarkers?: boolean | undefined;
3540
- } | {
3541
- outputType: "FILE";
3542
- items?: Record<string, {
3543
- languages?: string[] | undefined;
3544
- }> | undefined;
3545
- };
3546
- projectId: string;
3547
- exportRequestId: string;
3548
- processId: string;
3549
- };
3550
- deduplicationId?: string | null | undefined;
3551
- deduplicationOptions?: {
3552
- deduplicationWindowSeconds?: number | undefined;
3553
- lockTimeoutSeconds?: number | undefined;
3554
- acquireTimeoutSeconds?: number | undefined;
3555
- refreshIntervalSeconds?: number | undefined;
3556
- } | null | undefined;
3557
- }>;
3558
- publisherSchema: z.ZodObject<{
3559
- id: z.ZodOptional<z.ZodString>;
3560
- timestamp: z.ZodOptional<z.ZodString>;
3561
- type: z.ZodLiteral<"export_process.failed">;
3562
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3563
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
3564
- payload: z.ZodObject<{
3565
- projectId: z.ZodString;
3566
- processId: z.ZodString;
3567
- options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
3568
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3569
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3570
- }, "strip", z.ZodTypeAny, {
3571
- languages?: string[] | undefined;
3572
- }, {
3573
- languages?: string[] | undefined;
3574
- }>>>;
3575
- } & {
3576
- outputType: z.ZodLiteral<"FILE">;
3577
- }, "strip", z.ZodTypeAny, {
3578
- outputType: "FILE";
3579
- items?: Record<string, {
3580
- languages?: string[] | undefined;
3581
- }> | undefined;
3582
- }, {
3583
- outputType: "FILE";
3584
- items?: Record<string, {
3585
- languages?: string[] | undefined;
3586
- }> | undefined;
3587
- }>, z.ZodObject<{
3588
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3589
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3590
- }, "strip", z.ZodTypeAny, {
3591
- languages?: string[] | undefined;
3592
- }, {
3593
- languages?: string[] | undefined;
3594
- }>>>;
3595
- } & {
3596
- outputType: z.ZodLiteral<"GIT">;
3597
- branchName: z.ZodOptional<z.ZodString>;
3598
- }, "strip", z.ZodTypeAny, {
3599
- outputType: "GIT";
3600
- items?: Record<string, {
3601
- languages?: string[] | undefined;
3602
- }> | undefined;
3603
- branchName?: string | undefined;
3604
- }, {
3605
- outputType: "GIT";
3606
- items?: Record<string, {
3607
- languages?: string[] | undefined;
3608
- }> | undefined;
3609
- branchName?: string | undefined;
3610
- }>, z.ZodObject<{
3611
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3612
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3613
- }, "strip", z.ZodTypeAny, {
3614
- languages?: string[] | undefined;
3615
- }, {
3616
- languages?: string[] | undefined;
3617
- }>>>;
3618
- } & {
3619
- outputType: z.ZodLiteral<"SHOPIFY">;
3620
- force: z.ZodOptional<z.ZodBoolean>;
3621
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
3622
- }, "strip", z.ZodTypeAny, {
3623
- outputType: "SHOPIFY";
3624
- items?: Record<string, {
3625
- languages?: string[] | undefined;
3626
- }> | undefined;
3627
- force?: boolean | undefined;
3628
- useNonTranslatableMarkers?: boolean | undefined;
3629
- }, {
3630
- outputType: "SHOPIFY";
3631
- items?: Record<string, {
3632
- languages?: string[] | undefined;
3633
- }> | undefined;
3634
- force?: boolean | undefined;
3635
- useNonTranslatableMarkers?: boolean | undefined;
3636
- }>]>;
3637
- exportRequestId: z.ZodString;
3638
- }, "strip", z.ZodTypeAny, {
3639
- options: {
3640
- outputType: "GIT";
3641
- items?: Record<string, {
3642
- languages?: string[] | undefined;
3643
- }> | undefined;
3644
- branchName?: string | undefined;
3645
- } | {
3646
- outputType: "SHOPIFY";
3647
- items?: Record<string, {
3648
- languages?: string[] | undefined;
3649
- }> | undefined;
3650
- force?: boolean | undefined;
3651
- useNonTranslatableMarkers?: boolean | undefined;
3652
- } | {
3653
- outputType: "FILE";
3654
- items?: Record<string, {
3655
- languages?: string[] | undefined;
3656
- }> | undefined;
3657
- };
3658
- projectId: string;
3659
- exportRequestId: string;
3660
- processId: string;
3661
- }, {
3662
- options: {
3663
- outputType: "GIT";
3664
- items?: Record<string, {
3665
- languages?: string[] | undefined;
3666
- }> | undefined;
3667
- branchName?: string | undefined;
3668
- } | {
3669
- outputType: "SHOPIFY";
3670
- items?: Record<string, {
3671
- languages?: string[] | undefined;
3672
- }> | undefined;
3673
- force?: boolean | undefined;
3674
- useNonTranslatableMarkers?: boolean | undefined;
3675
- } | {
3676
- outputType: "FILE";
3677
- items?: Record<string, {
3678
- languages?: string[] | undefined;
3679
- }> | undefined;
3680
- };
3681
- projectId: string;
3682
- exportRequestId: string;
3683
- processId: string;
3684
- }>;
3685
- metadata: z.ZodOptional<z.ZodObject<{
3686
- schemaVersion: z.ZodOptional<z.ZodString>;
3687
- producedBy: z.ZodOptional<z.ZodString>;
3688
- originatedFrom: z.ZodOptional<z.ZodString>;
3689
- correlationId: z.ZodOptional<z.ZodString>;
3690
- }, "strip">>;
3691
- }, "strip", z.ZodTypeAny, {
3692
- type: "export_process.failed";
3693
- payload: {
3694
- options: {
3695
- outputType: "GIT";
3696
- items?: Record<string, {
3697
- languages?: string[] | undefined;
3698
- }> | undefined;
3699
- branchName?: string | undefined;
3700
- } | {
3701
- outputType: "SHOPIFY";
3702
- items?: Record<string, {
3703
- languages?: string[] | undefined;
3704
- }> | undefined;
3705
- force?: boolean | undefined;
3706
- useNonTranslatableMarkers?: boolean | undefined;
3707
- } | {
3708
- outputType: "FILE";
3709
- items?: Record<string, {
3710
- languages?: string[] | undefined;
3711
- }> | undefined;
3712
- };
3713
- projectId: string;
3714
- exportRequestId: string;
3715
- processId: string;
3716
- };
3717
- id?: string | undefined;
3718
- metadata?: {
3719
- schemaVersion?: string | undefined;
3720
- producedBy?: string | undefined;
3721
- originatedFrom?: string | undefined;
3722
- correlationId?: string | undefined;
3723
- } | undefined;
3724
- timestamp?: string | undefined;
3725
- deduplicationId?: string | null | undefined;
3726
- deduplicationOptions?: {
3727
- deduplicationWindowSeconds?: number | undefined;
3728
- lockTimeoutSeconds?: number | undefined;
3729
- acquireTimeoutSeconds?: number | undefined;
3730
- refreshIntervalSeconds?: number | undefined;
3731
- } | null | undefined;
3732
- }, {
3733
- type: "export_process.failed";
3734
- payload: {
3735
- options: {
3736
- outputType: "GIT";
3737
- items?: Record<string, {
3738
- languages?: string[] | undefined;
3739
- }> | undefined;
3740
- branchName?: string | undefined;
3741
- } | {
3742
- outputType: "SHOPIFY";
3743
- items?: Record<string, {
3744
- languages?: string[] | undefined;
3745
- }> | undefined;
3746
- force?: boolean | undefined;
3747
- useNonTranslatableMarkers?: boolean | undefined;
3748
- } | {
3749
- outputType: "FILE";
3750
- items?: Record<string, {
3751
- languages?: string[] | undefined;
3752
- }> | undefined;
3753
- };
3754
- projectId: string;
3755
- exportRequestId: string;
3756
- processId: string;
3757
- };
3758
- id?: string | undefined;
3759
- metadata?: {
3760
- schemaVersion?: string | undefined;
3761
- producedBy?: string | undefined;
3762
- originatedFrom?: string | undefined;
3763
- correlationId?: string | undefined;
3764
- } | undefined;
3765
- timestamp?: string | undefined;
3766
- deduplicationId?: string | null | undefined;
3767
- deduplicationOptions?: {
3768
- deduplicationWindowSeconds?: number | undefined;
3769
- lockTimeoutSeconds?: number | undefined;
3770
- acquireTimeoutSeconds?: number | undefined;
3771
- refreshIntervalSeconds?: number | undefined;
3772
- } | null | undefined;
3773
- }>;
3774
- };
3775
- 'export_process.started': {
3776
- snsTopic: "autopilot-export_process";
3777
- producedBy: string[];
3778
- consumerSchema: z.ZodObject<{
3779
- id: z.ZodString;
3780
- timestamp: z.ZodString;
3781
- type: z.ZodLiteral<"export_process.started">;
3782
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3783
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
3784
- payload: z.ZodObject<{
3785
- projectId: z.ZodString;
3786
- processId: z.ZodString;
3787
- exportRequestId: z.ZodOptional<z.ZodString>;
3788
- exportOptions: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
3789
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3790
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3791
- }, "strip", z.ZodTypeAny, {
3792
- languages?: string[] | undefined;
3793
- }, {
3794
- languages?: string[] | undefined;
3795
- }>>>;
3796
- } & {
3797
- outputType: z.ZodLiteral<"FILE">;
3798
- }, "strip", z.ZodTypeAny, {
3799
- outputType: "FILE";
3800
- items?: Record<string, {
3801
- languages?: string[] | undefined;
3802
- }> | undefined;
3803
- }, {
3804
- outputType: "FILE";
3805
- items?: Record<string, {
3806
- languages?: string[] | undefined;
3807
- }> | undefined;
3808
- }>, z.ZodObject<{
3809
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3810
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3811
- }, "strip", z.ZodTypeAny, {
3812
- languages?: string[] | undefined;
3813
- }, {
3814
- languages?: string[] | undefined;
3815
- }>>>;
3816
- } & {
3817
- outputType: z.ZodLiteral<"GIT">;
3818
- branchName: z.ZodOptional<z.ZodString>;
3819
- }, "strip", z.ZodTypeAny, {
3820
- outputType: "GIT";
3821
- items?: Record<string, {
3822
- languages?: string[] | undefined;
3823
- }> | undefined;
3824
- branchName?: string | undefined;
3825
- }, {
3826
- outputType: "GIT";
3827
- items?: Record<string, {
3828
- languages?: string[] | undefined;
3829
- }> | undefined;
3830
- branchName?: string | undefined;
3831
- }>, z.ZodObject<{
3832
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3833
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3834
- }, "strip", z.ZodTypeAny, {
3835
- languages?: string[] | undefined;
3836
- }, {
3837
- languages?: string[] | undefined;
3838
- }>>>;
3839
- } & {
3840
- outputType: z.ZodLiteral<"SHOPIFY">;
3841
- force: z.ZodOptional<z.ZodBoolean>;
3842
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
3843
- }, "strip", z.ZodTypeAny, {
3844
- outputType: "SHOPIFY";
3845
- items?: Record<string, {
3846
- languages?: string[] | undefined;
3847
- }> | undefined;
3848
- force?: boolean | undefined;
3849
- useNonTranslatableMarkers?: boolean | undefined;
3850
- }, {
3851
- outputType: "SHOPIFY";
3852
- items?: Record<string, {
3853
- languages?: string[] | undefined;
3854
- }> | undefined;
3855
- force?: boolean | undefined;
3856
- useNonTranslatableMarkers?: boolean | undefined;
3857
- }>]>;
3858
- itemsPerLanguageId: z.ZodArray<z.ZodObject<{
3859
- languageId: z.ZodString;
3860
- itemIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3861
- }, "strip", z.ZodTypeAny, {
3862
- languageId: string;
3863
- itemIds?: string[] | undefined;
3864
- }, {
3865
- languageId: string;
3866
- itemIds?: string[] | undefined;
3867
- }>, "many">;
3868
- }, "strip", z.ZodTypeAny, {
3869
- projectId: string;
3870
- processId: string;
3871
- exportOptions: {
3872
- outputType: "GIT";
3873
- items?: Record<string, {
3874
- languages?: string[] | undefined;
3875
- }> | undefined;
3876
- branchName?: string | undefined;
3877
- } | {
3878
- outputType: "SHOPIFY";
3879
- items?: Record<string, {
3880
- languages?: string[] | undefined;
3881
- }> | undefined;
3882
- force?: boolean | undefined;
3883
- useNonTranslatableMarkers?: boolean | undefined;
3884
- } | {
3885
- outputType: "FILE";
3886
- items?: Record<string, {
3887
- languages?: string[] | undefined;
3888
- }> | undefined;
3889
- };
3890
- itemsPerLanguageId: {
3891
- languageId: string;
3892
- itemIds?: string[] | undefined;
3893
- }[];
3894
- exportRequestId?: string | undefined;
3895
- }, {
3896
- projectId: string;
3897
- processId: string;
3898
- exportOptions: {
3899
- outputType: "GIT";
3900
- items?: Record<string, {
3901
- languages?: string[] | undefined;
3902
- }> | undefined;
3903
- branchName?: string | undefined;
3904
- } | {
3905
- outputType: "SHOPIFY";
3906
- items?: Record<string, {
3907
- languages?: string[] | undefined;
3908
- }> | undefined;
3909
- force?: boolean | undefined;
3910
- useNonTranslatableMarkers?: boolean | undefined;
3911
- } | {
3912
- outputType: "FILE";
3913
- items?: Record<string, {
3914
- languages?: string[] | undefined;
3915
- }> | undefined;
3916
- };
3917
- itemsPerLanguageId: {
3918
- languageId: string;
3919
- itemIds?: string[] | undefined;
3920
- }[];
3921
- exportRequestId?: string | undefined;
3922
- }>;
3923
- metadata: import("@message-queue-toolkit/schemas").MetadataObject;
3924
- }, "strip", z.ZodTypeAny, {
3925
- id: string;
3926
- type: "export_process.started";
3927
- metadata: {
3928
- schemaVersion: string;
3929
- producedBy: string;
3930
- originatedFrom: string;
3931
- correlationId: string;
3932
- };
3933
- timestamp: string;
3934
- payload: {
3935
- projectId: string;
3936
- processId: string;
3937
- exportOptions: {
3938
- outputType: "GIT";
3939
- items?: Record<string, {
3940
- languages?: string[] | undefined;
3941
- }> | undefined;
3942
- branchName?: string | undefined;
3943
- } | {
3944
- outputType: "SHOPIFY";
3945
- items?: Record<string, {
3946
- languages?: string[] | undefined;
3947
- }> | undefined;
3948
- force?: boolean | undefined;
3949
- useNonTranslatableMarkers?: boolean | undefined;
3950
- } | {
3951
- outputType: "FILE";
3952
- items?: Record<string, {
3953
- languages?: string[] | undefined;
3954
- }> | undefined;
3955
- };
3956
- itemsPerLanguageId: {
3957
- languageId: string;
3958
- itemIds?: string[] | undefined;
3959
- }[];
3960
- exportRequestId?: string | undefined;
3961
- };
3962
- deduplicationId?: string | null | undefined;
3963
- deduplicationOptions?: {
3964
- deduplicationWindowSeconds?: number | undefined;
3965
- lockTimeoutSeconds?: number | undefined;
3966
- acquireTimeoutSeconds?: number | undefined;
3967
- refreshIntervalSeconds?: number | undefined;
3968
- } | null | undefined;
3969
- }, {
3970
- id: string;
3971
- type: "export_process.started";
3972
- metadata: {
3973
- schemaVersion: string;
3974
- producedBy: string;
3975
- originatedFrom: string;
3976
- correlationId: string;
3977
- };
3978
- timestamp: string;
3979
- payload: {
3980
- projectId: string;
3981
- processId: string;
3982
- exportOptions: {
3983
- outputType: "GIT";
3984
- items?: Record<string, {
3985
- languages?: string[] | undefined;
3986
- }> | undefined;
3987
- branchName?: string | undefined;
3988
- } | {
3989
- outputType: "SHOPIFY";
3990
- items?: Record<string, {
3991
- languages?: string[] | undefined;
3992
- }> | undefined;
3993
- force?: boolean | undefined;
3994
- useNonTranslatableMarkers?: boolean | undefined;
3995
- } | {
3996
- outputType: "FILE";
3997
- items?: Record<string, {
3998
- languages?: string[] | undefined;
3999
- }> | undefined;
4000
- };
4001
- itemsPerLanguageId: {
4002
- languageId: string;
4003
- itemIds?: string[] | undefined;
4004
- }[];
4005
- exportRequestId?: string | undefined;
4006
- };
4007
- deduplicationId?: string | null | undefined;
4008
- deduplicationOptions?: {
4009
- deduplicationWindowSeconds?: number | undefined;
4010
- lockTimeoutSeconds?: number | undefined;
4011
- acquireTimeoutSeconds?: number | undefined;
4012
- refreshIntervalSeconds?: number | undefined;
4013
- } | null | undefined;
4014
- }>;
4015
- publisherSchema: z.ZodObject<{
4016
- id: z.ZodOptional<z.ZodString>;
4017
- timestamp: z.ZodOptional<z.ZodString>;
4018
- type: z.ZodLiteral<"export_process.started">;
4019
- deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4020
- deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
4021
- payload: z.ZodObject<{
4022
- projectId: z.ZodString;
4023
- processId: z.ZodString;
4024
- exportRequestId: z.ZodOptional<z.ZodString>;
4025
- exportOptions: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
4026
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4027
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4028
- }, "strip", z.ZodTypeAny, {
4029
- languages?: string[] | undefined;
4030
- }, {
4031
- languages?: string[] | undefined;
4032
- }>>>;
4033
- } & {
4034
- outputType: z.ZodLiteral<"FILE">;
4035
- }, "strip", z.ZodTypeAny, {
4036
- outputType: "FILE";
4037
- items?: Record<string, {
4038
- languages?: string[] | undefined;
4039
- }> | undefined;
4040
- }, {
4041
- outputType: "FILE";
4042
- items?: Record<string, {
4043
- languages?: string[] | undefined;
4044
- }> | undefined;
4045
- }>, z.ZodObject<{
4046
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4047
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4048
- }, "strip", z.ZodTypeAny, {
4049
- languages?: string[] | undefined;
4050
- }, {
4051
- languages?: string[] | undefined;
4052
- }>>>;
4053
- } & {
4054
- outputType: z.ZodLiteral<"GIT">;
4055
- branchName: z.ZodOptional<z.ZodString>;
4056
- }, "strip", z.ZodTypeAny, {
4057
- outputType: "GIT";
4058
- items?: Record<string, {
4059
- languages?: string[] | undefined;
4060
- }> | undefined;
4061
- branchName?: string | undefined;
4062
- }, {
4063
- outputType: "GIT";
4064
- items?: Record<string, {
4065
- languages?: string[] | undefined;
4066
- }> | undefined;
4067
- branchName?: string | undefined;
4068
- }>, z.ZodObject<{
4069
- items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4070
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4071
- }, "strip", z.ZodTypeAny, {
4072
- languages?: string[] | undefined;
4073
- }, {
4074
- languages?: string[] | undefined;
4075
- }>>>;
4076
- } & {
4077
- outputType: z.ZodLiteral<"SHOPIFY">;
4078
- force: z.ZodOptional<z.ZodBoolean>;
4079
- useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
4080
- }, "strip", z.ZodTypeAny, {
4081
- outputType: "SHOPIFY";
4082
- items?: Record<string, {
4083
- languages?: string[] | undefined;
4084
- }> | undefined;
4085
- force?: boolean | undefined;
4086
- useNonTranslatableMarkers?: boolean | undefined;
4087
- }, {
4088
- outputType: "SHOPIFY";
4089
- items?: Record<string, {
4090
- languages?: string[] | undefined;
4091
- }> | undefined;
4092
- force?: boolean | undefined;
4093
- useNonTranslatableMarkers?: boolean | undefined;
4094
- }>]>;
4095
- itemsPerLanguageId: z.ZodArray<z.ZodObject<{
4096
- languageId: z.ZodString;
4097
- itemIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4098
- }, "strip", z.ZodTypeAny, {
4099
- languageId: string;
4100
- itemIds?: string[] | undefined;
4101
- }, {
4102
- languageId: string;
4103
- itemIds?: string[] | undefined;
4104
- }>, "many">;
4105
- }, "strip", z.ZodTypeAny, {
4106
- projectId: string;
4107
- processId: string;
4108
- exportOptions: {
4109
- outputType: "GIT";
4110
- items?: Record<string, {
4111
- languages?: string[] | undefined;
4112
- }> | undefined;
4113
- branchName?: string | undefined;
4114
- } | {
4115
- outputType: "SHOPIFY";
4116
- items?: Record<string, {
4117
- languages?: string[] | undefined;
4118
- }> | undefined;
4119
- force?: boolean | undefined;
4120
- useNonTranslatableMarkers?: boolean | undefined;
4121
- } | {
4122
- outputType: "FILE";
4123
- items?: Record<string, {
4124
- languages?: string[] | undefined;
4125
- }> | undefined;
4126
- };
4127
- itemsPerLanguageId: {
4128
- languageId: string;
4129
- itemIds?: string[] | undefined;
4130
- }[];
4131
- exportRequestId?: string | undefined;
4132
- }, {
4133
- projectId: string;
4134
- processId: string;
4135
- exportOptions: {
4136
- outputType: "GIT";
4137
- items?: Record<string, {
4138
- languages?: string[] | undefined;
4139
- }> | undefined;
4140
- branchName?: string | undefined;
4141
- } | {
4142
- outputType: "SHOPIFY";
4143
- items?: Record<string, {
4144
- languages?: string[] | undefined;
4145
- }> | undefined;
4146
- force?: boolean | undefined;
4147
- useNonTranslatableMarkers?: boolean | undefined;
4148
- } | {
4149
- outputType: "FILE";
4150
- items?: Record<string, {
4151
- languages?: string[] | undefined;
4152
- }> | undefined;
4153
- };
4154
- itemsPerLanguageId: {
4155
- languageId: string;
4156
- itemIds?: string[] | undefined;
4157
- }[];
4158
- exportRequestId?: string | undefined;
4159
- }>;
131
+ }, z.core.$strip>;
4160
132
  metadata: z.ZodOptional<z.ZodObject<{
4161
133
  schemaVersion: z.ZodOptional<z.ZodString>;
4162
134
  producedBy: z.ZodOptional<z.ZodString>;
4163
135
  originatedFrom: z.ZodOptional<z.ZodString>;
4164
136
  correlationId: z.ZodOptional<z.ZodString>;
4165
- }, "strip">>;
4166
- }, "strip", z.ZodTypeAny, {
4167
- type: "export_process.started";
4168
- payload: {
4169
- projectId: string;
4170
- processId: string;
4171
- exportOptions: {
4172
- outputType: "GIT";
4173
- items?: Record<string, {
4174
- languages?: string[] | undefined;
4175
- }> | undefined;
4176
- branchName?: string | undefined;
4177
- } | {
4178
- outputType: "SHOPIFY";
4179
- items?: Record<string, {
4180
- languages?: string[] | undefined;
4181
- }> | undefined;
4182
- force?: boolean | undefined;
4183
- useNonTranslatableMarkers?: boolean | undefined;
4184
- } | {
4185
- outputType: "FILE";
4186
- items?: Record<string, {
4187
- languages?: string[] | undefined;
4188
- }> | undefined;
4189
- };
4190
- itemsPerLanguageId: {
4191
- languageId: string;
4192
- itemIds?: string[] | undefined;
4193
- }[];
4194
- exportRequestId?: string | undefined;
4195
- };
4196
- id?: string | undefined;
4197
- metadata?: {
4198
- schemaVersion?: string | undefined;
4199
- producedBy?: string | undefined;
4200
- originatedFrom?: string | undefined;
4201
- correlationId?: string | undefined;
4202
- } | undefined;
4203
- timestamp?: string | undefined;
4204
- deduplicationId?: string | null | undefined;
4205
- deduplicationOptions?: {
4206
- deduplicationWindowSeconds?: number | undefined;
4207
- lockTimeoutSeconds?: number | undefined;
4208
- acquireTimeoutSeconds?: number | undefined;
4209
- refreshIntervalSeconds?: number | undefined;
4210
- } | null | undefined;
4211
- }, {
4212
- type: "export_process.started";
4213
- payload: {
4214
- projectId: string;
4215
- processId: string;
4216
- exportOptions: {
4217
- outputType: "GIT";
4218
- items?: Record<string, {
4219
- languages?: string[] | undefined;
4220
- }> | undefined;
4221
- branchName?: string | undefined;
4222
- } | {
4223
- outputType: "SHOPIFY";
4224
- items?: Record<string, {
4225
- languages?: string[] | undefined;
4226
- }> | undefined;
4227
- force?: boolean | undefined;
4228
- useNonTranslatableMarkers?: boolean | undefined;
4229
- } | {
4230
- outputType: "FILE";
4231
- items?: Record<string, {
4232
- languages?: string[] | undefined;
4233
- }> | undefined;
4234
- };
4235
- itemsPerLanguageId: {
4236
- languageId: string;
4237
- itemIds?: string[] | undefined;
4238
- }[];
4239
- exportRequestId?: string | undefined;
4240
- };
4241
- id?: string | undefined;
4242
- metadata?: {
4243
- schemaVersion?: string | undefined;
4244
- producedBy?: string | undefined;
4245
- originatedFrom?: string | undefined;
4246
- correlationId?: string | undefined;
4247
- } | undefined;
4248
- timestamp?: string | undefined;
4249
- deduplicationId?: string | null | undefined;
4250
- deduplicationOptions?: {
4251
- deduplicationWindowSeconds?: number | undefined;
4252
- lockTimeoutSeconds?: number | undefined;
4253
- acquireTimeoutSeconds?: number | undefined;
4254
- refreshIntervalSeconds?: number | undefined;
4255
- } | null | undefined;
4256
- }>;
137
+ }>>;
138
+ }, z.core.$strip>;
4257
139
  };
4258
140
  };
4259
- export type ExportProcessDataChunkPushFailedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_push_failed']>;
141
+ export type ExportProcessDataChunkConvertedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_converted']>;
4260
142
  export type ExportProcessDataChunkConversionFailedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_conversion_failed']>;
4261
- export type ExportProcessDataChunkPushCompletedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_push_completed']>;
4262
- export type ExportProcessDataChunkProcessedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_processed']>;
4263
- export type ExportProcessAllDataChunksProcessedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.all_data_chunks_processed']>;
4264
- export type ExportProcessDataChunkProcessingFailedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_processing_failed']>;
4265
- export type ExportProcessCompletedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.completed']>;
4266
- export type ExportProcessFailedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.failed']>;
4267
- export type ExportProcessStartedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.started']>;
4268
- export type ExportProcessDataGatheringCompletedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_gathering_completed']>;
4269
- export type ExportProcessDataGatheringFailedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_gathering_failed']>;
4270
143
  export type ExportProcessDataChunkCreatedEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_created']>;
4271
144
  export type ExportProcessDataChunkConvertedPublisherEvent = PublisherMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_converted']>;
4272
145
  export type ExportProcessDataChunkConvertedConsumerEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_converted']>;
4273
- export type ExportProcessDataChunkReadyConsumerEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_ready']>;
4274
- export type ExportProcessDataChunkReadyPublisherEvent = PublisherMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_ready']>;
4275
146
  export type ExportProcessDataChunkConversionFailedPublisherEvent = PublisherMessageSchema<(typeof ExportProcessEvents)['export_process.data_chunk_conversion_failed']>;
4276
- export type ExportProcessDataGatheringCompletedConsumerEvent = ConsumerMessageSchema<(typeof ExportProcessEvents)['export_process.data_gathering_completed']>;
4277
- export type ExportProcessDataGatheringCompletedPublisherEvent = PublisherMessageSchema<(typeof ExportProcessEvents)['export_process.data_gathering_completed']>;
4278
147
  export {};
4279
148
  //# sourceMappingURL=export.d.ts.map