@wix/data 1.0.135 → 1.0.137

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/data",
3
- "version": "1.0.135",
3
+ "version": "1.0.137",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -19,11 +19,11 @@
19
19
  "service-plugins"
20
20
  ],
21
21
  "dependencies": {
22
- "@wix/data_collections": "1.0.35",
23
- "@wix/data_external-database": "1.0.10",
24
- "@wix/data_external-database-connections": "1.0.32",
25
- "@wix/data_indexes": "1.0.26",
26
- "@wix/data_items": "1.0.40"
22
+ "@wix/data_collections": "1.0.37",
23
+ "@wix/data_external-database": "1.0.11",
24
+ "@wix/data_external-database-connections": "1.0.33",
25
+ "@wix/data_indexes": "1.0.27",
26
+ "@wix/data_items": "1.0.41"
27
27
  },
28
28
  "devDependencies": {
29
29
  "glob": "^10.4.1",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles",
36
- "build:dts-bundles": "test -f config/rollup-config.js && rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
36
+ "build:dts-bundles": "test -f config/rollup-config.js && NODE_OPTIONS=--max-old-space-size=8192 rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
37
37
  "test": ":"
38
38
  },
39
39
  "wix": {
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "1b91fec160f75876e328dd47bb506e5726a5f373e5b9a1805e4f318d"
50
+ "falconPackageHash": "3f44399ce92c1a846a4d2d580b33c56acc389b8496e164aacc711d56"
51
51
  }
@@ -1084,6 +1084,45 @@ declare enum PagingMode {
1084
1084
  /** Cursor-based paging. */
1085
1085
  CURSOR = "CURSOR"
1086
1086
  }
