@datocms/cma-client 1.1.23-alpha.2 → 1.1.23-alpha.3

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.
@@ -127,7 +127,7 @@ var Client = /** @class */ (function () {
127
127
  });
128
128
  Client.prototype.request = function (options) {
129
129
  var _this = this;
130
- return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.1.23-alpha.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
130
+ return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.1.23-alpha.3', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
131
131
  ? { 'X-Environment': this.config.environment }
132
132
  : {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
133
133
  return _this.jobResultsFetcher
@@ -25,7 +25,7 @@ export declare function buildBlockRecord(body: SimpleSchemaTypes.ItemUpdateSchem
25
25
  data: SchemaTypes.ItemTypeData;
26
26
  } | undefined;
27
27
  creator?: {
28
- data: SchemaTypes.UserData | SchemaTypes.SsoUserData | SchemaTypes.AccessTokenData | SchemaTypes.AccountData;
28
+ data: SchemaTypes.UserData | SchemaTypes.SsoUserData | SchemaTypes.AccessTokenData | SchemaTypes.AccountData | SchemaTypes.OrganizationData;
29
29
  } | undefined;
30
30
  } | undefined;
31
31
  };
@@ -101,7 +101,7 @@ var Client = /** @class */ (function () {
101
101
  });
102
102
  Client.prototype.request = function (options) {
103
103
  var _this = this;
104
- return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.1.23-alpha.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
104
+ return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.1.23-alpha.3', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
105
105
  ? { 'X-Environment': this.config.environment }
106
106
  : {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
107
107
  return _this.jobResultsFetcher
@@ -227,6 +227,23 @@ export declare type AuditLogEventType = 'audit_log_event';
227
227
  * via the `definition` "id".
228
228
  */
229
229
  export declare type AuditLogEventIdentity = string;
230
+ /**
231
+ * JSON API type field
232
+ *
233
+ * This interface was referenced by `Organization`'s JSON-Schema
234
+ * via the `definition` "type".
235
+ */
236
+ export declare type OrganizationType = 'organization';
237
+ /**
238
+ * ID of organization
239
+ *
240
+ * This interface was referenced by `Organization`'s JSON-Schema
241
+ * via the `definition` "identity".
242
+ *
243
+ * This interface was referenced by `Organization`'s JSON-Schema
244
+ * via the `definition` "id".
245
+ */
246
+ export declare type OrganizationIdentity = string;
230
247
  /**
231
248
  * JSON API type field
232
249
  *
@@ -1268,6 +1285,7 @@ export declare type DatoApi = {
1268
1285
  sso_user?: SsoUser;
1269
1286
  audit_log_event?: AuditLogEvent;
1270
1287
  account?: Account;
1288
+ organization?: Organization;
1271
1289
  site_plan?: SitePlan;
1272
1290
  menu_item?: MenuItem;
1273
1291
  item_type?: ItemType;
@@ -2647,10 +2665,6 @@ export declare type AccountAttributes = {
2647
2665
  * Company name
2648
2666
  */
2649
2667
  company: string | null;
2650
- /**
2651
- * Password
2652
- */
2653
- password?: string;
2654
2668
  };
2655
2669
  /**
2656
2670
  * JSON API data
@@ -2835,6 +2849,39 @@ export declare type AuditLogEventQueryTargetSchema = {
2835
2849
  next_token: null | string;
2836
2850
  };
2837
2851
  };
2852
+ /**
2853
+ * DatoCMS organization
2854
+ *
2855
+ * This interface was referenced by `DatoApi`'s JSON-Schema
2856
+ * via the `definition` "organization".
2857
+ */
2858
+ export declare type Organization = {
2859
+ type: OrganizationType;
2860
+ id: OrganizationIdentity;
2861
+ attributes: OrganizationAttributes;
2862
+ };
2863
+ /**
2864
+ * JSON API attributes
2865
+ *
2866
+ * This interface was referenced by `Organization`'s JSON-Schema
2867
+ * via the `definition` "attributes".
2868
+ */
2869
+ export declare type OrganizationAttributes = {
2870
+ /**
2871
+ * Name of the organization
2872
+ */
2873
+ name: string;
2874
+ };
2875
+ /**
2876
+ * JSON API data
2877
+ *
2878
+ * This interface was referenced by `Organization`'s JSON-Schema
2879
+ * via the `definition` "data".
2880
+ */
2881
+ export declare type OrganizationData = {
2882
+ type: OrganizationType;
2883
+ id: OrganizationIdentity;
2884
+ };
2838
2885
  /**
2839
2886
  * Stores the information regarding the current plan for the project.
2840
2887
  *
@@ -5755,7 +5802,7 @@ export declare type ItemRelationships = {
5755
5802
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
5756
5803
  */
5757
5804
  creator?: {
5758
- data: AccountData | AccessTokenData | UserData | SsoUserData;
5805
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
5759
5806
  };
5760
5807
  };
5761
5808
  /**
@@ -5849,7 +5896,7 @@ export declare type ItemValidateExistingSchema = {
5849
5896
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
5850
5897
  */
5851
5898
  creator?: {
5852
- data: AccountData | AccessTokenData | UserData | SsoUserData;
5899
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
5853
5900
  };
5854
5901
  };
5855
5902
  };
@@ -6046,7 +6093,7 @@ export declare type ItemUpdateSchema = {
6046
6093
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6047
6094
  */
6048
6095
  creator?: {
6049
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6096
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6050
6097
  };
6051
6098
  };
