@prismicio/types-internal 2.7.0-alpha.2 → 2.7.0-alpha.4

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 (36) hide show
  1. package/lib/content/Document.d.ts +1783 -859
  2. package/lib/content/fields/WidgetContent.d.ts +1782 -858
  3. package/lib/content/fields/nestable/LinkContent.d.ts +207 -90
  4. package/lib/content/fields/nestable/LinkContent.js +93 -48
  5. package/lib/content/fields/nestable/NestableContent.d.ts +297 -143
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +546 -249
  7. package/lib/content/fields/nestable/RichTextContent/index.d.ts +270 -130
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +594 -286
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +135 -65
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +594 -286
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +297 -143
  12. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +297 -143
  13. package/lib/content/fields/slices/Slice/index.d.ts +1080 -520
  14. package/lib/content/fields/slices/SliceItem.d.ts +1080 -520
  15. package/lib/content/fields/slices/SlicesContent.d.ts +1485 -715
  16. package/lib/customtypes/CustomType.d.ts +180 -342
  17. package/lib/customtypes/Section.d.ts +180 -342
  18. package/lib/customtypes/diff/SharedSlice.d.ts +80 -152
  19. package/lib/customtypes/diff/Variation.d.ts +80 -152
  20. package/lib/customtypes/widgets/Group.d.ts +6 -60
  21. package/lib/customtypes/widgets/Widget.d.ts +129 -318
  22. package/lib/customtypes/widgets/nestable/Link.d.ts +2 -20
  23. package/lib/customtypes/widgets/nestable/Link.js +1 -2
  24. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -10
  25. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -20
  26. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -20
  27. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -80
  28. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +33 -87
  29. package/lib/customtypes/widgets/slices/Slices.d.ts +172 -424
  30. package/package.json +1 -1
  31. package/src/content/fields/nestable/LinkContent.ts +118 -58
  32. package/src/customtypes/widgets/nestable/Link.ts +1 -2
  33. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
  34. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
  35. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
  36. package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
@@ -2,40 +2,47 @@ import * as t from "io-ts";
2
2
  export declare const Span: t.UnionC<[t.ExactC<t.TypeC<{
3
3
  data: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
4
4
  __TYPE__: t.LiteralC<"ImageLink">;
5
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
5
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
6
+ kind: t.LiteralC<"image">;
7
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
6
8
  id: t.StringC;
7
9
  url: t.StringC;
8
10
  height: t.StringC;
9
11
  width: t.StringC;
10
12
  size: t.StringC;
11
13
  name: t.StringC;
12
- kind: t.StringC;
13
14
  }>, t.PartialC<{
14
15
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
15
16
  text: t.StringC;
16
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
17
+ }>]>>, t.ExactC<t.TypeC<{
18
+ text: t.StringC;
19
+ }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
20
+ __TYPE__: t.LiteralC<"FileLink">;
21
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
22
+ kind: t.LiteralC<"file">;
23
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
17
24
  id: t.StringC;
18
25
  url: t.StringC;
19
26
  name: t.StringC;
20
- kind: t.StringC;
21
27
  size: t.StringC;
22
28
  }>, t.PartialC<{
23
29
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
24
30
  text: t.StringC;
25
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
26
- __TYPE__: t.LiteralC<"FileLink">;
27
- }>, t.PartialC<{
28
- size: t.StringC;
31
+ }>]>>, t.ExactC<t.TypeC<{
29
32
  text: t.StringC;
30
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
33
+ }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
31
34
  __TYPE__: t.LiteralC<"DocumentLink">;
32
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
35
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
33
36
  id: t.Type<string, string, unknown>;
