@datocms/cma-client 6.1.3 → 6.2.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.
@@ -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 v6.1.3', 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 v6.2.0', 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
@@ -50,6 +50,7 @@ class Plugin extends BaseResource_js_1.default {
50
50
  'field_types',
51
51
  'parameter_definitions',
52
52
  'package_version',
53
+ 'enabled',
53
54
  ],
54
55
  relationships: [],
55
56
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -85,9 +86,11 @@ class Plugin extends BaseResource_js_1.default {
85
86
  'name',
86
87
  'description',
87
88
  'url',
89
+ 'package_name',
88
90
  'parameters',
89
91
  'package_version',
90
92
  'permissions',
93
+ 'enabled',
91
94
  ],
92
95
  relationships: [],
93
96
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../../../src/generated/resources/Plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;AACpD,4EAAiD;AAIjD,MAAqB,MAAO,SAAQ,yBAA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ugin = {
6812
6812
  global: unknown[];
6813
6813
  instance: unknown[];
6814
6814
  };
6815
+ /**
6816
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6817
+ */
6818
+ enabled: boolean;
6815
6819
  meta: PluginMeta;
6816
6820
  };
6817
6821
  export type PluginCreateTargetSchema = Plugin;
@@ -6892,6 +6896,10 @@ export type PluginAttributes = {
6892
6896
  global: unknown[];
6893
6897
  instance: unknown[];
6894
6898
  };
6899
+ /**
6900
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6901
+ */
6902
+ enabled: boolean;
6895
6903
  };
6896
6904
  /**
6897
6905
  * This interface was referenced by `Plugin`'s JSON-Schema
@@ -6939,6 +6947,10 @@ export type PluginCreateSchema = {
6939
6947
  * NPM version of the plugin
6940
6948
  */
6941
6949
  package_version?: null | string;
6950
+ /**
6951
+ * Whether the plugin is enabled or not. Defaults to `true`.
6952
+ */
6953
+ enabled?: boolean;
6942
6954
  };
6943
6955
  /**
6944
6956
  * This interface was referenced by `Plugin`'s JSON-Schema
@@ -6959,6 +6971,10 @@ export type PluginUpdateSchema = {
6959
6971
  * The entry point URL of the plugin
6960
6972
  */
6961
6973
  url?: string;
6974
+ /**
6975
+ * Turns a private plugin into a Marketplace plugin, installing the specified package from the DatoCMS Marketplace. Only accepted for private, non-legacy plugins, and cannot be combined with other attributes (except `enabled`). Name, description, URL, version and permissions are replaced with the ones published in the Marketplace, while the existing `parameters` are preserved.
6976
+ */
6977
+ package_name?: string;
6962
6978
  /**
6963
6979
  * 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.
6964
6980
  */
@@ -6973,6 +6989,10 @@ export type PluginUpdateSchema = {
6973
6989
  * Permissions granted to this plugin
6974
6990
  */
6975
6991
  permissions?: 'currentUserAccessToken'[];
6992
+ /**
6993
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6994
+ */
6995
+ enabled?: boolean;
6976
6996
  meta?: {
6977
6997
  [k: string]: unknown;
6978
6998
  };
@@ -59,7 +59,7 @@ export class Client {
59
59
  ...this.config,
60
60
  ...options,
61
61
  logFn: this.config.logFn || console.log,
62
- userAgent: '@datocms/cma-client v6.1.3',
62
+ userAgent: '@datocms/cma-client v6.2.0',
63
63
  baseUrl: this.baseUrl,
64
64
  preCallStack: new Error().stack,
65
65
  extraHeaders: {
@@ -6644,6 +6644,10 @@ export type PluginAttributes = {
6644
6644
  global: unknown[];
6645
6645
  instance: unknown[];
6646
6646
  };
6647
+ /**
6648
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6649
+ */
6650
+ enabled: boolean;
6647
6651
  };
6648
6652
  /**
6649
6653
  * JSON API meta
@@ -6715,6 +6719,10 @@ export type PluginCreateSchema = {
6715
6719
  * NPM version of the plugin
6716
6720
  */
6717
6721
  package_version?: null | string;
6722
+ /**
6723
+ * Whether the plugin is enabled or not. Defaults to `true`.
6724
+ */
6725
+ enabled?: boolean;
6718
6726
  };
6719
6727
  };
6720
6728
  };
