@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
@@ -292,6 +292,21 @@ export type MenuItemInstancesHrefSchema = {
292
292
  ids: string;
293
293
  };
294
294
  };
295
+ /**
296
+ * This interface was referenced by `Job`'s JSON-Schema
297
+ * via the `definition` "type".
298
+ */
299
+ export type JobType = 'job';
300
+ /**
301
+ * ID of job
302
+ *
303
+ * This interface was referenced by `Job`'s JSON-Schema
304
+ * via the `definition` "identity".
305
+ *
306
+ * This interface was referenced by `Job`'s JSON-Schema
307
+ * via the `definition` "id".
308
+ */
309
+ export type JobIdentity = string;
295
310
  /**
296
311
  * JSON API type field
297
312
  *
@@ -321,6 +336,35 @@ export type SchemaMenuItemInstancesHrefSchema = {
321
336
  ids: string;
322
337
  };
323
338
  };
339
+ /**
340
+ * JSON API type field
341
+ *
342
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
343
+ * via the `definition` "type".
344
+ */
345
+ export type UploadCollectionType = 'upload_collection';
346
+ /**
347
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
348
+ *
349
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
350
+ * via the `definition` "identity".
351
+ *
352
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
353
+ * via the `definition` "id".
354
+ */
355
+ export type UploadCollectionIdentity = string;
356
+ /**
357
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
358
+ * via the `instances.hrefSchema` link.
359
+ */
360
+ export type UploadCollectionInstancesHrefSchema = {
361
+ filter?: {
362
+ /**
363
+ * IDs to fetch, comma separated
364
+ */
365
+ ids: string;
366
+ };
367
+ };
324
368
  /**
325
369
  * This interface was referenced by `Item`'s JSON-Schema
326
370
  * via the `definition` "type".
@@ -390,21 +434,6 @@ export type ItemTypeCreateHrefSchema = {
390
434
  schema_menu_item_id?: string;
391
435
  [k: string]: unknown;
392
436
  };
393
- /**
394
- * This interface was referenced by `Job`'s JSON-Schema
395
- * via the `definition` "type".
396
- */
397
- export type JobType = 'job';
398
- /**
399
- * ID of job
400
- *
401
- * This interface was referenced by `Job`'s JSON-Schema
402
- * via the `definition` "identity".
403
- *
404
- * This interface was referenced by `Job`'s JSON-Schema
405
- * via the `definition` "id".
406
- */
407
- export type JobIdentity = string;
408
437
  /**
409
438
  * This interface was referenced by `ItemType`'s JSON-Schema
410
439
  * via the `destroy.hrefSchema` link.
@@ -1457,6 +1486,7 @@ export type DatoApi = {
1457
1486
  site_plan?: SitePlan;
1458
1487
  menu_item?: MenuItem;
1459
1488
  schema_menu_item?: SchemaMenuItem;
1489
+ upload_collection?: UploadCollection;
1460
1490
  item_type?: ItemType;
1461
1491
  field?: Field;
1462
1492
  fieldset?: Fieldset;
@@ -1561,7 +1591,11 @@ export type RoleAttributes = {
1561
1591
  /**
1562
1592
  * Can create/edit shared filters (both for models and the media area)
1563
1593
  */
1564
- can_manage_shared_filters?: boolean;
1594
+ can_manage_shared_filters: boolean;
1595
+ /**
1596
+ * Can create/edit upload collections
1597
+ */
1598
+ can_manage_upload_collections: boolean;
1565
1599
  /**
1566
1600
  * Can create/edit Build triggers
1567
1601
  */