6052
6099
  };
@@ -6364,7 +6411,7 @@ export declare type ItemVersionRelationships = {
6364
6411
  * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6365
6412
  */
6366
6413
  editor: {
6367
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6414
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6368
6415
  };
6369
6416
  };
6370
6417
  /**
@@ -6620,7 +6667,7 @@ export declare type UploadRelationships = {
6620
6667
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
6621
6668
  */
6622
6669
  creator: {
6623
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6670
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6624
6671
  };
6625
6672
  };
6626
6673
  /**
@@ -6819,7 +6866,7 @@ export declare type UploadUpdateSchema = {
6819
6866
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
6820
6867
  */
6821
6868
  creator: {
6822
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6869
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6823
6870
  };
6824
6871
  };
6825
6872
  };
@@ -9313,9 +9360,12 @@ export declare type SiteAttributes = {
9313
9360
  * via the `definition` "relationships".
9314
9361
  */
9315
9362
  export declare type SiteRelationships = {
9316
- account: {
9363
+ account: null | {
9317
9364
  data: AccountData;
9318
9365
  };
9366
+ owner: {
9367
+ data: AccountData | OrganizationData;
9368
+ };
9319
9369
  item_types: {
9320
9370
  /**
9321
9371
  * The list item types for the site
@@ -262,6 +262,23 @@ export declare type AuditLogEventType = 'audit_log_event';
262
262
  * via the `query.targetSchema` link.
263
263
  */
264
264
  export declare type AuditLogEventQueryTargetSchema = AuditLogEvent[];
265
+ /**
266
+ * ID of organization
267
+ *
268
+ * This interface was referenced by `Organization`'s JSON-Schema
269
+ * via the `definition` "identity".
270
+ *
271
+ * This interface was referenced by `Organization`'s JSON-Schema
272
+ * via the `definition` "id".
273
+ */
274
+ export declare type OrganizationIdentity = string;
275
+ /**
276
+ * JSON API type field
277
+ *
278
+ * This interface was referenced by `Organization`'s JSON-Schema
279
+ * via the `definition` "type".
280
+ */
281
+ export declare type OrganizationType = 'organization';
265
282
  /**
266
283
  * ID of plan
267
284
  *
@@ -1555,6 +1572,7 @@ export declare type DatoApi = {
1555
1572
  sso_user?: SsoUser;
1556
1573
  audit_log_event?: AuditLogEvent;
1557
1574
  account?: Account;
1575
+ organization?: Organization;
1558
1576
  site_plan?: SitePlan;
1559
1577
  menu_item?: MenuItem;
1560
1578
  item_type?: ItemType;
@@ -2950,10 +2968,6 @@ export declare type Account = {
2950
2968
  * Company name
2951
2969
  */
2952
2970
  company: string | null;
2953
- /**
2954
- * Password
2955
- */
2956
- password?: string;
2957
2971
  };
2958
2972
  /**
2959
2973
  * JSON API data
@@ -2988,10 +3002,6 @@ export declare type AccountAttributes = {
2988
3002
  * Company name
2989
3003
  */
2990
3004
  company: string | null;
2991
- /**
2992
- * Password
2993
- */
2994
- password?: string;
2995
3005
  };
2996
3006
  /**
2997
3007
  * If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
@@ -3226,6 +3236,42 @@ export declare type AuditLogEventQuerySchema = {
3226
3236
  */
3227
3237
  detailed_log?: boolean;
3228
3238
  };
3239
+ /**
3240
+ * DatoCMS organization
3241
+ *
3242
+ * This interface was referenced by `DatoApi`'s JSON-Schema
3243
+ * via the `definition` "organization".
3244
+ */
3245
+ export declare type Organization = {
3246
+ id: OrganizationIdentity;
3247
+ type: OrganizationType;
3248
+ /**
3249
+ * Name of the organization
3250
+ */
3251
+ name: string;
3252
+ };
3253
+ /**
3254
+ * JSON API data
3255
+ *
3256
+ * This interface was referenced by `Organization`'s JSON-Schema
3257
+ * via the `definition` "data".
3258
+ */
3259
+ export declare type OrganizationData = {
3260
+ type: OrganizationType;
3261
+ id: OrganizationIdentity;
3262
+ };
3263
+ /**
3264
+ * JSON API attributes
3265
+ *
3266
+ * This interface was referenced by `Organization`'s JSON-Schema
3267
+ * via the `definition` "attributes".
3268
+ */
3269
+ export declare type OrganizationAttributes = {
3270
+ /**
3271
+ * Name of the organization
3272
+ */
3273
+ name: string;
3274
+ };
3229
3275
  /**
3230
3276
  * Stores the information regarding the current plan for the project.
3231
3277
  *
@@ -6158,7 +6204,7 @@ export declare type Item = {
6158
6204
  id: ItemIdentity;
6159
6205
  type: ItemType1;
6160
6206
  item_type: ItemTypeData;
6161
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6207
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6162
6208
  meta: ItemMeta;
6163
6209
  [k: string]: unknown;
6164
6210
  };
@@ -6244,7 +6290,7 @@ export declare type ItemAttributes = {
6244
6290
  */
6245
6291
  export declare type ItemRelationships = {
6246
6292
  item_type: ItemTypeData;
6247
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6293
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6248
6294
  };
6249
6295
  /**
6250
6296
  * This interface was referenced by `Item`'s JSON-Schema
@@ -6254,7 +6300,7 @@ export declare type ItemValidateExistingSchema = {
6254
6300
  id?: ItemIdentity;
6255
6301
  type?: ItemType1;
6256
6302
  item_type: ItemTypeData;
6257
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6303
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6258
6304
  [k: string]: unknown;
6259
6305
  };
6260
6306
  /**
@@ -6328,7 +6374,7 @@ export declare type ItemUpdateSchema = {
6328
6374
  id?: ItemIdentity;
6329
6375
  type?: ItemType1;
6330
6376
  item_type?: ItemTypeData;
6331
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6377
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6332
6378
  /**
6333
6379
  * Meta information regarding the record
6334
6380
  */
@@ -6450,7 +6496,7 @@ export declare type ItemVersion = {
6450
6496
  type: ItemVersionType;
6451
6497
  item_type: ItemTypeData;
6452
6498
  item: ItemData;
6453
- editor: AccountData | AccessTokenData | UserData | SsoUserData;
6499
+ editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6454
6500
  meta: ItemVersionMeta;
6455
6501
  [k: string]: unknown;
6456
6502
  };
@@ -6507,7 +6553,7 @@ export declare type ItemVersionAttributes = {
6507
6553
  export declare type ItemVersionRelationships = {
6508
6554
  item_type: ItemTypeData;
6509
6555
  item: ItemData;
6510
- editor: AccountData | AccessTokenData | UserData | SsoUserData;
6556
+ editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6511
6557
  };
6512
6558
  /**
6513
6559
  * Every file you upload to DatoCMS will be retrievable from this endpoint.
@@ -6675,7 +6721,7 @@ export declare type Upload = {
6675
6721
  */
6676
6722
  alpha: number;
6677
6723
  }[];
6678
- creator: AccountData | AccessTokenData | UserData | SsoUserData;
6724
+ creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6679
6725
  };