34
37
  }>, t.PartialC<{
38
+ kind: t.LiteralC<"document">;
35
39
  text: t.StringC;
36
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
40
+ }>]>>, t.ExactC<t.TypeC<{
41
+ kind: t.LiteralC<"document">;
42
+ text: t.StringC;
43
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
37
44
  __TYPE__: t.LiteralC<"ExternalLink">;
38
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
45
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
39
46
  url: t.StringC;
40
47
  }>, t.PartialC<{
41
48
  kind: t.LiteralC<"web">;
@@ -46,66 +53,90 @@ export declare const Span: t.UnionC<[t.ExactC<t.TypeC<{
46
53
  title?: string;
47
54
  }, unknown>, t.NullC, t.UndefinedC]>;
48
55
  text: t.StringC;
49
- }>]>>]>]> | t.UnionC<[t.Type<{
56
+ }>]>>, t.ExactC<t.TypeC<{
57
+ kind: t.LiteralC<"web">;
58
+ text: t.StringC;
59
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
60
+ __TYPE__: t.LiteralC<"AnyLink">;
61
+ }>>, t.ExactC<t.TypeC<{
62
+ text: t.StringC;
63
+ }>>]>]> | t.UnionC<[t.Type<{
50
64
  __TYPE__: "ImageLink";
51
- } & {
65
+ } & ({
66
+ kind: "image";
67
+ } & (({
52
68
  id: string;
53
69
  url: string;
54
70
  height: string;
55
71
  width: string;
56
72
  size: string;
57
73
  name: string;
58
- kind: string;
59
74
  } & {
60
75
  date?: string | null | undefined;
61
76
  text?: string;
62
- }, {
77
+ }) | {
78
+ text: string;
79
+ })), {
80
+ kind: "image";
81
+ } & (({
63
82
  id: string;
64
83
  url: string;
65
84
  height: string;
66
85
  width: string;
67
86
  size: string;
68
87
  name: string;
69
- kind: string;
70
88
  } & {
71
89
  date?: string | null | undefined;
72
90
  text?: string;
73
- }, unknown>, t.Type<{
91
+ }) | {
92
+ text: string;
93
+ }), unknown>, t.Type<{
94
+ __TYPE__: "FileLink";
95
+ } & ({
96
+ kind: "file";
97
+ } & (({
74
98
  id: string;
75
99
  url: string;
76
100
  name: string;
77
- kind: string;
78
101
  size: string;
79
102
  } & {
80
103
  date?: string | null | undefined;
81
104
  text?: string;
82
- } & {
83
- __TYPE__: "FileLink";
84
- } & {
85
- size?: string;
86
- text?: string;
87
- }, {
105
+ }) | {
106
+ text: string;
107
+ })), {
108
+ kind: "file";
109
+ } & (({
88
110
  id: string;
89
111
  url: string;
90
112
  name: string;
91
- kind: string;
92
113
  size: string;
93
114
  } & {
94
115
  date?: string | null | undefined;
95
116
  text?: string;
96
- }, unknown>, t.Type<{
117
+ }) | {
118
+ text: string;
119
+ }), unknown>, t.Type<{
97
120
  __TYPE__: "DocumentLink";
98
- } & {
121
+ } & (({
99
122
  id: string;
100
123
  } & {
124
+ kind?: "document";
101
125
  text?: string;
102
- }, {
126
+ }) | {
127
+ kind: "document";
128
+ text: string;
129
+ }), ({
103
130
  id: string;
104
131
  } & {
132
+ kind?: "document";
105
133
  text?: string;
134
+ }) | {
135
+ kind: "document";
136
+ text: string;
106
137
  }, unknown>, t.Type<{
107
138
  __TYPE__: "ExternalLink";
108
- } & {
139
+ } & (({
109
140
  url: string;
110
141
  } & {
111
142
  kind?: "web";
@@ -114,7 +145,10 @@ export declare const Span: t.UnionC<[t.ExactC<t.TypeC<{
114
145
  title?: string;
115
146
  } | null | undefined;
116
147
  text?: string;
117
- }, {
148
+ }) | {
149
+ kind: "web";
150
+ text: string;
151
+ }), ({
118
152
  url: string;
119
153
  } & {
120
154
  kind?: "web";
@@ -123,6 +157,15 @@ export declare const Span: t.UnionC<[t.ExactC<t.TypeC<{
123
157
  title?: string;
124
158
  } | null | undefined;
125
159
  text?: string;
160
+ }) | {
161
+ kind: "web";
162
+ text: string;
163
+ }, unknown>, t.Type<{
164
+ __TYPE__: "AnyLink";
165
+ } & {
166
+ text: string;
167
+ }, {
168
+ text: string;
126
169
  }, unknown>]>;
127
170
  start: t.NumberC;
128
171
  end: t.NumberC;
@@ -145,40 +188,47 @@ export declare type Span = t.TypeOf<typeof Span>;
145
188
  export declare const SpanLegacy: t.UnionC<[t.ExactC<t.TypeC<{
146
189
  data: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
147
190
  __TYPE__: t.LiteralC<"ImageLink">;
148
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
191
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
192
+ kind: t.LiteralC<"image">;
193
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
149
194
  id: t.StringC;
150
195
  url: t.StringC;
151
196
  height: t.StringC;
152
197
  width: t.StringC;
153
198
  size: t.StringC;
154
199
  name: t.StringC;
155
- kind: t.StringC;
156
200
  }>, t.PartialC<{
157
201
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
158
202
  text: t.StringC;
159
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
203
+ }>]>>, t.ExactC<t.TypeC<{
204
+ text: t.StringC;
205
+ }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
206
+ __TYPE__: t.LiteralC<"FileLink">;
207
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
208
+ kind: t.LiteralC<"file">;
209
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
160
210
  id: t.StringC;
161
211
  url: t.StringC;
162
212
  name: t.StringC;
163
- kind: t.StringC;
164
213
  size: t.StringC;
165
214
  }>, t.PartialC<{
166
215
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
167
216
  text: t.StringC;
168
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
169
- __TYPE__: t.LiteralC<"FileLink">;
170
- }>, t.PartialC<{
171
- size: t.StringC;
217
+ }>]>>, t.ExactC<t.TypeC<{
172
218
  text: t.StringC;
173
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
219
+ }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
174
220
  __TYPE__: t.LiteralC<"DocumentLink">;
175
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
221
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
176
222
  id: t.Type<string, string, unknown>;