@@ -1814,7 +1848,11 @@ export type RoleMeta = {
1814
1848
  /**
1815
1849
  * Can create/edit shared filters (both for models and the media area)
1816
1850
  */
1817
- can_manage_shared_filters?: boolean;
1851
+ can_manage_shared_filters: boolean;
1852
+ /**
1853
+ * Can create/edit upload collections
1854
+ */
1855
+ can_manage_upload_collections: boolean;
1818
1856
  /**
1819
1857
  * Can create/edit Build triggers
1820
1858
  */
@@ -2047,6 +2085,10 @@ export type RoleCreateSchema = {
2047
2085
  * Can create/edit shared filters (both for models and the media area)
2048
2086
  */
2049
2087
  can_manage_shared_filters?: boolean;
2088
+ /**
2089
+ * Can create/edit upload collections
2090
+ */
2091
+ can_manage_upload_collections?: boolean;
2050
2092
  /**
2051
2093
  * Can create/edit Build triggers
2052
2094
  */
@@ -2301,6 +2343,10 @@ export type RoleUpdateSchema = {
2301
2343
  * Can create/edit shared filters (both for models and the media area)
2302
2344
  */
2303
2345
  can_manage_shared_filters?: boolean;
2346
+ /**
2347
+ * Can create/edit upload collections
2348
+ */
2349
+ can_manage_upload_collections?: boolean;
2304
2350
  /**
2305
2351
  * Can create/edit Build triggers
2306
2352
  */
@@ -3744,6 +3790,70 @@ export type MenuItemDestroyTargetSchema = {
3744
3790
  data: MenuItem;
3745
3791
  };
3746
3792
 
3793
+ /**
3794
+ * This interface was referenced by `MenuItem`'s JSON-Schema
3795
+ * via the `reorder.schema` link.
3796
+ */
3797
+ export type MenuItemReorderSchema = {
3798
+ data: {
3799
+ id: MenuItemIdentity;
3800
+ type: MenuItemType;
3801
+ /**
3802
+ * JSON API attributes
3803
+ */
3804
+ attributes: {
3805
+ /**
3806
+ * Ordering index
3807
+ */
3808
+ position: number;
3809
+ };
3810
+ relationships: {
3811
+ /**
3812
+ * Parent menu item
3813
+ */
3814
+ parent: {
3815
+ data: null | MenuItemData;
3816
+ };
3817
+ };
3818
+ }[];
3819
+ };
3820
+
3821
+ /**
3822
+ * This interface was referenced by `MenuItem`'s JSON-Schema
3823
+ * via the `reorder.targetSchema` link.
3824
+ */
3825
+ export type MenuItemReorderTargetSchema = {
3826
+ data: Job;
3827
+ };
3828
+
3829
+ /**
3830
+ * This interface was referenced by `DatoApi`'s JSON-Schema
3831
+ * via the `definition` "job".
3832
+ */
3833
+ export type Job = {
3834
+ type: JobType;
3835
+ id: JobIdentity;
3836
+ };
3837
+
3838
+ /**
3839
+ * JSON API data
3840
+ *
3841
+ * This interface was referenced by `Job`'s JSON-Schema
3842
+ * via the `definition` "data".
3843
+ */
3844
+ export type JobData = {
3845
+ type: JobType;
3846
+ id: JobIdentity;
3847
+ };
3848
+
3849
+ /**
3850
+ * This interface was referenced by `MenuItem`'s JSON-Schema
3851
+ * via the `reorder.jobSchema` link.
3852
+ */
3853
+ export type MenuItemReorderJobSchema = {
3854
+ data: MenuItem[];
3855
+ };
3856
+
3747
3857
  /**
3748
3858
  * 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.
3749
3859
  *
@@ -3946,6 +4056,266 @@ export type SchemaMenuItemDestroyTargetSchema = {
3946
4056
  data: SchemaMenuItem;
3947
4057
  };
3948
4058
 
4059
+ /**
4060
+ * This interface was referenced by `SchemaMenuItem`'s JSON-Schema
4061
+ * via the `reorder.schema` link.
4062
+ */
4063
+ export type SchemaMenuItemReorderSchema = {
4064
+ data: {
4065
+ id: SchemaMenuItemIdentity;
4066
+ type: SchemaMenuItemType;
4067
+ /**
4068
+ * JSON API attributes
4069
+ */
4070
+ attributes: {
4071
+ /**
4072
+ * Ordering index
4073
+ */
4074
+ position: number;
4075
+ };
4076
+ relationships: {
4077
+ /**
4078
+ * Parent schema menu item
4079
+ */
4080
+ parent: {
4081
+ data: null | SchemaMenuItemData;
4082
+ };
4083
+ };
4084
+ }[];
4085
+ };
4086
+
4087
+ /**
4088
+ * This interface was referenced by `SchemaMenuItem`'s JSON-Schema
4089
+ * via the `reorder.targetSchema` link.
4090
+ */
4091
+ export type SchemaMenuItemReorderTargetSchema = {
4092
+ data: Job;
4093
+ };
4094
+
4095
+ /**
4096
+ * This interface was referenced by `SchemaMenuItem`'s JSON-Schema
4097
+ * via the `reorder.jobSchema` link.
4098
+ */
4099
+ export type SchemaMenuItemReorderJobSchema = {
4100
+ data: SchemaMenuItem[];
4101
+ };
4102
+
4103
+ /**
4104
+ * In DatoCMS you can organize the uploads present in your administrative area in collection, so that the final editors can easily navigate uploads.
4105
+ *
4106
+ * This interface was referenced by `DatoApi`'s JSON-Schema
4107
+ * via the `definition` "upload_collection".
4108
+ */
4109
+ export type UploadCollection = {
4110
+ type: UploadCollectionType;
4111
+ id: UploadCollectionIdentity;
4112
+ attributes: UploadCollectionAttributes;
4113
+ relationships: UploadCollectionRelationships;
4114
+ };
4115
+
4116
+ /**
4117
+ * JSON API attributes
4118
+ *
4119
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4120
+ * via the `definition` "attributes".
4121
+ */
4122
+ export type UploadCollectionAttributes = {
4123
+ /**
4124
+ * The label of the upload collection
4125
+ */
4126
+ label: string;
4127
+ /**
4128
+ * Ordering index
4129
+ */
4130
+ position: number;
4131
+ };
4132
+
4133
+ /**
4134
+ * JSON API links
4135
+ *
4136
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4137
+ * via the `definition` "relationships".
4138
+ */
4139
+ export type UploadCollectionRelationships = {
4140
+ /**
4141
+ * Parent upload collection
4142
+ */
4143
+ parent: {
4144
+ data: null | UploadCollectionData;
4145
+ };
4146
+ /**
4147
+ * Underlying upload collections
4148
+ */
4149
+ children: {
4150
+ data: UploadCollectionData[];
4151
+ };
4152
+ };
4153
+
4154
+ /**
4155
+ * JSON API data
4156
+ *
4157
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4158
+ * via the `definition` "data".
4159
+ */
4160
+ export type UploadCollectionData = {
4161
+ type: UploadCollectionType;
4162
+ id: UploadCollectionIdentity;
4163
+ };
4164
+
4165
+ /**
4166
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4167
+ * via the `create.schema` link.
4168
+ */
4169
+ export type UploadCollectionCreateSchema = {
4170
+ data: {
4171
+ id?: UploadCollectionIdentity;
4172
+ type: UploadCollectionType;
4173
+ /**
4174
+ * JSON API attributes
4175
+ */
4176
+ attributes: {
4177
+ /**
4178
+ * The label of the upload collection
4179
+ */
4180
+ label: string;
4181
+ /**
4182
+ * Ordering index
4183
+ */
4184
+ position?: number;
4185
+ };
4186
+ relationships?: {
4187
+ /**
4188
+ * Parent upload collection
4189
+ */
4190
+ parent?: {
4191
+ data: null | UploadCollectionData;
4192
+ };
4193
+ };
4194
+ };
4195
+ };
4196
+
4197
+ /**
4198
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4199
+ * via the `create.targetSchema` link.
4200
+ */
4201
+ export type UploadCollectionCreateTargetSchema = {
4202
+ data: UploadCollection;
4203
+ };
4204
+
4205
+ /**
4206
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4207
+ * via the `update.schema` link.
4208
+ */
4209
+ export type UploadCollectionUpdateSchema = {
4210
+ data: {
4211
+ type: UploadCollectionType;
4212
+ id: UploadCollectionIdentity;
4213
+ /**
4214
+ * JSON API attributes
4215
+ */
4216
+ attributes?: {
4217
+ /**
4218
+ * The label of the upload collection
4219
+ */
4220
+ label?: string;
4221
+ /**
4222
+ * Ordering index
4223
+ */
4224
+ position?: number;
4225
+ };
4226
+ relationships?: {
4227
+ /**
4228
+ * Parent upload collection
4229
+ */
4230
+ parent?: {
4231
+ data: null | UploadCollectionData;
4232
+ };
4233
+ /**
4234
+ * Underlying upload collections
4235
+ */
4236
+ children?: {
4237
+ data: UploadCollectionData[];
4238
+ };
4239
+ };
4240
+ };
4241
+ };
4242
+
4243
+ /**
4244
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4245
+ * via the `update.targetSchema` link.
4246
+ */
4247
+ export type UploadCollectionUpdateTargetSchema = {
4248
+ data: UploadCollection;
4249
+ };
4250
+
4251
+ /**
4252
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4253
+ * via the `instances.targetSchema` link.
4254
+ */
4255
+ export type UploadCollectionInstancesTargetSchema = {
4256
+ data: UploadCollection[];
4257
+ };
4258
+
4259
+ /**
4260
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4261
+ * via the `self.targetSchema` link.
4262
+ */
4263
+ export type UploadCollectionSelfTargetSchema = {
4264
+ data: UploadCollection;
4265
+ };
4266
+
4267
+ /**
4268
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4269
+ * via the `destroy.targetSchema` link.
4270
+ */
4271
+ export type UploadCollectionDestroyTargetSchema = {
4272
+ data: UploadCollection;
4273
+ };
4274
+
4275
+ /**
4276
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4277
+ * via the `reorder.schema` link.
4278
+ */
4279
+ export type UploadCollectionReorderSchema = {
4280
+ data: {
4281
+ id: UploadCollectionIdentity;
4282
+ type: UploadCollectionType;
4283
+ /**
4284
+ * JSON API attributes
4285
+ */
4286
+ attributes: {
4287
+ /**
4288
+ * Ordering index
4289
+ */
4290
+ position: number;
4291
+ };
4292
+ relationships: {
4293
+ /**
4294
+ * Parent upload collection
4295
+ */
4296
+ parent: {
4297
+ data: null | UploadCollectionData;
4298
+ };
4299
+ };
4300
+ }[];
4301
+ };
4302
+
4303
+ /**
4304
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4305
+ * via the `reorder.targetSchema` link.
4306
+ */
4307
+ export type UploadCollectionReorderTargetSchema = {
4308
+ data: Job;
4309
+ };
4310
+
4311
+ /**
4312
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4313
+ * via the `reorder.jobSchema` link.
4314
+ */
4315
+ export type UploadCollectionReorderJobSchema = {
4316
+ data: UploadCollection[];
4317
+ };
4318
+
3949
4319
  /**
3950
4320
  * 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".
3951
4321
  *
@@ -4393,26 +4763,6 @@ export type ItemTypeUpdateTargetSchema = {
4393
4763
  data: Job;
4394
4764
  };
4395
4765
 
4396
- /**
4397
- * This interface was referenced by `DatoApi`'s JSON-Schema
4398
- * via the `definition` "job".
4399
- */
4400
- export type Job = {
4401
- type: JobType;
4402
- id: JobIdentity;
4403
- };
4404
-
4405
- /**
4406
- * JSON API data
4407
- *
4408
- * This interface was referenced by `Job`'s JSON-Schema
4409
- * via the `definition` "data".
4410
- */
4411
- export type JobData = {
4412
- type: JobType;
4413
- id: JobIdentity;
4414
- };
4415
-
4416
4766
  /**
4417
4767
  * This interface was referenced by `ItemType`'s JSON-Schema
4418
4768
  * via the `update.jobSchema` link.
@@ -4461,6 +4811,65 @@ export type ItemTypeDestroyJobSchema = {
4461
4811
  data: ItemType;
4462
4812
  };
4463
4813
 
4814
+ /**
4815
+ * This interface was referenced by `ItemType`'s JSON-Schema
4816
+ * via the `reorder_fields_and_fieldsets.schema` link.
4817
+ */
4818
+ export type ItemTypeReorderFieldsAndFieldsetsSchema = {
4819
+ data: (
4820
+ | {
4821
+ id: FieldIdentity;
4822
+ type: FieldType;
4823
+ /**
4824
+ * JSON API attributes
4825
+ */
4826
+ attributes: {
4827
+ /**
4828
+ * Ordering index
4829
+ */
4830
+ position: number;
4831
+ };
4832
+ relationships: {
4833
+ /**
4834
+ * Fieldset linkage
4835
+ */
4836
+ fieldset: {
4837
+ data: null | FieldsetData;
4838
+ };
4839
+ };
4840
+ }
4841
+ | {
4842
+ id: FieldsetIdentity;
4843
+ type: FieldsetType;
4844
+ /**
4845
+ * JSON API attributes
4846
+ */
4847
+ attributes: {
4848
+ /**
4849
+ * Ordering index
4850
+ */
4851
+ position: number;
4852
+ };
4853
+ }
4854
+ )[];
4855
+ };
4856
+
4857
+ /**
4858
+ * This interface was referenced by `ItemType`'s JSON-Schema
4859
+ * via the `reorder_fields_and_fieldsets.targetSchema` link.
4860
+ */
4861
+ export type ItemTypeReorderFieldsAndFieldsetsTargetSchema = {
4862
+ data: Job;
4863
+ };
4864
+
4865
+ /**
4866
+ * This interface was referenced by `ItemType`'s JSON-Schema
4867
+ * via the `reorder_fields_and_fieldsets.jobSchema` link.
4868
+ */
4869
+ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
4870
+ data: (Field | Fieldset)[];
4871
+ };
4872
+
4464
4873
  /**
4465
4874
  * 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.
4466
4875
  *
@@ -4517,12 +4926,12 @@ export type ItemTypeDestroyJobSchema = {
4517
4926
  *
4518
4927
  * #### Setting the appearance to a field editor provided by a plugin
4519
4928
  *
4520
- * 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.
4929
+ * 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.
4521
4930
  *
4522
4931
  * In this case:
4523
4932
  *
4524
- * - the `editor` property must be the ID of the plugin;
4525
- * - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes;
4933
+ * - 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.
4934
+ * - 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`).
4526
4935
  * - 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.
4527
4936
  *
4528
4937
  * ```js
@@ -7971,6 +8380,12 @@ export type UploadAttributes = {
7971
8380
  * via the `definition` "relationships".
7972
8381
  */
7973
8382
  export type UploadRelationships = {
8383
+ /**
8384
+ * Upload collection to which the asset belongs
8385
+ */
8386
+ upload_collection: {
8387
+ data: UploadCollectionData | null;
8388
+ };
7974
8389
  /**
7975
8390
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7976
8391
  */
@@ -8064,6 +8479,14 @@ export type UploadCreateSchema = {
8064
8479
  tags?: string[];
8065
8480
  [k: string]: unknown;
8066
8481
  };
8482
+ relationships?: {
8483
+ /**
8484
+ * Upload collection to which the asset belongs
8485
+ */
8486
+ upload_collection?: {
8487
+ data: UploadCollectionData | null;
8488
+ };
8489
+ };
8067
8490
  };
8068
8491
  };
8069
8492
 
@@ -8187,7 +8610,7 @@ export type UploadUpdateSchema = {
8187
8610
  /**
8188
8611
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
8189
8612
  */
8190
- creator: {
8613
+ creator?: {
8191
8614
  data:
8192
8615
  | AccountData
8193
8616
  | AccessTokenData
@@ -8195,6 +8618,12 @@ export type UploadUpdateSchema = {
8195
8618
  | SsoUserData
8196
8619
  | OrganizationData;
8197
8620
  };
8621
+ /**
8622
+ * Upload collection to which the asset belongs
8623
+ */
8624
+ upload_collection?: {
8625
+ data: UploadCollectionData | null;
8626
+ };
8198
8627
  };
8199
8628
  };
8200
8629
  };
@@ -8326,6 +8755,50 @@ export type UploadBulkTagJobSchema = {
8326
8755
  };
8327
8756
  };