6680
6726
  export declare type UploadCreateJobSchema = Upload;
6681
6727
  export declare type UploadSelfTargetSchema = Upload;
@@ -6863,7 +6909,7 @@ export declare type UploadAttributes = {
6863
6909
  * via the `definition` "relationships".
6864
6910
  */
6865
6911
  export declare type UploadRelationships = {
6866
- creator: AccountData | AccessTokenData | UserData | SsoUserData;
6912
+ creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6867
6913
  };
6868
6914
  /**
6869
6915
  * This interface was referenced by `Upload`'s JSON-Schema
@@ -6999,7 +7045,7 @@ export declare type UploadUpdateSchema = {
6999
7045
  } | null;
7000
7046
  };
7001
7047
  };
7002
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
7048
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7003
7049
  };
7004
7050
  /**
7005
7051
  * This interface was referenced by `Upload`'s JSON-Schema
@@ -9103,6 +9149,7 @@ export declare type Site = {
9103
9149
  [k: string]: unknown;
9104
9150
  } | null;
9105
9151
  account: AccountData;
9152
+ owner: AccountData | OrganizationData;
9106
9153
  /**
9107
9154
  * The list item types for the site
9108
9155
  */
@@ -9271,6 +9318,7 @@ export declare type SiteAttributes = {
9271
9318
  */
9272
9319
  export declare type SiteRelationships = {
9273
9320
  account: AccountData;
9321
+ owner: AccountData | OrganizationData;
9274
9322
  /**
9275
9323
  * The list item types for the site
9276
9324
  */
@@ -25,7 +25,7 @@ export declare function buildBlockRecord(body: SimpleSchemaTypes.ItemUpdateSchem
25
25
  data: SchemaTypes.ItemTypeData;
26
26
  } | undefined;
27
27
  creator?: {
28
- data: SchemaTypes.UserData | SchemaTypes.SsoUserData | SchemaTypes.AccessTokenData | SchemaTypes.AccountData;
28
+ data: SchemaTypes.UserData | SchemaTypes.SsoUserData | SchemaTypes.AccessTokenData | SchemaTypes.AccountData | SchemaTypes.OrganizationData;
29
29
  } | undefined;
30
30
  } | undefined;
31
31
  };
@@ -227,6 +227,23 @@ export declare type AuditLogEventType = 'audit_log_event';
227
227
  * via the `definition` "id".
228
228
  */
229
229
  export declare type AuditLogEventIdentity = string;
230
+ /**
231
+ * JSON API type field
232
+ *
233
+ * This interface was referenced by `Organization`'s JSON-Schema
234
+ * via the `definition` "type".
235
+ */
236
+ export declare type OrganizationType = 'organization';
237
+ /**
238
+ * ID of organization
239
+ *
240
+ * This interface was referenced by `Organization`'s JSON-Schema
241
+ * via the `definition` "identity".
242
+ *
243
+ * This interface was referenced by `Organization`'s JSON-Schema
244
+ * via the `definition` "id".
245
+ */
246
+ export declare type OrganizationIdentity = string;
230
247
  /**
231
248
  * JSON API type field
232
249
  *
@@ -1268,6 +1285,7 @@ export declare type DatoApi = {
1268
1285
  sso_user?: SsoUser;
1269
1286
  audit_log_event?: AuditLogEvent;
1270
1287
  account?: Account;
1288
+ organization?: Organization;
1271
1289
  site_plan?: SitePlan;
1272
1290
  menu_item?: MenuItem;
1273
1291
  item_type?: ItemType;
@@ -2647,10 +2665,6 @@ export declare type AccountAttributes = {
2647
2665
  * Company name
2648
2666
  */
2649
2667
  company: string | null;
2650
- /**
2651
- * Password
2652
- */
2653
- password?: string;
2654
2668
  };
