@wix/auto_sdk_user-management_users 1.0.21 → 1.0.22
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/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +3 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +3 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +4 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { SearchTeamOptions, SearchTeamResponse, GetRolesInfoOptions, GetRolesInfoResponse, UpdateTeamMemberAssignmentsOptions, UpdateTeamMemberAssignmentsResponse } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInvite, AccountResourceContext, ApiCondition, ApiInviteAssignment, ApiPolicy, ApiResource, AreasFilter, AssignedPolicy, AssignedSubject, Assignment, AssignmentV3, ChangeRoleRequest, ChangeRoleResponse, ChangeRoleV2Options, ChangeRoleV2Request, ChangeRoleV2Response, CompanionResource, Condition, ConditionAttributeType, ConditionOperator, ConditionOperatorOperatorsOneOf, ConditionType, ConditionTypeOfOneOf, ConditionValue, ConditionValueValueOneOf, Conditions, Contributor, CreateCustomRoleRequest, CreateCustomRoleResponse, CustomRole, CustomRoleV2, DependOnOperator, Direction, EditorType, Effect, EnvironmentCondition, EnvironmentConditionConditionOneOf, EqualOperator, ExperimentCondition, ExperimentOperator, Facet, FacetType, FacetValue, FolderResource, FullNameResource, FullNameResourceResourceContextOneOf, GetPeopleRequest, GetPeopleResponse, GetPoliciesRequest, GetPoliciesResponse, GetRolesInfoRequest, GetRolesRequest, GetRolesResponse, GetRolesV2Request, GetRolesV2Response, GetScopesByRoleRequest, GetScopesByRoleResponse, GetScopesRequest, GetScopesResponse, GetScopesV2Request, GetScopesV2Response, GetSubjectsAssignmentsRequest, GetSubjectsAssignmentsResponse, GetTeamInvitesRequest, GetTeamInvitesResponse, GetTeamRequest, GetTeamResponse, GetTeamV2Response, GetUsersRequest, GetUsersResponse, Host, Invite, InviteAssignment, InviteAssignmentV3, InviteResourceAssignment, InviteStatus, InviteV3, JoinedCondition, JoinedConditionOperator, LikeOperator, LocationsRestriction, Name, OrderField, Ordering, OrganizationResourceContext, Paging, People, PeopleResource, PeopleResourceResourceTypeOneOf, PeopleType, PermissionScope, PermissionScopeV2, Person, PersonMetaData, PersonPersonOneOf, Policy, PolicyCondition, PolicyStatement, PolicyType, PredefinedRole, PredefinedRoleV2, PredefinedRoles, PredefinedRolesArea, PredefinedRolesAreaV2, RemoveMemberRequest, RemoveMemberResponse, Resource, ResourceType, Restriction, RestrictionRestrictionsOneOf, Role, RoleInfo, RoleInfoV2, RoleLevel, RoleLevelRestriction, RoleVisibility, RolesInfoFilter, ScopeArea, ScopeAreaV2, ScopeLevel, SearchTeamRequest, SimpleCondition, SimpleConditionOperator, SimpleConditionValue, SimpleConditionValueValueOneOf, SiteResourceContext, SiteRestriction, Subject, SubjectAssignments, SubjectContext, SubjectContextType, SubjectType, TeamMember, TeamMemberV3, TeamMemberV3MembersOneOf, UpdateTeamMemberAssignmentsRequest, User, UserV3, Visibility } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInvite, AccountResourceContext, ApiCondition, ApiInviteAssignment, ApiPolicy, ApiResource, AreasFilter, AssignedPolicy, AssignedSubject, Assignment, AssignmentV3, ChangeRoleRequest, ChangeRoleResponse, ChangeRoleV2Options, ChangeRoleV2Request, ChangeRoleV2Response, CompanionResource, Condition, ConditionAttributeType, ConditionAttributeTypeWithLiterals, ConditionOperator, ConditionOperatorOperatorsOneOf, ConditionType, ConditionTypeOfOneOf, ConditionValue, ConditionValueValueOneOf, Conditions, Contributor, CreateCustomRoleRequest, CreateCustomRoleResponse, CustomRole, CustomRoleV2, DependOnOperator, Direction, DirectionWithLiterals, EditorType, EditorTypeWithLiterals, Effect, EffectWithLiterals, EnvironmentCondition, EnvironmentConditionConditionOneOf, EqualOperator, ExperimentCondition, ExperimentOperator, Facet, FacetType, FacetTypeWithLiterals, FacetValue, FolderResource, FullNameResource, FullNameResourceResourceContextOneOf, GetPeopleRequest, GetPeopleResponse, GetPoliciesRequest, GetPoliciesResponse, GetRolesInfoRequest, GetRolesRequest, GetRolesResponse, GetRolesV2Request, GetRolesV2Response, GetScopesByRoleRequest, GetScopesByRoleResponse, GetScopesRequest, GetScopesResponse, GetScopesV2Request, GetScopesV2Response, GetSubjectsAssignmentsRequest, GetSubjectsAssignmentsResponse, GetTeamInvitesRequest, GetTeamInvitesResponse, GetTeamRequest, GetTeamResponse, GetTeamV2Response, GetUsersRequest, GetUsersResponse, Host, HostWithLiterals, Invite, InviteAssignment, InviteAssignmentV3, InviteResourceAssignment, InviteStatus, InviteStatusWithLiterals, InviteV3, JoinedCondition, JoinedConditionOperator, JoinedConditionOperatorWithLiterals, LikeOperator, LocationsRestriction, Name, OrderField, OrderFieldWithLiterals, Ordering, OrganizationResourceContext, Paging, People, PeopleResource, PeopleResourceResourceTypeOneOf, PeopleType, PeopleTypeWithLiterals, PermissionScope, PermissionScopeV2, Person, PersonMetaData, PersonPersonOneOf, Policy, PolicyCondition, PolicyStatement, PolicyType, PolicyTypeWithLiterals, PredefinedRole, PredefinedRoleV2, PredefinedRoles, PredefinedRolesArea, PredefinedRolesAreaV2, RemoveMemberRequest, RemoveMemberResponse, Resource, ResourceType, ResourceTypeWithLiterals, Restriction, RestrictionRestrictionsOneOf, Role, RoleInfo, RoleInfoV2, RoleLevel, RoleLevelRestriction, RoleLevelRestrictionWithLiterals, RoleLevelWithLiterals, RoleVisibility, RoleVisibilityWithLiterals, RolesInfoFilter, ScopeArea, ScopeAreaV2, ScopeLevel, ScopeLevelWithLiterals, SearchTeamRequest, SimpleCondition, SimpleConditionOperator, SimpleConditionOperatorWithLiterals, SimpleConditionValue, SimpleConditionValueValueOneOf, SiteResourceContext, SiteRestriction, Subject, SubjectAssignments, SubjectContext, SubjectContextType, SubjectContextTypeWithLiterals, SubjectType, SubjectTypeWithLiterals, TeamMember, TeamMemberV3, TeamMemberV3MembersOneOf, UpdateTeamMemberAssignmentsRequest, User, UserV3, Visibility, VisibilityWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function removeMember$1(httpClient: HttpClient): RemoveMemberSignature;
|
|
6
6
|
interface RemoveMemberSignature {
|
|
@@ -18,7 +18,7 @@ interface SearchTeamSignature {
|
|
|
18
18
|
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
19
19
|
* @param - Filter options.
|
|
20
20
|
*/
|
|
21
|
-
(options?: SearchTeamOptions): Promise<NonNullablePaths<SearchTeamResponse, `facets` | `facets.${number}.facetType` | `teamMembers` | `teamMembers.${number}.user._id` | `teamMembers.${number}.user.name.firstName` | `teamMembers.${number}.user.name.lastName` | `teamMembers.${number}.invite._id` | `teamMembers.${number}.invite.status
|
|
21
|
+
(options?: SearchTeamOptions): Promise<NonNullablePaths<SearchTeamResponse, `facets` | `facets.${number}.facetType` | `teamMembers` | `teamMembers.${number}.user._id` | `teamMembers.${number}.user.name.firstName` | `teamMembers.${number}.user.name.lastName` | `teamMembers.${number}.invite._id` | `teamMembers.${number}.invite.status`, 6>>;
|
|
22
22
|
}
|
|
23
23
|
declare function getRolesInfo$1(httpClient: HttpClient): GetRolesInfoSignature;
|
|
24
24
|
interface GetRolesInfoSignature {
|
|
@@ -27,7 +27,7 @@ interface GetRolesInfoSignature {
|
|
|
27
27
|
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
28
28
|
* @param - Filter options.
|
|
29
29
|
*/
|
|
30
|
-
(options?: GetRolesInfoOptions): Promise<NonNullablePaths<GetRolesInfoResponse, `predefinedRoles` | `predefinedRoles.${number}._id` | `predefinedRoles.${number}.title` | `predefinedRoles.${number}.description` | `predefinedRoles.${number}.restrictFromLevel` | `customRoles` | `customRoles.${number}._id` | `customRoles.${number}.title` | `customRoles.${number}.description` | `customRoles.${number}.restrictFromLevel
|
|
30
|
+
(options?: GetRolesInfoOptions): Promise<NonNullablePaths<GetRolesInfoResponse, `predefinedRoles` | `predefinedRoles.${number}._id` | `predefinedRoles.${number}.title` | `predefinedRoles.${number}.description` | `predefinedRoles.${number}.restrictFromLevel` | `customRoles` | `customRoles.${number}._id` | `customRoles.${number}.title` | `customRoles.${number}.description` | `customRoles.${number}.restrictFromLevel`, 4>>;
|
|
31
31
|
}
|
|
32
32
|
declare function updateTeamMemberAssignments$1(httpClient: HttpClient): UpdateTeamMemberAssignmentsSignature;
|
|
33
33
|
interface UpdateTeamMemberAssignmentsSignature {
|
|
@@ -37,7 +37,7 @@ interface UpdateTeamMemberAssignmentsSignature {
|
|
|
37
37
|
* @param - ID of team member being affected.
|
|
38
38
|
* @param - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.
|
|
39
39
|
*/
|
|
40
|
-
(userId: string, options: NonNullablePaths<UpdateTeamMemberAssignmentsOptions, `assignmentIdsToRemove` | `newAssignments
|
|
40
|
+
(userId: string, options: NonNullablePaths<UpdateTeamMemberAssignmentsOptions, `assignmentIdsToRemove` | `newAssignments`, 2>): Promise<NonNullablePaths<UpdateTeamMemberAssignmentsResponse, `assignments` | `assignments.${number}.restrictions.resource.resourceType` | `assignments.${number}.restrictions.resource._id` | `assignments.${number}.restrictions.site._id` | `assignments.${number}.subject._id` | `assignments.${number}.subject.subjectType`, 6>>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
declare const removeMember: MaybeContext<BuildRESTFunction<typeof removeMember$1> & typeof removeMember$1>;
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/identity-roles-v1-user-users.universal.ts","../../src/identity-roles-v1-user-users.http.ts","../../src/identity-roles-v1-user-users.public.ts","../../src/identity-roles-v1-user-users.context.ts"],"sourcesContent":["export * from './src/identity-roles-v1-user-users.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixIdentityRolesV1User from './identity-roles-v1-user-users.http.js';\n\nexport interface User {\n /** User ID. */\n _id?: string;\n /**\n * Deprecated.\n * @deprecated\n */\n roles?: string[];\n /** User's email address. */\n email?: string;\n /** User's name. */\n name?: Name;\n /** URL to user's profile image, when provided. */\n profileImage?: string | null;\n /** Date the user joined the team. */\n joinedTeamAt?: Date | null;\n /**\n * Deprecated.\n * @deprecated\n */\n policyIds?: string[];\n /** Resources the user can access. */\n assignments?: Assignment[];\n}\n\nexport interface Name {\n /** User's first name. */\n firstName?: string;\n /** User's last name. */\n lastName?: string;\n}\n\nexport interface Assignment {\n /** Role assigned to the user. */\n policy?: AssignedPolicy;\n /** Unique ID for this specific assignment. */\n assignmentId?: string;\n /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */\n subject?: Subject;\n}\n\nexport interface AssignedPolicy {\n /** Role ID. */\n policyId?: string;\n /** Role title. */\n title?: string | null;\n /** Role description. */\n description?: string | null;\n}\n\nexport interface Restriction extends RestrictionRestrictionsOneOf {\n /**\n * Deprecated.\n * @deprecated\n */\n resource?: ApiResource;\n /** List of conditions restricting the user's access. Currently only folder conditions are supported. */\n conditions?: Conditions;\n /** Site where the assignment restrictions apply. */\n site?: SiteRestriction;\n /** Location where the assignment restrictions apply. */\n locations?: LocationsRestriction;\n}\n\n/** @oneof */\nexport interface RestrictionRestrictionsOneOf {\n /**\n * Deprecated.\n * @deprecated\n */\n resource?: ApiResource;\n /** List of conditions restricting the user's access. Currently only folder conditions are supported. */\n conditions?: Conditions;\n /** Site where the assignment restrictions apply. */\n site?: SiteRestriction;\n /** Location where the assignment restrictions apply. */\n locations?: LocationsRestriction;\n}\n\nexport interface ApiResource {\n /** Resource type. */\n resourceType?: ResourceTypeWithLiterals;\n /** Resource ID. */\n _id?: string;\n value?: string | null;\n}\n\nexport enum ResourceType {\n UNKNOWN_RESOURCE_TYPE = 'UNKNOWN_RESOURCE_TYPE',\n SITE = 'SITE',\n}\n\n/** @enumType */\nexport type ResourceTypeWithLiterals =\n | ResourceType\n | 'UNKNOWN_RESOURCE_TYPE'\n | 'SITE';\n\nexport interface Conditions {\n /** List of conditions. */\n conditions?: ApiCondition[];\n}\n\nexport interface ApiCondition {\n /** Condition type. */\n conditionType?: ConditionAttributeTypeWithLiterals;\n /** Condition ID. */\n _id?: string;\n /** Expected value of the condition. When `conditionType` = \"FOLDER\", this is the folder path. */\n value?: string | null;\n}\n\nexport enum ConditionAttributeType {\n UNKNOWN_CONDITION_TYPE = 'UNKNOWN_CONDITION_TYPE',\n FOLDER = 'FOLDER',\n}\n\n/** @enumType */\nexport type ConditionAttributeTypeWithLiterals =\n | ConditionAttributeType\n | 'UNKNOWN_CONDITION_TYPE'\n | 'FOLDER';\n\nexport interface SiteRestriction {\n /** Site ID. */\n _id?: string;\n /** Site name. */\n value?: string | null;\n}\n\nexport interface CompanionResource {\n /** Asset ID (referred to here as resource ID). */\n _id?: string;\n /** Asset type (referred to here as resource type). as predefined in the authorization system */\n resourceType?: string;\n}\n\nexport interface LocationsRestriction {\n /**\n * Location IDs.\n * @format GUID\n * @maxSize 20\n */\n ids?: string[];\n}\n\nexport interface Subject {\n /** ID of identity assigned to the asset. */\n _id?: string;\n /** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */\n subjectType?: SubjectTypeWithLiterals;\n /** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */\n context?: SubjectContext;\n}\n\nexport enum SubjectType {\n UNKNOWN = 'UNKNOWN',\n ACCOUNT = 'ACCOUNT',\n USER = 'USER',\n USER_GROUP = 'USER_GROUP',\n MEMBER_GROUP = 'MEMBER_GROUP',\n VISITOR_GROUP = 'VISITOR_GROUP',\n EXTERNAL_APP = 'EXTERNAL_APP',\n ACCOUNT_GROUP = 'ACCOUNT_GROUP',\n WIX_APP = 'WIX_APP',\n}\n\n/** @enumType */\nexport type SubjectTypeWithLiterals =\n | SubjectType\n | 'UNKNOWN'\n | 'ACCOUNT'\n | 'USER'\n | 'USER_GROUP'\n | 'MEMBER_GROUP'\n | 'VISITOR_GROUP'\n | 'EXTERNAL_APP'\n | 'ACCOUNT_GROUP'\n | 'WIX_APP';\n\nexport interface SubjectContext {\n _id?: string;\n contextType?: SubjectContextTypeWithLiterals;\n}\n\nexport enum SubjectContextType {\n UNKNOWN_CTX = 'UNKNOWN_CTX',\n ORG_CTX = 'ORG_CTX',\n ACCOUNT_CTX = 'ACCOUNT_CTX',\n}\n\n/** @enumType */\nexport type SubjectContextTypeWithLiterals =\n | SubjectContextType\n | 'UNKNOWN_CTX'\n | 'ORG_CTX'\n | 'ACCOUNT_CTX';\n\nexport interface GetTeamRequest {\n /** @deprecated */\n usersLimit?: number | null;\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n paging?: Paging;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface GetTeamResponse {\n users?: User[];\n invites?: AccountInvite[];\n accountInfo?: AccountInfo;\n permissions?: string[];\n userId?: string;\n targetAccountId?: string;\n policies?: ApiPolicy[];\n totalUsersInAccount?: string;\n predefinedRoles?: PredefinedRoles;\n}\n\nexport interface AccountInvite {\n /**\n * Invite ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Account ID.\n * @format GUID\n * @readonly\n */\n accountId?: string;\n /**\n * Email address where the invite was sent.\n * @format EMAIL\n */\n email?: string;\n /**\n * Deprecated. Use `policyIds`.\n * @deprecated\n */\n role?: string;\n /**\n * Deprecated. Use `inviterAccountId`.\n * @readonly\n * @deprecated\n */\n inviterId?: string;\n /**\n * Invite status.\n *\n * Supported values:\n * - **Pending:** The invite has been sent and is valid, waiting for the user's response.\n * - **Used:** The invite has been accepted.\n * - **Deleted:** The invite has been deleted or revoked.\n * - **Declined:** The user has declined the invite.\n * - **Expired:** The invite has expired without being accepted.\n */\n status?: InviteStatusWithLiterals;\n /** Link to accept the invite. */\n acceptLink?: string;\n /**\n * Inviting account ID.\n * @format GUID\n * @readonly\n */\n inviterAccountId?: string;\n /**\n * Account ID that accepted the invite. Populated only once the invite is accepted.\n * @format GUID\n * @readonly\n */\n acceptedByAccountId?: string | null;\n /** Date the invite was created. */\n dateCreated?: Date | null;\n /** Role IDs included in the invite. */\n policyIds?: string[];\n /** Date the invite was last updated. */\n dateUpdated?: Date | null;\n /** Assets the users are invited to join. */\n assignments?: InviteResourceAssignment[];\n /** Invite expiration date. */\n expirationDate?: Date | null;\n}\n\n/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */\nexport enum InviteStatus {\n Pending = 'Pending',\n Used = 'Used',\n Deleted = 'Deleted',\n Declined = 'Declined',\n Expired = 'Expired',\n}\n\n/** @enumType */\nexport type InviteStatusWithLiterals =\n | InviteStatus\n | 'Pending'\n | 'Used'\n | 'Deleted'\n | 'Declined'\n | 'Expired';\n\nexport interface InviteResourceAssignment {\n /** Role ID. */\n policyId?: string;\n /** Resources the user will be able to access. */\n assignments?: InviteAssignment[];\n}\n\nexport interface InviteAssignment {\n /** Full name of resource to be assigned. */\n fullNameResource?: FullNameResource;\n}\n\nexport interface FullNameResource extends FullNameResourceResourceContextOneOf {\n /** Specific site details. */\n siteContext?: SiteResourceContext;\n /** Specific account details. */\n accountContext?: AccountResourceContext;\n}\n\n/** @oneof */\nexport interface FullNameResourceResourceContextOneOf {\n /** Specific site details. */\n siteContext?: SiteResourceContext;\n /** Specific account details. */\n accountContext?: AccountResourceContext;\n}\n\n/** Site resource context. It indicates that the resource is under a site (can be the site itself or some asset of a site, like a blog post) */\nexport interface SiteResourceContext {\n /** Site ID. */\n metasiteId?: string;\n}\n\n/** Account resource contexts. It indicates that the resource is under the account (can be the account itself or some asset of an account, like a logo or a domain) */\nexport interface AccountResourceContext {\n /** Account ID. */\n accountId?: string;\n}\n\nexport interface OrganizationResourceContext {}\n\n/**\n * A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom.\n * For example: payment method, blog post, domain, logo.\n */\nexport interface Resource {\n /** The resource id. */\n _id?: string | null;\n /** The resource type */\n type?: string | null;\n}\n\nexport interface PolicyCondition {\n /** The type of the condition */\n condition?: ConditionType;\n}\n\nexport interface ConditionType extends ConditionTypeOfOneOf {\n /** @deprecated */\n simpleCondition?: SimpleCondition;\n /** A logic combination between several conditions, with an operator between them */\n joinedConditions?: JoinedCondition;\n /** @deprecated */\n environmentCondition?: EnvironmentCondition;\n /** A single condition */\n condition?: Condition;\n}\n\n/** @oneof */\nexport interface ConditionTypeOfOneOf {\n /** @deprecated */\n simpleCondition?: SimpleCondition;\n /** A logic combination between several conditions, with an operator between them */\n joinedConditions?: JoinedCondition;\n /** @deprecated */\n environmentCondition?: EnvironmentCondition;\n /** A single condition */\n condition?: Condition;\n}\n\nexport interface SimpleCondition {\n attrName?: string;\n value?: SimpleConditionValue;\n op?: SimpleConditionOperatorWithLiterals;\n conditionModelId?: string;\n}\n\nexport interface SimpleConditionValue extends SimpleConditionValueValueOneOf {\n attrName?: string;\n stringValue?: string;\n boolValue?: boolean;\n}\n\n/** @oneof */\nexport interface SimpleConditionValueValueOneOf {\n attrName?: string;\n stringValue?: string;\n boolValue?: boolean;\n}\n\nexport enum SimpleConditionOperator {\n UNKNOWN_SIMPLE_OP = 'UNKNOWN_SIMPLE_OP',\n EQUAL = 'EQUAL',\n}\n\n/** @enumType */\nexport type SimpleConditionOperatorWithLiterals =\n | SimpleConditionOperator\n | 'UNKNOWN_SIMPLE_OP'\n | 'EQUAL';\n\nexport interface JoinedCondition {\n /** The operator that should be used when evaluating the condition */\n op?: JoinedConditionOperatorWithLiterals;\n /** The conditions that should be evaluated, and then joined using the operator provided */\n conditions?: ConditionType[];\n}\n\nexport enum JoinedConditionOperator {\n UNKNOWN_JOIN_OP = 'UNKNOWN_JOIN_OP',\n OR = 'OR',\n AND = 'AND',\n}\n\n/** @enumType */\nexport type JoinedConditionOperatorWithLiterals =\n | JoinedConditionOperator\n | 'UNKNOWN_JOIN_OP'\n | 'OR'\n | 'AND';\n\nexport interface EnvironmentCondition\n extends EnvironmentConditionConditionOneOf {\n experimentCondition?: ExperimentCondition;\n}\n\n/** @oneof */\nexport interface EnvironmentConditionConditionOneOf {\n experimentCondition?: ExperimentCondition;\n}\n\nexport interface ExperimentCondition {\n spec?: string;\n fallbackValue?: string;\n expectedValue?: string;\n}\n\nexport interface Condition {\n /** The unique identifier of the condition model. Indicates which actions the condition is working on */\n conditionModelId?: string;\n /** The operator that should be evaluated */\n operator?: ConditionOperator;\n}\n\nexport interface ConditionOperator extends ConditionOperatorOperatorsOneOf {\n /** Comparison of equality - will be evaluated to true if the given parties are equal */\n equals?: EqualOperator;\n /** Regex operator - will be evaluated to true if the given value matches the provided regex */\n like?: LikeOperator;\n /** Petri experiment - will be evaluated using petri. */\n experiment?: ExperimentOperator;\n /** Operator that indicates a dependency on another subject being allowed to perform something. */\n dependOn?: DependOnOperator;\n}\n\n/** @oneof */\nexport interface ConditionOperatorOperatorsOneOf {\n /** Comparison of equality - will be evaluated to true if the given parties are equal */\n equals?: EqualOperator;\n /** Regex operator - will be evaluated to true if the given value matches the provided regex */\n like?: LikeOperator;\n /** Petri experiment - will be evaluated using petri. */\n experiment?: ExperimentOperator;\n /** Operator that indicates a dependency on another subject being allowed to perform something. */\n dependOn?: DependOnOperator;\n}\n\nexport interface EqualOperator {\n /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */\n attrName?: string;\n /** The value to compare to. If the two parties are equal - we will return true. */\n value?: ConditionValue;\n}\n\nexport interface ConditionValue extends ConditionValueValueOneOf {\n /** 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. */\n attrName?: string;\n /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */\n stringValue?: string;\n /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */\n boolValue?: boolean;\n}\n\n/** @oneof */\nexport interface ConditionValueValueOneOf {\n /** 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. */\n attrName?: string;\n /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */\n stringValue?: string;\n /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */\n boolValue?: boolean;\n}\n\nexport interface LikeOperator {\n /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */\n attrName?: string;\n /** 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 */\n values?: string[];\n}\n\nexport interface ExperimentOperator {\n /** The spec to conduct the experiment on. */\n spec?: string;\n /** The value to use if the experiment could not be conducted */\n fallbackValue?: string;\n /** The expected value of the experiment conduction. If it matches the actual value - true will be returned. Otherwise - false. */\n expectedValue?: string;\n}\n\n/** Implies that the policy takes affect only if the depend on subject is permitted as well. */\nexport interface DependOnOperator {\n /** 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 */\n dependOnSubject?: Subject;\n}\n\nexport interface AccountInfo {\n accountName?: string;\n accountImage?: string;\n isTeam?: boolean;\n}\n\nexport interface ApiPolicy {\n _id?: string;\n description?: string | null;\n name?: string | null;\n isCustom?: boolean;\n scopes?: string[];\n}\n\nexport interface PredefinedRoles {\n roles?: PredefinedRole[];\n}\n\nexport interface PredefinedRole {\n titleKey?: string;\n roles?: Role[];\n title?: string | null;\n areaId?: string;\n}\n\nexport interface Role {\n _id?: string;\n deprecatedKey?: string;\n /** @deprecated */\n titleKey?: string;\n /** @deprecated */\n descriptionKey?: string;\n deprecated?: boolean;\n restrictFromLevel?: string;\n experiments?: string[];\n appDefIds?: string[];\n title?: string | null;\n description?: string | null;\n isCustom?: boolean;\n scopes?: string[];\n availableResourceTypes?: ResourceTypeWithLiterals[];\n availableConditions?: ConditionAttributeTypeWithLiterals[];\n limitToEditorTypes?: string[];\n}\n\nexport interface ChangeRoleRequest {\n /** User ID. */\n _id?: string;\n /**\n * Deprecated. Use `policyIds`.\n * @deprecated\n */\n role?: string;\n /** Role IDs to be assigned. */\n policyIds?: string[];\n}\n\nexport interface ChangeRoleResponse {}\n\nexport interface RemoveMemberRequest {\n /** User ID of the team member to remove. */\n userId: string;\n}\n\nexport interface RemoveMemberResponse {}\n\nexport interface GetUsersRequest {\n /** The number of items to load */\n limit?: number | null;\n /** number of items to skip in the current sort order */\n offset?: number | null;\n}\n\nexport interface GetUsersResponse {\n users?: User[];\n}\n\nexport interface GetScopesRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n}\n\nexport interface GetScopesResponse {\n scopeAreas?: ScopeArea[];\n}\n\nexport interface ScopeArea {\n title?: string;\n appDefIds?: string[];\n scopes?: PermissionScope[];\n restrictFromLevel?: ScopeLevelWithLiterals;\n}\n\nexport interface PermissionScope {\n _id?: string;\n title?: string;\n description?: string;\n level?: ScopeLevelWithLiterals;\n experiments?: string[];\n dependantScopes?: string[];\n restrictFromLevel?: ScopeLevelWithLiterals;\n deprecated?: boolean | null;\n /** The visibility of the scope for the caller */\n visibility?: VisibilityWithLiterals;\n /**\n * @maxSize 20\n * @format GUID\n */\n appDefIds?: string[];\n}\n\nexport enum ScopeLevel {\n None = 'None',\n SITE = 'SITE',\n ACCOUNT = 'ACCOUNT',\n}\n\n/** @enumType */\nexport type ScopeLevelWithLiterals = ScopeLevel | 'None' | 'SITE' | 'ACCOUNT';\n\nexport enum Visibility {\n /** The scope should be visible to the caller */\n VISIBLE = 'VISIBLE',\n /** The scope shouldn't be visible for the caller, because the capability that blocks it is turned on for the caller */\n BLOCKED_BY_CAPABILITY = 'BLOCKED_BY_CAPABILITY',\n}\n\n/** @enumType */\nexport type VisibilityWithLiterals =\n | Visibility\n | 'VISIBLE'\n | 'BLOCKED_BY_CAPABILITY';\n\nexport interface GetScopesV2Request {\n /**\n * The locale of the scope areas names and descriptions. Defaults to English\n * @format LANGUAGE\n */\n locale?: string | null;\n /** The host platform for filtering scope areas */\n host?: HostWithLiterals;\n}\n\n/** Host represents the different platforms where roles can be applied. */\nexport enum Host {\n /** Unspecified host. */\n INVALID_HOST = 'INVALID_HOST',\n /** Business Manager platform. */\n BUSINESS_MANAGER = 'BUSINESS_MANAGER',\n /** Channels platform. */\n CHANNELS = 'CHANNELS',\n /** Enterprise platform. */\n ENTERPRISE = 'ENTERPRISE',\n /** Studio platform. */\n STUDIO_HOST = 'STUDIO_HOST',\n /** Dev Center platform. */\n DEV_CENTER = 'DEV_CENTER',\n}\n\n/** @enumType */\nexport type HostWithLiterals =\n | Host\n | 'INVALID_HOST'\n | 'BUSINESS_MANAGER'\n | 'CHANNELS'\n | 'ENTERPRISE'\n | 'STUDIO_HOST'\n | 'DEV_CENTER';\n\nexport interface GetScopesV2Response {\n /**\n * The filtered scope areas\n * @maxSize 100\n */\n scopeAreas?: ScopeAreaV2[];\n}\n\nexport interface ScopeAreaV2 {\n /**\n * The title of the scope area\n * @maxLength 500\n */\n title?: string;\n /**\n * The permission scopes within this area\n * @maxSize 100\n */\n scopes?: PermissionScopeV2[];\n}\n\nexport interface PermissionScopeV2 {\n /**\n * The unique identifier for the permission scope\n * @maxLength 500\n */\n _id?: string;\n /**\n * The display title of the permission scope\n * @maxLength 500\n */\n title?: string;\n /**\n * A description of what this permission scope allows\n * @maxLength 1000\n */\n description?: string;\n /**\n * List of scope IDs that this scope depends on\n * @maxSize 500\n * @maxLength 100\n */\n dependantScopes?: string[];\n}\n\nexport interface GetPeopleRequest {\n resource?: PeopleResource;\n peopleType?: PeopleTypeWithLiterals;\n paging?: Paging;\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n}\n\nexport interface PeopleResource extends PeopleResourceResourceTypeOneOf {\n site?: string;\n folder?: FolderResource;\n}\n\n/** @oneof */\nexport interface PeopleResourceResourceTypeOneOf {\n site?: string;\n folder?: FolderResource;\n}\n\nexport interface FolderResource {\n folderId?: string;\n folderFullPath?: string;\n}\n\nexport enum PeopleType {\n UNDEF_PEOPLE_TYPE = 'UNDEF_PEOPLE_TYPE',\n CONTRIBUTOR = 'CONTRIBUTOR',\n TEAM_MEMBER = 'TEAM_MEMBER',\n}\n\n/** @enumType */\nexport type PeopleTypeWithLiterals =\n | PeopleType\n | 'UNDEF_PEOPLE_TYPE'\n | 'CONTRIBUTOR'\n | 'TEAM_MEMBER';\n\nexport interface GetPeopleResponse {\n people?: People;\n}\n\nexport interface People {\n people?: Person[];\n totalPeople?: number;\n}\n\nexport interface Person extends PersonPersonOneOf {\n contributor?: Contributor;\n teamMember?: TeamMember;\n}\n\n/** @oneof */\nexport interface PersonPersonOneOf {\n contributor?: Contributor;\n teamMember?: TeamMember;\n}\n\nexport interface Contributor {\n /** Contributor's metadata. */\n metaData?: PersonMetaData;\n /** Whether the contributor account is a team account. */\n isTeam?: boolean | null;\n /** Date that the contributor joined the site. */\n joinedAt?: Date | null;\n /** Email address that received the invite. */\n invitedEmail?: string | null;\n /** Whether the contributor account is a client account. */\n isClient?: boolean | null;\n /**\n * Contributor's user ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * A set of capability keys representing the actions that the caller is allowed\n * to perform on this specific contributor. This field is calculated based on the\n * identity of the request sender and may differ between callers.\n * @maxSize 20\n * @maxLength 20\n */\n callerCapabilities?: string[];\n}\n\nexport interface PersonMetaData {\n /** Contributor's account ID. */\n _id?: string;\n /** Contributor's full name. */\n fullName?: string | null;\n /** URL for contributor's profile image. */\n imageUrl?: string | null;\n /** Contributor's email address. */\n email?: string | null;\n /** Contributor's access to assets and their assigned role (`policy`) for that asset. */\n assignments?: Assignment[];\n}\n\nexport interface TeamMember {\n metaData?: PersonMetaData;\n}\n\nexport interface GetTeamV2Response {\n users?: User[];\n totalUsersInAccount?: string;\n}\n\nexport interface GetTeamInvitesRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n}\n\nexport interface GetTeamInvitesResponse {\n invites?: Invite[];\n}\n\nexport interface Invite {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * @format GUID\n * @readonly\n */\n accountId?: string;\n email?: string;\n status?: InviteStatusWithLiterals;\n acceptLink?: string;\n dateCreated?: Date | null;\n dateUpdated?: Date | null;\n assignments?: ApiInviteAssignment[];\n /** Invite expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ApiInviteAssignment {\n policy?: AssignedPolicy;\n restrictions?: Restriction;\n}\n\nexport interface GetPoliciesRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n /** Areas filter to include only roles from areas that pass this filter. When not provided, roles from all areas will be returned */\n areasFilter?: AreasFilter;\n /** Role level filter to include only roles that are not restricted from the requested resource level (site/account). When set to ALL, all levels are returned */\n roleLevel?: RoleLevelWithLiterals;\n}\n\nexport interface AreasFilter {\n /** A list of role area ids, to filter only roles belonging to these areas */\n areaIds?: string[];\n}\n\nexport enum RoleLevel {\n ALL = 'ALL',\n SITE_LEVEL = 'SITE_LEVEL',\n ACCOUNT_LEVEL = 'ACCOUNT_LEVEL',\n}\n\n/** @enumType */\nexport type RoleLevelWithLiterals =\n | RoleLevel\n | 'ALL'\n | 'SITE_LEVEL'\n | 'ACCOUNT_LEVEL';\n\nexport interface GetPoliciesResponse {\n policies?: PredefinedRoles;\n}\n\nexport interface SearchTeamRequest {\n /** Free text to search for within team member name and email address fields. */\n query?: string | null;\n /** Sort data. */\n orderBy?: Ordering[];\n /**\n * Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * A list of facets to return in the response. Facets count the items within logical groupings.\n * See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.\n */\n facets?: FacetTypeWithLiterals[];\n /** Pagination. */\n paging?: Paging;\n}\n\nexport interface Ordering {\n /** Field to sort by. */\n fieldName?: OrderFieldWithLiterals;\n /** Sort order. */\n direction?: DirectionWithLiterals;\n}\n\nexport enum OrderField {\n /** For internal use. */\n Undefined = 'Undefined',\n /** Team member name. */\n Name = 'Name',\n /** Date team member joined the account. */\n JoinedAt = 'JoinedAt',\n}\n\n/** @enumType */\nexport type OrderFieldWithLiterals =\n | OrderField\n | 'Undefined'\n | 'Name'\n | 'JoinedAt';\n\nexport enum Direction {\n /** For internal use. */\n UninitializedDirection = 'UninitializedDirection',\n /** Ascending. */\n ASC = 'ASC',\n /** Descending. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals =\n | Direction\n | 'UninitializedDirection'\n | 'ASC'\n | 'DESC';\n\nexport enum FacetType {\n Undefined = 'Undefined',\n /** How many team members with each role */\n Roles = 'Roles',\n /** How many team members by invite status */\n InviteStatus = 'InviteStatus',\n /** How many team members in total in the account */\n Users = 'Users',\n}\n\n/** @enumType */\nexport type FacetTypeWithLiterals =\n | FacetType\n | 'Undefined'\n | 'Roles'\n | 'InviteStatus'\n | 'Users';\n\nexport interface SearchTeamResponse {\n /** List of facets, as requested. */\n facets?: Facet[];\n /** Existing team members and invites sent to join the account. */\n teamMembers?: TeamMemberV3[];\n}\n\nexport interface Facet {\n /** Facet type. */\n facetType?: FacetTypeWithLiterals;\n /** Values and their counters. Values with count = 0 are not returned. */\n values?: FacetValue[];\n}\n\nexport interface FacetValue {\n /** Supported values: `Roles`, `InviteStatus`, `Users`. */\n value?: string;\n /** Number of existing items for the value. */\n count?: number;\n}\n\nexport interface TeamMemberV3 extends TeamMemberV3MembersOneOf {\n /** Existing team member data. */\n user?: UserV3;\n /** Invited team member data. */\n invite?: InviteV3;\n}\n\n/** @oneof */\nexport interface TeamMemberV3MembersOneOf {\n /** Existing team member data. */\n user?: UserV3;\n /** Invited team member data. */\n invite?: InviteV3;\n}\n\nexport interface UserV3 {\n /** User ID. */\n _id?: string;\n /**\n * User's email address.\n * @format EMAIL\n */\n email?: string | null;\n /** User's name, when provided. */\n name?: Name;\n /** URL to user's profile image, when provided. */\n profileImage?: string | null;\n /** Date the user joined the team. */\n joinedTeamAt?: Date | null;\n /** Mapping of the user's access to an asset and their assigned role. */\n assignments?: AssignmentV3[];\n}\n\nexport interface AssignmentV3 {\n /** Role assigned to the user. To retrieve all available roles, call Get Roles Info. */\n policyId?: string | null;\n /**\n * Unique ID for this specific assignment.\n * @readonly\n */\n assignmentId?: string | null;\n /** The asset where a user is assigned access in an assignment. When empty, the role covers all assets, with no restrictions to specific sites or folders. */\n restrictions?: Restriction;\n /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */\n subject?: AssignedSubject;\n}\n\nexport interface AssignedSubject {\n /**\n * Identity ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /** Identity type. */\n subjectType?: SubjectTypeWithLiterals;\n}\n\nexport interface InviteV3 {\n /**\n * Invite ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Invitee's email address.\n * @format EMAIL\n */\n email?: string | null;\n /** Invite status. */\n status?: InviteStatusWithLiterals;\n /** URL of direct link to accept the invite. */\n acceptLink?: string | null;\n /** Date the invite was created. */\n dateCreated?: Date | null;\n /** Date the invite was last updated. */\n dateUpdated?: Date | null;\n /** A list of assignments that will be applied to the invitees when they accept the invite. */\n assignments?: InviteAssignmentV3[];\n /** Invite expiration date. */\n expirationDate?: Date | null;\n}\n\nexport interface InviteAssignmentV3 {\n /** Role ID that will be assigned once the invite is accepted. */\n policyId?: string | null;\n /** Assets where the user will be assigned access. When empty, the role covers all assets, with no restrictions to specific sites or folders. */\n restrictions?: Restriction;\n}\n\nexport interface GetRolesRequest {\n /** The locale of the predefined roles names and descriptions. Defaults to English */\n locale?: string | null;\n}\n\nexport interface GetRolesResponse {\n /** The predefined roles (by areas) */\n predefinedRolesAreas?: PredefinedRolesArea[];\n /** The custom roles */\n customRoles?: CustomRole[];\n}\n\nexport interface PredefinedRolesArea {\n /** The id of the area (e.g \"Blog\") */\n areaId?: string;\n /** The translated area title, according to the request locale, or the original title if translation failed */\n title?: string;\n /** The predefined roles belonging to this area */\n roles?: PredefinedRoleV2[];\n}\n\nexport interface PredefinedRoleV2 {\n /** The policy id of this role */\n _id?: string;\n /** The title of this role, translated according to the request locale, or the original title if translation failed */\n title?: string;\n /** The description of this role, translated according to the request locale, or the original description if translation failed */\n description?: string;\n /** The permission-scopes this role's policy contains */\n scopes?: string[];\n /** Indicates if the role is deprecated (shouldn't be granted, and only exists for backward compatability) */\n deprecated?: boolean;\n /** Indicates if this role should be restricted from assignments of a specific resource type (if RoleLevelRestriction = None, there is no restriction) */\n restrictFromLevel?: RoleLevelRestrictionWithLiterals;\n /** Experiments that should be open for this role to be visible */\n experiments?: string[];\n /** Applications that should be installed for this role to be visible */\n appDefIds?: string[];\n /** Editor types this role should be limited to (if empty, available in all editors) */\n limitToEditorTypes?: EditorTypeWithLiterals[];\n /** The visibility of the role */\n visibility?: RoleVisibilityWithLiterals;\n}\n\nexport enum RoleLevelRestriction {\n NoRestriction = 'NoRestriction',\n Site = 'Site',\n Account = 'Account',\n}\n\n/** @enumType */\nexport type RoleLevelRestrictionWithLiterals =\n | RoleLevelRestriction\n | 'NoRestriction'\n | 'Site'\n | 'Account';\n\nexport enum EditorType {\n UNINITIALIZED = 'UNINITIALIZED',\n EDITORX = 'EDITORX',\n BLOCKS = 'BLOCKS',\n STUDIO = 'STUDIO',\n}\n\n/** @enumType */\nexport type EditorTypeWithLiterals =\n | EditorType\n | 'UNINITIALIZED'\n | 'EDITORX'\n | 'BLOCKS'\n | 'STUDIO';\n\nexport enum RoleVisibility {\n /** the role should be visible to the caller */\n Visible = 'Visible',\n /** the role should be disabled for the caller, because it contains permissions the caller wasn't granted on the call context (site/account) */\n Disabled_Dependency = 'Disabled_Dependency',\n /** the role should be disabled for the caller, because the role's capability is disabled for the caller */\n Disabled_Capability = 'Disabled_Capability',\n}\n\n/** @enumType */\nexport type RoleVisibilityWithLiterals =\n | RoleVisibility\n | 'Visible'\n | 'Disabled_Dependency'\n | 'Disabled_Capability';\n\nexport interface CustomRole {\n /** The policy this role grants */\n policy?: ApiPolicy;\n /** The visibility of the role */\n visibility?: RoleVisibilityWithLiterals;\n /** Whether this role is assigned to a subject */\n assigned?: boolean | null;\n}\n\nexport interface GetRolesInfoRequest {\n /** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */\n locale?: string | null;\n /** Roles to return. */\n filter?: RolesInfoFilter;\n}\n\nexport interface RolesInfoFilter {\n /** Role level to return. Default: ALL. */\n roleLevel?: RoleLevelWithLiterals;\n /** Filter for editor-specific roles. Default: ALL. */\n editorTypes?: EditorTypeWithLiterals[];\n}\n\nexport interface GetRolesInfoResponse {\n /** Predefined roles. */\n predefinedRoles?: RoleInfo[];\n /** Custom roles. */\n customRoles?: RoleInfo[];\n}\n\nexport interface RoleInfo {\n /** Role ID. */\n _id?: string;\n /** Role title, translated according to the request locale. If translation fails, the original title is returned. */\n title?: string;\n /** Role description, translated according to the request locale. If translation fails, the original description is returned. */\n description?: string;\n /** Whether this role is restricted from accessing a specific resource type. Default: `NoRestriction`. */\n restrictFromLevel?: RoleLevelRestrictionWithLiterals;\n}\n\nexport interface CreateCustomRoleRequest {\n /** The custom role to create */\n role?: Policy;\n}\n\nexport interface Policy {\n /** @readonly */\n _id?: string | null;\n /** @maxLength 50 */\n name?: string | null;\n /** @maxLength 500 */\n description?: string | null;\n /** @readonly */\n status?: string;\n policyType?: PolicyTypeWithLiterals;\n statements?: PolicyStatement[];\n}\n\nexport enum PolicyType {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n PREDEFINED = 'PREDEFINED',\n CUSTOM = 'CUSTOM',\n INLINE_CUSTOM = 'INLINE_CUSTOM',\n}\n\n/** @enumType */\nexport type PolicyTypeWithLiterals =\n | PolicyType\n | 'UNKNOWN_STATUS'\n | 'PREDEFINED'\n | 'CUSTOM'\n | 'INLINE_CUSTOM';\n\nexport interface PolicyStatement {\n /** @readonly */\n _id?: string | null;\n permissions?: string[];\n scopes?: string[];\n effect?: EffectWithLiterals;\n condition?: PolicyCondition;\n}\n\nexport enum Effect {\n UNKNOWN_EFFECT = 'UNKNOWN_EFFECT',\n ALLOW = 'ALLOW',\n DENY = 'DENY',\n}\n\n/** @enumType */\nexport type EffectWithLiterals = Effect | 'UNKNOWN_EFFECT' | 'ALLOW' | 'DENY';\n\nexport interface CreateCustomRoleResponse {\n /** The newly created custom role */\n roleCreated?: Policy;\n}\n\nexport interface ChangeRoleV2Request {\n /**\n * ID of team member being affected.\n * @format GUID\n */\n userId: string;\n /** New assignments, including roles, to apply to the team member in this account. To retrieve all available roles, call Get Roles Info. */\n roles: AssignmentV3[];\n /** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */\n assignmentIdsToReplace: string[];\n}\n\nexport interface ChangeRoleV2Response {\n /** New roles assigned to the given team member. */\n roles?: AssignmentV3[];\n}\n\nexport interface UpdateTeamMemberAssignmentsRequest {\n /**\n * ID of team member being affected.\n * @format GUID\n */\n userId: string;\n /**\n * New assignments to apply to the team member in this account.\n * @maxSize 50\n */\n newAssignments: AssignmentV3[];\n /**\n * Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team.\n * @format GUID\n * @maxSize 50\n */\n assignmentIdsToRemove: string[];\n}\n\nexport interface UpdateTeamMemberAssignmentsResponse {\n /** The new assignments, assigned to the given team member. */\n assignments?: AssignmentV3[];\n}\n\nexport interface GetSubjectsAssignmentsRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n /** list of subjects */\n subjects?: Subject[];\n}\n\nexport interface GetSubjectsAssignmentsResponse {\n /** list of subjects with assignments */\n subjectsAssignments?: SubjectAssignments[];\n}\n\nexport interface SubjectAssignments {\n subject?: Subject;\n assignments?: Assignment[];\n}\n\nexport interface GetScopesByRoleRequest {\n /**\n * The role ID to filter scope areas by\n * @maxLength 50\n */\n roleId?: string;\n /**\n * The locale of the scope. Defaults to English\n * @format LANGUAGE\n */\n locale?: string | null;\n}\n\nexport interface GetScopesByRoleResponse {\n /**\n * The scopes included in this role\n * @maxSize 100\n */\n scopes?: PermissionScopeV2[];\n}\n\nexport interface GetRolesV2Request {\n /**\n * The locale of the predefined roles names and descriptions. Defaults to English\n * @format LANGUAGE\n */\n locale?: string | null;\n /** The host platform to filter roles for */\n host?: HostWithLiterals;\n}\n\nexport interface GetRolesV2Response {\n /** The predefined roles (by areas) with simplified structure */\n predefinedRolesAreas?: PredefinedRolesAreaV2[];\n /** The custom roles with simplified structure */\n customRoles?: CustomRoleV2[];\n}\n\nexport interface PredefinedRolesAreaV2 {\n /**\n * Area ID\n * @maxLength 50\n */\n areaId?: string;\n /**\n * Area title\n * @maxLength 50\n */\n title?: string;\n /**\n * Roles in this area\n * @maxSize 100\n */\n roles?: RoleInfoV2[];\n /**\n * Host platforms this area applies to\n * @maxSize 10\n * @maxLength 50\n */\n hosts?: string[];\n}\n\nexport interface RoleInfoV2 {\n /**\n * Role ID\n * @maxLength 50\n */\n _id?: string;\n /**\n * Role title\n * @maxLength 500\n */\n title?: string;\n /**\n * Role description\n * @maxLength 1000\n */\n description?: string;\n /**\n * List of dependent role IDs\n * @maxSize 50\n * @maxLength 50\n */\n dependentRoles?: string[];\n}\n\nexport interface CustomRoleV2 {\n /**\n * Role ID\n * @maxLength 50\n */\n _id?: string;\n /**\n * Role title\n * @maxLength 500\n */\n title?: string;\n /**\n * Role description\n * @maxLength 1000\n */\n description?: string;\n /**\n * List of permission scopes\n * @maxSize 100\n * @maxLength 100\n */\n scopes?: string[];\n /** Whether this role is assigned to the current user */\n assigned?: boolean;\n}\n\n/**\n * Removes a team member from the requesting account.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param userId - User ID of the team member to remove.\n * @public\n * @requiredField userId\n * @permissionId team.delete-member\n * @fqn com.wixpress.roles.management.api.RolesManagementService.RemoveMember\n */\nexport async function removeMember(userId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ userId: userId });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.removeMember(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { userId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['userId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves all team members of the requesting account, based on the provided filters and free text queries.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @public\n * @param options - Filter options.\n * @fqn com.wixpress.roles.management.api.RolesManagementService.SearchTeam\n */\nexport async function searchTeam(\n options?: SearchTeamOptions\n): Promise<\n NonNullablePaths<\n SearchTeamResponse,\n | `facets`\n | `facets.${number}.facetType`\n | `teamMembers`\n | `teamMembers.${number}.user._id`\n | `teamMembers.${number}.user.name.firstName`\n | `teamMembers.${number}.user.name.lastName`\n | `teamMembers.${number}.invite._id`\n | `teamMembers.${number}.invite.status`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: options?.query,\n orderBy: options?.orderBy,\n filter: options?.filter,\n facets: options?.facets,\n paging: options?.paging,\n });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.searchTeam(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n query: '$[0].query',\n orderBy: '$[0].orderBy',\n filter: '$[0].filter',\n facets: '$[0].facets',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchTeamOptions {\n /** Free text to search for within team member name and email address fields. */\n query?: string | null;\n /** Sort data. */\n orderBy?: Ordering[];\n /**\n * Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * A list of facets to return in the response. Facets count the items within logical groupings.\n * See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.\n */\n facets?: FacetTypeWithLiterals[];\n /** Pagination. */\n paging?: Paging;\n}\n\n/**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @public\n * @param options - Filter options.\n * @permissionId ACCOUNT_ROLES.GET_ROLES\n * @fqn com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo\n */\nexport async function getRolesInfo(\n options?: GetRolesInfoOptions\n): Promise<\n NonNullablePaths<\n GetRolesInfoResponse,\n | `predefinedRoles`\n | `predefinedRoles.${number}._id`\n | `predefinedRoles.${number}.title`\n | `predefinedRoles.${number}.description`\n | `predefinedRoles.${number}.restrictFromLevel`\n | `customRoles`\n | `customRoles.${number}._id`\n | `customRoles.${number}.title`\n | `customRoles.${number}.description`\n | `customRoles.${number}.restrictFromLevel`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n locale: options?.locale,\n filter: options?.filter,\n });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.getRolesInfo(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n locale: '$[0].locale',\n filter: '$[0].filter',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetRolesInfoOptions {\n /** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */\n locale?: string | null;\n /** Roles to return. */\n filter?: RolesInfoFilter;\n}\n\n/**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param userId - ID of team member being affected.\n * @internal\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.assignmentIdsToReplace\n * @requiredField options.roles\n * @requiredField userId\n * @permissionId team.manage-team-member-roles\n * @fqn com.wixpress.roles.management.api.RolesManagementService.ChangeRoleV2\n */\nexport async function changeRoleV2(\n userId: string,\n options: NonNullablePaths<\n ChangeRoleV2Options,\n `assignmentIdsToReplace` | `roles`\n >\n): Promise<\n NonNullablePaths<\n ChangeRoleV2Response,\n | `roles`\n | `roles.${number}.restrictions.resource.resourceType`\n | `roles.${number}.restrictions.resource._id`\n | `roles.${number}.restrictions.site._id`\n | `roles.${number}.subject._id`\n | `roles.${number}.subject.subjectType`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n userId: userId,\n roles: options?.roles,\n assignmentIdsToReplace: options?.assignmentIdsToReplace,\n });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.changeRoleV2(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n userId: '$[0]',\n roles: '$[1].roles',\n assignmentIdsToReplace: '$[1].assignmentIdsToReplace',\n },\n singleArgumentUnchanged: false,\n },\n ['userId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChangeRoleV2Options {\n /** New assignments, including roles, to apply to the team member in this account. To retrieve all available roles, call Get Roles Info. */\n roles: AssignmentV3[];\n /** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */\n assignmentIdsToReplace: string[];\n}\n\n/**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param userId - ID of team member being affected.\n * @public\n * @requiredField options\n * @requiredField options.assignmentIdsToRemove\n * @requiredField options.newAssignments\n * @requiredField userId\n * @param options - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.\n * @permissionId team.manage-team-member-roles\n * @fqn com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments\n */\nexport async function updateTeamMemberAssignments(\n userId: string,\n options: NonNullablePaths<\n UpdateTeamMemberAssignmentsOptions,\n `assignmentIdsToRemove` | `newAssignments`\n >\n): Promise<\n NonNullablePaths<\n UpdateTeamMemberAssignmentsResponse,\n | `assignments`\n | `assignments.${number}.restrictions.resource.resourceType`\n | `assignments.${number}.restrictions.resource._id`\n | `assignments.${number}.restrictions.site._id`\n | `assignments.${number}.subject._id`\n | `assignments.${number}.subject.subjectType`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n userId: userId,\n newAssignments: options?.newAssignments,\n assignmentIdsToRemove: options?.assignmentIdsToRemove,\n });\n\n const reqOpts =\n ambassadorWixIdentityRolesV1User.updateTeamMemberAssignments(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n userId: '$[0]',\n newAssignments: '$[1].newAssignments',\n assignmentIdsToRemove: '$[1].assignmentIdsToRemove',\n },\n singleArgumentUnchanged: false,\n },\n ['userId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateTeamMemberAssignmentsOptions {\n /**\n * New assignments to apply to the team member in this account.\n * @maxSize 50\n */\n newAssignments: AssignmentV3[];\n /**\n * Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team.\n * @format GUID\n * @maxSize 50\n */\n assignmentIdsToRemove: string[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRolesManagementApiRolesManagementServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/app/accept',\n destPath: '/app/accept',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/contributors',\n destPath: '/v2/contributors',\n },\n {\n srcPath: '/contributor/change/role',\n destPath: '/contributor/change/role',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/roles-management',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management/roles',\n destPath: '/roles',\n },\n {\n srcPath: '/roles-management/team',\n destPath: '/team',\n },\n {\n srcPath: '/roles-management/v3/team',\n destPath: '/v3/team',\n },\n {\n srcPath: '/roles-management/v2/team',\n destPath: '/v2/team',\n },\n {\n srcPath: '/roles-management/contributor/change',\n destPath: '/contributor/change',\n },\n {\n srcPath: '/roles-management/v2/contributors',\n destPath: '/v2/contributors',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_user-management_users';\n\n/**\n * Removes a team member from the requesting account.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function removeMember(payload: object): RequestOptionsFactory<any> {\n function __removeMember({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.RemoveMember',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/team/remove',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __removeMember;\n}\n\n/**\n * Retrieves all team members of the requesting account, based on the provided filters and free text queries.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function searchTeam(payload: object): RequestOptionsFactory<any> {\n function __searchTeam({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.SearchTeam',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v3/team/search',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'teamMembers.user.joinedTeamAt' },\n { path: 'teamMembers.invite.dateCreated' },\n { path: 'teamMembers.invite.dateUpdated' },\n { path: 'teamMembers.invite.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchTeam;\n}\n\n/**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function getRolesInfo(payload: object): RequestOptionsFactory<any> {\n function __getRolesInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/roles',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getRolesInfo;\n}\n\n/**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function changeRoleV2(payload: object): RequestOptionsFactory<any> {\n function __changeRoleV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.ChangeRoleV2',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/roles',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeRoleV2;\n}\n\n/**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function updateTeamMemberAssignments(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateTeamMemberAssignments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/assignments',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateTeamMemberAssignments;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ChangeRoleV2Options,\n ChangeRoleV2Response,\n GetRolesInfoOptions,\n GetRolesInfoResponse,\n SearchTeamOptions,\n SearchTeamResponse,\n UpdateTeamMemberAssignmentsOptions,\n UpdateTeamMemberAssignmentsResponse,\n changeRoleV2 as universalChangeRoleV2,\n getRolesInfo as universalGetRolesInfo,\n removeMember as universalRemoveMember,\n searchTeam as universalSearchTeam,\n updateTeamMemberAssignments as universalUpdateTeamMemberAssignments,\n} from './identity-roles-v1-user-users.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/user-management' };\n\nexport function removeMember(httpClient: HttpClient): RemoveMemberSignature {\n return (userId: string) =>\n universalRemoveMember(\n userId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveMemberSignature {\n /**\n * Removes a team member from the requesting account.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - User ID of the team member to remove.\n */\n (userId: string): Promise<void>;\n}\n\nexport function searchTeam(httpClient: HttpClient): SearchTeamSignature {\n return (options?: SearchTeamOptions) =>\n universalSearchTeam(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchTeamSignature {\n /**\n * Retrieves all team members of the requesting account, based on the provided filters and free text queries.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - Filter options.\n */\n (options?: SearchTeamOptions): Promise<\n NonNullablePaths<\n SearchTeamResponse,\n | `facets`\n | `facets.${number}.facetType`\n | `teamMembers`\n | `teamMembers.${number}.user._id`\n | `teamMembers.${number}.user.name.firstName`\n | `teamMembers.${number}.user.name.lastName`\n | `teamMembers.${number}.invite._id`\n | `teamMembers.${number}.invite.status`\n >\n >;\n}\n\nexport function getRolesInfo(httpClient: HttpClient): GetRolesInfoSignature {\n return (options?: GetRolesInfoOptions) =>\n universalGetRolesInfo(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetRolesInfoSignature {\n /**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - Filter options.\n */\n (options?: GetRolesInfoOptions): Promise<\n NonNullablePaths<\n GetRolesInfoResponse,\n | `predefinedRoles`\n | `predefinedRoles.${number}._id`\n | `predefinedRoles.${number}.title`\n | `predefinedRoles.${number}.description`\n | `predefinedRoles.${number}.restrictFromLevel`\n | `customRoles`\n | `customRoles.${number}._id`\n | `customRoles.${number}.title`\n | `customRoles.${number}.description`\n | `customRoles.${number}.restrictFromLevel`\n >\n >;\n}\n\n/** @internal */\nexport function changeRoleV2(httpClient: HttpClient): ChangeRoleV2Signature {\n return (\n userId: string,\n options: NonNullablePaths<\n ChangeRoleV2Options,\n `assignmentIdsToReplace` | `roles`\n >\n ) =>\n universalChangeRoleV2(\n userId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ChangeRoleV2Signature {\n /**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - ID of team member being affected.\n */\n (\n userId: string,\n options: NonNullablePaths<\n ChangeRoleV2Options,\n `assignmentIdsToReplace` | `roles`\n >\n ): Promise<\n NonNullablePaths<\n ChangeRoleV2Response,\n | `roles`\n | `roles.${number}.restrictions.resource.resourceType`\n | `roles.${number}.restrictions.resource._id`\n | `roles.${number}.restrictions.site._id`\n | `roles.${number}.subject._id`\n | `roles.${number}.subject.subjectType`\n >\n >;\n}\n\nexport function updateTeamMemberAssignments(\n httpClient: HttpClient\n): UpdateTeamMemberAssignmentsSignature {\n return (\n userId: string,\n options: NonNullablePaths<\n UpdateTeamMemberAssignmentsOptions,\n `assignmentIdsToRemove` | `newAssignments`\n >\n ) =>\n universalUpdateTeamMemberAssignments(\n userId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateTeamMemberAssignmentsSignature {\n /**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - ID of team member being affected.\n * @param - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.\n */\n (\n userId: string,\n options: NonNullablePaths<\n UpdateTeamMemberAssignmentsOptions,\n `assignmentIdsToRemove` | `newAssignments`\n >\n ): Promise<\n NonNullablePaths<\n UpdateTeamMemberAssignmentsResponse,\n | `assignments`\n | `assignments.${number}.restrictions.resource.resourceType`\n | `assignments.${number}.restrictions.resource._id`\n | `assignments.${number}.restrictions.site._id`\n | `assignments.${number}.subject._id`\n | `assignments.${number}.subject.subjectType`\n >\n >;\n}\n\nexport {\n AccountInfo,\n AccountInvite,\n AccountResourceContext,\n ApiCondition,\n ApiInviteAssignment,\n ApiPolicy,\n ApiResource,\n AreasFilter,\n AssignedPolicy,\n AssignedSubject,\n Assignment,\n AssignmentV3,\n ChangeRoleRequest,\n ChangeRoleResponse,\n ChangeRoleV2Options,\n ChangeRoleV2Request,\n ChangeRoleV2Response,\n CompanionResource,\n Condition,\n ConditionAttributeType,\n ConditionOperator,\n ConditionOperatorOperatorsOneOf,\n ConditionType,\n ConditionTypeOfOneOf,\n ConditionValue,\n ConditionValueValueOneOf,\n Conditions,\n Contributor,\n CreateCustomRoleRequest,\n CreateCustomRoleResponse,\n CustomRole,\n CustomRoleV2,\n DependOnOperator,\n Direction,\n EditorType,\n Effect,\n EnvironmentCondition,\n EnvironmentConditionConditionOneOf,\n EqualOperator,\n ExperimentCondition,\n ExperimentOperator,\n Facet,\n FacetType,\n FacetValue,\n FolderResource,\n FullNameResource,\n FullNameResourceResourceContextOneOf,\n GetPeopleRequest,\n GetPeopleResponse,\n GetPoliciesRequest,\n GetPoliciesResponse,\n GetRolesInfoOptions,\n GetRolesInfoRequest,\n GetRolesInfoResponse,\n GetRolesRequest,\n GetRolesResponse,\n GetRolesV2Request,\n GetRolesV2Response,\n GetScopesByRoleRequest,\n GetScopesByRoleResponse,\n GetScopesRequest,\n GetScopesResponse,\n GetScopesV2Request,\n GetScopesV2Response,\n GetSubjectsAssignmentsRequest,\n GetSubjectsAssignmentsResponse,\n GetTeamInvitesRequest,\n GetTeamInvitesResponse,\n GetTeamRequest,\n GetTeamResponse,\n GetTeamV2Response,\n GetUsersRequest,\n GetUsersResponse,\n Host,\n Invite,\n InviteAssignment,\n InviteAssignmentV3,\n InviteResourceAssignment,\n InviteStatus,\n InviteV3,\n JoinedCondition,\n JoinedConditionOperator,\n LikeOperator,\n LocationsRestriction,\n Name,\n OrderField,\n Ordering,\n OrganizationResourceContext,\n Paging,\n People,\n PeopleResource,\n PeopleResourceResourceTypeOneOf,\n PeopleType,\n PermissionScope,\n PermissionScopeV2,\n Person,\n PersonMetaData,\n PersonPersonOneOf,\n Policy,\n PolicyCondition,\n PolicyStatement,\n PolicyType,\n PredefinedRole,\n PredefinedRoleV2,\n PredefinedRoles,\n PredefinedRolesArea,\n PredefinedRolesAreaV2,\n RemoveMemberRequest,\n RemoveMemberResponse,\n Resource,\n ResourceType,\n Restriction,\n RestrictionRestrictionsOneOf,\n Role,\n RoleInfo,\n RoleInfoV2,\n RoleLevel,\n RoleLevelRestriction,\n RoleVisibility,\n RolesInfoFilter,\n ScopeArea,\n ScopeAreaV2,\n ScopeLevel,\n SearchTeamOptions,\n SearchTeamRequest,\n SearchTeamResponse,\n SimpleCondition,\n SimpleConditionOperator,\n SimpleConditionValue,\n SimpleConditionValueValueOneOf,\n SiteResourceContext,\n SiteRestriction,\n Subject,\n SubjectAssignments,\n SubjectContext,\n SubjectContextType,\n SubjectType,\n TeamMember,\n TeamMemberV3,\n TeamMemberV3MembersOneOf,\n UpdateTeamMemberAssignmentsOptions,\n UpdateTeamMemberAssignmentsRequest,\n UpdateTeamMemberAssignmentsResponse,\n User,\n UserV3,\n Visibility,\n} from './identity-roles-v1-user-users.universal.js';\n","import {\n removeMember as publicRemoveMember,\n searchTeam as publicSearchTeam,\n getRolesInfo as publicGetRolesInfo,\n changeRoleV2 as publicChangeRoleV2,\n updateTeamMemberAssignments as publicUpdateTeamMemberAssignments,\n} from './identity-roles-v1-user-users.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const removeMember: MaybeContext<\n BuildRESTFunction<typeof publicRemoveMember> & typeof publicRemoveMember\n> = /*#__PURE__*/ createRESTModule(publicRemoveMember);\nexport const searchTeam: MaybeContext<\n BuildRESTFunction<typeof publicSearchTeam> & typeof publicSearchTeam\n> = /*#__PURE__*/ createRESTModule(publicSearchTeam);\nexport const getRolesInfo: MaybeContext<\n BuildRESTFunction<typeof publicGetRolesInfo> & typeof publicGetRolesInfo\n> = /*#__PURE__*/ createRESTModule(publicGetRolesInfo);\n/** @internal */\nexport const changeRoleV2: MaybeContext<\n BuildRESTFunction<typeof publicChangeRoleV2> & typeof publicChangeRoleV2\n> = /*#__PURE__*/ createRESTModule(publicChangeRoleV2);\nexport const updateTeamMemberAssignments: MaybeContext<\n BuildRESTFunction<typeof publicUpdateTeamMemberAssignments> &\n typeof publicUpdateTeamMemberAssignments\n> = /*#__PURE__*/ createRESTModule(publicUpdateTeamMemberAssignments);\n\nexport {\n ResourceType,\n ConditionAttributeType,\n SubjectType,\n SubjectContextType,\n InviteStatus,\n SimpleConditionOperator,\n JoinedConditionOperator,\n ScopeLevel,\n Visibility,\n Host,\n PeopleType,\n RoleLevel,\n OrderField,\n Direction,\n FacetType,\n RoleLevelRestriction,\n EditorType,\n RoleVisibility,\n PolicyType,\n Effect,\n} from './identity-roles-v1-user-users.universal.js';\nexport {\n User,\n Name,\n Assignment,\n AssignedPolicy,\n Restriction,\n RestrictionRestrictionsOneOf,\n ApiResource,\n Conditions,\n ApiCondition,\n SiteRestriction,\n CompanionResource,\n LocationsRestriction,\n Subject,\n SubjectContext,\n GetTeamRequest,\n Paging,\n GetTeamResponse,\n AccountInvite,\n InviteResourceAssignment,\n InviteAssignment,\n FullNameResource,\n FullNameResourceResourceContextOneOf,\n SiteResourceContext,\n AccountResourceContext,\n OrganizationResourceContext,\n Resource,\n PolicyCondition,\n ConditionType,\n ConditionTypeOfOneOf,\n SimpleCondition,\n SimpleConditionValue,\n SimpleConditionValueValueOneOf,\n JoinedCondition,\n EnvironmentCondition,\n EnvironmentConditionConditionOneOf,\n ExperimentCondition,\n Condition,\n ConditionOperator,\n ConditionOperatorOperatorsOneOf,\n EqualOperator,\n ConditionValue,\n ConditionValueValueOneOf,\n LikeOperator,\n ExperimentOperator,\n DependOnOperator,\n AccountInfo,\n ApiPolicy,\n PredefinedRoles,\n PredefinedRole,\n Role,\n ChangeRoleRequest,\n ChangeRoleResponse,\n RemoveMemberRequest,\n RemoveMemberResponse,\n GetUsersRequest,\n GetUsersResponse,\n GetScopesRequest,\n GetScopesResponse,\n ScopeArea,\n PermissionScope,\n GetScopesV2Request,\n GetScopesV2Response,\n ScopeAreaV2,\n PermissionScopeV2,\n GetPeopleRequest,\n PeopleResource,\n PeopleResourceResourceTypeOneOf,\n FolderResource,\n GetPeopleResponse,\n People,\n Person,\n PersonPersonOneOf,\n Contributor,\n PersonMetaData,\n TeamMember,\n GetTeamV2Response,\n GetTeamInvitesRequest,\n GetTeamInvitesResponse,\n Invite,\n ApiInviteAssignment,\n GetPoliciesRequest,\n AreasFilter,\n GetPoliciesResponse,\n SearchTeamRequest,\n Ordering,\n SearchTeamResponse,\n Facet,\n FacetValue,\n TeamMemberV3,\n TeamMemberV3MembersOneOf,\n UserV3,\n AssignmentV3,\n AssignedSubject,\n InviteV3,\n InviteAssignmentV3,\n GetRolesRequest,\n GetRolesResponse,\n PredefinedRolesArea,\n PredefinedRoleV2,\n CustomRole,\n GetRolesInfoRequest,\n RolesInfoFilter,\n GetRolesInfoResponse,\n RoleInfo,\n CreateCustomRoleRequest,\n Policy,\n PolicyStatement,\n CreateCustomRoleResponse,\n ChangeRoleV2Request,\n ChangeRoleV2Response,\n UpdateTeamMemberAssignmentsRequest,\n UpdateTeamMemberAssignmentsResponse,\n GetSubjectsAssignmentsRequest,\n GetSubjectsAssignmentsResponse,\n SubjectAssignments,\n GetScopesByRoleRequest,\n GetScopesByRoleResponse,\n GetRolesV2Request,\n GetRolesV2Response,\n PredefinedRolesAreaV2,\n RoleInfoV2,\n CustomRoleV2,\n SearchTeamOptions,\n GetRolesInfoOptions,\n ChangeRoleV2Options,\n UpdateTeamMemberAssignmentsOptions,\n} from './identity-roles-v1-user-users.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAAA;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,mCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,I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,YAKAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA2BO,SAASC,6BACd,YACsC;AACtC,SAAO,CACL,QACA,YAKAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACtJA,IAAAC,uBAAiC;AAG1B,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,cAEK,2DAAiBA,WAAgB;AAC5C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAE9C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,+BAGK,2DAAiBA,4BAAiC;","names":["changeRoleV2","getRolesInfo","removeMember","searchTeam","updateTeamMemberAssignments","import_rest_modules","payload","ResourceType","ConditionAttributeType","SubjectType","SubjectContextType","InviteStatus","SimpleConditionOperator","JoinedConditionOperator","ScopeLevel","Visibility","Host","PeopleType","RoleLevel","OrderField","Direction","FacetType","RoleLevelRestriction","EditorType","RoleVisibility","PolicyType","Effect","removeMember","sdkTransformError","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments","removeMember","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments","import_rest_modules","removeMember","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/identity-roles-v1-user-users.universal.ts","../../src/identity-roles-v1-user-users.http.ts","../../src/identity-roles-v1-user-users.public.ts","../../src/identity-roles-v1-user-users.context.ts"],"sourcesContent":["export * from './src/identity-roles-v1-user-users.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixIdentityRolesV1User from './identity-roles-v1-user-users.http.js';\n\nexport interface User {\n /** User ID. */\n _id?: string;\n /**\n * Deprecated.\n * @deprecated\n */\n roles?: string[];\n /** User's email address. */\n email?: string;\n /** User's name. */\n name?: Name;\n /** URL to user's profile image, when provided. */\n profileImage?: string | null;\n /** Date the user joined the team. */\n joinedTeamAt?: Date | null;\n /**\n * Deprecated.\n * @deprecated\n */\n policyIds?: string[];\n /** Resources the user can access. */\n assignments?: Assignment[];\n}\n\nexport interface Name {\n /** User's first name. */\n firstName?: string;\n /** User's last name. */\n lastName?: string;\n}\n\nexport interface Assignment {\n /** Role assigned to the user. */\n policy?: AssignedPolicy;\n /** Unique ID for this specific assignment. */\n assignmentId?: string;\n /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */\n subject?: Subject;\n}\n\nexport interface AssignedPolicy {\n /** Role ID. */\n policyId?: string;\n /** Role title. */\n title?: string | null;\n /** Role description. */\n description?: string | null;\n}\n\nexport interface Restriction extends RestrictionRestrictionsOneOf {\n /**\n * Deprecated.\n * @deprecated\n */\n resource?: ApiResource;\n /** List of conditions restricting the user's access. Currently only folder conditions are supported. */\n conditions?: Conditions;\n /** Site where the assignment restrictions apply. */\n site?: SiteRestriction;\n /** Location where the assignment restrictions apply. */\n locations?: LocationsRestriction;\n}\n\n/** @oneof */\nexport interface RestrictionRestrictionsOneOf {\n /**\n * Deprecated.\n * @deprecated\n */\n resource?: ApiResource;\n /** List of conditions restricting the user's access. Currently only folder conditions are supported. */\n conditions?: Conditions;\n /** Site where the assignment restrictions apply. */\n site?: SiteRestriction;\n /** Location where the assignment restrictions apply. */\n locations?: LocationsRestriction;\n}\n\nexport interface ApiResource {\n /** Resource type. */\n resourceType?: ResourceTypeWithLiterals;\n /** Resource ID. */\n _id?: string;\n value?: string | null;\n}\n\nexport enum ResourceType {\n UNKNOWN_RESOURCE_TYPE = 'UNKNOWN_RESOURCE_TYPE',\n SITE = 'SITE',\n}\n\n/** @enumType */\nexport type ResourceTypeWithLiterals =\n | ResourceType\n | 'UNKNOWN_RESOURCE_TYPE'\n | 'SITE';\n\nexport interface Conditions {\n /** List of conditions. */\n conditions?: ApiCondition[];\n}\n\nexport interface ApiCondition {\n /** Condition type. */\n conditionType?: ConditionAttributeTypeWithLiterals;\n /** Condition ID. */\n _id?: string;\n /** Expected value of the condition. When `conditionType` = \"FOLDER\", this is the folder path. */\n value?: string | null;\n}\n\nexport enum ConditionAttributeType {\n UNKNOWN_CONDITION_TYPE = 'UNKNOWN_CONDITION_TYPE',\n FOLDER = 'FOLDER',\n}\n\n/** @enumType */\nexport type ConditionAttributeTypeWithLiterals =\n | ConditionAttributeType\n | 'UNKNOWN_CONDITION_TYPE'\n | 'FOLDER';\n\nexport interface SiteRestriction {\n /** Site ID. */\n _id?: string;\n /** Site name. */\n value?: string | null;\n}\n\nexport interface CompanionResource {\n /** Asset ID (referred to here as resource ID). */\n _id?: string;\n /** Asset type (referred to here as resource type). as predefined in the authorization system */\n resourceType?: string;\n}\n\nexport interface LocationsRestriction {\n /**\n * Location IDs.\n * @format GUID\n * @maxSize 20\n */\n ids?: string[];\n}\n\nexport interface Subject {\n /** ID of identity assigned to the asset. */\n _id?: string;\n /** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */\n subjectType?: SubjectTypeWithLiterals;\n /** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */\n context?: SubjectContext;\n}\n\nexport enum SubjectType {\n UNKNOWN = 'UNKNOWN',\n ACCOUNT = 'ACCOUNT',\n USER = 'USER',\n USER_GROUP = 'USER_GROUP',\n MEMBER_GROUP = 'MEMBER_GROUP',\n VISITOR_GROUP = 'VISITOR_GROUP',\n EXTERNAL_APP = 'EXTERNAL_APP',\n ACCOUNT_GROUP = 'ACCOUNT_GROUP',\n WIX_APP = 'WIX_APP',\n}\n\n/** @enumType */\nexport type SubjectTypeWithLiterals =\n | SubjectType\n | 'UNKNOWN'\n | 'ACCOUNT'\n | 'USER'\n | 'USER_GROUP'\n | 'MEMBER_GROUP'\n | 'VISITOR_GROUP'\n | 'EXTERNAL_APP'\n | 'ACCOUNT_GROUP'\n | 'WIX_APP';\n\nexport interface SubjectContext {\n _id?: string;\n contextType?: SubjectContextTypeWithLiterals;\n}\n\nexport enum SubjectContextType {\n UNKNOWN_CTX = 'UNKNOWN_CTX',\n ORG_CTX = 'ORG_CTX',\n ACCOUNT_CTX = 'ACCOUNT_CTX',\n}\n\n/** @enumType */\nexport type SubjectContextTypeWithLiterals =\n | SubjectContextType\n | 'UNKNOWN_CTX'\n | 'ORG_CTX'\n | 'ACCOUNT_CTX';\n\nexport interface GetTeamRequest {\n /** @deprecated */\n usersLimit?: number | null;\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n paging?: Paging;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface GetTeamResponse {\n users?: User[];\n invites?: AccountInvite[];\n accountInfo?: AccountInfo;\n permissions?: string[];\n userId?: string;\n targetAccountId?: string;\n policies?: ApiPolicy[];\n totalUsersInAccount?: string;\n predefinedRoles?: PredefinedRoles;\n}\n\nexport interface AccountInvite {\n /**\n * Invite ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Account ID.\n * @format GUID\n * @readonly\n */\n accountId?: string;\n /**\n * Email address where the invite was sent.\n * @format EMAIL\n */\n email?: string;\n /**\n * Deprecated. Use `policyIds`.\n * @deprecated\n */\n role?: string;\n /**\n * Deprecated. Use `inviterAccountId`.\n * @readonly\n * @deprecated\n */\n inviterId?: string;\n /**\n * Invite status.\n *\n * Supported values:\n * - **Pending:** The invite has been sent and is valid, waiting for the user's response.\n * - **Used:** The invite has been accepted.\n * - **Deleted:** The invite has been deleted or revoked.\n * - **Declined:** The user has declined the invite.\n * - **Expired:** The invite has expired without being accepted.\n */\n status?: InviteStatusWithLiterals;\n /** Link to accept the invite. */\n acceptLink?: string;\n /**\n * Inviting account ID.\n * @format GUID\n * @readonly\n */\n inviterAccountId?: string;\n /**\n * Account ID that accepted the invite. Populated only once the invite is accepted.\n * @format GUID\n * @readonly\n */\n acceptedByAccountId?: string | null;\n /** Date the invite was created. */\n dateCreated?: Date | null;\n /** Role IDs included in the invite. */\n policyIds?: string[];\n /** Date the invite was last updated. */\n dateUpdated?: Date | null;\n /** Assets the users are invited to join. */\n assignments?: InviteResourceAssignment[];\n /** Invite expiration date. */\n expirationDate?: Date | null;\n}\n\n/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */\nexport enum InviteStatus {\n Pending = 'Pending',\n Used = 'Used',\n Deleted = 'Deleted',\n Declined = 'Declined',\n Expired = 'Expired',\n}\n\n/** @enumType */\nexport type InviteStatusWithLiterals =\n | InviteStatus\n | 'Pending'\n | 'Used'\n | 'Deleted'\n | 'Declined'\n | 'Expired';\n\nexport interface InviteResourceAssignment {\n /** Role ID. */\n policyId?: string;\n /** Resources the user will be able to access. */\n assignments?: InviteAssignment[];\n}\n\nexport interface InviteAssignment {\n /** Full name of resource to be assigned. */\n fullNameResource?: FullNameResource;\n}\n\nexport interface FullNameResource extends FullNameResourceResourceContextOneOf {\n /** Specific site details. */\n siteContext?: SiteResourceContext;\n /** Specific account details. */\n accountContext?: AccountResourceContext;\n}\n\n/** @oneof */\nexport interface FullNameResourceResourceContextOneOf {\n /** Specific site details. */\n siteContext?: SiteResourceContext;\n /** Specific account details. */\n accountContext?: AccountResourceContext;\n}\n\n/** Site resource context. It indicates that the resource is under a site (can be the site itself or some asset of a site, like a blog post) */\nexport interface SiteResourceContext {\n /** Site ID. */\n metasiteId?: string;\n}\n\n/** Account resource contexts. It indicates that the resource is under the account (can be the account itself or some asset of an account, like a logo or a domain) */\nexport interface AccountResourceContext {\n /** Account ID. */\n accountId?: string;\n}\n\nexport interface OrganizationResourceContext {}\n\n/**\n * A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom.\n * For example: payment method, blog post, domain, logo.\n */\nexport interface Resource {\n /** The resource id. */\n _id?: string | null;\n /** The resource type */\n type?: string | null;\n}\n\nexport interface PolicyCondition {\n /** The type of the condition */\n condition?: ConditionType;\n}\n\nexport interface ConditionType extends ConditionTypeOfOneOf {\n /** @deprecated */\n simpleCondition?: SimpleCondition;\n /** A logic combination between several conditions, with an operator between them */\n joinedConditions?: JoinedCondition;\n /** @deprecated */\n environmentCondition?: EnvironmentCondition;\n /** A single condition */\n condition?: Condition;\n}\n\n/** @oneof */\nexport interface ConditionTypeOfOneOf {\n /** @deprecated */\n simpleCondition?: SimpleCondition;\n /** A logic combination between several conditions, with an operator between them */\n joinedConditions?: JoinedCondition;\n /** @deprecated */\n environmentCondition?: EnvironmentCondition;\n /** A single condition */\n condition?: Condition;\n}\n\nexport interface SimpleCondition {\n attrName?: string;\n value?: SimpleConditionValue;\n op?: SimpleConditionOperatorWithLiterals;\n conditionModelId?: string;\n}\n\nexport interface SimpleConditionValue extends SimpleConditionValueValueOneOf {\n attrName?: string;\n stringValue?: string;\n boolValue?: boolean;\n}\n\n/** @oneof */\nexport interface SimpleConditionValueValueOneOf {\n attrName?: string;\n stringValue?: string;\n boolValue?: boolean;\n}\n\nexport enum SimpleConditionOperator {\n UNKNOWN_SIMPLE_OP = 'UNKNOWN_SIMPLE_OP',\n EQUAL = 'EQUAL',\n}\n\n/** @enumType */\nexport type SimpleConditionOperatorWithLiterals =\n | SimpleConditionOperator\n | 'UNKNOWN_SIMPLE_OP'\n | 'EQUAL';\n\nexport interface JoinedCondition {\n /** The operator that should be used when evaluating the condition */\n op?: JoinedConditionOperatorWithLiterals;\n /** The conditions that should be evaluated, and then joined using the operator provided */\n conditions?: ConditionType[];\n}\n\nexport enum JoinedConditionOperator {\n UNKNOWN_JOIN_OP = 'UNKNOWN_JOIN_OP',\n OR = 'OR',\n AND = 'AND',\n}\n\n/** @enumType */\nexport type JoinedConditionOperatorWithLiterals =\n | JoinedConditionOperator\n | 'UNKNOWN_JOIN_OP'\n | 'OR'\n | 'AND';\n\nexport interface EnvironmentCondition\n extends EnvironmentConditionConditionOneOf {\n experimentCondition?: ExperimentCondition;\n}\n\n/** @oneof */\nexport interface EnvironmentConditionConditionOneOf {\n experimentCondition?: ExperimentCondition;\n}\n\nexport interface ExperimentCondition {\n spec?: string;\n fallbackValue?: string;\n expectedValue?: string;\n}\n\nexport interface Condition {\n /** The unique identifier of the condition model. Indicates which actions the condition is working on */\n conditionModelId?: string;\n /** The operator that should be evaluated */\n operator?: ConditionOperator;\n}\n\nexport interface ConditionOperator extends ConditionOperatorOperatorsOneOf {\n /** Comparison of equality - will be evaluated to true if the given parties are equal */\n equals?: EqualOperator;\n /** Regex operator - will be evaluated to true if the given value matches the provided regex */\n like?: LikeOperator;\n /** Petri experiment - will be evaluated using petri. */\n experiment?: ExperimentOperator;\n /** Operator that indicates a dependency on another subject being allowed to perform something. */\n dependOn?: DependOnOperator;\n}\n\n/** @oneof */\nexport interface ConditionOperatorOperatorsOneOf {\n /** Comparison of equality - will be evaluated to true if the given parties are equal */\n equals?: EqualOperator;\n /** Regex operator - will be evaluated to true if the given value matches the provided regex */\n like?: LikeOperator;\n /** Petri experiment - will be evaluated using petri. */\n experiment?: ExperimentOperator;\n /** Operator that indicates a dependency on another subject being allowed to perform something. */\n dependOn?: DependOnOperator;\n}\n\nexport interface EqualOperator {\n /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */\n attrName?: string;\n /** The value to compare to. If the two parties are equal - we will return true. */\n value?: ConditionValue;\n}\n\nexport interface ConditionValue extends ConditionValueValueOneOf {\n /** 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. */\n attrName?: string;\n /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */\n stringValue?: string;\n /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */\n boolValue?: boolean;\n}\n\n/** @oneof */\nexport interface ConditionValueValueOneOf {\n /** 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. */\n attrName?: string;\n /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */\n stringValue?: string;\n /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */\n boolValue?: boolean;\n}\n\nexport interface LikeOperator {\n /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */\n attrName?: string;\n /** 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 */\n values?: string[];\n}\n\nexport interface ExperimentOperator {\n /** The spec to conduct the experiment on. */\n spec?: string;\n /** The value to use if the experiment could not be conducted */\n fallbackValue?: string;\n /** The expected value of the experiment conduction. If it matches the actual value - true will be returned. Otherwise - false. */\n expectedValue?: string;\n}\n\n/** Implies that the policy takes affect only if the depend on subject is permitted as well. */\nexport interface DependOnOperator {\n /** 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 */\n dependOnSubject?: Subject;\n}\n\nexport interface AccountInfo {\n accountName?: string;\n accountImage?: string;\n isTeam?: boolean;\n}\n\nexport interface ApiPolicy {\n _id?: string;\n description?: string | null;\n name?: string | null;\n isCustom?: boolean;\n scopes?: string[];\n}\n\nexport interface PredefinedRoles {\n roles?: PredefinedRole[];\n}\n\nexport interface PredefinedRole {\n titleKey?: string;\n roles?: Role[];\n title?: string | null;\n areaId?: string;\n}\n\nexport interface Role {\n _id?: string;\n deprecatedKey?: string;\n /** @deprecated */\n titleKey?: string;\n /** @deprecated */\n descriptionKey?: string;\n deprecated?: boolean;\n restrictFromLevel?: string;\n experiments?: string[];\n appDefIds?: string[];\n title?: string | null;\n description?: string | null;\n isCustom?: boolean;\n scopes?: string[];\n availableResourceTypes?: ResourceTypeWithLiterals[];\n availableConditions?: ConditionAttributeTypeWithLiterals[];\n limitToEditorTypes?: string[];\n}\n\nexport interface ChangeRoleRequest {\n /** User ID. */\n _id?: string;\n /**\n * Deprecated. Use `policyIds`.\n * @deprecated\n */\n role?: string;\n /** Role IDs to be assigned. */\n policyIds?: string[];\n}\n\nexport interface ChangeRoleResponse {}\n\nexport interface RemoveMemberRequest {\n /** User ID of the team member to remove. */\n userId: string;\n}\n\nexport interface RemoveMemberResponse {}\n\nexport interface GetUsersRequest {\n /** The number of items to load */\n limit?: number | null;\n /** number of items to skip in the current sort order */\n offset?: number | null;\n}\n\nexport interface GetUsersResponse {\n users?: User[];\n}\n\nexport interface GetScopesRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n}\n\nexport interface GetScopesResponse {\n scopeAreas?: ScopeArea[];\n}\n\nexport interface ScopeArea {\n title?: string;\n appDefIds?: string[];\n scopes?: PermissionScope[];\n restrictFromLevel?: ScopeLevelWithLiterals;\n}\n\nexport interface PermissionScope {\n _id?: string;\n title?: string;\n description?: string;\n level?: ScopeLevelWithLiterals;\n experiments?: string[];\n dependantScopes?: string[];\n restrictFromLevel?: ScopeLevelWithLiterals;\n deprecated?: boolean | null;\n /** The visibility of the scope for the caller */\n visibility?: VisibilityWithLiterals;\n /**\n * @maxSize 20\n * @format GUID\n */\n appDefIds?: string[];\n}\n\nexport enum ScopeLevel {\n None = 'None',\n SITE = 'SITE',\n ACCOUNT = 'ACCOUNT',\n}\n\n/** @enumType */\nexport type ScopeLevelWithLiterals = ScopeLevel | 'None' | 'SITE' | 'ACCOUNT';\n\nexport enum Visibility {\n /** The scope should be visible to the caller */\n VISIBLE = 'VISIBLE',\n /** The scope shouldn't be visible for the caller, because the capability that blocks it is turned on for the caller */\n BLOCKED_BY_CAPABILITY = 'BLOCKED_BY_CAPABILITY',\n}\n\n/** @enumType */\nexport type VisibilityWithLiterals =\n | Visibility\n | 'VISIBLE'\n | 'BLOCKED_BY_CAPABILITY';\n\nexport interface GetScopesV2Request {\n /**\n * The locale of the scope areas names and descriptions. Defaults to English\n * @format LANGUAGE\n */\n locale?: string | null;\n /** The host platform for filtering scope areas */\n host?: HostWithLiterals;\n}\n\n/** Host represents the different platforms where roles can be applied. */\nexport enum Host {\n /** Unspecified host. */\n INVALID_HOST = 'INVALID_HOST',\n /** Business Manager platform. */\n BUSINESS_MANAGER = 'BUSINESS_MANAGER',\n /** Channels platform. */\n CHANNELS = 'CHANNELS',\n /** Enterprise platform. */\n ENTERPRISE = 'ENTERPRISE',\n /** Studio platform. */\n STUDIO_HOST = 'STUDIO_HOST',\n /** Dev Center platform. */\n DEV_CENTER = 'DEV_CENTER',\n}\n\n/** @enumType */\nexport type HostWithLiterals =\n | Host\n | 'INVALID_HOST'\n | 'BUSINESS_MANAGER'\n | 'CHANNELS'\n | 'ENTERPRISE'\n | 'STUDIO_HOST'\n | 'DEV_CENTER';\n\nexport interface GetScopesV2Response {\n /**\n * The filtered scope areas\n * @maxSize 100\n */\n scopeAreas?: ScopeAreaV2[];\n}\n\nexport interface ScopeAreaV2 {\n /**\n * The title of the scope area\n * @maxLength 500\n */\n title?: string;\n /**\n * The permission scopes within this area\n * @maxSize 100\n */\n scopes?: PermissionScopeV2[];\n}\n\nexport interface PermissionScopeV2 {\n /**\n * The unique identifier for the permission scope\n * @maxLength 500\n */\n _id?: string;\n /**\n * The display title of the permission scope\n * @maxLength 500\n */\n title?: string;\n /**\n * A description of what this permission scope allows\n * @maxLength 1000\n */\n description?: string;\n /**\n * List of scope IDs that this scope depends on\n * @maxSize 500\n * @maxLength 100\n */\n dependantScopes?: string[];\n}\n\nexport interface GetPeopleRequest {\n resource?: PeopleResource;\n peopleType?: PeopleTypeWithLiterals;\n paging?: Paging;\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n}\n\nexport interface PeopleResource extends PeopleResourceResourceTypeOneOf {\n site?: string;\n folder?: FolderResource;\n}\n\n/** @oneof */\nexport interface PeopleResourceResourceTypeOneOf {\n site?: string;\n folder?: FolderResource;\n}\n\nexport interface FolderResource {\n folderId?: string;\n folderFullPath?: string;\n}\n\nexport enum PeopleType {\n UNDEF_PEOPLE_TYPE = 'UNDEF_PEOPLE_TYPE',\n CONTRIBUTOR = 'CONTRIBUTOR',\n TEAM_MEMBER = 'TEAM_MEMBER',\n}\n\n/** @enumType */\nexport type PeopleTypeWithLiterals =\n | PeopleType\n | 'UNDEF_PEOPLE_TYPE'\n | 'CONTRIBUTOR'\n | 'TEAM_MEMBER';\n\nexport interface GetPeopleResponse {\n people?: People;\n}\n\nexport interface People {\n people?: Person[];\n totalPeople?: number;\n}\n\nexport interface Person extends PersonPersonOneOf {\n contributor?: Contributor;\n teamMember?: TeamMember;\n}\n\n/** @oneof */\nexport interface PersonPersonOneOf {\n contributor?: Contributor;\n teamMember?: TeamMember;\n}\n\nexport interface Contributor {\n /** Contributor's metadata. */\n metaData?: PersonMetaData;\n /** Whether the contributor account is a team account. */\n isTeam?: boolean | null;\n /** Date that the contributor joined the site. */\n joinedAt?: Date | null;\n /** Email address that received the invite. */\n invitedEmail?: string | null;\n /** Whether the contributor account is a client account. */\n isClient?: boolean | null;\n /**\n * Contributor's user ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * A set of capability keys representing the actions that the caller is allowed\n * to perform on this specific contributor. This field is calculated based on the\n * identity of the request sender and may differ between callers.\n * @maxSize 20\n * @maxLength 20\n */\n callerCapabilities?: string[];\n}\n\nexport interface PersonMetaData {\n /** Contributor's account ID. */\n _id?: string;\n /** Contributor's full name. */\n fullName?: string | null;\n /** URL for contributor's profile image. */\n imageUrl?: string | null;\n /** Contributor's email address. */\n email?: string | null;\n /** Contributor's access to assets and their assigned role (`policy`) for that asset. */\n assignments?: Assignment[];\n}\n\nexport interface TeamMember {\n metaData?: PersonMetaData;\n}\n\nexport interface GetTeamV2Response {\n users?: User[];\n totalUsersInAccount?: string;\n}\n\nexport interface GetTeamInvitesRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n}\n\nexport interface GetTeamInvitesResponse {\n invites?: Invite[];\n}\n\nexport interface Invite {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * @format GUID\n * @readonly\n */\n accountId?: string;\n email?: string;\n status?: InviteStatusWithLiterals;\n acceptLink?: string;\n dateCreated?: Date | null;\n dateUpdated?: Date | null;\n assignments?: ApiInviteAssignment[];\n /** Invite expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ApiInviteAssignment {\n policy?: AssignedPolicy;\n restrictions?: Restriction;\n}\n\nexport interface GetPoliciesRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n /** Areas filter to include only roles from areas that pass this filter. When not provided, roles from all areas will be returned */\n areasFilter?: AreasFilter;\n /** Role level filter to include only roles that are not restricted from the requested resource level (site/account). When set to ALL, all levels are returned */\n roleLevel?: RoleLevelWithLiterals;\n}\n\nexport interface AreasFilter {\n /** A list of role area ids, to filter only roles belonging to these areas */\n areaIds?: string[];\n}\n\nexport enum RoleLevel {\n ALL = 'ALL',\n SITE_LEVEL = 'SITE_LEVEL',\n ACCOUNT_LEVEL = 'ACCOUNT_LEVEL',\n}\n\n/** @enumType */\nexport type RoleLevelWithLiterals =\n | RoleLevel\n | 'ALL'\n | 'SITE_LEVEL'\n | 'ACCOUNT_LEVEL';\n\nexport interface GetPoliciesResponse {\n policies?: PredefinedRoles;\n}\n\nexport interface SearchTeamRequest {\n /** Free text to search for within team member name and email address fields. */\n query?: string | null;\n /** Sort data. */\n orderBy?: Ordering[];\n /**\n * Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * A list of facets to return in the response. Facets count the items within logical groupings.\n * See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.\n */\n facets?: FacetTypeWithLiterals[];\n /** Pagination. */\n paging?: Paging;\n}\n\nexport interface Ordering {\n /** Field to sort by. */\n fieldName?: OrderFieldWithLiterals;\n /** Sort order. */\n direction?: DirectionWithLiterals;\n}\n\nexport enum OrderField {\n /** For internal use. */\n Undefined = 'Undefined',\n /** Team member name. */\n Name = 'Name',\n /** Date team member joined the account. */\n JoinedAt = 'JoinedAt',\n}\n\n/** @enumType */\nexport type OrderFieldWithLiterals =\n | OrderField\n | 'Undefined'\n | 'Name'\n | 'JoinedAt';\n\nexport enum Direction {\n /** For internal use. */\n UninitializedDirection = 'UninitializedDirection',\n /** Ascending. */\n ASC = 'ASC',\n /** Descending. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals =\n | Direction\n | 'UninitializedDirection'\n | 'ASC'\n | 'DESC';\n\nexport enum FacetType {\n Undefined = 'Undefined',\n /** How many team members with each role */\n Roles = 'Roles',\n /** How many team members by invite status */\n InviteStatus = 'InviteStatus',\n /** How many team members in total in the account */\n Users = 'Users',\n}\n\n/** @enumType */\nexport type FacetTypeWithLiterals =\n | FacetType\n | 'Undefined'\n | 'Roles'\n | 'InviteStatus'\n | 'Users';\n\nexport interface SearchTeamResponse {\n /** List of facets, as requested. */\n facets?: Facet[];\n /** Existing team members and invites sent to join the account. */\n teamMembers?: TeamMemberV3[];\n}\n\nexport interface Facet {\n /** Facet type. */\n facetType?: FacetTypeWithLiterals;\n /** Values and their counters. Values with count = 0 are not returned. */\n values?: FacetValue[];\n}\n\nexport interface FacetValue {\n /** Supported values: `Roles`, `InviteStatus`, `Users`. */\n value?: string;\n /** Number of existing items for the value. */\n count?: number;\n}\n\nexport interface TeamMemberV3 extends TeamMemberV3MembersOneOf {\n /** Existing team member data. */\n user?: UserV3;\n /** Invited team member data. */\n invite?: InviteV3;\n}\n\n/** @oneof */\nexport interface TeamMemberV3MembersOneOf {\n /** Existing team member data. */\n user?: UserV3;\n /** Invited team member data. */\n invite?: InviteV3;\n}\n\nexport interface UserV3 {\n /** User ID. */\n _id?: string;\n /**\n * User's email address.\n * @format EMAIL\n */\n email?: string | null;\n /** User's name, when provided. */\n name?: Name;\n /** URL to user's profile image, when provided. */\n profileImage?: string | null;\n /** Date the user joined the team. */\n joinedTeamAt?: Date | null;\n /** Mapping of the user's access to an asset and their assigned role. */\n assignments?: AssignmentV3[];\n}\n\nexport interface AssignmentV3 {\n /** Role assigned to the user. To retrieve all available roles, call Get Roles Info. */\n policyId?: string | null;\n /**\n * Unique ID for this specific assignment.\n * @readonly\n */\n assignmentId?: string | null;\n /** The asset where a user is assigned access in an assignment. When empty, the role covers all assets, with no restrictions to specific sites or folders. */\n restrictions?: Restriction;\n /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */\n subject?: AssignedSubject;\n}\n\nexport interface AssignedSubject {\n /**\n * Identity ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /** Identity type. */\n subjectType?: SubjectTypeWithLiterals;\n}\n\nexport interface InviteV3 {\n /**\n * Invite ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Invitee's email address.\n * @format EMAIL\n */\n email?: string | null;\n /** Invite status. */\n status?: InviteStatusWithLiterals;\n /** URL of direct link to accept the invite. */\n acceptLink?: string | null;\n /** Date the invite was created. */\n dateCreated?: Date | null;\n /** Date the invite was last updated. */\n dateUpdated?: Date | null;\n /** A list of assignments that will be applied to the invitees when they accept the invite. */\n assignments?: InviteAssignmentV3[];\n /** Invite expiration date. */\n expirationDate?: Date | null;\n}\n\nexport interface InviteAssignmentV3 {\n /** Role ID that will be assigned once the invite is accepted. */\n policyId?: string | null;\n /** Assets where the user will be assigned access. When empty, the role covers all assets, with no restrictions to specific sites or folders. */\n restrictions?: Restriction;\n}\n\nexport interface GetRolesRequest {\n /** The locale of the predefined roles names and descriptions. Defaults to English */\n locale?: string | null;\n}\n\nexport interface GetRolesResponse {\n /** The predefined roles (by areas) */\n predefinedRolesAreas?: PredefinedRolesArea[];\n /** The custom roles */\n customRoles?: CustomRole[];\n}\n\nexport interface PredefinedRolesArea {\n /** The id of the area (e.g \"Blog\") */\n areaId?: string;\n /** The translated area title, according to the request locale, or the original title if translation failed */\n title?: string;\n /** The predefined roles belonging to this area */\n roles?: PredefinedRoleV2[];\n}\n\nexport interface PredefinedRoleV2 {\n /** The policy id of this role */\n _id?: string;\n /** The title of this role, translated according to the request locale, or the original title if translation failed */\n title?: string;\n /** The description of this role, translated according to the request locale, or the original description if translation failed */\n description?: string;\n /** The permission-scopes this role's policy contains */\n scopes?: string[];\n /** Indicates if the role is deprecated (shouldn't be granted, and only exists for backward compatability) */\n deprecated?: boolean;\n /** Indicates if this role should be restricted from assignments of a specific resource type (if RoleLevelRestriction = None, there is no restriction) */\n restrictFromLevel?: RoleLevelRestrictionWithLiterals;\n /** Experiments that should be open for this role to be visible */\n experiments?: string[];\n /** Applications that should be installed for this role to be visible */\n appDefIds?: string[];\n /** Editor types this role should be limited to (if empty, available in all editors) */\n limitToEditorTypes?: EditorTypeWithLiterals[];\n /** The visibility of the role */\n visibility?: RoleVisibilityWithLiterals;\n}\n\nexport enum RoleLevelRestriction {\n NoRestriction = 'NoRestriction',\n Site = 'Site',\n Account = 'Account',\n}\n\n/** @enumType */\nexport type RoleLevelRestrictionWithLiterals =\n | RoleLevelRestriction\n | 'NoRestriction'\n | 'Site'\n | 'Account';\n\nexport enum EditorType {\n UNINITIALIZED = 'UNINITIALIZED',\n EDITORX = 'EDITORX',\n BLOCKS = 'BLOCKS',\n STUDIO = 'STUDIO',\n}\n\n/** @enumType */\nexport type EditorTypeWithLiterals =\n | EditorType\n | 'UNINITIALIZED'\n | 'EDITORX'\n | 'BLOCKS'\n | 'STUDIO';\n\nexport enum RoleVisibility {\n /** the role should be visible to the caller */\n Visible = 'Visible',\n /** the role should be disabled for the caller, because it contains permissions the caller wasn't granted on the call context (site/account) */\n Disabled_Dependency = 'Disabled_Dependency',\n /** the role should be disabled for the caller, because the role's capability is disabled for the caller */\n Disabled_Capability = 'Disabled_Capability',\n}\n\n/** @enumType */\nexport type RoleVisibilityWithLiterals =\n | RoleVisibility\n | 'Visible'\n | 'Disabled_Dependency'\n | 'Disabled_Capability';\n\nexport interface CustomRole {\n /** The policy this role grants */\n policy?: ApiPolicy;\n /** The visibility of the role */\n visibility?: RoleVisibilityWithLiterals;\n /** Whether this role is assigned to a subject */\n assigned?: boolean | null;\n}\n\nexport interface GetRolesInfoRequest {\n /** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */\n locale?: string | null;\n /** Roles to return. */\n filter?: RolesInfoFilter;\n}\n\nexport interface RolesInfoFilter {\n /** Role level to return. Default: ALL. */\n roleLevel?: RoleLevelWithLiterals;\n /** Filter for editor-specific roles. Default: ALL. */\n editorTypes?: EditorTypeWithLiterals[];\n}\n\nexport interface GetRolesInfoResponse {\n /** Predefined roles. */\n predefinedRoles?: RoleInfo[];\n /** Custom roles. */\n customRoles?: RoleInfo[];\n}\n\nexport interface RoleInfo {\n /** Role ID. */\n _id?: string;\n /** Role title, translated according to the request locale. If translation fails, the original title is returned. */\n title?: string;\n /** Role description, translated according to the request locale. If translation fails, the original description is returned. */\n description?: string;\n /** Whether this role is restricted from accessing a specific resource type. Default: `NoRestriction`. */\n restrictFromLevel?: RoleLevelRestrictionWithLiterals;\n}\n\nexport interface CreateCustomRoleRequest {\n /** The custom role to create */\n role?: Policy;\n}\n\nexport interface Policy {\n /** @readonly */\n _id?: string | null;\n /** @maxLength 50 */\n name?: string | null;\n /** @maxLength 500 */\n description?: string | null;\n /** @readonly */\n status?: string;\n policyType?: PolicyTypeWithLiterals;\n statements?: PolicyStatement[];\n}\n\nexport enum PolicyType {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n PREDEFINED = 'PREDEFINED',\n CUSTOM = 'CUSTOM',\n INLINE_CUSTOM = 'INLINE_CUSTOM',\n}\n\n/** @enumType */\nexport type PolicyTypeWithLiterals =\n | PolicyType\n | 'UNKNOWN_STATUS'\n | 'PREDEFINED'\n | 'CUSTOM'\n | 'INLINE_CUSTOM';\n\nexport interface PolicyStatement {\n /** @readonly */\n _id?: string | null;\n permissions?: string[];\n scopes?: string[];\n effect?: EffectWithLiterals;\n condition?: PolicyCondition;\n}\n\nexport enum Effect {\n UNKNOWN_EFFECT = 'UNKNOWN_EFFECT',\n ALLOW = 'ALLOW',\n DENY = 'DENY',\n}\n\n/** @enumType */\nexport type EffectWithLiterals = Effect | 'UNKNOWN_EFFECT' | 'ALLOW' | 'DENY';\n\nexport interface CreateCustomRoleResponse {\n /** The newly created custom role */\n roleCreated?: Policy;\n}\n\nexport interface ChangeRoleV2Request {\n /**\n * ID of team member being affected.\n * @format GUID\n */\n userId: string;\n /** New assignments, including roles, to apply to the team member in this account. To retrieve all available roles, call Get Roles Info. */\n roles: AssignmentV3[];\n /** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */\n assignmentIdsToReplace: string[];\n}\n\nexport interface ChangeRoleV2Response {\n /** New roles assigned to the given team member. */\n roles?: AssignmentV3[];\n}\n\nexport interface UpdateTeamMemberAssignmentsRequest {\n /**\n * ID of team member being affected.\n * @format GUID\n */\n userId: string;\n /**\n * New assignments to apply to the team member in this account.\n * @maxSize 50\n */\n newAssignments: AssignmentV3[];\n /**\n * Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team.\n * @format GUID\n * @maxSize 50\n */\n assignmentIdsToRemove: string[];\n}\n\nexport interface UpdateTeamMemberAssignmentsResponse {\n /** The new assignments, assigned to the given team member. */\n assignments?: AssignmentV3[];\n}\n\nexport interface GetSubjectsAssignmentsRequest {\n /** The locale of the request. Defaults to en */\n locale?: string | null;\n /** list of subjects */\n subjects?: Subject[];\n}\n\nexport interface GetSubjectsAssignmentsResponse {\n /** list of subjects with assignments */\n subjectsAssignments?: SubjectAssignments[];\n}\n\nexport interface SubjectAssignments {\n subject?: Subject;\n assignments?: Assignment[];\n}\n\nexport interface GetScopesByRoleRequest {\n /**\n * The role ID to filter scope areas by\n * @maxLength 50\n */\n roleId?: string;\n /**\n * The locale of the scope. Defaults to English\n * @format LANGUAGE\n */\n locale?: string | null;\n}\n\nexport interface GetScopesByRoleResponse {\n /**\n * The scopes included in this role\n * @maxSize 100\n */\n scopes?: PermissionScopeV2[];\n}\n\nexport interface GetRolesV2Request {\n /**\n * The locale of the predefined roles names and descriptions. Defaults to English\n * @format LANGUAGE\n */\n locale?: string | null;\n /** The host platform to filter roles for */\n host?: HostWithLiterals;\n}\n\nexport interface GetRolesV2Response {\n /** The predefined roles (by areas) with simplified structure */\n predefinedRolesAreas?: PredefinedRolesAreaV2[];\n /** The custom roles with simplified structure */\n customRoles?: CustomRoleV2[];\n}\n\nexport interface PredefinedRolesAreaV2 {\n /**\n * Area ID\n * @maxLength 50\n */\n areaId?: string;\n /**\n * Area title\n * @maxLength 50\n */\n title?: string;\n /**\n * Roles in this area\n * @maxSize 100\n */\n roles?: RoleInfoV2[];\n /**\n * Host platforms this area applies to\n * @maxSize 10\n * @maxLength 50\n */\n hosts?: string[];\n}\n\nexport interface RoleInfoV2 {\n /**\n * Role ID\n * @maxLength 50\n */\n _id?: string;\n /**\n * Role title\n * @maxLength 500\n */\n title?: string;\n /**\n * Role description\n * @maxLength 1000\n */\n description?: string;\n /**\n * List of dependent role IDs\n * @maxSize 50\n * @maxLength 50\n */\n dependentRoles?: string[];\n}\n\nexport interface CustomRoleV2 {\n /**\n * Role ID\n * @maxLength 50\n */\n _id?: string;\n /**\n * Role title\n * @maxLength 500\n */\n title?: string;\n /**\n * Role description\n * @maxLength 1000\n */\n description?: string;\n /**\n * List of permission scopes\n * @maxSize 100\n * @maxLength 100\n */\n scopes?: string[];\n /** Whether this role is assigned to the current user */\n assigned?: boolean;\n}\n\n/**\n * Removes a team member from the requesting account.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param userId - User ID of the team member to remove.\n * @public\n * @requiredField userId\n * @permissionId team.delete-member\n * @fqn com.wixpress.roles.management.api.RolesManagementService.RemoveMember\n */\nexport async function removeMember(userId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ userId: userId });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.removeMember(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { userId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['userId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves all team members of the requesting account, based on the provided filters and free text queries.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @public\n * @param options - Filter options.\n * @fqn com.wixpress.roles.management.api.RolesManagementService.SearchTeam\n */\nexport async function searchTeam(\n options?: SearchTeamOptions\n): Promise<\n NonNullablePaths<\n SearchTeamResponse,\n | `facets`\n | `facets.${number}.facetType`\n | `teamMembers`\n | `teamMembers.${number}.user._id`\n | `teamMembers.${number}.user.name.firstName`\n | `teamMembers.${number}.user.name.lastName`\n | `teamMembers.${number}.invite._id`\n | `teamMembers.${number}.invite.status`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: options?.query,\n orderBy: options?.orderBy,\n filter: options?.filter,\n facets: options?.facets,\n paging: options?.paging,\n });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.searchTeam(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n query: '$[0].query',\n orderBy: '$[0].orderBy',\n filter: '$[0].filter',\n facets: '$[0].facets',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchTeamOptions {\n /** Free text to search for within team member name and email address fields. */\n query?: string | null;\n /** Sort data. */\n orderBy?: Ordering[];\n /**\n * Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * A list of facets to return in the response. Facets count the items within logical groupings.\n * See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.\n */\n facets?: FacetTypeWithLiterals[];\n /** Pagination. */\n paging?: Paging;\n}\n\n/**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @public\n * @param options - Filter options.\n * @permissionId ACCOUNT_ROLES.GET_ROLES\n * @fqn com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo\n */\nexport async function getRolesInfo(\n options?: GetRolesInfoOptions\n): Promise<\n NonNullablePaths<\n GetRolesInfoResponse,\n | `predefinedRoles`\n | `predefinedRoles.${number}._id`\n | `predefinedRoles.${number}.title`\n | `predefinedRoles.${number}.description`\n | `predefinedRoles.${number}.restrictFromLevel`\n | `customRoles`\n | `customRoles.${number}._id`\n | `customRoles.${number}.title`\n | `customRoles.${number}.description`\n | `customRoles.${number}.restrictFromLevel`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n locale: options?.locale,\n filter: options?.filter,\n });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.getRolesInfo(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n locale: '$[0].locale',\n filter: '$[0].filter',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetRolesInfoOptions {\n /** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */\n locale?: string | null;\n /** Roles to return. */\n filter?: RolesInfoFilter;\n}\n\n/**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param userId - ID of team member being affected.\n * @internal\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.assignmentIdsToReplace\n * @requiredField options.roles\n * @requiredField userId\n * @permissionId team.manage-team-member-roles\n * @fqn com.wixpress.roles.management.api.RolesManagementService.ChangeRoleV2\n */\nexport async function changeRoleV2(\n userId: string,\n options: NonNullablePaths<\n ChangeRoleV2Options,\n `assignmentIdsToReplace` | `roles`,\n 2\n >\n): Promise<\n NonNullablePaths<\n ChangeRoleV2Response,\n | `roles`\n | `roles.${number}.restrictions.resource.resourceType`\n | `roles.${number}.restrictions.resource._id`\n | `roles.${number}.restrictions.site._id`\n | `roles.${number}.subject._id`\n | `roles.${number}.subject.subjectType`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n userId: userId,\n roles: options?.roles,\n assignmentIdsToReplace: options?.assignmentIdsToReplace,\n });\n\n const reqOpts = ambassadorWixIdentityRolesV1User.changeRoleV2(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n userId: '$[0]',\n roles: '$[1].roles',\n assignmentIdsToReplace: '$[1].assignmentIdsToReplace',\n },\n singleArgumentUnchanged: false,\n },\n ['userId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChangeRoleV2Options {\n /** New assignments, including roles, to apply to the team member in this account. To retrieve all available roles, call Get Roles Info. */\n roles: AssignmentV3[];\n /** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */\n assignmentIdsToReplace: string[];\n}\n\n/**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param userId - ID of team member being affected.\n * @public\n * @requiredField options\n * @requiredField options.assignmentIdsToRemove\n * @requiredField options.newAssignments\n * @requiredField userId\n * @param options - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.\n * @permissionId team.manage-team-member-roles\n * @fqn com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments\n */\nexport async function updateTeamMemberAssignments(\n userId: string,\n options: NonNullablePaths<\n UpdateTeamMemberAssignmentsOptions,\n `assignmentIdsToRemove` | `newAssignments`,\n 2\n >\n): Promise<\n NonNullablePaths<\n UpdateTeamMemberAssignmentsResponse,\n | `assignments`\n | `assignments.${number}.restrictions.resource.resourceType`\n | `assignments.${number}.restrictions.resource._id`\n | `assignments.${number}.restrictions.site._id`\n | `assignments.${number}.subject._id`\n | `assignments.${number}.subject.subjectType`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n userId: userId,\n newAssignments: options?.newAssignments,\n assignmentIdsToRemove: options?.assignmentIdsToRemove,\n });\n\n const reqOpts =\n ambassadorWixIdentityRolesV1User.updateTeamMemberAssignments(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n userId: '$[0]',\n newAssignments: '$[1].newAssignments',\n assignmentIdsToRemove: '$[1].assignmentIdsToRemove',\n },\n singleArgumentUnchanged: false,\n },\n ['userId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateTeamMemberAssignmentsOptions {\n /**\n * New assignments to apply to the team member in this account.\n * @maxSize 50\n */\n newAssignments: AssignmentV3[];\n /**\n * Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team.\n * @format GUID\n * @maxSize 50\n */\n assignmentIdsToRemove: string[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRolesManagementApiRolesManagementServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/app/accept',\n destPath: '/app/accept',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/contributors',\n destPath: '/v2/contributors',\n },\n {\n srcPath: '/contributor/change/role',\n destPath: '/contributor/change/role',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/roles-management',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management/roles',\n destPath: '/roles',\n },\n {\n srcPath: '/roles-management/team',\n destPath: '/team',\n },\n {\n srcPath: '/roles-management/v3/team',\n destPath: '/v3/team',\n },\n {\n srcPath: '/roles-management/v2/team',\n destPath: '/v2/team',\n },\n {\n srcPath: '/roles-management/contributor/change',\n destPath: '/contributor/change',\n },\n {\n srcPath: '/roles-management/v2/contributors',\n destPath: '/v2/contributors',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_user-management_users';\n\n/**\n * Removes a team member from the requesting account.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function removeMember(payload: object): RequestOptionsFactory<any> {\n function __removeMember({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.RemoveMember',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/team/remove',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __removeMember;\n}\n\n/**\n * Retrieves all team members of the requesting account, based on the provided filters and free text queries.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function searchTeam(payload: object): RequestOptionsFactory<any> {\n function __searchTeam({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.SearchTeam',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v3/team/search',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'teamMembers.user.joinedTeamAt' },\n { path: 'teamMembers.invite.dateCreated' },\n { path: 'teamMembers.invite.dateUpdated' },\n { path: 'teamMembers.invite.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchTeam;\n}\n\n/**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function getRolesInfo(payload: object): RequestOptionsFactory<any> {\n function __getRolesInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/roles',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getRolesInfo;\n}\n\n/**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function changeRoleV2(payload: object): RequestOptionsFactory<any> {\n function __changeRoleV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.ChangeRoleV2',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/roles',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeRoleV2;\n}\n\n/**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n */\nexport function updateTeamMemberAssignments(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateTeamMemberAssignments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/assignments',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateTeamMemberAssignments;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ChangeRoleV2Options,\n ChangeRoleV2Response,\n GetRolesInfoOptions,\n GetRolesInfoResponse,\n SearchTeamOptions,\n SearchTeamResponse,\n UpdateTeamMemberAssignmentsOptions,\n UpdateTeamMemberAssignmentsResponse,\n changeRoleV2 as universalChangeRoleV2,\n getRolesInfo as universalGetRolesInfo,\n removeMember as universalRemoveMember,\n searchTeam as universalSearchTeam,\n updateTeamMemberAssignments as universalUpdateTeamMemberAssignments,\n} from './identity-roles-v1-user-users.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/user-management' };\n\nexport function removeMember(httpClient: HttpClient): RemoveMemberSignature {\n return (userId: string) =>\n universalRemoveMember(\n userId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveMemberSignature {\n /**\n * Removes a team member from the requesting account.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - User ID of the team member to remove.\n */\n (userId: string): Promise<void>;\n}\n\nexport function searchTeam(httpClient: HttpClient): SearchTeamSignature {\n return (options?: SearchTeamOptions) =>\n universalSearchTeam(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchTeamSignature {\n /**\n * Retrieves all team members of the requesting account, based on the provided filters and free text queries.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - Filter options.\n */\n (options?: SearchTeamOptions): Promise<\n NonNullablePaths<\n SearchTeamResponse,\n | `facets`\n | `facets.${number}.facetType`\n | `teamMembers`\n | `teamMembers.${number}.user._id`\n | `teamMembers.${number}.user.name.firstName`\n | `teamMembers.${number}.user.name.lastName`\n | `teamMembers.${number}.invite._id`\n | `teamMembers.${number}.invite.status`,\n 6\n >\n >;\n}\n\nexport function getRolesInfo(httpClient: HttpClient): GetRolesInfoSignature {\n return (options?: GetRolesInfoOptions) =>\n universalGetRolesInfo(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetRolesInfoSignature {\n /**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - Filter options.\n */\n (options?: GetRolesInfoOptions): Promise<\n NonNullablePaths<\n GetRolesInfoResponse,\n | `predefinedRoles`\n | `predefinedRoles.${number}._id`\n | `predefinedRoles.${number}.title`\n | `predefinedRoles.${number}.description`\n | `predefinedRoles.${number}.restrictFromLevel`\n | `customRoles`\n | `customRoles.${number}._id`\n | `customRoles.${number}.title`\n | `customRoles.${number}.description`\n | `customRoles.${number}.restrictFromLevel`,\n 4\n >\n >;\n}\n\n/** @internal */\nexport function changeRoleV2(httpClient: HttpClient): ChangeRoleV2Signature {\n return (\n userId: string,\n options: NonNullablePaths<\n ChangeRoleV2Options,\n `assignmentIdsToReplace` | `roles`,\n 2\n >\n ) =>\n universalChangeRoleV2(\n userId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ChangeRoleV2Signature {\n /**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - ID of team member being affected.\n */\n (\n userId: string,\n options: NonNullablePaths<\n ChangeRoleV2Options,\n `assignmentIdsToReplace` | `roles`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n ChangeRoleV2Response,\n | `roles`\n | `roles.${number}.restrictions.resource.resourceType`\n | `roles.${number}.restrictions.resource._id`\n | `roles.${number}.restrictions.site._id`\n | `roles.${number}.subject._id`\n | `roles.${number}.subject.subjectType`,\n 6\n >\n >;\n}\n\nexport function updateTeamMemberAssignments(\n httpClient: HttpClient\n): UpdateTeamMemberAssignmentsSignature {\n return (\n userId: string,\n options: NonNullablePaths<\n UpdateTeamMemberAssignmentsOptions,\n `assignmentIdsToRemove` | `newAssignments`,\n 2\n >\n ) =>\n universalUpdateTeamMemberAssignments(\n userId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateTeamMemberAssignmentsSignature {\n /**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n * @param - ID of team member being affected.\n * @param - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.\n */\n (\n userId: string,\n options: NonNullablePaths<\n UpdateTeamMemberAssignmentsOptions,\n `assignmentIdsToRemove` | `newAssignments`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n UpdateTeamMemberAssignmentsResponse,\n | `assignments`\n | `assignments.${number}.restrictions.resource.resourceType`\n | `assignments.${number}.restrictions.resource._id`\n | `assignments.${number}.restrictions.site._id`\n | `assignments.${number}.subject._id`\n | `assignments.${number}.subject.subjectType`,\n 6\n >\n >;\n}\n\nexport {\n AccountInfo,\n AccountInvite,\n AccountResourceContext,\n ApiCondition,\n ApiInviteAssignment,\n ApiPolicy,\n ApiResource,\n AreasFilter,\n AssignedPolicy,\n AssignedSubject,\n Assignment,\n AssignmentV3,\n ChangeRoleRequest,\n ChangeRoleResponse,\n ChangeRoleV2Options,\n ChangeRoleV2Request,\n ChangeRoleV2Response,\n CompanionResource,\n Condition,\n ConditionAttributeType,\n ConditionOperator,\n ConditionOperatorOperatorsOneOf,\n ConditionType,\n ConditionTypeOfOneOf,\n ConditionValue,\n ConditionValueValueOneOf,\n Conditions,\n Contributor,\n CreateCustomRoleRequest,\n CreateCustomRoleResponse,\n CustomRole,\n CustomRoleV2,\n DependOnOperator,\n Direction,\n EditorType,\n Effect,\n EnvironmentCondition,\n EnvironmentConditionConditionOneOf,\n EqualOperator,\n ExperimentCondition,\n ExperimentOperator,\n Facet,\n FacetType,\n FacetValue,\n FolderResource,\n FullNameResource,\n FullNameResourceResourceContextOneOf,\n GetPeopleRequest,\n GetPeopleResponse,\n GetPoliciesRequest,\n GetPoliciesResponse,\n GetRolesInfoOptions,\n GetRolesInfoRequest,\n GetRolesInfoResponse,\n GetRolesRequest,\n GetRolesResponse,\n GetRolesV2Request,\n GetRolesV2Response,\n GetScopesByRoleRequest,\n GetScopesByRoleResponse,\n GetScopesRequest,\n GetScopesResponse,\n GetScopesV2Request,\n GetScopesV2Response,\n GetSubjectsAssignmentsRequest,\n GetSubjectsAssignmentsResponse,\n GetTeamInvitesRequest,\n GetTeamInvitesResponse,\n GetTeamRequest,\n GetTeamResponse,\n GetTeamV2Response,\n GetUsersRequest,\n GetUsersResponse,\n Host,\n Invite,\n InviteAssignment,\n InviteAssignmentV3,\n InviteResourceAssignment,\n InviteStatus,\n InviteV3,\n JoinedCondition,\n JoinedConditionOperator,\n LikeOperator,\n LocationsRestriction,\n Name,\n OrderField,\n Ordering,\n OrganizationResourceContext,\n Paging,\n People,\n PeopleResource,\n PeopleResourceResourceTypeOneOf,\n PeopleType,\n PermissionScope,\n PermissionScopeV2,\n Person,\n PersonMetaData,\n PersonPersonOneOf,\n Policy,\n PolicyCondition,\n PolicyStatement,\n PolicyType,\n PredefinedRole,\n PredefinedRoleV2,\n PredefinedRoles,\n PredefinedRolesArea,\n PredefinedRolesAreaV2,\n RemoveMemberRequest,\n RemoveMemberResponse,\n Resource,\n ResourceType,\n Restriction,\n RestrictionRestrictionsOneOf,\n Role,\n RoleInfo,\n RoleInfoV2,\n RoleLevel,\n RoleLevelRestriction,\n RoleVisibility,\n RolesInfoFilter,\n ScopeArea,\n ScopeAreaV2,\n ScopeLevel,\n SearchTeamOptions,\n SearchTeamRequest,\n SearchTeamResponse,\n SimpleCondition,\n SimpleConditionOperator,\n SimpleConditionValue,\n SimpleConditionValueValueOneOf,\n SiteResourceContext,\n SiteRestriction,\n Subject,\n SubjectAssignments,\n SubjectContext,\n SubjectContextType,\n SubjectType,\n TeamMember,\n TeamMemberV3,\n TeamMemberV3MembersOneOf,\n UpdateTeamMemberAssignmentsOptions,\n UpdateTeamMemberAssignmentsRequest,\n UpdateTeamMemberAssignmentsResponse,\n User,\n UserV3,\n Visibility,\n} from './identity-roles-v1-user-users.universal.js';\n","import {\n removeMember as publicRemoveMember,\n searchTeam as publicSearchTeam,\n getRolesInfo as publicGetRolesInfo,\n changeRoleV2 as publicChangeRoleV2,\n updateTeamMemberAssignments as publicUpdateTeamMemberAssignments,\n} from './identity-roles-v1-user-users.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const removeMember: MaybeContext<\n BuildRESTFunction<typeof publicRemoveMember> & typeof publicRemoveMember\n> = /*#__PURE__*/ createRESTModule(publicRemoveMember);\nexport const searchTeam: MaybeContext<\n BuildRESTFunction<typeof publicSearchTeam> & typeof publicSearchTeam\n> = /*#__PURE__*/ createRESTModule(publicSearchTeam);\nexport const getRolesInfo: MaybeContext<\n BuildRESTFunction<typeof publicGetRolesInfo> & typeof publicGetRolesInfo\n> = /*#__PURE__*/ createRESTModule(publicGetRolesInfo);\n/** @internal */\nexport const changeRoleV2: MaybeContext<\n BuildRESTFunction<typeof publicChangeRoleV2> & typeof publicChangeRoleV2\n> = /*#__PURE__*/ createRESTModule(publicChangeRoleV2);\nexport const updateTeamMemberAssignments: MaybeContext<\n BuildRESTFunction<typeof publicUpdateTeamMemberAssignments> &\n typeof publicUpdateTeamMemberAssignments\n> = /*#__PURE__*/ createRESTModule(publicUpdateTeamMemberAssignments);\n\nexport {\n ResourceType,\n ConditionAttributeType,\n SubjectType,\n SubjectContextType,\n InviteStatus,\n SimpleConditionOperator,\n JoinedConditionOperator,\n ScopeLevel,\n Visibility,\n Host,\n PeopleType,\n RoleLevel,\n OrderField,\n Direction,\n FacetType,\n RoleLevelRestriction,\n EditorType,\n RoleVisibility,\n PolicyType,\n Effect,\n} from './identity-roles-v1-user-users.universal.js';\nexport {\n User,\n Name,\n Assignment,\n AssignedPolicy,\n Restriction,\n RestrictionRestrictionsOneOf,\n ApiResource,\n Conditions,\n ApiCondition,\n SiteRestriction,\n CompanionResource,\n LocationsRestriction,\n Subject,\n SubjectContext,\n GetTeamRequest,\n Paging,\n GetTeamResponse,\n AccountInvite,\n InviteResourceAssignment,\n InviteAssignment,\n FullNameResource,\n FullNameResourceResourceContextOneOf,\n SiteResourceContext,\n AccountResourceContext,\n OrganizationResourceContext,\n Resource,\n PolicyCondition,\n ConditionType,\n ConditionTypeOfOneOf,\n SimpleCondition,\n SimpleConditionValue,\n SimpleConditionValueValueOneOf,\n JoinedCondition,\n EnvironmentCondition,\n EnvironmentConditionConditionOneOf,\n ExperimentCondition,\n Condition,\n ConditionOperator,\n ConditionOperatorOperatorsOneOf,\n EqualOperator,\n ConditionValue,\n ConditionValueValueOneOf,\n LikeOperator,\n ExperimentOperator,\n DependOnOperator,\n AccountInfo,\n ApiPolicy,\n PredefinedRoles,\n PredefinedRole,\n Role,\n ChangeRoleRequest,\n ChangeRoleResponse,\n RemoveMemberRequest,\n RemoveMemberResponse,\n GetUsersRequest,\n GetUsersResponse,\n GetScopesRequest,\n GetScopesResponse,\n ScopeArea,\n PermissionScope,\n GetScopesV2Request,\n GetScopesV2Response,\n ScopeAreaV2,\n PermissionScopeV2,\n GetPeopleRequest,\n PeopleResource,\n PeopleResourceResourceTypeOneOf,\n FolderResource,\n GetPeopleResponse,\n People,\n Person,\n PersonPersonOneOf,\n Contributor,\n PersonMetaData,\n TeamMember,\n GetTeamV2Response,\n GetTeamInvitesRequest,\n GetTeamInvitesResponse,\n Invite,\n ApiInviteAssignment,\n GetPoliciesRequest,\n AreasFilter,\n GetPoliciesResponse,\n SearchTeamRequest,\n Ordering,\n SearchTeamResponse,\n Facet,\n FacetValue,\n TeamMemberV3,\n TeamMemberV3MembersOneOf,\n UserV3,\n AssignmentV3,\n AssignedSubject,\n InviteV3,\n InviteAssignmentV3,\n GetRolesRequest,\n GetRolesResponse,\n PredefinedRolesArea,\n PredefinedRoleV2,\n CustomRole,\n GetRolesInfoRequest,\n RolesInfoFilter,\n GetRolesInfoResponse,\n RoleInfo,\n CreateCustomRoleRequest,\n Policy,\n PolicyStatement,\n CreateCustomRoleResponse,\n ChangeRoleV2Request,\n ChangeRoleV2Response,\n UpdateTeamMemberAssignmentsRequest,\n UpdateTeamMemberAssignmentsResponse,\n GetSubjectsAssignmentsRequest,\n GetSubjectsAssignmentsResponse,\n SubjectAssignments,\n GetScopesByRoleRequest,\n GetScopesByRoleResponse,\n GetRolesV2Request,\n GetRolesV2Response,\n PredefinedRolesAreaV2,\n RoleInfoV2,\n CustomRoleV2,\n SearchTeamOptions,\n GetRolesInfoOptions,\n ChangeRoleV2Options,\n UpdateTeamMemberAssignmentsOptions,\n} from './identity-roles-v1-user-users.universal.js';\nexport {\n ResourceTypeWithLiterals,\n ConditionAttributeTypeWithLiterals,\n SubjectTypeWithLiterals,\n SubjectContextTypeWithLiterals,\n InviteStatusWithLiterals,\n SimpleConditionOperatorWithLiterals,\n JoinedConditionOperatorWithLiterals,\n ScopeLevelWithLiterals,\n VisibilityWithLiterals,\n HostWithLiterals,\n PeopleTypeWithLiterals,\n RoleLevelWithLiterals,\n OrderFieldWithLiterals,\n DirectionWithLiterals,\n FacetTypeWithLiterals,\n RoleLevelRestrictionWithLiterals,\n EditorTypeWithLiterals,\n RoleVisibilityWithLiterals,\n PolicyTypeWithLiterals,\n EffectWithLiterals,\n} from './identity-roles-v1-user-users.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAAA;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,mCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,I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SAASC,6BACd,YACsC;AACtC,SAAO,CACL,QACA,YAMAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC5JA,IAAAC,uBAAiC;AAG1B,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,cAEK,2DAAiBA,WAAgB;AAC5C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAE9C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,+BAGK,2DAAiBA,4BAAiC;","names":["changeRoleV2","getRolesInfo","removeMember","searchTeam","updateTeamMemberAssignments","import_rest_modules","payload","ResourceType","ConditionAttributeType","SubjectType","SubjectContextType","InviteStatus","SimpleConditionOperator","JoinedConditionOperator","ScopeLevel","Visibility","Host","PeopleType","RoleLevel","OrderField","Direction","FacetType","RoleLevelRestriction","EditorType","RoleVisibility","PolicyType","Effect","removeMember","sdkTransformError","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments","removeMember","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments","import_rest_modules","removeMember","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments"]}
|
|
@@ -1238,7 +1238,7 @@ declare function removeMember(userId: string): Promise<void>;
|
|
|
1238
1238
|
* @param options - Filter options.
|
|
1239
1239
|
* @fqn com.wixpress.roles.management.api.RolesManagementService.SearchTeam
|
|
1240
1240
|
*/
|
|
1241
|
-
declare function searchTeam(options?: SearchTeamOptions): Promise<NonNullablePaths<SearchTeamResponse, `facets` | `facets.${number}.facetType` | `teamMembers` | `teamMembers.${number}.user._id` | `teamMembers.${number}.user.name.firstName` | `teamMembers.${number}.user.name.lastName` | `teamMembers.${number}.invite._id` | `teamMembers.${number}.invite.status
|
|
1241
|
+
declare function searchTeam(options?: SearchTeamOptions): Promise<NonNullablePaths<SearchTeamResponse, `facets` | `facets.${number}.facetType` | `teamMembers` | `teamMembers.${number}.user._id` | `teamMembers.${number}.user.name.firstName` | `teamMembers.${number}.user.name.lastName` | `teamMembers.${number}.invite._id` | `teamMembers.${number}.invite.status`, 6>>;
|
|
1242
1242
|
interface SearchTeamOptions {
|
|
1243
1243
|
/** Free text to search for within team member name and email address fields. */
|
|
1244
1244
|
query?: string | null;
|
|
@@ -1265,7 +1265,7 @@ interface SearchTeamOptions {
|
|
|
1265
1265
|
* @permissionId ACCOUNT_ROLES.GET_ROLES
|
|
1266
1266
|
* @fqn com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo
|
|
1267
1267
|
*/
|
|
1268
|
-
declare function getRolesInfo(options?: GetRolesInfoOptions): Promise<NonNullablePaths<GetRolesInfoResponse, `predefinedRoles` | `predefinedRoles.${number}._id` | `predefinedRoles.${number}.title` | `predefinedRoles.${number}.description` | `predefinedRoles.${number}.restrictFromLevel` | `customRoles` | `customRoles.${number}._id` | `customRoles.${number}.title` | `customRoles.${number}.description` | `customRoles.${number}.restrictFromLevel
|
|
1268
|
+
declare function getRolesInfo(options?: GetRolesInfoOptions): Promise<NonNullablePaths<GetRolesInfoResponse, `predefinedRoles` | `predefinedRoles.${number}._id` | `predefinedRoles.${number}.title` | `predefinedRoles.${number}.description` | `predefinedRoles.${number}.restrictFromLevel` | `customRoles` | `customRoles.${number}._id` | `customRoles.${number}.title` | `customRoles.${number}.description` | `customRoles.${number}.restrictFromLevel`, 4>>;
|
|
1269
1269
|
interface GetRolesInfoOptions {
|
|
1270
1270
|
/** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
|
|
1271
1271
|
locale?: string | null;
|
|
@@ -1291,7 +1291,7 @@ interface ChangeRoleV2Options {
|
|
|
1291
1291
|
* @permissionId team.manage-team-member-roles
|
|
1292
1292
|
* @fqn com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments
|
|
1293
1293
|
*/
|
|
1294
|
-
declare function updateTeamMemberAssignments(userId: string, options: NonNullablePaths<UpdateTeamMemberAssignmentsOptions, `assignmentIdsToRemove` | `newAssignments
|
|
1294
|
+
declare function updateTeamMemberAssignments(userId: string, options: NonNullablePaths<UpdateTeamMemberAssignmentsOptions, `assignmentIdsToRemove` | `newAssignments`, 2>): Promise<NonNullablePaths<UpdateTeamMemberAssignmentsResponse, `assignments` | `assignments.${number}.restrictions.resource.resourceType` | `assignments.${number}.restrictions.resource._id` | `assignments.${number}.restrictions.site._id` | `assignments.${number}.subject._id` | `assignments.${number}.subject.subjectType`, 6>>;
|
|
1295
1295
|
interface UpdateTeamMemberAssignmentsOptions {
|
|
1296
1296
|
/**
|
|
1297
1297
|
* New assignments to apply to the team member in this account.
|