@prismicio/editor-fields 0.4.56 → 0.4.58-alpha.repeatable-link-base.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 (31) hide show
  1. package/dist/EditorConfig.d.ts +2 -0
  2. package/dist/FieldContext.d.ts +5 -0
  3. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +40 -40
  4. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +4 -4
  5. package/dist/core/service/customType.d.ts +13 -0
  6. package/dist/core/service/document.d.ts +1658 -407
  7. package/dist/core/service/documentSearch.d.ts +214 -0
  8. package/dist/core/service/index.d.ts +2 -0
  9. package/dist/core/service/repository.d.ts +28 -20
  10. package/dist/core/service/teamSpace.d.ts +48 -0
  11. package/dist/core/service/user.d.ts +112 -6
  12. package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
  13. package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -1
  14. package/dist/fields/LinkField/Documents/documentsData.d.ts +73 -44
  15. package/dist/fields/LinkField/LinkField.d.ts +3 -2
  16. package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +12 -0
  17. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +11 -0
  18. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +11 -0
  19. package/dist/fields/LinkField/RepeatableLinkField/index.d.ts +1 -0
  20. package/dist/fields/LinkField/RepeatableLinkField/useRepeatableLinkField.d.ts +84 -0
  21. package/dist/fields/LinkField/index.d.ts +1 -0
  22. package/dist/fields/LinkField/useLinkField.d.ts +5 -2
  23. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
  24. package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -1
  25. package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -1
  26. package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +2 -2
  27. package/dist/index.cjs.js +37 -39
  28. package/dist/index.es.js +25902 -22602
  29. package/dist/slices/utils.d.ts +100 -26
  30. package/package.json +25 -24
  31. package/dist/fields/RichTextField/extensions/Image/ImageLinkControl.d.ts +0 -9
@@ -1,7 +1,7 @@
1
1
  import type { QueryClient } from "@tanstack/react-query";
2
2
  import { z } from "zod";
3
3
  import type { AuthStrategy } from "../../EditorConfig";
4
- export declare const languageOkType: z.ZodObject<{
4
+ export declare const languageSchema: z.ZodEffects<z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  name: z.ZodString;
7
7
  is_master: z.ZodOptional<z.ZodBoolean>;
@@ -13,8 +13,16 @@ export declare const languageOkType: z.ZodObject<{
13
13
  id: string;
14
14
  name: string;
15
15
  is_master?: boolean | undefined;
16
+ }>, {
17
+ isMaster?: boolean | undefined;
18
+ id: string;
19
+ label: string;
20
+ }, {
21
+ id: string;
22
+ name: string;
23
+ is_master?: boolean | undefined;
16
24
  }>;
17
- declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
25
+ declare const documentVersionSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
18
26
  status: z.ZodLiteral<"unclassified">;
19
27
  }, "strip", z.ZodTypeAny, {
20
28
  status: "unclassified";
@@ -41,13 +49,15 @@ declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"
41
49
  status: "archived";
42
50
  }, {
43
51
  status: "archived";
44
- }>]>, z.ZodObject<{
52
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
45
53
  version_id: z.ZodString;
46
54
  tags: z.ZodArray<z.ZodString, "many">;
47
- custom_type_label: z.ZodString;
48
- preview_summary: z.ZodOptional<z.ZodString>;
49
55
  preview_image: z.ZodOptional<z.ZodString>;
50
56
  last_modified_date: z.ZodDate;
57
+ uid: z.ZodOptional<z.ZodString>;
58
+ }, {
59
+ custom_type_label: z.ZodString;
60
+ preview_summary: z.ZodOptional<z.ZodString>;
51
61
  author: z.ZodObject<{
52
62
  first_name: z.ZodOptional<z.ZodString>;
53
63
  last_name: z.ZodOptional<z.ZodString>;
@@ -64,8 +74,7 @@ declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"
64
74
  email?: string | undefined;
65
75
  uploadedAvatar?: string | undefined;
66
76
  }>;
67
- uid: z.ZodOptional<z.ZodString>;
68
- }, "strip", z.ZodTypeAny, {
77
+ }>, "strip", z.ZodTypeAny, {
69
78
  tags: string[];
70
79
  author: {
71
80
  first_name?: string | undefined;
@@ -74,11 +83,11 @@ declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"
74
83
  uploadedAvatar?: string | undefined;
75
84
  };
76
85
  version_id: string;
77
- custom_type_label: string;
78
86
  last_modified_date: Date;
79
- preview_summary?: string | undefined;
87
+ custom_type_label: string;
80
88
  preview_image?: string | undefined;
81
89
  uid?: string | undefined;
90
+ preview_summary?: string | undefined;
82
91
  }, {
83
92
  tags: string[];
84
93
  author: {
@@ -88,18 +97,76 @@ declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"
88
97
  uploadedAvatar?: string | undefined;
89
98
  };
90
99
  version_id: string;
91
- custom_type_label: string;
92
100
  last_modified_date: Date;
101
+ custom_type_label: string;
102
+ preview_image?: string | undefined;
103
+ uid?: string | undefined;
93
104
  preview_summary?: string | undefined;
105
+ }>>;
106
+ declare const documentSearchVersionSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
107
+ status: z.ZodLiteral<"unclassified">;
108
+ }, "strip", z.ZodTypeAny, {
109
+ status: "unclassified";
110
+ }, {
111
+ status: "unclassified";
112
+ }>, z.ZodObject<{
113
+ status: z.ZodLiteral<"published">;
114
+ }, "strip", z.ZodTypeAny, {
115
+ status: "published";
116
+ }, {
117
+ status: "published";
118
+ }>, z.ZodObject<{
119
+ status: z.ZodLiteral<"release">;
120
+ release_id: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ status: "release";
123
+ release_id: string;
124
+ }, {
125
+ status: "release";
126
+ release_id: string;
127
+ }>, z.ZodObject<{
128
+ status: z.ZodLiteral<"archived">;
129
+ }, "strip", z.ZodTypeAny, {
130
+ status: "archived";
131
+ }, {
132
+ status: "archived";
133
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
134
+ version_id: z.ZodString;
135
+ tags: z.ZodArray<z.ZodString, "many">;
136
+ preview_image: z.ZodOptional<z.ZodString>;
137
+ last_modified_date: z.ZodDate;
138
+ uid: z.ZodOptional<z.ZodString>;
139
+ }, {
140
+ custom_type_id: z.ZodOptional<z.ZodString>;
141
+ summary: z.ZodOptional<z.ZodString>;
142
+ author_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
143
+ }>, "strip", z.ZodTypeAny, {
144
+ tags: string[];
145
+ version_id: string;
146
+ last_modified_date: Date;
147
+ summary?: string | undefined;
94
148
  preview_image?: string | undefined;
95
149
  uid?: string | undefined;
150
+ custom_type_id?: string | undefined;
151
+ author_ids?: string[] | undefined;
152
+ }, {
153
+ tags: string[];
154
+ version_id: string;
155
+ last_modified_date: Date;
156
+ summary?: string | undefined;
157
+ preview_image?: string | undefined;
158
+ uid?: string | undefined;
159
+ custom_type_id?: string | undefined;
160
+ author_ids?: string[] | undefined;
96
161
  }>>;
