@datocms/cma-client 5.4.17 → 5.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3026,7 +3026,7 @@ export type AccessTokenCreateSchema = {
3026
3026
  * Role
3027
3027
  */
3028
3028
  role: {
3029
- data: RoleData | null;
3029
+ data: RoleData;
3030
3030
  };
3031
3031
  };
3032
3032
  };
@@ -3064,12 +3064,12 @@ export type AccessTokenUpdateSchema = {
3064
3064
  */
3065
3065
  can_access_cma: boolean;
3066
3066
  };
3067
- relationships: {
3067
+ relationships?: {
3068
3068
  /**
3069
3069
  * Role
3070
3070
  */
3071
3071
  role: {
3072
- data: RoleData | null;
3072
+ data: RoleData;
3073
3073
  };
3074
3074
  };
3075
3075
  };
@@ -8134,42 +8134,28 @@ export type UploadAttributes = {
8134
8134
  */
8135
8135
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
8136
8136
  /**
8137
- * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
8137
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` is non-localized a single value per asset, applied across every locale (only meaningful for image assets).
8138
+ *
8139
+ * > [!PROTIP] 📘 Requires the `non_localized_focal_points` environment opt-in
8140
+ * > This shape is returned and accepted in environments where the opt-in is active. The opt-in is the path forward and will become the default for all projects. Environments where it is still inactive use a legacy locale-keyed shape under the hood (kept working for compatibility) — opt in to align with this documentation.
8138
8141
  */
8139
8142
  default_field_metadata: {
8143
+ alt: LocalizedAlt;
8144
+ title: LocalizedTitle;
8145
+ custom_data: LocalizedCustomData;
8140
8146
  /**
8141
- * This interface was referenced by `undefined`'s JSON-Schema definition
8142
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8147
+ * Focal point non-localized; a single value applies across every locale (only meaningful for image assets)
8143
8148
  */
8144
- [k: string]: {
8145
- /**
8146
- * Alternate text for the asset
8147
- */
8148
- alt: string | null;
8149
+ focal_point: {
8149
8150
  /**
8150
- * Title for the asset
8151
+ * Horizontal position expressed as float between 0 and 1
8151
8152
  */
8152
- title: string | null;
8153
+ x: number;
8153
8154
  /**
8154
- * Object with arbitrary metadata
8155
+ * Vertical position expressed as float between 0 and 1
8155
8156
  */
8156
- custom_data: {
8157
- [k: string]: unknown;
8158
- };
8159
- /**
8160
- * Focal point (only for image assets)
8161
- */
8162
- focal_point: {
8163
- /**
8164
- * Horizontal position expressed as float between 0 and 1
8165
- */
8166
- x: number;
8167
- /**
8168
- * Vertical position expressed as float between 0 and 1
8169
- */
8170
- y: number;
8171
- } | null;
8172
- };
8157
+ y: number;
8158
+ } | null;
8173
8159
  };
8174
8160
  /**
8175
8161
  * Is this upload an image?
@@ -8223,6 +8209,44 @@ export type UploadAttributes = {
8223
8209
  alpha: number;
8224
8210
  }[];
8225
8211
  };
8212
+ /**
8213
+ * Alternate text per locale
8214
+ */
8215
+ export type LocalizedAlt = {
8216
+ /**
8217
+ * Alternate text for the asset in this locale
8218
+ *
8219
+ * This interface was referenced by `LocalizedAlt`'s JSON-Schema definition
8220
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8221
+ */
8222
+ [k: string]: string | null;
8223
+ };
8224
+ /**
8225
+ * Title per locale
8226
+ */
8227
+ export type LocalizedTitle = {
8228
+ /**
8229
+ * Title for the asset in this locale
8230
+ *
8231
+ * This interface was referenced by `LocalizedTitle`'s JSON-Schema definition
8232
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8233
+ */
8234
+ [k: string]: string | null;
8235
+ };
8236
+ /**
8237
+ * Object with arbitrary metadata, per locale
8238
+ */
8239
+ export type LocalizedCustomData = {
8240
+ /**
8241
+ * Arbitrary metadata for the asset in this locale
8242
+ *
8243
+ * This interface was referenced by `LocalizedCustomData`'s JSON-Schema definition
8244
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8245
+ */
8246
+ [k: string]: {
8247
+ [k: string]: unknown;
8248
+ };
8249
+ };
8226
8250
  /**
8227
8251
  * JSON API links
8228
8252
  *
@@ -8304,42 +8328,25 @@ export type UploadCreateSchema = {
8304
8328
  */
8305
8329
  notes?: string | null;
8306
8330
  /**
8307
- * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
8331
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point` missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8308
8332
  */
8309
8333
  default_field_metadata?: {
8334
+ alt?: LocalizedAlt;
8335
+ title?: LocalizedTitle;
8336
+ custom_data?: LocalizedCustomData;
8310
8337
  /**
8311
- * This interface was referenced by `undefined`'s JSON-Schema definition
8312
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8338
+ * Focal point non-localized; a single value applies across every locale (only meaningful for image assets)
8313
8339
  */
8314
- [k: string]: {
8315
- /**
8316
- * Alternate text for the asset
8317
- */
8318
- alt?: string | null;
8340
+ focal_point?: {
8319
8341
  /**
8320
- * Title for the asset
8342
+ * Horizontal position expressed as float between 0 and 1
8321
8343
  */
8322
- title?: string | null;
8344
+ x: number;
8323
8345
  /**
8324
- * Object with arbitrary metadata
8346
+ * Vertical position expressed as float between 0 and 1
8325
8347
  */
8326
- custom_data?: {
8327
- [k: string]: unknown;
8328
- };
8329
- /**
8330
- * Focal point (only for image assets)
8331
- */
8332
- focal_point?: {
8333
- /**
8334
- * Horizontal position expressed as float between 0 and 1
8335
- */
8336
- x: number;
8337
- /**
8338
- * Vertical position expressed as float between 0 and 1
8339
- */
8340
- y: number;
8341
- } | null;
8342
- };
8348
+ y: number;
8349
+ } | null;
8343
8350
  };
8344
8351
  /**
8345
8352
  * Tags
@@ -8429,42 +8436,25 @@ export type UploadUpdateSchema = {
8429
8436
  */
8430
8437
  tags?: string[];
8431
8438
  /**
8432
- * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
8439
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point` missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8433
8440
  */
8434
8441
  default_field_metadata?: {
8442
+ alt?: LocalizedAlt;
8443
+ title?: LocalizedTitle;
8444
+ custom_data?: LocalizedCustomData;
8435
8445
  /**
8436
- * This interface was referenced by `undefined`'s JSON-Schema definition
8437
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8446
+ * Focal point non-localized; a single value applies across every locale (only meaningful for image assets)
8438
8447
  */
8439
- [k: string]: {
8440
- /**
8441
- * Alternate text for the asset
8442
- */
8443
- alt?: string | null;
8448
+ focal_point?: {
8444
8449
  /**
8445
- * Title for the asset
8450
+ * Horizontal position expressed as float between 0 and 1
8446
8451
  */
8447
- title?: string | null;
8452
+ x: number;
8448
8453
  /**
8449
- * Object with arbitrary metadata
8454
+ * Vertical position expressed as float between 0 and 1
8450
8455
  */
8451
- custom_data?: {
8452
- [k: string]: unknown;
8453
- };
8454
- /**
8455
- * Focal point (only for image assets)
8456
- */
8457
- focal_point?: {
8458
- /**
8459
- * Horizontal position expressed as float between 0 and 1
8460
- */
8461
- x: number;
8462
- /**
8463
- * Vertical position expressed as float between 0 and 1
8464
- */
8465
- y: number;
8466
- } | null;
8467
- };
8456
+ y: number;
8457
+ } | null;
8468
8458
  };
8469
8459
  [k: string]: unknown;
8470
8460
  };
