@datocms/cma-client 3.3.7 → 3.3.9

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 (69) hide show
  1. package/dist/cjs/generated/Client.js +2 -1
  2. package/dist/cjs/generated/Client.js.map +1 -1
  3. package/dist/cjs/generated/resources/ItemType.js +17 -0
  4. package/dist/cjs/generated/resources/ItemType.js.map +1 -1
  5. package/dist/cjs/generated/resources/MenuItem.js +36 -0
  6. package/dist/cjs/generated/resources/MenuItem.js.map +1 -1
  7. package/dist/cjs/generated/resources/Role.js +2 -0
  8. package/dist/cjs/generated/resources/Role.js.map +1 -1
  9. package/dist/cjs/generated/resources/SchemaMenuItem.js +36 -0
  10. package/dist/cjs/generated/resources/SchemaMenuItem.js.map +1 -1
  11. package/dist/cjs/generated/resources/Upload.js +34 -2
  12. package/dist/cjs/generated/resources/Upload.js.map +1 -1
  13. package/dist/cjs/generated/resources/UploadCollection.js +238 -0
  14. package/dist/cjs/generated/resources/UploadCollection.js.map +1 -0
  15. package/dist/cjs/generated/resources/WebhookCall.js +4 -4
  16. package/dist/cjs/generated/resources/WebhookCall.js.map +1 -1
  17. package/dist/cjs/generated/resources/index.js +3 -1
  18. package/dist/cjs/generated/resources/index.js.map +1 -1
  19. package/dist/esm/generated/Client.d.ts +1 -0
  20. package/dist/esm/generated/Client.js +2 -1
  21. package/dist/esm/generated/Client.js.map +1 -1
  22. package/dist/esm/generated/SchemaTypes.d.ts +484 -40
  23. package/dist/esm/generated/SimpleSchemaTypes.d.ts +415 -148
  24. package/dist/esm/generated/resources/ItemType.d.ts +11 -0
  25. package/dist/esm/generated/resources/ItemType.js +17 -0
  26. package/dist/esm/generated/resources/ItemType.js.map +1 -1
  27. package/dist/esm/generated/resources/MenuItem.d.ts +22 -0
  28. package/dist/esm/generated/resources/MenuItem.js +36 -0
  29. package/dist/esm/generated/resources/MenuItem.js.map +1 -1
  30. package/dist/esm/generated/resources/Role.js +2 -0
  31. package/dist/esm/generated/resources/Role.js.map +1 -1
  32. package/dist/esm/generated/resources/SchemaMenuItem.d.ts +22 -0
  33. package/dist/esm/generated/resources/SchemaMenuItem.js +36 -0
  34. package/dist/esm/generated/resources/SchemaMenuItem.js.map +1 -1
  35. package/dist/esm/generated/resources/Upload.d.ts +18 -0
  36. package/dist/esm/generated/resources/Upload.js +34 -2
  37. package/dist/esm/generated/resources/Upload.js.map +1 -1
  38. package/dist/esm/generated/resources/UploadCollection.d.ts +118 -0
  39. package/dist/esm/generated/resources/UploadCollection.js +210 -0
  40. package/dist/esm/generated/resources/UploadCollection.js.map +1 -0
  41. package/dist/esm/generated/resources/WebhookCall.d.ts +2 -2
  42. package/dist/esm/generated/resources/WebhookCall.js +4 -4
  43. package/dist/esm/generated/resources/WebhookCall.js.map +1 -1
  44. package/dist/esm/generated/resources/index.d.ts +1 -0
  45. package/dist/esm/generated/resources/index.js +1 -0
  46. package/dist/esm/generated/resources/index.js.map +1 -1
  47. package/dist/types/generated/Client.d.ts +1 -0
  48. package/dist/types/generated/SchemaTypes.d.ts +484 -40
  49. package/dist/types/generated/SimpleSchemaTypes.d.ts +415 -148
  50. package/dist/types/generated/resources/ItemType.d.ts +11 -0
  51. package/dist/types/generated/resources/MenuItem.d.ts +22 -0
  52. package/dist/types/generated/resources/SchemaMenuItem.d.ts +22 -0
  53. package/dist/types/generated/resources/Upload.d.ts +18 -0
  54. package/dist/types/generated/resources/UploadCollection.d.ts +118 -0
  55. package/dist/types/generated/resources/WebhookCall.d.ts +2 -2
  56. package/dist/types/generated/resources/index.d.ts +1 -0
  57. package/package.json +2 -2
  58. package/resources.json +240 -6
  59. package/src/generated/Client.ts +3 -1
  60. package/src/generated/SchemaTypes.ts +515 -42
  61. package/src/generated/SimpleSchemaTypes.ts +425 -149
  62. package/src/generated/resources/ItemType.ts +22 -0
  63. package/src/generated/resources/MenuItem.ts +44 -0
  64. package/src/generated/resources/Role.ts +2 -0
  65. package/src/generated/resources/SchemaMenuItem.ts +47 -0
  66. package/src/generated/resources/Upload.ts +49 -2
  67. package/src/generated/resources/UploadCollection.ts +251 -0
  68. package/src/generated/resources/WebhookCall.ts +4 -4
  69. package/src/generated/resources/index.ts +1 -0
