@datocms/cma-client 5.2.0 → 5.2.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.2.0', 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.2.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
@@ -3255,6 +3255,14 @@ export type AccessToken = {
3255
3255
  */
3256
3256
  can_access_cma: boolean;
3257
3257
  hardcoded_type: null | string;
3258
+ /**
3259
+ * When this API token was last used to access the Content Management API
3260
+ */
3261
+ last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3262
+ /**
3263
+ * When this API token was last used to access the Content Delivery API
3264
+ */
3265
+ last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3258
3266
  role: RoleData | null;
3259
3267
  };
3260
3268
  export type AccessTokenCreateTargetSchema = AccessToken;
@@ -3300,6 +3308,14 @@ export type AccessTokenAttributes = {
3300
3308
  */
3301
3309
  can_access_cma: boolean;
3302
3310
  hardcoded_type: null | string;
3311
+ /**
3312
+ * When this API token was last used to access the Content Management API
3313
+ */
3314
+ last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3315
+ /**
3316
+ * When this API token was last used to access the Content Delivery API
3317
+ */
3318
+ last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3303
3319
  };
3304
3320
  /**
3305
3321
  * JSON API links
@@ -6617,7 +6633,7 @@ export type Plugin = {
6617
6633
  */
6618
6634
  url: string;
6619
6635
  /**
6620
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6636
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6621
6637
  */