@@ -11486,6 +11476,10 @@ export type SiteMeta = {
11486
11476
  * Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
11487
11477
  */
11488
11478
  milliseconds_in_datetime: boolean;
11479
+ /**
11480
+ * Whether the non-localized focal points opt-in is active for the environment. When active, an upload's `focal_point` is stored once per asset rather than once per locale, and the CMA `default_field_metadata` attribute is exposed in its field-keyed shape (with `alt`/`title`/`custom_data` keyed by locale and a single top-level `focal_point`). When inactive, the CMA continues to accept and return the legacy locale-keyed shape — the single stored focal_point is replicated into every locale entry on read. The CDA's behavior is unaffected: it already returns a single `focalPoint` value.
11481
+ */
11482
+ non_localized_focal_points: boolean;
11489
11483
  };
11490
11484
  /**
11491
11485
  * JSON API data
@@ -11676,6 +11670,10 @@ export type SiteUpdateSchema = {
11676
11670
  * Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
11677
11671
  */
11678
11672
  milliseconds_in_datetime?: boolean;
11673
+ /**
11674
+ * Whether the non-localized focal points opt-in is active for the environment. When active, an upload's `focal_point` is stored once per asset rather than once per locale, and the CMA `default_field_metadata` attribute is exposed in its field-keyed shape (with `alt`/`title`/`custom_data` keyed by locale and a single top-level `focal_point`). When inactive, the CMA continues to accept and return the legacy locale-keyed shape — the single stored focal_point is replicated into every locale entry on read. The CDA's behavior is unaffected: it already returns a single `focalPoint` value.
11675
+ */
11676
+ non_localized_focal_points?: boolean;
11679
11677
  };