97
- export declare const documentMetaOkType: z.ZodObject<{
162
+ export declare function isDocumentVersion(value: unknown): value is z.infer<typeof documentVersionSchema>;
163
+ export declare function isDocumentSearchVersion(value: unknown): value is z.infer<typeof documentSearchVersionSchema>;
164
+ export declare const documentMetaSchema: z.ZodObject<{
98
165
  id: z.ZodString;
99
166
  title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
100
167
  custom_type_id: z.ZodString;
101
168
  group_lang_id: z.ZodString;
102
- language: z.ZodObject<{
169
+ language: z.ZodEffects<z.ZodObject<{
103
170
  id: z.ZodString;
104
171
  name: z.ZodString;
105
172
  is_master: z.ZodOptional<z.ZodBoolean>;
@@ -111,6 +178,14 @@ export declare const documentMetaOkType: z.ZodObject<{
111
178
  id: string;
112
179
  name: string;
113
180
  is_master?: boolean | undefined;
181
+ }>, {
182
+ isMaster?: boolean | undefined;
183
+ id: string;
184
+ label: string;
185
+ }, {
186
+ id: string;
187
+ name: string;
188
+ is_master?: boolean | undefined;
114
189
  }>;
115
190
  versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
116
191
  status: z.ZodLiteral<"unclassified">;
@@ -139,13 +214,15 @@ export declare const documentMetaOkType: z.ZodObject<{
139
214
  status: "archived";
140
215
  }, {
141
216
  status: "archived";
142
- }>]>, z.ZodObject<{
217
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
143
218
  version_id: z.ZodString;
144
219
  tags: z.ZodArray<z.ZodString, "many">;
145
- custom_type_label: z.ZodString;
146
- preview_summary: z.ZodOptional<z.ZodString>;
147
220
  preview_image: z.ZodOptional<z.ZodString>;
148
221
  last_modified_date: z.ZodDate;
222
+ uid: z.ZodOptional<z.ZodString>;
223
+ }, {
224
+ custom_type_label: z.ZodString;
225
+ preview_summary: z.ZodOptional<z.ZodString>;
149
226
  author: z.ZodObject<{
150
227
  first_name: z.ZodOptional<z.ZodString>;
151
228
  last_name: z.ZodOptional<z.ZodString>;
@@ -162,8 +239,7 @@ export declare const documentMetaOkType: z.ZodObject<{
162
239
  email?: string | undefined;
163
240
  uploadedAvatar?: string | undefined;
164
241
  }>;
165
- uid: z.ZodOptional<z.ZodString>;
166
- }, "strip", z.ZodTypeAny, {
242
+ }>, "strip", z.ZodTypeAny, {
167
243
  tags: string[];
168
244
  author: {
169
245
  first_name?: string | undefined;
@@ -172,11 +248,11 @@ export declare const documentMetaOkType: z.ZodObject<{
172
248
  uploadedAvatar?: string | undefined;
173
249
  };
174
250
  version_id: string;
175
- custom_type_label: string;
176
251
  last_modified_date: Date;
177
- preview_summary?: string | undefined;
252
+ custom_type_label: string;
178
253
  preview_image?: string | undefined;
179
254
  uid?: string | undefined;
255
+ preview_summary?: string | undefined;
180
256
  }, {
181
257
  tags: string[];
182
258
  author: {
@@ -186,19 +262,19 @@ export declare const documentMetaOkType: z.ZodObject<{
186
262
  uploadedAvatar?: string | undefined;
187
263
  };
188
264
  version_id: string;
189
- custom_type_label: string;
190
265
  last_modified_date: Date;
191
- preview_summary?: string | undefined;
266
+ custom_type_label: string;
192
267
  preview_image?: string | undefined;
193
268
  uid?: string | undefined;
269
+ preview_summary?: string | undefined;
194
270
  }>>, "many">;
195
271
  }, "strip", z.ZodTypeAny, {
196
272
  id: string;
197
273
  title: string;
198
274
  language: {
275
+ isMaster?: boolean | undefined;
199
276
  id: string;
200
- name: string;
201
- is_master?: boolean | undefined;
277
+ label: string;
202
278
  };
203
279
  custom_type_id: string;
204
280
  group_lang_id: string;
@@ -220,11 +296,11 @@ export declare const documentMetaOkType: z.ZodObject<{
220
296
  uploadedAvatar?: string | undefined;
221
297
  };
222
298
  version_id: string;
223
- custom_type_label: string;
224
299
  last_modified_date: Date;
225
- preview_summary?: string | undefined;
300
+ custom_type_label: string;
226
301
  preview_image?: string | undefined;
227
302
  uid?: string | undefined;
303
+ preview_summary?: string | undefined;
228
304
  })[];
229
305
  }, {
230
306
  id: string;
@@ -253,11 +329,11 @@ export declare const documentMetaOkType: z.ZodObject<{
253
329
  uploadedAvatar?: string | undefined;
254
330
  };
255
331
  version_id: string;
256
- custom_type_label: string;
257
332
  last_modified_date: Date;
258
- preview_summary?: string | undefined;
333
+ custom_type_label: string;
259
334
  preview_image?: string | undefined;
260
335
  uid?: string | undefined;
336
+ preview_summary?: string | undefined;
261
337
  })[];
262
338
  title?: string | null | undefined;
263
339
  }>;
@@ -269,7 +345,7 @@ declare const getDocumentListSchema: z.ZodObject<{
269
345
  title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
270
346
  custom_type_id: z.ZodString;
271
347
  group_lang_id: z.ZodString;
272
- language: z.ZodObject<{
348
+ language: z.ZodEffects<z.ZodObject<{
273
349
  id: z.ZodString;
274
350
  name: z.ZodString;
275
351
  is_master: z.ZodOptional<z.ZodBoolean>;
@@ -281,6 +357,14 @@ declare const getDocumentListSchema: z.ZodObject<{
281
357
  id: string;
282
358
  name: string;
283
359
  is_master?: boolean | undefined;
360
+ }>, {
361
+ isMaster?: boolean | undefined;
362
+ id: string;
363
+ label: string;
364
+ }, {
365
+ id: string;
366
+ name: string;
367
+ is_master?: boolean | undefined;
284
368
  }>;
285
369
  versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
286
370
  status: z.ZodLiteral<"unclassified">;
@@ -309,13 +393,15 @@ declare const getDocumentListSchema: z.ZodObject<{
309
393
  status: "archived";
310
394
  }, {
311
395
  status: "archived";
312
- }>]>, z.ZodObject<{
396
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
313
397
  version_id: z.ZodString;
314
398
  tags: z.ZodArray<z.ZodString, "many">;
315
- custom_type_label: z.ZodString;
316
- preview_summary: z.ZodOptional<z.ZodString>;
317
399
  preview_image: z.ZodOptional<z.ZodString>;
318
400
  last_modified_date: z.ZodDate;
401
+ uid: z.ZodOptional<z.ZodString>;
402
+ }, {
403
+ custom_type_label: z.ZodString;
404
+ preview_summary: z.ZodOptional<z.ZodString>;
319
405
  author: z.ZodObject<{
320
406
  first_name: z.ZodOptional<z.ZodString>;
321
407
  last_name: z.ZodOptional<z.ZodString>;
@@ -332,8 +418,7 @@ declare const getDocumentListSchema: z.ZodObject<{
332
418
  email?: string | undefined;
333
419
  uploadedAvatar?: string | undefined;
334
420
  }>;
335
- uid: z.ZodOptional<z.ZodString>;
336
- }, "strip", z.ZodTypeAny, {
421
+ }>, "strip", z.ZodTypeAny, {
337
422
  tags: string[];
338
423
  author: {
339
424
  first_name?: string | undefined;
@@ -342,11 +427,11 @@ declare const getDocumentListSchema: z.ZodObject<{
342
427
  uploadedAvatar?: string | undefined;
343
428
  };
344
429
  version_id: string;
345
- custom_type_label: string;
346
430
  last_modified_date: Date;
347
- preview_summary?: string | undefined;
431
+ custom_type_label: string;
348
432
  preview_image?: string | undefined;
349
433
  uid?: string | undefined;
434
+ preview_summary?: string | undefined;
350
435
  }, {
351
436
  tags: string[];
352
437
  author: {
@@ -356,15 +441,48 @@ declare const getDocumentListSchema: z.ZodObject<{
356
441
  uploadedAvatar?: string | undefined;
357
442
  };
358
443
  version_id: string;
359
- custom_type_label: string;
360
444
  last_modified_date: Date;
361
- preview_summary?: string | undefined;
445
+ custom_type_label: string;
362
446
  preview_image?: string | undefined;
363
447
  uid?: string | undefined;
448
+ preview_summary?: string | undefined;
364
449
  }>>, "many">;
365
450
  }, "strip", z.ZodTypeAny, {
366
451
  id: string;
367
452
  title: string;
453
+ language: {
454
+ isMaster?: boolean | undefined;
455
+ id: string;
456
+ label: string;
457
+ };
458
+ custom_type_id: string;
459
+ group_lang_id: string;
460
+ versions: (({
461
+ status: "unclassified";
462
+ } | {
463
+ status: "published";
464
+ } | {
465
+ status: "release";
466
+ release_id: string;
467
+ } | {
468
+ status: "archived";
469
+ }) & {
470
+ tags: string[];
471
+ author: {
472
+ first_name?: string | undefined;
473
+ last_name?: string | undefined;
474
+ email?: string | undefined;
475
+ uploadedAvatar?: string | undefined;
476
+ };
477
+ version_id: string;
478
+ last_modified_date: Date;
479
+ custom_type_label: string;
480
+ preview_image?: string | undefined;
481
+ uid?: string | undefined;
482
+ preview_summary?: string | undefined;
483
+ })[];
484
+ }, {
485
+ id: string;
368
486
  language: {
369
487
  id: string;
370
488
  name: string;
@@ -390,22 +508,398 @@ declare const getDocumentListSchema: z.ZodObject<{
390
508
  uploadedAvatar?: string | undefined;
391
509
  };
392
510
  version_id: string;
393
- custom_type_label: string;
394
511
  last_modified_date: Date;
395
- preview_summary?: string | undefined;
512
+ custom_type_label: string;
513
+ preview_image?: string | undefined;
514
+ uid?: string | undefined;
515
+ preview_summary?: string | undefined;
516
+ })[];
517
+ title?: string | null | undefined;
518
+ }>, "many">;
519
+ }, "strip", z.ZodTypeAny, {
520
+ total: number;
521
+ results: {
522
+ id: string;
523
+ title: string;
524
+ language: {
525
+ isMaster?: boolean | undefined;
526
+ id: string;
527
+ label: string;
528
+ };
529
+ custom_type_id: string;
530
+ group_lang_id: string;
531
+ versions: (({
532
+ status: "unclassified";
533
+ } | {
534
+ status: "published";
535
+ } | {
536
+ status: "release";
537
+ release_id: string;
538
+ } | {
539
+ status: "archived";
540
+ }) & {
541
+ tags: string[];
542
+ author: {
543
+ first_name?: string | undefined;
544
+ last_name?: string | undefined;
545
+ email?: string | undefined;
546
+ uploadedAvatar?: string | undefined;
547
+ };
548
+ version_id: string;
549
+ last_modified_date: Date;
550
+ custom_type_label: string;
551
+ preview_image?: string | undefined;
552
+ uid?: string | undefined;
553
+ preview_summary?: string | undefined;
554
+ })[];
555
+ }[];
556
+ cursor?: string | undefined;
557
+ }, {
558
+ total: number;
559
+ results: {
560
+ id: string;
561
+ language: {
562
+ id: string;
563
+ name: string;
564
+ is_master?: boolean | undefined;
565
+ };
566
+ custom_type_id: string;
567
+ group_lang_id: string;
568
+ versions: (({
569
+ status: "unclassified";
570
+ } | {
571
+ status: "published";
572
+ } | {
573
+ status: "release";
574
+ release_id: string;
575
+ } | {
576
+ status: "archived";
577
+ }) & {
578
+ tags: string[];
579
+ author: {
580
+ first_name?: string | undefined;
581
+ last_name?: string | undefined;
582
+ email?: string | undefined;
583
+ uploadedAvatar?: string | undefined;
584
+ };
585
+ version_id: string;
586
+ last_modified_date: Date;
587
+ custom_type_label: string;
588
+ preview_image?: string | undefined;
589
+ uid?: string | undefined;
590
+ preview_summary?: string | undefined;
591
+ })[];
592
+ title?: string | null | undefined;
593
+ }[];
594
+ cursor?: string | undefined;
595
+ }>;
596
+ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
597
+ id: z.ZodString;
598
+ title: z.ZodString;
599
+ custom_type_id: z.ZodString;
600
+ group_lang_id: z.ZodString;
601
+ interesting_versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
602
+ status: z.ZodLiteral<"unclassified">;
603
+ }, "strip", z.ZodTypeAny, {
604
+ status: "unclassified";
605
+ }, {
606
+ status: "unclassified";
607
+ }>, z.ZodObject<{
608
+ status: z.ZodLiteral<"published">;
609
+ }, "strip", z.ZodTypeAny, {
610
+ status: "published";
611
+ }, {
612
+ status: "published";
613
+ }>, z.ZodObject<{
614
+ status: z.ZodLiteral<"release">;
615
+ release_id: z.ZodString;
616
+ }, "strip", z.ZodTypeAny, {
617
+ status: "release";
618
+ release_id: string;
619
+ }, {
620
+ status: "release";
621
+ release_id: string;
622
+ }>, z.ZodObject<{
623
+ status: z.ZodLiteral<"archived">;
624
+ }, "strip", z.ZodTypeAny, {
625
+ status: "archived";
626
+ }, {
627
+ status: "archived";
628
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
629
+ version_id: z.ZodString;
630
+ tags: z.ZodArray<z.ZodString, "many">;
631
+ preview_image: z.ZodOptional<z.ZodString>;
632
+ last_modified_date: z.ZodDate;
633
+ uid: z.ZodOptional<z.ZodString>;
634
+ }, {
635
+ custom_type_id: z.ZodOptional<z.ZodString>;
636
+ summary: z.ZodOptional<z.ZodString>;
637
+ author_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
638
+ }>, "strip", z.ZodTypeAny, {
639
+ tags: string[];
640
+ version_id: string;
641
+ last_modified_date: Date;
642
+ summary?: string | undefined;
643
+ preview_image?: string | undefined;
644
+ uid?: string | undefined;
645
+ custom_type_id?: string | undefined;
646
+ author_ids?: string[] | undefined;
647
+ }, {
648
+ tags: string[];
649
+ version_id: string;
650
+ last_modified_date: Date;
651
+ summary?: string | undefined;
652
+ preview_image?: string | undefined;
653
+ uid?: string | undefined;
654
+ custom_type_id?: string | undefined;
655
+ author_ids?: string[] | undefined;
656
+ }>>, "many">;
657
+ locale_id: z.ZodOptional<z.ZodString>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ id: string;
660
+ title: string;
661
+ custom_type_id: string;
662
+ group_lang_id: string;
663
+ interesting_versions: (({
664
+ status: "unclassified";
665
+ } | {
666
+ status: "published";
667
+ } | {
668
+ status: "release";
669
+ release_id: string;
670
+ } | {
671
+ status: "archived";
672
+ }) & {
673
+ tags: string[];
674
+ version_id: string;
675
+ last_modified_date: Date;
676
+ summary?: string | undefined;
677
+ preview_image?: string | undefined;
678
+ uid?: string | undefined;
679
+ custom_type_id?: string | undefined;
680
+ author_ids?: string[] | undefined;
681
+ })[];
682
+ locale_id?: string | undefined;
683
+ }, {
684
+ id: string;
685
+ title: string;
686
+ custom_type_id: string;
687
+ group_lang_id: string;
688
+ interesting_versions: (({
689
+ status: "unclassified";
690
+ } | {
691
+ status: "published";
692
+ } | {
693
+ status: "release";
694
+ release_id: string;
695
+ } | {
696
+ status: "archived";
697
+ }) & {
698
+ tags: string[];
699
+ version_id: string;
700
+ last_modified_date: Date;
701
+ summary?: string | undefined;
702
+ preview_image?: string | undefined;
703
+ uid?: string | undefined;
704
+ custom_type_id?: string | undefined;
705
+ author_ids?: string[] | undefined;
706
+ })[];
707
+ locale_id?: string | undefined;
708
+ }>, {
709
+ id: string;
710
+ title: string;
711
+ custom_type_id: string;
712
+ group_lang_id: string;
713
+ locale_id?: string | undefined;
714
+ versions: (({
715
+ status: "unclassified";
716
+ } | {
717
+ status: "published";
718
+ } | {
719
+ status: "release";
720
+ release_id: string;
721
+ } | {
722
+ status: "archived";
723
+ }) & {
724
+ tags: string[];
725
+ version_id: string;
726
+ last_modified_date: Date;
727
+ summary?: string | undefined;
728
+ preview_image?: string | undefined;
729
+ uid?: string | undefined;
730
+ custom_type_id?: string | undefined;
731
+ author_ids?: string[] | undefined;
732
+ })[];
733
+ }, {
734
+ id: string;
735
+ title: string;
736
+ custom_type_id: string;
737
+ group_lang_id: string;
738
+ interesting_versions: (({
739
+ status: "unclassified";
740
+ } | {
741
+ status: "published";
742
+ } | {
743
+ status: "release";
744
+ release_id: string;
745
+ } | {
746
+ status: "archived";
747
+ }) & {
748
+ tags: string[];
749
+ version_id: string;
750
+ last_modified_date: Date;
751
+ summary?: string | undefined;
752
+ preview_image?: string | undefined;
753
+ uid?: string | undefined;
754
+ custom_type_id?: string | undefined;
755
+ author_ids?: string[] | undefined;
756
+ })[];
757
+ locale_id?: string | undefined;
758
+ }>;
759
+ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
760
+ results: z.ZodArray<z.ZodEffects<z.ZodObject<{
761
+ id: z.ZodString;
762
+ title: z.ZodString;
763
+ custom_type_id: z.ZodString;
764
+ group_lang_id: z.ZodString;
765
+ interesting_versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
766
+ status: z.ZodLiteral<"unclassified">;
767
+ }, "strip", z.ZodTypeAny, {
768
+ status: "unclassified";
769
+ }, {
770
+ status: "unclassified";
771
+ }>, z.ZodObject<{
772
+ status: z.ZodLiteral<"published">;
773
+ }, "strip", z.ZodTypeAny, {
774
+ status: "published";
775
+ }, {
776
+ status: "published";
777
+ }>, z.ZodObject<{
778
+ status: z.ZodLiteral<"release">;
779
+ release_id: z.ZodString;
780
+ }, "strip", z.ZodTypeAny, {
781
+ status: "release";
782
+ release_id: string;
783
+ }, {
784
+ status: "release";
785
+ release_id: string;
786
+ }>, z.ZodObject<{
787
+ status: z.ZodLiteral<"archived">;
788
+ }, "strip", z.ZodTypeAny, {
789
+ status: "archived";
790
+ }, {
791
+ status: "archived";
792
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
793
+ version_id: z.ZodString;
794
+ tags: z.ZodArray<z.ZodString, "many">;
795
+ preview_image: z.ZodOptional<z.ZodString>;
796
+ last_modified_date: z.ZodDate;
797
+ uid: z.ZodOptional<z.ZodString>;
798
+ }, {
799
+ custom_type_id: z.ZodOptional<z.ZodString>;
800
+ summary: z.ZodOptional<z.ZodString>;
801
+ author_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
802
+ }>, "strip", z.ZodTypeAny, {
803
+ tags: string[];
804
+ version_id: string;
805
+ last_modified_date: Date;
806
+ summary?: string | undefined;
807
+ preview_image?: string | undefined;
808
+ uid?: string | undefined;
809
+ custom_type_id?: string | undefined;
810
+ author_ids?: string[] | undefined;
811
+ }, {
812
+ tags: string[];
813
+ version_id: string;
814
+ last_modified_date: Date;
815
+ summary?: string | undefined;
816
+ preview_image?: string | undefined;
817
+ uid?: string | undefined;
818
+ custom_type_id?: string | undefined;
819
+ author_ids?: string[] | undefined;
820
+ }>>, "many">;
821
+ locale_id: z.ZodOptional<z.ZodString>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ id: string;
824
+ title: string;
825
+ custom_type_id: string;
826
+ group_lang_id: string;
827
+ interesting_versions: (({
828
+ status: "unclassified";
829
+ } | {
830
+ status: "published";
831
+ } | {
832
+ status: "release";
833
+ release_id: string;
834
+ } | {
835
+ status: "archived";
836
+ }) & {
837
+ tags: string[];
838
+ version_id: string;
839
+ last_modified_date: Date;
840
+ summary?: string | undefined;
841
+ preview_image?: string | undefined;
842
+ uid?: string | undefined;
843
+ custom_type_id?: string | undefined;
844
+ author_ids?: string[] | undefined;
845
+ })[];
846
+ locale_id?: string | undefined;
847
+ }, {
848
+ id: string;
849
+ title: string;
850
+ custom_type_id: string;
851
+ group_lang_id: string;
852
+ interesting_versions: (({
853
+ status: "unclassified";
854
+ } | {
855
+ status: "published";
856
+ } | {
857
+ status: "release";
858
+ release_id: string;
859
+ } | {
860
+ status: "archived";
861
+ }) & {
862
+ tags: string[];
863
+ version_id: string;
864
+ last_modified_date: Date;
865
+ summary?: string | undefined;
866
+ preview_image?: string | undefined;
867
+ uid?: string | undefined;
868
+ custom_type_id?: string | undefined;
869
+ author_ids?: string[] | undefined;
870
+ })[];
871
+ locale_id?: string | undefined;
872
+ }>, {
873
+ id: string;
874
+ title: string;
875
+ custom_type_id: string;
876
+ group_lang_id: string;
877
+ locale_id?: string | undefined;
878
+ versions: (({
879
+ status: "unclassified";
880
+ } | {
881
+ status: "published";
882
+ } | {
883
+ status: "release";
884
+ release_id: string;
885
+ } | {
886
+ status: "archived";
887
+ }) & {
888
+ tags: string[];
889
+ version_id: string;
890
+ last_modified_date: Date;
891
+ summary?: string | undefined;
396
892
  preview_image?: string | undefined;
397
893
  uid?: string | undefined;
894
+ custom_type_id?: string | undefined;
895
+ author_ids?: string[] | undefined;
398
896
  })[];
399
897
  }, {
400
898
  id: string;
401
- language: {
402
- id: string;
403
- name: string;
404
- is_master?: boolean | undefined;
405
- };
899
+ title: string;
406
900
  custom_type_id: string;
407
901
  group_lang_id: string;
408
- versions: (({
902
+ interesting_versions: (({
409
903
  status: "unclassified";
410
904
  } | {
411
905
  status: "published";
@@ -416,33 +910,23 @@ declare const getDocumentListSchema: z.ZodObject<{
416
910
  status: "archived";
417
911
  }) & {
418
912
  tags: string[];
419
- author: {
420
- first_name?: string | undefined;
421
- last_name?: string | undefined;
422
- email?: string | undefined;
423
- uploadedAvatar?: string | undefined;
424
- };
425
913
  version_id: string;
426
- custom_type_label: string;
427
914
  last_modified_date: Date;
428
- preview_summary?: string | undefined;
915
+ summary?: string | undefined;
429
916
  preview_image?: string | undefined;
430
917
  uid?: string | undefined;
918
+ custom_type_id?: string | undefined;
919
+ author_ids?: string[] | undefined;
431
920
  })[];
432
- title?: string | null | undefined;
921
+ locale_id?: string | undefined;
433
922
  }>, "many">;
434
923
  }, "strip", z.ZodTypeAny, {
435
- total: number;
436
924
  results: {
437
925
  id: string;
438
926
  title: string;
439
- language: {
440
- id: string;
441
- name: string;
442
- is_master?: boolean | undefined;
443
- };
444
927
  custom_type_id: string;
445
928
  group_lang_id: string;
929
+ locale_id?: string | undefined;
446
930
  versions: (({
447
931
  status: "unclassified";
448
932
  } | {
@@ -454,33 +938,22 @@ declare const getDocumentListSchema: z.ZodObject<{
454
938
  status: "archived";
455
939
  }) & {
456
940
  tags: string[];
457
- author: {
458
- first_name?: string | undefined;
459
- last_name?: string | undefined;
460
- email?: string | undefined;
461
- uploadedAvatar?: string | undefined;
462
- };
463
941
  version_id: string;
464
- custom_type_label: string;
465
942
  last_modified_date: Date;
466
- preview_summary?: string | undefined;
943
+ summary?: string | undefined;
467
944
  preview_image?: string | undefined;
468
945
  uid?: string | undefined;
946
+ custom_type_id?: string | undefined;
947
+ author_ids?: string[] | undefined;
469
948
  })[];
470
949
  }[];
471
- cursor?: string | undefined;
472
950
  }, {
473
- total: number;
474
951
  results: {
475
952
  id: string;
476
- language: {
477
- id: string;
478
- name: string;
479
- is_master?: boolean | undefined;
480
- };
953
+ title: string;
481
954
  custom_type_id: string;
482
955
  group_lang_id: string;
483
- versions: (({
956
+ interesting_versions: (({
484
957
  status: "unclassified";
485
958
  } | {
486
959
  status: "published";
@@ -491,60 +964,23 @@ declare const getDocumentListSchema: z.ZodObject<{
491
964
  status: "archived";
492
965
  }) & {
493
966
  tags: string[];
494
- author: {
495
- first_name?: string | undefined;
496
- last_name?: string | undefined;
497
- email?: string | undefined;
498
- uploadedAvatar?: string | undefined;
499
- };
500
967
  version_id: string;
501
- custom_type_label: string;
502
968
  last_modified_date: Date;
503
- preview_summary?: string | undefined;
969
+ summary?: string | undefined;
504
970
  preview_image?: string | undefined;
505
971
  uid?: string | undefined;
972
+ custom_type_id?: string | undefined;
973
+ author_ids?: string[] | undefined;
506
974
  })[];
507
- title?: string | null | undefined;
975
+ locale_id?: string | undefined;
508
976
  }[];
509
- cursor?: string | undefined;
510
- }>;
511
- declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
512
- results: z.ZodArray<z.ZodObject<{
513
- id: z.ZodString;
514
- title: z.ZodString;
515
- repository_id: z.ZodString;
516
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
517
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
518
- id: z.ZodString;
519
- title: z.ZodString;
520
- repository_id: z.ZodString;
521
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
522
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
523
- id: z.ZodString;
524
- title: z.ZodString;
525
- repository_id: z.ZodString;
526
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
527
- }, z.ZodTypeAny, "passthrough">>, "many">;
528
- }, "strip", z.ZodTypeAny, {
529
- results: z.objectOutputType<{
530
- id: z.ZodString;
531
- title: z.ZodString;
532
- repository_id: z.ZodString;
533
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
534
- }, z.ZodTypeAny, "passthrough">[];
535
- }, {
536
- results: z.objectInputType<{
537
- id: z.ZodString;
538
- title: z.ZodString;
539
- repository_id: z.ZodString;
540
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
541
- }, z.ZodTypeAny, "passthrough">[];
542
977
  }>;
543
- export type Language = z.TypeOf<typeof languageOkType>;
978
+ export type Language = z.TypeOf<typeof languageSchema>;
544
979
  export type GetDocumentListSchema = z.TypeOf<typeof getDocumentListSchema>;
545
980
  export type DocumentFullTextSearchApi = z.TypeOf<typeof documentsFullTextSearchAPISchemaOkType>;
546
- export type DocumentMeta = z.TypeOf<typeof documentMetaOkType>;
547
- export type DocumentVersion = z.TypeOf<typeof documentVersionOkType>;
981
+ export type DocumentMeta = z.TypeOf<typeof documentMetaSchema>;
982
+ export type DocumentSearchMeta = z.TypeOf<typeof documentSearchDocumentSchema>;
983
+ export type DocumentVersion = z.TypeOf<typeof documentVersionSchema>;
548
984
  export type DocumentStatus = DocumentVersion["status"];
549
985
  export declare function getDocuments(baseUrl: URL, authStrategy: AuthStrategy, queryString: string, limit?: number, cursor?: string): Promise<GetDocumentListSchema>;
550
986
  export interface GetDocumentListArgs {
@@ -568,6 +1004,7 @@ export declare function makeSearchFullTextDocumentsQueryString(args: {
568
1004
  repository: string;
569
1005
  searchTerm?: string;
570
1006
  tags?: string[];
1007
+ status?: string[];
571
1008
  localeId?: string;
572
1009
  customTypesIds?: string[];
573
1010
  }): string;
@@ -693,12 +1130,14 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
693
1130
  }) | {
694
1131
  __TYPE__: "IntegrationFieldsContent";
695
1132
  value: string;
696
- } | {
1133
+ } | ({
1134
+ key: string;
1135
+ } & {
697
1136
  __TYPE__: "LinkContent";
698
1137
  value: ({
699
1138
  __TYPE__: "ImageLink";
700
- } & (({
701
- kind: string;
1139
+ } & ((({
1140
+ kind: "image";
702
1141
  id: string;
703
1142
  url: string;
704
1143
  height: string;
@@ -707,38 +1146,35 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
707
1146
  name: string;
708
1147
  } & {
709
1148
  date?: string | null | undefined;
710
- } & {
711
- text?: string | undefined;
712
1149
  }) | {
713
1150
  kind: "image";
714
- text: string;
1151
+ }) & {
1152
+ text?: string | undefined;
715
1153
  })) | ({
716
1154
  __TYPE__: "FileLink";
717
- } & (({
718
- kind: string;
1155
+ } & ((({
1156
+ kind: "file";
719
1157
  id: string;
720
1158
  url: string;
721
1159
  name: string;
722
1160
  size: string;
723
1161
  } & {
724
1162
  date?: string | null | undefined;
725
- } & {
726
- text?: string | undefined;
727
1163
  }) | {
728
1164
  kind: "file";
729
- text: string;
1165
+ }) & {
1166
+ text?: string | undefined;
730
1167
  })) | ({
731
1168
  __TYPE__: "DocumentLink";
732
1169
  } & (({
733
1170
  id: string;
734
- } & {
735
- text?: string | undefined;
736
- }) | {
1171
+ } | {
737
1172
  kind: "document";
738
- text: string;
1173
+ }) & {
1174
+ text?: string | undefined;
739
1175
  })) | ({
740
1176
  __TYPE__: "ExternalLink";
741
- } & (({
1177
+ } & ((({
742
1178
  url: string;
743
1179
  } & {
744
1180
  kind?: "web" | undefined;
@@ -746,22 +1182,24 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
746
1182
  preview?: {
747
1183
  title?: string | undefined;
748
1184
  } | null | undefined;
749
- } & {
750
- text?: string | undefined;
751
1185
  }) | {
752
1186
  kind: "web";
753
- text: string;
1187
+ }) & {
1188
+ text?: string | undefined;
754
1189
  })) | ({
755
1190
  __TYPE__: "MediaLink";
756
1191
  } & {
757
1192
  kind: "media";
758
- text: string;
1193
+ } & {
1194
+ text?: string | undefined;
759
1195
  }) | ({
760
1196
  __TYPE__: "AnyLink";
761
1197
  } & {
762
- text: string;
1198
+ kind: "any";
1199
+ } & {
1200
+ text?: string | undefined;
763
1201
  });
764
- } | {
1202
+ }) | {
765
1203
  __TYPE__: "StructuredTextContent";
766
1204
  value: (({
767
1205
  type: "image";
@@ -791,7 +1229,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
791
1229
  linkTo?: ({
792
1230
  __TYPE__: "ImageLink";
793
1231
  } & {
794
- kind: string;
1232
+ kind: "image";
795
1233
  id: string;
796
1234
  url: string;
797
1235
  height: string;
@@ -803,7 +1241,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
803
1241
  }) | ({
804
1242
  __TYPE__: "FileLink";
805
1243
  } & {
806
- kind: string;
1244
+ kind: "file";
807
1245
  id: string;
808
1246
  url: string;
809
1247
  name: string;
@@ -862,7 +1300,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
862
1300
  data: ({
863
1301
  __TYPE__: "ImageLink";
864
1302
  } & {
865
- kind: string;
1303
+ kind: "image";
866
1304
  id: string;
867
1305
  url: string;
868
1306
  height: string;
@@ -874,7 +1312,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
874
1312
  }) | ({
875
1313
  __TYPE__: "FileLink";
876
1314
  } & {
877
- kind: string;
1315
+ kind: "file";
878
1316
  id: string;
879
1317
  url: string;
880
1318
  name: string;
@@ -916,6 +1354,79 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
916
1354
  }))[];
917
1355
  } | {
918
1356
  __TYPE__: "SeparatorContent";
1357
+ } | {
1358
+ __TYPE__: "RepeatableContent";
1359
+ type: "Link";
1360
+ value: ({
1361
+ key: string;
1362
+ } & {
1363
+ __TYPE__: "LinkContent";
1364
+ value: ({
1365
+ __TYPE__: "ImageLink";
1366
+ } & ((({
1367
+ kind: "image";
1368
+ id: string;
1369
+ url: string;
1370
+ height: string;
1371
+ width: string;
1372
+ size: string;
1373
+ name: string;
1374
+ } & {
1375
+ date?: string | null | undefined;
1376
+ }) | {
1377
+ kind: "image";
1378
+ }) & {
1379
+ text?: string | undefined;
1380
+ })) | ({
1381
+ __TYPE__: "FileLink";
1382
+ } & ((({
1383
+ kind: "file";
1384
+ id: string;
1385
+ url: string;
1386
+ name: string;
1387
+ size: string;
1388
+ } & {
1389
+ date?: string | null | undefined;
1390
+ }) | {
1391
+ kind: "file";
1392
+ }) & {
1393
+ text?: string | undefined;
1394
+ })) | ({
1395
+ __TYPE__: "DocumentLink";
1396
+ } & (({
1397
+ id: string;
1398
+ } | {
1399
+ kind: "document";
1400
+ }) & {
1401
+ text?: string | undefined;
1402
+ })) | ({
1403
+ __TYPE__: "ExternalLink";
1404
+ } & ((({
1405
+ url: string;
1406
+ } & {
1407
+ kind?: "web" | undefined;
1408
+ target?: string | null | undefined;
1409
+ preview?: {
1410
+ title?: string | undefined;
1411
+ } | null | undefined;
1412
+ }) | {
1413
+ kind: "web";
1414
+ }) & {
1415
+ text?: string | undefined;
1416
+ })) | ({
1417
+ __TYPE__: "MediaLink";
1418
+ } & {
1419
+ kind: "media";
1420
+ } & {
1421
+ text?: string | undefined;
1422
+ }) | ({
1423
+ __TYPE__: "AnyLink";
1424
+ } & {
1425
+ kind: "any";
1426
+ } & {
1427
+ text?: string | undefined;
1428
+ });
1429
+ })[];
919
1430
  } | {
920
1431
  __TYPE__: "UIDContent";
921
1432
  value: string;
@@ -1040,12 +1551,14 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1040
1551
  }) | {
1041
1552
  __TYPE__: "IntegrationFieldsContent";
1042
1553
  value: string;
1043
- } | {
1554
+ } | ({
1555
+ key: string;
1556
+ } & {
1044
1557
  __TYPE__: "LinkContent";
1045
1558
  value: ({
1046
1559
  __TYPE__: "ImageLink";
1047
- } & (({
1048
- kind: string;
1560
+ } & ((({
1561
+ kind: "image";
1049
1562
  id: string;
1050
1563
  url: string;
1051
1564
  height: string;
@@ -1054,38 +1567,35 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1054
1567
  name: string;
1055
1568
  } & {
1056
1569
  date?: string | null | undefined;
1057
- } & {
1058
- text?: string | undefined;
1059
1570
  }) | {
1060
1571
  kind: "image";
1061
- text: string;
1572
+ }) & {
1573
+ text?: string | undefined;
1062
1574
  })) | ({
1063
1575
  __TYPE__: "FileLink";
1064
- } & (({
1065
- kind: string;
1576
+ } & ((({
1577
+ kind: "file";
1066
1578
  id: string;
1067
1579
  url: string;
1068
1580
  name: string;
1069
1581
  size: string;
1070
1582
  } & {
1071
1583
  date?: string | null | undefined;
1072
- } & {
1073
- text?: string | undefined;
1074
1584
  }) | {
1075
1585
  kind: "file";
1076
- text: string;
1586
+ }) & {
1587
+ text?: string | undefined;
1077
1588
  })) | ({
1078
1589
  __TYPE__: "DocumentLink";
1079
1590
  } & (({
1080
1591
  id: string;
1081
- } & {
1082
- text?: string | undefined;
1083
- }) | {
1592
+ } | {
1084
1593
  kind: "document";
1085
- text: string;
1594
+ }) & {
1595
+ text?: string | undefined;
1086
1596
  })) | ({
1087
1597
  __TYPE__: "ExternalLink";
1088
- } & (({
1598
+ } & ((({
1089
1599
  url: string;
1090
1600
  } & {
1091
1601
  kind?: "web" | undefined;
@@ -1093,22 +1603,24 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1093
1603
  preview?: {
1094
1604
  title?: string | undefined;
1095
1605
  } | null | undefined;
1096
- } & {
1097
- text?: string | undefined;
1098
1606
  }) | {
1099
1607
  kind: "web";
1100
- text: string;
1608
+ }) & {
1609
+ text?: string | undefined;
1101
1610
  })) | ({
1102
1611
  __TYPE__: "MediaLink";
1103
1612
  } & {
1104
1613
  kind: "media";
1105
- text: string;
1614
+ } & {
1615
+ text?: string | undefined;
1106
1616
  }) | ({
1107
1617
  __TYPE__: "AnyLink";
1108
1618
  } & {
1109
- text: string;
1619
+ kind: "any";
1620
+ } & {
1621
+ text?: string | undefined;
1110
1622
  });
1111
- } | {
1623
+ }) | {
1112
1624
  __TYPE__: "StructuredTextContent";
1113
1625
  value: (({
1114
1626
  type: "image";
@@ -1138,7 +1650,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1138
1650
  linkTo?: ({
1139
1651
  __TYPE__: "ImageLink";
1140
1652
  } & {
1141
- kind: string;
1653
+ kind: "image";
1142
1654
  id: string;
1143
1655
  url: string;
1144
1656
  height: string;
@@ -1150,7 +1662,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1150
1662
  }) | ({
1151
1663
  __TYPE__: "FileLink";
1152
1664
  } & {
1153
- kind: string;
1665
+ kind: "file";
1154
1666
  id: string;
1155
1667
  url: string;
1156
1668
  name: string;
@@ -1209,7 +1721,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1209
1721
  data: ({
1210
1722
  __TYPE__: "ImageLink";
1211
1723
  } & {
1212
- kind: string;
1724
+ kind: "image";
1213
1725
  id: string;
1214
1726
  url: string;
1215
1727
  height: string;
@@ -1221,7 +1733,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1221
1733
  }) | ({
1222
1734
  __TYPE__: "FileLink";
1223
1735
  } & {
1224
- kind: string;
1736
+ kind: "file";
1225
1737
  id: string;
1226
1738
  url: string;
1227
1739
  name: string;
@@ -1263,6 +1775,79 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1263
1775
  }))[];
1264
1776
  } | {
1265
1777
  __TYPE__: "SeparatorContent";
1778
+ } | {
1779
+ __TYPE__: "RepeatableContent";
1780
+ type: "Link";
1781
+ value: ({
1782
+ key: string;
1783
+ } & {
1784
+ __TYPE__: "LinkContent";
1785
+ value: ({
1786
+ __TYPE__: "ImageLink";
1787
+ } & ((({
1788
+ kind: "image";
1789
+ id: string;
1790
+ url: string;
1791
+ height: string;
1792
+ width: string;
1793
+ size: string;
1794
+ name: string;
1795
+ } & {
1796
+ date?: string | null | undefined;
1797
+ }) | {
1798
+ kind: "image";
1799
+ }) & {
1800
+ text?: string | undefined;
1801
+ })) | ({
1802
+ __TYPE__: "FileLink";
1803
+ } & ((({
1804
+ kind: "file";
1805
+ id: string;
1806
+ url: string;
1807
+ name: string;
1808
+ size: string;
1809
+ } & {
1810
+ date?: string | null | undefined;
1811
+ }) | {
1812
+ kind: "file";
1813
+ }) & {
1814
+ text?: string | undefined;
1815
+ })) | ({
1816
+ __TYPE__: "DocumentLink";
1817
+ } & (({
1818
+ id: string;
1819
+ } | {
1820
+ kind: "document";
1821
+ }) & {
1822
+ text?: string | undefined;
1823
+ })) | ({
1824
+ __TYPE__: "ExternalLink";
1825
+ } & ((({
1826
+ url: string;
1827
+ } & {
1828
+ kind?: "web" | undefined;
1829
+ target?: string | null | undefined;
1830
+ preview?: {
1831
+ title?: string | undefined;
1832
+ } | null | undefined;
1833
+ }) | {
1834
+ kind: "web";
1835
+ }) & {
1836
+ text?: string | undefined;
1837
+ })) | ({
1838
+ __TYPE__: "MediaLink";
1839
+ } & {
1840
+ kind: "media";
1841
+ } & {
1842
+ text?: string | undefined;
1843
+ }) | ({
1844
+ __TYPE__: "AnyLink";
1845
+ } & {
1846
+ kind: "any";
1847
+ } & {
1848
+ text?: string | undefined;
1849
+ });
1850
+ })[];
1266
1851
  };
1267
1852
  };
1268
1853
  repeat: {
@@ -1379,12 +1964,14 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1379
1964
  }) | {
1380
1965
  __TYPE__: "IntegrationFieldsContent";
1381
1966
  value: string;
1382
- } | {
1967
+ } | ({
1968
+ key: string;
1969
+ } & {
1383
1970
  __TYPE__: "LinkContent";
1384
1971
  value: ({
1385
1972
  __TYPE__: "ImageLink";
1386
- } & (({
1387
- kind: string;
1973
+ } & ((({
1974
+ kind: "image";
1388
1975
  id: string;
1389
1976
  url: string;
1390
1977
  height: string;
@@ -1393,38 +1980,35 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1393
1980
  name: string;
1394
1981
  } & {
1395
1982
  date?: string | null | undefined;
1396
- } & {
1397
- text?: string | undefined;
1398
1983
  }) | {
1399
1984
  kind: "image";
1400
- text: string;
1985
+ }) & {
1986
+ text?: string | undefined;
1401
1987
  })) | ({
1402
1988
  __TYPE__: "FileLink";
1403
- } & (({
1404
- kind: string;
1989
+ } & ((({
1990
+ kind: "file";
1405
1991
  id: string;
1406
1992
  url: string;
1407
1993
  name: string;
1408
1994
  size: string;
1409
1995
  } & {
1410
1996
  date?: string | null | undefined;
1411
- } & {
1412
- text?: string | undefined;
1413
1997
  }) | {
1414
1998
  kind: "file";
1415
- text: string;
1999
+ }) & {
2000
+ text?: string | undefined;
1416
2001
  })) | ({
1417
2002
  __TYPE__: "DocumentLink";
1418
2003
  } & (({
1419
2004
  id: string;
1420
- } & {
1421
- text?: string | undefined;
1422
- }) | {
2005
+ } | {
1423
2006
  kind: "document";
1424
- text: string;
2007
+ }) & {
2008
+ text?: string | undefined;
1425
2009
  })) | ({
1426
2010
  __TYPE__: "ExternalLink";
1427
- } & (({
2011
+ } & ((({
1428
2012
  url: string;
1429
2013
  } & {
1430
2014
  kind?: "web" | undefined;
@@ -1432,22 +2016,24 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1432
2016
  preview?: {
1433
2017
  title?: string | undefined;
1434
2018
  } | null | undefined;
1435
- } & {
1436
- text?: string | undefined;
1437
2019
  }) | {
1438
2020
  kind: "web";
1439
- text: string;
2021
+ }) & {
2022
+ text?: string | undefined;
1440
2023
  })) | ({
1441
2024
  __TYPE__: "MediaLink";
1442
2025
  } & {
1443
2026
  kind: "media";
1444
- text: string;
2027
+ } & {
2028
+ text?: string | undefined;
1445
2029
  }) | ({
1446
2030
  __TYPE__: "AnyLink";
1447
2031
  } & {
1448
- text: string;
2032
+ kind: "any";
2033
+ } & {
2034
+ text?: string | undefined;
1449
2035
  });
1450
- } | {
2036
+ }) | {
1451
2037
  __TYPE__: "StructuredTextContent";
1452
2038
  value: (({
1453
2039
  type: "image";
@@ -1477,7 +2063,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1477
2063
  linkTo?: ({
1478
2064
  __TYPE__: "ImageLink";
1479
2065
  } & {
1480
- kind: string;
2066
+ kind: "image";
1481
2067
  id: string;
1482
2068
  url: string;
1483
2069
  height: string;
@@ -1489,7 +2075,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1489
2075
  }) | ({
1490
2076
  __TYPE__: "FileLink";
1491
2077
  } & {
1492
- kind: string;
2078
+ kind: "file";
1493
2079
  id: string;
1494
2080
  url: string;
1495
2081
  name: string;
@@ -1548,7 +2134,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1548
2134
  data: ({
1549
2135
  __TYPE__: "ImageLink";
1550
2136
  } & {
1551
- kind: string;
2137
+ kind: "image";
1552
2138
  id: string;
1553
2139
  url: string;
1554
2140
  height: string;
@@ -1560,7 +2146,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1560
2146
  }) | ({
1561
2147
  __TYPE__: "FileLink";
1562
2148
  } & {
1563
- kind: string;
2149
+ kind: "file";
1564
2150
  id: string;
1565
2151
  url: string;
1566
2152
  name: string;
@@ -1602,6 +2188,79 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1602
2188
  }))[];
1603
2189
  } | {
1604
2190
  __TYPE__: "SeparatorContent";
2191
+ } | {
2192
+ __TYPE__: "RepeatableContent";
2193
+ type: "Link";
2194
+ value: ({
2195
+ key: string;
2196
+ } & {
2197
+ __TYPE__: "LinkContent";
2198
+ value: ({
2199
+ __TYPE__: "ImageLink";
2200
+ } & ((({
2201
+ kind: "image";
2202
+ id: string;
2203
+ url: string;
2204
+ height: string;
2205
+ width: string;
2206
+ size: string;
2207
+ name: string;
2208
+ } & {
2209
+ date?: string | null | undefined;
2210
+ }) | {
2211
+ kind: "image";
2212
+ }) & {
2213
+ text?: string | undefined;
2214
+ })) | ({
2215
+ __TYPE__: "FileLink";
2216
+ } & ((({
2217
+ kind: "file";
2218
+ id: string;
2219
+ url: string;
2220
+ name: string;
2221
+ size: string;
2222
+ } & {
2223
+ date?: string | null | undefined;
2224
+ }) | {
2225
+ kind: "file";
2226
+ }) & {
2227
+ text?: string | undefined;
2228
+ })) | ({
2229
+ __TYPE__: "DocumentLink";
2230
+ } & (({
2231
+ id: string;
2232
+ } | {
2233
+ kind: "document";
2234
+ }) & {
2235
+ text?: string | undefined;
2236
+ })) | ({
2237
+ __TYPE__: "ExternalLink";
2238
+ } & ((({
2239
+ url: string;
2240
+ } & {
2241
+ kind?: "web" | undefined;
2242
+ target?: string | null | undefined;
2243
+ preview?: {
2244
+ title?: string | undefined;
2245
+ } | null | undefined;
2246
+ }) | {
2247
+ kind: "web";
2248
+ }) & {
2249
+ text?: string | undefined;
2250
+ })) | ({
2251
+ __TYPE__: "MediaLink";
2252
+ } & {
2253
+ kind: "media";
2254
+ } & {
2255
+ text?: string | undefined;
2256
+ }) | ({
2257
+ __TYPE__: "AnyLink";
2258
+ } & {
2259
+ kind: "any";
2260
+ } & {
2261
+ text?: string | undefined;
2262
+ });
2263
+ })[];
1605
2264
  }][];
1606
2265
  }[];
1607
2266
  } | {
@@ -1720,12 +2379,14 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1720
2379
  }) | {
1721
2380
  __TYPE__: "IntegrationFieldsContent";
1722
2381
  value: string;
1723
- } | {
2382
+ } | ({
2383
+ key: string;
2384
+ } & {
1724
2385
  __TYPE__: "LinkContent";
1725
2386
  value: ({
1726
2387
  __TYPE__: "ImageLink";
1727
- } & (({
1728
- kind: string;
2388
+ } & ((({
2389
+ kind: "image";
1729
2390
  id: string;
1730
2391
  url: string;
1731
2392
  height: string;
@@ -1734,38 +2395,35 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1734
2395
  name: string;
1735
2396
  } & {
1736
2397
  date?: string | null | undefined;
1737
- } & {
1738
- text?: string | undefined;
1739
2398
  }) | {
1740
2399
  kind: "image";
1741
- text: string;
2400
+ }) & {
2401
+ text?: string | undefined;
1742
2402
  })) | ({
1743
2403
  __TYPE__: "FileLink";
1744
- } & (({
1745
- kind: string;
2404
+ } & ((({
2405
+ kind: "file";
1746
2406
  id: string;
1747
2407
  url: string;
1748
2408
  name: string;
1749
2409
  size: string;
1750
2410
  } & {
1751
2411
  date?: string | null | undefined;
1752
- } & {
1753
- text?: string | undefined;
1754
2412
  }) | {
1755
2413
  kind: "file";
1756
- text: string;
2414
+ }) & {
2415
+ text?: string | undefined;
1757
2416
  })) | ({
1758
2417
  __TYPE__: "DocumentLink";
1759
2418
  } & (({
1760
2419
  id: string;
1761
- } & {
1762
- text?: string | undefined;
1763
- }) | {
2420
+ } | {
1764
2421
  kind: "document";
1765
- text: string;
2422
+ }) & {
2423
+ text?: string | undefined;
1766
2424
  })) | ({
1767
2425
  __TYPE__: "ExternalLink";
1768
- } & (({
2426
+ } & ((({
1769
2427
  url: string;
1770
2428
  } & {
1771
2429
  kind?: "web" | undefined;
@@ -1773,22 +2431,24 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1773
2431
  preview?: {
1774
2432
  title?: string | undefined;
1775
2433
  } | null | undefined;
1776
- } & {
1777
- text?: string | undefined;
1778
2434
  }) | {
1779
2435
  kind: "web";
1780
- text: string;
2436
+ }) & {
2437
+ text?: string | undefined;
1781
2438
  })) | ({
1782
2439
  __TYPE__: "MediaLink";
1783
2440
  } & {
1784
2441
  kind: "media";
1785
- text: string;
2442
+ } & {
2443
+ text?: string | undefined;
1786
2444
  }) | ({
1787
2445
  __TYPE__: "AnyLink";
1788
2446
  } & {
1789
- text: string;
2447
+ kind: "any";
2448
+ } & {
2449
+ text?: string | undefined;
1790
2450
  });
1791
- } | {
2451
+ }) | {
1792
2452
  __TYPE__: "StructuredTextContent";
1793
2453
  value: (({
1794
2454
  type: "image";
@@ -1818,7 +2478,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1818
2478
  linkTo?: ({
1819
2479
  __TYPE__: "ImageLink";
1820
2480
  } & {
1821
- kind: string;
2481
+ kind: "image";
1822
2482
  id: string;
1823
2483
  url: string;
1824
2484
  height: string;
@@ -1830,7 +2490,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1830
2490
  }) | ({
1831
2491
  __TYPE__: "FileLink";
1832
2492
  } & {
1833
- kind: string;
2493
+ kind: "file";
1834
2494
  id: string;
1835
2495
  url: string;
1836
2496
  name: string;
@@ -1889,7 +2549,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1889
2549
  data: ({
1890
2550
  __TYPE__: "ImageLink";
1891
2551
  } & {
1892
- kind: string;
2552
+ kind: "image";
1893
2553
  id: string;
1894
2554
  url: string;
1895
2555
  height: string;
@@ -1901,7 +2561,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1901
2561
  }) | ({
1902
2562
  __TYPE__: "FileLink";
1903
2563
  } & {
1904
- kind: string;
2564
+ kind: "file";
1905
2565
  id: string;
1906
2566
  url: string;
1907
2567
  name: string;
@@ -1943,6 +2603,79 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1943
2603
  }))[];
1944
2604
  } | {
1945
2605
  __TYPE__: "SeparatorContent";
2606
+ } | {
2607
+ __TYPE__: "RepeatableContent";
2608
+ type: "Link";
2609
+ value: ({
2610
+ key: string;
2611
+ } & {
2612
+ __TYPE__: "LinkContent";
2613
+ value: ({
2614
+ __TYPE__: "ImageLink";
2615
+ } & ((({
2616
+ kind: "image";
2617
+ id: string;
2618
+ url: string;
2619
+ height: string;
2620
+ width: string;
2621
+ size: string;
2622
+ name: string;
2623
+ } & {
2624
+ date?: string | null | undefined;
2625
+ }) | {
2626
+ kind: "image";
2627
+ }) & {
2628
+ text?: string | undefined;
2629
+ })) | ({
2630
+ __TYPE__: "FileLink";
2631
+ } & ((({
2632
+ kind: "file";
2633
+ id: string;
2634
+ url: string;
2635
+ name: string;
2636
+ size: string;
2637
+ } & {
2638
+ date?: string | null | undefined;
2639
+ }) | {
2640
+ kind: "file";
2641
+ }) & {
2642
+ text?: string | undefined;
2643
+ })) | ({
2644
+ __TYPE__: "DocumentLink";
2645
+ } & (({
2646
+ id: string;
2647
+ } | {
2648
+ kind: "document";
2649
+ }) & {
2650
+ text?: string | undefined;
2651
+ })) | ({
2652
+ __TYPE__: "ExternalLink";
2653
+ } & ((({
2654
+ url: string;
2655
+ } & {
2656
+ kind?: "web" | undefined;
2657
+ target?: string | null | undefined;
2658
+ preview?: {
2659
+ title?: string | undefined;
2660
+ } | null | undefined;
2661
+ }) | {
2662
+ kind: "web";
2663
+ }) & {
2664
+ text?: string | undefined;
2665
+ })) | ({
2666
+ __TYPE__: "MediaLink";
2667
+ } & {
2668
+ kind: "media";
2669
+ } & {
2670
+ text?: string | undefined;
2671
+ }) | ({
2672
+ __TYPE__: "AnyLink";
2673
+ } & {
2674
+ kind: "any";
2675
+ } & {
2676
+ text?: string | undefined;
2677
+ });
2678
+ })[];
1946
2679
  };
1947
2680
  };
1948
2681
  items: {
@@ -2059,12 +2792,14 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2059
2792
  }) | {
2060
2793
  __TYPE__: "IntegrationFieldsContent";
2061
2794
  value: string;
2062
- } | {
2795
+ } | ({
2796
+ key: string;
2797
+ } & {
2063
2798
  __TYPE__: "LinkContent";
2064
2799
  value: ({
2065
2800
  __TYPE__: "ImageLink";
2066
- } & (({
2067
- kind: string;
2801
+ } & ((({
2802
+ kind: "image";
2068
2803
  id: string;
2069
2804
  url: string;
2070
2805
  height: string;
@@ -2073,38 +2808,35 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2073
2808
  name: string;
2074
2809
  } & {
2075
2810
  date?: string | null | undefined;
2076
- } & {
2077
- text?: string | undefined;
2078
2811
  }) | {
2079
2812
  kind: "image";
2080
- text: string;
2813
+ }) & {
2814
+ text?: string | undefined;
2081
2815
  })) | ({
2082
2816
  __TYPE__: "FileLink";
2083
- } & (({
2084
- kind: string;
2817
+ } & ((({
2818
+ kind: "file";
2085
2819
  id: string;
2086
2820
  url: string;
2087
2821
  name: string;
2088
2822
  size: string;
2089
2823
  } & {
2090
2824
  date?: string | null | undefined;
2091
- } & {
2092
- text?: string | undefined;
2093
2825
  }) | {
2094
2826
  kind: "file";
2095
- text: string;
2827
+ }) & {
2828
+ text?: string | undefined;
2096
2829
  })) | ({
2097
2830
  __TYPE__: "DocumentLink";
2098
2831
  } & (({
2099
2832
  id: string;
2100
- } & {
2101
- text?: string | undefined;
2102
- }) | {
2833
+ } | {
2103
2834
  kind: "document";
2104
- text: string;
2835
+ }) & {
2836
+ text?: string | undefined;
2105
2837
  })) | ({
2106
2838
  __TYPE__: "ExternalLink";
2107
- } & (({
2839
+ } & ((({
2108
2840
  url: string;
2109
2841
  } & {
2110
2842
  kind?: "web" | undefined;
@@ -2112,22 +2844,24 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2112
2844
  preview?: {
2113
2845
  title?: string | undefined;
2114
2846
  } | null | undefined;
2115
- } & {
2116
- text?: string | undefined;
2117
2847
  }) | {
2118
2848
  kind: "web";
2119
- text: string;
2849
+ }) & {
2850
+ text?: string | undefined;
2120
2851
  })) | ({
2121
2852
  __TYPE__: "MediaLink";
2122
2853
  } & {
2123
2854
  kind: "media";
2124
- text: string;
2855
+ } & {
2856
+ text?: string | undefined;
2125
2857
  }) | ({
2126
2858
  __TYPE__: "AnyLink";
2127
2859
  } & {
2128
- text: string;
2860
+ kind: "any";
2861
+ } & {
2862
+ text?: string | undefined;
2129
2863
  });
2130
- } | {
2864
+ }) | {
2131
2865
  __TYPE__: "StructuredTextContent";
2132
2866
  value: (({
2133
2867
  type: "image";
@@ -2157,7 +2891,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2157
2891
  linkTo?: ({
2158
2892
  __TYPE__: "ImageLink";
2159
2893
  } & {
2160
- kind: string;
2894
+ kind: "image";
2161
2895
  id: string;
2162
2896
  url: string;
2163
2897
  height: string;
@@ -2169,7 +2903,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2169
2903
  }) | ({
2170
2904
  __TYPE__: "FileLink";
2171
2905
  } & {
2172
- kind: string;
2906
+ kind: "file";
2173
2907
  id: string;
2174
2908
  url: string;
2175
2909
  name: string;
@@ -2228,7 +2962,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2228
2962
  data: ({
2229
2963
  __TYPE__: "ImageLink";
2230
2964
  } & {
2231
- kind: string;
2965
+ kind: "image";
2232
2966
  id: string;
2233
2967
  url: string;
2234
2968
  height: string;
@@ -2240,7 +2974,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2240
2974
  }) | ({
2241
2975
  __TYPE__: "FileLink";
2242
2976
  } & {
2243
- kind: string;
2977
+ kind: "file";
2244
2978
  id: string;
2245
2979
  url: string;
2246
2980
  name: string;
@@ -2282,6 +3016,79 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2282
3016
  }))[];
2283
3017
  } | {
2284
3018
  __TYPE__: "SeparatorContent";
3019
+ } | {
3020
+ __TYPE__: "RepeatableContent";
3021
+ type: "Link";
3022
+ value: ({
3023
+ key: string;
3024
+ } & {
3025
+ __TYPE__: "LinkContent";
3026
+ value: ({
3027
+ __TYPE__: "ImageLink";
3028
+ } & ((({
3029
+ kind: "image";
3030
+ id: string;
3031
+ url: string;
3032
+ height: string;
3033
+ width: string;
3034
+ size: string;
3035
+ name: string;
3036
+ } & {
3037
+ date?: string | null | undefined;
3038
+ }) | {
3039
+ kind: "image";
3040
+ }) & {
3041
+ text?: string | undefined;
3042
+ })) | ({
3043
+ __TYPE__: "FileLink";
3044
+ } & ((({
3045
+ kind: "file";
3046
+ id: string;
3047
+ url: string;
3048
+ name: string;
3049
+ size: string;
3050
+ } & {
3051
+ date?: string | null | undefined;
3052
+ }) | {
3053
+ kind: "file";
3054
+ }) & {
3055
+ text?: string | undefined;
3056
+ })) | ({
3057
+ __TYPE__: "DocumentLink";
3058
+ } & (({
3059
+ id: string;
3060
+ } | {
3061
+ kind: "document";
3062
+ }) & {
3063
+ text?: string | undefined;
3064
+ })) | ({
3065
+ __TYPE__: "ExternalLink";
3066
+ } & ((({
3067
+ url: string;
3068
+ } & {
3069
+ kind?: "web" | undefined;
3070
+ target?: string | null | undefined;
3071
+ preview?: {
3072
+ title?: string | undefined;
3073
+ } | null | undefined;
3074
+ }) | {
3075
+ kind: "web";
3076
+ }) & {
3077
+ text?: string | undefined;
3078
+ })) | ({
3079
+ __TYPE__: "MediaLink";
3080
+ } & {
3081
+ kind: "media";
3082
+ } & {
3083
+ text?: string | undefined;
3084
+ }) | ({
3085
+ __TYPE__: "AnyLink";
3086
+ } & {
3087
+ kind: "any";
3088
+ } & {
3089
+ text?: string | undefined;
3090
+ });
3091
+ })[];
2285
3092
  }][];
2286
3093
  }[];
2287
3094
  } | {
@@ -2396,12 +3203,14 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2396
3203
  }) | {
2397
3204
  __TYPE__: "IntegrationFieldsContent";
2398
3205
  value: string;
2399
- } | {
3206
+ } | ({
3207
+ key: string;
3208
+ } & {
2400
3209
  __TYPE__: "LinkContent";
2401
3210
  value: ({
2402
3211
  __TYPE__: "ImageLink";
2403
- } & (({
2404
- kind: string;
3212
+ } & ((({
3213
+ kind: "image";
2405
3214
  id: string;
2406
3215
  url: string;
2407
3216
  height: string;
@@ -2410,38 +3219,35 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2410
3219
  name: string;
2411
3220
  } & {
2412
3221
  date?: string | null | undefined;
2413
- } & {
2414
- text?: string | undefined;
2415
3222
  }) | {
2416
3223
  kind: "image";
2417
- text: string;
3224
+ }) & {
3225
+ text?: string | undefined;
2418
3226
  })) | ({
2419
3227
  __TYPE__: "FileLink";
2420
- } & (({
2421
- kind: string;
3228
+ } & ((({
3229
+ kind: "file";
2422
3230
  id: string;
2423
3231
  url: string;
2424
3232
  name: string;
2425
3233
  size: string;
2426
3234
  } & {
2427
3235
  date?: string | null | undefined;
2428
- } & {
2429
- text?: string | undefined;
2430
3236
  }) | {
2431
3237
  kind: "file";
2432
- text: string;
3238
+ }) & {
3239
+ text?: string | undefined;
2433
3240
  })) | ({
2434
3241
  __TYPE__: "DocumentLink";
2435
3242
  } & (({
2436
3243
  id: string;
2437
- } & {
2438
- text?: string | undefined;
2439
- }) | {
3244
+ } | {
2440
3245
  kind: "document";
2441
- text: string;
3246
+ }) & {
3247
+ text?: string | undefined;
2442
3248
  })) | ({
2443
3249
  __TYPE__: "ExternalLink";
2444
- } & (({
3250
+ } & ((({
2445
3251
  url: string;
2446
3252
  } & {
2447
3253
  kind?: "web" | undefined;
@@ -2449,22 +3255,24 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2449
3255
  preview?: {
2450
3256
  title?: string | undefined;
2451
3257
  } | null | undefined;
2452
- } & {
2453
- text?: string | undefined;
2454
3258
  }) | {
2455
3259
  kind: "web";
2456
- text: string;
3260
+ }) & {
3261
+ text?: string | undefined;
2457
3262
  })) | ({
2458
3263
  __TYPE__: "MediaLink";
2459
3264
  } & {
2460
3265
  kind: "media";
2461
- text: string;
3266
+ } & {
3267
+ text?: string | undefined;
2462
3268
  }) | ({
2463
3269
  __TYPE__: "AnyLink";
2464
3270
  } & {
2465
- text: string;
3271
+ kind: "any";
3272
+ } & {
3273
+ text?: string | undefined;
2466
3274
  });
2467
- } | {
3275
+ }) | {
2468
3276
  __TYPE__: "StructuredTextContent";
2469
3277
  value: (({
2470
3278
  type: "image";
@@ -2494,7 +3302,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2494
3302
  linkTo?: ({
2495
3303
  __TYPE__: "ImageLink";
2496
3304
  } & {
2497
- kind: string;
3305
+ kind: "image";
2498
3306
  id: string;
2499
3307
  url: string;
2500
3308
  height: string;
@@ -2506,7 +3314,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2506
3314
  }) | ({
2507
3315
  __TYPE__: "FileLink";
2508
3316
  } & {
2509
- kind: string;
3317
+ kind: "file";
2510
3318
  id: string;
2511
3319
  url: string;
2512
3320
  name: string;
@@ -2565,7 +3373,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2565
3373
  data: ({
2566
3374
  __TYPE__: "ImageLink";
2567
3375
  } & {
2568
- kind: string;
3376
+ kind: "image";
2569
3377
  id: string;
2570
3378
  url: string;
2571
3379
  height: string;
@@ -2577,7 +3385,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2577
3385
  }) | ({
2578
3386
  __TYPE__: "FileLink";
2579
3387
  } & {
2580
- kind: string;
3388
+ kind: "file";
2581
3389
  id: string;
2582
3390
  url: string;
2583
3391
  name: string;
@@ -2619,6 +3427,79 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2619
3427
  }))[];
2620
3428
  } | {
2621
3429
  __TYPE__: "SeparatorContent";
3430
+ } | {
3431
+ __TYPE__: "RepeatableContent";
3432
+ type: "Link";
3433
+ value: ({
3434
+ key: string;
3435
+ } & {
3436
+ __TYPE__: "LinkContent";
3437
+ value: ({
3438
+ __TYPE__: "ImageLink";
3439
+ } & ((({
3440
+ kind: "image";
3441
+ id: string;
3442
+ url: string;
3443
+ height: string;
3444
+ width: string;
3445
+ size: string;
3446
+ name: string;
3447
+ } & {
3448
+ date?: string | null | undefined;
3449
+ }) | {
3450
+ kind: "image";
3451
+ }) & {
3452
+ text?: string | undefined;
3453
+ })) | ({
3454
+ __TYPE__: "FileLink";
3455
+ } & ((({
3456
+ kind: "file";
3457
+ id: string;
3458
+ url: string;
3459
+ name: string;
3460
+ size: string;
3461
+ } & {
3462
+ date?: string | null | undefined;
3463
+ }) | {
3464
+ kind: "file";
3465
+ }) & {
3466
+ text?: string | undefined;
3467
+ })) | ({
3468
+ __TYPE__: "DocumentLink";
3469
+ } & (({
3470
+ id: string;
3471
+ } | {
3472
+ kind: "document";
3473
+ }) & {
3474
+ text?: string | undefined;
3475
+ })) | ({
3476
+ __TYPE__: "ExternalLink";
3477
+ } & ((({
3478
+ url: string;
3479
+ } & {
3480
+ kind?: "web" | undefined;
3481
+ target?: string | null | undefined;
3482
+ preview?: {
3483
+ title?: string | undefined;
3484
+ } | null | undefined;
3485
+ }) | {
3486
+ kind: "web";
3487
+ }) & {
3488
+ text?: string | undefined;
3489
+ })) | ({
3490
+ __TYPE__: "MediaLink";
3491
+ } & {
3492
+ kind: "media";
3493
+ } & {
3494
+ text?: string | undefined;
3495
+ }) | ({
3496
+ __TYPE__: "AnyLink";
3497
+ } & {
3498
+ kind: "any";
3499
+ } & {
3500
+ text?: string | undefined;
3501
+ });
3502
+ })[];
2622
3503
  };
2623
3504
  }[];
2624
3505
  };
@@ -2744,12 +3625,14 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2744
3625
  }) | {
2745
3626
  __TYPE__: "IntegrationFieldsContent";
2746
3627
  value: string;
2747
- } | {
3628
+ } | ({
3629
+ key: string;
3630
+ } & {
2748
3631
  __TYPE__: "LinkContent";
2749
3632
  value: ({
2750
3633
  __TYPE__: "ImageLink";
2751
- } & (({
2752
- kind: string;
3634
+ } & ((({
3635
+ kind: "image";
2753
3636
  id: string;
2754
3637
  url: string;
2755
3638
  height: string;
@@ -2758,38 +3641,35 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2758
3641
  name: string;
2759
3642
  } & {
2760
3643
  date?: string | null | undefined;
2761
- } & {
2762
- text?: string | undefined;
2763
3644
  }) | {
2764
3645
  kind: "image";
2765
- text: string;
3646
+ }) & {
3647
+ text?: string | undefined;
2766
3648
  })) | ({
2767
3649
  __TYPE__: "FileLink";
2768
- } & (({
2769
- kind: string;
3650
+ } & ((({
3651
+ kind: "file";
2770
3652
  id: string;
2771
3653
  url: string;
2772
3654
  name: string;
2773
3655
  size: string;
2774
3656
  } & {
2775
3657
  date?: string | null | undefined;
2776
- } & {
2777
- text?: string | undefined;
2778
3658
  }) | {
2779
3659
  kind: "file";
2780
- text: string;
3660
+ }) & {
3661
+ text?: string | undefined;
2781
3662
  })) | ({
2782
3663
  __TYPE__: "DocumentLink";
2783
3664
  } & (({
2784
3665
  id: string;
2785
- } & {
2786
- text?: string | undefined;
2787
- }) | {
3666
+ } | {
2788
3667
  kind: "document";
2789
- text: string;
3668
+ }) & {
3669
+ text?: string | undefined;
2790
3670
  })) | ({
2791
3671
  __TYPE__: "ExternalLink";
2792
- } & (({
3672
+ } & ((({
2793
3673
  url: string;
2794
3674
  } & {
2795
3675
  kind?: "web" | undefined;
@@ -2797,22 +3677,24 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2797
3677
  preview?: {
2798
3678
  title?: string | undefined;
2799
3679
  } | null | undefined;
2800
- } & {
2801
- text?: string | undefined;
2802
3680
  }) | {
2803
3681
  kind: "web";
2804
- text: string;
3682
+ }) & {
3683
+ text?: string | undefined;
2805
3684
  })) | ({
2806
3685
  __TYPE__: "MediaLink";
2807
3686
  } & {
2808
3687
  kind: "media";
2809
- text: string;
3688
+ } & {
3689
+ text?: string | undefined;
2810
3690
  }) | ({
2811
3691
  __TYPE__: "AnyLink";
2812
3692
  } & {
2813
- text: string;
3693
+ kind: "any";
3694
+ } & {
3695
+ text?: string | undefined;
2814
3696
  });
2815
- } | {
3697
+ }) | {
2816
3698
  __TYPE__: "StructuredTextContent";
2817
3699
  value: (({
2818
3700
  type: "image";
@@ -2842,7 +3724,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2842
3724
  linkTo?: ({
2843
3725
  __TYPE__: "ImageLink";
2844
3726
  } & {
2845
- kind: string;
3727
+ kind: "image";
2846
3728
  id: string;
2847
3729
  url: string;
2848
3730
  height: string;
@@ -2854,7 +3736,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2854
3736
  }) | ({
2855
3737
  __TYPE__: "FileLink";
2856
3738
  } & {
2857
- kind: string;
3739
+ kind: "file";
2858
3740
  id: string;
2859
3741
  url: string;
2860
3742
  name: string;
@@ -2913,7 +3795,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2913
3795
  data: ({
2914
3796
  __TYPE__: "ImageLink";
2915
3797
  } & {
2916
- kind: string;
3798
+ kind: "image";
2917
3799
  id: string;
2918
3800
  url: string;
2919
3801
  height: string;
@@ -2925,7 +3807,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2925
3807
  }) | ({
2926
3808
  __TYPE__: "FileLink";
2927
3809
  } & {
2928
- kind: string;
3810
+ kind: "file";
2929
3811
  id: string;
2930
3812
  url: string;
2931
3813
  name: string;
@@ -2967,6 +3849,79 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2967
3849
  }))[];
2968
3850
  } | {
2969
3851
  __TYPE__: "SeparatorContent";
3852
+ } | {
3853
+ __TYPE__: "RepeatableContent";
3854
+ type: "Link";
3855
+ value: ({
3856
+ key: string;
3857
+ } & {
3858
+ __TYPE__: "LinkContent";
3859
+ value: ({
3860
+ __TYPE__: "ImageLink";
3861
+ } & ((({
3862
+ kind: "image";
3863
+ id: string;
3864
+ url: string;
3865
+ height: string;
3866
+ width: string;
3867
+ size: string;
3868
+ name: string;
3869
+ } & {
3870
+ date?: string | null | undefined;
3871
+ }) | {
3872
+ kind: "image";
3873
+ }) & {
3874
+ text?: string | undefined;
3875
+ })) | ({
3876
+ __TYPE__: "FileLink";
3877
+ } & ((({
3878
+ kind: "file";
3879
+ id: string;
3880
+ url: string;
3881
+ name: string;
3882
+ size: string;
3883
+ } & {
3884
+ date?: string | null | undefined;
3885
+ }) | {
3886
+ kind: "file";
3887
+ }) & {
3888
+ text?: string | undefined;
3889
+ })) | ({
3890
+ __TYPE__: "DocumentLink";
3891
+ } & (({
3892
+ id: string;
3893
+ } | {
3894
+ kind: "document";
3895
+ }) & {
3896
+ text?: string | undefined;
3897
+ })) | ({
3898
+ __TYPE__: "ExternalLink";
3899
+ } & ((({
3900
+ url: string;
3901
+ } & {
3902
+ kind?: "web" | undefined;
3903
+ target?: string | null | undefined;
3904
+ preview?: {
3905
+ title?: string | undefined;
3906
+ } | null | undefined;
3907
+ }) | {
3908
+ kind: "web";
3909
+ }) & {
3910
+ text?: string | undefined;
3911
+ })) | ({
3912
+ __TYPE__: "MediaLink";
3913
+ } & {
3914
+ kind: "media";
3915
+ } & {
3916
+ text?: string | undefined;
3917
+ }) | ({
3918
+ __TYPE__: "AnyLink";
3919
+ } & {
3920
+ kind: "any";
3921
+ } & {
3922
+ text?: string | undefined;
3923
+ });
3924
+ })[];
2970
3925
  };
2971
3926
  };
2972
3927
  repeat: {
@@ -3083,12 +4038,14 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3083
4038
  }) | {
3084
4039
  __TYPE__: "IntegrationFieldsContent";
3085
4040
  value: string;
3086
- } | {
4041
+ } | ({
4042
+ key: string;
4043
+ } & {
3087
4044
  __TYPE__: "LinkContent";
3088
4045
  value: ({
3089
4046
  __TYPE__: "ImageLink";
3090
- } & (({
3091
- kind: string;
4047
+ } & ((({
4048
+ kind: "image";
3092
4049
  id: string;
3093
4050
  url: string;
3094
4051
  height: string;
@@ -3097,38 +4054,35 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3097
4054
  name: string;
3098
4055
  } & {
3099
4056
  date?: string | null | undefined;
3100
- } & {
3101
- text?: string | undefined;
3102
4057
  }) | {
3103
4058
  kind: "image";
3104
- text: string;
4059
+ }) & {
4060
+ text?: string | undefined;
3105
4061
  })) | ({
3106
4062
  __TYPE__: "FileLink";
3107
- } & (({
3108
- kind: string;
4063
+ } & ((({
4064
+ kind: "file";
3109
4065
  id: string;
3110
4066
  url: string;
3111
4067
  name: string;
3112
4068
  size: string;
3113
4069
  } & {
3114
4070
  date?: string | null | undefined;
3115
- } & {
3116
- text?: string | undefined;
3117
4071
  }) | {
3118
4072
  kind: "file";
3119
- text: string;
4073
+ }) & {
4074
+ text?: string | undefined;
3120
4075
  })) | ({
3121
4076
  __TYPE__: "DocumentLink";
3122
4077
  } & (({
3123
4078
  id: string;
3124
- } & {
3125
- text?: string | undefined;
3126
- }) | {
4079
+ } | {
3127
4080
  kind: "document";
3128
- text: string;
4081
+ }) & {
4082
+ text?: string | undefined;
3129
4083
  })) | ({
3130
4084
  __TYPE__: "ExternalLink";
3131
- } & (({
4085
+ } & ((({
3132
4086
  url: string;
3133
4087
  } & {
3134
4088
  kind?: "web" | undefined;
@@ -3136,22 +4090,24 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3136
4090
  preview?: {
3137
4091
  title?: string | undefined;
3138
4092
  } | null | undefined;
3139
- } & {
3140
- text?: string | undefined;
3141
4093
  }) | {
3142
4094
  kind: "web";
3143
- text: string;
4095
+ }) & {
4096
+ text?: string | undefined;
3144
4097
  })) | ({
3145
4098
  __TYPE__: "MediaLink";
3146
4099
  } & {
3147
4100
  kind: "media";
3148
- text: string;
4101
+ } & {
4102
+ text?: string | undefined;
3149
4103
  }) | ({
3150
4104
  __TYPE__: "AnyLink";
3151
4105
  } & {
3152
- text: string;
4106
+ kind: "any";
4107
+ } & {
4108
+ text?: string | undefined;
3153
4109
  });
3154
- } | {
4110
+ }) | {
3155
4111
  __TYPE__: "StructuredTextContent";
3156
4112
  value: (({
3157
4113
  type: "image";
@@ -3181,7 +4137,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3181
4137
  linkTo?: ({
3182
4138
  __TYPE__: "ImageLink";
3183
4139
  } & {
3184
- kind: string;
4140
+ kind: "image";
3185
4141
  id: string;
3186
4142
  url: string;
3187
4143
  height: string;
@@ -3193,7 +4149,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3193
4149
  }) | ({
3194
4150
  __TYPE__: "FileLink";
3195
4151
  } & {
3196
- kind: string;
4152
+ kind: "file";
3197
4153
  id: string;
3198
4154
  url: string;
3199
4155
  name: string;
@@ -3252,7 +4208,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3252
4208
  data: ({
3253
4209
  __TYPE__: "ImageLink";
3254
4210
  } & {
3255
- kind: string;
4211
+ kind: "image";
3256
4212
  id: string;
3257
4213
  url: string;
3258
4214
  height: string;
@@ -3264,7 +4220,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3264
4220
  }) | ({
3265
4221
  __TYPE__: "FileLink";
3266
4222
  } & {
3267
- kind: string;
4223
+ kind: "file";
3268
4224
  id: string;
3269
4225
  url: string;
3270
4226
  name: string;
@@ -3306,6 +4262,79 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3306
4262
  }))[];
3307
4263
  } | {
3308
4264
  __TYPE__: "SeparatorContent";
4265
+ } | {
4266
+ __TYPE__: "RepeatableContent";
4267
+ type: "Link";
4268
+ value: ({
4269
+ key: string;
4270
+ } & {
4271
+ __TYPE__: "LinkContent";
4272
+ value: ({
4273
+ __TYPE__: "ImageLink";
4274
+ } & ((({
4275
+ kind: "image";
4276
+ id: string;
4277
+ url: string;
4278
+ height: string;
4279
+ width: string;
4280
+ size: string;
4281
+ name: string;
4282
+ } & {
4283
+ date?: string | null | undefined;
4284
+ }) | {
4285
+ kind: "image";
4286
+ }) & {
4287
+ text?: string | undefined;
4288
+ })) | ({
4289
+ __TYPE__: "FileLink";
4290
+ } & ((({
4291
+ kind: "file";
4292
+ id: string;
4293
+ url: string;
4294
+ name: string;
4295
+ size: string;
4296
+ } & {
4297
+ date?: string | null | undefined;
4298
+ }) | {
4299
+ kind: "file";
4300
+ }) & {
4301
+ text?: string | undefined;
4302
+ })) | ({
4303
+ __TYPE__: "DocumentLink";
4304
+ } & (({
4305
+ id: string;
4306
+ } | {
4307
+ kind: "document";
4308
+ }) & {
4309
+ text?: string | undefined;
4310
+ })) | ({
4311
+ __TYPE__: "ExternalLink";
4312
+ } & ((({
4313
+ url: string;
4314
+ } & {
4315
+ kind?: "web" | undefined;
4316
+ target?: string | null | undefined;
4317
+ preview?: {
4318
+ title?: string | undefined;
4319
+ } | null | undefined;
4320
+ }) | {
4321
+ kind: "web";
4322
+ }) & {
4323
+ text?: string | undefined;
4324
+ })) | ({
4325
+ __TYPE__: "MediaLink";
4326
+ } & {
4327
+ kind: "media";
4328
+ } & {
4329
+ text?: string | undefined;
4330
+ }) | ({
4331
+ __TYPE__: "AnyLink";
4332
+ } & {
4333
+ kind: "any";
4334
+ } & {
4335
+ text?: string | undefined;
4336
+ });
4337
+ })[];
3309
4338
  }][];
3310
4339
  }[];
3311
4340
  } | {
@@ -3424,12 +4453,14 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3424
4453
  }) | {
3425
4454
  __TYPE__: "IntegrationFieldsContent";
3426
4455
  value: string;
3427
- } | {
4456
+ } | ({
4457
+ key: string;
4458
+ } & {
3428
4459
  __TYPE__: "LinkContent";
3429
4460
  value: ({
3430
4461
  __TYPE__: "ImageLink";
3431
- } & (({
3432
- kind: string;
4462
+ } & ((({
4463
+ kind: "image";
3433
4464
  id: string;
3434
4465
  url: string;
3435
4466
  height: string;
@@ -3438,38 +4469,35 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3438
4469
  name: string;
3439
4470
  } & {
3440
4471
  date?: string | null | undefined;
3441
- } & {
3442
- text?: string | undefined;
3443
4472
  }) | {
3444
4473
  kind: "image";
3445
- text: string;
4474
+ }) & {
4475
+ text?: string | undefined;
3446
4476
  })) | ({
3447
4477
  __TYPE__: "FileLink";
3448
- } & (({
3449
- kind: string;
4478
+ } & ((({
4479
+ kind: "file";
3450
4480
  id: string;
3451
4481
  url: string;
3452
4482
  name: string;
3453
4483
  size: string;
3454
4484
  } & {
3455
4485
  date?: string | null | undefined;
3456
- } & {
3457
- text?: string | undefined;
3458
4486
  }) | {
3459
4487
  kind: "file";
3460
- text: string;
4488
+ }) & {
4489
+ text?: string | undefined;
3461
4490
  })) | ({
3462
4491
  __TYPE__: "DocumentLink";
3463
4492
  } & (({
3464
4493
  id: string;
3465
- } & {
3466
- text?: string | undefined;
3467
- }) | {
4494
+ } | {
3468
4495
  kind: "document";
3469
- text: string;
4496
+ }) & {
4497
+ text?: string | undefined;
3470
4498
  })) | ({
3471
4499
  __TYPE__: "ExternalLink";
3472
- } & (({
4500
+ } & ((({
3473
4501
  url: string;
3474
4502
  } & {
3475
4503
  kind?: "web" | undefined;
@@ -3477,22 +4505,24 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3477
4505
  preview?: {
3478
4506
  title?: string | undefined;
3479
4507
  } | null | undefined;
3480
- } & {
3481
- text?: string | undefined;
3482
4508
  }) | {
3483
4509
  kind: "web";
3484
- text: string;
4510
+ }) & {
4511
+ text?: string | undefined;
3485
4512
  })) | ({
3486
4513
  __TYPE__: "MediaLink";
3487
4514
  } & {
3488
4515
  kind: "media";
3489
- text: string;
4516
+ } & {
4517
+ text?: string | undefined;
3490
4518
  }) | ({
3491
4519
  __TYPE__: "AnyLink";
3492
4520
  } & {
3493
- text: string;
4521
+ kind: "any";
4522
+ } & {
4523
+ text?: string | undefined;
3494
4524
  });
3495
- } | {
4525
+ }) | {
3496
4526
  __TYPE__: "StructuredTextContent";
3497
4527
  value: (({
3498
4528
  type: "image";
@@ -3522,7 +4552,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3522
4552
  linkTo?: ({
3523
4553
  __TYPE__: "ImageLink";
3524
4554
  } & {
3525
- kind: string;
4555
+ kind: "image";
3526
4556
  id: string;
3527
4557
  url: string;
3528
4558
  height: string;
@@ -3534,7 +4564,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3534
4564
  }) | ({
3535
4565
  __TYPE__: "FileLink";
3536
4566
  } & {
3537
- kind: string;
4567
+ kind: "file";
3538
4568
  id: string;
3539
4569
  url: string;
3540
4570
  name: string;
@@ -3593,7 +4623,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3593
4623
  data: ({
3594
4624
  __TYPE__: "ImageLink";
3595
4625
  } & {
3596
- kind: string;
4626
+ kind: "image";
3597
4627
  id: string;
3598
4628
  url: string;
3599
4629
  height: string;
@@ -3605,7 +4635,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3605
4635
  }) | ({
3606
4636
  __TYPE__: "FileLink";
3607
4637
  } & {
3608
- kind: string;
4638
+ kind: "file";
3609
4639
  id: string;
3610
4640
  url: string;
3611
4641
  name: string;
@@ -3647,6 +4677,79 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3647
4677
  }))[];
3648
4678
  } | {
3649
4679
  __TYPE__: "SeparatorContent";
4680
+ } | {
4681
+ __TYPE__: "RepeatableContent";
4682
+ type: "Link";
4683
+ value: ({
4684
+ key: string;
4685
+ } & {
4686
+ __TYPE__: "LinkContent";
4687
+ value: ({
4688
+ __TYPE__: "ImageLink";
4689
+ } & ((({
4690
+ kind: "image";
4691
+ id: string;
4692
+ url: string;
4693
+ height: string;
4694
+ width: string;
4695
+ size: string;
4696
+ name: string;
4697
+ } & {
4698
+ date?: string | null | undefined;
4699
+ }) | {
4700
+ kind: "image";
4701
+ }) & {
4702
+ text?: string | undefined;
4703
+ })) | ({
4704
+ __TYPE__: "FileLink";
4705
+ } & ((({
4706
+ kind: "file";
4707
+ id: string;
4708
+ url: string;
4709
+ name: string;
4710
+ size: string;
4711
+ } & {
4712
+ date?: string | null | undefined;
4713
+ }) | {
4714
+ kind: "file";
4715
+ }) & {
4716
+ text?: string | undefined;
4717
+ })) | ({
4718
+ __TYPE__: "DocumentLink";
4719
+ } & (({
4720
+ id: string;
4721
+ } | {
4722
+ kind: "document";
4723
+ }) & {
4724
+ text?: string | undefined;
4725
+ })) | ({
4726
+ __TYPE__: "ExternalLink";
4727
+ } & ((({
4728
+ url: string;
4729
+ } & {
4730
+ kind?: "web" | undefined;
4731
+ target?: string | null | undefined;
4732
+ preview?: {
4733
+ title?: string | undefined;
4734
+ } | null | undefined;
4735
+ }) | {
4736
+ kind: "web";
4737
+ }) & {
4738
+ text?: string | undefined;
4739
+ })) | ({
4740
+ __TYPE__: "MediaLink";
4741
+ } & {
4742
+ kind: "media";
4743
+ } & {
4744
+ text?: string | undefined;
4745
+ }) | ({
4746
+ __TYPE__: "AnyLink";
4747
+ } & {
4748
+ kind: "any";
4749
+ } & {
4750
+ text?: string | undefined;
4751
+ });
4752
+ })[];
3650
4753
  };
3651
4754
  };
3652
4755
  items: {
@@ -3763,12 +4866,14 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3763
4866
  }) | {
3764
4867
  __TYPE__: "IntegrationFieldsContent";
3765
4868
  value: string;
3766
- } | {
4869
+ } | ({
4870
+ key: string;
4871
+ } & {
3767
4872
  __TYPE__: "LinkContent";
3768
4873
  value: ({
3769
4874
  __TYPE__: "ImageLink";
3770
- } & (({
3771
- kind: string;
4875
+ } & ((({
4876
+ kind: "image";
3772
4877
  id: string;
3773
4878
  url: string;
3774
4879
  height: string;
@@ -3777,38 +4882,35 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3777
4882
  name: string;
3778
4883
  } & {
3779
4884
  date?: string | null | undefined;
3780
- } & {
3781
- text?: string | undefined;
3782
4885
  }) | {
3783
4886
  kind: "image";
3784
- text: string;
4887
+ }) & {
4888
+ text?: string | undefined;
3785
4889
  })) | ({
3786
4890
  __TYPE__: "FileLink";
3787
- } & (({
3788
- kind: string;
4891
+ } & ((({
4892
+ kind: "file";
3789
4893
  id: string;
3790
4894
  url: string;
3791
4895
  name: string;
3792
4896
  size: string;
3793
4897
  } & {
3794
4898
  date?: string | null | undefined;
3795
- } & {
3796
- text?: string | undefined;
3797
4899
  }) | {
3798
4900
  kind: "file";
3799
- text: string;
4901
+ }) & {
4902
+ text?: string | undefined;
3800
4903
  })) | ({
3801
4904
  __TYPE__: "DocumentLink";
3802
4905
  } & (({
3803
4906
  id: string;
3804
- } & {
3805
- text?: string | undefined;
3806
- }) | {
4907
+ } | {
3807
4908
  kind: "document";
3808
- text: string;
4909
+ }) & {
4910
+ text?: string | undefined;
3809
4911
  })) | ({
3810
4912
  __TYPE__: "ExternalLink";
3811
- } & (({
4913
+ } & ((({
3812
4914
  url: string;
3813
4915
  } & {
3814
4916
  kind?: "web" | undefined;
@@ -3816,22 +4918,24 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3816
4918
  preview?: {
3817
4919
  title?: string | undefined;
3818
4920
  } | null | undefined;
3819
- } & {
3820
- text?: string | undefined;
3821
4921
  }) | {
3822
4922
  kind: "web";
3823
- text: string;
4923
+ }) & {
4924
+ text?: string | undefined;
3824
4925
  })) | ({
3825
4926
  __TYPE__: "MediaLink";
3826
4927
  } & {
3827
4928
  kind: "media";
3828
- text: string;
4929
+ } & {
4930
+ text?: string | undefined;
3829
4931
  }) | ({
3830
4932
  __TYPE__: "AnyLink";
3831
4933
  } & {
3832
- text: string;
4934
+ kind: "any";
4935
+ } & {
4936
+ text?: string | undefined;
3833
4937
  });
3834
- } | {
4938
+ }) | {
3835
4939
  __TYPE__: "StructuredTextContent";
3836
4940
  value: (({
3837
4941
  type: "image";
@@ -3861,7 +4965,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3861
4965
  linkTo?: ({
3862
4966
  __TYPE__: "ImageLink";
3863
4967
  } & {
3864
- kind: string;
4968
+ kind: "image";
3865
4969
  id: string;
3866
4970
  url: string;
3867
4971
  height: string;
@@ -3873,7 +4977,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3873
4977
  }) | ({
3874
4978
  __TYPE__: "FileLink";
3875
4979
  } & {
3876
- kind: string;
4980
+ kind: "file";
3877
4981
  id: string;
3878
4982
  url: string;
3879
4983
  name: string;
@@ -3932,7 +5036,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3932
5036
  data: ({
3933
5037
  __TYPE__: "ImageLink";
3934
5038
  } & {
3935
- kind: string;
5039
+ kind: "image";
3936
5040
  id: string;
3937
5041
  url: string;
3938
5042
  height: string;
@@ -3944,7 +5048,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3944
5048
  }) | ({
3945
5049
  __TYPE__: "FileLink";
3946
5050
  } & {
3947
- kind: string;
5051
+ kind: "file";
3948
5052
  id: string;
3949
5053
  url: string;
3950
5054
  name: string;
@@ -3986,6 +5090,79 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3986
5090
  }))[];
3987
5091
  } | {
3988
5092
  __TYPE__: "SeparatorContent";
5093
+ } | {
5094
+ __TYPE__: "RepeatableContent";
5095
+ type: "Link";
5096
+ value: ({
5097
+ key: string;
5098
+ } & {
5099
+ __TYPE__: "LinkContent";
5100
+ value: ({
5101
+ __TYPE__: "ImageLink";
5102
+ } & ((({
5103
+ kind: "image";
5104
+ id: string;
5105
+ url: string;
5106
+ height: string;
5107
+ width: string;
5108
+ size: string;
5109
+ name: string;
5110
+ } & {
5111
+ date?: string | null | undefined;
5112
+ }) | {
5113
+ kind: "image";
5114
+ }) & {
5115
+ text?: string | undefined;
5116
+ })) | ({
5117
+ __TYPE__: "FileLink";
5118
+ } & ((({
5119
+ kind: "file";
5120
+ id: string;
5121
+ url: string;
5122
+ name: string;
5123
+ size: string;
5124
+ } & {
5125
+ date?: string | null | undefined;
5126
+ }) | {
5127
+ kind: "file";
5128
+ }) & {
5129
+ text?: string | undefined;
5130
+ })) | ({
5131
+ __TYPE__: "DocumentLink";
5132
+ } & (({
5133
+ id: string;
5134
+ } | {
5135
+ kind: "document";
5136
+ }) & {
5137
+ text?: string | undefined;
5138
+ })) | ({
5139
+ __TYPE__: "ExternalLink";
5140
+ } & ((({
5141
+ url: string;
5142
+ } & {
5143
+ kind?: "web" | undefined;
5144
+ target?: string | null | undefined;
5145
+ preview?: {
5146
+ title?: string | undefined;
5147
+ } | null | undefined;
5148
+ }) | {
5149
+ kind: "web";
5150
+ }) & {
5151
+ text?: string | undefined;
5152
+ })) | ({
5153
+ __TYPE__: "MediaLink";
5154
+ } & {
5155
+ kind: "media";
5156
+ } & {
5157
+ text?: string | undefined;
5158
+ }) | ({
5159
+ __TYPE__: "AnyLink";
5160
+ } & {
5161
+ kind: "any";
5162
+ } & {
5163
+ text?: string | undefined;
5164
+ });
5165
+ })[];
3989
5166
  }][];
3990
5167
  }[];
3991
5168
  } | {
@@ -4100,12 +5277,14 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4100
5277
  }) | {
4101
5278
  __TYPE__: "IntegrationFieldsContent";
4102
5279
  value: string;
4103
- } | {
5280
+ } | ({
5281
+ key: string;
5282
+ } & {
4104
5283
  __TYPE__: "LinkContent";
4105
5284
  value: ({
4106
5285
  __TYPE__: "ImageLink";
4107
- } & (({
4108
- kind: string;
5286
+ } & ((({
5287
+ kind: "image";
4109
5288
  id: string;
4110
5289
  url: string;
4111
5290
  height: string;
@@ -4114,38 +5293,35 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4114
5293
  name: string;
4115
5294
  } & {
4116
5295
  date?: string | null | undefined;
4117
- } & {
4118
- text?: string | undefined;
4119
5296
  }) | {
4120
5297
  kind: "image";
4121
- text: string;
5298
+ }) & {
5299
+ text?: string | undefined;
4122
5300
  })) | ({
4123
5301
  __TYPE__: "FileLink";
4124
- } & (({
4125
- kind: string;
5302
+ } & ((({
5303
+ kind: "file";
4126
5304
  id: string;
4127
5305
  url: string;
4128
5306
  name: string;
4129
5307
  size: string;
4130
5308
  } & {
4131
5309
  date?: string | null | undefined;
4132
- } & {
4133
- text?: string | undefined;
4134
5310
  }) | {
4135
5311
  kind: "file";
4136
- text: string;
5312
+ }) & {
5313
+ text?: string | undefined;
4137
5314
  })) | ({
4138
5315
  __TYPE__: "DocumentLink";
4139
5316
  } & (({
4140
5317
  id: string;
4141
- } & {
4142
- text?: string | undefined;
4143
- }) | {
5318
+ } | {
4144
5319
  kind: "document";
4145
- text: string;
5320
+ }) & {
5321
+ text?: string | undefined;
4146
5322
  })) | ({
4147
5323
  __TYPE__: "ExternalLink";
4148
- } & (({
5324
+ } & ((({
4149
5325
  url: string;
4150
5326
  } & {
4151
5327
  kind?: "web" | undefined;
@@ -4153,22 +5329,24 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4153
5329
  preview?: {
4154
5330
  title?: string | undefined;
4155
5331
  } | null | undefined;
4156
- } & {
4157
- text?: string | undefined;
4158
5332
  }) | {
4159
5333
  kind: "web";
4160
- text: string;
5334
+ }) & {
5335
+ text?: string | undefined;
4161
5336
  })) | ({
4162
5337
  __TYPE__: "MediaLink";
4163
5338
  } & {
4164
5339
  kind: "media";
4165
- text: string;
5340
+ } & {
5341
+ text?: string | undefined;
4166
5342
  }) | ({
4167
5343
  __TYPE__: "AnyLink";
4168
5344
  } & {
4169
- text: string;
5345
+ kind: "any";
5346
+ } & {
5347
+ text?: string | undefined;
4170
5348
  });
4171
- } | {
5349
+ }) | {
4172
5350
  __TYPE__: "StructuredTextContent";
4173
5351
  value: (({
4174
5352
  type: "image";
@@ -4198,7 +5376,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4198
5376
  linkTo?: ({
4199
5377
  __TYPE__: "ImageLink";
4200
5378
  } & {
4201
- kind: string;
5379
+ kind: "image";
4202
5380
  id: string;
4203
5381
  url: string;
4204
5382
  height: string;
@@ -4210,7 +5388,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4210
5388
  }) | ({
4211
5389
  __TYPE__: "FileLink";
4212
5390
  } & {
4213
- kind: string;
5391
+ kind: "file";
4214
5392
  id: string;
4215
5393
  url: string;
4216
5394
  name: string;
@@ -4269,7 +5447,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4269
5447
  data: ({
4270
5448
  __TYPE__: "ImageLink";
4271
5449
  } & {
4272
- kind: string;
5450
+ kind: "image";
4273
5451
  id: string;
4274
5452
  url: string;
4275
5453
  height: string;
@@ -4281,7 +5459,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4281
5459
  }) | ({
4282
5460
  __TYPE__: "FileLink";
4283
5461
  } & {
4284
- kind: string;
5462
+ kind: "file";
4285
5463
  id: string;
4286
5464
  url: string;
4287
5465
  name: string;
@@ -4323,6 +5501,79 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4323
5501
  }))[];
4324
5502
  } | {
4325
5503
  __TYPE__: "SeparatorContent";
5504
+ } | {
5505
+ __TYPE__: "RepeatableContent";
5506
+ type: "Link";
5507
+ value: ({
5508
+ key: string;
5509
+ } & {
5510
+ __TYPE__: "LinkContent";
5511
+ value: ({
5512
+ __TYPE__: "ImageLink";
5513
+ } & ((({
5514
+ kind: "image";
5515
+ id: string;
5516
+ url: string;
5517
+ height: string;
5518
+ width: string;
5519
+ size: string;
5520
+ name: string;
5521
+ } & {
5522
+ date?: string | null | undefined;
5523
+ }) | {
5524
+ kind: "image";
5525
+ }) & {
5526
+ text?: string | undefined;
5527
+ })) | ({
5528
+ __TYPE__: "FileLink";
5529
+ } & ((({
5530
+ kind: "file";
5531
+ id: string;
5532
+ url: string;
5533
+ name: string;
5534
+ size: string;
5535
+ } & {
5536
+ date?: string | null | undefined;
5537
+ }) | {
5538
+ kind: "file";
5539
+ }) & {
5540
+ text?: string | undefined;
5541
+ })) | ({
5542
+ __TYPE__: "DocumentLink";
5543
+ } & (({
5544
+ id: string;
5545
+ } | {
5546
+ kind: "document";
5547
+ }) & {
5548
+ text?: string | undefined;
5549
+ })) | ({
5550
+ __TYPE__: "ExternalLink";
5551
+ } & ((({
5552
+ url: string;
5553
+ } & {
5554
+ kind?: "web" | undefined;
5555
+ target?: string | null | undefined;
5556
+ preview?: {
5557
+ title?: string | undefined;
5558
+ } | null | undefined;
5559
+ }) | {
5560
+ kind: "web";
5561
+ }) & {
5562
+ text?: string | undefined;
5563
+ })) | ({
5564
+ __TYPE__: "MediaLink";
5565
+ } & {
5566
+ kind: "media";
5567
+ } & {
5568
+ text?: string | undefined;
5569
+ }) | ({
5570
+ __TYPE__: "AnyLink";
5571
+ } & {
5572
+ kind: "any";
5573
+ } & {
5574
+ text?: string | undefined;
5575
+ });
5576
+ })[];
4326
5577
  };
4327
5578
  }, unknown>;
4328
5579
  export declare const documentKeys: {