@@ -332,6 +332,39 @@ export type MenuItemInstancesHrefSchema = {
332
332
  ids: string;
333
333
  };
334
334
  };
335
+ /**
336
+ * This interface was referenced by `MenuItem`'s JSON-Schema
337
+ * via the `reorder.schema` link.
338
+ */
339
+ export type MenuItemReorderSchema = {
340
+ id: MenuItemIdentity;
341
+ type?: MenuItemType;
342
+ /**
343
+ * Ordering index
344
+ */
345
+ position: number;
346
+ parent: null | MenuItemData;
347
+ }[];
348
+ /**
349
+ * ID of job
350
+ *
351
+ * This interface was referenced by `Job`'s JSON-Schema
352
+ * via the `definition` "identity".
353
+ *
354
+ * This interface was referenced by `Job`'s JSON-Schema
355
+ * via the `definition` "id".
356
+ */
357
+ export type JobIdentity = string;
358
+ /**
359
+ * This interface was referenced by `Job`'s JSON-Schema
360
+ * via the `definition` "type".
361
+ */
362
+ export type JobType = 'job';
363
+ /**
364
+ * This interface was referenced by `MenuItem`'s JSON-Schema
365
+ * via the `reorder.jobSchema` link.
366
+ */
367
+ export type MenuItemReorderJobSchema = MenuItem[];
335
368
  /**
336
369
  * RFC 4122 UUID of schema menu item expressed in URL-safe base64 format
337
370
  *
@@ -366,6 +399,76 @@ export type SchemaMenuItemInstancesHrefSchema = {
366
399
  ids: string;
367
400
  };
368
401
  };
402
+ /**
403
+ * This interface was referenced by `SchemaMenuItem`'s JSON-Schema
404
+ * via the `reorder.schema` link.
405
+ */
406
+ export type SchemaMenuItemReorderSchema = {
407
+ id: SchemaMenuItemIdentity;
408
+ type?: SchemaMenuItemType;
409
+ /**
410
+ * Ordering index
411
+ */
412
+ position: number;
413
+ parent: null | SchemaMenuItemData;
414
+ }[];
415
+ /**
416
+ * This interface was referenced by `SchemaMenuItem`'s JSON-Schema
417
+ * via the `reorder.jobSchema` link.
418
+ */
419
+ export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
420
+ /**
421
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
422
+ *
423
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
424
+ * via the `definition` "identity".
425
+ *
426
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
427
+ * via the `definition` "id".
428
+ */
429
+ export type UploadCollectionIdentity = string;
430
+ /**
431
+ * JSON API type field
432
+ *
433
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
434
+ * via the `definition` "type".
435
+ */
436
+ export type UploadCollectionType = 'upload_collection';
437
+ /**
438
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
439
+ * via the `instances.targetSchema` link.
440
+ */
441
+ export type UploadCollectionInstancesTargetSchema = UploadCollection[];
442
+ /**
443
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
444
+ * via the `instances.hrefSchema` link.
445
+ */
446
+ export type UploadCollectionInstancesHrefSchema = {
447
+ filter?: {
448
+ /**
449
+ * IDs to fetch, comma separated
450
+ */
451
+ ids: string;
452
+ };
453
+ };
454
+ /**
455
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
456
+ * via the `reorder.schema` link.
457
+ */
458
+ export type UploadCollectionReorderSchema = {
459
+ id: UploadCollectionIdentity;
460
+ type?: UploadCollectionType;
461
+ /**
462
+ * Ordering index
463
+ */
464
+ position: number;
465
+ parent: null | UploadCollectionData;
466
+ }[];
467
+ /**
468
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
469
+ * via the `reorder.jobSchema` link.
470
+ */
471
+ export type UploadCollectionReorderJobSchema = UploadCollection[];
369
472
  /**
370
473
  * This interface was referenced by `Item`'s JSON-Schema
371
474
  * via the `definition` "type".
@@ -435,21 +538,6 @@ export type ItemTypeCreateHrefSchema = {
435
538
  schema_menu_item_id?: string;
436
539
  [k: string]: unknown;
437
540
  };
438
- /**
439
- * ID of job
440
- *
441
- * This interface was referenced by `Job`'s JSON-Schema
442
- * via the `definition` "identity".
443
- *
444
- * This interface was referenced by `Job`'s JSON-Schema
445
- * via the `definition` "id".
446
- */
447
- export type JobIdentity = string;
448
- /**
449
- * This interface was referenced by `Job`'s JSON-Schema
450
- * via the `definition` "type".
451
- */
452
- export type JobType = 'job';
453
541
  /**
454
542
  * This interface was referenced by `ItemType`'s JSON-Schema
455
543
  * via the `instances.targetSchema` link.
@@ -466,6 +554,29 @@ export type ItemTypeDestroyHrefSchema = {
466
554
  skip_menu_items_deletion?: boolean;
467
555
  [k: string]: unknown;
468
556
  };
557
+ /**
558
+ * This interface was referenced by `ItemType`'s JSON-Schema
559
+ * via the `reorder_fields_and_fieldsets.schema` link.
560
+ */
561
+ export type ItemTypeReorderFieldsAndFieldsetsSchema = (
562
+ | {
563
+ id: FieldIdentity;
564
+ type?: FieldType;
565
+ /**
566
+ * Ordering index
567
+ */
568
+ position: number;
569
+ fieldset: null | FieldsetData;
570
+ }
571
+ | {
572
+ id: FieldsetIdentity;
573
+ type?: FieldsetType;
574
+ /**
575
+ * Ordering index
576
+ */
577
+ position: number;
578
+ }
579
+ )[];
469
580
  /**
470
581
  * This interface was referenced by `Field`'s JSON-Schema
471
582
  * via the `instances.targetSchema` link.
@@ -486,6 +597,11 @@ export type FieldRelatedTargetSchema = Field[];
486
597
  * via the `instances.targetSchema` link.
487
598
  */