@@ -6746,6 +6754,10 @@ export type PluginUpdateSchema = {
6746
6754
  * The entry point URL of the plugin
6747
6755
  */
6748
6756
  url?: string;
6757
+ /**
6758
+ * Turns a private plugin into a Marketplace plugin, installing the specified package from the DatoCMS Marketplace. Only accepted for private, non-legacy plugins, and cannot be combined with other attributes (except `enabled`). Name, description, URL, version and permissions are replaced with the ones published in the Marketplace, while the existing `parameters` are preserved.
6759
+ */
6760
+ package_name?: string;
6749
6761
  /**
6750
6762
  * 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.
6751
6763
  */
@@ -6760,6 +6772,10 @@ export type PluginUpdateSchema = {
6760
6772
  * Permissions granted to this plugin
6761
6773
  */
6762
6774
  permissions?: 'currentUserAccessToken'[];
6775
+ /**
6776
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6777
+ */
6778
+ enabled?: boolean;
6763
6779
  };
6764
6780
  meta?: {
6765
6781
  [k: string]: unknown;
@@ -19,7 +19,7 @@ export default class ItemVersion extends BaseResource {
19
19
  item_type: ApiTypes.ItemTypeData<import("../../index.js").ItemTypeDefinition<{
20
20
  locales: string;
21
21
  }, string, {}>>;
22
- creator?: ApiTypes.UserData | ApiTypes.AccessTokenData | ApiTypes.AccountData | ApiTypes.SsoUserData | ApiTypes.OrganizationData | undefined;
22
+ creator?: ApiTypes.AccountData | ApiTypes.AccessTokenData | ApiTypes.UserData | ApiTypes.SsoUserData | ApiTypes.OrganizationData | undefined;
23
23
  meta: ApiTypes.ItemMeta;
24
24
  } & Record<string, unknown>, ApiTypes.ItemVersion]>;
25
25
  /**
@@ -22,6 +22,7 @@ export default class Plugin extends BaseResource {
22
22
  'field_types',
23
23
  'parameter_definitions',
24
24
  'package_version',
25
+ 'enabled',
25
26
  ],
26
27
  relationships: [],
27
28
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -57,9 +58,11 @@ export default class Plugin extends BaseResource {
57
58
  'name',
58
59
  'description',
59
60
  'url',
61
+ 'package_name',
60
62
  'parameters',
61
63
  'package_version',
62
64
  'permissions',
65
+ 'enabled',
63
66
  ],
64
67
  relationships: [],
65
68
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../../../src/generated/resources/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAIjD,MAAM,CA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B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type * as ApiTypes from '../generated/ApiTypes.js';
1
2
  export type StringMatchesFilter = {
2
3
  /** Pattern to match against */
3
4
  pattern: string;
@@ -242,8 +243,20 @@ export type PositionFilter = {
242
243
  /** Exclude records with an exact match */
243
244
  neq?: number;
244
245
  };
246
+ export type CreatorReference = ApiTypes.AccountData | ApiTypes.AccessTokenData | ApiTypes.UserData | ApiTypes.SsoUserData | ApiTypes.OrganizationData;
247
+ export type CreatorFilter = {
248
+ /** Search records created by the specified creator */
249
+ eq?: CreatorReference;
250
+ /** Exclude records created by the specified creator */
251
+ neq?: CreatorReference;
252
+ /** Search records created by one of the specified creators */
253
+ in?: CreatorReference[];
254
+ /** Search records not created by any of the specified creators */
255
+ notIn?: CreatorReference[];
256
+ };
245
257
  export type ItemMetaFilter = {
246
258
  _created_at?: DateTimeHrefFilter;
259
+ _creator?: CreatorFilter;
247
260
  _first_published_at?: DateTimeHrefFilter;
248
261
  _is_valid?: BooleanHrefFilter;
249
262
  _publication_scheduled_at?: DateTimeHrefFilter;
@@ -6812,6 +6812,10 @@ export type Plugin = {
6812
6812
  global: unknown[];
6813
6813
  instance: unknown[];
6814
6814
  };
6815
+ /**
6816
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6817
+ */
6818
+ enabled: boolean;
6815
6819
  meta: PluginMeta;
6816
6820
  };
6817
6821
  export type PluginCreateTargetSchema = Plugin;
@@ -6892,6 +6896,10 @@ export type PluginAttributes = {
6892
6896
  global: unknown[];
6893
6897
  instance: unknown[];
6894
6898
  };
6899
+ /**
6900
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6901
+ */
6902
+ enabled: boolean;
6895
6903
  };