6622
6638
  parameters: {
6623
6639
  [k: string]: unknown;
@@ -6697,7 +6713,7 @@ export type PluginAttributes = {
6697
6713
  */
6698
6714
  url: string;
6699
6715
  /**
6700
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6716
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6701
6717
  */
6702
6718
  parameters: {
6703
6719
  [k: string]: unknown;
@@ -6789,7 +6805,7 @@ export type PluginUpdateSchema = {
6789
6805
  */
6790
6806
  url?: string;
6791
6807
  /**
6792
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6808
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6793
6809
  */
6794
6810
  parameters?: {
6795
6811
  [k: string]: unknown;
@@ -9026,7 +9042,7 @@ export type BuildTrigger = {
9026
9042
  /**
9027
9043
  * The type of build trigger
9028
9044
  */
9029
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9045
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9030
9046
  /**
9031
9047
  * Additional settings for the build trigger. The value depends on the `adapter`.
9032
9048
  */
@@ -9088,7 +9104,7 @@ export type BuildTriggerAttributes = {
9088
9104
  /**
9089
9105
  * The type of build trigger
9090
9106
  */
9091
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9107
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9092
9108
  /**
9093
9109
  * Additional settings for the build trigger. The value depends on the `adapter`.
9094
9110
  */
@@ -9145,7 +9161,7 @@ export type BuildTriggerCreateSchema = {
9145
9161
  /**
9146
9162
  * The type of build trigger
9147
9163
  */
9148
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9164
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9149
9165
  /**
9150
9166
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9151
9167
  */
@@ -9183,7 +9199,7 @@ export type BuildTriggerUpdateSchema = {
9183
9199
  /**
9184
9200
  * The type of build trigger
9185
9201
  */
9186
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9202
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9187
9203
  /**
9188
9204
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9189
9205
  */
@@ -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.2.0', 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.2.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
@@ -2817,6 +2817,14 @@ export type AccessTokenAttributes = {
2817
2817
  */
2818
2818
  can_access_cma: boolean;
2819
2819
  hardcoded_type: null | string;
2820
+ /**
2821
+ * When this API token was last used to access the Content Management API
2822
+ */
2823
+ last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
2824
+ /**
2825
+ * When this API token was last used to access the Content Delivery API
2826
+ */
2827
+ last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
2820
2828
  };
2821
2829
  /**
2822
2830
  * JSON API links
@@ -6418,7 +6426,7 @@ export type PluginAttributes = {
6418
6426
  */
6419
6427
  url: string;
6420
6428
  /**
6421
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6429
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6422
6430
  */
6423
6431
  parameters: {
6424
6432
  [k: string]: unknown;
@@ -6545,7 +6553,7 @@ export type PluginUpdateSchema = {
6545
6553
  */
6546
6554
  url?: string;
6547
6555
  /**
6548
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6556
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6549
6557
  */
6550
6558
  parameters?: {
6551
6559
  [k: string]: unknown;
@@ -9303,7 +9311,7 @@ export type BuildTriggerAttributes = {
9303
9311
  /**
9304
9312
  * The type of build trigger
9305
9313
  */
9306
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9314
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9307
9315
  /**
9308
9316
  * Additional settings for the build trigger. The value depends on the `adapter`.
9309
9317
  */
@@ -9376,7 +9384,7 @@ export type BuildTriggerCreateSchema = {
9376
9384
  /**
9377
9385
  * The type of build trigger
9378
9386
  */
9379
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9387
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9380
9388
  /**
9381
9389
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9382
9390
  */
@@ -9425,7 +9433,7 @@ export type BuildTriggerUpdateSchema = {
9425
9433
  /**
9426
9434
  * The type of build trigger
9427
9435
  */
9428
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9436
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9429
9437
  /**
9430
9438
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9431
9439
  */
@@ -3255,6 +3255,14 @@ export type AccessToken = {
3255
3255
  */
3256
3256
  can_access_cma: boolean;
3257
3257
  hardcoded_type: null | string;
3258
+ /**
3259
+ * When this API token was last used to access the Content Management API
3260
+ */
3261
+ last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3262
+ /**
3263
+ * When this API token was last used to access the Content Delivery API
3264
+ */
3265
+ last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3258
3266
  role: RoleData | null;
3259
3267
  };
3260
3268
  export type AccessTokenCreateTargetSchema = AccessToken;
@@ -3300,6 +3308,14 @@ export type AccessTokenAttributes = {
3300
3308
  */
3301
3309
  can_access_cma: boolean;
3302
3310
  hardcoded_type: null | string;
3311
+ /**
3312
+ * When this API token was last used to access the Content Management API
3313
+ */
3314
+ last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3315
+ /**
3316
+ * When this API token was last used to access the Content Delivery API
3317
+ */
3318
+ last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
3303
3319
  };
3304
3320
  /**
3305
3321
  * JSON API links
@@ -6617,7 +6633,7 @@ export type Plugin = {
6617
6633
  */
6618
6634
  url: string;
6619
6635
  /**
6620
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6636
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6621
6637
  */
6622
6638
  parameters: {
6623
6639
  [k: string]: unknown;
@@ -6697,7 +6713,7 @@ export type PluginAttributes = {
6697
6713
  */
6698
6714
  url: string;
6699
6715
  /**
6700
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6716
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6701
6717
  */
6702
6718
  parameters: {
6703
6719
  [k: string]: unknown;
@@ -6789,7 +6805,7 @@ export type PluginUpdateSchema = {
6789
6805
  */
6790
6806
  url?: string;
6791
6807
  /**
6792
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6808
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6793
6809
  */
6794
6810
  parameters?: {
6795
6811
  [k: string]: unknown;
@@ -9026,7 +9042,7 @@ export type BuildTrigger = {
9026
9042
  /**
9027
9043
  * The type of build trigger
9028
9044
  */
9029
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9045
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9030
9046
  /**
9031
9047
  * Additional settings for the build trigger. The value depends on the `adapter`.
9032
9048
  */
@@ -9088,7 +9104,7 @@ export type BuildTriggerAttributes = {
9088
9104
  /**
9089
9105
  * The type of build trigger
9090
9106
  */
9091
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9107
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9092
9108
  /**
9093
9109
  * Additional settings for the build trigger. The value depends on the `adapter`.
9094
9110
  */
@@ -9145,7 +9161,7 @@ export type BuildTriggerCreateSchema = {
9145
9161
  /**
9146
9162
  * The type of build trigger
9147
9163
  */
9148
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9164
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9149
9165
  /**
9150
9166
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9151
9167
  */
@@ -9183,7 +9199,7 @@ export type BuildTriggerUpdateSchema = {
9183
9199
  /**
9184
9200
  * The type of build trigger
9185
9201
  */
9186
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9202
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9187
9203
  /**
9188
9204
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9189
9205
  */
@@ -2817,6 +2817,14 @@ export type AccessTokenAttributes = {
2817
2817
  */
2818
2818
  can_access_cma: boolean;
2819
2819
  hardcoded_type: null | string;
2820
+ /**
2821
+ * When this API token was last used to access the Content Management API
2822
+ */
2823
+ last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
2824
+ /**
2825
+ * When this API token was last used to access the Content Delivery API
2826
+ */
2827
+ last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
2820
2828
  };
2821
2829
  /**
2822
2830
  * JSON API links
@@ -6418,7 +6426,7 @@ export type PluginAttributes = {
6418
6426
  */
6419
6427
  url: string;
6420
6428
  /**
6421
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6429
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6422
6430
  */
6423
6431
  parameters: {
6424
6432
  [k: string]: unknown;
@@ -6545,7 +6553,7 @@ export type PluginUpdateSchema = {
6545
6553
  */
6546
6554
  url?: string;
6547
6555
  /**
6548
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6556
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6549
6557
  */
6550
6558
  parameters?: {
6551
6559
  [k: string]: unknown;
@@ -9303,7 +9311,7 @@ export type BuildTriggerAttributes = {
9303
9311
  /**
9304
9312
  * The type of build trigger
9305
9313
  */
9306
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9314
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9307
9315
  /**
9308
9316
  * Additional settings for the build trigger. The value depends on the `adapter`.
9309
9317
  */
@@ -9376,7 +9384,7 @@ export type BuildTriggerCreateSchema = {
9376
9384
  /**
9377
9385
  * The type of build trigger
9378
9386
  */
9379
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9387
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9380
9388
  /**
9381
9389
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9382
9390
  */
@@ -9425,7 +9433,7 @@ export type BuildTriggerUpdateSchema = {
9425
9433
  /**
9426
9434
  * The type of build trigger
9427
9435
  */
9428
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9436
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9429
9437
  /**
9430
9438
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9431
9439
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -45,5 +45,5 @@
45
45
  "@datocms/dashboard-client": "^5.2.0",
46
46
  "@types/uuid": "^9.0.7"
47
47
  },
48
- "gitHead": "4e70a8cac9fb09bb24843ca133815e6219a99610"
48
+ "gitHead": "725729ea99c56e9908fa758a5b9d1a8ad5293d40"
49
49
  }
@@ -3552,6 +3552,28 @@ export type AccessToken = {
3552
3552
  */
3553
3553
  can_access_cma: boolean;
3554
3554
  hardcoded_type: null | string;
3555
+ /**
3556
+ * When this API token was last used to access the Content Management API
3557
+ */
3558
+ last_cma_access:
3559
+ | 'today'
3560
+ | 'yesterday'
3561
+ | 'this_week'
3562
+ | 'last_week'
3563
+ | 'this_month'
3564
+ | 'last_month'
3565
+ | 'never';
3566
+ /**
3567
+ * When this API token was last used to access the Content Delivery API
3568
+ */
3569
+ last_cda_access:
3570
+ | 'today'
3571
+ | 'yesterday'
3572
+ | 'this_week'
3573
+ | 'last_week'
3574
+ | 'this_month'
3575
+ | 'last_month'
3576
+ | 'never';
3555
3577
  role: RoleData | null;
3556
3578
  };
3557
3579
  export type AccessTokenCreateTargetSchema = AccessToken;
@@ -3597,6 +3619,28 @@ export type AccessTokenAttributes = {
3597
3619
  */
3598
3620
  can_access_cma: boolean;
3599
3621
  hardcoded_type: null | string;
3622
+ /**
3623
+ * When this API token was last used to access the Content Management API
3624
+ */
3625
+ last_cma_access:
3626
+ | 'today'
3627
+ | 'yesterday'
3628
+ | 'this_week'
3629
+ | 'last_week'
3630
+ | 'this_month'
3631
+ | 'last_month'
3632
+ | 'never';
3633
+ /**
3634
+ * When this API token was last used to access the Content Delivery API
3635
+ */
3636
+ last_cda_access:
3637
+ | 'today'
3638
+ | 'yesterday'
3639
+ | 'this_week'
3640
+ | 'last_week'
3641
+ | 'this_month'
3642
+ | 'last_month'
3643
+ | 'never';
3600
3644
  };
3601
3645
  /**
3602
3646
  * JSON API links
@@ -7044,7 +7088,7 @@ export type Plugin = {
7044
7088
  */
7045
7089
  url: string;
7046
7090
  /**
7047
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
7091
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
7048
7092
  */
7049
7093
  parameters: {
7050
7094
  [k: string]: unknown;
@@ -7145,7 +7189,7 @@ export type PluginAttributes = {
7145
7189
  */
7146
7190
  url: string;
7147
7191
  /**
7148
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
7192
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
7149
7193
  */
7150
7194
  parameters: {
7151
7195
  [k: string]: unknown;
@@ -7277,7 +7321,7 @@ export type PluginUpdateSchema = {
7277
7321
  */
7278
7322
  url?: string;
7279
7323
  /**
7280
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
7324
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
7281
7325
  */
7282
7326
  parameters?: {
7283
7327
  [k: string]: unknown;
@@ -9768,7 +9812,7 @@ export type BuildTrigger = {
9768
9812
  /**
9769
9813
  * The type of build trigger
9770
9814
  */
9771
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9815
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9772
9816
  /**
9773
9817
  * Additional settings for the build trigger. The value depends on the `adapter`.
9774
9818
  */
@@ -9830,7 +9874,7 @@ export type BuildTriggerAttributes = {
9830
9874
  /**
9831
9875
  * The type of build trigger
9832
9876
  */
9833
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9877
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9834
9878
  /**
9835
9879
  * Additional settings for the build trigger. The value depends on the `adapter`.
9836
9880
  */
@@ -9887,7 +9931,7 @@ export type BuildTriggerCreateSchema = {
9887
9931
  /**
9888
9932
  * The type of build trigger
9889
9933
  */
9890
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9934
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9891
9935
  /**
9892
9936
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9893
9937
  */
@@ -9925,7 +9969,7 @@ export type BuildTriggerUpdateSchema = {
9925
9969
  /**
9926
9970
  * The type of build trigger
9927
9971
  */
9928
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9972
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9929
9973
  /**
9930
9974
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9931
9975
  */
@@ -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.2.0',
154
+ userAgent: '@datocms/cma-client v5.2.1',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -3051,6 +3051,28 @@ export type AccessTokenAttributes = {
3051
3051
  */
3052
3052
  can_access_cma: boolean;
3053
3053
  hardcoded_type: null | string;
3054
+ /**
3055
+ * When this API token was last used to access the Content Management API
3056
+ */
3057
+ last_cma_access:
3058
+ | 'today'
3059
+ | 'yesterday'
3060
+ | 'this_week'
3061
+ | 'last_week'
3062
+ | 'this_month'
3063
+ | 'last_month'
3064
+ | 'never';
3065
+ /**
3066
+ * When this API token was last used to access the Content Delivery API
3067
+ */
3068
+ last_cda_access:
3069
+ | 'today'
3070
+ | 'yesterday'
3071
+ | 'this_week'
3072
+ | 'last_week'
3073
+ | 'this_month'
3074
+ | 'last_month'
3075
+ | 'never';
3054
3076
  };
3055
3077
  /**
3056
3078
  * JSON API links
@@ -6750,7 +6772,7 @@ export type PluginAttributes = {
6750
6772
  */
6751
6773
  url: string;
6752
6774
  /**
6753
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6775
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6754
6776
  */
6755
6777
  parameters: {
6756
6778
  [k: string]: unknown;
@@ -6917,7 +6939,7 @@ export type PluginUpdateSchema = {
6917
6939
  */
6918
6940
  url?: string;
6919
6941
  /**
6920
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6942
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6921
6943
  */
6922
6944
  parameters?: {
6923
6945
  [k: string]: unknown;
@@ -9900,7 +9922,7 @@ export type BuildTriggerAttributes = {
9900
9922
  /**
9901
9923
  * The type of build trigger
9902
9924
  */
9903
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9925
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9904
9926
  /**
9905
9927
  * Additional settings for the build trigger. The value depends on the `adapter`.
9906
9928
  */
@@ -9973,13 +9995,7 @@ export type BuildTriggerCreateSchema = {
9973
9995
  /**
9974
9996
  * The type of build trigger
9975
9997
  */
9976
- adapter:
9977
- | 'custom'
9978
- | 'netlify'
9979
- | 'vercel'
9980
- | 'circle_ci'
9981
- | 'gitlab'
9982
- | 'travis';
9998
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9983
9999
  /**
9984
10000
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9985
10001
  */
@@ -10028,13 +10044,7 @@ export type BuildTriggerUpdateSchema = {
10028
10044
  /**
10029
10045
  * The type of build trigger
10030
10046
  */
10031
- adapter?:
10032
- | 'custom'
10033
- | 'netlify'
10034
- | 'vercel'
10035
- | 'circle_ci'
10036
- | 'gitlab'
10037
- | 'travis';
10047
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
10038
10048
  /**
10039
10049
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
10040
10050
  */