@prismicio/types-internal 0.3.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/lib/customtypes/CustomType.d.ts +309 -311
  2. package/lib/customtypes/CustomType.js +6 -6
  3. package/lib/customtypes/Format.d.ts +4 -0
  4. package/lib/customtypes/Format.js +8 -0
  5. package/lib/customtypes/Section.d.ts +309 -309
  6. package/lib/customtypes/widgets/Group.d.ts +22 -23
  7. package/lib/customtypes/widgets/Group.js +2 -2
  8. package/lib/customtypes/widgets/UID.d.ts +1 -2
  9. package/lib/customtypes/widgets/UID.js +2 -2
  10. package/lib/customtypes/widgets/Widget.d.ts +353 -354
  11. package/lib/customtypes/widgets/Widget.js +3 -3
  12. package/lib/customtypes/widgets/WidgetTypes.d.ts +22 -22
  13. package/lib/customtypes/widgets/WidgetTypes.js +22 -23
  14. package/lib/customtypes/widgets/index.d.ts +1 -1
  15. package/lib/customtypes/widgets/index.js +1 -1
  16. package/lib/customtypes/widgets/nestable/BooleanField.d.ts +1 -2
  17. package/lib/customtypes/widgets/nestable/BooleanField.js +2 -2
  18. package/lib/customtypes/widgets/nestable/Color.d.ts +1 -2
  19. package/lib/customtypes/widgets/nestable/Color.js +2 -2
  20. package/lib/customtypes/widgets/nestable/Date.d.ts +1 -2
  21. package/lib/customtypes/widgets/nestable/Date.js +2 -2
  22. package/lib/customtypes/widgets/nestable/Embed.d.ts +1 -2
  23. package/lib/customtypes/widgets/nestable/Embed.js +2 -2
  24. package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +1 -2
  25. package/lib/customtypes/widgets/nestable/GeoPoint.js +2 -2
  26. package/lib/customtypes/widgets/nestable/Image.d.ts +2 -3
  27. package/lib/customtypes/widgets/nestable/Image.js +3 -3
  28. package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +1 -2
  29. package/lib/customtypes/widgets/nestable/IntegrationField.js +2 -2
  30. package/lib/customtypes/widgets/nestable/Link.d.ts +4 -5
  31. package/lib/customtypes/widgets/nestable/Link.js +3 -3
  32. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +21 -21
  33. package/lib/customtypes/widgets/nestable/Number.d.ts +1 -2
  34. package/lib/customtypes/widgets/nestable/Number.js +2 -2
  35. package/lib/customtypes/widgets/nestable/Range.d.ts +1 -2
  36. package/lib/customtypes/widgets/nestable/Range.js +2 -2
  37. package/lib/customtypes/widgets/nestable/RichText.d.ts +22 -22
  38. package/lib/customtypes/widgets/nestable/RichText.js +38 -39
  39. package/lib/customtypes/widgets/nestable/Select.d.ts +2 -3
  40. package/lib/customtypes/widgets/nestable/Select.js +3 -3
  41. package/lib/customtypes/widgets/nestable/Separator.d.ts +1 -2
  42. package/lib/customtypes/widgets/nestable/Separator.js +2 -2
  43. package/lib/customtypes/widgets/nestable/Text.d.ts +1 -2
  44. package/lib/customtypes/widgets/nestable/Text.js +2 -2
  45. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +1 -2
  46. package/lib/customtypes/widgets/nestable/Timestamp.js +2 -2
  47. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +43 -44
  48. package/lib/customtypes/widgets/slices/CompositeSlice.js +2 -2
  49. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +43 -43
  50. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +86 -87
  51. package/lib/customtypes/widgets/slices/SharedSlice.js +3 -3
  52. package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +1 -2
  53. package/lib/customtypes/widgets/slices/SharedSliceRef.js +2 -2
  54. package/lib/customtypes/widgets/slices/Slices.d.ts +529 -531
  55. package/lib/customtypes/widgets/slices/Slices.js +6 -6
  56. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +5 -5
  57. package/lib/customtypes/widgets/slices/SlicesTypes.js +5 -6
  58. package/lib/customtypes/widgets/slices/index.d.ts +1 -1
  59. package/lib/customtypes/widgets/slices/index.js +1 -1
  60. package/lib/documents/widgets/index.d.ts +1 -0
  61. package/lib/documents/widgets/nestable/Link/index.d.ts +1 -0
  62. package/lib/documents/widgets/nestable/StructuredTextContent/Block.d.ts +16 -17
  63. package/lib/documents/widgets/nestable/StructuredTextContent/Block.js +1 -1
  64. package/package.json +1 -1
  65. package/src/customtypes/CustomType.ts +2 -2
  66. package/src/customtypes/widgets/Group.ts +1 -1
  67. package/src/customtypes/widgets/UID.ts +1 -1
  68. package/src/customtypes/widgets/Widget.ts +1 -1
  69. package/src/customtypes/widgets/WidgetTypes.ts +22 -22
  70. package/src/customtypes/widgets/index.ts +1 -1
  71. package/src/customtypes/widgets/nestable/BooleanField.ts +1 -1
  72. package/src/customtypes/widgets/nestable/Color.ts +1 -1
  73. package/src/customtypes/widgets/nestable/Date.ts +1 -1
  74. package/src/customtypes/widgets/nestable/Embed.ts +1 -1
  75. package/src/customtypes/widgets/nestable/GeoPoint.ts +1 -1
  76. package/src/customtypes/widgets/nestable/Image.ts +2 -2
  77. package/src/customtypes/widgets/nestable/IntegrationField.ts +1 -1
  78. package/src/customtypes/widgets/nestable/Link.ts +4 -4
  79. package/src/customtypes/widgets/nestable/Number.ts +1 -1
  80. package/src/customtypes/widgets/nestable/Range.ts +1 -1
  81. package/src/customtypes/widgets/nestable/RichText.ts +37 -35
  82. package/src/customtypes/widgets/nestable/Select.ts +4 -2
  83. package/src/customtypes/widgets/nestable/Separator.ts +1 -1
  84. package/src/customtypes/widgets/nestable/Text.ts +1 -1
  85. package/src/customtypes/widgets/nestable/Timestamp.ts +1 -1
  86. package/src/customtypes/widgets/slices/CompositeSlice.ts +1 -1
  87. package/src/customtypes/widgets/slices/SharedSlice.ts +2 -2
  88. package/src/customtypes/widgets/slices/SharedSliceRef.ts +1 -1
  89. package/src/customtypes/widgets/slices/Slices.ts +3 -3
  90. package/src/customtypes/widgets/slices/SlicesTypes.ts +5 -5
  91. package/src/customtypes/widgets/slices/index.ts +1 -1
  92. package/src/documents/widgets/index.ts +1 -5
  93. package/src/documents/widgets/nestable/Link/index.ts +2 -0
  94. package/src/documents/widgets/nestable/StructuredTextContent/Block.ts +1 -1
@@ -1,9 +1,7 @@
1
1
  import { Either } from "fp-ts/lib/Either";
2
2
  import * as t from "io-ts";
3
3
  import type { SharedSlice } from "./widgets/slices/SharedSlice";
4
- import SlicesTypes from "./widgets/slices/SlicesTypes";
5
4
  import type { DynamicWidget } from "./widgets/Widget";