488
599
  export type FieldsetInstancesTargetSchema = Fieldset[];
600
+ /**
601
+ * This interface was referenced by `ItemType`'s JSON-Schema
602
+ * via the `reorder_fields_and_fieldsets.jobSchema` link.
603
+ */
604
+ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = (Field | Fieldset)[];
489
605
  /**
490
606
  * JSON web token for the session
491
607
  *
@@ -1045,6 +1161,11 @@ export type UploadReferencesHrefSchema = {
1045
1161
  * via the `bulk_tag.jobSchema` link.
1046
1162
  */
1047
1163
  export type UploadBulkTagJobSchema = unknown[];
1164
+ /**
1165
+ * This interface was referenced by `Upload`'s JSON-Schema
1166
+ * via the `bulk_set_upload_collection.jobSchema` link.
1167
+ */
1168
+ export type UploadBulkSetUploadCollectionJobSchema = unknown[];
1048
1169
  /**
1049
1170
  * This interface was referenced by `Upload`'s JSON-Schema
1050
1171
  * via the `bulk_destroy.jobSchema` link.
@@ -1753,6 +1874,7 @@ export type DatoApi = {
1753
1874
  site_plan?: SitePlan;
1754
1875
  menu_item?: MenuItem;
1755
1876
  schema_menu_item?: SchemaMenuItem;
1877
+ upload_collection?: UploadCollection;
1756
1878
  item_type?: ItemType;
1757
1879
  field?: Field;
1758
1880
  fieldset?: Fieldset;
@@ -1845,7 +1967,11 @@ export type Role = {
1845
1967
  /**
1846
1968
  * Can create/edit shared filters (both for models and the media area)
1847
1969
  */
1848
- can_manage_shared_filters?: boolean;
1970
+ can_manage_shared_filters: boolean;
1971
+ /**
1972
+ * Can create/edit upload collections
1973
+ */
1974
+ can_manage_upload_collections: boolean;
1849
1975
  /**
1850
1976
  * Can create/edit Build triggers
1851
1977
  */