177
223
  }>, t.PartialC<{
224
+ kind: t.LiteralC<"document">;
178
225
  text: t.StringC;
179
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
226
+ }>]>>, t.ExactC<t.TypeC<{
227
+ kind: t.LiteralC<"document">;
228
+ text: t.StringC;
229
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
180
230
  __TYPE__: t.LiteralC<"ExternalLink">;
181
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
231
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
182
232
  url: t.StringC;
183
233
  }>, t.PartialC<{
184
234
  kind: t.LiteralC<"web">;
@@ -189,66 +239,90 @@ export declare const SpanLegacy: t.UnionC<[t.ExactC<t.TypeC<{
189
239
  title?: string;
190
240
  }, unknown>, t.NullC, t.UndefinedC]>;
191
241
  text: t.StringC;
192
- }>]>>]>]> | t.UnionC<[t.Type<{
242
+ }>]>>, t.ExactC<t.TypeC<{
243
+ kind: t.LiteralC<"web">;
244
+ text: t.StringC;
245
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
246
+ __TYPE__: t.LiteralC<"AnyLink">;
247
+ }>>, t.ExactC<t.TypeC<{
248
+ text: t.StringC;
249
+ }>>]>]> | t.UnionC<[t.Type<{
193
250
  __TYPE__: "ImageLink";
194
- } & {
251
+ } & ({
252
+ kind: "image";
253
+ } & (({
195
254
  id: string;
196
255
  url: string;
197
256
  height: string;
198
257
  width: string;
199
258
  size: string;
200
259
  name: string;
201
- kind: string;
202
260
  } & {
203
261
  date?: string | null | undefined;
204
262
  text?: string;
205
- }, {
263
+ }) | {
264
+ text: string;
265
+ })), {
266
+ kind: "image";
267
+ } & (({
206
268
  id: string;
207
269
  url: string;
208
270
  height: string;
209
271
  width: string;
210
272
  size: string;
211
273
  name: string;
212
- kind: string;
213
274
  } & {
214
275
  date?: string | null | undefined;
215
276
  text?: string;
216
- }, unknown>, t.Type<{
277
+ }) | {
278
+ text: string;
279
+ }), unknown>, t.Type<{
280
+ __TYPE__: "FileLink";
281
+ } & ({
282
+ kind: "file";
283
+ } & (({
217
284
  id: string;
218
285
  url: string;
219
286
  name: string;
220
- kind: string;
221
287
  size: string;
222
288
  } & {
223
289
  date?: string | null | undefined;
224
290
  text?: string;
225
- } & {
226
- __TYPE__: "FileLink";
227
- } & {
228
- size?: string;
229
- text?: string;
230
- }, {
291
+ }) | {
292
+ text: string;
293
+ })), {
294
+ kind: "file";
295
+ } & (({
231
296
  id: string;
232
297
  url: string;
233
298
  name: string;
234
- kind: string;
235
299
  size: string;
236
300
  } & {
237
301
  date?: string | null | undefined;
238
302
  text?: string;
239
- }, unknown>, t.Type<{
303
+ }) | {
304
+ text: string;
305
+ }), unknown>, t.Type<{
240
306
  __TYPE__: "DocumentLink";
241
- } & {
307
+ } & (({
242
308
  id: string;
243
309
  } & {
310
+ kind?: "document";
244
311
  text?: string;
245
- }, {
312
+ }) | {
313
+ kind: "document";
314
+ text: string;
315
+ }), ({
246
316
  id: string;
247
317
  } & {
318
+ kind?: "document";
248
319
  text?: string;
320
+ }) | {
321
+ kind: "document";
322
+ text: string;
249
323
  }, unknown>, t.Type<{
250
324
  __TYPE__: "ExternalLink";
251
- } & {
325
+ } & (({
252
326
  url: string;
253
327
  } & {
254
328
  kind?: "web";
@@ -257,7 +331,10 @@ export declare const SpanLegacy: t.UnionC<[t.ExactC<t.TypeC<{
257
331
  title?: string;
258
332
  } | null | undefined;
259
333
  text?: string;
260
- }, {
334
+ }) | {
335
+ kind: "web";
336
+ text: string;
337
+ }), ({
261
338
  url: string;
262
339
  } & {
263
340
  kind?: "web";
@@ -266,6 +343,15 @@ export declare const SpanLegacy: t.UnionC<[t.ExactC<t.TypeC<{
266
343
  title?: string;
267
344
  } | null | undefined;
268
345
  text?: string;
346
+ }) | {
347
+ kind: "web";
348
+ text: string;
349
+ }, unknown>, t.Type<{
350
+ __TYPE__: "AnyLink";
351
+ } & {
352
+ text: string;
353
+ }, {
354
+ text: string;
269
355
  }, unknown>]>;
270
356
  start: t.NumberC;
271
357
  end: t.NumberC;
@@ -288,40 +374,47 @@ export declare type SpanLegacy = t.TypeOf<typeof SpanLegacy>;
288
374
  export declare const ValidatedSpans: <C extends t.UnionC<[t.ExactC<t.TypeC<{
289
375
  data: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
290
376
  __TYPE__: t.LiteralC<"ImageLink">;
291
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
377
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
378
+ kind: t.LiteralC<"image">;
379
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
292
380
  id: t.StringC;
293
381
  url: t.StringC;
294
382
  height: t.StringC;
295
383
  width: t.StringC;
296
384
  size: t.StringC;
297
385
  name: t.StringC;
298
- kind: t.StringC;
299
386
  }>, t.PartialC<{
300
387
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
301
388
  text: t.StringC;
302
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
389
+ }>]>>, t.ExactC<t.TypeC<{
390
+ text: t.StringC;
391
+ }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
392
+ __TYPE__: t.LiteralC<"FileLink">;
393
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
394
+ kind: t.LiteralC<"file">;
395
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
303
396
  id: t.StringC;
304
397
  url: t.StringC;
305
398
  name: t.StringC;
306
- kind: t.StringC;
307
399
  size: t.StringC;
308
400
  }>, t.PartialC<{
309
401
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
310
402
  text: t.StringC;
311
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
312
- __TYPE__: t.LiteralC<"FileLink">;
313
- }>, t.PartialC<{
314
- size: t.StringC;
403
+ }>]>>, t.ExactC<t.TypeC<{
315
404
  text: t.StringC;
316
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
405
+ }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
317
406
  __TYPE__: t.LiteralC<"DocumentLink">;
318
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
407
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
319
408
  id: t.Type<string, string, unknown>;
320
409
  }>, t.PartialC<{
410
+ kind: t.LiteralC<"document">;
411
+ text: t.StringC;
412
+ }>]>>, t.ExactC<t.TypeC<{
413
+ kind: t.LiteralC<"document">;
321
414
  text: t.StringC;
322
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
415
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
323
416
  __TYPE__: t.LiteralC<"ExternalLink">;
324
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
417
+ }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
325
418
  url: t.StringC;