6896
6904
  /**
6897
6905
  * This interface was referenced by `Plugin`'s JSON-Schema
@@ -6939,6 +6947,10 @@ export type PluginCreateSchema = {
6939
6947
  * NPM version of the plugin
6940
6948
  */
6941
6949
  package_version?: null | string;
6950
+ /**
6951
+ * Whether the plugin is enabled or not. Defaults to `true`.
6952
+ */
6953
+ enabled?: boolean;
6942
6954
  };
6943
6955
  /**
6944
6956
  * This interface was referenced by `Plugin`'s JSON-Schema
@@ -6959,6 +6971,10 @@ export type PluginUpdateSchema = {
6959
6971
  * The entry point URL of the plugin
6960
6972
  */
6961
6973
  url?: string;
6974
+ /**
6975
+ * Turns a private plugin into a Marketplace plugin, installing the specified package from the DatoCMS Marketplace. Only accepted for private, non-legacy plugins, and cannot be combined with other attributes (except `enabled`). Name, description, URL, version and permissions are replaced with the ones published in the Marketplace, while the existing `parameters` are preserved.
6976
+ */
6977
+ package_name?: string;
6962
6978
  /**
6963
6979
  * 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.
6964
6980
  */
@@ -6973,6 +6989,10 @@ export type PluginUpdateSchema = {
6973
6989
  * Permissions granted to this plugin
6974
6990
  */
6975
6991
  permissions?: 'currentUserAccessToken'[];
6992
+ /**
6993
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6994
+ */
6995
+ enabled?: boolean;
6976
6996
  meta?: {
6977
6997
  [k: string]: unknown;
6978
6998
  };
@@ -6644,6 +6644,10 @@ export type PluginAttributes = {
6644
6644
  global: unknown[];
6645
6645
  instance: unknown[];
6646
6646
  };
6647
+ /**
6648
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6649
+ */
6650
+ enabled: boolean;
6647
6651
  };
6648
6652
  /**
6649
6653
  * JSON API meta
@@ -6715,6 +6719,10 @@ export type PluginCreateSchema = {
6715
6719
  * NPM version of the plugin
6716
6720
  */
6717
6721
  package_version?: null | string;
6722
+ /**
6723
+ * Whether the plugin is enabled or not. Defaults to `true`.
6724
+ */
6725
+ enabled?: boolean;
6718
6726
  };
6719
6727
  };
6720
6728
  };
@@ -6746,6 +6754,10 @@ export type PluginUpdateSchema = {
6746
6754
  * The entry point URL of the plugin
6747
6755
  */
6748
6756
  url?: string;
6757
+ /**
6758
+ * Turns a private plugin into a Marketplace plugin, installing the specified package from the DatoCMS Marketplace. Only accepted for private, non-legacy plugins, and cannot be combined with other attributes (except `enabled`). Name, description, URL, version and permissions are replaced with the ones published in the Marketplace, while the existing `parameters` are preserved.
6759
+ */
6760
+ package_name?: string;
6749
6761
  /**
6750
6762
  * 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.
6751
6763
  */
@@ -6760,6 +6772,10 @@ export type PluginUpdateSchema = {
6760
6772
  * Permissions granted to this plugin
6761
6773
  */
6762
6774
  permissions?: 'currentUserAccessToken'[];
6775
+ /**
6776
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
6777
+ */
6778
+ enabled?: boolean;
6763
6779
  };
6764
6780
  meta?: {
6765
6781
  [k: string]: unknown;
@@ -19,7 +19,7 @@ export default class ItemVersion extends BaseResource {
19
19
  item_type: ApiTypes.ItemTypeData<import("../../index.js").ItemTypeDefinition<{
20
20
  locales: string;
21
21
  }, string, {}>>;
22
- creator?: ApiTypes.UserData | ApiTypes.AccessTokenData | ApiTypes.AccountData | ApiTypes.SsoUserData | ApiTypes.OrganizationData | undefined;
22
+ creator?: ApiTypes.AccountData | ApiTypes.AccessTokenData | ApiTypes.UserData | ApiTypes.SsoUserData | ApiTypes.OrganizationData | undefined;
23
23
  meta: ApiTypes.ItemMeta;
24
24
  } & Record<string, unknown>, ApiTypes.ItemVersion]>;
25
25
  /**
@@ -1,3 +1,4 @@
1
+ import type * as ApiTypes from '../generated/ApiTypes.js';
1
2
  export type StringMatchesFilter = {
2
3
  /** Pattern to match against */
3
4
  pattern: string;
@@ -242,8 +243,20 @@ export type PositionFilter = {
242
243
  /** Exclude records with an exact match */
243
244
  neq?: number;
244
245
  };
246
+ export type CreatorReference = ApiTypes.AccountData | ApiTypes.AccessTokenData | ApiTypes.UserData | ApiTypes.SsoUserData | ApiTypes.OrganizationData;
247
+ export type CreatorFilter = {
248
+ /** Search records created by the specified creator */
249
+ eq?: CreatorReference;
250
+ /** Exclude records created by the specified creator */
251
+ neq?: CreatorReference;
252
+ /** Search records created by one of the specified creators */
253
+ in?: CreatorReference[];
254
+ /** Search records not created by any of the specified creators */
255
+ notIn?: CreatorReference[];
256
+ };
245
257
  export type ItemMetaFilter = {
246
258
  _created_at?: DateTimeHrefFilter;
259
+ _creator?: CreatorFilter;
247
260
  _first_published_at?: DateTimeHrefFilter;
248
261
  _is_valid?: BooleanHrefFilter;
249
262
  _publication_scheduled_at?: DateTimeHrefFilter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "6.1.3",
3
+ "version": "6.2.0",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
package/resources.json CHANGED
@@ -1869,7 +1869,8 @@
1869
1869
  "plugin_type",
1870
1870
  "field_types",
1871
1871
  "parameter_definitions",
1872
- "package_version"
1872
+ "package_version",
1873
+ "enabled"
1873
1874
  ],
1874
1875
  "relationships": []
1875
1876
  },