2655
2669
  /**
2656
2670
  * JSON API data
@@ -2835,6 +2849,39 @@ export declare type AuditLogEventQueryTargetSchema = {
2835
2849
  next_token: null | string;
2836
2850
  };
2837
2851
  };
2852
+ /**
2853
+ * DatoCMS organization
2854
+ *
2855
+ * This interface was referenced by `DatoApi`'s JSON-Schema
2856
+ * via the `definition` "organization".
2857
+ */
2858
+ export declare type Organization = {
2859
+ type: OrganizationType;
2860
+ id: OrganizationIdentity;
2861
+ attributes: OrganizationAttributes;
2862
+ };
2863
+ /**
2864
+ * JSON API attributes
2865
+ *
2866
+ * This interface was referenced by `Organization`'s JSON-Schema
2867
+ * via the `definition` "attributes".
2868
+ */
2869
+ export declare type OrganizationAttributes = {
2870
+ /**
2871
+ * Name of the organization
2872
+ */
2873
+ name: string;
2874
+ };
2875
+ /**
2876
+ * JSON API data
2877
+ *
2878
+ * This interface was referenced by `Organization`'s JSON-Schema
2879
+ * via the `definition` "data".
2880
+ */
2881
+ export declare type OrganizationData = {
2882
+ type: OrganizationType;
2883
+ id: OrganizationIdentity;
2884
+ };
2838
2885
  /**
2839
2886
  * Stores the information regarding the current plan for the project.
2840
2887
  *
@@ -5755,7 +5802,7 @@ export declare type ItemRelationships = {
5755
5802
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
5756
5803
  */
5757
5804
  creator?: {
5758
- data: AccountData | AccessTokenData | UserData | SsoUserData;
5805
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
5759
5806
  };
5760
5807
  };
5761
5808
  /**
@@ -5849,7 +5896,7 @@ export declare type ItemValidateExistingSchema = {
5849
5896
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
5850
5897
  */
5851
5898
  creator?: {
5852
- data: AccountData | AccessTokenData | UserData | SsoUserData;
5899
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
5853
5900
  };
5854
5901
  };
5855
5902
  };
@@ -6046,7 +6093,7 @@ export declare type ItemUpdateSchema = {
6046
6093
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6047
6094
  */
6048
6095
  creator?: {
6049
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6096
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6050
6097
  };
6051
6098
  };
6052
6099
  };
@@ -6364,7 +6411,7 @@ export declare type ItemVersionRelationships = {
6364
6411
  * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6365
6412
  */
6366
6413
  editor: {
6367
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6414
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6368
6415
  };
6369
6416
  };
6370
6417
  /**
@@ -6620,7 +6667,7 @@ export declare type UploadRelationships = {
6620
6667
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
6621
6668
  */
6622
6669
  creator: {
6623
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6670
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6624
6671
  };
6625
6672
  };
6626
6673
  /**
@@ -6819,7 +6866,7 @@ export declare type UploadUpdateSchema = {
6819
6866
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
6820
6867
  */
6821
6868
  creator: {
6822
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6869
+ data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6823
6870
  };
6824
6871
  };
6825
6872
  };