@@ -2088,7 +2214,11 @@ export type RoleMeta = {
2088
2214
  /**
2089
2215
  * Can create/edit shared filters (both for models and the media area)
2090
2216
  */
2091
- can_manage_shared_filters?: boolean;
2217
+ can_manage_shared_filters: boolean;
2218
+ /**
2219
+ * Can create/edit upload collections
2220
+ */
2221
+ can_manage_upload_collections: boolean;
2092
2222
  /**
2093
2223
  * Can create/edit Build triggers
2094
2224
  */
@@ -2316,7 +2446,11 @@ export type RoleAttributes = {
2316
2446
  /**
2317
2447
  * Can create/edit shared filters (both for models and the media area)
2318
2448
  */
2319
- can_manage_shared_filters?: boolean;
2449
+ can_manage_shared_filters: boolean;
2450
+ /**
2451
+ * Can create/edit upload collections
2452
+ */
2453
+ can_manage_upload_collections: boolean;
2320
2454
  /**
2321
2455
  * Can create/edit Build triggers
2322
2456
  */
@@ -2553,6 +2687,10 @@ export type RoleCreateSchema = {
2553
2687
  * Can create/edit shared filters (both for models and the media area)
2554
2688
  */
2555
2689
  can_manage_shared_filters?: boolean;
2690
+ /**
2691
+ * Can create/edit upload collections
2692
+ */
2693
+ can_manage_upload_collections?: boolean;
2556
2694
  /**
2557
2695
  * Can create/edit Build triggers
2558
2696
  */
@@ -2782,6 +2920,10 @@ export type RoleUpdateSchema = {
2782
2920
  * Can create/edit shared filters (both for models and the media area)
2783
2921
  */
2784
2922
  can_manage_shared_filters?: boolean;
2923
+ /**
2924
+ * Can create/edit upload collections
2925
+ */
2926
+ can_manage_upload_collections?: boolean;
2785
2927
  /**
2786
2928
  * Can create/edit Build triggers
2787
2929
  */
@@ -4282,6 +4424,153 @@ export type MenuItemUpdateSchema = {
4282
4424
  parent?: null | MenuItemData;
4283
4425
  };
4284
4426
 
4427
+ /**
4428
+ * This interface was referenced by `MenuItem`'s JSON-Schema
4429
+ * via the `reorder.targetSchema` link.
4430
+ *
4431
+ * This interface was referenced by `SchemaMenuItem`'s JSON-Schema
4432
+ * via the `reorder.targetSchema` link.
4433
+ *
4434
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4435
+ * via the `reorder.targetSchema` link.
4436
+ *
4437
+ * This interface was referenced by `ItemType`'s JSON-Schema
4438
+ * via the `update.targetSchema` link.
4439
+ *
4440
+ * This interface was referenced by `ItemType`'s JSON-Schema
4441
+ * via the `destroy.targetSchema` link.
4442
+ *
4443
+ * This interface was referenced by `ItemType`'s JSON-Schema
4444
+ * via the `reorder_fields_and_fieldsets.targetSchema` link.
4445
+ *
4446
+ * This interface was referenced by `Field`'s JSON-Schema
4447
+ * via the `create.targetSchema` link.
4448
+ *
4449
+ * This interface was referenced by `Field`'s JSON-Schema
4450
+ * via the `update.targetSchema` link.
4451
+ *
4452
+ * This interface was referenced by `Field`'s JSON-Schema
4453
+ * via the `destroy.targetSchema` link.
4454
+ *
4455
+ * This interface was referenced by `Field`'s JSON-Schema
4456
+ * via the `duplicate.targetSchema` link.
4457
+ *
4458
+ * This interface was referenced by `Item`'s JSON-Schema
4459
+ * via the `duplicate.targetSchema` link.
4460
+ *
4461
+ * This interface was referenced by `Item`'s JSON-Schema
4462
+ * via the `destroy.targetSchema` link.
4463
+ *
4464
+ * This interface was referenced by `Item`'s JSON-Schema
4465
+ * via the `batch_destroy.targetSchema` link.
4466
+ *
4467
+ * This interface was referenced by `Item`'s JSON-Schema
4468
+ * via the `batch_publish.targetSchema` link.
4469
+ *
4470
+ * This interface was referenced by `Item`'s JSON-Schema
4471
+ * via the `batch_unpublish.targetSchema` link.
4472
+ *
4473
+ * This interface was referenced by `Item`'s JSON-Schema
4474
+ * via the `bulk_publish.targetSchema` link.
4475
+ *
4476
+ * This interface was referenced by `Item`'s JSON-Schema
4477
+ * via the `bulk_unpublish.targetSchema` link.
4478
+ *
4479
+ * This interface was referenced by `Item`'s JSON-Schema
4480
+ * via the `bulk_destroy.targetSchema` link.
4481
+ *
4482
+ * This interface was referenced by `Item`'s JSON-Schema
4483
+ * via the `bulk_move_to_stage.targetSchema` link.
4484
+ *
4485
+ * This interface was referenced by `ItemVersion`'s JSON-Schema
4486
+ * via the `restore.targetSchema` link.
4487
+ *
4488
+ * This interface was referenced by `Upload`'s JSON-Schema
4489
+ * via the `create.targetSchema` link.
4490
+ *
4491
+ * This interface was referenced by `Upload`'s JSON-Schema
4492
+ * via the `update.targetSchema` link.
4493
+ *
4494
+ * This interface was referenced by `Upload`'s JSON-Schema
4495
+ * via the `batch_add_tags.targetSchema` link.
4496
+ *
4497
+ * This interface was referenced by `Upload`'s JSON-Schema
4498
+ * via the `batch_destroy.targetSchema` link.
4499
+ *
4500
+ * This interface was referenced by `Upload`'s JSON-Schema
4501
+ * via the `bulk_tag.targetSchema` link.
4502
+ *
4503
+ * This interface was referenced by `Upload`'s JSON-Schema
4504
+ * via the `bulk_set_upload_collection.targetSchema` link.
4505
+ *
4506
+ * This interface was referenced by `Upload`'s JSON-Schema
4507
+ * via the `bulk_destroy.targetSchema` link.
4508
+ *
4509
+ * This interface was referenced by `UploadTrack`'s JSON-Schema
4510
+ * via the `create.targetSchema` link.
4511
+ *
4512
+ * This interface was referenced by `UploadTrack`'s JSON-Schema
4513
+ * via the `destroy.targetSchema` link.
4514
+ *
4515
+ * This interface was referenced by `UploadTrack`'s JSON-Schema
4516
+ * via the `generate_subtitles.targetSchema` link.
4517
+ *
4518
+ * This interface was referenced by `Site`'s JSON-Schema
4519
+ * via the `update.targetSchema` link.
4520
+ *
4521
+ * This interface was referenced by `Site`'s JSON-Schema
4522
+ * via the `activate_improved_timezone_management.targetSchema` link.
4523
+ *
4524
+ * This interface was referenced by `DatoApi`'s JSON-Schema
4525
+ * via the `definition` "job".
4526
+ */
4527
+ export type Job = {
4528
+ id: JobIdentity;
4529
+ type: JobType;
4530
+ };
4531
+ export type MenuItemReorderTargetSchema = Job;
4532
+ export type SchemaMenuItemReorderTargetSchema = Job;
4533
+ export type UploadCollectionReorderTargetSchema = Job;
4534
+ export type ItemTypeUpdateTargetSchema = Job;
4535
+ export type ItemTypeDestroyTargetSchema = Job;
4536
+ export type ItemTypeReorderFieldsAndFieldsetsTargetSchema = Job;
4537
+ export type FieldCreateTargetSchema = Job;
4538
+ export type FieldUpdateTargetSchema = Job;
4539
+ export type FieldDestroyTargetSchema = Job;
4540
+ export type FieldDuplicateTargetSchema = Job;
4541
+ export type ItemDuplicateTargetSchema = Job;
4542
+ export type ItemDestroyTargetSchema = Job;
4543
+ export type ItemBatchDestroyTargetSchema = Job;
4544
+ export type ItemBatchPublishTargetSchema = Job;
4545
+ export type ItemBatchUnpublishTargetSchema = Job;
4546
+ export type ItemBulkPublishTargetSchema = Job;
4547
+ export type ItemBulkUnpublishTargetSchema = Job;
4548
+ export type ItemBulkDestroyTargetSchema = Job;
4549
+ export type ItemBulkMoveToStageTargetSchema = Job;
4550
+ export type ItemVersionRestoreTargetSchema = Job;
4551
+ export type UploadCreateTargetSchema = Job;
4552
+ export type UploadUpdateTargetSchema = Job;
4553
+ export type UploadBatchAddTagsTargetSchema = Job;
4554
+ export type UploadBatchDestroyTargetSchema = Job;
4555
+ export type UploadBulkTagTargetSchema = Job;
4556
+ export type UploadBulkSetUploadCollectionTargetSchema = Job;
4557
+ export type UploadBulkDestroyTargetSchema = Job;
4558
+ export type UploadTrackCreateTargetSchema = Job;
4559
+ export type UploadTrackDestroyTargetSchema = Job;
4560
+ export type UploadTrackGenerateSubtitlesTargetSchema = Job;
4561
+ export type SiteUpdateTargetSchema = Job;
4562
+ export type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
4563
+ /**
4564
+ * JSON API data
4565
+ *
4566
+ * This interface was referenced by `Job`'s JSON-Schema
4567
+ * via the `definition` "data".
4568
+ */
4569
+ export type JobData = {
4570
+ type: JobType;
4571
+ id: JobIdentity;
4572
+ };
4573
+
4285
4574
  /**
4286
4575
  * In DatoCMS you can organize the different models and blocks present in your administrative area reordering and grouping them, so that their purpose will be more clear to the final editor.
4287
4576
  *
@@ -4402,6 +4691,106 @@ export type SchemaMenuItemUpdateSchema = {
4402
4691
  children?: SchemaMenuItemData[];
4403
4692
  };
4404
4693
 
4694
+ /**
4695
+ * In DatoCMS you can organize the uploads present in your administrative area in collection, so that the final editors can easily navigate uploads.
4696
+ *
4697
+ * This interface was referenced by `DatoApi`'s JSON-Schema
4698
+ * via the `definition` "upload_collection".
4699
+ */
4700
+ export type UploadCollection = {
4701
+ id: UploadCollectionIdentity;
4702
+ type: UploadCollectionType;
4703
+ /**
4704
+ * The label of the upload collection
4705
+ */
4706
+ label: string;
4707
+ /**
4708
+ * Ordering index
4709
+ */
4710
+ position: number;
4711
+ parent: null | UploadCollectionData;
4712
+ children: UploadCollectionData[];
4713
+ };
4714
+ export type UploadCollectionCreateTargetSchema = UploadCollection;
4715
+ export type UploadCollectionUpdateTargetSchema = UploadCollection;
4716
+ export type UploadCollectionSelfTargetSchema = UploadCollection;
4717
+ export type UploadCollectionDestroyTargetSchema = UploadCollection;
4718
+ /**
4719
+ * JSON API data
4720
+ *
4721
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4722
+ * via the `definition` "data".
4723
+ */
4724
+ export type UploadCollectionData = {
4725
+ type: UploadCollectionType;
4726
+ id: UploadCollectionIdentity;
4727
+ };
4728
+
4729
+ /**
4730
+ * JSON API attributes
4731
+ *
4732
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4733
+ * via the `definition` "attributes".
4734
+ */
4735
+ export type UploadCollectionAttributes = {
4736
+ /**
4737
+ * The label of the upload collection
4738
+ */
4739
+ label: string;
4740
+ /**
4741
+ * Ordering index
4742
+ */
4743
+ position: number;
4744
+ };
4745
+
4746
+ /**
4747
+ * JSON API links
4748
+ *
4749
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4750
+ * via the `definition` "relationships".
4751
+ */
4752
+ export type UploadCollectionRelationships = {
4753
+ parent: null | UploadCollectionData;
4754
+ children: UploadCollectionData[];
4755
+ };
4756
+
4757
+ /**
4758
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4759
+ * via the `create.schema` link.
4760
+ */
4761
+ export type UploadCollectionCreateSchema = {
4762
+ id?: UploadCollectionIdentity;
4763
+ type?: UploadCollectionType;
4764
+ /**
4765
+ * The label of the upload collection
4766
+ */
4767
+ label: string;
4768
+ /**
4769
+ * Ordering index
4770
+ */
4771
+ position?: number;
4772
+ parent?: null | UploadCollectionData;
4773
+ };
4774
+
4775
+ /**
4776
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4777
+ * via the `update.schema` link.
4778
+ */
4779
+ export type UploadCollectionUpdateSchema = {
4780
+ id?: UploadCollectionIdentity;
4781
+ type?: UploadCollectionType;
4782
+ /**
4783
+ * The label of the upload collection
4784
+ */
4785
+ label?: string;
4786
+ /**
4787
+ * Ordering index
4788
+ */
4789
+ position?: number;
4790
+ parent?: null | UploadCollectionData;
4791
+ children?: UploadCollectionData[];
4792
+ };
4793
+
4405
4794
  /**
4406
4795
  * The way you define the kind of content you can edit inside your administrative area passes through the concept of Models, which are much like database tables. For backward-compatibility reasons, the API refers to models as "item types".
4407
4796
  *
@@ -4799,133 +5188,6 @@ export type ItemTypeUpdateSchema = {
4799
5188
  };
4800
5189
  };
4801
5190
 
4802
- /**
4803
- * This interface was referenced by `ItemType`'s JSON-Schema
4804
- * via the `update.targetSchema` link.
4805
- *
4806
- * This interface was referenced by `ItemType`'s JSON-Schema
4807
- * via the `destroy.targetSchema` link.
4808
- *
4809
- * This interface was referenced by `Field`'s JSON-Schema
4810
- * via the `create.targetSchema` link.
4811
- *
4812
- * This interface was referenced by `Field`'s JSON-Schema
4813
- * via the `update.targetSchema` link.
4814
- *
4815
- * This interface was referenced by `Field`'s JSON-Schema
4816
- * via the `destroy.targetSchema` link.
4817
- *
4818
- * This interface was referenced by `Field`'s JSON-Schema
4819
- * via the `duplicate.targetSchema` link.
4820
- *
4821
- * This interface was referenced by `Item`'s JSON-Schema
4822
- * via the `duplicate.targetSchema` link.
4823
- *
4824
- * This interface was referenced by `Item`'s JSON-Schema
4825
- * via the `destroy.targetSchema` link.
4826
- *
4827
- * This interface was referenced by `Item`'s JSON-Schema
4828
- * via the `batch_destroy.targetSchema` link.
4829
- *
4830
- * This interface was referenced by `Item`'s JSON-Schema
4831
- * via the `batch_publish.targetSchema` link.
4832
- *
4833
- * This interface was referenced by `Item`'s JSON-Schema
4834
- * via the `batch_unpublish.targetSchema` link.
4835
- *
4836
- * This interface was referenced by `Item`'s JSON-Schema
4837
- * via the `bulk_publish.targetSchema` link.
4838
- *
4839
- * This interface was referenced by `Item`'s JSON-Schema
4840
- * via the `bulk_unpublish.targetSchema` link.
4841
- *
4842
- * This interface was referenced by `Item`'s JSON-Schema
4843
- * via the `bulk_destroy.targetSchema` link.
4844
- *
4845
- * This interface was referenced by `Item`'s JSON-Schema
4846
- * via the `bulk_move_to_stage.targetSchema` link.
4847
- *
4848
- * This interface was referenced by `ItemVersion`'s JSON-Schema
4849
- * via the `restore.targetSchema` link.
4850
- *
4851
- * This interface was referenced by `Upload`'s JSON-Schema
4852
- * via the `create.targetSchema` link.
4853
- *
4854
- * This interface was referenced by `Upload`'s JSON-Schema
4855
- * via the `update.targetSchema` link.
4856
- *
4857
- * This interface was referenced by `Upload`'s JSON-Schema
4858
- * via the `batch_add_tags.targetSchema` link.
4859
- *
4860
- * This interface was referenced by `Upload`'s JSON-Schema
4861
- * via the `batch_destroy.targetSchema` link.
4862
- *
4863
- * This interface was referenced by `Upload`'s JSON-Schema
4864
- * via the `bulk_tag.targetSchema` link.
4865
- *
4866
- * This interface was referenced by `Upload`'s JSON-Schema
4867
- * via the `bulk_destroy.targetSchema` link.
4868
- *
4869
- * This interface was referenced by `UploadTrack`'s JSON-Schema
4870
- * via the `create.targetSchema` link.
4871
- *
4872
- * This interface was referenced by `UploadTrack`'s JSON-Schema
4873
- * via the `destroy.targetSchema` link.
4874
- *
4875
- * This interface was referenced by `UploadTrack`'s JSON-Schema
4876
- * via the `generate_subtitles.targetSchema` link.
4877
- *
4878
- * This interface was referenced by `Site`'s JSON-Schema
4879
- * via the `update.targetSchema` link.
4880
- *
4881
- * This interface was referenced by `Site`'s JSON-Schema
4882
- * via the `activate_improved_timezone_management.targetSchema` link.
4883
- *
4884
- * This interface was referenced by `DatoApi`'s JSON-Schema
4885
- * via the `definition` "job".
4886
- */
4887
- export type Job = {
4888
- id: JobIdentity;
4889
- type: JobType;
4890
- };
4891
- export type ItemTypeUpdateTargetSchema = Job;
4892
- export type ItemTypeDestroyTargetSchema = Job;
4893
- export type FieldCreateTargetSchema = Job;
4894
- export type FieldUpdateTargetSchema = Job;
4895
- export type FieldDestroyTargetSchema = Job;
4896
- export type FieldDuplicateTargetSchema = Job;
4897
- export type ItemDuplicateTargetSchema = Job;
4898
- export type ItemDestroyTargetSchema = Job;
4899
- export type ItemBatchDestroyTargetSchema = Job;
4900
- export type ItemBatchPublishTargetSchema = Job;
4901
- export type ItemBatchUnpublishTargetSchema = Job;
4902
- export type ItemBulkPublishTargetSchema = Job;
4903
- export type ItemBulkUnpublishTargetSchema = Job;
4904
- export type ItemBulkDestroyTargetSchema = Job;
4905
- export type ItemBulkMoveToStageTargetSchema = Job;
4906
- export type ItemVersionRestoreTargetSchema = Job;
4907
- export type UploadCreateTargetSchema = Job;
4908
- export type UploadUpdateTargetSchema = Job;
4909
- export type UploadBatchAddTagsTargetSchema = Job;
4910
- export type UploadBatchDestroyTargetSchema = Job;
4911
- export type UploadBulkTagTargetSchema = Job;
4912
- export type UploadBulkDestroyTargetSchema = Job;
4913
- export type UploadTrackCreateTargetSchema = Job;
4914
- export type UploadTrackDestroyTargetSchema = Job;
4915
- export type UploadTrackGenerateSubtitlesTargetSchema = Job;
4916
- export type SiteUpdateTargetSchema = Job;
4917
- export type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
4918
- /**
4919
- * JSON API data
4920
- *
4921
- * This interface was referenced by `Job`'s JSON-Schema
4922
- * via the `definition` "data".
4923
- */
4924
- export type JobData = {
4925
- type: JobType;
4926
- id: JobIdentity;
4927
- };
4928
-
4929
5191
  /**
4930
5192
  * DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
4931
5193
  *
@@ -4982,12 +5244,12 @@ export type JobData = {
4982
5244
  *
4983
5245
  * #### Setting the appearance to a field editor provided by a plugin
4984
5246
  *
4985
- * If the project contains a plugin that exposes [manual field editors](/docs/plugin-sdk/manual-field-extensions), you can also configure the field to be presented with it instead of using one of the build-in editors.
5247
+ * If the project contains a plugin that exposes [manual field editors](/docs/plugin-sdk/manual-field-extensions), you can also configure the field to be presented with it instead of using one of the built-in editors.
4986
5248
  *
4987
5249
  * In this case:
4988
5250
  *
4989
- * - the `editor` property must be the ID of the plugin;
4990
- * - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes;
5251
+ * - the `editor` property is the plugin's project-specific autogenerated UUID. You can get it from the last part of the plugin's URL within your project's Configuration screen (e.g. `https://your-project.admin.datocms.com/configuration/plugins/PLUGIN_UUID/`), or via API with a [List all plugins](/docs/content-management-api/resources/plugin/instances) call.
5252
+ * - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes. This is set in the plugin's own source code, within a `manualFieldExtension()` call in its entry point (usually something like `index.tsx`).
4991
5253
  * - the `parameters` property must provide a configuration object compatible with the [config screen of the manual field extension](/docs/plugin-sdk/manual-field-extensions#add-per-field-config-screens-to-manual-field-extensions), or an empty object if it doesn't require any configuration.
4992
5254
  *
4993
5255
  * ```js
@@ -7763,6 +8025,7 @@ export type Upload = {
7763
8025
  */
7764
8026
  alpha: number;
7765
8027
  }[];
8028
+ upload_collection: UploadCollectionData | null;
7766
8029
  creator:
7767
8030
  | AccountData
7768
8031
  | AccessTokenData
@@ -7962,6 +8225,7 @@ export type UploadAttributes = {
7962
8225
  * via the `definition` "relationships".
7963
8226
  */
7964
8227
  export type UploadRelationships = {
8228
+ upload_collection: UploadCollectionData | null;
7965
8229
  creator:
7966
8230
  | AccountData
7967
8231
  | AccessTokenData
@@ -8035,6 +8299,7 @@ export type UploadCreateSchema = {
8035
8299
  * Tags
8036
8300
  */
8037
8301
  tags?: string[];
8302
+ upload_collection?: UploadCollectionData | null;
8038
8303
  };
8039
8304
 
8040
8305
  /**
@@ -8112,6 +8377,7 @@ export type UploadUpdateSchema = {
8112
8377
  | UserData
8113
8378
  | SsoUserData
8114
8379
  | OrganizationData;
8380
+ upload_collection?: UploadCollectionData | null;
8115
8381
  };
8116
8382
 
8117
8383
  /**
@@ -8139,6 +8405,16 @@ export type UploadBulkTagSchema = {
8139
8405
  uploads: UploadData[];
8140
8406
  };
8141
8407
 
8408
+ /**
8409
+ * This interface was referenced by `Upload`'s JSON-Schema
8410
+ * via the `bulk_set_upload_collection.schema` link.
8411
+ */
8412
+ export type UploadBulkSetUploadCollectionSchema = {
8413
+ type?: 'upload_bulk_set_upload_collection_operation';
8414
+ upload_collection: null | UploadCollectionData;
8415
+ uploads: UploadData[];
8416
+ };
8417
+
8142
8418
  /**
8143
8419
  * This interface was referenced by `Upload`'s JSON-Schema
8144
8420
  * via the `bulk_destroy.schema` link.
@@ -9078,7 +9354,7 @@ export type WebhookUpdateSchema = {
9078
9354
  };
9079
9355
 
9080
9356
  /**
9081
- * Represents a log entry in the webhooks activity list.
9357
+ * This represents a log entry in the webhooks activity list, detailing a specific webhook event along with its delivery attempt information.
9082
9358
  *
9083
9359
  * This interface was referenced by `DatoApi`'s JSON-Schema
9084
9360
  * via the `definition` "webhook_call".