import { GetPermissionsRequest as GetPermissionsRequest$1, GetPermissionsResponse as GetPermissionsResponse$1, UpdatePermissionsRequest as UpdatePermissionsRequest$1, UpdatePermissionsResponse as UpdatePermissionsResponse$1, AddSpecialPermissionsRequest as AddSpecialPermissionsRequest$1, AddSpecialPermissionsResponse as AddSpecialPermissionsResponse$1, UpdateSpecialPermissionsRequest as UpdateSpecialPermissionsRequest$1, UpdateSpecialPermissionsResponse as UpdateSpecialPermissionsResponse$1, RemoveSpecialPermissionsRequest as RemoveSpecialPermissionsRequest$1, RemoveSpecialPermissionsResponse as RemoveSpecialPermissionsResponse$1, GetMyPermissionsRequest as GetMyPermissionsRequest$1, GetMyPermissionsResponse as GetMyPermissionsResponse$1 } from './index.typings.mjs'; import '@wix/sdk-types'; /** * Permissions that determine who can access or perform actions on items in a data collection. * * Learn more about [collection permissions](https://support.wix.com/en/article/cms-collection-permissions-overview). */ interface DataPermissions { /** * ID of the collection for these permissions. * @immutable * @maxLength 255 */ id?: string; /** * Which users can read items from the collection. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemRead?: AccessLevelWithLiterals; /** * Which users can create new items in the collection. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemInsert?: AccessLevelWithLiterals; /** * Which users can update existing items in the collection. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemUpdate?: AccessLevelWithLiterals; /** * Which users can remove items from the collection. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemRemove?: AccessLevelWithLiterals; /** * Special permissions granted to specified users or roles. * * > **Note:** Special permissions override [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions). * @readonly * @maxSize 1000 */ specialPermissions?: SpecialPermissions[]; /** * Permissions for managing drafts and publish status in the collection. * * Present only when the collection has the draft items plugin. * @internal */ draftItemsPluginPermissions?: DraftItemsPluginPermissions; } /** Minimal access level required to perform an action on collection items. Each access level includes the permissions of the access levels below it. */ declare enum AccessLevel { /** Anyone, including [site visitors](https://dev.wix.com/docs/rest/articles/get-started/about-identities#site-visitor). */ ANYONE = "ANYONE", /** Logged-in [site members](https://dev.wix.com/docs/rest/articles/get-started/about-identities#site-member) and [collaborators](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site). */ SITE_MEMBER = "SITE_MEMBER", /** Logged-in [site members](https://dev.wix.com/docs/rest/articles/get-started/about-identities#site-member) and [collaborators](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site) who can only access items they created. */ SITE_MEMBER_AUTHOR = "SITE_MEMBER_AUTHOR", /** Site [collaborators with a CMS editor role](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps). */ CMS_EDITOR = "CMS_EDITOR", /** * Site administrators, [collaborators](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site), or roles with special permissions. * * Learn more about [roles for site management](https://support.wix.com/en/article/roles-permissions-overview#general-roles-for-site-management). */ PRIVILEGED = "PRIVILEGED" } /** @enumType */ type AccessLevelWithLiterals = AccessLevel | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED'; interface SpecialPermissions extends SpecialPermissionsSubjectOneOf { /** * ID of the user for these special permissions. * @immutable * @maxLength 64 */ userId?: string; /** * ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions. * * To find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response. * * Learn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions). * @immutable * @maxLength 64 */ policyId?: string; /** * ID of the special permissions set. * @format GUID * @readonly */ id?: string; /** * Whether the specified users or roles can read items from the collection. * * When set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemRead?: AccessWithLiterals; /** * Whether the specified users or roles can create new items in the collection. * * When set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemInsert?: AccessWithLiterals; /** * Whether the specified users or roles can update existing items in the collection. * * When set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemUpdate?: AccessWithLiterals; /** * Whether the specified users or roles can remove items from the collection. * * When set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply. * * Learn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions). */ itemRemove?: AccessWithLiterals; /** * Whether the specified users or roles can manage drafts and publish/unpublish data items in the collection. * When set to `ALLOWED`, users can manage drafts and publish/unpublish data items. * @internal */ draftItemsPluginPermissions?: SpecialPermissionsDraftItemsPluginPermissions; } /** @oneof */ interface SpecialPermissionsSubjectOneOf { /** * ID of the user for these special permissions. * @immutable * @maxLength 64 */ userId?: string; /** * ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions. * * To find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response. * * Learn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions). * @immutable * @maxLength 64 */ policyId?: string; } declare enum Access { /** No special permissions. [Collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply to this action. */ UNSPECIFIED = "UNSPECIFIED", /** User or role has special permissions to perform this action, overriding [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions). */ ALLOWED = "ALLOWED" } /** @enumType */ type AccessWithLiterals = Access | 'UNSPECIFIED' | 'ALLOWED'; interface SpecialPermissionsDraftItemsPluginPermissions { /** Whether the specified users or roles can manage drafts in the collection. When set to `ALLOWED`, users can manage drafts. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply. */ manageDrafts?: AccessWithLiterals; /** Whether the specified users or roles can manage publish status in the collection. When set to `ALLOWED`, users can manage publish status. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply. */ managePublishStatus?: AccessWithLiterals; } /** Collection-level permissions contributed by the draft items plugin. */ interface DraftItemsPluginPermissions { /** Access level required to manage drafts (view, edit, and remove draft items) in the collection. */ manageDrafts?: AccessLevelWithLiterals; /** Access level required to publish draft items and unpublish published items in the collection. */ managePublishStatus?: AccessLevelWithLiterals; } interface GetPermissionsRequest { /** * ID of the collection to retrieve permissions of. * @maxLength 256 */ dataCollectionId: string; } interface GetPermissionsResponse { /** Permissions of the specified collection. */ dataPermissions?: DataPermissions; } interface UpdatePermissionsRequest { /** Permissions to update. */ dataPermissions: DataPermissions; } interface UpdatePermissionsResponse { /** Updated permissions of the specified collection. */ dataPermissions?: DataPermissions; } interface AddSpecialPermissionsRequest { /** * ID of the collection for which to grant special permissions. * @maxLength 256 */ dataCollectionId: string; /** Special permissions to grant to the user or role for the specified collection. */ specialPermissions: SpecialPermissions; } interface AddSpecialPermissionsResponse { /** Special permissions granted to the user or role for the specified collection. */ specialPermissions?: SpecialPermissions; } interface UpdateSpecialPermissionsRequest { /** Special permissions to update for the specified user or role. */ specialPermissions: SpecialPermissions; } interface UpdateSpecialPermissionsResponse { /** Special permissions updated for the specified user or role. */ specialPermissions?: SpecialPermissions; } interface RemoveSpecialPermissionsRequest { /** * ID of the special permissions to remove. * @format GUID */ specialPermissionsId: string; } interface RemoveSpecialPermissionsResponse { } interface GetMyPermissionsRequest { /** * ID of the collection for which to check the current user's permissions. * @maxLength 256 */ dataCollectionId: string; } interface GetMyPermissionsResponse { /** Whether the current user can read items from the collection. */ itemRead?: boolean; /** Whether the current user can create new items in the collection. */ itemInsert?: boolean; /** Whether the current user can update existing items in the collection. */ itemUpdate?: boolean; /** Whether the current user can remove items from the collection. */ itemRemove?: boolean; /** * Draft management operations the current user can perform in the collection. * * Present only when the collection has the draft items plugin. * @internal */ draftItemsPluginPermissions?: GetMyPermissionsResponseDraftItemsPluginPermissions; } /** Draft management operations the current user is allowed to perform, contributed by the draft items plugin. */ interface GetMyPermissionsResponseDraftItemsPluginPermissions { /** Whether the current user can manage drafts (view, edit, and remove draft items) in the collection. */ manageDrafts?: boolean; /** Whether the current user can manage publish status (publish and unpublish items) in the collection. */ managePublishStatus?: boolean; } interface MigrateCustomRolesRequest { /** * ID of the role to update. If empty, all roles in the site are updated. * @format GUID */ policyId?: string | null; } interface MigrateCustomRolesResponse { } interface PolicyAssignmentsUpdated extends PolicyAssignmentsUpdatedEventOneOf { policyAssigned?: PolicyAssigned; policyUnassigned?: PolicyUnassigned; policyAssignmentUpdated?: PolicyAssignmentUpdated; } /** @oneof */ interface PolicyAssignmentsUpdatedEventOneOf { policyAssigned?: PolicyAssigned; policyUnassigned?: PolicyUnassigned; policyAssignmentUpdated?: PolicyAssignmentUpdated; } interface PolicyAssigned { subject?: Subject; assignment?: PolicyAssignment[]; } interface Subject { /** ID of identity assigned to the asset. */ id?: string; /** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */ subjectType?: SubjectTypeWithLiterals; /** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */ context?: SubjectContext; } declare enum SubjectType { UNKNOWN = "UNKNOWN", ACCOUNT = "ACCOUNT", USER = "USER", USER_GROUP = "USER_GROUP", MEMBER_GROUP = "MEMBER_GROUP", VISITOR_GROUP = "VISITOR_GROUP", EXTERNAL_APP = "EXTERNAL_APP", ACCOUNT_GROUP = "ACCOUNT_GROUP", WIX_APP = "WIX_APP" } /** @enumType */ type SubjectTypeWithLiterals = SubjectType | 'UNKNOWN' | 'ACCOUNT' | 'USER' | 'USER_GROUP' | 'MEMBER_GROUP' | 'VISITOR_GROUP' | 'EXTERNAL_APP' | 'ACCOUNT_GROUP' | 'WIX_APP'; interface SubjectContext { id?: string; contextType?: SubjectContextTypeWithLiterals; } declare enum SubjectContextType { UNKNOWN_CTX = "UNKNOWN_CTX", ORG_CTX = "ORG_CTX", ACCOUNT_CTX = "ACCOUNT_CTX" } /** @enumType */ type SubjectContextTypeWithLiterals = SubjectContextType | 'UNKNOWN_CTX' | 'ORG_CTX' | 'ACCOUNT_CTX'; interface PolicyAssignment { policyId?: string; resource?: ResourcePath; condition?: PolicyCondition; assignmentId?: string | null; } interface ResourcePath { organization?: string | null; account?: string | null; site?: string | null; resource?: Resource; } /** * A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom. * For example: payment method, blog post, domain, logo. */ interface Resource { /** The resource id. */ id?: string | null; /** The resource type */ type?: string | null; } interface PolicyCondition { /** The type of the condition */ condition?: ConditionType; } interface ConditionType extends ConditionTypeOfOneOf { /** @deprecated */ simpleCondition?: SimpleCondition; /** A logic combination between several conditions, with an operator between them */ joinedConditions?: JoinedCondition; /** @deprecated */ environmentCondition?: EnvironmentCondition; /** A single condition */ condition?: Condition; } /** @oneof */ interface ConditionTypeOfOneOf { /** @deprecated */ simpleCondition?: SimpleCondition; /** A logic combination between several conditions, with an operator between them */ joinedConditions?: JoinedCondition; /** @deprecated */ environmentCondition?: EnvironmentCondition; /** A single condition */ condition?: Condition; } interface SimpleCondition { attrName?: string; value?: SimpleConditionValue; op?: SimpleConditionOperatorWithLiterals; conditionModelId?: string; } interface SimpleConditionValue extends SimpleConditionValueValueOneOf { attrName?: string; stringValue?: string; boolValue?: boolean; } /** @oneof */ interface SimpleConditionValueValueOneOf { attrName?: string; stringValue?: string; boolValue?: boolean; } declare enum SimpleConditionOperator { UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP", EQUAL = "EQUAL" } /** @enumType */ type SimpleConditionOperatorWithLiterals = SimpleConditionOperator | 'UNKNOWN_SIMPLE_OP' | 'EQUAL'; interface JoinedCondition { /** The operator that should be used when evaluating the condition */ op?: JoinedConditionOperatorWithLiterals; /** The conditions that should be evaluated, and then joined using the operator provided */ conditions?: ConditionType[]; } declare enum JoinedConditionOperator { UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP", OR = "OR", AND = "AND" } /** @enumType */ type JoinedConditionOperatorWithLiterals = JoinedConditionOperator | 'UNKNOWN_JOIN_OP' | 'OR' | 'AND'; interface EnvironmentCondition extends EnvironmentConditionConditionOneOf { experimentCondition?: ExperimentCondition; } /** @oneof */ interface EnvironmentConditionConditionOneOf { experimentCondition?: ExperimentCondition; } interface ExperimentCondition { spec?: string; fallbackValue?: string; expectedValue?: string; } interface Condition { /** The unique identifier of the condition model. Indicates which actions the condition is working on */ conditionModelId?: string; /** The operator that should be evaluated */ operator?: ConditionOperator; } interface ConditionOperator extends ConditionOperatorOperatorsOneOf { /** Comparison of equality - will be evaluated to true if the given parties are equal */ equals?: EqualOperator; /** Regex operator - will be evaluated to true if the given value matches the provided regex */ like?: LikeOperator; /** Petri experiment - will be evaluated using petri. */ experiment?: ExperimentOperator; /** Operator that indicates a dependency on another subject being allowed to perform something. */ dependOn?: DependOnOperator; } /** @oneof */ interface ConditionOperatorOperatorsOneOf { /** Comparison of equality - will be evaluated to true if the given parties are equal */ equals?: EqualOperator; /** Regex operator - will be evaluated to true if the given value matches the provided regex */ like?: LikeOperator; /** Petri experiment - will be evaluated using petri. */ experiment?: ExperimentOperator; /** Operator that indicates a dependency on another subject being allowed to perform something. */ dependOn?: DependOnOperator; } interface EqualOperator { /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */ attrName?: string; /** The value to compare to. If the two parties are equal - we will return true. */ value?: ConditionValue; } interface ConditionValue extends ConditionValueValueOneOf { /** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */ attrName?: string; /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */ stringValue?: string; /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */ boolValue?: boolean; } /** @oneof */ interface ConditionValueValueOneOf { /** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */ attrName?: string; /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */ stringValue?: string; /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */ boolValue?: boolean; } interface LikeOperator { /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */ attrName?: string; /** The regex values which the attribute value should be evaluated on. If the attribute value matches at least one of the regular expressions provided - we will return true */ values?: string[]; } interface ExperimentOperator { /** The spec to conduct the experiment on. */ spec?: string; /** The value to use if the experiment could not be conducted */ fallbackValue?: string; /** The expected value of the experiment conduction. If it matches the actual value - true will be returned. Otherwise - false. */ expectedValue?: string; } /** Implies that the policy takes affect only if the depend on subject is permitted as well. */ interface DependOnOperator { /** The subject on which the current entry depends on. If the subject is allowed to perform what the query was about - the condition will be evaluated to true. Otherwise - false */ dependOnSubject?: Subject; } interface PolicyUnassigned { subject?: Subject; assignment?: PolicyAssignment[]; } interface PolicyAssignmentUpdated { subject?: Subject; fromAssignment?: PolicyAssignment[]; toAssignment?: PolicyAssignment[]; } interface Empty { } interface PolicyAuthorizationDataUpdated { policyId?: string; fromPolicyStatements?: PolicyStatement[]; toPolicyStatements?: PolicyStatement[]; policyType?: PolicyTypeWithLiterals; policyOwner?: PolicyOwner; } interface PolicyStatement { /** @readonly */ id?: string | null; permissions?: string[]; scopes?: string[]; effect?: EffectWithLiterals; condition?: PolicyCondition; } declare enum Effect { UNKNOWN_EFFECT = "UNKNOWN_EFFECT", ALLOW = "ALLOW", DENY = "DENY" } /** @enumType */ type EffectWithLiterals = Effect | 'UNKNOWN_EFFECT' | 'ALLOW' | 'DENY'; declare enum PolicyType { UNKNOWN_STATUS = "UNKNOWN_STATUS", PREDEFINED = "PREDEFINED", CUSTOM = "CUSTOM", INLINE_CUSTOM = "INLINE_CUSTOM" } /** @enumType */ type PolicyTypeWithLiterals = PolicyType | 'UNKNOWN_STATUS' | 'PREDEFINED' | 'CUSTOM' | 'INLINE_CUSTOM'; interface PolicyOwner { type?: PolicyOwnerTypeWithLiterals; id?: string; } declare enum PolicyOwnerType { UNKNOWN_TYPE = "UNKNOWN_TYPE", WIX = "WIX", WIX_ACCOUNT = "WIX_ACCOUNT" } /** @enumType */ type PolicyOwnerTypeWithLiterals = PolicyOwnerType | 'UNKNOWN_TYPE' | 'WIX' | 'WIX_ACCOUNT'; interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number. * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entityAsJson?: string; /** * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity * @internal */ triggeredByUndelete?: boolean | null; /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ restoreInfo?: RestoreInfo; /** * Optional domain-specific metadata defined by the API owner, encoded as JSON. * @internal */ additionalMetadataAsJson?: string | null; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntityAsJson?: string; /** * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard * wont populate it / have any reference to it in the API. * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed, * the developer should send only the new (current) entity. * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message. * @internal * @deprecated */ previousEntityAsJson?: string | null; /** * Map of fully qualified field paths to their previous values for fields that changed. * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format) * @internal */ modifiedFields?: Record; /** * Optional domain-specific metadata defined by the API owner, encoded as JSON. * @internal */ additionalMetadataAsJson?: string | null; } interface EntityDeletedEvent { /** * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled * @internal */ movedToTrash?: boolean | null; /** Entity that was deleted. */ deletedEntityAsJson?: string | null; /** * Optional domain-specific metadata defined by the API owner, encoded as JSON. * @internal */ additionalMetadataAsJson?: string | null; } interface ActionEvent { bodyAsJson?: string; } /** @docsIgnore */ type GetPermissionsApplicationErrors = { code?: 'WDE0025'; description?: string; data?: Record; }; /** @docsIgnore */ type UpdatePermissionsApplicationErrors = { code?: 'WDE0025'; description?: string; data?: Record; }; /** @docsIgnore */ type AddSpecialPermissionsApplicationErrors = { code?: 'ALREADY_EXISTS'; description?: string; data?: Record; }; /** @docsIgnore */ type UpdateSpecialPermissionsApplicationErrors = { code?: 'NOT_FOUND'; description?: string; data?: Record; }; /** @docsIgnore */ type RemoveSpecialPermissionsApplicationErrors = { code?: 'NOT_FOUND'; description?: string; data?: Record; }; /** @docsIgnore */ type GetMyPermissionsApplicationErrors = { code?: 'WDE0025'; description?: string; data?: Record; }; type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function getPermissions(): __PublicMethodMetaInfo<'GET', {}, GetPermissionsRequest$1, GetPermissionsRequest, GetPermissionsResponse$1, GetPermissionsResponse>; declare function updatePermissions(): __PublicMethodMetaInfo<'POST', {}, UpdatePermissionsRequest$1, UpdatePermissionsRequest, UpdatePermissionsResponse$1, UpdatePermissionsResponse>; declare function addSpecialPermissions(): __PublicMethodMetaInfo<'POST', {}, AddSpecialPermissionsRequest$1, AddSpecialPermissionsRequest, AddSpecialPermissionsResponse$1, AddSpecialPermissionsResponse>; declare function updateSpecialPermissions(): __PublicMethodMetaInfo<'POST', { specialPermissionsId: string; }, UpdateSpecialPermissionsRequest$1, UpdateSpecialPermissionsRequest, UpdateSpecialPermissionsResponse$1, UpdateSpecialPermissionsResponse>; declare function removeSpecialPermissions(): __PublicMethodMetaInfo<'DELETE', { specialPermissionsId: string; }, RemoveSpecialPermissionsRequest$1, RemoveSpecialPermissionsRequest, RemoveSpecialPermissionsResponse$1, RemoveSpecialPermissionsResponse>; declare function getMyPermissions(): __PublicMethodMetaInfo<'GET', {}, GetMyPermissionsRequest$1, GetMyPermissionsRequest, GetMyPermissionsResponse$1, GetMyPermissionsResponse>; export { AccessLevel as AccessLevelOriginal, type AccessLevelWithLiterals as AccessLevelWithLiteralsOriginal, Access as AccessOriginal, type AccessWithLiterals as AccessWithLiteralsOriginal, type ActionEvent as ActionEventOriginal, type AddSpecialPermissionsApplicationErrors as AddSpecialPermissionsApplicationErrorsOriginal, type AddSpecialPermissionsRequest as AddSpecialPermissionsRequestOriginal, type AddSpecialPermissionsResponse as AddSpecialPermissionsResponseOriginal, type ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOfOriginal, type ConditionOperator as ConditionOperatorOriginal, type Condition as ConditionOriginal, type ConditionTypeOfOneOf as ConditionTypeOfOneOfOriginal, type ConditionType as ConditionTypeOriginal, type ConditionValue as ConditionValueOriginal, type ConditionValueValueOneOf as ConditionValueValueOneOfOriginal, type DataPermissions as DataPermissionsOriginal, type DependOnOperator as DependOnOperatorOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DraftItemsPluginPermissions as DraftItemsPluginPermissionsOriginal, Effect as EffectOriginal, type EffectWithLiterals as EffectWithLiteralsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOfOriginal, type EnvironmentCondition as EnvironmentConditionOriginal, type EqualOperator as EqualOperatorOriginal, type ExperimentCondition as ExperimentConditionOriginal, type ExperimentOperator as ExperimentOperatorOriginal, type GetMyPermissionsApplicationErrors as GetMyPermissionsApplicationErrorsOriginal, type GetMyPermissionsRequest as GetMyPermissionsRequestOriginal, type GetMyPermissionsResponseDraftItemsPluginPermissions as GetMyPermissionsResponseDraftItemsPluginPermissionsOriginal, type GetMyPermissionsResponse as GetMyPermissionsResponseOriginal, type GetPermissionsApplicationErrors as GetPermissionsApplicationErrorsOriginal, type GetPermissionsRequest as GetPermissionsRequestOriginal, type GetPermissionsResponse as GetPermissionsResponseOriginal, JoinedConditionOperator as JoinedConditionOperatorOriginal, type JoinedConditionOperatorWithLiterals as JoinedConditionOperatorWithLiteralsOriginal, type JoinedCondition as JoinedConditionOriginal, type LikeOperator as LikeOperatorOriginal, type MigrateCustomRolesRequest as MigrateCustomRolesRequestOriginal, type MigrateCustomRolesResponse as MigrateCustomRolesResponseOriginal, type PolicyAssigned as PolicyAssignedOriginal, type PolicyAssignment as PolicyAssignmentOriginal, type PolicyAssignmentUpdated as PolicyAssignmentUpdatedOriginal, type PolicyAssignmentsUpdatedEventOneOf as PolicyAssignmentsUpdatedEventOneOfOriginal, type PolicyAssignmentsUpdated as PolicyAssignmentsUpdatedOriginal, type PolicyAuthorizationDataUpdated as PolicyAuthorizationDataUpdatedOriginal, type PolicyCondition as PolicyConditionOriginal, type PolicyOwner as PolicyOwnerOriginal, PolicyOwnerType as PolicyOwnerTypeOriginal, type PolicyOwnerTypeWithLiterals as PolicyOwnerTypeWithLiteralsOriginal, type PolicyStatement as PolicyStatementOriginal, PolicyType as PolicyTypeOriginal, type PolicyTypeWithLiterals as PolicyTypeWithLiteralsOriginal, type PolicyUnassigned as PolicyUnassignedOriginal, type RemoveSpecialPermissionsApplicationErrors as RemoveSpecialPermissionsApplicationErrorsOriginal, type RemoveSpecialPermissionsRequest as RemoveSpecialPermissionsRequestOriginal, type RemoveSpecialPermissionsResponse as RemoveSpecialPermissionsResponseOriginal, type Resource as ResourceOriginal, type ResourcePath as ResourcePathOriginal, type RestoreInfo as RestoreInfoOriginal, SimpleConditionOperator as SimpleConditionOperatorOriginal, type SimpleConditionOperatorWithLiterals as SimpleConditionOperatorWithLiteralsOriginal, type SimpleCondition as SimpleConditionOriginal, type SimpleConditionValue as SimpleConditionValueOriginal, type SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOfOriginal, type SpecialPermissionsDraftItemsPluginPermissions as SpecialPermissionsDraftItemsPluginPermissionsOriginal, type SpecialPermissions as SpecialPermissionsOriginal, type SpecialPermissionsSubjectOneOf as SpecialPermissionsSubjectOneOfOriginal, type SubjectContext as SubjectContextOriginal, SubjectContextType as SubjectContextTypeOriginal, type SubjectContextTypeWithLiterals as SubjectContextTypeWithLiteralsOriginal, type Subject as SubjectOriginal, SubjectType as SubjectTypeOriginal, type SubjectTypeWithLiterals as SubjectTypeWithLiteralsOriginal, type UpdatePermissionsApplicationErrors as UpdatePermissionsApplicationErrorsOriginal, type UpdatePermissionsRequest as UpdatePermissionsRequestOriginal, type UpdatePermissionsResponse as UpdatePermissionsResponseOriginal, type UpdateSpecialPermissionsApplicationErrors as UpdateSpecialPermissionsApplicationErrorsOriginal, type UpdateSpecialPermissionsRequest as UpdateSpecialPermissionsRequestOriginal, type UpdateSpecialPermissionsResponse as UpdateSpecialPermissionsResponseOriginal, type __PublicMethodMetaInfo, addSpecialPermissions, getMyPermissions, getPermissions, removeSpecialPermissions, updatePermissions, updateSpecialPermissions };