@@ -1908,9 +1909,11 @@
1908
1909
  "name",
1909
1910
  "description",
1910
1911
  "url",
1912
+ "package_name",
1911
1913
  "parameters",
1912
1914
  "package_version",
1913
- "permissions"
1915
+ "permissions",
1916
+ "enabled"
1914
1917
  ],
1915
1918
  "relationships": []
1916
1919
  },
@@ -7273,6 +7273,10 @@ export type Plugin = {
7273
7273
  global: unknown[];
7274
7274
  instance: unknown[];
7275
7275
  };
7276
+ /**
7277
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
7278
+ */
7279
+ enabled: boolean;
7276
7280
  meta: PluginMeta;
7277
7281
  };
7278
7282
  export type PluginCreateTargetSchema = Plugin;
@@ -7374,6 +7378,10 @@ export type PluginAttributes = {
7374
7378
  global: unknown[];
7375
7379
  instance: unknown[];
7376
7380
  };
7381
+ /**
7382
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
7383
+ */
7384
+ enabled: boolean;
7377
7385
  };
7378
7386
  /**
7379
7387
  * This interface was referenced by `Plugin`'s JSON-Schema
@@ -7440,6 +7448,10 @@ export type PluginCreateSchema = {
7440
7448
  * NPM version of the plugin
7441
7449
  */
7442
7450
  package_version?: null | string;
7451
+ /**
7452
+ * Whether the plugin is enabled or not. Defaults to `true`.
7453
+ */
7454
+ enabled?: boolean;
7443
7455
  };
7444
7456
  /**
7445
7457
  * This interface was referenced by `Plugin`'s JSON-Schema
@@ -7460,6 +7472,10 @@ export type PluginUpdateSchema = {
7460
7472
  * The entry point URL of the plugin
7461
7473
  */
7462
7474
  url?: string;
7475
+ /**
7476
+ * Turns a private plugin into a Marketplace plugin, installing the specified package from the DatoCMS Marketplace. Only accepted for private, non-legacy plugins, and cannot be combined with other attributes (except `enabled`). Name, description, URL, version and permissions are replaced with the ones published in the Marketplace, while the existing `parameters` are preserved.
7477
+ */
7478
+ package_name?: string;
7463
7479
  /**
7464
7480
  * 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.
7465
7481
  */
@@ -7474,6 +7490,10 @@ export type PluginUpdateSchema = {
7474
7490
  * Permissions granted to this plugin
7475
7491
  */
7476
7492
  permissions?: 'currentUserAccessToken'[];
7493
+ /**
7494
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
7495
+ */
7496
+ enabled?: boolean;
7477
7497
  meta?: {
7478
7498
  [k: string]: unknown;
7479
7499
  };
@@ -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 v6.1.3',
154
+ userAgent: '@datocms/cma-client v6.2.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -6997,6 +6997,10 @@ export type PluginAttributes = {
6997
6997
  global: unknown[];
6998
6998
  instance: unknown[];
6999
6999
  };