11680
11678
  relationships?: {
11681
11679
  sso_default_role?: {
@@ -18,7 +18,7 @@ export { default as BuildEvent } from './BuildEvent.js';
18
18
  export { default as SearchIndexEvent } from './SearchIndexEvent.js';
19
19
  export { default as Item } from './Item.js';
20
20
  export { default as ItemVersion } from './ItemVersion.js';
21
- export { default as Upload } from './Upload.js';
21
+ export { default as Upload } from '../../resources/Upload.js';
22
22
  export { default as UploadRequest } from './UploadRequest.js';
23
23
  export { default as UploadTrack } from './UploadTrack.js';
24
24
  export { default as ScheduledPublication } from './ScheduledPublication.js';
@@ -18,7 +18,7 @@ export { default as BuildEvent } from './BuildEvent.js';
18
18
  export { default as SearchIndexEvent } from './SearchIndexEvent.js';
19
19
  export { default as Item } from './Item.js';
20
20
  export { default as ItemVersion } from './ItemVersion.js';
21
- export { default as Upload } from './Upload.js';
21
+ export { default as Upload } from '../../resources/Upload.js';
22
22
  export { default as UploadRequest } from './UploadRequest.js';
23
23
  export { default as UploadTrack } from './UploadTrack.js';
24
24
  export { default as ScheduledPublication } from './ScheduledPublication.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,OAAO,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AO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -4,6 +4,7 @@ export * from './fieldTypes/index.js';
4
4
  export { Client } from './generated/Client.js';
5
5
  export type { ClientConfigOptions } from './generated/Client.js';
6
6
  export * as Resources from './generated/resources/index.js';
7
+ export type { UploadLocaleKeyedDefaultFieldMetadata, UploadLocaleKeyedDefaultFieldMetadataInRequest, } from './resources/Upload.js';
7
8
  export * from './utilities/buildBlockRecord.js';
8
9
  export * from './utilities/duplicateBlockRecord.js';
9
10
  export * from './utilities/fieldsContainingReferences.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC9E,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC9E,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC;AAK5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import BaseUpload from '../generated/resources/Upload.js';
2
+ /**
3
+ * Legacy locale-keyed shape of an upload's `default_field_metadata`, as
4
+ * returned and accepted by environments where the `non_localized_focal_points`
5
+ * opt-in is inactive.
6
+ *
7
+ * The generated `Upload.default_field_metadata` type reflects the new
8
+ * field-keyed shape (the path forward). This type is provided so consumers
9
+ * targeting opted-out environments during the transition can cast the
10
+ * response value to a structurally accurate shape.
11
+ */
12
+ export type UploadLocaleKeyedDefaultFieldMetadata = {
13
+ [localeCode: string]: {
14
+ alt: string | null;
15
+ title: string | null;
16
+ custom_data: {
17
+ [k: string]: unknown;
18
+ };
19
+ focal_point: {
20
+ x: number;
21
+ y: number;
22
+ } | null;
23
+ };
24
+ };
25
+ /**
26
+ * Legacy locale-keyed shape accepted on `create` / `update` request bodies
27
+ * by environments where the `non_localized_focal_points` opt-in is inactive.
28
+ * All fields are optional, matching the partial-write contract.
29
+ */
30
+ export type UploadLocaleKeyedDefaultFieldMetadataInRequest = {
31
+ [localeCode: string]: {
32
+ alt?: string | null;
33
+ title?: string | null;
34
+ custom_data?: {
35
+ [k: string]: unknown;
36
+ };
37
+ focal_point?: {
38
+ x: number;
39
+ y: number;
40
+ } | null;
41
+ };
42
+ };
43
+ export default class UploadResource extends BaseUpload {
44
+ }
@@ -0,0 +1,4 @@
1
+ import BaseUpload from '../generated/resources/Upload.js';
2
+ export default class UploadResource extends BaseUpload {
3
+ }
4
+ //# sourceMappingURL=Upload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Upload.js","sourceRoot":"","sources":["../../../src/resources/Upload.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAmC1D,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;CAAG"}