1087
+ /** Data permissions defined by access level for each action. */
1088
+ interface DataPermissions {
1089
+ /** Access level for data items read */
1090
+ itemRead?: AccessLevel;
1091
+ /** Access level for data items insert */
1092
+ itemInsert?: AccessLevel;
1093
+ /** Access level for data items update */
1094
+ itemUpdate?: AccessLevel;
1095
+ /** Access level for data items removal */
1096
+ itemRemove?: AccessLevel;
1097
+ }
1098
+ /**
1099
+ * Describes who can perform certain action.
1100
+ * Each level includes all levels below it (except UNDEFINED).
1101
+ */
1102
+ declare enum AccessLevel {
1103
+ /** Not set */
1104
+ UNDEFINED = "UNDEFINED",
1105
+ /** Any subject, including visitors */
1106
+ ANYONE = "ANYONE",
1107
+ /** Any signed-in user (both site members and collaborators) */
1108
+ SITE_MEMBER = "SITE_MEMBER",
1109
+ /** Any signed-in user, but site members only have access to own items */
1110
+ SITE_MEMBER_AUTHOR = "SITE_MEMBER_AUTHOR",
1111
+ /** Site collaborator that has a role with CMS Access permission */
1112
+ CMS_EDITOR = "CMS_EDITOR",
1113
+ /** CMS administrators and users or roles granted with special access */
1114
+ PRIVILEGED = "PRIVILEGED"
1115
+ }
1116
+ interface AllowedDataPermissions {
1117
+ /** If data items read permitted */
1118
+ itemRead?: boolean;
1119
+ /** If for data items insert permitted */
1120
+ itemInsert?: boolean;
1121
+ /** If data items update permitted */
1122
+ itemUpdate?: boolean;
1123
+ /** If data items removal permitted */
1124
+ itemRemove?: boolean;
1125
+ }
1087
1126
  interface DataCollectionClonedEvent {
1088
1127
  /** original instance collection is cloned from */
1089
1128
  originInstanceId?: string;
@@ -1274,6 +1313,16 @@ interface DeleteDataCollectionFieldResponse {
1274
1313
  /** updated data collection */
1275
1314
  dataCollection?: DataCollection;
1276
1315
  }
1316
+ interface UpdateDataPermissionsRequest {
1317
+ /** ID of data collections to update */
1318
+ dataCollectionId?: string;
1319
+ /** Data permissions to set */
1320
+ dataPermissions?: DataPermissions;
1321
+ }
1322
+ interface UpdateDataPermissionsResponse {
1323
+ /** Updated data collection */
1324
+ dataCollection?: DataCollection;
1325
+ }
1277
1326
  interface BulkGetDataCollectionsPageBySnapshotsRequest {
1278
1327
  /** Ids of schema snapshot */
1279
1328
  snapshotIds?: string[];
@@ -1411,6 +1460,7 @@ interface DeleteDataCollectionsSnapshotResponse {
1411
1460
  interface CreateMigratedCollectionsSnapshotRequest {
1412
1461
  existingSnapshotId?: string;
1413
1462
  newNamespace?: string;
1463
+ existingNamespace?: string;
1414
1464
  }
1415
1465
  interface CreateMigratedCollectionsSnapshotResponse {
1416
1466
  snapshotId?: string;
@@ -1638,6 +1688,18 @@ interface PluginNonNullableFields {
1638
1688
  cmsOptions?: PluginCmsOptionsNonNullableFields;
1639
1689
  type: PluginType;
1640
1690
  }
1691
+ interface DataPermissionsNonNullableFields {
1692
+ itemRead: AccessLevel;
1693
+ itemInsert: AccessLevel;
1694
+ itemUpdate: AccessLevel;
1695
+ itemRemove: AccessLevel;
1696
+ }
1697
+ interface AllowedDataPermissionsNonNullableFields {
1698
+ itemRead: boolean;
1699
+ itemInsert: boolean;
1700
+ itemUpdate: boolean;
1701
+ itemRemove: boolean;
1702
+ }
1641
1703
  interface DataCollectionNonNullableFields {
1642
1704
  _id: string;
1643
1705
  collectionType: CollectionType;
@@ -1647,6 +1709,8 @@ interface DataCollectionNonNullableFields {
1647
1709
  permissions?: PermissionsNonNullableFields;
1648
1710
  plugins: PluginNonNullableFields[];
1649
1711
  pagingModes: PagingMode[];
1712
+ dataPermissions?: DataPermissionsNonNullableFields;
1713
+ allowedDataPermissions?: AllowedDataPermissionsNonNullableFields;
1650
1714
  }
1651
1715
  interface CreateDataCollectionResponseNonNullableFields {
1652
1716
  collection?: DataCollectionNonNullableFields;
@@ -1770,6 +1834,9 @@ declare const onDataCollectionCreated: ReturnType<typeof createEventModule$1<typ
1770
1834
  declare const onDataCollectionUpdated: ReturnType<typeof createEventModule$1<typeof publicOnDataCollectionUpdated>>;
1771
1835
  declare const onDataCollectionDeleted: ReturnType<typeof createEventModule$1<typeof publicOnDataCollectionDeleted>>;
1772
1836
 
1837
+ type context$2_AccessLevel = AccessLevel;
1838
+ declare const context$2_AccessLevel: typeof AccessLevel;
1839
+ type context$2_AllowedDataPermissions = AllowedDataPermissions;
1773
1840
  type context$2_ArraySizeRange = ArraySizeRange;
1774
1841
  type context$2_BulkGetDataCollectionsPageBySnapshotsRequest = BulkGetDataCollectionsPageBySnapshotsRequest;
1775
1842
  type context$2_BulkGetDataCollectionsPageBySnapshotsResponse = BulkGetDataCollectionsPageBySnapshotsResponse;
@@ -1803,6 +1870,7 @@ type context$2_DataCollectionNonNullableFields = DataCollectionNonNullableFields
1803
1870
  type context$2_DataCollectionUpdatedEnvelope = DataCollectionUpdatedEnvelope;
1804
1871
  type context$2_DataOperation = DataOperation;
1805
1872
  declare const context$2_DataOperation: typeof DataOperation;
1873
+ type context$2_DataPermissions = DataPermissions;
1806
1874
  type context$2_DeleteDataCollectionFieldRequest = DeleteDataCollectionFieldRequest;
1807
1875
  type context$2_DeleteDataCollectionFieldResponse = DeleteDataCollectionFieldResponse;
1808
1876
  type context$2_DeleteDataCollectionRequest = DeleteDataCollectionRequest;
@@ -1868,6 +1936,8 @@ type context$2_UpdateDataCollectionFieldResponse = UpdateDataCollectionFieldResp
1868
1936
  type context$2_UpdateDataCollectionRequest = UpdateDataCollectionRequest;
1869
1937
  type context$2_UpdateDataCollectionResponse = UpdateDataCollectionResponse;
1870
1938
  type context$2_UpdateDataCollectionResponseNonNullableFields = UpdateDataCollectionResponseNonNullableFields;
1939
+ type context$2_UpdateDataPermissionsRequest = UpdateDataPermissionsRequest;
1940
+ type context$2_UpdateDataPermissionsResponse = UpdateDataPermissionsResponse;
1871
1941
  type context$2_UrlizedOnlyPattern = UrlizedOnlyPattern;
1872
1942
  type context$2_UrlizedPluginOptions = UrlizedPluginOptions;
1873
1943
  type context$2__Array = _Array;
@@ -1883,7 +1953,7 @@ declare const context$2_onDataCollectionDeleted: typeof onDataCollectionDeleted;
1883
1953
  declare const context$2_onDataCollectionUpdated: typeof onDataCollectionUpdated;
1884
1954
  declare const context$2_updateDataCollection: typeof updateDataCollection;
1885
1955
  declare namespace context$2 {
1886
- export { type ActionEvent$1 as ActionEvent, type context$2_ArraySizeRange as ArraySizeRange, type BaseEventMetadata$1 as BaseEventMetadata, type context$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type context$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type context$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type context$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type context$2_Calculator as Calculator, type context$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type context$2_CmsOptions as CmsOptions, type context$2_CollectionCapabilities as CollectionCapabilities, context$2_CollectionOperation as CollectionOperation, context$2_CollectionType as CollectionType, type context$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type context$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type context$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type context$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type context$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type context$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type context$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type context$2_CreateMigratedCollectionsSnapshotRequest as CreateMigratedCollectionsSnapshotRequest, type context$2_CreateMigratedCollectionsSnapshotResponse as CreateMigratedCollectionsSnapshotResponse, type context$2_DataCollection as DataCollection, type context$2_DataCollectionChangedEnvelope as DataCollectionChangedEnvelope, type context$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type context$2_DataCollectionClonedEnvelope as DataCollectionClonedEnvelope, type context$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type context$2_DataCollectionCreatedEnvelope as DataCollectionCreatedEnvelope, type context$2_DataCollectionDeletedEnvelope as DataCollectionDeletedEnvelope, type context$2_DataCollectionNonNullableFields as DataCollectionNonNullableFields, type context$2_DataCollectionUpdatedEnvelope as DataCollectionUpdatedEnvelope, context$2_DataOperation as DataOperation, type context$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type context$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type context$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type context$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type context$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type context$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, context$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Failure$1 as Failure, type Field$1 as Field, type context$2_FieldCapabilities as FieldCapabilities, type context$2_FieldPlugin as FieldPlugin, type context$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, context$2_FieldPluginType as FieldPluginType, type context$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type context$2_FieldsPattern as FieldsPattern, context$2_Format as Format, type context$2_GetDataCollectionOptions as GetDataCollectionOptions, type context$2_GetDataCollectionRequest as GetDataCollectionRequest, type context$2_GetDataCollectionResponse as GetDataCollectionResponse, type context$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type context$2_IndexField as IndexField, type context$2_IndexLimits as IndexLimits, context$2_IndexStatus as IndexStatus, type context$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type context$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type context$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type context$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type context$2_MultiReference as MultiReference, type context$2_MultilingualOptions as MultilingualOptions, type context$2_NumberRange as NumberRange, type context$2_ObjectField as ObjectField, Order$1 as Order, type context$2_PageLink as PageLink, type context$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, context$2_PagingMode as PagingMode, type context$2_Permissions as Permissions, type context$2_Plugin as Plugin, type context$2_PluginCmsOptions as PluginCmsOptions, type context$2_PluginOptionsOneOf as PluginOptionsOneOf, context$2_PluginType as PluginType, type context$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, context$2_QueryOperator as QueryOperator, type context$2_Reference as Reference, type context$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type context$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo$1 as RestoreInfo, context$2_Role as Role, type context$2_SingleItemPluginOptions as SingleItemPluginOptions, type context$2_SiteSort as SiteSort, type context$2_SnapshotCollection as SnapshotCollection, type context$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type context$2_StringLengthRange as StringLengthRange, context$2_Type as Type, type context$2_TypeMetadata as TypeMetadata, type context$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type context$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type context$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type context$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type context$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type context$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type context$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type context$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type context$2__Array as _Array, type context$2__Object as _Object, context$2_createDataCollection as createDataCollection, context$2_deleteDataCollection as deleteDataCollection, context$2_getDataCollection as getDataCollection, context$2_listDataCollections as listDataCollections, context$2_onDataCollectionChangedEvent as onDataCollectionChangedEvent, context$2_onDataCollectionClonedEvent as onDataCollectionClonedEvent, context$2_onDataCollectionCreated as onDataCollectionCreated, context$2_onDataCollectionDeleted as onDataCollectionDeleted, context$2_onDataCollectionUpdated as onDataCollectionUpdated, context$2_updateDataCollection as updateDataCollection };
1956
+ export { context$2_AccessLevel as AccessLevel, type ActionEvent$1 as ActionEvent, type context$2_AllowedDataPermissions as AllowedDataPermissions, type context$2_ArraySizeRange as ArraySizeRange, type BaseEventMetadata$1 as BaseEventMetadata, type context$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type context$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type context$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type context$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type context$2_Calculator as Calculator, type context$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type context$2_CmsOptions as CmsOptions, type context$2_CollectionCapabilities as CollectionCapabilities, context$2_CollectionOperation as CollectionOperation, context$2_CollectionType as CollectionType, type context$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type context$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type context$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type context$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type context$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type context$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type context$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type context$2_CreateMigratedCollectionsSnapshotRequest as CreateMigratedCollectionsSnapshotRequest, type context$2_CreateMigratedCollectionsSnapshotResponse as CreateMigratedCollectionsSnapshotResponse, type context$2_DataCollection as DataCollection, type context$2_DataCollectionChangedEnvelope as DataCollectionChangedEnvelope, type context$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type context$2_DataCollectionClonedEnvelope as DataCollectionClonedEnvelope, type context$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type context$2_DataCollectionCreatedEnvelope as DataCollectionCreatedEnvelope, type context$2_DataCollectionDeletedEnvelope as DataCollectionDeletedEnvelope, type context$2_DataCollectionNonNullableFields as DataCollectionNonNullableFields, type context$2_DataCollectionUpdatedEnvelope as DataCollectionUpdatedEnvelope, context$2_DataOperation as DataOperation, type context$2_DataPermissions as DataPermissions, type context$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type context$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type context$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type context$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type context$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type context$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, context$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Failure$1 as Failure, type Field$1 as Field, type context$2_FieldCapabilities as FieldCapabilities, type context$2_FieldPlugin as FieldPlugin, type context$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, context$2_FieldPluginType as FieldPluginType, type context$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type context$2_FieldsPattern as FieldsPattern, context$2_Format as Format, type context$2_GetDataCollectionOptions as GetDataCollectionOptions, type context$2_GetDataCollectionRequest as GetDataCollectionRequest, type context$2_GetDataCollectionResponse as GetDataCollectionResponse, type context$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type context$2_IndexField as IndexField, type context$2_IndexLimits as IndexLimits, context$2_IndexStatus as IndexStatus, type context$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type context$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type context$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type context$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type context$2_MultiReference as MultiReference, type context$2_MultilingualOptions as MultilingualOptions, type context$2_NumberRange as NumberRange, type context$2_ObjectField as ObjectField, Order$1 as Order, type context$2_PageLink as PageLink, type context$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, context$2_PagingMode as PagingMode, type context$2_Permissions as Permissions, type context$2_Plugin as Plugin, type context$2_PluginCmsOptions as PluginCmsOptions, type context$2_PluginOptionsOneOf as PluginOptionsOneOf, context$2_PluginType as PluginType, type context$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, context$2_QueryOperator as QueryOperator, type context$2_Reference as Reference, type context$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type context$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo$1 as RestoreInfo, context$2_Role as Role, type context$2_SingleItemPluginOptions as SingleItemPluginOptions, type context$2_SiteSort as SiteSort, type context$2_SnapshotCollection as SnapshotCollection, type context$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type context$2_StringLengthRange as StringLengthRange, context$2_Type as Type, type context$2_TypeMetadata as TypeMetadata, type context$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type context$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type context$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type context$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type context$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type context$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type context$2_UpdateDataPermissionsRequest as UpdateDataPermissionsRequest, type context$2_UpdateDataPermissionsResponse as UpdateDataPermissionsResponse, type context$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type context$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type context$2__Array as _Array, type context$2__Object as _Object, context$2_createDataCollection as createDataCollection, context$2_deleteDataCollection as deleteDataCollection, context$2_getDataCollection as getDataCollection, context$2_listDataCollections as listDataCollections, context$2_onDataCollectionChangedEvent as onDataCollectionChangedEvent, context$2_onDataCollectionClonedEvent as onDataCollectionClonedEvent, context$2_onDataCollectionCreated as onDataCollectionCreated, context$2_onDataCollectionDeleted as onDataCollectionDeleted, context$2_onDataCollectionUpdated as onDataCollectionUpdated, context$2_updateDataCollection as updateDataCollection };
1887
1957
  }
1888
1958
 
1889
1959
  interface DataItem {
@@ -1084,6 +1084,45 @@ declare enum PagingMode {
1084
1084
  /** Cursor-based paging. */
1085
1085
  CURSOR = "CURSOR"
1086
1086
  }
1087
+ /** Data permissions defined by access level for each action. */
1088
+ interface DataPermissions {
1089
+ /** Access level for data items read */
1090
+ itemRead?: AccessLevel;
1091
+ /** Access level for data items insert */
1092
+ itemInsert?: AccessLevel;
1093
+ /** Access level for data items update */
1094
+ itemUpdate?: AccessLevel;
1095
+ /** Access level for data items removal */
1096
+ itemRemove?: AccessLevel;
1097
+ }
1098
+ /**
1099
+ * Describes who can perform certain action.
1100
+ * Each level includes all levels below it (except UNDEFINED).
1101
+ */
1102
+ declare enum AccessLevel {
1103
+ /** Not set */
1104
+ UNDEFINED = "UNDEFINED",
1105
+ /** Any subject, including visitors */
1106
+ ANYONE = "ANYONE",
1107
+ /** Any signed-in user (both site members and collaborators) */
1108
+ SITE_MEMBER = "SITE_MEMBER",
1109
+ /** Any signed-in user, but site members only have access to own items */
1110
+ SITE_MEMBER_AUTHOR = "SITE_MEMBER_AUTHOR",
1111
+ /** Site collaborator that has a role with CMS Access permission */
1112
+ CMS_EDITOR = "CMS_EDITOR",
1113
+ /** CMS administrators and users or roles granted with special access */
1114
+ PRIVILEGED = "PRIVILEGED"
1115
+ }
1116
+ interface AllowedDataPermissions {
1117
+ /** If data items read permitted */
1118
+ itemRead?: boolean;
1119
+ /** If for data items insert permitted */
1120
+ itemInsert?: boolean;
1121
+ /** If data items update permitted */
1122
+ itemUpdate?: boolean;
1123
+ /** If data items removal permitted */
1124
+ itemRemove?: boolean;
1125
+ }
1087
1126
  interface DataCollectionClonedEvent {
1088
1127
  /** original instance collection is cloned from */
1089
1128
  originInstanceId?: string;
@@ -1274,6 +1313,16 @@ interface DeleteDataCollectionFieldResponse {
1274
1313
  /** updated data collection */
1275
1314
  dataCollection?: DataCollection;
1276
1315
  }
1316
+ interface UpdateDataPermissionsRequest {
1317
+ /** ID of data collections to update */
1318
+ dataCollectionId?: string;
1319
+ /** Data permissions to set */
1320
+ dataPermissions?: DataPermissions;
1321
+ }
1322
+ interface UpdateDataPermissionsResponse {
1323
+ /** Updated data collection */
1324
+ dataCollection?: DataCollection;
1325
+ }
1277
1326
  interface BulkGetDataCollectionsPageBySnapshotsRequest {
1278
1327
  /** Ids of schema snapshot */
1279
1328
  snapshotIds?: string[];
@@ -1411,6 +1460,7 @@ interface DeleteDataCollectionsSnapshotResponse {
1411
1460
  interface CreateMigratedCollectionsSnapshotRequest {
1412
1461
  existingSnapshotId?: string;
1413
1462
  newNamespace?: string;
1463
+ existingNamespace?: string;
1414
1464
  }
1415
1465
  interface CreateMigratedCollectionsSnapshotResponse {
1416
1466
  snapshotId?: string;
@@ -1638,6 +1688,18 @@ interface PluginNonNullableFields {
1638
1688
  cmsOptions?: PluginCmsOptionsNonNullableFields;
1639
1689
  type: PluginType;
1640
1690
  }
1691
+ interface DataPermissionsNonNullableFields {
1692
+ itemRead: AccessLevel;
1693
+ itemInsert: AccessLevel;
1694
+ itemUpdate: AccessLevel;
1695
+ itemRemove: AccessLevel;
1696
+ }
1697
+ interface AllowedDataPermissionsNonNullableFields {
1698
+ itemRead: boolean;
1699
+ itemInsert: boolean;
1700
+ itemUpdate: boolean;
1701
+ itemRemove: boolean;
1702
+ }
1641
1703
  interface DataCollectionNonNullableFields {
1642
1704
  _id: string;
1643
1705
  collectionType: CollectionType;
@@ -1647,6 +1709,8 @@ interface DataCollectionNonNullableFields {
1647
1709
  permissions?: PermissionsNonNullableFields;
1648
1710
  plugins: PluginNonNullableFields[];
1649
1711
  pagingModes: PagingMode[];
1712
+ dataPermissions?: DataPermissionsNonNullableFields;
1713
+ allowedDataPermissions?: AllowedDataPermissionsNonNullableFields;
1650
1714
  }
1651
1715
  interface CreateDataCollectionResponseNonNullableFields {
1652
1716
  collection?: DataCollectionNonNullableFields;
@@ -1770,6 +1834,9 @@ declare const onDataCollectionCreated: ReturnType<typeof createEventModule$1<typ
1770
1834
  declare const onDataCollectionUpdated: ReturnType<typeof createEventModule$1<typeof publicOnDataCollectionUpdated>>;
1771
1835
  declare const onDataCollectionDeleted: ReturnType<typeof createEventModule$1<typeof publicOnDataCollectionDeleted>>;
1772
1836
 
1837
+ type index_d$2_AccessLevel = AccessLevel;
1838
+ declare const index_d$2_AccessLevel: typeof AccessLevel;
1839
+ type index_d$2_AllowedDataPermissions = AllowedDataPermissions;
1773
1840
  type index_d$2_ArraySizeRange = ArraySizeRange;
1774
1841
  type index_d$2_BulkGetDataCollectionsPageBySnapshotsRequest = BulkGetDataCollectionsPageBySnapshotsRequest;
1775
1842
  type index_d$2_BulkGetDataCollectionsPageBySnapshotsResponse = BulkGetDataCollectionsPageBySnapshotsResponse;
@@ -1803,6 +1870,7 @@ type index_d$2_DataCollectionNonNullableFields = DataCollectionNonNullableFields
1803
1870
  type index_d$2_DataCollectionUpdatedEnvelope = DataCollectionUpdatedEnvelope;
1804
1871
  type index_d$2_DataOperation = DataOperation;
1805
1872
  declare const index_d$2_DataOperation: typeof DataOperation;
1873
+ type index_d$2_DataPermissions = DataPermissions;
1806
1874
  type index_d$2_DeleteDataCollectionFieldRequest = DeleteDataCollectionFieldRequest;
1807
1875
  type index_d$2_DeleteDataCollectionFieldResponse = DeleteDataCollectionFieldResponse;
1808
1876
  type index_d$2_DeleteDataCollectionRequest = DeleteDataCollectionRequest;
@@ -1868,6 +1936,8 @@ type index_d$2_UpdateDataCollectionFieldResponse = UpdateDataCollectionFieldResp
1868
1936
  type index_d$2_UpdateDataCollectionRequest = UpdateDataCollectionRequest;
1869
1937
  type index_d$2_UpdateDataCollectionResponse = UpdateDataCollectionResponse;
1870
1938
  type index_d$2_UpdateDataCollectionResponseNonNullableFields = UpdateDataCollectionResponseNonNullableFields;
1939
+ type index_d$2_UpdateDataPermissionsRequest = UpdateDataPermissionsRequest;
1940
+ type index_d$2_UpdateDataPermissionsResponse = UpdateDataPermissionsResponse;
1871
1941
  type index_d$2_UrlizedOnlyPattern = UrlizedOnlyPattern;
1872
1942
  type index_d$2_UrlizedPluginOptions = UrlizedPluginOptions;
1873
1943
  type index_d$2__Array = _Array;
@@ -1883,7 +1953,7 @@ declare const index_d$2_onDataCollectionDeleted: typeof onDataCollectionDeleted;
1883
1953
  declare const index_d$2_onDataCollectionUpdated: typeof onDataCollectionUpdated;
1884
1954
  declare const index_d$2_updateDataCollection: typeof updateDataCollection;
1885
1955
  declare namespace index_d$2 {
1886
- export { type ActionEvent$1 as ActionEvent, type index_d$2_ArraySizeRange as ArraySizeRange, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type index_d$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type index_d$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type index_d$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type index_d$2_Calculator as Calculator, type index_d$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type index_d$2_CmsOptions as CmsOptions, type index_d$2_CollectionCapabilities as CollectionCapabilities, index_d$2_CollectionOperation as CollectionOperation, index_d$2_CollectionType as CollectionType, type index_d$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type index_d$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type index_d$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type index_d$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type index_d$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type index_d$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type index_d$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type index_d$2_CreateMigratedCollectionsSnapshotRequest as CreateMigratedCollectionsSnapshotRequest, type index_d$2_CreateMigratedCollectionsSnapshotResponse as CreateMigratedCollectionsSnapshotResponse, type index_d$2_DataCollection as DataCollection, type index_d$2_DataCollectionChangedEnvelope as DataCollectionChangedEnvelope, type index_d$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type index_d$2_DataCollectionClonedEnvelope as DataCollectionClonedEnvelope, type index_d$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type index_d$2_DataCollectionCreatedEnvelope as DataCollectionCreatedEnvelope, type index_d$2_DataCollectionDeletedEnvelope as DataCollectionDeletedEnvelope, type index_d$2_DataCollectionNonNullableFields as DataCollectionNonNullableFields, type index_d$2_DataCollectionUpdatedEnvelope as DataCollectionUpdatedEnvelope, index_d$2_DataOperation as DataOperation, type index_d$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type index_d$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type index_d$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type index_d$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type index_d$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type index_d$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, index_d$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Failure$1 as Failure, type Field$1 as Field, type index_d$2_FieldCapabilities as FieldCapabilities, type index_d$2_FieldPlugin as FieldPlugin, type index_d$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, index_d$2_FieldPluginType as FieldPluginType, type index_d$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type index_d$2_FieldsPattern as FieldsPattern, index_d$2_Format as Format, type index_d$2_GetDataCollectionOptions as GetDataCollectionOptions, type index_d$2_GetDataCollectionRequest as GetDataCollectionRequest, type index_d$2_GetDataCollectionResponse as GetDataCollectionResponse, type index_d$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type index_d$2_IndexField as IndexField, type index_d$2_IndexLimits as IndexLimits, index_d$2_IndexStatus as IndexStatus, type index_d$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type index_d$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type index_d$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type index_d$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MultiReference as MultiReference, type index_d$2_MultilingualOptions as MultilingualOptions, type index_d$2_NumberRange as NumberRange, type index_d$2_ObjectField as ObjectField, Order$1 as Order, type index_d$2_PageLink as PageLink, type index_d$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, index_d$2_PagingMode as PagingMode, type index_d$2_Permissions as Permissions, type index_d$2_Plugin as Plugin, type index_d$2_PluginCmsOptions as PluginCmsOptions, type index_d$2_PluginOptionsOneOf as PluginOptionsOneOf, index_d$2_PluginType as PluginType, type index_d$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, index_d$2_QueryOperator as QueryOperator, type index_d$2_Reference as Reference, type index_d$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type index_d$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo$1 as RestoreInfo, index_d$2_Role as Role, type index_d$2_SingleItemPluginOptions as SingleItemPluginOptions, type index_d$2_SiteSort as SiteSort, type index_d$2_SnapshotCollection as SnapshotCollection, type index_d$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type index_d$2_StringLengthRange as StringLengthRange, index_d$2_Type as Type, type index_d$2_TypeMetadata as TypeMetadata, type index_d$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type index_d$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type index_d$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type index_d$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type index_d$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type index_d$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type index_d$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type index_d$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__Array as _Array, type index_d$2__Object as _Object, index_d$2_createDataCollection as createDataCollection, index_d$2_deleteDataCollection as deleteDataCollection, index_d$2_getDataCollection as getDataCollection, index_d$2_listDataCollections as listDataCollections, index_d$2_onDataCollectionChangedEvent as onDataCollectionChangedEvent, index_d$2_onDataCollectionClonedEvent as onDataCollectionClonedEvent, index_d$2_onDataCollectionCreated as onDataCollectionCreated, index_d$2_onDataCollectionDeleted as onDataCollectionDeleted, index_d$2_onDataCollectionUpdated as onDataCollectionUpdated, index_d$2_updateDataCollection as updateDataCollection };
1956
+ export { index_d$2_AccessLevel as AccessLevel, type ActionEvent$1 as ActionEvent, type index_d$2_AllowedDataPermissions as AllowedDataPermissions, type index_d$2_ArraySizeRange as ArraySizeRange, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type index_d$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type index_d$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type index_d$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type index_d$2_Calculator as Calculator, type index_d$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type index_d$2_CmsOptions as CmsOptions, type index_d$2_CollectionCapabilities as CollectionCapabilities, index_d$2_CollectionOperation as CollectionOperation, index_d$2_CollectionType as CollectionType, type index_d$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type index_d$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type index_d$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type index_d$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type index_d$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type index_d$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type index_d$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type index_d$2_CreateMigratedCollectionsSnapshotRequest as CreateMigratedCollectionsSnapshotRequest, type index_d$2_CreateMigratedCollectionsSnapshotResponse as CreateMigratedCollectionsSnapshotResponse, type index_d$2_DataCollection as DataCollection, type index_d$2_DataCollectionChangedEnvelope as DataCollectionChangedEnvelope, type index_d$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type index_d$2_DataCollectionClonedEnvelope as DataCollectionClonedEnvelope, type index_d$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type index_d$2_DataCollectionCreatedEnvelope as DataCollectionCreatedEnvelope, type index_d$2_DataCollectionDeletedEnvelope as DataCollectionDeletedEnvelope, type index_d$2_DataCollectionNonNullableFields as DataCollectionNonNullableFields, type index_d$2_DataCollectionUpdatedEnvelope as DataCollectionUpdatedEnvelope, index_d$2_DataOperation as DataOperation, type index_d$2_DataPermissions as DataPermissions, type index_d$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type index_d$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type index_d$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type index_d$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type index_d$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type index_d$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, index_d$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Failure$1 as Failure, type Field$1 as Field, type index_d$2_FieldCapabilities as FieldCapabilities, type index_d$2_FieldPlugin as FieldPlugin, type index_d$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, index_d$2_FieldPluginType as FieldPluginType, type index_d$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type index_d$2_FieldsPattern as FieldsPattern, index_d$2_Format as Format, type index_d$2_GetDataCollectionOptions as GetDataCollectionOptions, type index_d$2_GetDataCollectionRequest as GetDataCollectionRequest, type index_d$2_GetDataCollectionResponse as GetDataCollectionResponse, type index_d$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type index_d$2_IndexField as IndexField, type index_d$2_IndexLimits as IndexLimits, index_d$2_IndexStatus as IndexStatus, type index_d$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type index_d$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type index_d$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type index_d$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MultiReference as MultiReference, type index_d$2_MultilingualOptions as MultilingualOptions, type index_d$2_NumberRange as NumberRange, type index_d$2_ObjectField as ObjectField, Order$1 as Order, type index_d$2_PageLink as PageLink, type index_d$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, index_d$2_PagingMode as PagingMode, type index_d$2_Permissions as Permissions, type index_d$2_Plugin as Plugin, type index_d$2_PluginCmsOptions as PluginCmsOptions, type index_d$2_PluginOptionsOneOf as PluginOptionsOneOf, index_d$2_PluginType as PluginType, type index_d$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, index_d$2_QueryOperator as QueryOperator, type index_d$2_Reference as Reference, type index_d$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type index_d$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo$1 as RestoreInfo, index_d$2_Role as Role, type index_d$2_SingleItemPluginOptions as SingleItemPluginOptions, type index_d$2_SiteSort as SiteSort, type index_d$2_SnapshotCollection as SnapshotCollection, type index_d$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type index_d$2_StringLengthRange as StringLengthRange, index_d$2_Type as Type, type index_d$2_TypeMetadata as TypeMetadata, type index_d$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type index_d$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type index_d$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type index_d$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type index_d$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type index_d$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type index_d$2_UpdateDataPermissionsRequest as UpdateDataPermissionsRequest, type index_d$2_UpdateDataPermissionsResponse as UpdateDataPermissionsResponse, type index_d$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type index_d$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__Array as _Array, type index_d$2__Object as _Object, index_d$2_createDataCollection as createDataCollection, index_d$2_deleteDataCollection as deleteDataCollection, index_d$2_getDataCollection as getDataCollection, index_d$2_listDataCollections as listDataCollections, index_d$2_onDataCollectionChangedEvent as onDataCollectionChangedEvent, index_d$2_onDataCollectionClonedEvent as onDataCollectionClonedEvent, index_d$2_onDataCollectionCreated as onDataCollectionCreated, index_d$2_onDataCollectionDeleted as onDataCollectionDeleted, index_d$2_onDataCollectionUpdated as onDataCollectionUpdated, index_d$2_updateDataCollection as updateDataCollection };
1887
1957
  }
1888
1958
 
1889
1959
  interface DataItem {
@@ -1031,6 +1031,24 @@ declare enum PagingMode$1 {
1031
1031
  /** Cursor-based paging. */
1032
1032
  CURSOR = "CURSOR"
1033
1033
  }
1034
+ /**
1035
+ * Describes who can perform certain action.
1036
+ * Each level includes all levels below it (except UNDEFINED).
1037
+ */
1038
+ declare enum AccessLevel$1 {
1039
+ /** Not set */
1040
+ UNDEFINED = "UNDEFINED",
1041
+ /** Any subject, including visitors */
1042
+ ANYONE = "ANYONE",
1043
+ /** Any signed-in user (both site members and collaborators) */
1044
+ SITE_MEMBER = "SITE_MEMBER",
1045
+ /** Any signed-in user, but site members only have access to own items */
1046
+ SITE_MEMBER_AUTHOR = "SITE_MEMBER_AUTHOR",
1047
+ /** Site collaborator that has a role with CMS Access permission */
1048
+ CMS_EDITOR = "CMS_EDITOR",
1049
+ /** CMS administrators and users or roles granted with special access */
1050
+ PRIVILEGED = "PRIVILEGED"
1051
+ }
1034
1052
  interface CreateDataCollectionRequest$1 {
1035
1053
  /** Collection details. */
1036
1054
  collection: DataCollection$1;
@@ -1237,6 +1255,18 @@ interface PluginNonNullableFields$1 {
1237
1255
  cmsOptions?: PluginCmsOptionsNonNullableFields$1;
1238
1256
  type: PluginType$1;
1239
1257
  }
1258
+ interface DataPermissionsNonNullableFields$1 {
1259
+ itemRead: AccessLevel$1;
1260
+ itemInsert: AccessLevel$1;
1261
+ itemUpdate: AccessLevel$1;
1262
+ itemRemove: AccessLevel$1;
1263
+ }
1264
+ interface AllowedDataPermissionsNonNullableFields$1 {
1265
+ itemRead: boolean;
1266
+ itemInsert: boolean;
1267
+ itemUpdate: boolean;
1268
+ itemRemove: boolean;
1269
+ }
1240
1270
  interface DataCollectionNonNullableFields$1 {
1241
1271
  id: string;
1242
1272
  collectionType: CollectionType$1;
@@ -1246,6 +1276,8 @@ interface DataCollectionNonNullableFields$1 {
1246
1276
  permissions?: PermissionsNonNullableFields$1;
1247
1277
  plugins: PluginNonNullableFields$1[];
1248
1278
  pagingModes: PagingMode$1[];
1279
+ dataPermissions?: DataPermissionsNonNullableFields$1;
1280
+ allowedDataPermissions?: AllowedDataPermissionsNonNullableFields$1;
1249
1281
  }
1250
1282
  interface CreateDataCollectionResponseNonNullableFields$1 {
1251
1283
  collection?: DataCollectionNonNullableFields$1;
@@ -1827,6 +1859,24 @@ declare enum PagingMode {
1827
1859
  /** Cursor-based paging. */
1828
1860
  CURSOR = "CURSOR"
1829
1861
  }
1862
+ /**
1863
+ * Describes who can perform certain action.
1864
+ * Each level includes all levels below it (except UNDEFINED).
1865
+ */
1866
+ declare enum AccessLevel {
1867
+ /** Not set */
1868
+ UNDEFINED = "UNDEFINED",
1869
+ /** Any subject, including visitors */
1870
+ ANYONE = "ANYONE",
1871
+ /** Any signed-in user (both site members and collaborators) */
1872
+ SITE_MEMBER = "SITE_MEMBER",
1873
+ /** Any signed-in user, but site members only have access to own items */
1874
+ SITE_MEMBER_AUTHOR = "SITE_MEMBER_AUTHOR",
1875
+ /** Site collaborator that has a role with CMS Access permission */
1876
+ CMS_EDITOR = "CMS_EDITOR",
1877
+ /** CMS administrators and users or roles granted with special access */
1878
+ PRIVILEGED = "PRIVILEGED"
1879
+ }
1830
1880
  interface CreateDataCollectionRequest {
1831
1881
  /** Collection details. */
1832
1882
  collection: DataCollection;
@@ -2033,6 +2083,18 @@ interface PluginNonNullableFields {
2033
2083
  cmsOptions?: PluginCmsOptionsNonNullableFields;
2034
2084
  type: PluginType;
2035
2085
  }
2086
+ interface DataPermissionsNonNullableFields {
2087
+ itemRead: AccessLevel;
2088
+ itemInsert: AccessLevel;
2089
+ itemUpdate: AccessLevel;
2090
+ itemRemove: AccessLevel;
2091
+ }
2092
+ interface AllowedDataPermissionsNonNullableFields {
2093
+ itemRead: boolean;
2094
+ itemInsert: boolean;
2095
+ itemUpdate: boolean;
2096
+ itemRemove: boolean;
2097
+ }
2036
2098
  interface DataCollectionNonNullableFields {
2037
2099
  _id: string;
2038
2100
  collectionType: CollectionType;
@@ -2042,6 +2104,8 @@ interface DataCollectionNonNullableFields {
2042
2104
  permissions?: PermissionsNonNullableFields;
2043
2105
  plugins: PluginNonNullableFields[];
2044
2106
  pagingModes: PagingMode[];
2107
+ dataPermissions?: DataPermissionsNonNullableFields;
2108
+ allowedDataPermissions?: AllowedDataPermissionsNonNullableFields;
2045
2109
  }
2046
2110
  interface CreateDataCollectionResponseNonNullableFields {
2047
2111
  collection?: DataCollectionNonNullableFields;