{"version":3,"sources":["../../src/identity-roles-v1-user-users.http.ts","../../src/identity-roles-v1-user-users.types.ts","../../src/identity-roles-v1-user-users.meta.ts"],"sourcesContent":["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        srcPath: '/roles-management/contributor/remove',\n        destPath: '/contributor/remove',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/identity/contributor',\n        destPath: '/contributor',\n      },\n    ],\n    'vibe._base_domain_': [\n      {\n        srcPath: '/roles-management-web/v2/contributors',\n        destPath: '/v2/contributors',\n      },\n      {\n        srcPath: '/roles-management-web/myRoles',\n        destPath: '/roles-management-web/myRoles',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/identity/contributor',\n        destPath: '/contributor',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/roles-management-web',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/roles-management-web',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/roles-management-web',\n        destPath: '',\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      migrationOptions: {\n        optInTransformResponse: true,\n      },\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 a list of all team members of the requesting account with the specified filtering, sorting, and paging.\n *\n * > **Important**: This call requires an account level API key and can't be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) and\n * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\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      migrationOptions: {\n        optInTransformResponse: true,\n      },\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      migrationOptions: {\n        optInTransformResponse: true,\n      },\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      migrationOptions: {\n        optInTransformResponse: true,\n      },\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      migrationOptions: {\n        optInTransformResponse: true,\n      },\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","export 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  /** Business locations where the assignment restrictions apply. Get location IDs from the [Locations API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction). */\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  /** Business locations where the assignment restrictions apply. Get location IDs from the [Locations API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction). */\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 where the assignment restrictions apply.\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   * List of scope IDs that cannot be selected together with this scope\n   * @maxSize 500\n   * @maxLength 100\n   */\n  preventedScopes?: 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  /**\n   * Optional: The host platform for filtering scope areas. When not provided, returns scope areas for all platforms.\n   * Valid values: \"channels\", \"enterprise\", \"studio\", \"dev-center\", \"bm-vibe\", \"bm-headless\", \"bm-studio\", \"bm-classic\"\n   * @maxLength 50\n   */\n  host?: string | null;\n  /**\n   * Optional: Additional app definition IDs to treat as installed apps for filtering purposes\n   * @format GUID\n   * @maxSize 100\n   */\n  clientInstalledApps?: string[];\n}\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  /** The level at which this scope operates (site or account) */\n  level?: ScopeLevelWithLiterals;\n  /**\n   * List of scope IDs that cannot be selected together with this scope\n   * @maxSize 500\n   * @maxLength 100\n   */\n  preventedScopes?: 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\n/** A contributor represents a Wix user with edit or manage access to a site owned by a separate Wix account. Contributors can be assigned roles that determine their level of access to the site and its assets. */\nexport interface Contributor {\n  /** Contributor's metadata, including account ID, name, email, and role assignments. */\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 role assignments, mapping their access to site assets and their assigned roles. */\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  /**\n   * Free text to match in searchable fields.\n   *\n   * For example, search for specific values in\n   * `name` or `email`.\n   */\n  query?: string | null;\n  /** Field name and order to sort by. */\n  orderBy?: Ordering[];\n  /**\n   * Filter object for narrowing search results.\n   *\n   * For example, to return only users with a specific role: `{\"filter\": {\"roleId\": \"6600344420111308827\"}}`\n   *\n   * See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n   * for more information.\n   *\n   * Supported values: `inviteType` and `roleId`.\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Group data into categories (facets) and return the total count for each category.\n   *\n   * For example, use `facets` to aggregate search results by team member, invite status, or role.\n   */\n  facets?: FacetTypeWithLiterals[];\n  /** Paging options. */\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  /** Team member name. */\n  Name = 'Name',\n  /** Date team member joined the account. */\n  JoinedAt = 'JoinedAt',\n}\n\n/** @enumType */\nexport type OrderFieldWithLiterals = OrderField | 'Name' | 'JoinedAt';\n\nexport enum Direction {\n  /** Ascending. */\n  ASC = 'ASC',\n  /** Descending. */\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals = Direction | 'ASC' | 'DESC';\n\nexport enum FacetType {\n  /** Total team members with each role. */\n  Roles = 'Roles',\n  /**\n   * Total team members by [invite](https://dev.wix.com/docs/rest/account-level/user-management/accounts/account-invites/account-invite-object).\n   * `status`.\n   */\n  InviteStatus = 'InviteStatus',\n  /** Total team members. */\n  Users = 'Users',\n}\n\n/** @enumType */\nexport type FacetTypeWithLiterals =\n  | FacetType\n  | 'Roles'\n  | 'InviteStatus'\n  | 'Users';\n\nexport interface SearchTeamResponse {\n  /** Retrieved facets as specified in the request. */\n  facets?: Facet[];\n  /**\n   * Retrieved team members and sent invites that match the search criteria specified in the request.\n   *\n   * Each file includes all standard `user` and `invite` information.\n   */\n  teamMembers?: TeamMemberV3[];\n}\n\nexport interface Facet {\n  /** Type of facet. */\n  facetType?: FacetTypeWithLiterals;\n  /** Values and the amount of each. Values with a count of `0` aren't 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  /**\n   * Optional: The host platform to filter roles for. When not provided, returns roles for all platforms.\n   * Valid values: \"channels\", \"enterprise\", \"studio\", \"dev-center\", \"bm-vibe\", \"bm-headless\", \"bm-studio\", \"bm-classic\"\n   * @maxLength 50\n   */\n  host?: string | null;\n  /**\n   * Optional: Additional app definition IDs to treat as installed apps for filtering purposes\n   * @format GUID\n   * @maxSize 100\n   */\n  clientInstalledApps?: string[];\n  /** When true, skips subject permissions, experiments, app, and capability filtering. Only host filtering is applied. */\n  skipFiltering?: boolean;\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/** Request for back-office GetRoles */\nexport interface GetRolesBackofficeRequest {\n  /**\n   * The locale of the predefined roles names and descriptions. Defaults to English\n   * @format LANGUAGE\n   */\n  locale?: string | null;\n}\n\n/** Response for back-office GetRoles */\nexport interface GetRolesBackofficeResponse {\n  /**\n   * All predefined role areas\n   * @maxSize 100\n   */\n  areas?: PredefinedRolesAreaV2[];\n}\n\n/** Request for back-office GetScopes */\nexport interface GetScopesBackofficeRequest {\n  /**\n   * The locale of the scope areas names and descriptions. Defaults to English\n   * @format LANGUAGE\n   */\n  locale?: string | null;\n}\n\n/** Response for back-office GetScopes */\nexport interface GetScopesBackofficeResponse {\n  /**\n   * All predefined scope areas\n   * @maxSize 100\n   */\n  areas?: ScopeAreaV2[];\n}\n","import * as ambassadorWixIdentityRolesV1User from './identity-roles-v1-user-users.http.js';\nimport * as ambassadorWixIdentityRolesV1UserTypes from './identity-roles-v1-user-users.types.js';\nimport * as ambassadorWixIdentityRolesV1UserUniversalTypes from './identity-roles-v1-user-users.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function removeMember(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixIdentityRolesV1UserUniversalTypes.RemoveMemberRequest,\n  ambassadorWixIdentityRolesV1UserTypes.RemoveMemberRequest,\n  ambassadorWixIdentityRolesV1UserUniversalTypes.RemoveMemberResponse,\n  ambassadorWixIdentityRolesV1UserTypes.RemoveMemberResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixIdentityRolesV1User.removeMember(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/team/remove',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function searchTeam(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixIdentityRolesV1UserUniversalTypes.SearchTeamRequest,\n  ambassadorWixIdentityRolesV1UserTypes.SearchTeamRequest,\n  ambassadorWixIdentityRolesV1UserUniversalTypes.SearchTeamResponse,\n  ambassadorWixIdentityRolesV1UserTypes.SearchTeamResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixIdentityRolesV1User.searchTeam(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v3/team/search',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getRolesInfo(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixIdentityRolesV1UserUniversalTypes.GetRolesInfoRequest,\n  ambassadorWixIdentityRolesV1UserTypes.GetRolesInfoRequest,\n  ambassadorWixIdentityRolesV1UserUniversalTypes.GetRolesInfoResponse,\n  ambassadorWixIdentityRolesV1UserTypes.GetRolesInfoResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixIdentityRolesV1User.getRolesInfo(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/roles',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function changeRoleV2(): __PublicMethodMetaInfo<\n  'PATCH',\n  {},\n  ambassadorWixIdentityRolesV1UserUniversalTypes.ChangeRoleV2Request,\n  ambassadorWixIdentityRolesV1UserTypes.ChangeRoleV2Request,\n  ambassadorWixIdentityRolesV1UserUniversalTypes.ChangeRoleV2Response,\n  ambassadorWixIdentityRolesV1UserTypes.ChangeRoleV2Response\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixIdentityRolesV1User.changeRoleV2(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v2/team/roles',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function updateTeamMemberAssignments(): __PublicMethodMetaInfo<\n  'PATCH',\n  {},\n  ambassadorWixIdentityRolesV1UserUniversalTypes.UpdateTeamMemberAssignmentsRequest,\n  ambassadorWixIdentityRolesV1UserTypes.UpdateTeamMemberAssignmentsRequest,\n  ambassadorWixIdentityRolesV1UserUniversalTypes.UpdateTeamMemberAssignmentsResponse,\n  ambassadorWixIdentityRolesV1UserTypes.UpdateTeamMemberAssignmentsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixIdentityRolesV1User.updateTeamMemberAssignments(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v2/team/assignments',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  User as UserOriginal,\n  Name as NameOriginal,\n  Assignment as AssignmentOriginal,\n  AssignedPolicy as AssignedPolicyOriginal,\n  Restriction as RestrictionOriginal,\n  RestrictionRestrictionsOneOf as RestrictionRestrictionsOneOfOriginal,\n  ApiResource as ApiResourceOriginal,\n  ResourceType as ResourceTypeOriginal,\n  ResourceTypeWithLiterals as ResourceTypeWithLiteralsOriginal,\n  Conditions as ConditionsOriginal,\n  ApiCondition as ApiConditionOriginal,\n  ConditionAttributeType as ConditionAttributeTypeOriginal,\n  ConditionAttributeTypeWithLiterals as ConditionAttributeTypeWithLiteralsOriginal,\n  SiteRestriction as SiteRestrictionOriginal,\n  CompanionResource as CompanionResourceOriginal,\n  LocationsRestriction as LocationsRestrictionOriginal,\n  Subject as SubjectOriginal,\n  SubjectType as SubjectTypeOriginal,\n  SubjectTypeWithLiterals as SubjectTypeWithLiteralsOriginal,\n  SubjectContext as SubjectContextOriginal,\n  SubjectContextType as SubjectContextTypeOriginal,\n  SubjectContextTypeWithLiterals as SubjectContextTypeWithLiteralsOriginal,\n  GetTeamRequest as GetTeamRequestOriginal,\n  Paging as PagingOriginal,\n  GetTeamResponse as GetTeamResponseOriginal,\n  AccountInvite as AccountInviteOriginal,\n  InviteStatus as InviteStatusOriginal,\n  InviteStatusWithLiterals as InviteStatusWithLiteralsOriginal,\n  InviteResourceAssignment as InviteResourceAssignmentOriginal,\n  InviteAssignment as InviteAssignmentOriginal,\n  FullNameResource as FullNameResourceOriginal,\n  FullNameResourceResourceContextOneOf as FullNameResourceResourceContextOneOfOriginal,\n  SiteResourceContext as SiteResourceContextOriginal,\n  AccountResourceContext as AccountResourceContextOriginal,\n  OrganizationResourceContext as OrganizationResourceContextOriginal,\n  Resource as ResourceOriginal,\n  PolicyCondition as PolicyConditionOriginal,\n  ConditionType as ConditionTypeOriginal,\n  ConditionTypeOfOneOf as ConditionTypeOfOneOfOriginal,\n  SimpleCondition as SimpleConditionOriginal,\n  SimpleConditionValue as SimpleConditionValueOriginal,\n  SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOfOriginal,\n  SimpleConditionOperator as SimpleConditionOperatorOriginal,\n  SimpleConditionOperatorWithLiterals as SimpleConditionOperatorWithLiteralsOriginal,\n  JoinedCondition as JoinedConditionOriginal,\n  JoinedConditionOperator as JoinedConditionOperatorOriginal,\n  JoinedConditionOperatorWithLiterals as JoinedConditionOperatorWithLiteralsOriginal,\n  EnvironmentCondition as EnvironmentConditionOriginal,\n  EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOfOriginal,\n  ExperimentCondition as ExperimentConditionOriginal,\n  Condition as ConditionOriginal,\n  ConditionOperator as ConditionOperatorOriginal,\n  ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOfOriginal,\n  EqualOperator as EqualOperatorOriginal,\n  ConditionValue as ConditionValueOriginal,\n  ConditionValueValueOneOf as ConditionValueValueOneOfOriginal,\n  LikeOperator as LikeOperatorOriginal,\n  ExperimentOperator as ExperimentOperatorOriginal,\n  DependOnOperator as DependOnOperatorOriginal,\n  AccountInfo as AccountInfoOriginal,\n  ApiPolicy as ApiPolicyOriginal,\n  PredefinedRoles as PredefinedRolesOriginal,\n  PredefinedRole as PredefinedRoleOriginal,\n  Role as RoleOriginal,\n  ChangeRoleRequest as ChangeRoleRequestOriginal,\n  ChangeRoleResponse as ChangeRoleResponseOriginal,\n  RemoveMemberRequest as RemoveMemberRequestOriginal,\n  RemoveMemberResponse as RemoveMemberResponseOriginal,\n  GetUsersRequest as GetUsersRequestOriginal,\n  GetUsersResponse as GetUsersResponseOriginal,\n  GetScopesRequest as GetScopesRequestOriginal,\n  GetScopesResponse as GetScopesResponseOriginal,\n  ScopeArea as ScopeAreaOriginal,\n  PermissionScope as PermissionScopeOriginal,\n  ScopeLevel as ScopeLevelOriginal,\n  ScopeLevelWithLiterals as ScopeLevelWithLiteralsOriginal,\n  Visibility as VisibilityOriginal,\n  VisibilityWithLiterals as VisibilityWithLiteralsOriginal,\n  GetScopesV2Request as GetScopesV2RequestOriginal,\n  GetScopesV2Response as GetScopesV2ResponseOriginal,\n  ScopeAreaV2 as ScopeAreaV2Original,\n  PermissionScopeV2 as PermissionScopeV2Original,\n  GetPeopleRequest as GetPeopleRequestOriginal,\n  PeopleResource as PeopleResourceOriginal,\n  PeopleResourceResourceTypeOneOf as PeopleResourceResourceTypeOneOfOriginal,\n  FolderResource as FolderResourceOriginal,\n  PeopleType as PeopleTypeOriginal,\n  PeopleTypeWithLiterals as PeopleTypeWithLiteralsOriginal,\n  GetPeopleResponse as GetPeopleResponseOriginal,\n  People as PeopleOriginal,\n  Person as PersonOriginal,\n  PersonPersonOneOf as PersonPersonOneOfOriginal,\n  Contributor as ContributorOriginal,\n  PersonMetaData as PersonMetaDataOriginal,\n  TeamMember as TeamMemberOriginal,\n  GetTeamV2Response as GetTeamV2ResponseOriginal,\n  GetTeamInvitesRequest as GetTeamInvitesRequestOriginal,\n  GetTeamInvitesResponse as GetTeamInvitesResponseOriginal,\n  Invite as InviteOriginal,\n  ApiInviteAssignment as ApiInviteAssignmentOriginal,\n  GetPoliciesRequest as GetPoliciesRequestOriginal,\n  AreasFilter as AreasFilterOriginal,\n  RoleLevel as RoleLevelOriginal,\n  RoleLevelWithLiterals as RoleLevelWithLiteralsOriginal,\n  GetPoliciesResponse as GetPoliciesResponseOriginal,\n  SearchTeamRequest as SearchTeamRequestOriginal,\n  Ordering as OrderingOriginal,\n  OrderField as OrderFieldOriginal,\n  OrderFieldWithLiterals as OrderFieldWithLiteralsOriginal,\n  Direction as DirectionOriginal,\n  DirectionWithLiterals as DirectionWithLiteralsOriginal,\n  FacetType as FacetTypeOriginal,\n  FacetTypeWithLiterals as FacetTypeWithLiteralsOriginal,\n  SearchTeamResponse as SearchTeamResponseOriginal,\n  Facet as FacetOriginal,\n  FacetValue as FacetValueOriginal,\n  TeamMemberV3 as TeamMemberV3Original,\n  TeamMemberV3MembersOneOf as TeamMemberV3MembersOneOfOriginal,\n  UserV3 as UserV3Original,\n  AssignmentV3 as AssignmentV3Original,\n  AssignedSubject as AssignedSubjectOriginal,\n  InviteV3 as InviteV3Original,\n  InviteAssignmentV3 as InviteAssignmentV3Original,\n  GetRolesRequest as GetRolesRequestOriginal,\n  GetRolesResponse as GetRolesResponseOriginal,\n  PredefinedRolesArea as PredefinedRolesAreaOriginal,\n  PredefinedRoleV2 as PredefinedRoleV2Original,\n  RoleLevelRestriction as RoleLevelRestrictionOriginal,\n  RoleLevelRestrictionWithLiterals as RoleLevelRestrictionWithLiteralsOriginal,\n  EditorType as EditorTypeOriginal,\n  EditorTypeWithLiterals as EditorTypeWithLiteralsOriginal,\n  RoleVisibility as RoleVisibilityOriginal,\n  RoleVisibilityWithLiterals as RoleVisibilityWithLiteralsOriginal,\n  CustomRole as CustomRoleOriginal,\n  GetRolesInfoRequest as GetRolesInfoRequestOriginal,\n  RolesInfoFilter as RolesInfoFilterOriginal,\n  GetRolesInfoResponse as GetRolesInfoResponseOriginal,\n  RoleInfo as RoleInfoOriginal,\n  CreateCustomRoleRequest as CreateCustomRoleRequestOriginal,\n  Policy as PolicyOriginal,\n  PolicyType as PolicyTypeOriginal,\n  PolicyTypeWithLiterals as PolicyTypeWithLiteralsOriginal,\n  PolicyStatement as PolicyStatementOriginal,\n  Effect as EffectOriginal,\n  EffectWithLiterals as EffectWithLiteralsOriginal,\n  CreateCustomRoleResponse as CreateCustomRoleResponseOriginal,\n  ChangeRoleV2Request as ChangeRoleV2RequestOriginal,\n  ChangeRoleV2Response as ChangeRoleV2ResponseOriginal,\n  UpdateTeamMemberAssignmentsRequest as UpdateTeamMemberAssignmentsRequestOriginal,\n  UpdateTeamMemberAssignmentsResponse as UpdateTeamMemberAssignmentsResponseOriginal,\n  GetSubjectsAssignmentsRequest as GetSubjectsAssignmentsRequestOriginal,\n  GetSubjectsAssignmentsResponse as GetSubjectsAssignmentsResponseOriginal,\n  SubjectAssignments as SubjectAssignmentsOriginal,\n  GetScopesByRoleRequest as GetScopesByRoleRequestOriginal,\n  GetScopesByRoleResponse as GetScopesByRoleResponseOriginal,\n  GetRolesV2Request as GetRolesV2RequestOriginal,\n  GetRolesV2Response as GetRolesV2ResponseOriginal,\n  PredefinedRolesAreaV2 as PredefinedRolesAreaV2Original,\n  RoleInfoV2 as RoleInfoV2Original,\n  CustomRoleV2 as CustomRoleV2Original,\n  GetRolesBackofficeRequest as GetRolesBackofficeRequestOriginal,\n  GetRolesBackofficeResponse as GetRolesBackofficeResponseOriginal,\n  GetScopesBackofficeRequest as GetScopesBackofficeRequestOriginal,\n  GetScopesBackofficeResponse as GetScopesBackofficeResponseOriginal,\n} from './identity-roles-v1-user-users.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,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AO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,aAAa,OAAO;AAEvD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,+BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,4BAA4B,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","ResourceType","ConditionAttributeType","SubjectType","SubjectContextType","InviteStatus","SimpleConditionOperator","JoinedConditionOperator","ScopeLevel","Visibility","PeopleType","RoleLevel","OrderField","Direction","FacetType","RoleLevelRestriction","EditorType","RoleVisibility","PolicyType","Effect","removeMember","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments"]}