@@ -9313,9 +9360,12 @@ export declare type SiteAttributes = {
9313
9360
  * via the `definition` "relationships".
9314
9361
  */
9315
9362
  export declare type SiteRelationships = {
9316
- account: {
9363
+ account: null | {
9317
9364
  data: AccountData;
9318
9365
  };
9366
+ owner: {
9367
+ data: AccountData | OrganizationData;
9368
+ };
9319
9369
  item_types: {
9320
9370
  /**
9321
9371
  * The list item types for the site
@@ -262,6 +262,23 @@ export declare type AuditLogEventType = 'audit_log_event';
262
262
  * via the `query.targetSchema` link.
263
263
  */
264
264
  export declare type AuditLogEventQueryTargetSchema = AuditLogEvent[];
265
+ /**
266
+ * ID of organization
267
+ *
268
+ * This interface was referenced by `Organization`'s JSON-Schema
269
+ * via the `definition` "identity".
270
+ *
271
+ * This interface was referenced by `Organization`'s JSON-Schema
272
+ * via the `definition` "id".
273
+ */
274
+ export declare type OrganizationIdentity = string;
275
+ /**
276
+ * JSON API type field
277
+ *
278
+ * This interface was referenced by `Organization`'s JSON-Schema
279
+ * via the `definition` "type".
280
+ */
281
+ export declare type OrganizationType = 'organization';
265
282
  /**
266
283
  * ID of plan
267
284
  *
@@ -1555,6 +1572,7 @@ export declare type DatoApi = {
1555
1572
  sso_user?: SsoUser;
1556
1573
  audit_log_event?: AuditLogEvent;
1557
1574
  account?: Account;
1575
+ organization?: Organization;
1558
1576
  site_plan?: SitePlan;
1559
1577
  menu_item?: MenuItem;
1560
1578
  item_type?: ItemType;
@@ -2950,10 +2968,6 @@ export declare type Account = {
2950
2968
  * Company name
2951
2969
  */
2952
2970
  company: string | null;
2953
- /**
2954
- * Password
2955
- */
2956
- password?: string;
2957
2971
  };
2958
2972
  /**
2959
2973
  * JSON API data
@@ -2988,10 +3002,6 @@ export declare type AccountAttributes = {
2988
3002
  * Company name
2989
3003
  */
2990
3004
  company: string | null;
2991
- /**
2992
- * Password
2993
- */
2994
- password?: string;
2995
3005
  };
2996
3006
  /**
2997
3007
  * If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
@@ -3226,6 +3236,42 @@ export declare type AuditLogEventQuerySchema = {
3226
3236
  */
3227
3237
  detailed_log?: boolean;
3228
3238
  };
3239
+ /**
3240
+ * DatoCMS organization
3241
+ *
3242
+ * This interface was referenced by `DatoApi`'s JSON-Schema
3243
+ * via the `definition` "organization".
3244
+ */
3245
+ export declare type Organization = {
3246
+ id: OrganizationIdentity;
3247
+ type: OrganizationType;
3248
+ /**
3249
+ * Name of the organization
3250
+ */
3251
+ name: string;
3252
+ };
3253
+ /**
3254
+ * JSON API data
3255
+ *
3256
+ * This interface was referenced by `Organization`'s JSON-Schema
3257
+ * via the `definition` "data".
3258
+ */
3259
+ export declare type OrganizationData = {
3260
+ type: OrganizationType;
3261
+ id: OrganizationIdentity;
3262
+ };
3263
+ /**
3264
+ * JSON API attributes
3265
+ *
3266
+ * This interface was referenced by `Organization`'s JSON-Schema
3267
+ * via the `definition` "attributes".
3268
+ */
3269
+ export declare type OrganizationAttributes = {
3270
+ /**
3271
+ * Name of the organization
3272
+ */
3273
+ name: string;
3274
+ };
3229
3275
  /**
3230
3276
  * Stores the information regarding the current plan for the project.
3231
3277
  *
@@ -6158,7 +6204,7 @@ export declare type Item = {
6158
6204
  id: ItemIdentity;
6159
6205
  type: ItemType1;
6160
6206
  item_type: ItemTypeData;
6161
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6207
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6162
6208
  meta: ItemMeta;
6163
6209
  [k: string]: unknown;
6164
6210
  };
@@ -6244,7 +6290,7 @@ export declare type ItemAttributes = {
6244
6290
  */
6245
6291
  export declare type ItemRelationships = {
6246
6292
  item_type: ItemTypeData;
6247
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6293
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6248
6294
  };
6249
6295
  /**
6250
6296
  * This interface was referenced by `Item`'s JSON-Schema
@@ -6254,7 +6300,7 @@ export declare type ItemValidateExistingSchema = {
6254
6300
  id?: ItemIdentity;
6255
6301
  type?: ItemType1;
6256
6302
  item_type: ItemTypeData;
6257
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6303
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6258
6304
  [k: string]: unknown;
6259
6305
  };
6260
6306
  /**
@@ -6328,7 +6374,7 @@ export declare type ItemUpdateSchema = {
6328
6374
  id?: ItemIdentity;
6329
6375
  type?: ItemType1;
6330
6376
  item_type?: ItemTypeData;
6331
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6377
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6332
6378
  /**
6333
6379
  * Meta information regarding the record
6334
6380
  */
@@ -6450,7 +6496,7 @@ export declare type ItemVersion = {
6450
6496
  type: ItemVersionType;
6451
6497
  item_type: ItemTypeData;
6452
6498
  item: ItemData;
6453
- editor: AccountData | AccessTokenData | UserData | SsoUserData;
6499
+ editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6454
6500
  meta: ItemVersionMeta;
6455
6501
  [k: string]: unknown;
6456
6502
  };
@@ -6507,7 +6553,7 @@ export declare type ItemVersionAttributes = {
6507
6553
  export declare type ItemVersionRelationships = {
6508
6554
  item_type: ItemTypeData;
6509
6555
  item: ItemData;
6510
- editor: AccountData | AccessTokenData | UserData | SsoUserData;
6556
+ editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6511
6557
  };
6512
6558
  /**
6513
6559
  * Every file you upload to DatoCMS will be retrievable from this endpoint.
@@ -6675,7 +6721,7 @@ export declare type Upload = {
6675
6721
  */
6676
6722
  alpha: number;
6677
6723
  }[];
6678
- creator: AccountData | AccessTokenData | UserData | SsoUserData;
6724
+ creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6679
6725
  };
6680
6726
  export declare type UploadCreateJobSchema = Upload;
6681
6727
  export declare type UploadSelfTargetSchema = Upload;