7000
+ /**
7001
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
7002
+ */
7003
+ enabled: boolean;
7000
7004
  };
7001
7005
  /**
7002
7006
  * JSON API meta
@@ -7087,6 +7091,10 @@ export type PluginCreateSchema = {
7087
7091
  * NPM version of the plugin
7088
7092
  */
7089
7093
  package_version?: null | string;
7094
+ /**
7095
+ * Whether the plugin is enabled or not. Defaults to `true`.
7096
+ */
7097
+ enabled?: boolean;
7090
7098
  };
7091
7099
  };
7092
7100
  };
@@ -7118,6 +7126,10 @@ export type PluginUpdateSchema = {
7118
7126
  * The entry point URL of the plugin
7119
7127
  */
7120
7128
  url?: string;
7129
+ /**
7130
+ * Turns a private plugin into a Marketplace plugin, installing the specified package from the DatoCMS Marketplace. Only accepted for private, non-legacy plugins, and cannot be combined with other attributes (except `enabled`). Name, description, URL, version and permissions are replaced with the ones published in the Marketplace, while the existing `parameters` are preserved.
7131
+ */
7132
+ package_name?: string;
7121
7133
  /**
7122
7134
  * 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.
7123
7135
  */
@@ -7132,6 +7144,10 @@ export type PluginUpdateSchema = {
7132
7144
  * Permissions granted to this plugin
7133
7145
  */
7134
7146
  permissions?: 'currentUserAccessToken'[];
7147
+ /**
7148
+ * Whether the plugin is enabled or not. When disabled, the plugin behaves as if it didn't exist: fields using it as editor/addon fall back to the default editor, and any sidebar panel/page/config screen/asset source it registers does not render.
7149
+ */
7150
+ enabled?: boolean;
7135
7151
  };
7136
7152
  meta?: {
7137
7153
  [k: string]: unknown;
@@ -28,6 +28,7 @@ export default class Plugin extends BaseResource {
28
28
  'field_types',
29
29
  'parameter_definitions',
30
30
  'package_version',
31
+ 'enabled',
31
32
  ],
32
33
  relationships: [],
33
34
  }),
@@ -75,9 +76,11 @@ export default class Plugin extends BaseResource {
75
76
  'name',
76
77
  'description',
77
78
  'url',
79
+ 'package_name',
78
80
  'parameters',
79
81
  'package_version',
80
82
  'permissions',
83
+ 'enabled',
81
84
  ],
82
85
  relationships: [],
83
86
  }),
@@ -1,3 +1,5 @@
1
+ import type * as ApiTypes from '../generated/ApiTypes.js';
2
+
1
3
  // String matching filter for text-based filters
2
4
  export type StringMatchesFilter = {
3
5
  /** Pattern to match against */
@@ -275,8 +277,29 @@ export type PositionFilter = {
275
277
  neq?: number;
276
278
  };
277
279
 
280
+ // Polymorphic reference to whoever created a record, same shape as `Item['creator']`
281
+ export type CreatorReference =
282
+ | ApiTypes.AccountData
283
+ | ApiTypes.AccessTokenData
284
+ | ApiTypes.UserData
285
+ | ApiTypes.SsoUserData
286
+ | ApiTypes.OrganizationData;
287
+
288
+ // Creator filter for the _creator meta field
289
+ export type CreatorFilter = {
290
+ /** Search records created by the specified creator */
291
+ eq?: CreatorReference;
292
+ /** Exclude records created by the specified creator */
293
+ neq?: CreatorReference;
294
+ /** Search records created by one of the specified creators */
295
+ in?: CreatorReference[];
296
+ /** Search records not created by any of the specified creators */
297
+ notIn?: CreatorReference[];
298
+ };
299
+
278
300
  export type ItemMetaFilter = {
279
301
  _created_at?: DateTimeHrefFilter;
302
+ _creator?: CreatorFilter;
280
303
  _first_published_at?: DateTimeHrefFilter;
281
304
  _is_valid?: BooleanHrefFilter;
282
305
  _publication_scheduled_at?: DateTimeHrefFilter;