8328
8757
 
8758
+ /**
8759
+ * This interface was referenced by `Upload`'s JSON-Schema
8760
+ * via the `bulk_set_upload_collection.schema` link.
8761
+ */
8762
+ export type UploadBulkSetUploadCollectionSchema = {
8763
+ data: {
8764
+ type: 'upload_bulk_set_upload_collection_operation';
8765
+ relationships: {
8766
+ /**
8767
+ * Asset collection to put uploads into
8768
+ */
8769
+ upload_collection: {
8770
+ data: null | UploadCollectionData;
8771
+ };
8772
+ /**
8773
+ * Assets to assign to the collection
8774
+ */
8775
+ uploads: {
8776
+ data: UploadData[];
8777
+ };
8778
+ };
8779
+ };
8780
+ };
8781
+
8782
+ /**
8783
+ * This interface was referenced by `Upload`'s JSON-Schema
8784
+ * via the `bulk_set_upload_collection.targetSchema` link.
8785
+ */
8786
+ export type UploadBulkSetUploadCollectionTargetSchema = {
8787
+ data: Job;
8788
+ };
8789
+
8790
+ /**
8791
+ * This interface was referenced by `Upload`'s JSON-Schema
8792
+ * via the `bulk_set_upload_collection.jobSchema` link.
8793
+ */
8794
+ export type UploadBulkSetUploadCollectionJobSchema = {
8795
+ data: unknown[];
8796
+ meta: {
8797
+ successful: number;
8798
+ failed: number;
8799
+ };
8800
+ };
8801
+
8329
8802
  /**
8330
8803
  * This interface was referenced by `Upload`'s JSON-Schema
8331
8804
  * via the `bulk_destroy.schema` link.
@@ -9232,7 +9705,7 @@ export type WebhookDestroyTargetSchema = {
9232
9705
  };
9233
9706
 
9234
9707
  /**
9235
- * Represents a log entry in the webhooks activity list.
9708
+ * This represents a log entry in the webhooks activity list, detailing a specific webhook event along with its delivery attempt information.
9236
9709
  *
9237
9710
  * This interface was referenced by `DatoApi`'s JSON-Schema
9238
9711
  * via the `definition` "webhook_call".