@@ -6863,7 +6909,7 @@ export declare type UploadAttributes = {
6863
6909
  * via the `definition` "relationships".
6864
6910
  */
6865
6911
  export declare type UploadRelationships = {
6866
- creator: AccountData | AccessTokenData | UserData | SsoUserData;
6912
+ creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
6867
6913
  };
6868
6914
  /**
6869
6915
  * This interface was referenced by `Upload`'s JSON-Schema
@@ -6999,7 +7045,7 @@ export declare type UploadUpdateSchema = {
6999
7045
  } | null;
7000
7046
  };
7001
7047
  };
7002
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
7048
+ creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7003
7049
  };
7004
7050
  /**
7005
7051
  * This interface was referenced by `Upload`'s JSON-Schema
@@ -9103,6 +9149,7 @@ export declare type Site = {
9103
9149
  [k: string]: unknown;
9104
9150
  } | null;
9105
9151
  account: AccountData;
9152
+ owner: AccountData | OrganizationData;
9106
9153
  /**
9107
9154
  * The list item types for the site
9108
9155
  */
@@ -9271,6 +9318,7 @@ export declare type SiteAttributes = {
9271
9318
  */
9272
9319
  export declare type SiteRelationships = {
9273
9320
  account: AccountData;
9321
+ owner: AccountData | OrganizationData;
9274
9322
  /**
9275
9323
  * The list item types for the site
9276
9324
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "1.1.23-alpha.2",
3
+ "version": "1.1.23-alpha.3",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -40,7 +40,7 @@
40
40
  "@datocms/rest-client-utils": "^1.1.16"
41
41
  },
42
42
  "devDependencies": {
43
- "@datocms/dashboard-client": "^1.1.23-alpha.2"
43
+ "@datocms/dashboard-client": "^1.1.23-alpha.3"
44
44
  },
45
- "gitHead": "b9100918a67744628ac1479a48602a7ea529e25d"
45
+ "gitHead": "1febbf566dc6f7abbedb267c529d830e50242ba9"
46
46
  }
@@ -133,7 +133,7 @@ export class Client {
133
133
  ...this.config,
134
134
  ...options,
135
135
  logFn: this.config.logFn || console.log,
136
- userAgent: '@datocms/cma-client v1.1.23-alpha.2',
136
+ userAgent: '@datocms/cma-client v1.1.23-alpha.3',
137
137
  baseUrl: this.baseUrl,
138
138
  preCallStack: new Error().stack,
139
139
  extraHeaders: {
@@ -229,6 +229,23 @@ export type AuditLogEventType = 'audit_log_event';
229
229
  * via the `definition` "id".
230
230
  */
231
231
  export type AuditLogEventIdentity = string;
232
+ /**
233
+ * JSON API type field
234
+ *
235
+ * This interface was referenced by `Organization`'s JSON-Schema
236
+ * via the `definition` "type".
237
+ */
238
+ export type OrganizationType = 'organization';
239
+ /**
240
+ * ID of organization
241
+ *
242
+ * This interface was referenced by `Organization`'s JSON-Schema
243
+ * via the `definition` "identity".
244
+ *
245
+ * This interface was referenced by `Organization`'s JSON-Schema
246
+ * via the `definition` "id".
247
+ */
248
+ export type OrganizationIdentity = string;
232
249
  /**
233
250
  * JSON API type field
234
251
  *
@@ -1290,6 +1307,7 @@ export type DatoApi = {
1290
1307
  sso_user?: SsoUser;
1291
1308
  audit_log_event?: AuditLogEvent;
1292
1309
  account?: Account;
1310
+ organization?: Organization;
1293
1311
  site_plan?: SitePlan;
1294
1312
  menu_item?: MenuItem;
1295
1313
  item_type?: ItemType;
@@ -2851,10 +2869,6 @@ export type AccountAttributes = {
2851
2869
  * Company name
2852
2870
  */
2853
2871
  company: string | null;
2854
- /**
2855
- * Password
2856
- */
2857
- password?: string;
2858
2872
  };
2859
2873
 
2860
2874
  /**
@@ -3048,6 +3062,42 @@ export type AuditLogEventQueryTargetSchema = {
3048
3062
  };
3049
3063
  };
3050
3064
 
3065
+ /**
3066
+ * DatoCMS organization
3067
+ *
3068
+ * This interface was referenced by `DatoApi`'s JSON-Schema
3069
+ * via the `definition` "organization".
3070
+ */
3071
+ export type Organization = {
3072
+ type: OrganizationType;
3073
+ id: OrganizationIdentity;
3074
+ attributes: OrganizationAttributes;
3075
+ };
3076
+
3077
+ /**
3078
+ * JSON API attributes
3079
+ *
3080
+ * This interface was referenced by `Organization`'s JSON-Schema
3081
+ * via the `definition` "attributes".
3082
+ */
3083
+ export type OrganizationAttributes = {
3084
+ /**
3085
+ * Name of the organization
3086
+ */
3087
+ name: string;
3088
+ };
3089
+
3090
+ /**
3091
+ * JSON API data
3092
+ *
3093
+ * This interface was referenced by `Organization`'s JSON-Schema
3094
+ * via the `definition` "data".
3095
+ */
3096
+ export type OrganizationData = {
3097
+ type: OrganizationType;
3098
+ id: OrganizationIdentity;
3099
+ };
3100
+
3051
3101
  /**
3052
3102
  * Stores the information regarding the current plan for the project.
3053
3103
  *
@@ -6206,7 +6256,12 @@ export type ItemRelationships = {
6206
6256
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6207
6257
  */
6208
6258
  creator?: {
6209
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6259
+ data:
6260
+ | AccountData
6261
+ | AccessTokenData
6262
+ | UserData
6263
+ | SsoUserData
6264
+ | OrganizationData;
6210
6265
  };
6211
6266
  };
6212
6267
 
@@ -6303,7 +6358,12 @@ export type ItemValidateExistingSchema = {
6303
6358
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6304
6359
  */
6305
6360
  creator?: {
6306
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6361
+ data:
6362
+ | AccountData
6363
+ | AccessTokenData
6364
+ | UserData
6365
+ | SsoUserData
6366
+ | OrganizationData;
6307
6367
  };
6308
6368
  };
6309
6369
  };
