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

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 (37) hide show
  1. package/dist/cjs/generated/Client.js +1 -1
  2. package/dist/cjs/generated/resources/Session.js +29 -0
  3. package/dist/cjs/generated/resources/Session.js.map +1 -1
  4. package/dist/cjs/generated/resources/index.js +1 -1
  5. package/dist/cjs/generated/resources/index.js.map +1 -1
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/esm/generated/ApiTypes.d.ts +120 -96
  8. package/dist/esm/generated/Client.js +1 -1
  9. package/dist/esm/generated/RawApiTypes.d.ts +92 -82
  10. package/dist/esm/generated/resources/Session.d.ts +22 -0
  11. package/dist/esm/generated/resources/Session.js +29 -0
  12. package/dist/esm/generated/resources/Session.js.map +1 -1
  13. package/dist/esm/generated/resources/index.d.ts +1 -1
  14. package/dist/esm/generated/resources/index.js +1 -1
  15. package/dist/esm/generated/resources/index.js.map +1 -1
  16. package/dist/esm/index.d.ts +0 -1
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/types/generated/ApiTypes.d.ts +120 -96
  19. package/dist/types/generated/RawApiTypes.d.ts +92 -82
  20. package/dist/types/generated/resources/Session.d.ts +22 -0
  21. package/dist/types/generated/resources/index.d.ts +1 -1
  22. package/dist/types/index.d.ts +0 -1
  23. package/package.json +3 -3
  24. package/resources.json +16 -0
  25. package/src/generated/ApiTypes.ts +120 -96
  26. package/src/generated/Client.ts +1 -1
  27. package/src/generated/RawApiTypes.ts +92 -82
  28. package/src/generated/resources/Session.ts +31 -0
  29. package/src/generated/resources/index.ts +1 -1
  30. package/src/index.ts +0 -4
  31. package/dist/cjs/resources/Upload.js +0 -10
  32. package/dist/cjs/resources/Upload.js.map +0 -1
  33. package/dist/esm/resources/Upload.d.ts +0 -44
  34. package/dist/esm/resources/Upload.js +0 -4
  35. package/dist/esm/resources/Upload.js.map +0 -1
  36. package/dist/types/resources/Upload.d.ts +0 -44
  37. package/src/resources/Upload.ts +0 -36
@@ -25,4 +25,26 @@ export default class Session extends BaseResource {
25
25
  * @deprecated This API call is to be considered private and might change without notice
26
26
  */
27
27
  rawCreate(body: RawApiTypes.SessionCreateSchema): Promise<RawApiTypes.SessionCreateTargetSchema>;
28
+ /**
29
+ * Destroy the current session
30
+ *
31
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/session/destroy
32
+ *
33
+ * @throws {ApiError}
34
+ * @throws {TimeoutError}
35
+ *
36
+ * @deprecated This API call is to be considered private and might change without notice
37
+ */
38
+ destroy(): Promise<void>;
39
+ /**
40
+ * Destroy the current session
41
+ *
42
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/session/destroy
43
+ *
44
+ * @throws {ApiError}
45
+ * @throws {TimeoutError}
46
+ *
47
+ * @deprecated This API call is to be considered private and might change without notice
48
+ */
49
+ rawDestroy(): Promise<void>;
28
50
  }
@@ -35,6 +35,35 @@ export default class Session extends BaseResource {
35
35
  body,
36
36
  });
37
37
  }
38
+ /**
39
+ * Destroy the current session
40
+ *
41
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/session/destroy
42
+ *
43
+ * @throws {ApiError}
44
+ * @throws {TimeoutError}
45
+ *
46
+ * @deprecated This API call is to be considered private and might change without notice
47
+ */
48
+ destroy() {
49
+ return this.rawDestroy();
50
+ }
51
+ /**
52
+ * Destroy the current session
53
+ *
54
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/session/destroy
55
+ *
56
+ * @throws {ApiError}
57
+ * @throws {TimeoutError}
58
+ *
59
+ * @deprecated This API call is to be considered private and might change without notice
60
+ */
61
+ rawDestroy() {
62
+ return this.client.request({
63
+ method: 'DELETE',
64
+ url: '/session',
65
+ });
66
+ }
38
67
  }
