@cloudcannon/configuration-types 0.0.37 → 0.0.39

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 (44) hide show
  1. package/dist/cloudcannon-config.latest.schema.json +9336 -10956
  2. package/dist/cloudcannon-config.legacy-eleventy.schema.json +9442 -11056
  3. package/dist/cloudcannon-config.legacy-hugo.schema.json +9412 -11031
  4. package/dist/cloudcannon-config.legacy-jekyll.schema.json +9442 -11056
  5. package/dist/cloudcannon-config.legacy-reader.schema.json +5865 -7487
  6. package/package.json +19 -21
  7. package/src/build-coupled.ts +295 -0
  8. package/src/cascade.ts +38 -0
  9. package/src/configuration.ts +426 -0
  10. package/src/documentation.ts +22 -0
  11. package/src/editables.ts +243 -0
  12. package/src/icon.ts +3597 -0
  13. package/src/image-options.ts +72 -0
  14. package/src/index.ts +40 -0
  15. package/src/inputs.ts +993 -0
  16. package/src/markdown.ts +97 -0
  17. package/src/mimetype.ts +445 -0
  18. package/src/paths.ts +43 -0
  19. package/src/preview.ts +125 -0
  20. package/src/select-values.ts +26 -0
  21. package/src/snippets.ts +113 -0
  22. package/src/source-editor.ts +68 -0
  23. package/src/structures.ts +120 -0
  24. package/src/syntax.ts +183 -0
  25. package/src/timezone.ts +607 -0
  26. package/src/build-coupled.d.ts +0 -315
  27. package/src/cascade.d.ts +0 -37
  28. package/src/cloudcannon-config.schema.json +0 -79
  29. package/src/configuration.d.ts +0 -750
  30. package/src/documentation.d.ts +0 -18
  31. package/src/editables.d.ts +0 -252
  32. package/src/icon.d.ts +0 -3585
  33. package/src/image-resizeable.d.ts +0 -65
  34. package/src/index.d.ts +0 -36
  35. package/src/inputs.d.ts +0 -1647
  36. package/src/javascript-api.d.ts +0 -204
  37. package/src/markdown.d.ts +0 -103
  38. package/src/paths.d.ts +0 -44
  39. package/src/preview.d.ts +0 -110
  40. package/src/select-values.d.ts +0 -6
  41. package/src/snippets.d.ts +0 -227
  42. package/src/source-editor.d.ts +0 -92
  43. package/src/structures.d.ts +0 -113
  44. package/src/timezone.d.ts +0 -596