@@ -6506,7 +6566,12 @@ export type ItemUpdateSchema = {
6506
6566
  * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6507
6567
  */
6508
6568
  creator?: {
6509
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6569
+ data:
6570
+ | AccountData
6571
+ | AccessTokenData
6572
+ | UserData
6573
+ | SsoUserData
6574
+ | OrganizationData;
6510
6575
  };
6511
6576
  };
6512
6577
  };
@@ -6852,7 +6917,12 @@ export type ItemVersionRelationships = {
6852
6917
  * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6853
6918
  */
6854
6919
  editor: {
6855
- data: AccountData | AccessTokenData | UserData | SsoUserData;
6920
+ data:
6921
+ | AccountData
6922
+ | AccessTokenData
6923
+ | UserData
6924
+ | SsoUserData
6925
+ | OrganizationData;
6856
6926
  };
6857
6927
  };
6858
6928
 
@@ -7117,7 +7187,12 @@ export type UploadRelationships = {
7117
7187
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7118
7188
  */
7119
7189
  creator: {
7120
- data: AccountData | AccessTokenData | UserData | SsoUserData;
7190
+ data:
7191
+ | AccountData
7192
+ | AccessTokenData
7193
+ | UserData
7194
+ | SsoUserData
7195
+ | OrganizationData;
7121
7196
  };
7122
7197
  };
7123
7198
 
@@ -7324,7 +7399,12 @@ export type UploadUpdateSchema = {
7324
7399
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7325
7400
  */
7326
7401
  creator: {
7327
- data: AccountData | AccessTokenData | UserData | SsoUserData;
7402
+ data:
7403
+ | AccountData
7404
+ | AccessTokenData
7405
+ | UserData
7406
+ | SsoUserData
7407
+ | OrganizationData;
7328
7408
  };
7329
7409
  };
7330
7410
  };