39
68
  Session.TYPE = 'session';
40
69
  //# sourceMappingURL=Session.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../../src/generated/resources/Session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,YAAY;IAG/C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAkC;QACvC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAkC,IAAI,EAAE;YAChE,IAAI,EAAE,mBAAmB;YACzB,UAAU,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;YAC7C,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACd,KAAK,CAAC,uBAAuB,CAAqC,IAAI,CAAC,CACxE,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,IAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwC;YAChE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,WAAW;YAChB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;;AA1Ce,YAAI,GAAG,SAAkB,CAAC"}
1
+ {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../../src/generated/resources/Session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,YAAY;IAG/C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAkC;QACvC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAkC,IAAI,EAAE;YAChE,IAAI,EAAE,mBAAmB;YACzB,UAAU,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;YAC7C,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACd,KAAK,CAAC,uBAAuB,CAAqC,IAAI,CAAC,CACxE,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,IAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwC;YAChE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,WAAW;YAChB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;;;;;OASG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO;YAC/B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,UAAU;SAChB,CAAC,CAAC;IACL,CAAC;;AAzEe,YAAI,GAAG,SAAkB,CAAC"}
@@ -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 '../../resources/Upload.js';
21
+ export { default as Upload } from './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 '../../resources/Upload.js';
21
+ export { default as Upload } from './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,OA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AI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -4,7 +4,6 @@ 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';
8
7
  export * from './utilities/buildBlockRecord.js';
9
8
  export * from './utilities/duplicateBlockRecord.js';
10
9
  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;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"}
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"}
@@ -7640,6 +7640,14 @@ export type ItemVersionMeta = {
7640
7640
  * Whether the record version is the published version or not
7641
7641
  */
7642
7642
  is_published: boolean;
7643
+ /**
7644
+ * Date this version became the published version of the record, or `null` if it has never been published. May also be `null` for versions that were published before publication-history tracking was introduced; in that case, fall back to `is_published` to determine the live status.
7645
+ */
7646
+ published_from: string | null;
7647
+ /**
7648
+ * Date this version stopped being the published version of the record (either replaced by a newer published version, or explicitly unpublished). `null` when the version is currently published or has never been published.
7649
+ */
7650
+ published_until: string | null;
7643
7651
  /**
7644
7652
  * Whether the record version is the most recent version or not
7645
7653
  */
@@ -7747,28 +7755,42 @@ export type Upload = {
7747
7755
  */
7748
7756
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
7749
7757
  /**
7750
- * 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).
7751
- *
7752
- * > [!PROTIP] 📘 Requires the `non_localized_focal_points` environment opt-in
7753
- * > 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.
7758
+ * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
7754
7759
  */
7755
7760
  default_field_metadata: {
7756
- alt: LocalizedAlt;
7757
- title: LocalizedTitle;
7758
- custom_data: LocalizedCustomData;
7759
7761
  /**
7760
- * Focal point non-localized; a single value applies across every locale (only meaningful for image assets)
7762
+ * This interface was referenced by `undefined`'s JSON-Schema definition
7763
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7761
7764
  */
7762
- focal_point: {
7765
+ [k: string]: {
7763
7766
  /**
7764
- * Horizontal position expressed as float between 0 and 1
7767
+ * Alternate text for the asset
7765
7768
  */
7766
- x: number;
7769
+ alt: string | null;
7767
7770
  /**
7768
- * Vertical position expressed as float between 0 and 1
7771
+ * Title for the asset
7769
7772
  */
7770
- y: number;
7771
- } | null;
7773
+ title: string | null;
7774
+ /**
7775
+ * Object with arbitrary metadata
7776
+ */
7777
+ custom_data: {
7778
+ [k: string]: unknown;
7779
+ };
7780
+ /**
7781
+ * Focal point (only for image assets)
7782
+ */
7783
+ focal_point: {
7784
+ /**
7785
+ * Horizontal position expressed as float between 0 and 1
7786
+ */
7787
+ x: number;
7788
+ /**
7789
+ * Vertical position expressed as float between 0 and 1
7790
+ */
7791
+ y: number;
7792
+ } | null;
7793
+ };
7772
7794
  };
7773
7795
  /**
7774
7796
  * Is this upload an image?
@@ -7829,44 +7851,6 @@ export type UploadCreateJobSchema = Upload;
7829
7851
  export type UploadSelfTargetSchema = Upload;
7830
7852
  export type UploadDestroyTargetSchema = Upload;
7831
7853
  export type UploadUpdateJobSchema = Upload;
7832
- /**
7833
- * Alternate text per locale
7834
- */
7835
- export type LocalizedAlt = {
7836
- /**
7837
- * Alternate text for the asset in this locale
7838
- *
7839
- * This interface was referenced by `LocalizedAlt`'s JSON-Schema definition
7840
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7841
- */
7842
- [k: string]: string | null;
7843
- };
7844
- /**
7845
- * Title per locale
7846
- */
7847
- export type LocalizedTitle = {
7848
- /**
7849
- * Title for the asset in this locale
7850
- *
7851
- * This interface was referenced by `LocalizedTitle`'s JSON-Schema definition
7852
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7853
- */
7854
- [k: string]: string | null;
7855
- };
7856
- /**
7857
- * Object with arbitrary metadata, per locale
7858
- */
7859
- export type LocalizedCustomData = {
7860
- /**
7861
- * Arbitrary metadata for the asset in this locale
7862
- *
7863
- * This interface was referenced by `LocalizedCustomData`'s JSON-Schema definition
7864
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7865
- */
7866
- [k: string]: {
7867
- [k: string]: unknown;
7868
- };
7869
- };
7870
7854
  /**
7871
7855
  * Meta attributes
7872
7856
  *
@@ -7982,28 +7966,42 @@ export type UploadAttributes = {
7982
7966
  */
7983
7967
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
7984
7968
  /**
7985
- * 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).
7986
- *
7987
- * > [!PROTIP] 📘 Requires the `non_localized_focal_points` environment opt-in
7988
- * > 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.
7969
+ * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
7989
7970
  */
7990
7971
  default_field_metadata: {
7991
- alt: LocalizedAlt;
7992
- title: LocalizedTitle;
7993
- custom_data: LocalizedCustomData;
7994
7972
  /**
7995
- * Focal point non-localized; a single value applies across every locale (only meaningful for image assets)
7973
+ * This interface was referenced by `undefined`'s JSON-Schema definition
7974
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7996
7975
  */
7997
- focal_point: {
7976
+ [k: string]: {
7998
7977
  /**
7999
- * Horizontal position expressed as float between 0 and 1
7978
+ * Alternate text for the asset
8000
7979
  */
8001
- x: number;
7980
+ alt: string | null;
8002
7981
  /**
8003
- * Vertical position expressed as float between 0 and 1
7982
+ * Title for the asset
8004
7983
  */
8005
- y: number;
8006
- } | null;
7984
+ title: string | null;
7985
+ /**
7986
+ * Object with arbitrary metadata
7987
+ */
7988
+ custom_data: {
7989
+ [k: string]: unknown;
7990
+ };
7991
+ /**
7992
+ * Focal point (only for image assets)
7993
+ */
7994
+ focal_point: {
7995
+ /**
7996
+ * Horizontal position expressed as float between 0 and 1
7997
+ */
7998
+ x: number;
7999
+ /**
8000
+ * Vertical position expressed as float between 0 and 1
8001
+ */
8002
+ y: number;
8003
+ } | null;
8004
+ };
8007
8005
  };
8008
8006
  /**
8009
8007
  * Is this upload an image?
@@ -8091,25 +8089,42 @@ export type UploadCreateSchema = {
8091
8089
  */
8092
8090
  notes?: string | null;
8093
8091
  /**
8094
- * 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.
8092
+ * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
8095
8093
  */
8096
8094
  default_field_metadata?: {
8097
- alt?: LocalizedAlt;
8098
- title?: LocalizedTitle;
8099
- custom_data?: LocalizedCustomData;
8100
8095
  /**
8101
- * Focal point non-localized; a single value applies across every locale (only meaningful for image assets)
8096
+ * This interface was referenced by `undefined`'s JSON-Schema definition
8097
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8102
8098
  */
8103
- focal_point?: {
8099
+ [k: string]: {
8100
+ /**
8101
+ * Alternate text for the asset
8102
+ */
8103
+ alt?: string | null;
8104
8104
  /**
8105
- * Horizontal position expressed as float between 0 and 1
8105
+ * Title for the asset
8106
8106
  */
8107
- x: number;
8107
+ title?: string | null;
8108
8108
  /**
8109
- * Vertical position expressed as float between 0 and 1
8109
+ * Object with arbitrary metadata
8110
8110
  */
8111
- y: number;
8112
- } | null;
8111
+ custom_data?: {
8112
+ [k: string]: unknown;
8113
+ };
8114
+ /**
8115
+ * Focal point (only for image assets)
8116
+ */
8117
+ focal_point?: {
8118
+ /**
8119
+ * Horizontal position expressed as float between 0 and 1
8120
+ */
8121
+ x: number;
8122
+ /**
8123
+ * Vertical position expressed as float between 0 and 1
8124
+ */
8125
+ y: number;
8126
+ } | null;
8127
+ };
8113
8128
  };
8114
8129
  /**
8115
8130
  * Tags
@@ -8149,25 +8164,42 @@ export type UploadUpdateSchema = {
8149
8164
  */
8150
8165
  tags?: string[];
8151
8166
  /**
8152
- * 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.
8167
+ * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
8153
8168
  */
8154
8169
  default_field_metadata?: {
8155
- alt?: LocalizedAlt;
8156
- title?: LocalizedTitle;
8157
- custom_data?: LocalizedCustomData;
8158
8170
  /**
8159
- * Focal point non-localized; a single value applies across every locale (only meaningful for image assets)
8171
+ * This interface was referenced by `undefined`'s JSON-Schema definition
8172
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8160
8173
  */
8161
- focal_point?: {
8174
+ [k: string]: {
8175
+ /**
8176
+ * Alternate text for the asset
8177
+ */
8178
+ alt?: string | null;
8162
8179
  /**
8163
- * Horizontal position expressed as float between 0 and 1
8180
+ * Title for the asset
8164
8181
  */
8165
- x: number;
8182
+ title?: string | null;
8183
+ /**
8184
+ * Object with arbitrary metadata
8185
+ */
8186
+ custom_data?: {
8187
+ [k: string]: unknown;
8188
+ };
8166
8189
  /**
8167
- * Vertical position expressed as float between 0 and 1
8190
+ * Focal point (only for image assets)
8168
8191
  */
8169
- y: number;
8170
- } | null;
8192
+ focal_point?: {
8193
+ /**
8194
+ * Horizontal position expressed as float between 0 and 1
8195
+ */
8196
+ x: number;
8197
+ /**
8198
+ * Vertical position expressed as float between 0 and 1
8199
+ */
8200
+ y: number;
8201
+ } | null;
8202
+ };
8171
8203
  };
8172
8204
  creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
8173
8205
  upload_collection?: UploadCollectionData | null;
@@ -10913,10 +10945,6 @@ export type SiteMeta = {
10913
10945
  * Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
10914
10946
  */
10915
10947
  milliseconds_in_datetime: boolean;
10916
- /**
10917
- * 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.
10918
- */
10919
- non_localized_focal_points: boolean;
10920
10948
  };
10921
10949
  /**
10922
10950
  * JSON API data
@@ -11278,10 +11306,6 @@ export type SiteUpdateSchema = {
11278
11306
  * Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
11279
11307
  */
11280
11308
  milliseconds_in_datetime?: boolean;
11281
- /**
11282
- * 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.
11283
- */
11284
- non_localized_focal_points?: boolean;
11285
11309
  };
11286
11310
  };
11287
11311
  /**