326
419
  }>, t.PartialC<{
327
420
  kind: t.LiteralC<"web">;
@@ -332,66 +425,90 @@ export declare const ValidatedSpans: <C extends t.UnionC<[t.ExactC<t.TypeC<{
332
425
  title?: string;
333
426
  }, unknown>, t.NullC, t.UndefinedC]>;
334
427
  text: t.StringC;
335
- }>]>>]>]> | t.UnionC<[t.Type<{
428
+ }>]>>, t.ExactC<t.TypeC<{
429
+ kind: t.LiteralC<"web">;
430
+ text: t.StringC;
431
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
432
+ __TYPE__: t.LiteralC<"AnyLink">;
433
+ }>>, t.ExactC<t.TypeC<{
434
+ text: t.StringC;
435
+ }>>]>]> | t.UnionC<[t.Type<{
336
436
  __TYPE__: "ImageLink";
337
- } & {
437
+ } & ({
438
+ kind: "image";
439
+ } & (({
338
440
  id: string;
339
441
  url: string;
340
442
  height: string;
341
443
  width: string;
342
444
  size: string;
343
445
  name: string;
344
- kind: string;
345
446
  } & {
346
447
  date?: string | null | undefined;
347
448
  text?: string;
348
- }, {
449
+ }) | {
450
+ text: string;
451
+ })), {
452
+ kind: "image";
453
+ } & (({
349
454
  id: string;
350
455
  url: string;
351
456
  height: string;
352
457
  width: string;
353
458
  size: string;
354
459
  name: string;
355
- kind: string;
356
460
  } & {
357
461
  date?: string | null | undefined;
358
462
  text?: string;
359
- }, unknown>, t.Type<{
463
+ }) | {
464
+ text: string;
465
+ }), unknown>, t.Type<{
466
+ __TYPE__: "FileLink";
467
+ } & ({
468
+ kind: "file";
469
+ } & (({
360
470
  id: string;
361
471
  url: string;
362
472
  name: string;
363
- kind: string;
364
473
  size: string;
365
474
  } & {
366
475
  date?: string | null | undefined;
367
476
  text?: string;
368
- } & {
369
- __TYPE__: "FileLink";
370
- } & {
371
- size?: string;
372
- text?: string;
373
- }, {
477
+ }) | {
478
+ text: string;
479
+ })), {
480
+ kind: "file";
481
+ } & (({
374
482
  id: string;
375
483
  url: string;
376
484
  name: string;
377
- kind: string;
378
485
  size: string;
379
486
  } & {
380
487
  date?: string | null | undefined;
381
488
  text?: string;
382
- }, unknown>, t.Type<{
489
+ }) | {
490
+ text: string;
491
+ }), unknown>, t.Type<{
383
492
  __TYPE__: "DocumentLink";
384
- } & {
493
+ } & (({
385
494
  id: string;
386
495
  } & {
496
+ kind?: "document";
387
497
  text?: string;
388
- }, {
498
+ }) | {
499
+ kind: "document";
500
+ text: string;
501
+ }), ({
389
502
  id: string;
390
503
  } & {
504
+ kind?: "document";
391
505
  text?: string;
506
+ }) | {
507
+ kind: "document";
508
+ text: string;
392
509
  }, unknown>, t.Type<{
393
510
  __TYPE__: "ExternalLink";
394
- } & {
511
+ } & (({
395
512
  url: string;
396
513
  } & {
397
514
  kind?: "web";
@@ -400,7 +517,10 @@ export declare const ValidatedSpans: <C extends t.UnionC<[t.ExactC<t.TypeC<{
400
517
  title?: string;
401
518
  } | null | undefined;
402
519
  text?: string;
403
- }, {
520
+ }) | {
521
+ kind: "web";
522
+ text: string;
523
+ }), ({
404
524
  url: string;
405
525
  } & {
406
526
  kind?: "web";
@@ -409,6 +529,15 @@ export declare const ValidatedSpans: <C extends t.UnionC<[t.ExactC<t.TypeC<{
409
529
  title?: string;
410
530
  } | null | undefined;
411
531
  text?: string;
532
+ }) | {
533
+ kind: "web";
534
+ text: string;
535
+ }, unknown>, t.Type<{
536
+ __TYPE__: "AnyLink";
537
+ } & {
538
+ text: string;
539
+ }, {
540
+ text: string;
412
541
  }, unknown>]>;
413
542
  start: t.NumberC;
414
543
  end: t.NumberC;
@@ -454,40 +583,47 @@ export declare const ImageBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
454
583
  }>]>>, t.PartialC<{
455
584
  linkTo: t.UnionC<[t.Type<({
456
585
  __TYPE__: "ImageLink";
457
- } & {
586
+ } & ({
587
+ kind: "image";
588
+ } & (({
458
589
  id: string;
459
590
  url: string;
460
591
  height: string;
461
592
  width: string;
462
593
  size: string;
463
594
  name: string;
464
- kind: string;
465
595
  } & {
466
596
  date?: string | null | undefined;
467
597
  text?: string;
468
- }) | ({
598
+ }) | {
599
+ text: string;
600
+ }))) | ({
601
+ __TYPE__: "FileLink";
602
+ } & ({
603
+ kind: "file";
604
+ } & (({
469
605
  id: string;
470
606
  url: string;
471
607
  name: string;
472
- kind: string;
473
608
  size: string;
474
609
  } & {
475
610
  date?: string | null | undefined;
476
611
  text?: string;
477
- } & {
478
- __TYPE__: "FileLink";
479
- } & {
480
- size?: string;
481
- text?: string;
482
- }) | ({
612
+ }) | {
613
+ text: string;
614
+ }))) | ({
483
615
  __TYPE__: "DocumentLink";
484
- } & {
616
+ } & (({
485
617
  id: string;
486
618
  } & {
619
+ kind?: "document";
487
620
  text?: string;
488
- }) | ({
621
+ }) | {
622
+ kind: "document";
623
+ text: string;
624
+ })) | ({
489
625
  __TYPE__: "ExternalLink";
490
- } & {
626
+ } & (({
491
627
  url: string;
492
628
  } & {
493
629
  kind?: "web";
@@ -496,42 +632,56 @@ export declare const ImageBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
496
632
  title?: string;
497
633
  } | null | undefined;
498
634
  text?: string;
635
+ }) | {
636
+ kind: "web";
637
+ text: string;
638
+ })) | ({
639
+ __TYPE__: "AnyLink";
640
+ } & {
641
+ text: string;
499
642
  }), ({
500
643
  __TYPE__: "ImageLink";
501
- } & {
644
+ } & ({
645
+ kind: "image";
646
+ } & (({
502
647
  id: string;
503
648
  url: string;
504
649
  height: string;
505
650
  width: string;
506
651
  size: string;
507
652
  name: string;
508
- kind: string;
509
653
  } & {
510
654
  date?: string | null | undefined;
511
655
  text?: string;
512
- }) | ({
656
+ }) | {
657
+ text: string;
658
+ }))) | ({
659
+ __TYPE__: "FileLink";
660
+ } & ({
661
+ kind: "file";
662
+ } & (({
513
663
  id: string;
514
664
  url: string;
515
665
  name: string;
516
- kind: string;
517
666
  size: string;
518
667
  } & {
519
668
  date?: string | null | undefined;
520
669
  text?: string;
521
- } & {
522
- __TYPE__: "FileLink";
523
- } & {
524
- size?: string;
525
- text?: string;
526
- }) | ({
670
+ }) | {
671
+ text: string;
672
+ }))) | ({
527
673
  __TYPE__: "DocumentLink";
528
- } & {
674
+ } & (({
529
675
  id: string;
530
676
  } & {
677
+ kind?: "document";
531
678
  text?: string;
532
- }) | ({
679
+ }) | {
680
+ kind: "document";
681
+ text: string;
682
+ })) | ({
533
683
  __TYPE__: "ExternalLink";
534
- } & {
684
+ } & (({
535
685
  url: string;
536
686
  } & {
537
687
  kind?: "web";
@@ -540,6 +690,13 @@ export declare const ImageBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
540
690
  title?: string;
541
691
  } | null | undefined;
542
692
  text?: string;
693
+ }) | {
694
+ kind: "web";
695
+ text: string;
696
+ })) | ({
697
+ __TYPE__: "AnyLink";
698
+ } & {
699
+ text: string;
543
700
  }), unknown>, t.NullC, t.UndefinedC]>;