@@ -9991,9 +10071,12 @@ export type SiteAttributes = {
9991
10071
  * via the `definition` "relationships".
9992
10072
  */
9993
10073
  export type SiteRelationships = {
9994
- account: {
10074
+ account: null | {
9995
10075
  data: AccountData;
9996
10076
  };
10077
+ owner: {
10078
+ data: AccountData | OrganizationData;
10079
+ };
9997
10080
  item_types: {
9998
10081
  /**
9999
10082
  * The list item types for the site
@@ -264,6 +264,23 @@ export type AuditLogEventType = 'audit_log_event';
264
264
  * via the `query.targetSchema` link.
265
265
  */
266
266
  export type AuditLogEventQueryTargetSchema = AuditLogEvent[];
267
+ /**
268
+ * ID of organization
269
+ *
270
+ * This interface was referenced by `Organization`'s JSON-Schema
271
+ * via the `definition` "identity".
272
+ *
273
+ * This interface was referenced by `Organization`'s JSON-Schema
274
+ * via the `definition` "id".
275
+ */
276
+ export type OrganizationIdentity = string;
277
+ /**
278
+ * JSON API type field
279
+ *
280
+ * This interface was referenced by `Organization`'s JSON-Schema
281
+ * via the `definition` "type".
282
+ */
283
+ export type OrganizationType = 'organization';
267
284
  /**
268
285
  * ID of plan
269
286
  *
@@ -1581,6 +1598,7 @@ export type DatoApi = {
1581
1598
  sso_user?: SsoUser;
1582
1599
  audit_log_event?: AuditLogEvent;
1583
1600
  account?: Account;
1601
+ organization?: Organization;
1584
1602
  site_plan?: SitePlan;
1585
1603
  menu_item?: MenuItem;
1586
1604
  item_type?: ItemType;
@@ -3168,10 +3186,6 @@ export type Account = {
3168
3186
  * Company name
3169
3187
  */
3170
3188
  company: string | null;
3171
- /**
3172
- * Password
3173
- */
3174
- password?: string;
3175
3189
  };
3176
3190
 
3177
3191
  /**
@@ -3208,10 +3222,6 @@ export type AccountAttributes = {
3208
3222
  * Company name
3209
3223
  */
3210
3224
  company: string | null;
3211
- /**
3212
- * Password
3213
- */
3214
- password?: string;
3215
3225
  };
3216
3226
 
3217
3227
  /**
@@ -3452,6 +3462,45 @@ export type AuditLogEventQuerySchema = {
3452
3462
  detailed_log?: boolean;
3453
3463
  };
3454
3464
 
3465
+ /**
3466
+ * DatoCMS organization
3467
+ *
3468
+ * This interface was referenced by `DatoApi`'s JSON-Schema
3469
+ * via the `definition` "organization".
3470
+ */
3471
+ export type Organization = {
3472
+ id: OrganizationIdentity;
3473
+ type: OrganizationType;
3474
+ /**
3475
+ * Name of the organization
3476
+ */
3477
+ name: string;
3478
+ };
3479
+
3480
+ /**
3481
+ * JSON API data
3482
+ *
3483
+ * This interface was referenced by `Organization`'s JSON-Schema
3484
+ * via the `definition` "data".
3485
+ */
3486
+ export type OrganizationData = {
3487
+ type: OrganizationType;
3488
+ id: OrganizationIdentity;
3489
+ };
3490
+
3491
+ /**
3492
+ * JSON API attributes
3493
+ *
3494
+ * This interface was referenced by `Organization`'s JSON-Schema
3495
+ * via the `definition` "attributes".
3496
+ */
3497
+ export type OrganizationAttributes = {
3498
+ /**
3499
+ * Name of the organization
3500
+ */
3501
+ name: string;
3502
+ };
3503
+
3455
3504
  /**
3456
3505
  * Stores the information regarding the current plan for the project.
3457
3506
  *
@@ -6626,7 +6675,12 @@ export type Item = {
6626
6675
  id: ItemIdentity;
6627
6676
  type: ItemType1;
6628
6677
  item_type: ItemTypeData;
6629
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6678
+ creator?:
6679
+ | AccountData
6680
+ | AccessTokenData
6681
+ | UserData
6682
+ | SsoUserData
6683
+ | OrganizationData;
6630
6684
  meta: ItemMeta;
6631
6685
  [k: string]: unknown;
6632
6686
  };
@@ -6714,7 +6768,12 @@ export type ItemAttributes = {
6714
6768
  */
6715
6769
  export type ItemRelationships = {
6716
6770
  item_type: ItemTypeData;
6717
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6771
+ creator?:
6772
+ | AccountData
6773
+ | AccessTokenData
6774
+ | UserData
6775
+ | SsoUserData
6776
+ | OrganizationData;
6718
6777
  };
6719
6778
 
6720
6779
  /**
@@ -6725,7 +6784,12 @@ export type ItemValidateExistingSchema = {
6725
6784
  id?: ItemIdentity;
6726
6785
  type?: ItemType1;
6727
6786
  item_type: ItemTypeData;
6728
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6787
+ creator?:
6788
+ | AccountData
6789
+ | AccessTokenData
6790
+ | UserData
6791
+ | SsoUserData
6792
+ | OrganizationData;
6729
6793
  [k: string]: unknown;
6730
6794
  };
6731
6795
 
@@ -6802,7 +6866,12 @@ export type ItemUpdateSchema = {
6802
6866
  id?: ItemIdentity;
6803
6867
  type?: ItemType1;
6804
6868
  item_type?: ItemTypeData;
6805
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6869
+ creator?:
6870
+ | AccountData
6871
+ | AccessTokenData
6872
+ | UserData
6873
+ | SsoUserData
6874
+ | OrganizationData;
6806
6875
  /**
6807
6876
  * Meta information regarding the record
6808
6877
  */
@@ -6929,7 +6998,12 @@ export type ItemVersion = {
6929
6998
  type: ItemVersionType;
6930
6999
  item_type: ItemTypeData;
6931
7000
  item: ItemData;
6932
- editor: AccountData | AccessTokenData | UserData | SsoUserData;
7001
+ editor:
7002
+ | AccountData
7003
+ | AccessTokenData
7004
+ | UserData
7005
+ | SsoUserData
7006
+ | OrganizationData;
6933
7007
  meta: ItemVersionMeta;
6934
7008
  [k: string]: unknown;
6935
7009
  };
@@ -6989,7 +7063,12 @@ export type ItemVersionAttributes = {
6989
7063
  export type ItemVersionRelationships = {
6990
7064
  item_type: ItemTypeData;
6991
7065
  item: ItemData;
6992
- editor: AccountData | AccessTokenData | UserData | SsoUserData;
7066
+ editor:
7067
+ | AccountData
7068
+ | AccessTokenData
7069
+ | UserData
7070
+ | SsoUserData
7071
+ | OrganizationData;
6993
7072
  };
6994
7073
 
6995
7074
  /**
@@ -7158,7 +7237,12 @@ export type Upload = {
7158
7237
  */
7159
7238
  alpha: number;
7160
7239
  }[];
7161
- creator: AccountData | AccessTokenData | UserData | SsoUserData;
7240
+ creator:
7241
+ | AccountData
7242
+ | AccessTokenData
7243
+ | UserData
7244
+ | SsoUserData
7245
+ | OrganizationData;
7162
7246
  };
7163
7247
  export type UploadCreateJobSchema = Upload;
7164
7248
  export type UploadSelfTargetSchema = Upload;
@@ -7348,7 +7432,12 @@ export type UploadAttributes = {
7348
7432
  * via the `definition` "relationships".
7349
7433
  */
7350
7434
  export type UploadRelationships = {
7351
- creator: AccountData | AccessTokenData | UserData | SsoUserData;
7435
+ creator:
7436
+ | AccountData
7437
+ | AccessTokenData
7438
+ | UserData
7439
+ | SsoUserData
7440
+ | OrganizationData;
7352
7441
  };
7353
7442
 
7354
7443
  /**
@@ -7486,7 +7575,12 @@ export type UploadUpdateSchema = {
7486
7575
  } | null;
7487
7576
  };
7488
7577
  };
7489
- creator?: AccountData | AccessTokenData | UserData | SsoUserData;
7578
+ creator?:
7579
+ | AccountData
7580
+ | AccessTokenData
7581
+ | UserData
7582
+ | SsoUserData
7583
+ | OrganizationData;
7490
7584
  };
7491
7585
 
7492
7586
  /**
@@ -9671,6 +9765,7 @@ export type Site = {
9671
9765
  [k: string]: unknown;
9672
9766
  } | null;
9673
9767
  account: AccountData;
9768
+ owner: AccountData | OrganizationData;
9674
9769
  /**
9675
9770
  * The list item types for the site
9676
9771
  */
@@ -9842,6 +9937,7 @@ export type SiteAttributes = {
9842
9937
  */
9843
9938
  export type SiteRelationships = {
9844
9939
  account: AccountData;
9940
+ owner: AccountData | OrganizationData;
9845
9941
  /**
9846
9942
  * The list item types for the site
9847
9943
  */