@datocms/cma-client 5.5.0-alpha.2 → 5.5.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.
@@ -90,7 +90,7 @@ class Client {
90
90
  return this.config.baseUrl || Client.defaultBaseUrl;
91
91
  }
92
92
  request(options) {
93
- return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.5.0-alpha.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
93
+ return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.5.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
94
94
  ? { 'X-Environment': this.config.environment }
95
95
  : {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
96
96
  return this.jobResultsFetcher
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../src/generated/Client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAIoC;AAEpC,gEAAkD;AA+BlD,MAAa,MAAM;IAwDjB,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,cAAc,GAAG,IAAI,SAAS,CAAC,aAAa,CAA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C;YAED,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAEjD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW;gBACpD,CAAC,CAAC,gBAAgB,IAAI,CAAC,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;gBAClE,CAAC,CAAC,gBAAgB,IAAI,CAAC,EAAE,EAAE,CAAC;YAE9B,OAAO,IAAI,CAAC,uBAAuB,CAAC;QACtC,CAAC;KAAA;;AAlJH,wBAmJC;AAlJiB,qBAAc,GAAG,8BAA8B,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,7 +7755,7 @@ 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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7758
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7751
7759
  */
7752
7760
  default_field_metadata: {
7753
7761
  alt: LocalizedAlt;
@@ -7766,6 +7774,10 @@ export type Upload = {
7766
7774
  */
7767
7775
  y: number;
7768
7776
  } | null;
7777
+ /**
7778
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
7779
+ */
7780
+ poster_time: number | null;
7769
7781
  };
7770
7782
  /**
7771
7783
  * Is this upload an image?
@@ -7979,7 +7991,7 @@ export type UploadAttributes = {
7979
7991
  */
7980
7992
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
7981
7993
  /**
7982
- * 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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7994
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7983
7995
  */
7984
7996
  default_field_metadata: {
7985
7997
  alt: LocalizedAlt;
@@ -7998,6 +8010,10 @@ export type UploadAttributes = {
7998
8010
  */
7999
8011
  y: number;
8000
8012
  } | null;
8013
+ /**
8014
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8015
+ */
8016
+ poster_time: number | null;
8001
8017
  };
8002
8018
  /**
8003
8019
  * Is this upload an image?
@@ -8085,7 +8101,7 @@ export type UploadCreateSchema = {
8085
8101
  */
8086
8102
  notes?: string | null;
8087
8103
  /**
8088
- * 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.
8104
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8089
8105
  */
8090
8106
  default_field_metadata?: {
8091
8107
  alt?: LocalizedAlt;
@@ -8104,6 +8120,10 @@ export type UploadCreateSchema = {
8104
8120
  */
8105
8121
  y: number;
8106
8122
  } | null;
8123
+ /**
8124
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8125
+ */
8126
+ poster_time?: number | null;
8107
8127
  };
8108
8128
  /**
8109
8129
  * Tags
@@ -8143,7 +8163,7 @@ export type UploadUpdateSchema = {
8143
8163
  */
8144
8164
  tags?: string[];
8145
8165
  /**
8146
- * 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.
8166
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8147
8167
  */
8148
8168
  default_field_metadata?: {
8149
8169
  alt?: LocalizedAlt;
@@ -8162,6 +8182,10 @@ export type UploadUpdateSchema = {
8162
8182
  */
8163
8183
  y: number;
8164
8184
  } | null;
8185
+ /**
8186
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8187
+ */
8188
+ poster_time?: number | null;
8165
8189
  };
8166
8190
  creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
8167
8191
  upload_collection?: UploadCollectionData | null;
@@ -64,7 +64,7 @@ export class Client {
64
64
  return this.config.baseUrl || Client.defaultBaseUrl;
65
65
  }
66
66
  request(options) {
67
- return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.5.0-alpha.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
67
+ return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.5.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
68
68
  ? { 'X-Environment': this.config.environment }
69
69
  : {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
70
70
  return this.jobResultsFetcher
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../src/generated/Client.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAEL,aAAa,EACb,OAAO,GACR,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AA+BlD,MAAM,OAAO,MAAM;IAwDjB,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,cAAc,GAAG,IAAI,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,IAAI,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,iBAAiB,GAAG,IAAI,SAAS,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CA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AAG,EACvC,SAAS,EAAE,4BAA4B,EACvC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,EAC/B,YAAY,gDACP,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC,GAChC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;gBACzB,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC9C,CAAC,CAAC,EAAE,CAAC,KACP,eAAe,EAAE,GAAG,KAEtB,cAAc,EAAE,CAAC,KAAa,EAAE,EAAE;gBAChC,OAAO,IAAI,CAAC,iBAAiB;oBAC3B,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;oBAC/B,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YACvD,CAAC,IACD,CAAC;IACL,CAAC;IAEK,iBAAiB;;YACrB,IAAI,IAAI,CAAC,uBAAuB,EAAE;gBAChC,OAAO,IAAI,CAAC,uBAAuB,CAAC;aACrC;YAED,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAEjD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW;gBACpD,CAAC,CAAC,gBAAgB,IAAI,CAAC,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;gBAClE,CAAC,CAAC,gBAAgB,IAAI,CAAC,EAAE,EAAE,CAAC;YAE9B,OAAO,IAAI,CAAC,uBAAuB,CAAC;QACtC,CAAC;KAAA;;AAjJe,qBAAc,GAAG,8BAA8B,CAAC"}
@@ -7815,6 +7815,14 @@ export type ItemVersionMeta = {
7815
7815
  * Whether the record version is the published version or not
7816
7816
  */
7817
7817
  is_published: boolean;
7818
+ /**
7819
+ * 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.
7820
+ */
7821
+ published_from: string | null;
7822
+ /**
7823
+ * 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.
7824
+ */
7825
+ published_until: string | null;
7818
7826
  /**
7819
7827
  * Whether the record version is the most recent version or not
7820
7828
  */
@@ -8134,7 +8142,7 @@ export type UploadAttributes = {
8134
8142
  */
8135
8143
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
8136
8144
  /**
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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8145
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8138
8146
  */
8139
8147
  default_field_metadata: {
8140
8148
  alt: LocalizedAlt;
@@ -8153,6 +8161,10 @@ export type UploadAttributes = {
8153
8161
  */
8154
8162
  y: number;
8155
8163
  } | null;
8164
+ /**
8165
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8166
+ */
8167
+ poster_time: number | null;
8156
8168
  };
8157
8169
  /**
8158
8170
  * Is this upload an image?
@@ -8325,7 +8337,7 @@ export type UploadCreateSchema = {
8325
8337
  */
8326
8338
  notes?: string | null;
8327
8339
  /**
8328
- * 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.
8340
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8329
8341
  */
8330
8342
  default_field_metadata?: {
8331
8343
  alt?: LocalizedAlt;
@@ -8344,6 +8356,10 @@ export type UploadCreateSchema = {
8344
8356
  */
8345
8357
  y: number;
8346
8358
  } | null;
8359
+ /**
8360
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8361
+ */
8362
+ poster_time?: number | null;
8347
8363
  };
8348
8364
  /**
8349
8365
  * Tags
@@ -8433,7 +8449,7 @@ export type UploadUpdateSchema = {
8433
8449
  */
8434
8450
  tags?: string[];
8435
8451
  /**
8436
- * 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.
8452
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8437
8453
  */
8438
8454
  default_field_metadata?: {
8439
8455
  alt?: LocalizedAlt;
@@ -8452,6 +8468,10 @@ export type UploadUpdateSchema = {
8452
8468
  */
8453
8469
  y: number;
8454
8470
  } | null;
8471
+ /**
8472
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8473
+ */
8474
+ poster_time?: number | null;
8455
8475
  };
8456
8476
  [k: string]: unknown;
8457
8477
  };
@@ -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,7 +7755,7 @@ 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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7758
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7751
7759
  */
7752
7760
  default_field_metadata: {
7753
7761
  alt: LocalizedAlt;
@@ -7766,6 +7774,10 @@ export type Upload = {
7766
7774
  */
7767
7775
  y: number;
7768
7776
  } | null;
7777
+ /**
7778
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
7779
+ */
7780
+ poster_time: number | null;
7769
7781
  };
7770
7782
  /**
7771
7783
  * Is this upload an image?
@@ -7979,7 +7991,7 @@ export type UploadAttributes = {
7979
7991
  */
7980
7992
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
7981
7993
  /**
7982
- * 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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7994
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
7983
7995
  */
7984
7996
  default_field_metadata: {
7985
7997
  alt: LocalizedAlt;
@@ -7998,6 +8010,10 @@ export type UploadAttributes = {
7998
8010
  */
7999
8011
  y: number;
8000
8012
  } | null;
8013
+ /**
8014
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8015
+ */
8016
+ poster_time: number | null;
8001
8017
  };
8002
8018
  /**
8003
8019
  * Is this upload an image?
@@ -8085,7 +8101,7 @@ export type UploadCreateSchema = {
8085
8101
  */
8086
8102
  notes?: string | null;
8087
8103
  /**
8088
- * 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.
8104
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8089
8105
  */
8090
8106
  default_field_metadata?: {
8091
8107
  alt?: LocalizedAlt;
@@ -8104,6 +8120,10 @@ export type UploadCreateSchema = {
8104
8120
  */
8105
8121
  y: number;
8106
8122
  } | null;
8123
+ /**
8124
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8125
+ */
8126
+ poster_time?: number | null;
8107
8127
  };
8108
8128
  /**
8109
8129
  * Tags
@@ -8143,7 +8163,7 @@ export type UploadUpdateSchema = {
8143
8163
  */
8144
8164
  tags?: string[];
8145
8165
  /**
8146
- * 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.
8166
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8147
8167
  */
8148
8168
  default_field_metadata?: {
8149
8169
  alt?: LocalizedAlt;
@@ -8162,6 +8182,10 @@ export type UploadUpdateSchema = {
8162
8182
  */
8163
8183
  y: number;
8164
8184
  } | null;
8185
+ /**
8186
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8187
+ */
8188
+ poster_time?: number | null;
8165
8189
  };
8166
8190
  creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
8167
8191
  upload_collection?: UploadCollectionData | null;
@@ -7815,6 +7815,14 @@ export type ItemVersionMeta = {
7815
7815
  * Whether the record version is the published version or not
7816
7816
  */
7817
7817
  is_published: boolean;
7818
+ /**
7819
+ * 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.
7820
+ */
7821
+ published_from: string | null;
7822
+ /**
7823
+ * 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.
7824
+ */
7825
+ published_until: string | null;
7818
7826
  /**
7819
7827
  * Whether the record version is the most recent version or not
7820
7828
  */
@@ -8134,7 +8142,7 @@ export type UploadAttributes = {
8134
8142
  */
8135
8143
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
8136
8144
  /**
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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8145
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8138
8146
  */
8139
8147
  default_field_metadata: {
8140
8148
  alt: LocalizedAlt;
@@ -8153,6 +8161,10 @@ export type UploadAttributes = {
8153
8161
  */
8154
8162
  y: number;
8155
8163
  } | null;
8164
+ /**
8165
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8166
+ */
8167
+ poster_time: number | null;
8156
8168
  };
8157
8169
  /**
8158
8170
  * Is this upload an image?
@@ -8325,7 +8337,7 @@ export type UploadCreateSchema = {
8325
8337
  */
8326
8338
  notes?: string | null;
8327
8339
  /**
8328
- * 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.
8340
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8329
8341
  */
8330
8342
  default_field_metadata?: {
8331
8343
  alt?: LocalizedAlt;
@@ -8344,6 +8356,10 @@ export type UploadCreateSchema = {
8344
8356
  */
8345
8357
  y: number;
8346
8358
  } | null;
8359
+ /**
8360
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8361
+ */
8362
+ poster_time?: number | null;
8347
8363
  };
8348
8364
  /**
8349
8365
  * Tags
@@ -8433,7 +8449,7 @@ export type UploadUpdateSchema = {
8433
8449
  */
8434
8450
  tags?: string[];
8435
8451
  /**
8436
- * 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.
8452
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8437
8453
  */
8438
8454
  default_field_metadata?: {
8439
8455
  alt?: LocalizedAlt;
@@ -8452,6 +8468,10 @@ export type UploadUpdateSchema = {
8452
8468
  */
8453
8469
  y: number;
8454
8470
  } | null;
8471
+ /**
8472
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8473
+ */
8474
+ poster_time?: number | null;
8455
8475
  };
8456
8476
  [k: string]: unknown;
8457
8477
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.5.0-alpha.2",
3
+ "version": "5.5.1",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -44,5 +44,5 @@
44
44
  "devDependencies": {
45
45
  "@datocms/dashboard-client": "^5.4.21"
46
46
  },
47
- "gitHead": "ac6a528a6c8bcfce8c8f983589c8e9fb64dea065"
47
+ "gitHead": "dbb7019c0be3262af725bc889bd3bf627fabb3d9"
48
48
  }
@@ -8229,6 +8229,14 @@ export type ItemVersionMeta = {
8229
8229
  * Whether the record version is the published version or not
8230
8230
  */
8231
8231
  is_published: boolean;
8232
+ /**
8233
+ * 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.
8234
+ */
8235
+ published_from: string | null;
8236
+ /**
8237
+ * 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.
8238
+ */
8239
+ published_until: string | null;
8232
8240
  /**
8233
8241
  * Whether the record version is the most recent version or not
8234
8242
  */
@@ -8341,7 +8349,7 @@ export type Upload = {
8341
8349
  */
8342
8350
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
8343
8351
  /**
8344
- * 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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8352
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8345
8353
  */
8346
8354
  default_field_metadata: {
8347
8355
  alt: LocalizedAlt;
@@ -8360,6 +8368,10 @@ export type Upload = {
8360
8368
  */
8361
8369
  y: number;
8362
8370
  } | null;
8371
+ /**
8372
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8373
+ */
8374
+ poster_time: number | null;
8363
8375
  };
8364
8376
  /**
8365
8377
  * Is this upload an image?
@@ -8578,7 +8590,7 @@ export type UploadAttributes = {
8578
8590
  */
8579
8591
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
8580
8592
  /**
8581
- * 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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8593
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8582
8594
  */
8583
8595
  default_field_metadata: {
8584
8596
  alt: LocalizedAlt;
@@ -8597,6 +8609,10 @@ export type UploadAttributes = {
8597
8609
  */
8598
8610
  y: number;
8599
8611
  } | null;
8612
+ /**
8613
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8614
+ */
8615
+ poster_time: number | null;
8600
8616
  };
8601
8617
  /**
8602
8618
  * Is this upload an image?
@@ -8689,7 +8705,7 @@ export type UploadCreateSchema = {
8689
8705
  */
8690
8706
  notes?: string | null;
8691
8707
  /**
8692
- * 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.
8708
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8693
8709
  */
8694
8710
  default_field_metadata?: {
8695
8711
  alt?: LocalizedAlt;
@@ -8708,6 +8724,10 @@ export type UploadCreateSchema = {
8708
8724
  */
8709
8725
  y: number;
8710
8726
  } | null;
8727
+ /**
8728
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8729
+ */
8730
+ poster_time?: number | null;
8711
8731
  };
8712
8732
  /**
8713
8733
  * Tags
@@ -8747,7 +8767,7 @@ export type UploadUpdateSchema = {
8747
8767
  */
8748
8768
  tags?: string[];
8749
8769
  /**
8750
- * 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.
8770
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8751
8771
  */
8752
8772
  default_field_metadata?: {
8753
8773
  alt?: LocalizedAlt;
@@ -8766,6 +8786,10 @@ export type UploadUpdateSchema = {
8766
8786
  */
8767
8787
  y: number;
8768
8788
  } | null;
8789
+ /**
8790
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8791
+ */
8792
+ poster_time?: number | null;
8769
8793
  };
8770
8794
  creator?:
8771
8795
  | AccountData
@@ -151,7 +151,7 @@ export class Client {
151
151
  ...this.config,
152
152
  ...options,
153
153
  logFn: this.config.logFn || console.log,
154
- userAgent: '@datocms/cma-client v5.5.0-alpha.2',
154
+ userAgent: '@datocms/cma-client v5.5.1',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -8277,6 +8277,14 @@ export type ItemVersionMeta = {
8277
8277
  * Whether the record version is the published version or not
8278
8278
  */
8279
8279
  is_published: boolean;
8280
+ /**
8281
+ * 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.
8282
+ */
8283
+ published_from: string | null;
8284
+ /**
8285
+ * 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.
8286
+ */
8287
+ published_until: string | null;
8280
8288
  /**
8281
8289
  * Whether the record version is the most recent version or not
8282
8290
  */
@@ -8616,7 +8624,7 @@ export type UploadAttributes = {
8616
8624
  */
8617
8625
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
8618
8626
  /**
8619
- * 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 a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8627
+ * Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
8620
8628
  */
8621
8629
  default_field_metadata: {
8622
8630
  alt: LocalizedAlt;
@@ -8635,6 +8643,10 @@ export type UploadAttributes = {
8635
8643
  */
8636
8644
  y: number;
8637
8645
  } | null;
8646
+ /**
8647
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8648
+ */
8649
+ poster_time: number | null;
8638
8650
  };
8639
8651
  /**
8640
8652
  * Is this upload an image?
@@ -8812,7 +8824,7 @@ export type UploadCreateSchema = {
8812
8824
  */
8813
8825
  notes?: string | null;
8814
8826
  /**
8815
- * 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.
8827
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8816
8828
  */
8817
8829
  default_field_metadata?: {
8818
8830
  alt?: LocalizedAlt;
@@ -8831,6 +8843,10 @@ export type UploadCreateSchema = {
8831
8843
  */
8832
8844
  y: number;
8833
8845
  } | null;
8846
+ /**
8847
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8848
+ */
8849
+ poster_time?: number | null;
8834
8850
  };
8835
8851
  /**
8836
8852
  * Tags
@@ -8920,7 +8936,7 @@ export type UploadUpdateSchema = {
8920
8936
  */
8921
8937
  tags?: string[];
8922
8938
  /**
8923
- * 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.
8939
+ * Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
8924
8940
  */
8925
8941
  default_field_metadata?: {
8926
8942
  alt?: LocalizedAlt;
@@ -8939,6 +8955,10 @@ export type UploadUpdateSchema = {
8939
8955
  */
8940
8956
  y: number;
8941
8957
  } | null;
8958
+ /**
8959
+ * Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8960
+ */
8961
+ poster_time?: number | null;
8942
8962
  };
8943
8963
  [k: string]: unknown;
8944
8964
  };