544
701
  }>]>;
545
702
  }>, t.PartialC<{
@@ -583,40 +740,47 @@ export declare const TextBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
583
740
  spans: t.Type<({
584
741
  data: ({
585
742
  __TYPE__: "ImageLink";
586
- } & {
743
+ } & ({
744
+ kind: "image";
745
+ } & (({
587
746
  id: string;
588
747
  url: string;
589
748
  height: string;
590
749
  width: string;
591
750
  size: string;
592
751
  name: string;
593
- kind: string;
594
752
  } & {
595
753
  date?: string | null | undefined;
596
754
  text?: string;
597
- }) | ({
755
+ }) | {
756
+ text: string;
757
+ }))) | ({
758
+ __TYPE__: "FileLink";
759
+ } & ({
760
+ kind: "file";
761
+ } & (({
598
762
  id: string;
599
763
  url: string;
600
764
  name: string;
601
- kind: string;
602
765
  size: string;
603
766
  } & {
604
767
  date?: string | null | undefined;
605
768
  text?: string;
606
- } & {
607
- __TYPE__: "FileLink";
608
- } & {
609
- size?: string;
610
- text?: string;
611
- }) | ({
769
+ }) | {
770
+ text: string;
771
+ }))) | ({
612
772
  __TYPE__: "DocumentLink";
613
- } & {
773
+ } & (({
614
774
  id: string;
615
775
  } & {
776
+ kind?: "document";
616
777
  text?: string;
617
- }) | ({
778
+ }) | {
779
+ kind: "document";
780
+ text: string;
781
+ })) | ({
618
782
  __TYPE__: "ExternalLink";
619
- } & {
783
+ } & (({
620
784
  url: string;
621
785
  } & {
622
786
  kind?: "web";
@@ -625,6 +789,13 @@ export declare const TextBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
625
789
  title?: string;
626
790
  } | null | undefined;
627
791
  text?: string;
792
+ }) | {
793
+ kind: "web";
794
+ text: string;
795
+ })) | ({
796
+ __TYPE__: "AnyLink";
797
+ } & {
798
+ text: string;
628
799
  });
629
800
  start: number;
630
801
  end: number;
@@ -641,40 +812,47 @@ export declare const TextBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
641
812
  })[], ({
642
813
  data: ({
643
814
  __TYPE__: "ImageLink";
644
- } & {
815
+ } & ({
816
+ kind: "image";
817
+ } & (({
645
818
  id: string;
646
819
  url: string;
647
820
  height: string;
648
821
  width: string;
649
822
  size: string;
650
823
  name: string;
651
- kind: string;
652
824
  } & {
653
825
  date?: string | null | undefined;
654
826
  text?: string;
655
- }) | ({
827
+ }) | {
828
+ text: string;
829
+ }))) | ({
830
+ __TYPE__: "FileLink";
831
+ } & ({
832
+ kind: "file";
833
+ } & (({
656
834
  id: string;
657
835
  url: string;
658
836
  name: string;
659
- kind: string;
660
837
  size: string;
661
838
  } & {
662
839
  date?: string | null | undefined;
663
840
  text?: string;
664
- } & {
665
- __TYPE__: "FileLink";
666
- } & {
667
- size?: string;
668
- text?: string;
669
- }) | ({
841
+ }) | {
842
+ text: string;
843
+ }))) | ({
670
844
  __TYPE__: "DocumentLink";
671
- } & {
845
+ } & (({
672
846
  id: string;
673
847
  } & {
848
+ kind?: "document";
674
849
  text?: string;
675
- }) | ({
850
+ }) | {
851
+ kind: "document";
852
+ text: string;
853
+ })) | ({
676
854
  __TYPE__: "ExternalLink";
677
- } & {
855
+ } & (({
678
856
  url: string;
679
857
  } & {
680
858
  kind?: "web";
@@ -683,6 +861,13 @@ export declare const TextBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
683
861
  title?: string;
684
862
  } | null | undefined;
685
863
  text?: string;
864
+ }) | {
865
+ kind: "web";
866
+ text: string;
867
+ })) | ({
868
+ __TYPE__: "AnyLink";
869
+ } & {
870
+ text: string;
686
871
  });
687
872
  start: number;
688
873
  end: number;
@@ -730,40 +915,47 @@ export declare const BlockLegacy: t.Type<({
730
915
  } & {
731
916
  linkTo?: ({
732
917
  __TYPE__: "ImageLink";
733
- } & {
918
+ } & ({
919
+ kind: "image";
920
+ } & (({
734
921
  id: string;
735
922
  url: string;
736
923
  height: string;
737
924
  width: string;
738
925
  size: string;
739
926
  name: string;
740
- kind: string;
741
927
  } & {
742
928
  date?: string | null | undefined;
743
929
  text?: string;
744
- }) | ({
930
+ }) | {
931
+ text: string;
932
+ }))) | ({
933
+ __TYPE__: "FileLink";
934
+ } & ({
935
+ kind: "file";
936
+ } & (({
745
937
  id: string;
746
938
  url: string;
747
939
  name: string;
748
- kind: string;
749
940
  size: string;
750
941
  } & {
751
942
  date?: string | null | undefined;
752
943
  text?: string;
753
- } & {
754
- __TYPE__: "FileLink";
755
- } & {
756
- size?: string;
757
- text?: string;
758
- }) | ({
944
+ }) | {
945
+ text: string;
946
+ }))) | ({
759
947
  __TYPE__: "DocumentLink";
760
- } & {
948
+ } & (({
761
949
  id: string;
762
950
  } & {
951
+ kind?: "document";
763
952
  text?: string;
764
- }) | ({
953
+ }) | {
954
+ kind: "document";
955
+ text: string;
956
+ })) | ({
765
957
  __TYPE__: "ExternalLink";
766
- } & {
958
+ } & (({
767
959
  url: string;
768
960
  } & {
769
961
  kind?: "web";
@@ -772,6 +964,13 @@ export declare const BlockLegacy: t.Type<({
772
964
  title?: string;
773
965
  } | null | undefined;
774
966
  text?: string;
967
+ }) | {
968
+ kind: "web";
969
+ text: string;
970
+ })) | ({
971
+ __TYPE__: "AnyLink";
972
+ } & {
973
+ text: string;
775
974
  }) | null | undefined;
776
975
  };
777
976
  } & {
@@ -809,40 +1008,47 @@ export declare const BlockLegacy: t.Type<({
809
1008
  spans?: ({
810
1009
  data: ({
811
1010
  __TYPE__: "ImageLink";
812
- } & {
1011
+ } & ({
1012
+ kind: "image";
1013
+ } & (({
813
1014
  id: string;
814
1015
  url: string;
815
1016
  height: string;
816
1017
  width: string;
817
1018
  size: string;
818
1019
  name: string;
819
- kind: string;
820
1020
  } & {
821
1021
  date?: string | null | undefined;
822
1022
  text?: string;
823
- }) | ({
1023
+ }) | {
1024
+ text: string;
1025
+ }))) | ({
1026
+ __TYPE__: "FileLink";
1027
+ } & ({
1028
+ kind: "file";
1029
+ } & (({
824
1030
  id: string;
825
1031
  url: string;
826
1032
  name: string;
827
- kind: string;
828
1033
  size: string;
829
1034
  } & {
830
1035
  date?: string | null | undefined;
831
1036
  text?: string;
832
- } & {
833
- __TYPE__: "FileLink";
834
- } & {
835
- size?: string;
836
- text?: string;
837
- }) | ({
1037
+ }) | {
1038
+ text: string;
1039
+ }))) | ({
838
1040
  __TYPE__: "DocumentLink";
839
- } & {
1041
+ } & (({
840
1042
  id: string;
841
1043
  } & {
1044
+ kind?: "document";
842
1045
  text?: string;
843
- }) | ({
1046
+ }) | {
1047
+ kind: "document";
1048
+ text: string;
1049
+ })) | ({
844
1050
  __TYPE__: "ExternalLink";
845
- } & {
1051
+ } & (({
846
1052
  url: string;
847
1053
  } & {
848
1054
  kind?: "web";
@@ -851,6 +1057,13 @@ export declare const BlockLegacy: t.Type<({
851
1057
  title?: string;
852
1058
  } | null | undefined;
853
1059
  text?: string;
1060
+ }) | {
1061
+ kind: "web";
1062
+ text: string;
1063
+ })) | ({
1064
+ __TYPE__: "AnyLink";
1065
+ } & {
1066
+ text: string;
854
1067
  });
855
1068
  start: number;
856
1069
  end: number;
@@ -896,40 +1109,47 @@ export declare const BlockLegacy: t.Type<({
896
1109
  } & {
897
1110
  linkTo?: ({
898
1111
  __TYPE__: "ImageLink";
899
- } & {
1112
+ } & ({
1113
+ kind: "image";
1114
+ } & (({
900
1115
  id: string;
901
1116
  url: string;
902
1117
  height: string;
903
1118
  width: string;
904
1119
  size: string;
905
1120
  name: string;
906
- kind: string;
907
1121
  } & {
908
1122
  date?: string | null | undefined;
909
1123
  text?: string;
910
- }) | ({
1124
+ }) | {
1125
+ text: string;
1126
+ }))) | ({
1127
+ __TYPE__: "FileLink";
1128
+ } & ({
1129
+ kind: "file";
1130
+ } & (({
911
1131
  id: string;
912
1132
  url: string;
913
1133
  name: string;
914
- kind: string;
915
1134
  size: string;
916
1135
  } & {
917
1136
  date?: string | null | undefined;
918
1137
  text?: string;
919
- } & {
920
- __TYPE__: "FileLink";
921
- } & {
922
- size?: string;
923
- text?: string;
924
- }) | ({
1138
+ }) | {
1139
+ text: string;
1140
+ }))) | ({
925
1141
  __TYPE__: "DocumentLink";
926
- } & {
1142
+ } & (({
927
1143
  id: string;
928
1144
  } & {
1145
+ kind?: "document";
929
1146
  text?: string;
930
- }) | ({
1147
+ }) | {
1148
+ kind: "document";
1149
+ text: string;
1150
+ })) | ({
931
1151
  __TYPE__: "ExternalLink";
932
- } & {
1152
+ } & (({
933
1153
  url: string;
934
1154
  } & {
935
1155
  kind?: "web";
@@ -938,6 +1158,13 @@ export declare const BlockLegacy: t.Type<({
938
1158
  title?: string;
939
1159
  } | null | undefined;
940
1160
  text?: string;
1161
+ }) | {
1162
+ kind: "web";
1163
+ text: string;
1164
+ })) | ({
1165
+ __TYPE__: "AnyLink";
1166
+ } & {
1167
+ text: string;
941
1168
  }) | null | undefined;
942
1169
  };
943
1170
  } & {
@@ -975,40 +1202,47 @@ export declare const BlockLegacy: t.Type<({
975
1202
  spans?: ({
976
1203
  data: ({
977
1204
  __TYPE__: "ImageLink";
978
- } & {
1205
+ } & ({
1206
+ kind: "image";
1207
+ } & (({
979
1208
  id: string;
980
1209
  url: string;
981
1210
  height: string;
982
1211
  width: string;
983
1212
  size: string;
984
1213
  name: string;
985
- kind: string;
986
1214
  } & {
987
1215
  date?: string | null | undefined;
988
1216
  text?: string;
989
- }) | ({
1217
+ }) | {
1218
+ text: string;
1219
+ }))) | ({
1220
+ __TYPE__: "FileLink";
1221
+ } & ({
1222
+ kind: "file";
1223
+ } & (({
990
1224
  id: string;
991
1225
  url: string;
992
1226
  name: string;
993
- kind: string;
994
1227
  size: string;
995
1228
  } & {
996
1229
  date?: string | null | undefined;
997
1230
  text?: string;
998
- } & {
999
- __TYPE__: "FileLink";
1000
- } & {
1001
- size?: string;
1002
- text?: string;
1003
- }) | ({
1231
+ }) | {
1232
+ text: string;
1233
+ }))) | ({
1004
1234
  __TYPE__: "DocumentLink";
1005
- } & {
1235
+ } & (({
1006
1236
  id: string;
1007
1237
  } & {
1238
+ kind?: "document";
1008
1239
  text?: string;
1009
- }) | ({
1240
+ }) | {
1241
+ kind: "document";
1242
+ text: string;
1243
+ })) | ({
1010
1244
  __TYPE__: "ExternalLink";
1011
- } & {
1245
+ } & (({
1012
1246
  url: string;
1013
1247
  } & {
1014
1248
  kind?: "web";
@@ -1017,6 +1251,13 @@ export declare const BlockLegacy: t.Type<({
1017
1251
  title?: string;
1018
1252
  } | null | undefined;
1019
1253
  text?: string;
1254
+ }) | {
1255
+ kind: "web";
1256
+ text: string;
1257
+ })) | ({
1258
+ __TYPE__: "AnyLink";
1259
+ } & {
1260
+ text: string;
1020
1261
  });
1021
1262
  start: number;
1022
1263
  end: number;
@@ -1063,40 +1304,47 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1063
1304
  }>]>>, t.PartialC<{
1064
1305
  linkTo: t.UnionC<[t.Type<({
1065
1306
  __TYPE__: "ImageLink";
1066
- } & {
1307
+ } & ({
1308
+ kind: "image";
1309
+ } & (({
1067
1310
  id: string;
1068
1311
  url: string;
1069
1312
  height: string;
1070
1313
  width: string;
1071
1314
  size: string;
1072
1315
  name: string;
1073
- kind: string;
1074
1316
  } & {
1075
1317
  date?: string | null | undefined;
1076
1318
  text?: string;
1077
- }) | ({
1319
+ }) | {
1320
+ text: string;
1321
+ }))) | ({
1322
+ __TYPE__: "FileLink";
1323
+ } & ({
1324
+ kind: "file";
1325
+ } & (({
1078
1326
  id: string;
1079
1327
  url: string;
1080
1328
  name: string;
1081
- kind: string;
1082
1329
  size: string;
1083
1330
  } & {
1084
1331
  date?: string | null | undefined;
1085
1332
  text?: string;
1086
- } & {
1087
- __TYPE__: "FileLink";
1088
- } & {
1089
- size?: string;
1090
- text?: string;
1091
- }) | ({
1333
+ }) | {
1334
+ text: string;
1335
+ }))) | ({
1092
1336
  __TYPE__: "DocumentLink";
1093
- } & {
1337
+ } & (({
1094
1338
  id: string;
1095
1339
  } & {
1340
+ kind?: "document";
1096
1341
  text?: string;
1097
- }) | ({
1342
+ }) | {
1343
+ kind: "document";
1344
+ text: string;
1345
+ })) | ({
1098
1346
  __TYPE__: "ExternalLink";
1099
- } & {
1347
+ } & (({
1100
1348
  url: string;
1101
1349
  } & {
1102
1350
  kind?: "web";
@@ -1105,42 +1353,56 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1105
1353
  title?: string;
1106
1354
  } | null | undefined;
1107
1355
  text?: string;
1356
+ }) | {
1357
+ kind: "web";
1358
+ text: string;
1359
+ })) | ({
1360
+ __TYPE__: "AnyLink";
1361
+ } & {
1362
+ text: string;
1108
1363
  }), ({
1109
1364
  __TYPE__: "ImageLink";
1110
- } & {
1365
+ } & ({
1366
+ kind: "image";
1367
+ } & (({
1111
1368
  id: string;
1112
1369
  url: string;
1113
1370
  height: string;
1114
1371
  width: string;
1115
1372
  size: string;
1116
1373
  name: string;
1117
- kind: string;
1118
1374
  } & {
1119
1375
  date?: string | null | undefined;
1120
1376
  text?: string;
1121
- }) | ({
1377
+ }) | {
1378
+ text: string;
1379
+ }))) | ({
1380
+ __TYPE__: "FileLink";
1381
+ } & ({
1382
+ kind: "file";
1383
+ } & (({
1122
1384
  id: string;
1123
1385
  url: string;
1124
1386
  name: string;
1125
- kind: string;
1126
1387
  size: string;
1127
1388
  } & {
1128
1389
  date?: string | null | undefined;
1129
1390
  text?: string;
1130
- } & {
1131
- __TYPE__: "FileLink";
1132
- } & {
1133
- size?: string;
1134
- text?: string;
1135
- }) | ({
1391
+ }) | {
1392
+ text: string;
1393
+ }))) | ({
1136
1394
  __TYPE__: "DocumentLink";
1137
- } & {
1395
+ } & (({
1138
1396
  id: string;
1139
1397
  } & {
1398
+ kind?: "document";
1140
1399
  text?: string;
1141
- }) | ({
1400
+ }) | {
1401
+ kind: "document";
1402
+ text: string;
1403
+ })) | ({
1142
1404
  __TYPE__: "ExternalLink";
1143
- } & {
1405
+ } & (({
1144
1406
  url: string;
1145
1407
  } & {
1146
1408
  kind?: "web";
@@ -1149,6 +1411,13 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1149
1411
  title?: string;
1150
1412
  } | null | undefined;
1151
1413
  text?: string;
1414
+ }) | {
1415
+ kind: "web";
1416
+ text: string;
1417
+ })) | ({
1418
+ __TYPE__: "AnyLink";
1419
+ } & {
1420
+ text: string;
1152
1421
  }), unknown>, t.NullC, t.UndefinedC]>;
1153
1422
  }>]>;
1154
1423
  }>, t.PartialC<{
@@ -1186,40 +1455,47 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1186
1455
  spans: t.Type<({
1187
1456
  data: ({
1188
1457
  __TYPE__: "ImageLink";
1189
- } & {
1458
+ } & ({
1459
+ kind: "image";
1460
+ } & (({
1190
1461
  id: string;
1191
1462
  url: string;
1192
1463
  height: string;
1193
1464
  width: string;
1194
1465
  size: string;
1195
1466
  name: string;
1196
- kind: string;
1197
1467
  } & {
1198
1468
  date?: string | null | undefined;
1199
1469
  text?: string;
1200
- }) | ({
1470
+ }) | {
1471
+ text: string;
1472
+ }))) | ({
1473
+ __TYPE__: "FileLink";
1474
+ } & ({
1475
+ kind: "file";
1476
+ } & (({
1201
1477
  id: string;
1202
1478
  url: string;
1203
1479
  name: string;
1204
- kind: string;
1205
1480
  size: string;
1206
1481
  } & {
1207
1482
  date?: string | null | undefined;
1208
1483
  text?: string;
1209
- } & {
1210
- __TYPE__: "FileLink";
1211
- } & {
1212
- size?: string;
1213
- text?: string;
1214
- }) | ({
1484
+ }) | {
1485
+ text: string;
1486
+ }))) | ({
1215
1487
  __TYPE__: "DocumentLink";
1216
- } & {
1488
+ } & (({
1217
1489
  id: string;
1218
1490
  } & {
1491
+ kind?: "document";
1219
1492
  text?: string;
1220
- }) | ({
1493
+ }) | {
1494
+ kind: "document";
1495
+ text: string;
1496
+ })) | ({
1221
1497
  __TYPE__: "ExternalLink";
1222
- } & {
1498
+ } & (({
1223
1499
  url: string;
1224
1500
  } & {
1225
1501
  kind?: "web";
@@ -1228,6 +1504,13 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1228
1504
  title?: string;
1229
1505
  } | null | undefined;
1230
1506
  text?: string;
1507
+ }) | {
1508
+ kind: "web";
1509
+ text: string;
1510
+ })) | ({
1511
+ __TYPE__: "AnyLink";
1512
+ } & {
1513
+ text: string;
1231
1514
  });
1232
1515
  start: number;
1233
1516
  end: number;
@@ -1244,40 +1527,47 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1244
1527
  })[], ({
1245
1528
  data: ({
1246
1529
  __TYPE__: "ImageLink";
1247
- } & {
1530
+ } & ({
1531
+ kind: "image";
1532
+ } & (({
1248
1533
  id: string;
1249
1534
  url: string;
1250
1535
  height: string;
1251
1536
  width: string;
1252
1537
  size: string;
1253
1538
  name: string;
1254
- kind: string;
1255
1539
  } & {
1256
1540
  date?: string | null | undefined;
1257
1541
  text?: string;
1258
- }) | ({
1542
+ }) | {
1543
+ text: string;
1544
+ }))) | ({
1545
+ __TYPE__: "FileLink";
1546
+ } & ({
1547
+ kind: "file";
1548
+ } & (({
1259
1549
  id: string;
1260
1550
  url: string;
1261
1551
  name: string;
1262
- kind: string;
1263
1552
  size: string;
1264
1553
  } & {
1265
1554
  date?: string | null | undefined;
1266
1555
  text?: string;
1267
- } & {
1268
- __TYPE__: "FileLink";
1269
- } & {
1270
- size?: string;
1271
- text?: string;
1272
- }) | ({
1556
+ }) | {
1557
+ text: string;
1558
+ }))) | ({
1273
1559
  __TYPE__: "DocumentLink";
1274
- } & {
1560
+ } & (({
1275
1561
  id: string;
1276
1562
  } & {
1563
+ kind?: "document";
1277
1564
  text?: string;
1278
- }) | ({
1565
+ }) | {
1566
+ kind: "document";
1567
+ text: string;
1568
+ })) | ({
1279
1569
  __TYPE__: "ExternalLink";
1280
- } & {
1570
+ } & (({
1281
1571
  url: string;
1282
1572
  } & {
1283
1573
  kind?: "web";
@@ -1286,6 +1576,13 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1286
1576
  title?: string;
1287
1577
  } | null | undefined;
1288
1578
  text?: string;
1579
+ }) | {
1580
+ kind: "web";
1581
+ text: string;
1582
+ })) | ({
1583
+ __TYPE__: "AnyLink";
1584
+ } & {
1585
+ text: string;
1289
1586
  });
1290
1587
  start: number;
1291
1588
  end: number;