6
- import WidgetTypes from "./widgets/WidgetTypes";
7
5
  declare class CustomTypeSlicesError extends Error {
8
6
  slices: Array<string>;
9
7
  message: string;
@@ -16,7 +14,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
16
14
  repeatable: t.BooleanC;
17
15
  json: t.RecordC<t.StringC, t.Type<{
18
16
  [x: string]: ({
19
- type: WidgetTypes.BooleanField;
17
+ type: "Boolean";
20
18
  } & {
21
19
  config?: {
22
20
  label?: string | null | undefined;
@@ -25,7 +23,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
25
23
  placeholder_false?: string;
26
24
  };
27
25
  }) | ({
28
- type: WidgetTypes.Color;
26
+ type: "Color";
29
27
  } & {
30
28
  fieldset?: string | null | undefined;
31
29
  config?: {
@@ -33,7 +31,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
33
31
  placeholder?: string;
34
32
  };
35
33
  }) | ({
36
- type: WidgetTypes.Date;
34
+ type: "Date";
37
35
  } & {
38
36
  fieldset?: string | null | undefined;
39
37
  config?: {
@@ -42,7 +40,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
42
40
  default?: string;
43
41
  };
44
42
  }) | ({
45
- type: WidgetTypes.Embed;
43
+ type: "Embed";
46
44
  } & {
47
45
  fieldset?: string | null | undefined;
48
46
  config?: {
@@ -51,14 +49,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
51
49
  useAsTitle?: boolean;
52
50
  };
53
51
  }) | ({
54
- type: WidgetTypes.GeoPoint;
52
+ type: "GeoPoint";
55
53
  } & {
56
54
  fieldset?: string | null | undefined;
57
55
  config?: {
58
56
  label?: string | null | undefined;
59
57
  };
60
58
  }) | ({
61
- type: WidgetTypes.Image;
59
+ type: "Image";
62
60
  } & {
63
61
  fieldset?: string | null | undefined;
64
62
  config?: {
@@ -68,7 +66,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
68
66
  width?: number | null;
69
67
  height?: number | null;
70
68
  };
71
- thumbnails?: ({
69
+ thumbnails?: readonly ({
72
70
  name: string;
73
71
  } & {
74
72
  width?: number | null;
@@ -76,7 +74,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
76
74
  })[];
77
75
  };
78
76
  }) | ({
79
- type: WidgetTypes.IntegrationField;
77
+ type: "IntegrationFields";
80
78
  } & {
81
79
  fieldset?: string | null | undefined;
82
80
  config?: {
@@ -85,7 +83,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
85
83
  catalog?: string;
86
84
  };
87
85
  }) | ({
88
- type: WidgetTypes.Link;
86
+ type: "Link";
89
87
  } & {
90
88
  fieldset?: string | null | undefined;
91
89
  config?: {
@@ -93,13 +91,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
93
91
  useAsTitle?: boolean;
94
92
  placeholder?: string;
95
93
  select?: "media" | "document" | "web" | null;
96
- customtypes?: string[];
97
- masks?: string[];
98
- tags?: string[];
94
+ customtypes?: readonly string[];
95
+ masks?: readonly string[];
96
+ tags?: readonly string[];
99
97
  allowTargetBlank?: boolean;
100
98
  };
101
99
  }) | ({
102
- type: WidgetTypes.Number;
100
+ type: "Number";
103
101
  } & {
104
102
  fieldset?: string | null | undefined;
105
103
  config?: {
@@ -110,7 +108,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
110
108
  step?: number;
111
109
  };
112
110
  }) | ({
113
- type: WidgetTypes.Range;
111
+ type: "Range";
114
112
  } & {
115
113
  fieldset?: string | null | undefined;
116
114
  config?: {
@@ -121,7 +119,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
121
119
  step?: number;
122
120
  };
123
121
  }) | ({
124
- type: WidgetTypes.RichText;
122
+ type: "StructuredText";
125
123
  } & {
126
124
  fieldset?: string | null | undefined;
127
125
  config?: {
@@ -134,27 +132,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
134
132
  width?: number | null;
135
133
  height?: number | null;
136
134
  };
137
- labels?: string[];
135
+ labels?: readonly string[];
138
136
  allowTargetBlank?: boolean;
139
137
  };
140
138
  }) | ({
141
- type: WidgetTypes.Select;
139
+ type: "Select";
142
140
  } & {
143
141
  fieldset?: string | null | undefined;
144
142
  config?: {
145
143
  label?: string | null | undefined;
146
144
  placeholder?: string;
147
145
  default_value?: string;
148
- options?: string[];
146
+ options?: readonly string[];
149
147
  };
150
148
  }) | ({
151
- type: WidgetTypes.Separator;
149
+ type: "Separator";
152
150
  } & {
153
151
  config?: {
154
152
  label?: string | null | undefined;
155
153
  };
156
154
  }) | ({
157
- type: WidgetTypes.Text;
155
+ type: "Text";
158
156
  } & {
159
157
  fieldset?: string | null | undefined;
160
158
  config?: {
@@ -163,7 +161,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
163
161
  placeholder?: string;
164
162
  };
165
163
  }) | ({
166
- type: WidgetTypes.Timestamp;
164
+ type: "Timestamp";
167
165
  } & {
168
166
  fieldset?: string | null | undefined;
169
167
  config?: {
@@ -172,7 +170,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
172
170
  default?: string;
173
171
  };
174
172
  }) | ({
175
- type: WidgetTypes.Group;
173
+ type: "Group";
176
174
  } & {
177
175
  fieldset?: string | null | undefined;
178
176
  icon?: string;
@@ -182,7 +180,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
182
180
  repeat?: boolean;
183
181
  fields?: {
184
182
  [x: string]: ({
185
- type: WidgetTypes.BooleanField;
183
+ type: "Boolean";
186
184
  } & {
187
185
  config?: {
188
186
  label?: string | null | undefined;
@@ -191,7 +189,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
191
189
  placeholder_false?: string;
192
190
  };
193
191
  }) | ({
194
- type: WidgetTypes.Color;
192
+ type: "Color";
195
193
  } & {
196
194
  fieldset?: string | null | undefined;
197
195
  config?: {
@@ -199,7 +197,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
199
197
  placeholder?: string;
200
198
  };
201
199
  }) | ({
202
- type: WidgetTypes.Date;
200
+ type: "Date";
203
201
  } & {
204
202
  fieldset?: string | null | undefined;
205
203
  config?: {
@@ -208,7 +206,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
208
206
  default?: string;
209
207
  };
210
208
  }) | ({
211
- type: WidgetTypes.Embed;
209
+ type: "Embed";
212
210
  } & {
213
211
  fieldset?: string | null | undefined;
214
212
  config?: {
@@ -217,14 +215,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
217
215
  useAsTitle?: boolean;
218
216
  };
219
217
  }) | ({
220
- type: WidgetTypes.GeoPoint;
218
+ type: "GeoPoint";
221
219
  } & {
222
220
  fieldset?: string | null | undefined;
223
221
  config?: {
224
222
  label?: string | null | undefined;
225
223
  };
226
224
  }) | ({
227
- type: WidgetTypes.Image;
225
+ type: "Image";
228
226
  } & {
229
227
  fieldset?: string | null | undefined;
230
228
  config?: {
@@ -234,7 +232,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
234
232
  width?: number | null;
235
233
  height?: number | null;
236
234
  };
237
- thumbnails?: ({
235
+ thumbnails?: readonly ({
238
236
  name: string;
239
237
  } & {
240
238
  width?: number | null;
@@ -242,7 +240,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
242
240
  })[];
243
241
  };
244
242
  }) | ({
245
- type: WidgetTypes.IntegrationField;
243
+ type: "IntegrationFields";
246
244
  } & {
247
245
  fieldset?: string | null | undefined;
248
246
  config?: {
@@ -251,7 +249,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
251
249
  catalog?: string;
252
250
  };
253
251
  }) | ({
254
- type: WidgetTypes.Link;
252
+ type: "Link";
255
253
  } & {
256
254
  fieldset?: string | null | undefined;
257
255
  config?: {
@@ -259,13 +257,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
259
257
  useAsTitle?: boolean;
260
258
  placeholder?: string;
261
259
  select?: "media" | "document" | "web" | null;
262
- customtypes?: string[];
263
- masks?: string[];
264
- tags?: string[];
260
+ customtypes?: readonly string[];
261
+ masks?: readonly string[];
262
+ tags?: readonly string[];
265
263
  allowTargetBlank?: boolean;
266
264
  };
267
265
  }) | ({
268
- type: WidgetTypes.Number;
266
+ type: "Number";
269
267
  } & {
270
268
  fieldset?: string | null | undefined;
271
269
  config?: {
@@ -276,7 +274,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
276
274
  step?: number;
277
275
  };
278
276
  }) | ({
279
- type: WidgetTypes.Range;
277
+ type: "Range";
280
278
  } & {
281
279
  fieldset?: string | null | undefined;
282
280
  config?: {
@@ -287,7 +285,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
287
285
  step?: number;
288
286
  };
289
287
  }) | ({
290
- type: WidgetTypes.RichText;
288
+ type: "StructuredText";
291
289
  } & {
292
290
  fieldset?: string | null | undefined;
293
291
  config?: {
@@ -300,27 +298,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
300
298
  width?: number | null;
301
299
  height?: number | null;
302
300
  };
303
- labels?: string[];
301
+ labels?: readonly string[];
304
302
  allowTargetBlank?: boolean;
305
303
  };
306
304
  }) | ({
307
- type: WidgetTypes.Select;
305
+ type: "Select";
308
306
  } & {
309
307
  fieldset?: string | null | undefined;
310
308
  config?: {
311
309
  label?: string | null | undefined;
312
310
  placeholder?: string;
313
311
  default_value?: string;
314
- options?: string[];
312
+ options?: readonly string[];
315
313
  };
316
314
  }) | ({
317
- type: WidgetTypes.Separator;
315
+ type: "Separator";
318
316
  } & {
319
317
  config?: {
320
318
  label?: string | null | undefined;
321
319
  };
322
320
  }) | ({
323
- type: WidgetTypes.Text;
321
+ type: "Text";
324
322
  } & {
325
323
  fieldset?: string | null | undefined;
326
324
  config?: {
@@ -329,7 +327,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
329
327
  placeholder?: string;
330
328
  };
331
329
  }) | ({
332
- type: WidgetTypes.Timestamp;
330
+ type: "Timestamp";
333
331
  } & {
334
332
  fieldset?: string | null | undefined;
335
333
  config?: {
@@ -341,13 +339,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
341
339
  };
342
340
  };
343
341
  }) | ({
344
- type: WidgetTypes.Slices | WidgetTypes.LegacySlices;
342
+ type: "Slices" | "Choice";
345
343
  } & {
346
344
  fieldset?: string | null | undefined;
347
345
  config?: {
348
346
  label?: string | null | undefined;
349
347
  labels?: {
350
- [x: string]: ({
348
+ [x: string]: readonly ({
351
349
  name: string;
352
350
  } & {
353
351
  display?: string;
@@ -355,7 +353,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
355
353
  } | null;
356
354
  choices?: {
357
355
  [x: string]: ({
358
- type: WidgetTypes.BooleanField;
356
+ type: "Boolean";
359
357
  } & {
360
358
  config?: {
361
359
  label?: string | null | undefined;
@@ -364,7 +362,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
364
362
  placeholder_false?: string;
365
363
  };
366
364
  }) | ({
367
- type: WidgetTypes.Color;
365
+ type: "Color";
368
366
  } & {
369
367
  fieldset?: string | null | undefined;
370
368
  config?: {
@@ -372,7 +370,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
372
370
  placeholder?: string;
373
371
  };
374
372
  }) | ({
375
- type: WidgetTypes.Date;
373
+ type: "Date";
376
374
  } & {
377
375
  fieldset?: string | null | undefined;
378
376
  config?: {
@@ -381,7 +379,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
381
379
  default?: string;
382
380
  };
383
381
  }) | ({
384
- type: WidgetTypes.Embed;
382
+ type: "Embed";
385
383
  } & {
386
384
  fieldset?: string | null | undefined;
387
385
  config?: {
@@ -390,14 +388,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
390
388
  useAsTitle?: boolean;
391
389
  };
392
390
  }) | ({
393
- type: WidgetTypes.GeoPoint;
391
+ type: "GeoPoint";
394
392
  } & {
395
393
  fieldset?: string | null | undefined;
396
394
  config?: {
397
395
  label?: string | null | undefined;
398
396
  };
399
397
  }) | ({
400
- type: WidgetTypes.Image;
398
+ type: "Image";
401
399
  } & {
402
400
  fieldset?: string | null | undefined;
403
401
  config?: {
@@ -407,7 +405,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
407
405
  width?: number | null;
408
406
  height?: number | null;
409
407
  };
410
- thumbnails?: ({
408
+ thumbnails?: readonly ({
411
409
  name: string;
412
410
  } & {
413
411
  width?: number | null;
@@ -415,7 +413,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
415
413
  })[];
416
414
  };
417
415
  }) | ({
418
- type: WidgetTypes.IntegrationField;
416
+ type: "IntegrationFields";
419
417
  } & {
420
418
  fieldset?: string | null | undefined;
421
419
  config?: {
@@ -424,7 +422,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
424
422
  catalog?: string;
425
423
  };
426
424
  }) | ({
427
- type: WidgetTypes.Link;
425
+ type: "Link";
428
426
  } & {
429
427
  fieldset?: string | null | undefined;
430
428
  config?: {
@@ -432,13 +430,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
432
430
  useAsTitle?: boolean;
433
431
  placeholder?: string;
434
432
  select?: "media" | "document" | "web" | null;
435
- customtypes?: string[];
436
- masks?: string[];
437
- tags?: string[];
433
+ customtypes?: readonly string[];
434
+ masks?: readonly string[];
435
+ tags?: readonly string[];
438
436
  allowTargetBlank?: boolean;
439
437
  };
440
438
  }) | ({
441
- type: WidgetTypes.Number;
439
+ type: "Number";
442
440
  } & {
443
441
  fieldset?: string | null | undefined;
444
442
  config?: {
@@ -449,7 +447,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
449
447
  step?: number;
450
448
  };
451
449
  }) | ({
452
- type: WidgetTypes.Range;
450
+ type: "Range";
453
451
  } & {
454
452
  fieldset?: string | null | undefined;
455
453
  config?: {
@@ -460,7 +458,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
460
458
  step?: number;
461
459
  };
462
460
  }) | ({
463
- type: WidgetTypes.RichText;
461
+ type: "StructuredText";
464
462
  } & {
465
463
  fieldset?: string | null | undefined;
466
464
  config?: {
@@ -473,27 +471,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
473
471
  width?: number | null;
474
472
  height?: number | null;
475
473
  };
476
- labels?: string[];
474
+ labels?: readonly string[];
477
475
  allowTargetBlank?: boolean;
478
476
  };
479
477
  }) | ({
480
- type: WidgetTypes.Select;
478
+ type: "Select";
481
479
  } & {
482
480
  fieldset?: string | null | undefined;
483
481
  config?: {
484
482
  label?: string | null | undefined;
485
483
  placeholder?: string;
486
484
  default_value?: string;
487
- options?: string[];
485
+ options?: readonly string[];
488
486
  };
489
487
  }) | ({
490
- type: WidgetTypes.Separator;
488
+ type: "Separator";
491
489
  } & {
492
490
  config?: {
493
491
  label?: string | null | undefined;
494
492
  };
495
493
  }) | ({
496
- type: WidgetTypes.Text;
494
+ type: "Text";
497
495
  } & {
498
496
  fieldset?: string | null | undefined;
499
497
  config?: {
@@ -502,7 +500,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
502
500
  placeholder?: string;
503
501
  };
504
502
  }) | ({
505
- type: WidgetTypes.Timestamp;
503
+ type: "Timestamp";
506
504
  } & {
507
505
  fieldset?: string | null | undefined;
508
506
  config?: {
@@ -511,7 +509,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
511
509
  default?: string;
512
510
  };
513
511
  }) | ({
514
- type: SlicesTypes.Slice;
512
+ type: "Slice";
515
513
  } & {
516
514
  fieldset?: string | null | undefined;
517
515
  description?: string;
@@ -519,7 +517,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
519
517
  display?: string;
520
518
  "non-repeat"?: {
521
519
  [x: string]: ({
522
- type: WidgetTypes.BooleanField;
520
+ type: "Boolean";
523
521
  } & {
524
522
  config?: {
525
523
  label?: string | null | undefined;
@@ -528,7 +526,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
528
526
  placeholder_false?: string;
529
527
  };
530
528
  }) | ({
531
- type: WidgetTypes.Color;
529
+ type: "Color";
532
530
  } & {
533
531
  fieldset?: string | null | undefined;
534
532
  config?: {
@@ -536,7 +534,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
536
534
  placeholder?: string;
537
535
  };
538
536
  }) | ({
539
- type: WidgetTypes.Date;
537
+ type: "Date";
540
538
  } & {
541
539
  fieldset?: string | null | undefined;
542
540
  config?: {
@@ -545,7 +543,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
545
543
  default?: string;
546
544
  };
547
545
  }) | ({
548
- type: WidgetTypes.Embed;
546
+ type: "Embed";
549
547
  } & {
550
548
  fieldset?: string | null | undefined;
551
549
  config?: {
@@ -554,14 +552,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
554
552
  useAsTitle?: boolean;
555
553
  };
556
554
  }) | ({
557
- type: WidgetTypes.GeoPoint;
555
+ type: "GeoPoint";
558
556
  } & {
559
557
  fieldset?: string | null | undefined;
560
558
  config?: {
561
559
  label?: string | null | undefined;
562
560
  };
563
561
  }) | ({
564
- type: WidgetTypes.Image;
562
+ type: "Image";
565
563
  } & {
566
564
  fieldset?: string | null | undefined;
567
565
  config?: {
@@ -571,7 +569,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
571
569
  width?: number | null;
572
570
  height?: number | null;
573
571
  };
574
- thumbnails?: ({
572
+ thumbnails?: readonly ({
575
573
  name: string;
576
574
  } & {
577
575
  width?: number | null;
@@ -579,7 +577,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
579
577
  })[];
580
578
  };
581
579
  }) | ({
582
- type: WidgetTypes.IntegrationField;
580
+ type: "IntegrationFields";
583
581
  } & {
584
582
  fieldset?: string | null | undefined;
585
583
  config?: {
@@ -588,7 +586,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
588
586
  catalog?: string;
589
587
  };
590
588
  }) | ({
591
- type: WidgetTypes.Link;
589
+ type: "Link";
592
590
  } & {
593
591
  fieldset?: string | null | undefined;
594
592
  config?: {
@@ -596,13 +594,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
596
594
  useAsTitle?: boolean;
597
595
  placeholder?: string;
598
596
  select?: "media" | "document" | "web" | null;
599
- customtypes?: string[];
600
- masks?: string[];
601
- tags?: string[];
597
+ customtypes?: readonly string[];
598
+ masks?: readonly string[];
599
+ tags?: readonly string[];
602
600
  allowTargetBlank?: boolean;
603
601
  };
604
602
  }) | ({
605
- type: WidgetTypes.Number;
603
+ type: "Number";
606
604
  } & {
607
605
  fieldset?: string | null | undefined;
608
606
  config?: {
@@ -613,7 +611,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
613
611
  step?: number;
614
612
  };
615
613
  }) | ({
616
- type: WidgetTypes.Range;
614
+ type: "Range";
617
615
  } & {
618
616
  fieldset?: string | null | undefined;
619
617
  config?: {
@@ -624,7 +622,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
624
622
  step?: number;
625
623
  };
626
624
  }) | ({
627
- type: WidgetTypes.RichText;
625
+ type: "StructuredText";
628
626
  } & {
629
627
  fieldset?: string | null | undefined;
630
628
  config?: {
@@ -637,27 +635,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
637
635
  width?: number | null;
638
636
  height?: number | null;
639
637
  };
640
- labels?: string[];
638
+ labels?: readonly string[];
641
639
  allowTargetBlank?: boolean;
642
640
  };
643
641
  }) | ({
644
- type: WidgetTypes.Select;
642
+ type: "Select";
645
643
  } & {
646
644
  fieldset?: string | null | undefined;
647
645
  config?: {
648
646
  label?: string | null | undefined;
649
647
  placeholder?: string;
650
648
  default_value?: string;
651
- options?: string[];
649
+ options?: readonly string[];
652
650
  };
653
651
  }) | ({
654
- type: WidgetTypes.Separator;
652
+ type: "Separator";
655
653
  } & {
656
654
  config?: {
657
655
  label?: string | null | undefined;
658
656
  };
659
657
  }) | ({
660
- type: WidgetTypes.Text;
658
+ type: "Text";
661
659
  } & {
662
660
  fieldset?: string | null | undefined;
663
661
  config?: {
@@ -666,7 +664,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
666
664
  placeholder?: string;
667
665
  };
668
666
  }) | ({
669
- type: WidgetTypes.Timestamp;
667
+ type: "Timestamp";
670
668
  } & {
671
669
  fieldset?: string | null | undefined;
672
670
  config?: {
@@ -678,7 +676,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
678
676
  };
679
677
  repeat?: {
680
678
  [x: string]: ({
681
- type: WidgetTypes.BooleanField;
679
+ type: "Boolean";
682
680
  } & {
683
681
  config?: {
684
682
  label?: string | null | undefined;
@@ -687,7 +685,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
687
685
  placeholder_false?: string;
688
686
  };
689
687
  }) | ({
690
- type: WidgetTypes.Color;
688
+ type: "Color";
691
689
  } & {
692
690
  fieldset?: string | null | undefined;
693
691
  config?: {
@@ -695,7 +693,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
695
693
  placeholder?: string;
696
694
  };
697
695
  }) | ({
698
- type: WidgetTypes.Date;
696
+ type: "Date";
699
697
  } & {
700
698
  fieldset?: string | null | undefined;
701
699
  config?: {
@@ -704,7 +702,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
704
702
  default?: string;
705
703
  };
706
704
  }) | ({
707
- type: WidgetTypes.Embed;
705
+ type: "Embed";
708
706
  } & {
709
707
  fieldset?: string | null | undefined;
710
708
  config?: {
@@ -713,14 +711,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
713
711
  useAsTitle?: boolean;
714
712
  };
715
713
  }) | ({
716
- type: WidgetTypes.GeoPoint;
714
+ type: "GeoPoint";
717
715
  } & {
718
716
  fieldset?: string | null | undefined;
719
717
  config?: {
720
718
  label?: string | null | undefined;
721
719
  };
722
720
  }) | ({
723
- type: WidgetTypes.Image;
721
+ type: "Image";
724
722
  } & {
725
723
  fieldset?: string | null | undefined;
726
724
  config?: {
@@ -730,7 +728,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
730
728
  width?: number | null;
731
729
  height?: number | null;
732
730
  };
733
- thumbnails?: ({
731
+ thumbnails?: readonly ({
734
732
  name: string;
735
733
  } & {
736
734
  width?: number | null;
@@ -738,7 +736,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
738
736
  })[];
739
737
  };
740
738
  }) | ({
741
- type: WidgetTypes.IntegrationField;
739
+ type: "IntegrationFields";
742
740
  } & {
743
741
  fieldset?: string | null | undefined;
744
742
  config?: {
@@ -747,7 +745,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
747
745
  catalog?: string;
748
746
  };
749
747
  }) | ({
750
- type: WidgetTypes.Link;
748
+ type: "Link";
751
749
  } & {
752
750
  fieldset?: string | null | undefined;
753
751
  config?: {
@@ -755,13 +753,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
755
753
  useAsTitle?: boolean;
756
754
  placeholder?: string;
757
755
  select?: "media" | "document" | "web" | null;
758
- customtypes?: string[];
759
- masks?: string[];
760
- tags?: string[];
756
+ customtypes?: readonly string[];
757
+ masks?: readonly string[];
758
+ tags?: readonly string[];
761
759
  allowTargetBlank?: boolean;
762
760
  };
763
761
  }) | ({
764
- type: WidgetTypes.Number;
762
+ type: "Number";
765
763
  } & {
766
764
  fieldset?: string | null | undefined;
767
765
  config?: {
@@ -772,7 +770,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
772
770
  step?: number;
773
771
  };
774
772
  }) | ({
775
- type: WidgetTypes.Range;
773
+ type: "Range";
776
774
  } & {
777
775
  fieldset?: string | null | undefined;
778
776
  config?: {
@@ -783,7 +781,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
783
781
  step?: number;
784
782
  };
785
783
  }) | ({
786
- type: WidgetTypes.RichText;
784
+ type: "StructuredText";
787
785
  } & {
788
786
  fieldset?: string | null | undefined;
789
787
  config?: {
@@ -796,27 +794,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
796
794
  width?: number | null;
797
795
  height?: number | null;
798
796
  };
799
- labels?: string[];
797
+ labels?: readonly string[];
800
798
  allowTargetBlank?: boolean;
801
799
  };
802
800
  }) | ({
803
- type: WidgetTypes.Select;
801
+ type: "Select";
804
802
  } & {
805
803
  fieldset?: string | null | undefined;
806
804
  config?: {
807
805
  label?: string | null | undefined;
808
806
  placeholder?: string;
809
807
  default_value?: string;
810
- options?: string[];
808
+ options?: readonly string[];
811
809
  };
812
810
  }) | ({
813
- type: WidgetTypes.Separator;
811
+ type: "Separator";
814
812
  } & {
815
813
  config?: {
816
814
  label?: string | null | undefined;
817
815
  };
818
816
  }) | ({
819
- type: WidgetTypes.Text;
817
+ type: "Text";
820
818
  } & {
821
819
  fieldset?: string | null | undefined;
822
820
  config?: {
@@ -825,7 +823,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
825
823
  placeholder?: string;
826
824
  };
827
825
  }) | ({
828
- type: WidgetTypes.Timestamp;
826
+ type: "Timestamp";
829
827
  } & {
830
828
  fieldset?: string | null | undefined;
831
829
  config?: {
@@ -839,7 +837,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
839
837
  label?: string | null | undefined;
840
838
  };
841
839
  }) | ({
842
- type: WidgetTypes.Group;
840
+ type: "Group";
843
841
  } & {
844
842
  fieldset?: string | null | undefined;
845
843
  icon?: string;
@@ -849,7 +847,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
849
847
  repeat?: boolean;
850
848
  fields?: {
851
849
  [x: string]: ({
852
- type: WidgetTypes.BooleanField;
850
+ type: "Boolean";
853
851
  } & {
854
852
  config?: {
855
853
  label?: string | null | undefined;
@@ -858,7 +856,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
858
856
  placeholder_false?: string;
859
857
  };
860
858
  }) | ({
861
- type: WidgetTypes.Color;
859
+ type: "Color";
862
860
  } & {
863
861
  fieldset?: string | null | undefined;
864
862
  config?: {
@@ -866,7 +864,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
866
864
  placeholder?: string;
867
865
  };
868
866
  }) | ({
869
- type: WidgetTypes.Date;
867
+ type: "Date";
870
868
  } & {
871
869
  fieldset?: string | null | undefined;
872
870
  config?: {
@@ -875,7 +873,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
875
873
  default?: string;
876
874
  };
877
875
  }) | ({
878
- type: WidgetTypes.Embed;
876
+ type: "Embed";
879
877
  } & {
880
878
  fieldset?: string | null | undefined;
881
879
  config?: {
@@ -884,14 +882,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
884
882
  useAsTitle?: boolean;
885
883
  };
886
884
  }) | ({
887
- type: WidgetTypes.GeoPoint;
885
+ type: "GeoPoint";
888
886
  } & {
889
887
  fieldset?: string | null | undefined;
890
888
  config?: {
891
889
  label?: string | null | undefined;
892
890
  };
893
891
  }) | ({
894
- type: WidgetTypes.Image;
892
+ type: "Image";
895
893
  } & {
896
894
  fieldset?: string | null | undefined;
897
895
  config?: {
@@ -901,7 +899,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
901
899
  width?: number | null;
902
900
  height?: number | null;
903
901
  };
904
- thumbnails?: ({
902
+ thumbnails?: readonly ({
905
903
  name: string;
906
904
  } & {
907
905
  width?: number | null;
@@ -909,7 +907,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
909
907
  })[];
910
908
  };
911
909
  }) | ({
912
- type: WidgetTypes.IntegrationField;
910
+ type: "IntegrationFields";
913
911
  } & {
914
912
  fieldset?: string | null | undefined;
915
913
  config?: {
@@ -918,7 +916,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
918
916
  catalog?: string;
919
917
  };
920
918
  }) | ({
921
- type: WidgetTypes.Link;
919
+ type: "Link";
922
920
  } & {
923
921
  fieldset?: string | null | undefined;
924
922
  config?: {
@@ -926,13 +924,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
926
924
  useAsTitle?: boolean;
927
925
  placeholder?: string;
928
926
  select?: "media" | "document" | "web" | null;
929
- customtypes?: string[];
930
- masks?: string[];
931
- tags?: string[];
927
+ customtypes?: readonly string[];
928
+ masks?: readonly string[];
929
+ tags?: readonly string[];
932
930
  allowTargetBlank?: boolean;
933
931
  };
934
932
  }) | ({
935
- type: WidgetTypes.Number;
933
+ type: "Number";
936
934
  } & {
937
935
  fieldset?: string | null | undefined;
938
936
  config?: {
@@ -943,7 +941,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
943
941
  step?: number;
944
942
  };
945
943
  }) | ({
946
- type: WidgetTypes.Range;
944
+ type: "Range";
947
945
  } & {
948
946
  fieldset?: string | null | undefined;
949
947
  config?: {
@@ -954,7 +952,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
954
952
  step?: number;
955
953
  };
956
954
  }) | ({
957
- type: WidgetTypes.RichText;
955
+ type: "StructuredText";
958
956
  } & {
959
957
  fieldset?: string | null | undefined;
960
958
  config?: {
@@ -967,27 +965,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
967
965
  width?: number | null;
968
966
  height?: number | null;
969
967
  };
970
- labels?: string[];
968
+ labels?: readonly string[];
971
969
  allowTargetBlank?: boolean;
972
970
  };
973
971
  }) | ({
974
- type: WidgetTypes.Select;
972
+ type: "Select";
975
973
  } & {
976
974
  fieldset?: string | null | undefined;
977
975
  config?: {
978
976
  label?: string | null | undefined;
979
977
  placeholder?: string;
980
978
  default_value?: string;
981
- options?: string[];
979
+ options?: readonly string[];
982
980
  };
983
981
  }) | ({
984
- type: WidgetTypes.Separator;
982
+ type: "Separator";
985
983
  } & {
986
984
  config?: {
987
985
  label?: string | null | undefined;
988
986
  };
989
987
  }) | ({
990
- type: WidgetTypes.Text;
988
+ type: "Text";
991
989
  } & {
992
990
  fieldset?: string | null | undefined;
993
991
  config?: {
@@ -996,7 +994,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
996
994
  placeholder?: string;
997
995
  };
998
996
  }) | ({
999
- type: WidgetTypes.Timestamp;
997
+ type: "Timestamp";
1000
998
  } & {
1001
999
  fieldset?: string | null | undefined;
1002
1000
  config?: {
@@ -1009,9 +1007,9 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1009
1007
  };
1010
1008
  }) | ({
1011
1009
  id: string;
1012
- type: SlicesTypes.SharedSlice;
1010
+ type: "SharedSlice";
1013
1011
  name: string;
1014
- variations: ({
1012
+ variations: readonly ({
1015
1013
  id: string;
1016
1014
  name: string;
1017
1015
  description: string;
@@ -1022,7 +1020,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1022
1020
  display?: string;
1023
1021
  primary?: {
1024
1022
  [x: string]: ({
1025
- type: WidgetTypes.BooleanField;
1023
+ type: "Boolean";
1026
1024
  } & {
1027
1025
  config?: {
1028
1026
  label?: string | null | undefined;
@@ -1031,7 +1029,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1031
1029
  placeholder_false?: string;
1032
1030
  };
1033
1031
  }) | ({
1034
- type: WidgetTypes.Color;
1032
+ type: "Color";
1035
1033
  } & {
1036
1034
  fieldset?: string | null | undefined;
1037
1035
  config?: {
@@ -1039,7 +1037,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1039
1037
  placeholder?: string;
1040
1038
  };
1041
1039
  }) | ({
1042
- type: WidgetTypes.Date;
1040
+ type: "Date";
1043
1041
  } & {
1044
1042
  fieldset?: string | null | undefined;
1045
1043
  config?: {
@@ -1048,7 +1046,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1048
1046
  default?: string;
1049
1047
  };
1050
1048
  }) | ({
1051
- type: WidgetTypes.Embed;
1049
+ type: "Embed";
1052
1050
  } & {
1053
1051
  fieldset?: string | null | undefined;
1054
1052
  config?: {
@@ -1057,14 +1055,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1057
1055
  useAsTitle?: boolean;
1058
1056
  };
1059
1057
  }) | ({
1060
- type: WidgetTypes.GeoPoint;
1058
+ type: "GeoPoint";
1061
1059
  } & {
1062
1060
  fieldset?: string | null | undefined;
1063
1061
  config?: {
1064
1062
  label?: string | null | undefined;
1065
1063
  };
1066
1064
  }) | ({
1067
- type: WidgetTypes.Image;
1065
+ type: "Image";
1068
1066
  } & {
1069
1067
  fieldset?: string | null | undefined;
1070
1068
  config?: {
@@ -1074,7 +1072,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1074
1072
  width?: number | null;
1075
1073
  height?: number | null;
1076
1074
  };
1077
- thumbnails?: ({
1075
+ thumbnails?: readonly ({
1078
1076
  name: string;
1079
1077
  } & {
1080
1078
  width?: number | null;
@@ -1082,7 +1080,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1082
1080
  })[];
1083
1081
  };
1084
1082
  }) | ({
1085
- type: WidgetTypes.IntegrationField;
1083
+ type: "IntegrationFields";
1086
1084
  } & {
1087
1085
  fieldset?: string | null | undefined;
1088
1086
  config?: {
@@ -1091,7 +1089,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1091
1089
  catalog?: string;
1092
1090
  };
1093
1091
  }) | ({
1094
- type: WidgetTypes.Link;
1092
+ type: "Link";
1095
1093
  } & {
1096
1094
  fieldset?: string | null | undefined;
1097
1095
  config?: {
@@ -1099,13 +1097,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1099
1097
  useAsTitle?: boolean;
1100
1098
  placeholder?: string;
1101
1099
  select?: "media" | "document" | "web" | null;
1102
- customtypes?: string[];
1103
- masks?: string[];
1104
- tags?: string[];
1100
+ customtypes?: readonly string[];
1101
+ masks?: readonly string[];
1102
+ tags?: readonly string[];
1105
1103
  allowTargetBlank?: boolean;
1106
1104
  };
1107
1105
  }) | ({
1108
- type: WidgetTypes.Number;
1106
+ type: "Number";
1109
1107
  } & {
1110
1108
  fieldset?: string | null | undefined;
1111
1109
  config?: {
@@ -1116,7 +1114,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1116
1114
  step?: number;
1117
1115
  };
1118
1116
  }) | ({
1119
- type: WidgetTypes.Range;
1117
+ type: "Range";
1120
1118
  } & {
1121
1119
  fieldset?: string | null | undefined;
1122
1120
  config?: {
@@ -1127,7 +1125,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1127
1125
  step?: number;
1128
1126
  };
1129
1127
  }) | ({
1130
- type: WidgetTypes.RichText;
1128
+ type: "StructuredText";
1131
1129
  } & {
1132
1130
  fieldset?: string | null | undefined;
1133
1131
  config?: {
@@ -1140,27 +1138,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1140
1138
  width?: number | null;
1141
1139
  height?: number | null;
1142
1140
  };
1143
- labels?: string[];
1141
+ labels?: readonly string[];
1144
1142
  allowTargetBlank?: boolean;
1145
1143
  };
1146
1144
  }) | ({
1147
- type: WidgetTypes.Select;
1145
+ type: "Select";
1148
1146
  } & {
1149
1147
  fieldset?: string | null | undefined;
1150
1148
  config?: {
1151
1149
  label?: string | null | undefined;
1152
1150
  placeholder?: string;
1153
1151
  default_value?: string;
1154
- options?: string[];
1152
+ options?: readonly string[];
1155
1153
  };
1156
1154
  }) | ({
1157
- type: WidgetTypes.Separator;
1155
+ type: "Separator";
1158
1156
  } & {
1159
1157
  config?: {
1160
1158
  label?: string | null | undefined;
1161
1159
  };
1162
1160
  }) | ({
1163
- type: WidgetTypes.Text;
1161
+ type: "Text";
1164
1162
  } & {
1165
1163
  fieldset?: string | null | undefined;
1166
1164
  config?: {
@@ -1169,7 +1167,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1169
1167
  placeholder?: string;
1170
1168
  };
1171
1169
  }) | ({
1172
- type: WidgetTypes.Timestamp;
1170
+ type: "Timestamp";
1173
1171
  } & {
1174
1172
  fieldset?: string | null | undefined;
1175
1173
  config?: {
@@ -1181,7 +1179,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1181
1179
  };
1182
1180
  items?: {
1183
1181
  [x: string]: ({
1184
- type: WidgetTypes.BooleanField;
1182
+ type: "Boolean";
1185
1183
  } & {
1186
1184
  config?: {
1187
1185
  label?: string | null | undefined;
@@ -1190,7 +1188,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1190
1188
  placeholder_false?: string;
1191
1189
  };
1192
1190
  }) | ({
1193
- type: WidgetTypes.Color;
1191
+ type: "Color";
1194
1192
  } & {
1195
1193
  fieldset?: string | null | undefined;
1196
1194
  config?: {
@@ -1198,7 +1196,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1198
1196
  placeholder?: string;
1199
1197
  };
1200
1198
  }) | ({
1201
- type: WidgetTypes.Date;
1199
+ type: "Date";
1202
1200
  } & {
1203
1201
  fieldset?: string | null | undefined;
1204
1202
  config?: {
@@ -1207,7 +1205,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1207
1205
  default?: string;
1208
1206
  };
1209
1207
  }) | ({
1210
- type: WidgetTypes.Embed;
1208
+ type: "Embed";
1211
1209
  } & {
1212
1210
  fieldset?: string | null | undefined;
1213
1211
  config?: {
@@ -1216,14 +1214,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1216
1214
  useAsTitle?: boolean;
1217
1215
  };
1218
1216
  }) | ({
1219
- type: WidgetTypes.GeoPoint;
1217
+ type: "GeoPoint";
1220
1218
  } & {
1221
1219
  fieldset?: string | null | undefined;
1222
1220
  config?: {
1223
1221
  label?: string | null | undefined;
1224
1222
  };
1225
1223
  }) | ({
1226
- type: WidgetTypes.Image;
1224
+ type: "Image";
1227
1225
  } & {
1228
1226
  fieldset?: string | null | undefined;
1229
1227
  config?: {
@@ -1233,7 +1231,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1233
1231
  width?: number | null;
1234
1232
  height?: number | null;
1235
1233
  };
1236
- thumbnails?: ({
1234
+ thumbnails?: readonly ({
1237
1235
  name: string;
1238
1236
  } & {
1239
1237
  width?: number | null;
@@ -1241,7 +1239,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1241
1239
  })[];
1242
1240
  };
1243
1241
  }) | ({
1244
- type: WidgetTypes.IntegrationField;
1242
+ type: "IntegrationFields";
1245
1243
  } & {
1246
1244
  fieldset?: string | null | undefined;
1247
1245
  config?: {
@@ -1250,7 +1248,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1250
1248
  catalog?: string;
1251
1249
  };
1252
1250
  }) | ({
1253
- type: WidgetTypes.Link;
1251
+ type: "Link";
1254
1252
  } & {
1255
1253
  fieldset?: string | null | undefined;
1256
1254
  config?: {
@@ -1258,13 +1256,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1258
1256
  useAsTitle?: boolean;
1259
1257
  placeholder?: string;
1260
1258
  select?: "media" | "document" | "web" | null;
1261
- customtypes?: string[];
1262
- masks?: string[];
1263
- tags?: string[];
1259
+ customtypes?: readonly string[];
1260
+ masks?: readonly string[];
1261
+ tags?: readonly string[];
1264
1262
  allowTargetBlank?: boolean;
1265
1263
  };
1266
1264
  }) | ({
1267
- type: WidgetTypes.Number;
1265
+ type: "Number";
1268
1266
  } & {
1269
1267
  fieldset?: string | null | undefined;
1270
1268
  config?: {
@@ -1275,7 +1273,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1275
1273
  step?: number;
1276
1274
  };
1277
1275
  }) | ({
1278
- type: WidgetTypes.Range;
1276
+ type: "Range";
1279
1277
  } & {
1280
1278
  fieldset?: string | null | undefined;
1281
1279
  config?: {
@@ -1286,7 +1284,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1286
1284
  step?: number;
1287
1285
  };
1288
1286
  }) | ({
1289
- type: WidgetTypes.RichText;
1287
+ type: "StructuredText";
1290
1288
  } & {
1291
1289
  fieldset?: string | null | undefined;
1292
1290
  config?: {
@@ -1299,27 +1297,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1299
1297
  width?: number | null;
1300
1298
  height?: number | null;
1301
1299
  };
1302
- labels?: string[];
1300
+ labels?: readonly string[];
1303
1301
  allowTargetBlank?: boolean;
1304
1302
  };
1305
1303
  }) | ({
1306
- type: WidgetTypes.Select;
1304
+ type: "Select";
1307
1305
  } & {
1308
1306
  fieldset?: string | null | undefined;
1309
1307
  config?: {
1310
1308
  label?: string | null | undefined;
1311
1309
  placeholder?: string;
1312
1310
  default_value?: string;
1313
- options?: string[];
1311
+ options?: readonly string[];
1314
1312
  };
1315
1313
  }) | ({
1316
- type: WidgetTypes.Separator;
1314
+ type: "Separator";
1317
1315
  } & {
1318
1316
  config?: {
1319
1317
  label?: string | null | undefined;
1320
1318
  };
1321
1319
  }) | ({
1322
- type: WidgetTypes.Text;
1320
+ type: "Text";
1323
1321
  } & {
1324
1322
  fieldset?: string | null | undefined;
1325
1323
  config?: {
@@ -1328,7 +1326,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1328
1326
  placeholder?: string;
1329
1327
  };
1330
1328
  }) | ({
1331
- type: WidgetTypes.Timestamp;
1329
+ type: "Timestamp";
1332
1330
  } & {
1333
1331
  fieldset?: string | null | undefined;
1334
1332
  config?: {
@@ -1345,7 +1343,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1345
1343
  };
1346
1344
  };
1347
1345
  }) | ({
1348
- type: WidgetTypes.UID;
1346
+ type: "UID";
1349
1347
  } & {
1350
1348
  fieldset?: string | null | undefined;
1351
1349
  config?: {
@@ -1366,7 +1364,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1366
1364
  repeatable: t.BooleanC;
1367
1365
  json: t.RecordC<t.StringC, t.Type<{
1368
1366
  [x: string]: ({
1369
- type: WidgetTypes.BooleanField;
1367
+ type: "Boolean";
1370
1368
  } & {
1371
1369
  config?: {
1372
1370
  label?: string | null | undefined;
@@ -1375,7 +1373,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1375
1373
  placeholder_false?: string;
1376
1374
  };
1377
1375
  }) | ({
1378
- type: WidgetTypes.Color;
1376
+ type: "Color";
1379
1377
  } & {
1380
1378
  fieldset?: string | null | undefined;
1381
1379
  config?: {
@@ -1383,7 +1381,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1383
1381
  placeholder?: string;
1384
1382
  };
1385
1383
  }) | ({
1386
- type: WidgetTypes.Date;
1384
+ type: "Date";
1387
1385
  } & {
1388
1386
  fieldset?: string | null | undefined;
1389
1387
  config?: {
@@ -1392,7 +1390,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1392
1390
  default?: string;
1393
1391
  };
1394
1392
  }) | ({
1395
- type: WidgetTypes.Embed;
1393
+ type: "Embed";
1396
1394
  } & {
1397
1395
  fieldset?: string | null | undefined;
1398
1396
  config?: {
@@ -1401,14 +1399,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1401
1399
  useAsTitle?: boolean;
1402
1400
  };
1403
1401
  }) | ({
1404
- type: WidgetTypes.GeoPoint;
1402
+ type: "GeoPoint";
1405
1403
  } & {
1406
1404
  fieldset?: string | null | undefined;
1407
1405
  config?: {
1408
1406
  label?: string | null | undefined;
1409
1407
  };
1410
1408
  }) | ({
1411
- type: WidgetTypes.Image;
1409
+ type: "Image";
1412
1410
  } & {
1413
1411
  fieldset?: string | null | undefined;
1414
1412
  config?: {
@@ -1418,7 +1416,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1418
1416
  width?: number | null;
1419
1417
  height?: number | null;
1420
1418
  };
1421
- thumbnails?: ({
1419
+ thumbnails?: readonly ({
1422
1420
  name: string;
1423
1421
  } & {
1424
1422
  width?: number | null;
@@ -1426,7 +1424,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1426
1424
  })[];
1427
1425
  };
1428
1426
  }) | ({
1429
- type: WidgetTypes.IntegrationField;
1427
+ type: "IntegrationFields";
1430
1428
  } & {
1431
1429
  fieldset?: string | null | undefined;
1432
1430
  config?: {
@@ -1435,7 +1433,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1435
1433
  catalog?: string;
1436
1434
  };
1437
1435
  }) | ({
1438
- type: WidgetTypes.Link;
1436
+ type: "Link";
1439
1437
  } & {
1440
1438
  fieldset?: string | null | undefined;
1441
1439
  config?: {
@@ -1443,13 +1441,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1443
1441
  useAsTitle?: boolean;
1444
1442
  placeholder?: string;
1445
1443
  select?: "media" | "document" | "web" | null;
1446
- customtypes?: string[];
1447
- masks?: string[];
1448
- tags?: string[];
1444
+ customtypes?: readonly string[];
1445
+ masks?: readonly string[];
1446
+ tags?: readonly string[];
1449
1447
  allowTargetBlank?: boolean;
1450
1448
  };
1451
1449
  }) | ({
1452
- type: WidgetTypes.Number;
1450
+ type: "Number";
1453
1451
  } & {
1454
1452
  fieldset?: string | null | undefined;
1455
1453
  config?: {
@@ -1460,7 +1458,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1460
1458
  step?: number;
1461
1459
  };
1462
1460
  }) | ({
1463
- type: WidgetTypes.Range;
1461
+ type: "Range";
1464
1462
  } & {
1465
1463
  fieldset?: string | null | undefined;
1466
1464
  config?: {
@@ -1471,7 +1469,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1471
1469
  step?: number;
1472
1470
  };
1473
1471
  }) | ({
1474
- type: WidgetTypes.RichText;
1472
+ type: "StructuredText";
1475
1473
  } & {
1476
1474
  fieldset?: string | null | undefined;
1477
1475
  config?: {
@@ -1484,27 +1482,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1484
1482
  width?: number | null;
1485
1483
  height?: number | null;
1486
1484
  };
1487
- labels?: string[];
1485
+ labels?: readonly string[];
1488
1486
  allowTargetBlank?: boolean;
1489
1487
  };
1490
1488
  }) | ({
1491
- type: WidgetTypes.Select;
1489
+ type: "Select";
1492
1490
  } & {
1493
1491
  fieldset?: string | null | undefined;
1494
1492
  config?: {
1495
1493
  label?: string | null | undefined;
1496
1494
  placeholder?: string;
1497
1495
  default_value?: string;
1498
- options?: string[];
1496
+ options?: readonly string[];
1499
1497
  };
1500
1498
  }) | ({
1501
- type: WidgetTypes.Separator;
1499
+ type: "Separator";
1502
1500
  } & {
1503
1501
  config?: {
1504
1502
  label?: string | null | undefined;
1505
1503
  };
1506
1504
  }) | ({
1507
- type: WidgetTypes.Text;
1505
+ type: "Text";
1508
1506
  } & {
1509
1507
  fieldset?: string | null | undefined;
1510
1508
  config?: {
@@ -1513,7 +1511,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1513
1511
  placeholder?: string;
1514
1512
  };
1515
1513
  }) | ({
1516
- type: WidgetTypes.Timestamp;
1514
+ type: "Timestamp";
1517
1515
  } & {
1518
1516
  fieldset?: string | null | undefined;
1519
1517
  config?: {
@@ -1522,7 +1520,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1522
1520
  default?: string;
1523
1521
  };
1524
1522
  }) | ({
1525
- type: WidgetTypes.Group;
1523
+ type: "Group";
1526
1524
  } & {
1527
1525
  fieldset?: string | null | undefined;
1528
1526
  icon?: string;
@@ -1532,7 +1530,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1532
1530
  repeat?: boolean;
1533
1531
  fields?: {
1534
1532
  [x: string]: ({
1535
- type: WidgetTypes.BooleanField;
1533
+ type: "Boolean";
1536
1534
  } & {
1537
1535
  config?: {
1538
1536
  label?: string | null | undefined;
@@ -1541,7 +1539,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1541
1539
  placeholder_false?: string;
1542
1540
  };
1543
1541
  }) | ({
1544
- type: WidgetTypes.Color;
1542
+ type: "Color";
1545
1543
  } & {
1546
1544
  fieldset?: string | null | undefined;
1547
1545
  config?: {
@@ -1549,7 +1547,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1549
1547
  placeholder?: string;
1550
1548
  };
1551
1549
  }) | ({
1552
- type: WidgetTypes.Date;
1550
+ type: "Date";
1553
1551
  } & {
1554
1552
  fieldset?: string | null | undefined;
1555
1553
  config?: {
@@ -1558,7 +1556,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1558
1556
  default?: string;
1559
1557
  };
1560
1558
  }) | ({
1561
- type: WidgetTypes.Embed;
1559
+ type: "Embed";
1562
1560
  } & {
1563
1561
  fieldset?: string | null | undefined;
1564
1562
  config?: {
@@ -1567,14 +1565,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1567
1565
  useAsTitle?: boolean;
1568
1566
  };
1569
1567
  }) | ({
1570
- type: WidgetTypes.GeoPoint;
1568
+ type: "GeoPoint";
1571
1569
  } & {
1572
1570
  fieldset?: string | null | undefined;
1573
1571
  config?: {
1574
1572
  label?: string | null | undefined;
1575
1573
  };
1576
1574
  }) | ({
1577
- type: WidgetTypes.Image;
1575
+ type: "Image";
1578
1576
  } & {
1579
1577
  fieldset?: string | null | undefined;
1580
1578
  config?: {
@@ -1584,7 +1582,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1584
1582
  width?: number | null;
1585
1583
  height?: number | null;
1586
1584
  };
1587
- thumbnails?: ({
1585
+ thumbnails?: readonly ({
1588
1586
  name: string;
1589
1587
  } & {
1590
1588
  width?: number | null;
@@ -1592,7 +1590,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1592
1590
  })[];
1593
1591
  };
1594
1592
  }) | ({
1595
- type: WidgetTypes.IntegrationField;
1593
+ type: "IntegrationFields";
1596
1594
  } & {
1597
1595
  fieldset?: string | null | undefined;
1598
1596
  config?: {
@@ -1601,7 +1599,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1601
1599
  catalog?: string;
1602
1600
  };
1603
1601
  }) | ({
1604
- type: WidgetTypes.Link;
1602
+ type: "Link";
1605
1603
  } & {
1606
1604
  fieldset?: string | null | undefined;
1607
1605
  config?: {
@@ -1609,13 +1607,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1609
1607
  useAsTitle?: boolean;
1610
1608
  placeholder?: string;
1611
1609
  select?: "media" | "document" | "web" | null;
1612
- customtypes?: string[];
1613
- masks?: string[];
1614
- tags?: string[];
1610
+ customtypes?: readonly string[];
1611
+ masks?: readonly string[];
1612
+ tags?: readonly string[];
1615
1613
  allowTargetBlank?: boolean;
1616
1614
  };
1617
1615
  }) | ({
1618
- type: WidgetTypes.Number;
1616
+ type: "Number";
1619
1617
  } & {
1620
1618
  fieldset?: string | null | undefined;
1621
1619
  config?: {
@@ -1626,7 +1624,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1626
1624
  step?: number;
1627
1625
  };
1628
1626
  }) | ({
1629
- type: WidgetTypes.Range;
1627
+ type: "Range";
1630
1628
  } & {
1631
1629
  fieldset?: string | null | undefined;
1632
1630
  config?: {
@@ -1637,7 +1635,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1637
1635
  step?: number;
1638
1636
  };
1639
1637
  }) | ({
1640
- type: WidgetTypes.RichText;
1638
+ type: "StructuredText";
1641
1639
  } & {
1642
1640
  fieldset?: string | null | undefined;
1643
1641
  config?: {
@@ -1650,27 +1648,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1650
1648
  width?: number | null;
1651
1649
  height?: number | null;
1652
1650
  };
1653
- labels?: string[];
1651
+ labels?: readonly string[];
1654
1652
  allowTargetBlank?: boolean;
1655
1653
  };
1656
1654
  }) | ({
1657
- type: WidgetTypes.Select;
1655
+ type: "Select";
1658
1656
  } & {
1659
1657
  fieldset?: string | null | undefined;
1660
1658
  config?: {
1661
1659
  label?: string | null | undefined;
1662
1660
  placeholder?: string;
1663
1661
  default_value?: string;
1664
- options?: string[];
1662
+ options?: readonly string[];
1665
1663
  };
1666
1664
  }) | ({
1667
- type: WidgetTypes.Separator;
1665
+ type: "Separator";
1668
1666
  } & {
1669
1667
  config?: {
1670
1668
  label?: string | null | undefined;
1671
1669
  };
1672
1670
  }) | ({
1673
- type: WidgetTypes.Text;
1671
+ type: "Text";
1674
1672
  } & {
1675
1673
  fieldset?: string | null | undefined;
1676
1674
  config?: {
@@ -1679,7 +1677,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1679
1677
  placeholder?: string;
1680
1678
  };
1681
1679
  }) | ({
1682
- type: WidgetTypes.Timestamp;
1680
+ type: "Timestamp";
1683
1681
  } & {
1684
1682
  fieldset?: string | null | undefined;
1685
1683
  config?: {
@@ -1691,13 +1689,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1691
1689
  };
1692
1690
  };
1693
1691
  }) | ({
1694
- type: WidgetTypes.Slices | WidgetTypes.LegacySlices;
1692
+ type: "Slices" | "Choice";
1695
1693
  } & {
1696
1694
  fieldset?: string | null | undefined;
1697
1695
  config?: {
1698
1696
  label?: string | null | undefined;
1699
1697
  labels?: {
1700
- [x: string]: ({
1698
+ [x: string]: readonly ({
1701
1699
  name: string;
1702
1700
  } & {
1703
1701
  display?: string;
@@ -1705,7 +1703,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1705
1703
  } | null;
1706
1704
  choices?: {
1707
1705
  [x: string]: ({
1708
- type: WidgetTypes.BooleanField;
1706
+ type: "Boolean";
1709
1707
  } & {
1710
1708
  config?: {
1711
1709
  label?: string | null | undefined;
@@ -1714,7 +1712,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1714
1712
  placeholder_false?: string;
1715
1713
  };
1716
1714
  }) | ({
1717
- type: WidgetTypes.Color;
1715
+ type: "Color";
1718
1716
  } & {
1719
1717
  fieldset?: string | null | undefined;
1720
1718
  config?: {
@@ -1722,7 +1720,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1722
1720
  placeholder?: string;
1723
1721
  };
1724
1722
  }) | ({
1725
- type: WidgetTypes.Date;
1723
+ type: "Date";
1726
1724
  } & {
1727
1725
  fieldset?: string | null | undefined;
1728
1726
  config?: {
@@ -1731,7 +1729,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1731
1729
  default?: string;
1732
1730
  };
1733
1731
  }) | ({
1734
- type: WidgetTypes.Embed;
1732
+ type: "Embed";
1735
1733
  } & {
1736
1734
  fieldset?: string | null | undefined;
1737
1735
  config?: {
@@ -1740,14 +1738,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1740
1738
  useAsTitle?: boolean;
1741
1739
  };
1742
1740
  }) | ({
1743
- type: WidgetTypes.GeoPoint;
1741
+ type: "GeoPoint";
1744
1742
  } & {
1745
1743
  fieldset?: string | null | undefined;
1746
1744
  config?: {
1747
1745
  label?: string | null | undefined;
1748
1746
  };
1749
1747
  }) | ({
1750
- type: WidgetTypes.Image;
1748
+ type: "Image";
1751
1749
  } & {
1752
1750
  fieldset?: string | null | undefined;
1753
1751
  config?: {
@@ -1757,7 +1755,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1757
1755
  width?: number | null;
1758
1756
  height?: number | null;
1759
1757
  };
1760
- thumbnails?: ({
1758
+ thumbnails?: readonly ({
1761
1759
  name: string;
1762
1760
  } & {
1763
1761
  width?: number | null;
@@ -1765,7 +1763,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1765
1763
  })[];
1766
1764
  };
1767
1765
  }) | ({
1768
- type: WidgetTypes.IntegrationField;
1766
+ type: "IntegrationFields";
1769
1767
  } & {
1770
1768
  fieldset?: string | null | undefined;
1771
1769
  config?: {
@@ -1774,7 +1772,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1774
1772
  catalog?: string;
1775
1773
  };
1776
1774
  }) | ({
1777
- type: WidgetTypes.Link;
1775
+ type: "Link";
1778
1776
  } & {
1779
1777
  fieldset?: string | null | undefined;
1780
1778
  config?: {
@@ -1782,13 +1780,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1782
1780
  useAsTitle?: boolean;
1783
1781
  placeholder?: string;
1784
1782
  select?: "media" | "document" | "web" | null;
1785
- customtypes?: string[];
1786
- masks?: string[];
1787
- tags?: string[];
1783
+ customtypes?: readonly string[];
1784
+ masks?: readonly string[];
1785
+ tags?: readonly string[];
1788
1786
  allowTargetBlank?: boolean;
1789
1787
  };
1790
1788
  }) | ({
1791
- type: WidgetTypes.Number;
1789
+ type: "Number";
1792
1790
  } & {
1793
1791
  fieldset?: string | null | undefined;
1794
1792
  config?: {
@@ -1799,7 +1797,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1799
1797
  step?: number;
1800
1798
  };
1801
1799
  }) | ({
1802
- type: WidgetTypes.Range;
1800
+ type: "Range";
1803
1801
  } & {
1804
1802
  fieldset?: string | null | undefined;
1805
1803
  config?: {
@@ -1810,7 +1808,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1810
1808
  step?: number;
1811
1809
  };
1812
1810
  }) | ({
1813
- type: WidgetTypes.RichText;
1811
+ type: "StructuredText";
1814
1812
  } & {
1815
1813
  fieldset?: string | null | undefined;
1816
1814
  config?: {
@@ -1823,27 +1821,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1823
1821
  width?: number | null;
1824
1822
  height?: number | null;
1825
1823
  };
1826
- labels?: string[];
1824
+ labels?: readonly string[];
1827
1825
  allowTargetBlank?: boolean;
1828
1826
  };
1829
1827
  }) | ({
1830
- type: WidgetTypes.Select;
1828
+ type: "Select";
1831
1829
  } & {
1832
1830
  fieldset?: string | null | undefined;
1833
1831
  config?: {
1834
1832
  label?: string | null | undefined;
1835
1833
  placeholder?: string;
1836
1834
  default_value?: string;
1837
- options?: string[];
1835
+ options?: readonly string[];
1838
1836
  };
1839
1837
  }) | ({
1840
- type: WidgetTypes.Separator;
1838
+ type: "Separator";
1841
1839
  } & {
1842
1840
  config?: {
1843
1841
  label?: string | null | undefined;
1844
1842
  };
1845
1843
  }) | ({
1846
- type: WidgetTypes.Text;
1844
+ type: "Text";
1847
1845
  } & {
1848
1846
  fieldset?: string | null | undefined;
1849
1847
  config?: {
@@ -1852,7 +1850,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1852
1850
  placeholder?: string;
1853
1851
  };
1854
1852
  }) | ({
1855
- type: WidgetTypes.Timestamp;
1853
+ type: "Timestamp";
1856
1854
  } & {
1857
1855
  fieldset?: string | null | undefined;
1858
1856
  config?: {
@@ -1861,7 +1859,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1861
1859
  default?: string;
1862
1860
  };
1863
1861
  }) | ({
1864
- type: SlicesTypes.Slice;
1862
+ type: "Slice";
1865
1863
  } & {
1866
1864
  fieldset?: string | null | undefined;
1867
1865
  description?: string;
@@ -1869,7 +1867,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1869
1867
  display?: string;
1870
1868
  "non-repeat"?: {
1871
1869
  [x: string]: ({
1872
- type: WidgetTypes.BooleanField;
1870
+ type: "Boolean";
1873
1871
  } & {
1874
1872
  config?: {
1875
1873
  label?: string | null | undefined;
@@ -1878,7 +1876,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1878
1876
  placeholder_false?: string;
1879
1877
  };
1880
1878
  }) | ({
1881
- type: WidgetTypes.Color;
1879
+ type: "Color";
1882
1880
  } & {
1883
1881
  fieldset?: string | null | undefined;
1884
1882
  config?: {
@@ -1886,7 +1884,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1886
1884
  placeholder?: string;
1887
1885
  };
1888
1886
  }) | ({
1889
- type: WidgetTypes.Date;
1887
+ type: "Date";
1890
1888
  } & {
1891
1889
  fieldset?: string | null | undefined;
1892
1890
  config?: {
@@ -1895,7 +1893,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1895
1893
  default?: string;
1896
1894
  };
1897
1895
  }) | ({
1898
- type: WidgetTypes.Embed;
1896
+ type: "Embed";
1899
1897
  } & {
1900
1898
  fieldset?: string | null | undefined;
1901
1899
  config?: {
@@ -1904,14 +1902,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1904
1902
  useAsTitle?: boolean;
1905
1903
  };
1906
1904
  }) | ({
1907
- type: WidgetTypes.GeoPoint;
1905
+ type: "GeoPoint";
1908
1906
  } & {
1909
1907
  fieldset?: string | null | undefined;
1910
1908
  config?: {
1911
1909
  label?: string | null | undefined;
1912
1910
  };
1913
1911
  }) | ({
1914
- type: WidgetTypes.Image;
1912
+ type: "Image";
1915
1913
  } & {
1916
1914
  fieldset?: string | null | undefined;
1917
1915
  config?: {
@@ -1921,7 +1919,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1921
1919
  width?: number | null;
1922
1920
  height?: number | null;
1923
1921
  };
1924
- thumbnails?: ({
1922
+ thumbnails?: readonly ({
1925
1923
  name: string;
1926
1924
  } & {
1927
1925
  width?: number | null;
@@ -1929,7 +1927,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1929
1927
  })[];
1930
1928
  };
1931
1929
  }) | ({
1932
- type: WidgetTypes.IntegrationField;
1930
+ type: "IntegrationFields";
1933
1931
  } & {
1934
1932
  fieldset?: string | null | undefined;
1935
1933
  config?: {
@@ -1938,7 +1936,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1938
1936
  catalog?: string;
1939
1937
  };
1940
1938
  }) | ({
1941
- type: WidgetTypes.Link;
1939
+ type: "Link";
1942
1940
  } & {
1943
1941
  fieldset?: string | null | undefined;
1944
1942
  config?: {
@@ -1946,13 +1944,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1946
1944
  useAsTitle?: boolean;
1947
1945
  placeholder?: string;
1948
1946
  select?: "media" | "document" | "web" | null;
1949
- customtypes?: string[];
1950
- masks?: string[];
1951
- tags?: string[];
1947
+ customtypes?: readonly string[];
1948
+ masks?: readonly string[];
1949
+ tags?: readonly string[];
1952
1950
  allowTargetBlank?: boolean;
1953
1951
  };
1954
1952
  }) | ({
1955
- type: WidgetTypes.Number;
1953
+ type: "Number";
1956
1954
  } & {
1957
1955
  fieldset?: string | null | undefined;
1958
1956
  config?: {
@@ -1963,7 +1961,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1963
1961
  step?: number;
1964
1962
  };
1965
1963
  }) | ({
1966
- type: WidgetTypes.Range;
1964
+ type: "Range";
1967
1965
  } & {
1968
1966
  fieldset?: string | null | undefined;
1969
1967
  config?: {
@@ -1974,7 +1972,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1974
1972
  step?: number;
1975
1973
  };
1976
1974
  }) | ({
1977
- type: WidgetTypes.RichText;
1975
+ type: "StructuredText";
1978
1976
  } & {
1979
1977
  fieldset?: string | null | undefined;
1980
1978
  config?: {
@@ -1987,27 +1985,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1987
1985
  width?: number | null;
1988
1986
  height?: number | null;
1989
1987
  };
1990
- labels?: string[];
1988
+ labels?: readonly string[];
1991
1989
  allowTargetBlank?: boolean;
1992
1990
  };
1993
1991
  }) | ({
1994
- type: WidgetTypes.Select;
1992
+ type: "Select";
1995
1993
  } & {
1996
1994
  fieldset?: string | null | undefined;
1997
1995
  config?: {
1998
1996
  label?: string | null | undefined;
1999
1997
  placeholder?: string;
2000
1998
  default_value?: string;
2001
- options?: string[];
1999
+ options?: readonly string[];
2002
2000
  };
2003
2001
  }) | ({
2004
- type: WidgetTypes.Separator;
2002
+ type: "Separator";
2005
2003
  } & {
2006
2004
  config?: {
2007
2005
  label?: string | null | undefined;
2008
2006
  };
2009
2007
  }) | ({
2010
- type: WidgetTypes.Text;
2008
+ type: "Text";
2011
2009
  } & {
2012
2010
  fieldset?: string | null | undefined;
2013
2011
  config?: {
@@ -2016,7 +2014,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2016
2014
  placeholder?: string;
2017
2015
  };
2018
2016
  }) | ({
2019
- type: WidgetTypes.Timestamp;
2017
+ type: "Timestamp";
2020
2018
  } & {
2021
2019
  fieldset?: string | null | undefined;
2022
2020
  config?: {
@@ -2028,7 +2026,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2028
2026
  };
2029
2027
  repeat?: {
2030
2028
  [x: string]: ({
2031
- type: WidgetTypes.BooleanField;
2029
+ type: "Boolean";
2032
2030
  } & {
2033
2031
  config?: {
2034
2032
  label?: string | null | undefined;
@@ -2037,7 +2035,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2037
2035
  placeholder_false?: string;
2038
2036
  };
2039
2037
  }) | ({
2040
- type: WidgetTypes.Color;
2038
+ type: "Color";
2041
2039
  } & {
2042
2040
  fieldset?: string | null | undefined;
2043
2041
  config?: {
@@ -2045,7 +2043,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2045
2043
  placeholder?: string;
2046
2044
  };
2047
2045
  }) | ({
2048
- type: WidgetTypes.Date;
2046
+ type: "Date";
2049
2047
  } & {
2050
2048
  fieldset?: string | null | undefined;
2051
2049
  config?: {
@@ -2054,7 +2052,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2054
2052
  default?: string;
2055
2053
  };
2056
2054
  }) | ({
2057
- type: WidgetTypes.Embed;
2055
+ type: "Embed";
2058
2056
  } & {
2059
2057
  fieldset?: string | null | undefined;
2060
2058
  config?: {
@@ -2063,14 +2061,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2063
2061
  useAsTitle?: boolean;
2064
2062
  };
2065
2063
  }) | ({
2066
- type: WidgetTypes.GeoPoint;
2064
+ type: "GeoPoint";
2067
2065
  } & {
2068
2066
  fieldset?: string | null | undefined;
2069
2067
  config?: {
2070
2068
  label?: string | null | undefined;
2071
2069
  };
2072
2070
  }) | ({
2073
- type: WidgetTypes.Image;
2071
+ type: "Image";
2074
2072
  } & {
2075
2073
  fieldset?: string | null | undefined;
2076
2074
  config?: {
@@ -2080,7 +2078,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2080
2078
  width?: number | null;
2081
2079
  height?: number | null;
2082
2080
  };
2083
- thumbnails?: ({
2081
+ thumbnails?: readonly ({
2084
2082
  name: string;
2085
2083
  } & {
2086
2084
  width?: number | null;
@@ -2088,7 +2086,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2088
2086
  })[];
2089
2087
  };
2090
2088
  }) | ({
2091
- type: WidgetTypes.IntegrationField;
2089
+ type: "IntegrationFields";
2092
2090
  } & {
2093
2091
  fieldset?: string | null | undefined;
2094
2092
  config?: {
@@ -2097,7 +2095,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2097
2095
  catalog?: string;
2098
2096
  };
2099
2097
  }) | ({
2100
- type: WidgetTypes.Link;
2098
+ type: "Link";
2101
2099
  } & {
2102
2100
  fieldset?: string | null | undefined;
2103
2101
  config?: {
@@ -2105,13 +2103,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2105
2103
  useAsTitle?: boolean;
2106
2104
  placeholder?: string;
2107
2105
  select?: "media" | "document" | "web" | null;
2108
- customtypes?: string[];
2109
- masks?: string[];
2110
- tags?: string[];
2106
+ customtypes?: readonly string[];
2107
+ masks?: readonly string[];
2108
+ tags?: readonly string[];
2111
2109
  allowTargetBlank?: boolean;
2112
2110
  };
2113
2111
  }) | ({
2114
- type: WidgetTypes.Number;
2112
+ type: "Number";
2115
2113
  } & {
2116
2114
  fieldset?: string | null | undefined;
2117
2115
  config?: {
@@ -2122,7 +2120,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2122
2120
  step?: number;
2123
2121
  };
2124
2122
  }) | ({
2125
- type: WidgetTypes.Range;
2123
+ type: "Range";
2126
2124
  } & {
2127
2125
  fieldset?: string | null | undefined;
2128
2126
  config?: {
@@ -2133,7 +2131,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2133
2131
  step?: number;
2134
2132
  };
2135
2133
  }) | ({
2136
- type: WidgetTypes.RichText;
2134
+ type: "StructuredText";
2137
2135
  } & {
2138
2136
  fieldset?: string | null | undefined;
2139
2137
  config?: {
@@ -2146,27 +2144,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2146
2144
  width?: number | null;
2147
2145
  height?: number | null;
2148
2146
  };
2149
- labels?: string[];
2147
+ labels?: readonly string[];
2150
2148
  allowTargetBlank?: boolean;
2151
2149
  };
2152
2150
  }) | ({
2153
- type: WidgetTypes.Select;
2151
+ type: "Select";
2154
2152
  } & {
2155
2153
  fieldset?: string | null | undefined;
2156
2154
  config?: {
2157
2155
  label?: string | null | undefined;
2158
2156
  placeholder?: string;
2159
2157
  default_value?: string;
2160
- options?: string[];
2158
+ options?: readonly string[];
2161
2159
  };
2162
2160
  }) | ({
2163
- type: WidgetTypes.Separator;
2161
+ type: "Separator";
2164
2162
  } & {
2165
2163
  config?: {
2166
2164
  label?: string | null | undefined;
2167
2165
  };
2168
2166
  }) | ({
2169
- type: WidgetTypes.Text;
2167
+ type: "Text";
2170
2168
  } & {
2171
2169
  fieldset?: string | null | undefined;
2172
2170
  config?: {
@@ -2175,7 +2173,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2175
2173
  placeholder?: string;
2176
2174
  };
2177
2175
  }) | ({
2178
- type: WidgetTypes.Timestamp;
2176
+ type: "Timestamp";
2179
2177
  } & {
2180
2178
  fieldset?: string | null | undefined;
2181
2179
  config?: {
@@ -2189,7 +2187,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2189
2187
  label?: string | null | undefined;
2190
2188
  };
2191
2189
  }) | ({
2192
- type: WidgetTypes.Group;
2190
+ type: "Group";
2193
2191
  } & {
2194
2192
  fieldset?: string | null | undefined;
2195
2193
  icon?: string;
@@ -2199,7 +2197,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2199
2197
  repeat?: boolean;
2200
2198
  fields?: {
2201
2199
  [x: string]: ({
2202
- type: WidgetTypes.BooleanField;
2200
+ type: "Boolean";
2203
2201
  } & {
2204
2202
  config?: {
2205
2203
  label?: string | null | undefined;
@@ -2208,7 +2206,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2208
2206
  placeholder_false?: string;
2209
2207
  };
2210
2208
  }) | ({
2211
- type: WidgetTypes.Color;
2209
+ type: "Color";
2212
2210
  } & {
2213
2211
  fieldset?: string | null | undefined;
2214
2212
  config?: {
@@ -2216,7 +2214,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2216
2214
  placeholder?: string;
2217
2215
  };
2218
2216
  }) | ({
2219
- type: WidgetTypes.Date;
2217
+ type: "Date";
2220
2218
  } & {
2221
2219
  fieldset?: string | null | undefined;
2222
2220
  config?: {
@@ -2225,7 +2223,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2225
2223
  default?: string;
2226
2224
  };
2227
2225
  }) | ({
2228
- type: WidgetTypes.Embed;
2226
+ type: "Embed";
2229
2227
  } & {
2230
2228
  fieldset?: string | null | undefined;
2231
2229
  config?: {
@@ -2234,14 +2232,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2234
2232
  useAsTitle?: boolean;
2235
2233
  };
2236
2234
  }) | ({
2237
- type: WidgetTypes.GeoPoint;
2235
+ type: "GeoPoint";
2238
2236
  } & {
2239
2237
  fieldset?: string | null | undefined;
2240
2238
  config?: {
2241
2239
  label?: string | null | undefined;
2242
2240
  };
2243
2241
  }) | ({
2244
- type: WidgetTypes.Image;
2242
+ type: "Image";
2245
2243
  } & {
2246
2244
  fieldset?: string | null | undefined;
2247
2245
  config?: {
@@ -2251,7 +2249,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2251
2249
  width?: number | null;
2252
2250
  height?: number | null;
2253
2251
  };
2254
- thumbnails?: ({
2252
+ thumbnails?: readonly ({
2255
2253
  name: string;
2256
2254
  } & {
2257
2255
  width?: number | null;
@@ -2259,7 +2257,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2259
2257
  })[];
2260
2258
  };
2261
2259
  }) | ({
2262
- type: WidgetTypes.IntegrationField;
2260
+ type: "IntegrationFields";
2263
2261
  } & {
2264
2262
  fieldset?: string | null | undefined;
2265
2263
  config?: {
@@ -2268,7 +2266,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2268
2266
  catalog?: string;
2269
2267
  };
2270
2268
  }) | ({
2271
- type: WidgetTypes.Link;
2269
+ type: "Link";
2272
2270
  } & {
2273
2271
  fieldset?: string | null | undefined;
2274
2272
  config?: {
@@ -2276,13 +2274,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2276
2274
  useAsTitle?: boolean;
2277
2275
  placeholder?: string;
2278
2276
  select?: "media" | "document" | "web" | null;
2279
- customtypes?: string[];
2280
- masks?: string[];
2281
- tags?: string[];
2277
+ customtypes?: readonly string[];
2278
+ masks?: readonly string[];
2279
+ tags?: readonly string[];
2282
2280
  allowTargetBlank?: boolean;
2283
2281
  };
2284
2282
  }) | ({
2285
- type: WidgetTypes.Number;
2283
+ type: "Number";
2286
2284
  } & {
2287
2285
  fieldset?: string | null | undefined;
2288
2286
  config?: {
@@ -2293,7 +2291,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2293
2291
  step?: number;
2294
2292
  };
2295
2293
  }) | ({
2296
- type: WidgetTypes.Range;
2294
+ type: "Range";
2297
2295
  } & {
2298
2296
  fieldset?: string | null | undefined;
2299
2297
  config?: {
@@ -2304,7 +2302,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2304
2302
  step?: number;
2305
2303
  };
2306
2304
  }) | ({
2307
- type: WidgetTypes.RichText;
2305
+ type: "StructuredText";
2308
2306
  } & {
2309
2307
  fieldset?: string | null | undefined;
2310
2308
  config?: {
@@ -2317,27 +2315,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2317
2315
  width?: number | null;
2318
2316
  height?: number | null;
2319
2317
  };
2320
- labels?: string[];
2318
+ labels?: readonly string[];
2321
2319
  allowTargetBlank?: boolean;
2322
2320
  };
2323
2321
  }) | ({
2324
- type: WidgetTypes.Select;
2322
+ type: "Select";
2325
2323
  } & {
2326
2324
  fieldset?: string | null | undefined;
2327
2325
  config?: {
2328
2326
  label?: string | null | undefined;
2329
2327
  placeholder?: string;
2330
2328
  default_value?: string;
2331
- options?: string[];
2329
+ options?: readonly string[];
2332
2330
  };
2333
2331
  }) | ({
2334
- type: WidgetTypes.Separator;
2332
+ type: "Separator";
2335
2333
  } & {
2336
2334
  config?: {
2337
2335
  label?: string | null | undefined;
2338
2336
  };
2339
2337
  }) | ({
2340
- type: WidgetTypes.Text;
2338
+ type: "Text";
2341
2339
  } & {
2342
2340
  fieldset?: string | null | undefined;
2343
2341
  config?: {
@@ -2346,7 +2344,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2346
2344
  placeholder?: string;
2347
2345
  };
2348
2346
  }) | ({
2349
- type: WidgetTypes.Timestamp;
2347
+ type: "Timestamp";
2350
2348
  } & {
2351
2349
  fieldset?: string | null | undefined;
2352
2350
  config?: {
@@ -2358,12 +2356,12 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2358
2356
  };
2359
2357
  };
2360
2358
  }) | {
2361
- type: SlicesTypes.SharedSlice;
2359
+ type: "SharedSlice";
2362
2360
  };
2363
2361
  };
2364
2362
  };
2365
2363
  }) | ({
2366
- type: WidgetTypes.UID;
2364
+ type: "UID";
2367
2365
  } & {
2368
2366
  fieldset?: string | null | undefined;
2369
2367
  config?: {