package/src/inputs.d.ts DELETED
@@ -1,1647 +0,0 @@
1
- import type { Documentation } from './documentation';
2
- import type { BlockEditable } from './editables';
3
- import type { Icon } from './icon';
4
- import type { ImageResizeable } from './image-resizeable';
5
- import type { WithPaths } from './paths';
6
- import type { WithPickerPreview, WithPreview } from './preview';
7
- import type { SelectValues } from './select-values';
8
- import type { SourceEditor } from './source-editor';
9
- import type { Structure } from './structures';
10
- import type { Timezone } from './timezone';
11
-
12
- export type InstanceValue = 'UUID' | 'NOW';
13
-
14
- export type InputType =
15
- | 'text'
16
- | 'textarea'
17
- | 'email'
18
- | 'disabled'
19
- | 'pinterest'
20
- | 'facebook'
21
- | 'twitter'
22
- | 'github'
23
- | 'instagram'
24
- | 'code'
25
- | 'checkbox'
26
- | 'switch'
27
- | 'color'
28
- | 'number'
29
- | 'range'
30
- | 'url'
31
- | 'html'
32
- | 'markdown'
33
- | 'date'
34
- | 'datetime'
35
- | 'time'
36
- | 'file'
37
- | 'image'
38
- | 'document'
39
- | 'select'
40
- | 'multiselect'
41
- | 'choice'
42
- | 'multichoice'
43
- | 'object'
44
- | 'array'
45
- | 'auto';
46
-
47
- interface WithRequiredValidation {
48
- /**
49
- * This key toggles whether CloudCannon requires this Input to have a value. If set to true,
50
- * CloudCannon will require you to enter a value to save your changes, or discard your unsaved
51
- * changes.
52
- *
53
- * By default, this key is false (i.e, CloudCannon does not require this Input to have a value).
54
- */
55
- required?: boolean;
56
- /**
57
- * This key defines the message that explains why an Input is required. This key requires you to
58
- * define `options.required`.
59
- *
60
- * This key has no default.
61
- */
62
- required_message?: string;
63
- }
64
-
65
- interface WithTextValidation {
66
- /**
67
- * This key defines the maximum string length, in characters, that CloudCannon will allow in an
68
- * Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input
69
- * already contains a longer value, CloudCannon will require you to remove characters until the
70
- * Input contains a valid string to save your changes, or discard your unsaved changes.
71
- *
72
- * Value can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input
73
- * to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.
74
- *
75
- * This key has no default.
76
- *
77
- * To use this key in a Select Input, `options.allow_create` must be set to true.
78
- */
79
- max_length?: number;
80
- /**
81
- * This key defines the message that explains which maximum string length an Input will accept.
82
- * This key requires you to define `options.max_length`.
83
- *
84
- * This key has no default.
85
- */
86
- max_length_message?: string;
87
- /**
88
- * This key defines the minimum string length, in characters, that CloudCannon will allow in an
89
- * Input. When configured, CloudCannon will warn you when an Input value is too short. If the
90
- * Input already contains a shorter value, CloudCannon will require you to add characters until
91
- * the Input contains a valid string to save your changes, or discard your unsaved changes.
92
- *
93
- * Value can be any positive integer. If `options.max_length` is also configured, this key cannot
94
- * be a greater number.
95
- *
96
- * This key has no default.
97
- *
98
- * To use this key in a Select Input, `options.allow_create` must be set to true.
99
- */
100
- min_length?: number;
101
- /**
102
- * This key defines the message that explains which minimum string length an Input will accept.
103
- * This key requires you to define `options.min_length`.
104
- *
105
- * This key has no default.
106
- */
107
- min_length_message?: string;
108
- /**
109
- * This key defines a regular expression that the Input value must match. When configured,
110
- * CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input
111
- * already contains an invalid value, CloudCannon will require you to enter a valid string to save
112
- * your changes, or discard your unsaved changes.
113
- *
114
- * Value must be a valid REGEX string.
115
- *
116
- * This key has no default.
117
- *
118
- * To use this key in a Select Input, `options.allow_create` must be set to true.
119
- */
120
- pattern?: string;
121
- /**
122
- * This key defines the message that explains which regular expression an Input will accept. This
123
- * key requires you to define `options.pattern`.
124
- *
125
- * This key has no default.
126
- */
127
- pattern_message?: string;
128
- /**
129
- * This key defines the flags (e.g. case-insensitive searching) for the regular expression set in
130
- * `options.pattern`. This key requires you to define `options.pattern`.
131
- *
132
- * The flags available match those a subset for [JavaScript regular
133
- * expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).
134
- *
135
- * This key has no default.
136
- */
137
- pattern_flags?: {
138
- /**
139
- * `g` - Search globally.
140
- *
141
- * @default false
142
- */
143
- global?: boolean;
144
- /**
145
- * `i` - Case-insensitive.
146
- *
147
- * @default false
148
- */
149
- ignore_case?: boolean;
150
- /**
151
- * `m` - `^` and `$` match the start and end of each line rather than the entire string.
152
- *
153
- * @default false
154
- */
155
- multiline?: boolean;
156
- /**
157
- * `s` - `.` matches newline characters.
158
- *
159
- * @default false
160
- */
161
- dot_all?: boolean;
162
- /**
163
- * `u` - Pattern is treated as a sequence of Unicode code points.
164
- *
165
- * @default false
166
- */
167
- unicode?: boolean;
168
- /**
169
- * `v` - Extended `unicode` mode.
170
- *
171
- * @default false
172
- */
173
- unicode_sets?: boolean;
174
- };
175
- }
176
-
177
- interface WithArrayValidation {
178
- /**
179
- * This key defines the maximum number of items CloudCannon will allow in an Input. When
180
- * configured, CloudCannon will prevent you from adding more items to this Input. If the Input
181
- * already contains more items, CloudCannon will require you to remove items until the Input
182
- * contains a valid number to save your changes, or discard your unsaved changes.
183
- *
184
- * Value can be any positive integer. If `options.min_items` is also configured, this key cannot
185
- * be a lesser number.
186
- *
187
- * This key has no default.
188
- */
189
- max_items?: number;
190
- /**
191
- * This key defines the message that explains why an Input needs to have a maximum number of
192
- * items. This key requires you to define `options.max_items`.
193
- *
194
- * This key has no default.
195
- */
196
- max_items_message?: string;
197
- /**
198
- * This key defines the minimum number of items CloudCannon will allow in an Input. When
199
- * configured, CloudCannon will prevent you from removing items from this Input below this value.
200
- * If the Input already contains fewer items, CloudCannon will require you to add items until the
201
- * Input contains a valid number to save your changes, or discard your unsaved changes.
202
- *
203
- * Value can be any positive integer. If `options.min_items` is also configured, this key cannot
204
- * be a greater number.
205
- *
206
- * This key has no default.
207
- */
208
- min_items?: number;
209
- /**
210
- * This key defines the message that explains why an Input needs to have a minimum number of
211
- * items. This key requires you to define `options.min_items`.
212
- *
213
- * This key has no default.
214
- */
215
- min_items_message?: string;
216
- /**
217
- * This key defines the JSON Path selector that CloudCannon should use to determine if the value
218
- * of an Input is unique. When configured, CloudCannon will require the value of the Input to be
219
- * unique compared to the value defined on the JSON Path. If the Input already contains a
220
- * non-unique value, CloudCannon will require you to change it to a valid value to save your
221
- * changes, or discard your unsaved changes.
222
- *
223
- * Value must be a valid JSON Path.
224
- *
225
- * This key has no default.
226
- */
227
- unique_on?: string;
228
- /**
229
- * This key defines the message that explains why an Input needs to be unique. This key requires
230
- * you to define `options.unique_on`.
231
- *
232
- * This key has no default.
233
- */
234
- unique_on_message?: string;
235
- }
236
-
237
- export interface WithArrayControlOptions {
238
- /**
239
- * Hides the add button, and context menu actions on each item for adding new items to this Input.
240
- *
241
- * @default false
242
- */
243
- disable_add?: boolean;
244
- /**
245
- * Hides the context menu actions on each item for removing them.
246
- *
247
- * @default false
248
- */
249
- disable_remove?: boolean;
250
- /**
251
- * Hides the controls on each item for moving them.
252
- *
253
- * @default false
254
- */
255
- disable_reorder?: boolean;
256
- }
257
-
258
- interface WithEmptyTypeText {
259
- /**
260
- * Set how an ‘empty’ value will be saved. Does not apply to existing empty values.
261
- */
262
- empty_type?: 'null' | 'string';
263
- }
264
-
265
- interface WithEmptyTypeNumber {
266
- /**
267
- * Set how an ‘empty’ value will be saved. Does not apply to existing empty values.
268
- */
269
- empty_type?: 'null' | 'number';
270
- }
271
-
272
- interface WithEmptyTypeObject {
273
- /**
274
- * Set how an ‘empty’ value will be saved. Does not apply to existing empty values.
275
- */
276
- empty_type?: 'null' | 'object';
277
- }
278
-
279
- interface WithEmptyTypeArray {
280
- /**
281
- * Set how an ‘empty’ value will be saved. Does not apply to existing empty values.
282
- */
283
- empty_type?: 'null' | 'array';
284
- }
285
-
286
- export interface BaseInput {
287
- /**
288
- * Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown:
289
- * links, bold, italic, subscript, superscript, and inline code elements are allowed.
290
- */
291
- comment?: string;
292
- /**
293
- * Adds an expandable section of rich text below the input.
294
- */
295
- context?: {
296
- /**
297
- * The rich text content shown when opened. Supports a limited set of Markdown.
298
- */
299
- content?: string;
300
- /**
301
- * Makes the content visible initially.
302
- */
303
- open?: boolean;
304
- /**
305
- * The text shown when not open. Defaults to "Context" if unset.
306
- */
307
- title?: string;
308
- /**
309
- * The icon shown when not open.
310
- */
311
- icon?: Icon;
312
- };
313
- /**
314
- * Provides a custom link for documentation for editors shown above input.
315
- */
316
- documentation?: Documentation;
317
- /**
318
- * Optionally changes the text above this input.
319
- */
320
- label?: string;
321
- /**
322
- * Toggles the visibility of this input.
323
- *
324
- * @default false
325
- */
326
- hidden?: boolean | string;
327
- /**
328
- * Toggles if this input can be edited.
329
- *
330
- * @default false
331
- */
332
- disabled?: boolean | string;
333
- /**
334
- * Controls if and how the value of this input is instantiated when created. This occurs when
335
- * creating files, or adding array items containing the configured input.
336
- */
337
- instance_value?: InstanceValue;
338
- /**
339
- * Prevents the default where inputs configured with an `instance_value` are rehydrated with a new
340
- * value when duplicated in the CMS.
341
- *
342
- * @default false
343
- */
344
- disable_instance_value_rehydration?: boolean;
345
- /**
346
- * Specifies whether or not this input configuration should be merged with any matching, less
347
- * specific configuration.
348
- */
349
- cascade?: boolean;
350
- }
351
-
352
- export interface TextInputOptions
353
- extends WithEmptyTypeText,
354
- WithTextValidation,
355
- WithRequiredValidation {
356
- /**
357
- * Text shown when this input has no value.
358
- */
359
- placeholder?: string;
360
- /**
361
- * Icon shown beside the input.
362
- */
363
- icon?: Icon;
364
- }
365
-
366
- export interface TextInput extends BaseInput {
367
- /**
368
- * Sets an input type, which controls how this input appears and behaves.
369
- */
370
- type:
371
- | 'text'
372
- | 'email'
373
- | 'disabled'
374
- | 'pinterest'
375
- | 'facebook'
376
- | 'twitter'
377
- | 'github'
378
- | 'instagram';
379
-
380
- /**
381
- * Options that are specific to Text Inputs.
382
- */
383
- options?: TextInputOptions;
384
- }
385
-
386
- export interface TextareaInputOptions extends TextInputOptions {
387
- /**
388
- * Shows a character counter below the input if enabled.
389
- *
390
- * @default false
391
- */
392
- show_count?: boolean;
393
- }
394
-
395
- export interface TextareaInput extends BaseInput {
396
- /**
397
- * Sets an input type, which controls how this input appears and behaves.
398
- */
399
- type: 'textarea';
400
- /**
401
- * Options that are specific to Textarea Inputs.
402
- */
403
- options?: TextareaInputOptions;
404
- }
405
-
406
- export interface CodeInputOptions
407
- extends WithEmptyTypeText,
408
- SourceEditor,
409
- WithTextValidation,
410
- WithRequiredValidation {
411
- /**
412
- * Sets the maximum number of visible lines for this input, effectively controlling maximum
413
- * height. When the containing text exceeds this number, the input becomes a scroll area.
414
- *
415
- * @default 30
416
- */
417
- max_visible_lines?: number;
418
- /**
419
- * Sets the minimum number of visible lines for this input, effectively controlling initial
420
- * height. When the containing text exceeds this number, the input grows line by line to the lines
421
- * defined by `max_visible_lines`.
422
- *
423
- * @default 10
424
- */
425
- min_visible_lines?: number;
426
- /**
427
- * Changes how the editor parses your content for syntax highlighting. Should be set to the
428
- * language of the code going into the input.
429
- */
430
- syntax?: Syntax;
431
- }
432
-
433
- export interface CodeInput extends BaseInput {
434
- /**
435
- * Sets an input type, which controls how this input appears and behaves.
436
- */
437
- type: 'code';
438
- /**
439
- * Options that are specific to Code Inputs.
440
- */
441
- options?: CodeInputOptions;
442
- }
443
-
444
- export interface ColorInputOptions
445
- extends WithEmptyTypeText,
446
- WithTextValidation,
447
- WithRequiredValidation {
448
- /**
449
- * Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that
450
- * is unset.
451
- */
452
- format?: 'rgb' | 'hex' | 'hsl' | 'hsv';
453
- /**
454
- * Toggles showing a control for adjusting the transparency of the selected color. Defaults to
455
- * using the naming convention, enabled if the input key ends with "a".
456
- */
457
- alpha?: boolean;
458
- }
459
-
460
- export interface ColorInput extends BaseInput {
461
- /**
462
- * Sets an input type, which controls how this input appears and behaves.
463
- */
464
- type: 'color';
465
- /**
466
- * Options that are specific to Color Inputs.
467
- */
468
- options?: ColorInputOptions;
469
- }
470
-
471
- export interface BooleanInput extends Omit<BaseInput, 'options'> {
472
- /**
473
- * Sets an input type, which controls how this input appears and behaves.
474
- */
475
- type: 'checkbox' | 'switch';
476
- }
477
-
478
- export interface NumberInputOptions extends WithEmptyTypeNumber, WithRequiredValidation {
479
- /**
480
- * This key defines the minimum numerical value CloudCannon will allow in an Input. When
481
- * configured, CloudCannon will prevent you from entering a lesser numerical value. If the Input
482
- * already contains a lesser numerical value, CloudCannon will require you to enter a valid value
483
- * to save your changes, or discard your unsaved changes.
484
- *
485
- * Value can be any integer. If `options.max` is also configured, this key cannot be a greater
486
- * number.
487
- *
488
- * This key has no default.
489
- */
490
- min?: number;
491
- /**
492
- * This key defines the message that explains why an Input needs to have a minimum numerical
493
- * value. This key requires you to define `options.min`.
494
- *
495
- * This key has no default.
496
- */
497
- min_message?: string;
498
- /**
499
- * This key defines the maximum numerical value CloudCannon will allow in an Input. When
500
- * configured, CloudCannon will prevent you from entering a greater numerical value. If the Input
501
- * already contains a greater numerical value, CloudCannon will require you to enter a valid value
502
- * to save your changes, or discard your unsaved changes.
503
- *
504
- * Value can be any integer. If `options.min` is also configured, this key cannot be a lesser
505
- * number.
506
- *
507
- * This key has no default.
508
- */
509
- max?: number;
510
- /**
511
- * This key defines the message that explains why an Input needs to have a maximum numerical
512
- * value. This key requires you to define `options.max`.
513
- *
514
- * This key has no default.
515
- */
516
- max_message?: string;
517
- /**
518
- * A number that specifies the granularity that the value must adhere to, or the special value
519
- * any, which allows any decimal value between `max` and `min`.
520
- */
521
- step?: number;
522
- }
523
-
524
- export interface NumberInput extends BaseInput {
525
- /**
526
- * Sets an input type, which controls how this input appears and behaves.
527
- */
528
- type: 'number';
529
- /**
530
- * Options that are specific to this Number Inputs.
531
- */
532
- options?: NumberInputOptions;
533
- }
534
-
535
- export interface RangeInputOptions extends NumberInputOptions {
536
- /**
537
- * This key defines the minimum numerical value CloudCannon will allow in an Input. When
538
- * configured, CloudCannon will prevent you from entering a lesser numerical value. If the Input
539
- * already contains a lesser numerical value, CloudCannon will require you to enter a valid value
540
- * to save your changes, or discard your unsaved changes.
541
- *
542
- * Value can be any integer. If `options.max` is also configured, this key cannot be a greater
543
- * number.
544
- *
545
- * @default 0
546
- */
547
- min?: number;
548
- /**
549
- * This key defines the maximum numerical value CloudCannon will allow in an Input. When
550
- * configured, CloudCannon will prevent you from entering a greater numerical value. If the Input
551
- * already contains a greater numerical value, CloudCannon will require you to enter a valid value
552
- * to save your changes, or discard your unsaved changes.
553
- *
554
- * Value can be any integer. If `options.min` is also configured, this key cannot be a lesser
555
- * number.
556
- *
557
- * @default 10
558
- */
559
- max?: number;
560
- /**
561
- * A number that specifies the granularity that the value must adhere to, or the special value
562
- * any, which allows any decimal value between `max` and `min`.
563
- *
564
- * @default 1
565
- */
566
- step?: number;
567
- }
568
-
569
- export interface RangeInput extends BaseInput {
570
- /**
571
- * Sets an input type, which controls how this input appears and behaves.
572
- */
573
- type: 'range';
574
- /**
575
- * Options that are specific to Range Inputs.
576
- */
577
- options?: RangeInputOptions;
578
- }
579
-
580
- export interface RichTextInputOptions
581
- extends WithEmptyTypeText,
582
- ImageResizeable,
583
- BlockEditable,
584
- WithTextValidation,
585
- WithRequiredValidation {
586
- /**
587
- * Shows or hides the resize handler to vertically resize the input.
588
- *
589
- * @default false
590
- */
591
- allow_resize?: boolean;
592
- /**
593
- * Defines the initial height of this input in pixels (px).
594
- *
595
- * @default 320
596
- */
597
- initial_height?: number;
598
- }
599
-
600
- export interface RichTextInput extends BaseInput {
601
- /**
602
- * Sets an input type, which controls how this input appears and behaves.
603
- */
604
- type: 'html' | 'markdown';
605
- /**
606
- * Options that are specific to Rich Text Inputs.
607
- */
608
- options?: RichTextInputOptions;
609
- }
610
-
611
- export interface DateInputOptions extends WithEmptyTypeText, WithRequiredValidation {
612
- /**
613
- * Specifies the time zone that dates are displayed and edited in. Also changes the suffix the
614
- * date is persisted to the file with. Defaults to the global `timezone`.
615
- *
616
- * @default Etc/UTC
617
- */
618
- timezone?: Timezone;
619
- /**
620
- * This key defines the earliest date and time, inclusive, that CloudCannon will allow in an
621
- * Input. When configured, CloudCannon will prevent you from selecting an earlier date and time.
622
- * If the Input already contains an earlier date and time, CloudCannon will require you to change
623
- * it to a valid value to save your changes, or discard your unsaved changes.
624
- *
625
- * Value must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be
626
- * a later date and time.
627
- *
628
- * This key has no default.
629
- */
630
- start_from?: Date;
631
- /**
632
- * This key defines the message that explains why an Input needs to have a start date. This key
633
- * requires you to define `options.start_from`.
634
- *
635
- * This key has no default.
636
- */
637
- start_from_message?: string;
638
- /**
639
- * This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When
640
- * configured, CloudCannon will prevent you from selecting a later date and time. If the Input
641
- * already contains a later date and time, CloudCannon will require you to change it to a valid
642
- * value to save your changes, or discard your unsaved changes.
643
- *
644
- * Value must be in ISO8601 format. If options.start_from is also configured, this key cannot be
645
- * an earlier date and time.
646
- *
647
- * This key has no default.
648
- */
649
- end_before?: Date;
650
- /**
651
- * This key defines the message that explains why an Input needs to have an end date. This key
652
- * requires you to define `options.end_before`.
653
- *
654
- * This key has no default.
655
- */
656
- end_before_message?: string;
657
- }
658
-
659
- export interface DateInput extends BaseInput {
660
- /**
661
- * Sets an input type, which controls how this input appears and behaves.
662
- */
663
- type: 'date' | 'datetime';
664
- /**
665
- * Options that are specific to Date inputs.
666
- */
667
- options?: DateInputOptions;
668
- }
669
-
670
- export interface TimeInput extends BaseInput {
671
- /**
672
- * Sets an input type, which controls how this input appears and behaves.
673
- */
674
- type: 'time';
675
- /**
676
- * Options that are specific to Time inputs.
677
- */
678
- options?: WithEmptyTypeText & WithRequiredValidation;
679
- }
680
-
681
- export interface FileInputOptions
682
- extends WithEmptyTypeText,
683
- WithPaths,
684
- ImageResizeable,
685
- WithTextValidation,
686
- WithRequiredValidation {
687
- /**
688
- * Restricts which file types are available to select or upload to this input. Accepted format is
689
- * an array or comma-separated string of MIME types. The special value '*' means any type is
690
- * accepted.
691
- */
692
- accepts_mime_types?: MimeType[] | string;
693
- /**
694
- * This key defines the maximum file size, in kilobytes, that CloudCannon will allow in an Input.
695
- * When configured, CloudCannon will prevent you from uploading a file larger than the specified
696
- * size. If the Input already contains a file larger than the specified size, CloudCannon will
697
- * require you to change it to a valid value to save your changes, or discard your unsaved
698
- * changes.
699
- *
700
- * Value can be any positive integer.
701
- */
702
- max_file_size?: number;
703
- /**
704
- * This key defines the message that explains why an Input needs to have a maximum file size. This
705
- * key requires you to define `options.max_file_size`.
706
- *
707
- * This key has no default.
708
- */
709
- max_file_size_message?: string;
710
- /**
711
- * If you have one or more DAMs connected to your site, you can use this key to list which asset
712
- * sources can be uploaded to and selected from.
713
- */
714
- allowed_sources?: string[];
715
- /**
716
- * Disables the context menu option and the drop area for uploading files.
717
- *
718
- * @default false
719
- */
720
- disable_upload_file?: boolean;
721
- /**
722
- * Prevents typing into the text input, while still allowing context menu options to change the
723
- * value.
724
- *
725
- * @default false
726
- */
727
- disable_direct_input?: boolean;
728
- /**
729
- * Prevents file uploads inside the "Select existing file/image" file browser modal window.
730
- *
731
- * @default false
732
- */
733
- disable_upload_file_in_file_browser?: boolean;
734
- }
735
-
736
- export interface FileInput extends BaseInput {
737
- /**
738
- * Sets an input type, which controls how this input appears and behaves.
739
- */
740
- type: 'file' | 'document' | 'image';
741
- /**
742
- * Options that are specific to File, Image and Document inputs.
743
- */
744
- options?: FileInputOptions;
745
- }
746
-
747
- export interface UrlInputOptions extends FileInputOptions {
748
- /**
749
- * Hides the options to link to an existing file, and upload a new file. This does not prevent
750
- * typing a file path in the input.
751
- *
752
- * @default false
753
- */
754
- hide_link_to_file?: boolean;
755
- /**
756
- * Hides the option to link to a page. This does not prevent typing a file's output URL in the
757
- * input.
758
- *
759
- * @default false
760
- */
761
- hide_link_to_page?: boolean;
762
- /**
763
- * Hides the option to link to an email address. This does not prevent typing a `mailto:` link in
764
- * the input.
765
- *
766
- * @default false
767
- */
768
- hide_link_to_email_address?: boolean;
769
- }
770
-
771
- export interface UrlInput extends BaseInput {
772
- /**
773
- * Sets an input type, which controls how this input appears and behaves.
774
- */
775
- type: 'url';
776
- /**
777
- * Options that are specific to URL inputs.
778
- */
779
- options?: UrlInputOptions;
780
- }
781
-
782
- export interface SharedSelectInputOptions
783
- extends WithPreview,
784
- WithPickerPreview,
785
- WithRequiredValidation {
786
- /**
787
- * Allows new text values to be created at edit time.
788
- *
789
- * @default false
790
- */
791
- allow_create?: boolean;
792
- /**
793
- * Provides an empty option alongside the options provided by values.
794
- *
795
- * @default true
796
- */
797
- allow_empty?: boolean;
798
- /**
799
- * Defines the values available to choose from. Optional, defaults to fetching values from the
800
- * naming convention (e.g. colors or my_colors for data set colors).
801
- */
802
- values?: string | SelectValues;
803
- /**
804
- * Defines the key used for mapping between saved values and objects in values. This changes how
805
- * the input saves selected values to match. Defaults to checking for "id", "uuid", "path",
806
- * "title", then "name". Has no effect unless values is an array of objects, the key is used
807
- * instead for objects, and the value itself is used for primitive types.
808
- */
809
- value_key?: string;
810
- /**
811
- * Controls how selected items are rendered.
812
- */
813
- view?: 'card' | 'text' | 'gallery' | 'gallery-left';
814
- /**
815
- * Controls how selectable options are rendered.
816
- */
817
- picker_view?: 'card' | 'text' | 'gallery' | 'gallery-left';
818
- }
819
-
820
- export type SelectInputOptions = SharedSelectInputOptions & WithEmptyTypeText & WithTextValidation;
821
-
822
- export interface SelectInput extends BaseInput {
823
- /**
824
- * Sets an input type, which controls how this input appears and behaves.
825
- */
826
- type: 'select';
827
- /**
828
- * Options that are specific to Select Inputs.
829
- */
830
- options?: SelectInputOptions;
831
- }
832
-
833
- export type MultiselectInputOptions = SharedSelectInputOptions &
834
- WithEmptyTypeArray &
835
- WithArrayValidation;
836
-
837
- export interface MultiselectInput extends BaseInput {
838
- /**
839
- * Sets an input type, which controls how this input appears and behaves.
840
- */
841
- type: 'multiselect';
842
- /**
843
- * Options that are specific to Multiselect Inputs.
844
- */
845
- options?: MultiselectInputOptions;
846
- }
847
-
848
- export type SharedChoiceInputOptions = Omit<SharedSelectInputOptions, 'allow_create'>;
849
- export type ChoiceInputOptions = SharedChoiceInputOptions & WithEmptyTypeText & WithTextValidation;
850
-
851
- export interface ChoiceInput extends BaseInput {
852
- /**
853
- * Sets an input type, which controls how this input appears and behaves.
854
- */
855
- type: 'choice';
856
- /**
857
- * Options that are specific to Choice Inputs.
858
- */
859
- options?: ChoiceInputOptions;
860
- }
861
-
862
- export type MultichoiceInputOptions = SharedChoiceInputOptions &
863
- WithEmptyTypeArray &
864
- WithArrayValidation;
865
-
866
- export interface MultichoiceInput extends BaseInput {
867
- /**
868
- * Sets an input type, which controls how this input appears and behaves.
869
- */
870
- type: 'multichoice';
871
- /**
872
- * Options that are specific to Multichoice Inputs.
873
- */
874
- options?: MultichoiceInputOptions;
875
- }
876
-
877
- export interface ObjectInputGroup {
878
- /**
879
- * The main text for the group shown when collapsed or expanded.
880
- */
881
- heading?: string;
882
- /**
883
- * Changes the subtext below the `heading`. Has no default. Supports a limited set of Markdown:
884
- * links, bold, italic, subscript, superscript, and inline code elements are allowed.
885
- */
886
- comment?: string;
887
- /**
888
- * Controls if this group is collapsed or expanded when first viewed.
889
- *
890
- * @default false
891
- */
892
- collapsed?: boolean;
893
- /**
894
- * The keys of each input in this group.
895
- */
896
- inputs?: string[];
897
- /**
898
- * Provides a custom link for documentation for editors shown above the collection file list.
899
- */
900
- documentation?: Documentation;
901
- }
902
-
903
- export interface ObjectInputOptions
904
- extends WithEmptyTypeObject,
905
- WithPreview,
906
- WithRequiredValidation {
907
- /**
908
- * Changes the appearance and behavior of the input.
909
- *
910
- * @default object
911
- */
912
- subtype?: 'object' | 'mutable' | 'tabbed';
913
- /**
914
- * Contains options for the "mutable" subtype.
915
- */
916
- entries?: {
917
- /**
918
- * Defines a limited set of keys that can exist on the data within an object input. This set is
919
- * used when entries are added and renamed with `allow_create` enabled. Has no effect if
920
- * `allow_create` is not enabled.
921
- */
922
- allowed_keys?: string[];
923
- /**
924
- * Limits available structures to specified keys.
925
- */
926
- assigned_structures?: Record<string, string[]>;
927
- /**
928
- * Provides data formats when adding entries to the data within this object input. When adding
929
- * an entry, team members are prompted to choose from a number of values you have defined. Has
930
- * no effect if `allow_create` is false. `entries.structures` applies to the entries within the
931
- * object.
932
- */
933
- structures?: string | Structure;
934
- };
935
- /**
936
- * Provides data formats for value of this object. When choosing an item, team members are
937
- * prompted to choose from a number of values you have defined. `structures` applies to the object
938
- * itself.
939
- */
940
- structures?: string | Structure;
941
- /**
942
- * Allows you to group the inputs inside this object together without changing the data structure.
943
- */
944
- groups?: ObjectInputGroup[];
945
- /**
946
- * Controls which order input groups and ungrouped inputs appear in.
947
- *
948
- * @default false
949
- */
950
- place_groups_below?: boolean;
951
- /**
952
- * Controls whether or not labels on mutable object entries are formatted.
953
- *
954
- * @default false
955
- */
956
- allow_label_formatting?: boolean;
957
- /**
958
- * Controls how object previews are rendered.
959
- */
960
- view?: 'card' | 'gallery' | 'gallery-left';
961
- }
962
-
963
- export interface ObjectInput extends BaseInput {
964
- /**
965
- * Sets an input type, which controls how this input appears and behaves.
966
- */
967
- type: 'object';
968
- /**
969
- * Options that are specific to Object Inputs.
970
- */
971
- options?: ObjectInputOptions;
972
- }
973
-
974
- export interface ArrayInputOptions
975
- extends WithEmptyTypeArray,
976
- WithRequiredValidation,
977
- WithArrayValidation,
978
- WithArrayControlOptions {
979
- /**
980
- * Provides data formats for value of this object. When choosing an item, team members are
981
- * prompted to choose from a number of values you have defined.
982
- */
983
- structures?: string | Structure;
984
- }
985
-
986
- export interface ArrayInput extends BaseInput {
987
- /**
988
- * Sets an input type, which controls how this input appears and behaves.
989
- */
990
- type: 'array';
991
- /**
992
- * Options that are specific to Array Inputs.
993
- */
994
- options?: ArrayInputOptions;
995
- }
996
-
997
- export interface AutoInput extends BaseInput {
998
- /**
999
- * Sets an input type, which controls how this input appears and behaves.
1000
- */
1001
- type: 'auto';
1002
- /**
1003
- * Options that are specific to this `type` of input.
1004
- */
1005
- options?: unknown;
1006
- }
1007
-
1008
- export interface UnknownInput extends BaseInput {
1009
- /**
1010
- * Options that are specific to this `type` of input.
1011
- */
1012
- options?: unknown;
1013
- }
1014
-
1015
- /**
1016
- * @discriminator type
1017
- */
1018
- export type KnownInput =
1019
- | TextInput
1020
- | TextareaInput
1021
- | CodeInput
1022
- | ColorInput
1023
- | BooleanInput
1024
- | NumberInput
1025
- | RangeInput
1026
- | RichTextInput
1027
- | DateInput
1028
- | TimeInput
1029
- | FileInput
1030
- | UrlInput
1031
- | SelectInput
1032
- | MultiselectInput
1033
- | ChoiceInput
1034
- | MultichoiceInput
1035
- | ObjectInput
1036
- | ArrayInput
1037
- | AutoInput;
1038
-
1039
- export type Input = KnownInput | UnknownInput;
1040
-
1041
- export type Syntax =
1042
- | 'abap'
1043
- | 'abc'
1044
- | 'actionscript'
1045
- | 'ada'
1046
- | 'alda'
1047
- | 'apache_conf'
1048
- | 'apex'
1049
- | 'applescript'
1050
- | 'aql'
1051
- | 'asciidoc'
1052
- | 'asl'
1053
- | 'assembly_x86'
1054
- | 'autohotkey'
1055
- | 'batchfile'
1056
- | 'c9search'
1057
- | 'c_cpp'
1058
- | 'cirru'
1059
- | 'clojure'
1060
- | 'cobol'
1061
- | 'coffee'
1062
- | 'coldfusion'
1063
- | 'crystal'
1064
- | 'csharp'
1065
- | 'csound_document'
1066
- | 'csound_orchestra'
1067
- | 'csound_score'
1068
- | 'csp'
1069
- | 'css'
1070
- | 'curly'
1071
- | 'd'
1072
- | 'dart'
1073
- | 'diff'
1074
- | 'django'
1075
- | 'dockerfile'
1076
- | 'dot'
1077
- | 'drools'
1078
- | 'edifact'
1079
- | 'eiffel'
1080
- | 'ejs'
1081
- | 'elixir'
1082
- | 'elm'
1083
- | 'erlang'
1084
- | 'forth'
1085
- | 'fortran'
1086
- | 'fsharp'
1087
- | 'fsl'
1088
- | 'ftl'
1089
- | 'gcode'
1090
- | 'gherkin'
1091
- | 'gitignore'
1092
- | 'glsl'
1093
- | 'gobstones'
1094
- | 'golang'
1095
- | 'graphqlschema'
1096
- | 'groovy'
1097
- | 'haml'
1098
- | 'handlebars'
1099
- | 'haskell'
1100
- | 'haskell_cabal'
1101
- | 'haxe'
1102
- | 'hjson'
1103
- | 'html'
1104
- | 'html_elixir'
1105
- | 'html_ruby'
1106
- | 'ini'
1107
- | 'io'
1108
- | 'jack'
1109
- | 'jade'
1110
- | 'java'
1111
- | 'javascript'
1112
- | 'json5'
1113
- | 'json'
1114
- | 'jsoniq'
1115
- | 'jsp'
1116
- | 'jssm'
1117
- | 'jsx'
1118
- | 'julia'
1119
- | 'kotlin'
1120
- | 'latex'
1121
- | 'less'
1122
- | 'liquid'
1123
- | 'lisp'
1124
- | 'livescript'
1125
- | 'logiql'
1126
- | 'logtalk'
1127
- | 'lsl'
1128
- | 'lua'
1129
- | 'luapage'
1130
- | 'lucene'
1131
- | 'makefile'
1132
- | 'markdown'
1133
- | 'mask'
1134
- | 'matlab'
1135
- | 'maze'
1136
- | 'mediawiki'
1137
- | 'mel'
1138
- | 'mixal'
1139
- | 'mushcode'
1140
- | 'mysql'
1141
- | 'nginx'
1142
- | 'nim'
1143
- | 'nix'
1144
- | 'nsis'
1145
- | 'nunjucks'
1146
- | 'objectivec'
1147
- | 'ocaml'
1148
- | 'pascal'
1149
- | 'perl6'
1150
- | 'perl'
1151
- | 'pgsql'
1152
- | 'php'
1153
- | 'php_laravel_blade'
1154
- | 'pig'
1155
- | 'plain_text'
1156
- | 'powershell'
1157
- | 'praat'
1158
- | 'prisma'
1159
- | 'prolog'
1160
- | 'properties'
1161
- | 'protobuf'
1162
- | 'puppet'
1163
- | 'python'
1164
- | 'qml'
1165
- | 'r'
1166
- | 'razor'
1167
- | 'rdoc'
1168
- | 'red'
1169
- | 'redshift'
1170
- | 'rhtml'
1171
- | 'rst'
1172
- | 'ruby'
1173
- | 'rust'
1174
- | 'sass'
1175
- | 'scad'
1176
- | 'scala'
1177
- | 'scheme'
1178
- | 'scss'
1179
- | 'sh'
1180
- | 'sjs'
1181
- | 'slim'
1182
- | 'smarty'
1183
- | 'snippets'
1184
- | 'soy_template'
1185
- | 'space'
1186
- | 'sparql'
1187
- | 'sql'
1188
- | 'sqlserver'
1189
- | 'stylus'
1190
- | 'svg'
1191
- | 'swift'
1192
- | 'tcl'
1193
- | 'terraform'
1194
- | 'tex'
1195
- | 'text'
1196
- | 'textile'
1197
- | 'toml'
1198
- | 'tsx'
1199
- | 'turtle'
1200
- | 'twig'
1201
- | 'export typescript'
1202
- | 'vala'
1203
- | 'vbscript'
1204
- | 'velocity'
1205
- | 'verilog'
1206
- | 'vhdl'
1207
- | 'visualforce'
1208
- | 'wollok'
1209
- | 'xml'
1210
- | 'xquery'
1211
- | 'yaml'
1212
- | 'zeek';
1213
-
1214
- export type MimeType =
1215
- | 'x-world/x-3dmf'
1216
- | 'application/x-authorware-bin'
1217
- | 'application/x-authorware-map'
1218
- | 'application/x-authorware-seg'
1219
- | 'text/vnd.abc'
1220
- | 'video/animaflex'
1221
- | 'application/postscript'
1222
- | 'audio/aiff'
1223
- | 'audio/x-aiff'
1224
- | 'application/x-aim'
1225
- | 'text/x-audiosoft-intra'
1226
- | 'application/x-navi-animation'
1227
- | 'application/x-nokia-9000-communicator-add-on-software'
1228
- | 'application/mime'
1229
- | 'application/arj'
1230
- | 'image/x-jg'
1231
- | 'video/x-ms-asf'
1232
- | 'text/x-asm'
1233
- | 'text/asp'
1234
- | 'application/x-mplayer2'
1235
- | 'video/x-ms-asf-plugin'
1236
- | 'audio/basic'
1237
- | 'audio/x-au'
1238
- | 'application/x-troff-msvideo'
1239
- | 'video/avi'
1240
- | 'video/msvideo'
1241
- | 'video/x-msvideo'
1242
- | 'video/avs-video'
1243
- | 'application/x-bcpio'
1244
- | 'application/mac-binary'
1245
- | 'application/macbinary'
1246
- | 'application/x-binary'
1247
- | 'application/x-macbinary'
1248
- | 'image/bmp'
1249
- | 'image/x-windows-bmp'
1250
- | 'application/book'
1251
- | 'application/x-bsh'
1252
- | 'application/x-bzip'
1253
- | 'application/x-bzip2'
1254
- | 'text/plain'
1255
- | 'text/x-c'
1256
- | 'application/vnd.ms-pki.seccat'
1257
- | 'application/clariscad'
1258
- | 'application/x-cocoa'
1259
- | 'application/cdf'
1260
- | 'application/x-cdf'
1261
- | 'application/x-netcdf'
1262
- | 'application/pkix-cert'
1263
- | 'application/x-x509-ca-cert'
1264
- | 'application/x-chat'
1265
- | 'application/java'
1266
- | 'application/java-byte-code'
1267
- | 'application/x-java-class'
1268
- | 'application/x-cpio'
1269
- | 'application/mac-compactpro'
1270
- | 'application/x-compactpro'
1271
- | 'application/x-cpt'
1272
- | 'application/pkcs-crl'
1273
- | 'application/pkix-crl'
1274
- | 'application/x-x509-user-cert'
1275
- | 'application/x-csh'
1276
- | 'text/x-script.csh'
1277
- | 'application/x-pointplus'
1278
- | 'text/css'
1279
- | 'text/csv'
1280
- | 'application/x-director'
1281
- | 'application/x-deepv'
1282
- | 'video/x-dv'
1283
- | 'video/dl'
1284
- | 'video/x-dl'
1285
- | 'application/msword'
1286
- | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
1287
- | 'application/commonground'
1288
- | 'application/drafting'
1289
- | 'application/x-dvi'
1290
- | 'drawing/x-dwf (old)'
1291
- | 'model/vnd.dwf'
1292
- | 'application/acad'
1293
- | 'image/vnd.dwg'
1294
- | 'image/x-dwg'
1295
- | 'application/dxf'
1296
- | 'text/x-script.elisp'
1297
- | 'application/x-bytecode.elisp (compiled elisp)'
1298
- | 'application/x-elc'
1299
- | 'application/x-envoy'
1300
- | 'application/x-esrehber'
1301
- | 'text/x-setext'
1302
- | 'application/envoy'
1303
- | 'text/x-fortran'
1304
- | 'application/vnd.fdf'
1305
- | 'application/fractals'
1306
- | 'image/fif'
1307
- | 'video/fli'
1308
- | 'video/x-fli'
1309
- | 'image/florian'
1310
- | 'text/vnd.fmi.flexstor'
1311
- | 'video/x-atomic3d-feature'
1312
- | 'image/vnd.fpx'
1313
- | 'image/vnd.net-fpx'
1314
- | 'application/freeloader'
1315
- | 'audio/make'
1316
- | 'image/g3fax'
1317
- | 'image/gif'
1318
- | 'video/gl'
1319
- | 'video/x-gl'
1320
- | 'audio/x-gsm'
1321
- | 'application/x-gsp'
1322
- | 'application/x-gss'
1323
- | 'application/x-gtar'
1324
- | 'application/x-compressed'
1325
- | 'application/x-gzip'
1326
- | 'multipart/x-gzip'
1327
- | 'text/x-h'
1328
- | 'application/x-hdf'
1329
- | 'application/x-helpfile'
1330
- | 'application/vnd.hp-hpgl'
1331
- | 'text/x-script'
1332
- | 'application/hlp'
1333
- | 'application/x-winhelp'
1334
- | 'application/binhex'
1335
- | 'application/binhex4'
1336
- | 'application/mac-binhex'
1337
- | 'application/mac-binhex40'
1338
- | 'application/x-binhex40'
1339
- | 'application/x-mac-binhex40'
1340
- | 'application/hta'
1341
- | 'text/x-component'
1342
- | 'text/html'
1343
- | 'text/webviewhtml'
1344
- | 'x-conference/x-cooltalk'
1345
- | 'image/x-icon'
1346
- | 'image/ief'
1347
- | 'application/iges'
1348
- | 'model/iges'
1349
- | 'application/x-ima'
1350
- | 'application/x-httpd-imap'
1351
- | 'application/inf'
1352
- | 'application/x-internett-signup'
1353
- | 'application/x-ip2'
1354
- | 'video/x-isvideo'
1355
- | 'audio/it'
1356
- | 'application/x-inventor'
1357
- | 'i-world/i-vrml'
1358
- | 'application/x-livescreen'
1359
- | 'audio/x-jam'
1360
- | 'text/x-java-source'
1361
- | 'application/x-java-commerce'
1362
- | 'image/jpeg'
1363
- | 'image/pjpeg'
1364
- | 'image/x-jps'
1365
- | 'application/x-javascript'
1366
- | 'application/javascript'
1367
- | 'application/ecmascript'
1368
- | 'text/javascript'
1369
- | 'text/ecmascript'
1370
- | 'application/json'
1371
- | 'image/jutvision'
1372
- | 'music/x-karaoke'
1373
- | 'application/x-ksh'
1374
- | 'text/x-script.ksh'
1375
- | 'audio/nspaudio'
1376
- | 'audio/x-nspaudio'
1377
- | 'audio/x-liveaudio'
1378
- | 'application/x-latex'
1379
- | 'application/lha'
1380
- | 'application/x-lha'
1381
- | 'application/x-lisp'
1382
- | 'text/x-script.lisp'
1383
- | 'text/x-la-asf'
1384
- | 'application/x-lzh'
1385
- | 'application/lzx'
1386
- | 'application/x-lzx'
1387
- | 'text/x-m'
1388
- | 'audio/mpeg'
1389
- | 'audio/x-mpequrl'
1390
- | 'audio/m4a'
1391
- | 'audio/x-m4a'
1392
- | 'application/x-troff-man'
1393
- | 'application/x-navimap'
1394
- | 'application/mbedlet'
1395
- | 'application/x-magic-cap-package-1.0'
1396
- | 'application/mcad'
1397
- | 'application/x-mathcad'
1398
- | 'image/vasa'
1399
- | 'text/mcf'
1400
- | 'application/netmc'
1401
- | 'text/markdown'
1402
- | 'application/x-troff-me'
1403
- | 'message/rfc822'
1404
- | 'application/x-midi'
1405
- | 'audio/midi'
1406
- | 'audio/x-mid'
1407
- | 'audio/x-midi'
1408
- | 'music/crescendo'
1409
- | 'x-music/x-midi'
1410
- | 'application/x-frame'
1411
- | 'application/x-mif'
1412
- | 'www/mime'
1413
- | 'audio/x-vnd.audioexplosion.mjuicemediafile'
1414
- | 'video/x-motion-jpeg'
1415
- | 'application/base64'
1416
- | 'application/x-meme'
1417
- | 'audio/mod'
1418
- | 'audio/x-mod'
1419
- | 'video/quicktime'
1420
- | 'video/x-sgi-movie'
1421
- | 'audio/x-mpeg'
1422
- | 'video/x-mpeg'
1423
- | 'video/x-mpeq2a'
1424
- | 'audio/mpeg3'
1425
- | 'audio/x-mpeg-3'
1426
- | 'video/mp4'
1427
- | 'application/x-project'
1428
- | 'video/mpeg'
1429
- | 'application/vnd.ms-project'
1430
- | 'application/marc'
1431
- | 'application/x-troff-ms'
1432
- | 'application/x-vnd.audioexplosion.mzz'
1433
- | 'image/naplps'
1434
- | 'application/vnd.nokia.configuration-message'
1435
- | 'image/x-niff'
1436
- | 'application/x-mix-transfer'
1437
- | 'application/x-conference'
1438
- | 'application/x-navidoc'
1439
- | 'application/octet-stream'
1440
- | 'application/oda'
1441
- | 'audio/ogg'
1442
- | 'application/ogg'
1443
- | 'video/ogg'
1444
- | 'application/x-omc'
1445
- | 'application/x-omcdatamaker'
1446
- | 'application/x-omcregerator'
1447
- | 'text/x-pascal'
1448
- | 'application/pkcs10'
1449
- | 'application/x-pkcs10'
1450
- | 'application/pkcs-12'
1451
- | 'application/x-pkcs12'
1452
- | 'application/x-pkcs7-signature'
1453
- | 'application/pkcs7-mime'
1454
- | 'application/x-pkcs7-mime'
1455
- | 'application/x-pkcs7-certreqresp'
1456
- | 'application/pkcs7-signature'
1457
- | 'application/pro_eng'
1458
- | 'text/pascal'
1459
- | 'image/x-portable-bitmap'
1460
- | 'application/vnd.hp-pcl'
1461
- | 'application/x-pcl'
1462
- | 'image/x-pict'
1463
- | 'image/x-pcx'
1464
- | 'chemical/x-pdb'
1465
- | 'application/pdf'
1466
- | 'audio/make.my.funk'
1467
- | 'image/x-portable-graymap'
1468
- | 'image/x-portable-greymap'
1469
- | 'image/pict'
1470
- | 'application/x-newton-compatible-pkg'
1471
- | 'application/vnd.ms-pki.pko'
1472
- | 'text/x-script.perl'
1473
- | 'application/x-pixclscript'
1474
- | 'image/x-xpixmap'
1475
- | 'text/x-script.perl-module'
1476
- | 'application/x-pagemaker'
1477
- | 'image/png'
1478
- | 'application/x-portable-anymap'
1479
- | 'image/x-portable-anymap'
1480
- | 'model/x-pov'
1481
- | 'image/x-portable-pixmap'
1482
- | 'application/mspowerpoint'
1483
- | 'application/powerpoint'
1484
- | 'application/vnd.ms-powerpoint'
1485
- | 'application/x-mspowerpoint'
1486
- | 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
1487
- | 'application/x-freelance'
1488
- | 'paleovu/x-pv'
1489
- | 'text/x-script.phyton'
1490
- | 'application/x-bytecode.python'
1491
- | 'audio/vnd.qcelp'
1492
- | 'image/x-quicktime'
1493
- | 'video/x-qtc'
1494
- | 'audio/x-pn-realaudio'
1495
- | 'audio/x-pn-realaudio-plugin'
1496
- | 'audio/x-realaudio'
1497
- | 'application/x-cmu-raster'
1498
- | 'image/cmu-raster'
1499
- | 'image/x-cmu-raster'
1500
- | 'text/x-script.rexx'
1501
- | 'image/vnd.rn-realflash'
1502
- | 'image/x-rgb'
1503
- | 'application/vnd.rn-realmedia'
1504
- | 'audio/mid'
1505
- | 'application/ringing-tones'
1506
- | 'application/vnd.nokia.ringing-tone'
1507
- | 'application/vnd.rn-realplayer'
1508
- | 'application/x-troff'
1509
- | 'image/vnd.rn-realpix'
1510
- | 'application/x-rtf'
1511
- | 'text/richtext'
1512
- | 'application/rtf'
1513
- | 'video/vnd.rn-realvideo'
1514
- | 'audio/s3m'
1515
- | 'application/x-tbook'
1516
- | 'application/x-lotusscreencam'
1517
- | 'text/x-script.guile'
1518
- | 'text/x-script.scheme'
1519
- | 'video/x-scm'
1520
- | 'application/sdp'
1521
- | 'application/x-sdp'
1522
- | 'application/sounder'
1523
- | 'application/sea'
1524
- | 'application/x-sea'
1525
- | 'application/set'
1526
- | 'text/sgml'
1527
- | 'text/x-sgml'
1528
- | 'application/x-sh'
1529
- | 'application/x-shar'
1530
- | 'text/x-script.sh'
1531
- | 'text/x-server-parsed-html'
1532
- | 'audio/x-psid'
1533
- | 'application/x-sit'
1534
- | 'application/x-stuffit'
1535
- | 'application/x-koan'
1536
- | 'application/x-seelogo'
1537
- | 'application/smil'
1538
- | 'audio/x-adpcm'
1539
- | 'application/solids'
1540
- | 'application/x-pkcs7-certificates'
1541
- | 'text/x-speech'
1542
- | 'application/futuresplash'
1543
- | 'application/x-sprite'
1544
- | 'application/x-wais-source'
1545
- | 'application/streamingmedia'
1546
- | 'application/vnd.ms-pki.certstore'
1547
- | 'application/step'
1548
- | 'application/sla'
1549
- | 'application/vnd.ms-pki.stl'
1550
- | 'application/x-navistyle'
1551
- | 'application/x-sv4cpio'
1552
- | 'application/x-sv4crc'
1553
- | 'image/svg+xml'
1554
- | 'application/x-world'
1555
- | 'x-world/x-svr'
1556
- | 'application/x-shockwave-flash'
1557
- | 'application/x-tar'
1558
- | 'application/toolbook'
1559
- | 'application/x-tcl'
1560
- | 'text/x-script.tcl'
1561
- | 'text/x-script.tcsh'
1562
- | 'application/x-tex'
1563
- | 'application/x-texinfo'
1564
- | 'application/plain'
1565
- | 'application/gnutar'
1566
- | 'image/tiff'
1567
- | 'image/x-tiff'
1568
- | 'application/toml'
1569
- | 'audio/tsp-audio'
1570
- | 'application/dsptype'
1571
- | 'audio/tsplayer'
1572
- | 'text/tab-separated-values'
1573
- | 'application/i-deas'
1574
- | 'text/uri-list'
1575
- | 'application/x-ustar'
1576
- | 'multipart/x-ustar'
1577
- | 'text/x-uuencode'
1578
- | 'application/x-cdlink'
1579
- | 'text/x-vcalendar'
1580
- | 'application/vda'
1581
- | 'video/vdo'
1582
- | 'application/groupwise'
1583
- | 'video/vivo'
1584
- | 'video/vnd.vivo'
1585
- | 'application/vocaltec-media-desc'
1586
- | 'application/vocaltec-media-file'
1587
- | 'audio/voc'
1588
- | 'audio/x-voc'
1589
- | 'video/vosaic'
1590
- | 'audio/voxware'
1591
- | 'audio/x-twinvq-plugin'
1592
- | 'audio/x-twinvq'
1593
- | 'application/x-vrml'
1594
- | 'model/vrml'
1595
- | 'x-world/x-vrml'
1596
- | 'x-world/x-vrt'
1597
- | 'application/x-visio'
1598
- | 'application/wordperfect6.0'
1599
- | 'application/wordperfect6.1'
1600
- | 'audio/wav'
1601
- | 'audio/x-wav'
1602
- | 'application/x-qpro'
1603
- | 'image/vnd.wap.wbmp'
1604
- | 'application/vnd.xara'
1605
- | 'video/webm'
1606
- | 'audio/webm'
1607
- | 'image/webp'
1608
- | 'application/x-123'
1609
- | 'windows/metafile'
1610
- | 'text/vnd.wap.wml'
1611
- | 'application/vnd.wap.wmlc'
1612
- | 'text/vnd.wap.wmlscript'
1613
- | 'application/vnd.wap.wmlscriptc'
1614
- | 'video/x-ms-wmv'
1615
- | 'application/wordperfect'
1616
- | 'application/x-wpwin'
1617
- | 'application/x-lotus'
1618
- | 'application/mswrite'
1619
- | 'application/x-wri'
1620
- | 'text/scriplet'
1621
- | 'application/x-wintalk'
1622
- | 'image/x-xbitmap'
1623
- | 'image/x-xbm'
1624
- | 'image/xbm'
1625
- | 'video/x-amt-demorun'
1626
- | 'xgl/drawing'
1627
- | 'image/vnd.xiff'
1628
- | 'application/excel'
1629
- | 'application/vnd.ms-excel'
1630
- | 'application/x-excel'
1631
- | 'application/x-msexcel'
1632
- | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
1633
- | 'audio/xm'
1634
- | 'application/xml'
1635
- | 'text/xml'
1636
- | 'xgl/movie'
1637
- | 'application/x-vnd.ls-xpix'
1638
- | 'image/xpm'
1639
- | 'video/x-amt-showrun'
1640
- | 'image/x-xwd'
1641
- | 'image/x-xwindowdump'
1642
- | 'text/vnd.yaml'
1643
- | 'application/x-compress'
1644
- | 'application/x-zip-compressed'
1645
- | 'application/zip'
1646
- | 'multipart/x-zip'
1647
- | 'text/x-script.zsh';