{"version":3,"sources":["../../src/identity-invites-v1-account-invite-account-invites.universal.ts","../../src/identity-invites-v1-account-invite-account-invites.http.ts","../../src/identity-invites-v1-account-invite-account-invites.public.ts","../../src/identity-invites-v1-account-invite-account-invites.context.ts"],"sourcesContent":["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 ambassadorWixIdentityInvitesV1AccountInvite from './identity-invites-v1-account-invite-account-invites.http.js';\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 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 GetAccountInvitesRequest {}\n\nexport interface GetAccountInvitesResponse {\n  invites?: AccountInvite[];\n}\n\nexport interface GetAccountInviteRequest {\n  _id?: string;\n}\n\nexport interface GetAccountInviteResponse {\n  invite?: AccountInvite;\n}\n\nexport interface AccountInviteRequest {\n  role?: string;\n  /** @format EMAIL */\n  email?: string;\n  policyIds?: string[];\n}\n\nexport interface AccountInviteResponse {\n  invite?: AccountInvite;\n}\n\nexport interface CreateInviteRequest {\n  /**\n   * Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite).\n   * @minSize 1\n   * @maxSize 50\n   */\n  subjectsAssignments: SubjectInviteAssignments[];\n  /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */\n  defaultEmailLanguage?: string | null;\n}\n\nexport interface SubjectInviteAssignments {\n  /**\n   * Invitee's email address.\n   * @format EMAIL\n   */\n  subjectEmail?: string;\n  /** Mapping of roles (referred to here as policies) and assets (referred to here as resources) that will be assigned to the invitee when they accept the invite. When no resources are specified, the invitee will be given access to everything within the account. */\n  assignments?: InviteResourceAssignment[];\n}\n\nexport interface CreateInviteResponse {\n  /** Invites that were sent successfully. */\n  successfulInvites?: AccountInvite[];\n  /** Invites that failed. */\n  failedInvites?: InviteFailure[];\n}\n\nexport interface InviteFailure {\n  /**\n   * Email address of the failed invite.\n   * @format EMAIL\n   */\n  subjectEmail?: string;\n  /** Error description. */\n  errorMessage?: string;\n}\n\nexport interface BulkAccountInviteRequest {\n  role?: string;\n  emails?: string[];\n  policyIds?: string[];\n}\n\nexport interface BulkAccountInviteResponse {\n  invites?: AccountInvite[];\n  failedEmails?: string[];\n}\n\nexport interface ResendAccountInviteRequest {\n  inviteId?: string;\n  /** The language of emails that will be used only for recipients that don't have a user, in case this parameter is unspecified, the sender's language will be used instead */\n  defaultEmailLanguage?: string | null;\n}\n\nexport interface AcceptAccountInviteRequest {\n  inviteToken?: string;\n}\n\nexport interface AcceptAccountInviteResponse {}\n\nexport interface RevokeAccountInviteRequest {\n  inviteId?: string;\n}\n\nexport interface RevokeAccountInviteResponse {}\n\nexport interface UpdateAccountInviteRequest {\n  inviteId?: string;\n  role?: string;\n  policyIds?: string[];\n}\n\nexport interface UpdateAccountInviteResponse {}\n\nexport interface UpdateAccountInviteAssignmentsRequest {\n  inviteId?: string;\n  assignments?: InviteResourceAssignment[];\n}\n\nexport interface UpdateAccountInviteAssignmentsResponse {}\n\nexport interface ParseAccountInviteTokenRequest {\n  inviteToken?: string;\n}\n\nexport interface ParseAccountInviteTokenResponse {\n  inviteId?: string;\n  accountId?: string;\n  status?: InviteStatusWithLiterals;\n}\n\n/**\n * Creates and sends invite emails to a list of potential team members, inviting them to become team members of the requesting account.\n * The invites may be limited to a specific resource (site or other asset).\n * Maximum 50 invitees can be specified per call.\n *\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 subjectsAssignments - Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite).\n * @public\n * @requiredField subjectsAssignments\n * @param options - Filter options.\n * @permissionId team.send-invite\n * @applicableIdentity APP\n * @fqn com.wixpress.invites.api.AccountInvitesApi.CreateInvite\n */\nexport async function createInvite(\n  subjectsAssignments: SubjectInviteAssignments[],\n  options?: CreateInviteOptions\n): Promise<\n  NonNullablePaths<\n    CreateInviteResponse,\n    | `successfulInvites`\n    | `successfulInvites.${number}._id`\n    | `successfulInvites.${number}.accountId`\n    | `successfulInvites.${number}.email`\n    | `successfulInvites.${number}.role`\n    | `successfulInvites.${number}.inviterId`\n    | `successfulInvites.${number}.status`\n    | `successfulInvites.${number}.acceptLink`\n    | `successfulInvites.${number}.inviterAccountId`\n    | `failedInvites`\n    | `failedInvites.${number}.subjectEmail`\n    | `failedInvites.${number}.errorMessage`,\n    4\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    subjectsAssignments: subjectsAssignments,\n    defaultEmailLanguage: options?.defaultEmailLanguage,\n  });\n\n  const reqOpts =\n    ambassadorWixIdentityInvitesV1AccountInvite.createInvite(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          subjectsAssignments: '$[0]',\n          defaultEmailLanguage: '$[1].defaultEmailLanguage',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['subjectsAssignments', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CreateInviteOptions {\n  /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */\n  defaultEmailLanguage?: string | null;\n}\n","import { 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 resolveComWixpressInvitesApiAccountInvitesApiUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/invites-web',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/invites-web',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/invites-web',\n        destPath: '',\n      },\n      {\n        srcPath: '/invites',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/invites-web',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/invites-web',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/invites-web',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/invites/invites/site',\n        destPath: '/invites/site',\n      },\n      {\n        srcPath: '/invites/invites/account',\n        destPath: '/invites/account',\n      },\n      {\n        srcPath: '/invites',\n        destPath: '',\n      },\n      {\n        srcPath: '/invites/site-invite',\n        destPath: '/site-invite',\n      },\n      {\n        srcPath: '/invites/account-invite',\n        destPath: '/account-invite',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/invites-web',\n        destPath: '',\n      },\n    ],\n    'platform.rise.ai': [\n      {\n        srcPath: '/invites/site',\n        destPath: '/invites/site',\n      },\n      {\n        srcPath: '/site-invite',\n        destPath: '/site-invite',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_user-management_account-invites';\n\n/**\n * Creates and sends invite emails to a list of potential team members, inviting them to become team members of the requesting account.\n * The invites may be limited to a specific resource (site or other asset).\n * Maximum 50 invitees can be specified per call.\n *\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 createInvite(payload: object): RequestOptionsFactory<any> {\n  function __createInvite({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.identity.invites.v1.account_invite',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.invites.api.AccountInvitesApi.CreateInvite',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressInvitesApiAccountInvitesApiUrl({\n        protoPath: '/account-invite/create',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'successfulInvites.dateCreated' },\n              { path: 'successfulInvites.dateUpdated' },\n              { path: 'successfulInvites.expirationDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createInvite;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  CreateInviteOptions,\n  CreateInviteResponse,\n  SubjectInviteAssignments,\n  createInvite as universalCreateInvite,\n} from './identity-invites-v1-account-invite-account-invites.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/user-management' };\n\nexport function createInvite(httpClient: HttpClient): CreateInviteSignature {\n  return (\n    subjectsAssignments: SubjectInviteAssignments[],\n    options?: CreateInviteOptions\n  ) =>\n    universalCreateInvite(\n      subjectsAssignments,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateInviteSignature {\n  /**\n   * Creates and sends invite emails to a list of potential team members, inviting them to become team members of the requesting account.\n   * The invites may be limited to a specific resource (site or other asset).\n   * Maximum 50 invitees can be specified per call.\n   *\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 - Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite).\n   * @param - Filter options.\n   */\n  (\n    subjectsAssignments: SubjectInviteAssignments[],\n    options?: CreateInviteOptions\n  ): Promise<\n    NonNullablePaths<\n      CreateInviteResponse,\n      | `successfulInvites`\n      | `successfulInvites.${number}._id`\n      | `successfulInvites.${number}.accountId`\n      | `successfulInvites.${number}.email`\n      | `successfulInvites.${number}.role`\n      | `successfulInvites.${number}.inviterId`\n      | `successfulInvites.${number}.status`\n      | `successfulInvites.${number}.acceptLink`\n      | `successfulInvites.${number}.inviterAccountId`\n      | `failedInvites`\n      | `failedInvites.${number}.subjectEmail`\n      | `failedInvites.${number}.errorMessage`,\n      4\n    >\n  >;\n}\n\nexport {\n  AcceptAccountInviteRequest,\n  AcceptAccountInviteResponse,\n  AccountInvite,\n  AccountInviteRequest,\n  AccountInviteResponse,\n  AccountResourceContext,\n  BulkAccountInviteRequest,\n  BulkAccountInviteResponse,\n  Condition,\n  ConditionOperator,\n  ConditionOperatorOperatorsOneOf,\n  ConditionType,\n  ConditionTypeOfOneOf,\n  ConditionValue,\n  ConditionValueValueOneOf,\n  CreateInviteOptions,\n  CreateInviteRequest,\n  CreateInviteResponse,\n  DependOnOperator,\n  EnvironmentCondition,\n  EnvironmentConditionConditionOneOf,\n  EqualOperator,\n  ExperimentCondition,\n  ExperimentOperator,\n  FullNameResource,\n  FullNameResourceResourceContextOneOf,\n  GetAccountInviteRequest,\n  GetAccountInviteResponse,\n  GetAccountInvitesRequest,\n  GetAccountInvitesResponse,\n  InviteAssignment,\n  InviteFailure,\n  InviteResourceAssignment,\n  InviteStatus,\n  JoinedCondition,\n  JoinedConditionOperator,\n  LikeOperator,\n  OrganizationResourceContext,\n  ParseAccountInviteTokenRequest,\n  ParseAccountInviteTokenResponse,\n  PolicyCondition,\n  ResendAccountInviteRequest,\n  Resource,\n  RevokeAccountInviteRequest,\n  RevokeAccountInviteResponse,\n  SimpleCondition,\n  SimpleConditionOperator,\n  SimpleConditionValue,\n  SimpleConditionValueValueOneOf,\n  SiteResourceContext,\n  Subject,\n  SubjectContext,\n  SubjectContextType,\n  SubjectInviteAssignments,\n  SubjectType,\n  UpdateAccountInviteAssignmentsRequest,\n  UpdateAccountInviteAssignmentsResponse,\n  UpdateAccountInviteRequest,\n  UpdateAccountInviteResponse,\n} from './identity-invites-v1-account-invite-account-invites.universal.js';\n","import { createInvite as publicCreateInvite } from './identity-invites-v1-account-invite-account-invites.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createInvite: MaybeContext<\n  BuildRESTFunction<typeof publicCreateInvite> & typeof publicCreateInvite\n> = /*#__PURE__*/ createRESTModule(publicCreateInvite);\n\nexport {\n  InviteStatus,\n  SimpleConditionOperator,\n  JoinedConditionOperator,\n  SubjectType,\n  SubjectContextType,\n} from './identity-invites-v1-account-invite-account-invites.universal.js';\nexport {\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  Subject,\n  SubjectContext,\n  GetAccountInvitesRequest,\n  GetAccountInvitesResponse,\n  GetAccountInviteRequest,\n  GetAccountInviteResponse,\n  AccountInviteRequest,\n  AccountInviteResponse,\n  CreateInviteRequest,\n  SubjectInviteAssignments,\n  CreateInviteResponse,\n  InviteFailure,\n  BulkAccountInviteRequest,\n  BulkAccountInviteResponse,\n  ResendAccountInviteRequest,\n  AcceptAccountInviteRequest,\n  AcceptAccountInviteResponse,\n  RevokeAccountInviteRequest,\n  RevokeAccountInviteResponse,\n  UpdateAccountInviteRequest,\n  UpdateAccountInviteResponse,\n  UpdateAccountInviteAssignmentsRequest,\n  UpdateAccountInviteAssignmentsResponse,\n  ParseAccountInviteTokenRequest,\n  ParseAccountInviteTokenResponse,\n  CreateInviteOptions,\n} from './identity-invites-v1-account-invite-account-invites.universal.js';\nexport {\n  InviteStatusWithLiterals,\n  SimpleConditionOperatorWithLiterals,\n  JoinedConditionOperatorWithLiterals,\n  SubjectTypeWithLiterals,\n  SubjectContextTypeWithLiterals,\n} from './identity-invites-v1-account-invite-account-invites.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;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,MACA;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,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;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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AA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACpBA,SAAS,wBAAwB;AAG1B,IAAMC,gBAEK,iCAAiBA,aAAkB;","names":["payload","InviteStatus","SimpleConditionOperator","JoinedConditionOperator","SubjectType","SubjectContextType","createInvite","createInvite","createInvite"]}