{"version":3,"sources":["../../../../src/experimental/api/react-query.ts"],"sourcesContent":["/**\n * Generated by orval v8.5.0 🍺\n * Do not edit manually.\n * WorkOS Widgets\n * WorkOS Widgets API\n * OpenAPI spec version: 1.0\n */\nimport { useMutation, useQuery } from \"@tanstack/react-query\";\nimport type {\n  DataTag,\n  DefinedInitialDataOptions,\n  DefinedUseQueryResult,\n  MutationFunction,\n  QueryClient,\n  QueryFunction,\n  QueryKey,\n  UndefinedInitialDataOptions,\n  UseMutationOptions,\n  UseMutationResult,\n  UseQueryOptions,\n  UseQueryResult,\n} from \"@tanstack/react-query\";\n\nexport type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus];\n\nexport const MemberStatus = {\n  Active: \"Active\",\n  Invited: \"Invited\",\n  InviteExpired: \"InviteExpired\",\n  InviteRevoked: \"InviteRevoked\",\n  NoInvite: \"NoInvite\",\n} as const;\n\nexport type MemberActionsItem =\n  (typeof MemberActionsItem)[keyof typeof MemberActionsItem];\n\nexport const MemberActionsItem = {\n  \"edit-role\": \"edit-role\",\n  \"resend-invite\": \"resend-invite\",\n  \"revoke-invite\": \"revoke-invite\",\n  \"revoke-membership\": \"revoke-membership\",\n} as const;\n\nexport type MemberActions = MemberActionsItem[];\n\nexport type MemberRoles =\n  | {\n      name: string;\n      slug: string;\n      /** @nullable */\n      description?: string | null;\n    }[]\n  | null;\n\nexport interface Member {\n  id: string;\n  email: string;\n  emailVerified: boolean;\n  /** @nullable */\n  profilePictureUrl?: string | null;\n  /** @nullable */\n  firstName?: string | null;\n  /** @nullable */\n  lastName?: string | null;\n  /** An ISO 8601 timestamp. */\n  createdAt: string;\n  /** @nullable */\n  lastActivityAt?: string | null;\n  status: MemberStatus;\n  actions: MemberActions;\n  isLoggedInUser?: true | null;\n  roles?: MemberRoles;\n}\n\n/**\n * Pagination cursors for navigating between pages of results.\n */\nexport interface ListMetadata {\n  /**\n   * An object ID that defines your place in the list. When the ID is not present, you are at the start of the list.\n   * @nullable\n   */\n  before: string | null;\n  /**\n   * An object ID that defines your place in the list. When the ID is not present, you are at the end of the list.\n   * @nullable\n   */\n  after: string | null;\n}\n\nexport interface MembersResponse {\n  data: Member[];\n  list_metadata: ListMetadata;\n}\n\nexport interface MemberRole {\n  name: string;\n  slug: string;\n  default: boolean;\n  /** @nullable */\n  description?: string | null;\n}\n\nexport interface RolesAndConfigResponse {\n  roles: MemberRole[];\n  multipleRolesEnabled: boolean;\n}\n\nexport interface InviteMemberResponse {\n  success: boolean;\n}\n\nexport interface ResendInviteResponse {\n  /** @nullable */\n  id?: string | null;\n  success: boolean;\n}\n\nexport interface RevokeMemberResponse {\n  id: string;\n  success: boolean;\n}\n\nexport interface UpdateMemberResponse {\n  id: string;\n  success: boolean;\n}\n\nexport interface RemoveMemberResponse {\n  id: string;\n  success: boolean;\n}\n\nexport interface OrganizationInfo {\n  id: string;\n  name: string;\n  current: boolean;\n  /** @nullable */\n  favicon?: string | null;\n}\n\nexport interface OrganizationsResponse {\n  data: OrganizationInfo[];\n}\n\nexport interface OAuthProfile {\n  id: string;\n  /** @nullable */\n  email?: string | null;\n  /** @nullable */\n  firstName?: string | null;\n  /** @nullable */\n  lastName?: string | null;\n  /** @nullable */\n  profilePictureUrl?: string | null;\n  /** @nullable */\n  lastLoginAt?: string | null;\n}\n\nexport type MeOauthProfiles = {\n  AppleOAuth?: OAuthProfile;\n  GithubOAuth?: OAuthProfile;\n  GoogleOAuth?: OAuthProfile;\n  MicrosoftOAuth?: OAuthProfile;\n} | null;\n\nexport interface Me {\n  id: string;\n  email: string;\n  /** @nullable */\n  firstName?: string | null;\n  /** @nullable */\n  lastName?: string | null;\n  /** @nullable */\n  locale?: string | null;\n  /** @nullable */\n  profilePictureUrl?: string | null;\n  oauthProfiles?: MeOauthProfiles;\n}\n\nexport type CreateTotpFactorResponseAuthenticationFactor = {\n  object: \"authentication_factor\";\n  id: string;\n  type: \"generic_otp\" | \"sms\" | \"totp\" | \"webauthn\";\n  /** @nullable */\n  user_id?: string | null;\n  sms?: {\n    phone_number: string;\n  } | null;\n  totp?:\n    | {\n        issuer: string;\n        user: string;\n        secret: string;\n        qr_code: string;\n        uri: string;\n      }\n    | {\n        issuer: string;\n        user: string;\n      }\n    | null;\n} & {\n  created_at: string;\n  updated_at: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationChallenge = {\n  object: \"authentication_challenge\";\n  id: string;\n  /** @nullable */\n  expires_at?: string | null;\n  /** @nullable */\n  code?: string | null;\n  authentication_factor_id: string;\n} & {\n  created_at: string;\n  updated_at: string;\n};\n\nexport interface CreateTotpFactorResponse {\n  authenticationFactor: CreateTotpFactorResponseAuthenticationFactor;\n  authenticationChallenge: CreateTotpFactorResponseAuthenticationChallenge;\n}\n\nexport interface VerifyTotpFactorRequest {\n  code: string;\n  authenticationChallengeId: string;\n}\n\nexport type AuthenticationInformationResponseDataVerificationMethodsMfa = {\n  provider: \"MFA\";\n  isSetUp: boolean;\n  /** @nullable */\n  lastUsed?: string | null;\n} | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPassword = {\n  provider: \"Password\";\n  isSetUp: boolean;\n  /** @nullable */\n  lastUsed?: string | null;\n  isCurrentSession: boolean;\n} | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskey = {\n  provider: \"Passkey\";\n  isSetUp: boolean;\n  /** @nullable */\n  lastUsed?: string | null;\n  passKeys: {\n    id: string;\n  }[];\n  isCurrentSession: boolean;\n} | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethods = {\n  Mfa?: AuthenticationInformationResponseDataVerificationMethodsMfa;\n  Password?: AuthenticationInformationResponseDataVerificationMethodsPassword;\n  Passkey?: AuthenticationInformationResponseDataVerificationMethodsPasskey;\n};\n\nexport type AuthenticationInformationResponseDataPasswordSettings = {\n  isPasswordNumberRequired: boolean;\n  isPasswordPwnedRequired: boolean;\n  isPasswordSymbolRequired: boolean;\n  isPasswordUppercaseRequired: boolean;\n  passwordMinimumLength: number;\n  passwordMinimumStrength: number;\n};\n\nexport type AuthenticationInformationResponseData = {\n  verificationMethods: AuthenticationInformationResponseDataVerificationMethods;\n  passwordSettings: AuthenticationInformationResponseDataPasswordSettings;\n};\n\nexport interface AuthenticationInformationResponse {\n  data: AuthenticationInformationResponseData;\n}\n\nexport interface CreatePasswordRequest {\n  password: string;\n}\n\nexport interface UpdatePasswordRequest {\n  newPassword: string;\n  currentPassword: string;\n}\n\nexport interface RevokeAllSessionsRequest {\n  currentSessionId: string;\n}\n\nexport type ActiveSessionState = {\n  tag: string;\n  /** @nullable */\n  expiresAt?: string | null;\n};\n\nexport type ActiveSessionCurrentLocation = {\n  cityName: string;\n  countryISOCode: string;\n} | null;\n\nexport interface ActiveSession {\n  id: string;\n  userlandUserId: string;\n  /** @nullable */\n  ipAddress?: string | null;\n  /** @nullable */\n  userAgent?: string | null;\n  /** @nullable */\n  organizationId?: string | null;\n  state: ActiveSessionState;\n  currentLocation?: ActiveSessionCurrentLocation;\n  usedSsoAuth: boolean;\n  usedPasswordAuth: boolean;\n  usedPasskeyAuth: boolean;\n  usedAppleOauth: boolean;\n  usedBitbucketOauth: boolean;\n  usedGithubOauth: boolean;\n  usedGitLabOauth: boolean;\n  usedGoogleOauth: boolean;\n  usedLinkedInOauth: boolean;\n  usedImpersonation: boolean;\n  usedMicrosoftOauth: boolean;\n  usedSlackOauth: boolean;\n  usedXeroOauth: boolean;\n  usedMagicAuth: boolean;\n  /** @nullable */\n  impersonatorUserId?: string | null;\n  /** @nullable */\n  impersonatorEmail?: string | null;\n  /** @nullable */\n  impersonationReason?: string | null;\n  /** @nullable */\n  lastActivityAt?: string | null;\n  createdAt: string;\n  updatedAt: string;\n}\n\nexport interface ActiveSessionsResponse {\n  data: ActiveSession[];\n}\n\nexport interface SendVerificationResponse {\n  authenticationChallenge: string;\n  type: \"EmailVerification\";\n}\n\nexport interface VerifyRequest {\n  code: string;\n  authenticationChallengeId: string;\n}\n\nexport interface VerifyResponse {\n  elevatedAccessToken: string;\n  expiresAt: string;\n}\n\nexport interface SendEmailChangeRequest {\n  newEmail: string;\n}\n\nexport interface SendEmailChangeResponse {\n  expiresAt: string;\n}\n\nexport interface VerifyEmailChangeRequest {\n  code: string;\n}\n\nexport interface VerifyEmailChangeResponse {\n  user: Me;\n  elevatedAccessToken: string;\n  expiresAt: string;\n}\n\nexport type RegisterPasskeyResponseOptions = { [key: string]: unknown };\n\nexport interface RegisterPasskeyResponse {\n  challengeId: string;\n  options: RegisterPasskeyResponseOptions;\n}\n\nexport type VerifyPasskeyRequestResponse = { [key: string]: unknown };\n\nexport interface VerifyPasskeyRequest {\n  challengeId: string;\n  response: VerifyPasskeyRequestResponse;\n}\n\nexport interface SettingsResponse {\n  object: \"settings\";\n  authkitOrigin: string;\n  /** @nullable */\n  logoDarkIconPath?: string | null;\n  /** @nullable */\n  logoDarkPath?: string | null;\n  /** @nullable */\n  logoLightIconPath?: string | null;\n  /** @nullable */\n  logoLightPath?: string | null;\n  teamName: string;\n}\n\nexport type OrganizationDomainState =\n  (typeof OrganizationDomainState)[keyof typeof OrganizationDomainState];\n\nexport const OrganizationDomainState = {\n  Failed: \"Failed\",\n  LegacyVerified: \"LegacyVerified\",\n  Pending: \"Pending\",\n  Verified: \"Verified\",\n} as const;\n\nexport type DomainVerificationNameServer =\n  (typeof DomainVerificationNameServer)[keyof typeof DomainVerificationNameServer];\n\nexport const DomainVerificationNameServer = {\n  AwsRoute53: \"AwsRoute53\",\n  GoogleDomains: \"GoogleDomains\",\n  CloudFlare: \"CloudFlare\",\n  GoDaddy: \"GoDaddy\",\n  Other: \"Other\",\n} as const;\n\nexport interface OrganizationDomain {\n  id: string;\n  domain: string;\n  state: OrganizationDomainState;\n  nameServer: DomainVerificationNameServer;\n  /** @nullable */\n  verificationPrefix?: string | null;\n  /** @nullable */\n  verificationToken?: string | null;\n  /** @nullable */\n  subdomain?: string | null;\n  createdAt: string;\n}\n\nexport interface X509CertificateJSON {\n  id: string;\n  value: string;\n  /** @nullable */\n  notBefore?: string | null;\n  /** @nullable */\n  notAfter?: string | null;\n  /** @nullable */\n  lastExpiryEventSentAt?: string | null;\n}\n\nexport type SamlSessionState =\n  (typeof SamlSessionState)[keyof typeof SamlSessionState];\n\nexport const SamlSessionState = {\n  Authorized: \"Authorized\",\n  Failed: \"Failed\",\n  Started: \"Started\",\n  Successful: \"Successful\",\n  Timedout: \"Timedout\",\n} as const;\n\nexport type OidcSessionState =\n  (typeof OidcSessionState)[keyof typeof OidcSessionState];\n\nexport const OidcSessionState = {\n  Started: \"Started\",\n  Authorized: \"Authorized\",\n  Successful: \"Successful\",\n  Failed: \"Failed\",\n  Terminated: \"Terminated\",\n  Timedout: \"Timedout\",\n} as const;\n\nexport const SsoConnectionSessionJSONState = {\n  ...SamlSessionState,\n  ...OidcSessionState,\n} as const;\nexport interface SsoConnectionSessionJSON {\n  id: string;\n  createdAt: string;\n  state: (typeof SsoConnectionSessionJSONState)[keyof typeof SsoConnectionSessionJSONState];\n}\n\nexport type SsoConnection =\n  | {\n      id: string;\n      type:\n        | \"AdfsSaml\"\n        | \"Auth0Saml\"\n        | \"AzureSaml\"\n        | \"CasSaml\"\n        | \"ClassLinkSaml\"\n        | \"CloudflareSaml\"\n        | \"CyberArkSaml\"\n        | \"DuoSaml\"\n        | \"GenericSaml\"\n        | \"GoogleSaml\"\n        | \"JumpCloudSaml\"\n        | \"KeycloakSaml\"\n        | \"LastPassSaml\"\n        | \"MiniOrangeSaml\"\n        | \"NetIqSaml\"\n        | \"OktaSaml\"\n        | \"OneLoginSaml\"\n        | \"OracleSaml\"\n        | \"PingFederateSaml\"\n        | \"PingOneSaml\"\n        | \"RipplingSaml\"\n        | \"SalesforceSaml\"\n        | \"ShibbolethGenericSaml\"\n        | \"ShibbolethSaml\"\n        | \"SimpleSamlPhpSaml\"\n        | \"TestIdp\"\n        | \"VmWareSaml\";\n      name: string;\n      state: \"Inactive\" | \"Validating\" | \"Active\" | \"Deleting\";\n      x509Certificates: X509CertificateJSON[];\n      latestExpiringCertificate?: X509CertificateJSON | null;\n      latestExpiredCertificate?: X509CertificateJSON | null;\n      createdAt: string;\n      providerTag: \"Saml\";\n      lastSession?: SsoConnectionSessionJSON | null;\n    }\n  | ({\n      id: string;\n      name: string;\n      state: \"Inactive\" | \"Validating\" | \"Active\" | \"Deleting\";\n      type:\n        | \"AdpOidc\"\n        | \"Auth0Migration\"\n        | \"CleverOidc\"\n        | \"EntraIdOidc\"\n        | \"GenericOidc\"\n        | \"GoogleOidc\"\n        | \"OktaOidc\"\n        | \"LoginGovOidc\";\n      createdAt: string;\n      providerTag: \"OpenIdConnect\";\n      lastSession?: SsoConnectionSessionJSON | null;\n    } & {\n      /** @nullable */\n      x509Certificates?: null;\n      /** @nullable */\n      latestExpiringCertificate?: null;\n      /** @nullable */\n      latestExpiredCertificate?: null;\n    });\n\nexport type AuditLogStreamState = \"Active\" | \"Inactive\" | \"Error\" | \"Invalid\";\n\nexport type AuditLogStreamType =\n  | \"Datadog\"\n  | \"Splunk\"\n  | \"S3\"\n  | \"GoogleCloudStorage\"\n  | \"GenericHttps\"\n  | \"AzureSentinel\";\n\nexport interface AuditLogStreamJSON {\n  id: string;\n  state: AuditLogStreamState;\n  type: AuditLogStreamType;\n  /** @nullable */\n  errorMessage?: string | null;\n  /** @nullable */\n  lastSyncedEventId?: string | null;\n  auditLogTrailId: string;\n}\n\nexport interface ListOrganizationApiKeysResponseData {\n  id: string;\n  name: string;\n  obfuscatedValue: string;\n  createdAt: string;\n  /** @nullable */\n  lastUsedAt?: string | null;\n  permissions: string[];\n}\n\nexport type ListOrganizationApiKeysResponseListMetadata = {\n  before?: string;\n  after?: string;\n};\n\nexport interface ListOrganizationApiKeysResponse {\n  data: ListOrganizationApiKeysResponseData[];\n  list_metadata: ListOrganizationApiKeysResponseListMetadata;\n}\n\nexport interface CreateOrganizationApiKeyRequest {\n  name: string;\n  permissions: string[];\n}\n\nexport interface CreateOrganizationApiKeyResponse {\n  id: string;\n  value: string;\n  obfuscatedValue: string;\n  createdAt: string;\n  name: string;\n  permissions: string[];\n}\n\nexport interface ListOrganizationApiKeyPermission {\n  id: string;\n  slug: string;\n  name: string;\n  /** @nullable */\n  description?: string | null;\n}\n\nexport type ListOrganizationApiKeyPermissionsResponseListMetadata = {\n  before?: string;\n  after?: string;\n};\n\nexport interface ListOrganizationApiKeyPermissionsResponse {\n  data: ListOrganizationApiKeyPermission[];\n  list_metadata: ListOrganizationApiKeyPermissionsResponseListMetadata;\n}\n\nexport type ListUserApiKeysResponseDataOwner = {\n  type: \"user\";\n  id: string;\n  email: string;\n  /** @nullable */\n  firstName?: string | null;\n  /** @nullable */\n  lastName?: string | null;\n  displayName: string;\n};\n\nexport interface ListUserApiKeysResponseData {\n  id: string;\n  owner: ListUserApiKeysResponseDataOwner;\n  name: string;\n  obfuscatedValue: string;\n  createdAt: string;\n  /** @nullable */\n  lastUsedAt?: string | null;\n  permissions: string[];\n}\n\nexport type ListUserApiKeysResponseListMetadata = {\n  before?: string;\n  after?: string;\n};\n\nexport interface ListUserApiKeysResponse {\n  data: ListUserApiKeysResponseData[];\n  list_metadata: ListUserApiKeysResponseListMetadata;\n}\n\nexport interface CreateUserApiKeyRequest {\n  name: string;\n  permissions: string[];\n}\n\nexport interface CreateUserApiKeyResponse {\n  id: string;\n  value: string;\n  obfuscatedValue: string;\n  createdAt: string;\n  name: string;\n  permissions: string[];\n}\n\nexport interface ListUserApiKeyPermission {\n  id: string;\n  slug: string;\n  name: string;\n  /** @nullable */\n  description?: string | null;\n}\n\nexport type ListUserApiKeyPermissionsResponseListMetadata = {\n  before?: string;\n  after?: string;\n};\n\nexport interface ListUserApiKeyPermissionsResponse {\n  data: ListUserApiKeyPermission[];\n  list_metadata: ListUserApiKeyPermissionsResponseListMetadata;\n}\n\nexport type DataInstallation = {\n  object: \"data_installation\" | \"connected_account\";\n  id: string;\n  /** @nullable */\n  user_id?: string | null;\n  /** @nullable */\n  organization_id?: string | null;\n  scopes: string[];\n  state: \"connected\" | \"needs_reauthorization\";\n  created_at: string;\n  updated_at: string;\n} & {\n  /** @nullable */\n  userlandUserId?: string | null;\n  /** @nullable */\n  organizationId?: string | null;\n  createdAt?: string;\n  updatedAt?: string;\n};\n\nexport type DataIntegration = {\n  object: \"data_integration\";\n  id: string;\n  name: string;\n  /** @nullable */\n  description?: string | null;\n  slug: string;\n  integrationType:\n    | \"asana\"\n    | \"attio\"\n    | \"box\"\n    | \"cal-dot-com\"\n    | \"calendly\"\n    | \"confluence\"\n    | \"datadog\"\n    | \"dropbox\"\n    | \"frame-io\"\n    | \"front\"\n    | \"github\"\n    | \"gitlab\"\n    | \"gmail\"\n    | \"gong\"\n    | \"google\"\n    | \"google-calendar\"\n    | \"google-drive\"\n    | \"helpscout\"\n    | \"hubspot\"\n    | \"intercom\"\n    | \"intralinks\"\n    | \"jira\"\n    | \"linear\"\n    | \"microsoft\"\n    | \"microsoft-onedrive\"\n    | \"microsoft-onenote\"\n    | \"microsoft-outlook\"\n    | \"microsoft-outlook-calendar\"\n    | \"microsoft-sharepoint\"\n    | \"microsoft-teams\"\n    | \"microsoft-todo\"\n    | \"notion\"\n    | \"prefect\"\n    | \"pydantic-logfire\"\n    | \"quickbooks\"\n    | \"salesforce\"\n    | \"sentry\"\n    | \"slack\"\n    | \"snowflake\"\n    | \"stripe\"\n    | \"xero\"\n    | \"zendesk\"\n    | \"zoom\"\n    | string;\n  ownership: \"userland_user\" | \"organization\";\n  credentialsType: \"shared\" | \"custom\";\n  scopes?: string[] | null;\n  createdAt: string;\n  updatedAt: string;\n  installation?: DataInstallation | null;\n} & {\n  iconSlug?: string;\n  iconUrl?: string;\n  iconDarkUrl?: string;\n};\n\nexport interface DataIntegrationsResponse {\n  data: DataIntegration[];\n}\n\nexport type GetDataIntegrationAuthorizeUrlResponse = {\n  url: string;\n  redirectToken: string;\n} & {\n  handoffToken?: string;\n};\n\nexport interface GetAuthorizationStatusResponse {\n  isConnecting: boolean;\n}\n\nexport type DirectoryType = (typeof DirectoryType)[keyof typeof DirectoryType];\n\nexport const DirectoryType = {\n  azure_scim_v20: \"azure scim v2.0\",\n  bamboohr: \"bamboohr\",\n  breathe_hr: \"breathe hr\",\n  cezanne_hr: \"cezanne hr\",\n  cyberark_scim_v20: \"cyberark scim v2.0\",\n  fourth_hr: \"fourth hr\",\n  generic_scim_v20: \"generic scim v2.0\",\n  gsuite_directory: \"gsuite directory\",\n  gusto: \"gusto\",\n  hibob: \"hibob\",\n  jump_cloud_scim_v20: \"jump cloud scim v2.0\",\n  okta_scim_v20: \"okta scim v2.0\",\n  onelogin_scim_v20: \"onelogin scim v2.0\",\n  people_hr: \"people hr\",\n  personio: \"personio\",\n  pingfederate_scim_v20: \"pingfederate scim v2.0\",\n  rippling: \"rippling\",\n  rippling_scim_v20: \"rippling scim v2.0\",\n  s3: \"s3\",\n  sailpoint_scim_v20: \"sailpoint scim v2.0\",\n  sftp: \"sftp\",\n  sftp_workday: \"sftp workday\",\n  workday: \"workday\",\n} as const;\n\nexport type DirectoryState =\n  (typeof DirectoryState)[keyof typeof DirectoryState];\n\nexport const DirectoryState = {\n  requires_type: \"requires_type\",\n  linked: \"linked\",\n  validating: \"validating\",\n  invalid_credentials: \"invalid_credentials\",\n  unlinked: \"unlinked\",\n  deleting: \"deleting\",\n} as const;\n\nexport interface DirectoryUsersMetadata {\n  active: number;\n  inactive: number;\n}\n\nexport interface DirectoryMetadata {\n  users: DirectoryUsersMetadata;\n  groups: number;\n}\n\nexport interface Directory {\n  id: string;\n  name: string;\n  type: DirectoryType;\n  state: DirectoryState;\n  createdAt: string;\n  updatedAt: string;\n  /** @nullable */\n  lastSyncRunAt?: string | null;\n  metadata: DirectoryMetadata;\n}\n\nexport interface DirectoriesResponse {\n  data: Directory[];\n  link: string;\n}\n\nexport type CreateOrganizationApiKey400ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type CreateOrganizationApiKey400 = {\n  message: string;\n  errors: CreateOrganizationApiKey400ErrorsItem[];\n};\n\nexport type CreateOrganizationApiKey403 = {\n  message: string;\n};\n\nexport type CreateOrganizationApiKey404 = {\n  message: string;\n};\n\nexport type CreateOrganizationApiKey422ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type CreateOrganizationApiKey422 = {\n  message: string;\n  errors: CreateOrganizationApiKey422ErrorsItem[];\n};\n\nexport type ListOrganizationApiKeysParams = {\n  limit?: number;\n  before?: string;\n  after?: string;\n  search?: string;\n};\n\nexport type ListOrganizationApiKeys400ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type ListOrganizationApiKeys400 = {\n  message: string;\n  errors: ListOrganizationApiKeys400ErrorsItem[];\n};\n\nexport type ListOrganizationApiKeys403 = {\n  message: string;\n};\n\nexport type ListOrganizationApiKeyPermissionsParams = {\n  search?: string;\n  limit?: number;\n  before?: string;\n  after?: string;\n};\n\nexport type ListOrganizationApiKeyPermissions400ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type ListOrganizationApiKeyPermissions400 = {\n  message: string;\n  errors: ListOrganizationApiKeyPermissions400ErrorsItem[];\n};\n\nexport type ListOrganizationApiKeyPermissions403 = {\n  message: string;\n};\n\nexport type DeleteOrganizationApiKey200 = {\n  success: boolean;\n};\n\nexport type DeleteOrganizationApiKey403 = {\n  message: string;\n};\n\nexport type DeleteOrganizationApiKey404 = {\n  message: string;\n};\n\nexport type DeleteDataInstallation200 = {\n  success: boolean;\n};\n\nexport type DeleteDataInstallation403 = {\n  message: string;\n};\n\nexport type DeleteDataInstallation404 = {\n  message: string;\n};\n\nexport type MyDataIntegrations403 = {\n  message: string;\n};\n\nexport type GetDataInstallationAuthorizationStatus400 = {\n  message: string;\n};\n\nexport type GetDataInstallationAuthorizationStatus403 = {\n  message: string;\n};\n\nexport type GetDataInstallationAuthorizationStatus404 = {\n  message: string;\n};\n\nexport type GetDataIntegrationAuthorizeUrlParams = {\n  requireHandoff?: boolean;\n};\n\nexport type GetDataIntegrationAuthorizeUrl400 = {\n  message: string;\n};\n\nexport type GetDataIntegrationAuthorizeUrl403 = {\n  message: string;\n};\n\nexport type GetDataIntegrationAuthorizeUrl404 = {\n  message: string;\n};\n\nexport type CreateUserApiKey400ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type CreateUserApiKey400 = {\n  message: string;\n  errors: CreateUserApiKey400ErrorsItem[];\n};\n\nexport type CreateUserApiKey403 = {\n  message: string;\n};\n\nexport type CreateUserApiKey404 = {\n  message: string;\n};\n\nexport type CreateUserApiKey422ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type CreateUserApiKey422 = {\n  message: string;\n  errors: CreateUserApiKey422ErrorsItem[];\n};\n\nexport type ListUserApiKeysParams = {\n  limit?: number;\n  before?: string;\n  after?: string;\n  search?: string;\n};\n\nexport type ListUserApiKeys400ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type ListUserApiKeys400 = {\n  message: string;\n  errors: ListUserApiKeys400ErrorsItem[];\n};\n\nexport type ListUserApiKeys403 = {\n  message: string;\n};\n\nexport type ListUserApiKeyPermissionsParams = {\n  search?: string;\n  limit?: number;\n  before?: string;\n  after?: string;\n};\n\nexport type ListUserApiKeyPermissions400ErrorsItem = {\n  code: string;\n  field: string;\n};\n\nexport type ListUserApiKeyPermissions400 = {\n  message: string;\n  errors: ListUserApiKeyPermissions400ErrorsItem[];\n};\n\nexport type ListUserApiKeyPermissions403 = {\n  message: string;\n};\n\nexport type DeleteUserApiKey200 = {\n  success: boolean;\n};\n\nexport type DeleteUserApiKey403 = {\n  message: string;\n};\n\nexport type DeleteUserApiKey404 = {\n  message: string;\n};\n\nexport type InviteMemberBody = {\n  email: string;\n  /** @nullable */\n  firstName?: string | null;\n  /** @nullable */\n  lastName?: string | null;\n  roles: string[];\n};\n\nexport type InviteMember400 = {\n  message: string;\n};\n\nexport type InviteMember403 = {\n  message: string;\n};\n\nexport type InviteMember404 = {\n  message: string;\n};\n\nexport type RevokeInvite400 = {\n  message: string;\n};\n\nexport type RevokeInvite403 = {\n  message: string;\n};\n\nexport type RevokeInvite404 = {\n  message: string;\n};\n\nexport type ResendInvite400 = {\n  message: string;\n};\n\nexport type ResendInvite403 = {\n  message: string;\n};\n\nexport type ResendInvite404 = {\n  message: string;\n};\n\nexport type ResendInvite422 = {\n  message: string;\n};\n\nexport type MembersParams = {\n  search?: string;\n  limit?: string;\n  before?: string;\n  after?: string;\n  role?: string;\n};\n\nexport type Members403 = {\n  message: string;\n};\n\nexport type Members404 = {\n  message: string;\n};\n\nexport type RemoveMember400 = {\n  message: string;\n};\n\nexport type RemoveMember403 = {\n  message: string;\n};\n\nexport type RemoveMember404 = {\n  message: string;\n};\n\nexport type UpdateMemberBody = {\n  roles: string[];\n};\n\nexport type UpdateMember400 = {\n  message: string;\n};\n\nexport type UpdateMember403 = {\n  message: string;\n};\n\nexport type UpdateMember404 = {\n  message: string;\n};\n\nexport type UpdateMember422 = {\n  message: string;\n};\n\nexport type Organizations403 = {\n  message: string;\n};\n\nexport type Organizations404 = {\n  message: string;\n};\n\nexport type Roles403 = {\n  message: string;\n};\n\nexport type Roles404 = {\n  message: string;\n};\n\nexport type RolesAndConfig403 = {\n  message: string;\n};\n\nexport type RolesAndConfig404 = {\n  message: string;\n};\n\nexport type AuthenticationInformation403 = {\n  message: string;\n};\n\nexport type CreatePassword201 = {\n  success: boolean;\n};\n\nexport type CreatePassword400 = {\n  message: string;\n};\n\nexport type CreatePassword403 = {\n  message: string;\n};\n\nexport type CreateTotpFactor400 = {\n  message: string;\n};\n\nexport type CreateTotpFactor403 = {\n  message: string;\n};\n\nexport type Me403 = {\n  message: string;\n};\n\nexport type UpdateMeBody = {\n  firstName?: string;\n  lastName?: string;\n  locale?: string;\n};\n\nexport type UpdateMe400 = {\n  message: string;\n};\n\nexport type UpdateMe403 = {\n  message: string;\n};\n\nexport type RegisterPasskey400 = {\n  message: string;\n};\n\nexport type RegisterPasskey403 = {\n  message: string;\n};\n\nexport type VerifyPasskey200 = {\n  success: boolean;\n};\n\nexport type VerifyPasskey400 = {\n  message: string;\n};\n\nexport type VerifyPasskey403 = {\n  message: string;\n};\n\nexport type DeletePasskey200 = {\n  success: boolean;\n};\n\nexport type DeletePasskey400 = {\n  message: string;\n};\n\nexport type DeletePasskey403 = {\n  message: string;\n};\n\nexport type SendEmailChange400 = {\n  message: string;\n};\n\nexport type SendEmailChange403 = {\n  message: string;\n};\n\nexport type SendEmailChange409 = {\n  message: string;\n};\n\nexport type SendEmailChange422 = {\n  message: string;\n};\n\nexport type SendEmailChange429 = {\n  message: string;\n};\n\nexport type SendVerification400 = {\n  message: string;\n};\n\nexport type SendVerification403 = {\n  message: string;\n};\n\nexport type Sessions403 = {\n  message: string;\n};\n\nexport type RevokeAllSessions200 = {\n  success: boolean;\n};\n\nexport type RevokeAllSessions400 = {\n  message: string;\n};\n\nexport type RevokeAllSessions403 = {\n  message: string;\n};\n\nexport type RevokeSession200 = {\n  success: boolean;\n};\n\nexport type RevokeSession400 = {\n  message: string;\n};\n\nexport type RevokeSession403 = {\n  message: string;\n};\n\nexport type DeleteTotpFactors200 = {\n  success: boolean;\n};\n\nexport type DeleteTotpFactors400 = {\n  message: string;\n};\n\nexport type DeleteTotpFactors403 = {\n  message: string;\n};\n\nexport type UpdatePassword201 = {\n  success: boolean;\n};\n\nexport type UpdatePassword400 = {\n  message: string;\n};\n\nexport type UpdatePassword403 = {\n  message: string;\n};\n\nexport type Verify400 = {\n  message: string;\n};\n\nexport type Verify403 = {\n  message: string;\n};\n\nexport type VerifyEmailChange400 = {\n  message: string;\n};\n\nexport type VerifyEmailChange403 = {\n  message: string;\n};\n\nexport type VerifyEmailChange409 = {\n  message: string;\n};\n\nexport type VerifyEmailChange422 = {\n  message: string;\n};\n\nexport type VerifyEmailChange429 = {\n  message: string;\n};\n\nexport type VerifyTotpFactor200 = {\n  success: boolean;\n};\n\nexport type VerifyTotpFactor400 = {\n  message: string;\n};\n\nexport type VerifyTotpFactor403 = {\n  message: string;\n};\n\nexport type GetAuditLogStream200 =\n  | AuditLogStreamJSON\n  | { [key: string]: unknown };\n\nexport type GetAuditLogStream403 = {\n  message: string;\n};\n\nexport type GenerateAdminPortalLinkParams = {\n  intent: GenerateAdminPortalLinkIntent;\n};\n\nexport type GenerateAdminPortalLinkIntent =\n  (typeof GenerateAdminPortalLinkIntent)[keyof typeof GenerateAdminPortalLinkIntent];\n\nexport const GenerateAdminPortalLinkIntent = {\n  domain_verification: \"domain_verification\",\n  sso: \"sso\",\n  log_streams: \"log_streams\",\n} as const;\n\nexport type GenerateAdminPortalLink201 = {\n  link: string;\n};\n\nexport type GenerateAdminPortalLink403 = {\n  message: string;\n};\n\nexport type GenerateAdminPortalLink404 = {\n  message: string;\n};\n\nexport type GenerateAdminPortalLink500 = {\n  message: string;\n};\n\nexport type ListOrganizationDomains200 = {\n  data: OrganizationDomain[];\n};\n\nexport type ListOrganizationDomains403 = {\n  message: string;\n};\n\nexport type ListOrganizationDomains404 = {\n  message: string;\n};\n\nexport type DeleteOrganizationDomain403 = {\n  message: string;\n};\n\nexport type DeleteOrganizationDomain404 = {\n  message: string;\n};\n\nexport type ReverifyOrganizationDomain403 = {\n  message: string;\n};\n\nexport type ReverifyOrganizationDomain404 = {\n  message: string;\n};\n\nexport type ListDirectories403 = {\n  message: string;\n};\n\nexport type ListDirectories404 = {\n  message: string;\n};\n\nexport type GetDirectory403 = {\n  message: string;\n};\n\nexport type GetDirectory404 = {\n  message: string;\n};\n\nexport type Settings403 = {\n  message: string;\n};\n\nexport type createOrganizationApiKeyResponse201 = {\n  data: CreateOrganizationApiKeyResponse;\n  status: 201;\n};\n\nexport type createOrganizationApiKeyResponse400 = {\n  data: CreateOrganizationApiKey400;\n  status: 400;\n};\n\nexport type createOrganizationApiKeyResponse403 = {\n  data: CreateOrganizationApiKey403;\n  status: 403;\n};\n\nexport type createOrganizationApiKeyResponse404 = {\n  data: CreateOrganizationApiKey404;\n  status: 404;\n};\n\nexport type createOrganizationApiKeyResponse422 = {\n  data: CreateOrganizationApiKey422;\n  status: 422;\n};\n\nexport type createOrganizationApiKeyResponseSuccess =\n  createOrganizationApiKeyResponse201 & {\n    headers: Headers;\n  };\nexport type createOrganizationApiKeyResponseError = (\n  | createOrganizationApiKeyResponse400\n  | createOrganizationApiKeyResponse403\n  | createOrganizationApiKeyResponse404\n  | createOrganizationApiKeyResponse422\n) & {\n  headers: Headers;\n};\n\nexport type createOrganizationApiKeyResponse =\n  | createOrganizationApiKeyResponseSuccess\n  | createOrganizationApiKeyResponseError;\n\nexport const getCreateOrganizationApiKeyUrl = () => {\n  return `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;\n};\n\nexport const createOrganizationApiKey = async (\n  createOrganizationApiKeyRequest: CreateOrganizationApiKeyRequest,\n  options?: RequestInit,\n): Promise<createOrganizationApiKeyResponse> => {\n  const res = await fetch(getCreateOrganizationApiKeyUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(createOrganizationApiKeyRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: createOrganizationApiKeyResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as createOrganizationApiKeyResponse;\n};\n\nexport const getCreateOrganizationApiKeyMutationOptions = <\n  TError =\n    | CreateOrganizationApiKey400\n    | CreateOrganizationApiKey403\n    | CreateOrganizationApiKey404\n    | CreateOrganizationApiKey422,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof createOrganizationApiKey>>,\n    TError,\n    { data: CreateOrganizationApiKeyRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof createOrganizationApiKey>>,\n  TError,\n  { data: CreateOrganizationApiKeyRequest },\n  TContext\n> => {\n  const mutationKey = [\"createOrganizationApiKey\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof createOrganizationApiKey>>,\n    { data: CreateOrganizationApiKeyRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return createOrganizationApiKey(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type CreateOrganizationApiKeyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof createOrganizationApiKey>>\n>;\nexport type CreateOrganizationApiKeyMutationBody =\n  CreateOrganizationApiKeyRequest;\nexport type CreateOrganizationApiKeyMutationError =\n  | CreateOrganizationApiKey400\n  | CreateOrganizationApiKey403\n  | CreateOrganizationApiKey404\n  | CreateOrganizationApiKey422;\n\nexport const useCreateOrganizationApiKey = <\n  TError =\n    | CreateOrganizationApiKey400\n    | CreateOrganizationApiKey403\n    | CreateOrganizationApiKey404\n    | CreateOrganizationApiKey422,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof createOrganizationApiKey>>,\n      TError,\n      { data: CreateOrganizationApiKeyRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof createOrganizationApiKey>>,\n  TError,\n  { data: CreateOrganizationApiKeyRequest },\n  TContext\n> => {\n  return useMutation(\n    getCreateOrganizationApiKeyMutationOptions(options),\n    queryClient,\n  );\n};\n\nexport type listOrganizationApiKeysResponse200 = {\n  data: ListOrganizationApiKeysResponse;\n  status: 200;\n};\n\nexport type listOrganizationApiKeysResponse400 = {\n  data: ListOrganizationApiKeys400;\n  status: 400;\n};\n\nexport type listOrganizationApiKeysResponse403 = {\n  data: ListOrganizationApiKeys403;\n  status: 403;\n};\n\nexport type listOrganizationApiKeysResponseSuccess =\n  listOrganizationApiKeysResponse200 & {\n    headers: Headers;\n  };\nexport type listOrganizationApiKeysResponseError = (\n  | listOrganizationApiKeysResponse400\n  | listOrganizationApiKeysResponse403\n) & {\n  headers: Headers;\n};\n\nexport type listOrganizationApiKeysResponse =\n  | listOrganizationApiKeysResponseSuccess\n  | listOrganizationApiKeysResponseError;\n\nexport const getListOrganizationApiKeysUrl = (\n  params?: ListOrganizationApiKeysParams,\n) => {\n  const normalizedParams = new URLSearchParams();\n\n  Object.entries(params || {}).forEach(([key, value]) => {\n    if (value !== undefined) {\n      normalizedParams.append(key, value === null ? \"null\" : value.toString());\n    }\n  });\n\n  const stringifiedParams = normalizedParams.toString();\n\n  return stringifiedParams.length > 0\n    ? `https://api.workos.com/_widgets/ApiKeys/organization-api-keys?${stringifiedParams}`\n    : `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;\n};\n\nexport const listOrganizationApiKeys = async (\n  params?: ListOrganizationApiKeysParams,\n  options?: RequestInit,\n): Promise<listOrganizationApiKeysResponse> => {\n  const res = await fetch(getListOrganizationApiKeysUrl(params), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: listOrganizationApiKeysResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as listOrganizationApiKeysResponse;\n};\n\nexport const getListOrganizationApiKeysQueryKey = (\n  params?: ListOrganizationApiKeysParams,\n) => {\n  return [\n    `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`,\n    ...(params ? [params] : []),\n  ] as const;\n};\n\nexport const getListOrganizationApiKeysQueryOptions = <\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n  TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403,\n>(\n  params?: ListOrganizationApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ?? getListOrganizationApiKeysQueryKey(params);\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof listOrganizationApiKeys>>\n  > = ({ signal }) =>\n    listOrganizationApiKeys(params, { signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type ListOrganizationApiKeysQueryResult = NonNullable<\n  Awaited<ReturnType<typeof listOrganizationApiKeys>>\n>;\nexport type ListOrganizationApiKeysQueryError =\n  | ListOrganizationApiKeys400\n  | ListOrganizationApiKeys403;\n\nexport function useListOrganizationApiKeys<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n  TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403,\n>(\n  params: undefined | ListOrganizationApiKeysParams,\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n          TError,\n          Awaited<ReturnType<typeof listOrganizationApiKeys>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListOrganizationApiKeys<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n  TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403,\n>(\n  params?: ListOrganizationApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n          TError,\n          Awaited<ReturnType<typeof listOrganizationApiKeys>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListOrganizationApiKeys<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n  TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403,\n>(\n  params?: ListOrganizationApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useListOrganizationApiKeys<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n  TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403,\n>(\n  params?: ListOrganizationApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeys>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getListOrganizationApiKeysQueryOptions(params, options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type listOrganizationApiKeyPermissionsResponse200 = {\n  data: ListOrganizationApiKeyPermissionsResponse;\n  status: 200;\n};\n\nexport type listOrganizationApiKeyPermissionsResponse400 = {\n  data: ListOrganizationApiKeyPermissions400;\n  status: 400;\n};\n\nexport type listOrganizationApiKeyPermissionsResponse403 = {\n  data: ListOrganizationApiKeyPermissions403;\n  status: 403;\n};\n\nexport type listOrganizationApiKeyPermissionsResponseSuccess =\n  listOrganizationApiKeyPermissionsResponse200 & {\n    headers: Headers;\n  };\nexport type listOrganizationApiKeyPermissionsResponseError = (\n  | listOrganizationApiKeyPermissionsResponse400\n  | listOrganizationApiKeyPermissionsResponse403\n) & {\n  headers: Headers;\n};\n\nexport type listOrganizationApiKeyPermissionsResponse =\n  | listOrganizationApiKeyPermissionsResponseSuccess\n  | listOrganizationApiKeyPermissionsResponseError;\n\nexport const getListOrganizationApiKeyPermissionsUrl = (\n  params?: ListOrganizationApiKeyPermissionsParams,\n) => {\n  const normalizedParams = new URLSearchParams();\n\n  Object.entries(params || {}).forEach(([key, value]) => {\n    if (value !== undefined) {\n      normalizedParams.append(key, value === null ? \"null\" : value.toString());\n    }\n  });\n\n  const stringifiedParams = normalizedParams.toString();\n\n  return stringifiedParams.length > 0\n    ? `https://api.workos.com/_widgets/ApiKeys/permissions?${stringifiedParams}`\n    : `https://api.workos.com/_widgets/ApiKeys/permissions`;\n};\n\nexport const listOrganizationApiKeyPermissions = async (\n  params?: ListOrganizationApiKeyPermissionsParams,\n  options?: RequestInit,\n): Promise<listOrganizationApiKeyPermissionsResponse> => {\n  const res = await fetch(getListOrganizationApiKeyPermissionsUrl(params), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: listOrganizationApiKeyPermissionsResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as listOrganizationApiKeyPermissionsResponse;\n};\n\nexport const getListOrganizationApiKeyPermissionsQueryKey = (\n  params?: ListOrganizationApiKeyPermissionsParams,\n) => {\n  return [\n    `https://api.workos.com/_widgets/ApiKeys/permissions`,\n    ...(params ? [params] : []),\n  ] as const;\n};\n\nexport const getListOrganizationApiKeyPermissionsQueryOptions = <\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n  TError =\n    | ListOrganizationApiKeyPermissions400\n    | ListOrganizationApiKeyPermissions403,\n>(\n  params?: ListOrganizationApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ??\n    getListOrganizationApiKeyPermissionsQueryKey(params);\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>\n  > = ({ signal }) =>\n    listOrganizationApiKeyPermissions(params, { signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type ListOrganizationApiKeyPermissionsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>\n>;\nexport type ListOrganizationApiKeyPermissionsQueryError =\n  | ListOrganizationApiKeyPermissions400\n  | ListOrganizationApiKeyPermissions403;\n\nexport function useListOrganizationApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n  TError =\n    | ListOrganizationApiKeyPermissions400\n    | ListOrganizationApiKeyPermissions403,\n>(\n  params: undefined | ListOrganizationApiKeyPermissionsParams,\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n          TError,\n          Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListOrganizationApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n  TError =\n    | ListOrganizationApiKeyPermissions400\n    | ListOrganizationApiKeyPermissions403,\n>(\n  params?: ListOrganizationApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n          TError,\n          Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListOrganizationApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n  TError =\n    | ListOrganizationApiKeyPermissions400\n    | ListOrganizationApiKeyPermissions403,\n>(\n  params?: ListOrganizationApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useListOrganizationApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n  TError =\n    | ListOrganizationApiKeyPermissions400\n    | ListOrganizationApiKeyPermissions403,\n>(\n  params?: ListOrganizationApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getListOrganizationApiKeyPermissionsQueryOptions(\n    params,\n    options,\n  );\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type deleteOrganizationApiKeyResponse200 = {\n  data: DeleteOrganizationApiKey200;\n  status: 200;\n};\n\nexport type deleteOrganizationApiKeyResponse403 = {\n  data: DeleteOrganizationApiKey403;\n  status: 403;\n};\n\nexport type deleteOrganizationApiKeyResponse404 = {\n  data: DeleteOrganizationApiKey404;\n  status: 404;\n};\n\nexport type deleteOrganizationApiKeyResponseSuccess =\n  deleteOrganizationApiKeyResponse200 & {\n    headers: Headers;\n  };\nexport type deleteOrganizationApiKeyResponseError = (\n  | deleteOrganizationApiKeyResponse403\n  | deleteOrganizationApiKeyResponse404\n) & {\n  headers: Headers;\n};\n\nexport type deleteOrganizationApiKeyResponse =\n  | deleteOrganizationApiKeyResponseSuccess\n  | deleteOrganizationApiKeyResponseError;\n\nexport const getDeleteOrganizationApiKeyUrl = (apiKeyId: string) => {\n  return `https://api.workos.com/_widgets/ApiKeys/${apiKeyId}`;\n};\n\nexport const deleteOrganizationApiKey = async (\n  apiKeyId: string,\n  options?: RequestInit,\n): Promise<deleteOrganizationApiKeyResponse> => {\n  const res = await fetch(getDeleteOrganizationApiKeyUrl(apiKeyId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: deleteOrganizationApiKeyResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as deleteOrganizationApiKeyResponse;\n};\n\nexport const getDeleteOrganizationApiKeyMutationOptions = <\n  TError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof deleteOrganizationApiKey>>,\n    TError,\n    { apiKeyId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof deleteOrganizationApiKey>>,\n  TError,\n  { apiKeyId: string },\n  TContext\n> => {\n  const mutationKey = [\"deleteOrganizationApiKey\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof deleteOrganizationApiKey>>,\n    { apiKeyId: string }\n  > = (props) => {\n    const { apiKeyId } = props ?? {};\n\n    return deleteOrganizationApiKey(apiKeyId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganizationApiKeyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof deleteOrganizationApiKey>>\n>;\n\nexport type DeleteOrganizationApiKeyMutationError =\n  | DeleteOrganizationApiKey403\n  | DeleteOrganizationApiKey404;\n\nexport const useDeleteOrganizationApiKey = <\n  TError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof deleteOrganizationApiKey>>,\n      TError,\n      { apiKeyId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof deleteOrganizationApiKey>>,\n  TError,\n  { apiKeyId: string },\n  TContext\n> => {\n  return useMutation(\n    getDeleteOrganizationApiKeyMutationOptions(options),\n    queryClient,\n  );\n};\n\nexport type deleteDataInstallationResponse200 = {\n  data: DeleteDataInstallation200;\n  status: 200;\n};\n\nexport type deleteDataInstallationResponse403 = {\n  data: DeleteDataInstallation403;\n  status: 403;\n};\n\nexport type deleteDataInstallationResponse404 = {\n  data: DeleteDataInstallation404;\n  status: 404;\n};\n\nexport type deleteDataInstallationResponseSuccess =\n  deleteDataInstallationResponse200 & {\n    headers: Headers;\n  };\nexport type deleteDataInstallationResponseError = (\n  | deleteDataInstallationResponse403\n  | deleteDataInstallationResponse404\n) & {\n  headers: Headers;\n};\n\nexport type deleteDataInstallationResponse =\n  | deleteDataInstallationResponseSuccess\n  | deleteDataInstallationResponseError;\n\nexport const getDeleteDataInstallationUrl = (installationId: string) => {\n  return `https://api.workos.com/_widgets/DataIntegrations/installations/${installationId}`;\n};\n\nexport const deleteDataInstallation = async (\n  installationId: string,\n  options?: RequestInit,\n): Promise<deleteDataInstallationResponse> => {\n  const res = await fetch(getDeleteDataInstallationUrl(installationId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: deleteDataInstallationResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as deleteDataInstallationResponse;\n};\n\nexport const getDeleteDataInstallationMutationOptions = <\n  TError = DeleteDataInstallation403 | DeleteDataInstallation404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof deleteDataInstallation>>,\n    TError,\n    { installationId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof deleteDataInstallation>>,\n  TError,\n  { installationId: string },\n  TContext\n> => {\n  const mutationKey = [\"deleteDataInstallation\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof deleteDataInstallation>>,\n    { installationId: string }\n  > = (props) => {\n    const { installationId } = props ?? {};\n\n    return deleteDataInstallation(installationId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteDataInstallationMutationResult = NonNullable<\n  Awaited<ReturnType<typeof deleteDataInstallation>>\n>;\n\nexport type DeleteDataInstallationMutationError =\n  | DeleteDataInstallation403\n  | DeleteDataInstallation404;\n\nexport const useDeleteDataInstallation = <\n  TError = DeleteDataInstallation403 | DeleteDataInstallation404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof deleteDataInstallation>>,\n      TError,\n      { installationId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof deleteDataInstallation>>,\n  TError,\n  { installationId: string },\n  TContext\n> => {\n  return useMutation(\n    getDeleteDataInstallationMutationOptions(options),\n    queryClient,\n  );\n};\n\nexport type myDataIntegrationsResponse200 = {\n  data: DataIntegrationsResponse;\n  status: 200;\n};\n\nexport type myDataIntegrationsResponse403 = {\n  data: MyDataIntegrations403;\n  status: 403;\n};\n\nexport type myDataIntegrationsResponseSuccess =\n  myDataIntegrationsResponse200 & {\n    headers: Headers;\n  };\nexport type myDataIntegrationsResponseError = myDataIntegrationsResponse403 & {\n  headers: Headers;\n};\n\nexport type myDataIntegrationsResponse =\n  | myDataIntegrationsResponseSuccess\n  | myDataIntegrationsResponseError;\n\nexport const getMyDataIntegrationsUrl = () => {\n  return `https://api.workos.com/_widgets/DataIntegrations/mine`;\n};\n\nexport const myDataIntegrations = async (\n  options?: RequestInit,\n): Promise<myDataIntegrationsResponse> => {\n  const res = await fetch(getMyDataIntegrationsUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: myDataIntegrationsResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as myDataIntegrationsResponse;\n};\n\nexport const getMyDataIntegrationsQueryKey = () => {\n  return [`https://api.workos.com/_widgets/DataIntegrations/mine`] as const;\n};\n\nexport const getMyDataIntegrationsQueryOptions = <\n  TData = Awaited<ReturnType<typeof myDataIntegrations>>,\n  TError = MyDataIntegrations403,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<\n      Awaited<ReturnType<typeof myDataIntegrations>>,\n      TError,\n      TData\n    >\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getMyDataIntegrationsQueryKey();\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof myDataIntegrations>>\n  > = ({ signal }) => myDataIntegrations({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof myDataIntegrations>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type MyDataIntegrationsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof myDataIntegrations>>\n>;\nexport type MyDataIntegrationsQueryError = MyDataIntegrations403;\n\nexport function useMyDataIntegrations<\n  TData = Awaited<ReturnType<typeof myDataIntegrations>>,\n  TError = MyDataIntegrations403,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof myDataIntegrations>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof myDataIntegrations>>,\n          TError,\n          Awaited<ReturnType<typeof myDataIntegrations>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useMyDataIntegrations<\n  TData = Awaited<ReturnType<typeof myDataIntegrations>>,\n  TError = MyDataIntegrations403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof myDataIntegrations>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof myDataIntegrations>>,\n          TError,\n          Awaited<ReturnType<typeof myDataIntegrations>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useMyDataIntegrations<\n  TData = Awaited<ReturnType<typeof myDataIntegrations>>,\n  TError = MyDataIntegrations403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof myDataIntegrations>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useMyDataIntegrations<\n  TData = Awaited<ReturnType<typeof myDataIntegrations>>,\n  TError = MyDataIntegrations403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof myDataIntegrations>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getMyDataIntegrationsQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type getDataInstallationAuthorizationStatusResponse200 = {\n  data: GetAuthorizationStatusResponse;\n  status: 200;\n};\n\nexport type getDataInstallationAuthorizationStatusResponse400 = {\n  data: GetDataInstallationAuthorizationStatus400;\n  status: 400;\n};\n\nexport type getDataInstallationAuthorizationStatusResponse403 = {\n  data: GetDataInstallationAuthorizationStatus403;\n  status: 403;\n};\n\nexport type getDataInstallationAuthorizationStatusResponse404 = {\n  data: GetDataInstallationAuthorizationStatus404;\n  status: 404;\n};\n\nexport type getDataInstallationAuthorizationStatusResponseSuccess =\n  getDataInstallationAuthorizationStatusResponse200 & {\n    headers: Headers;\n  };\nexport type getDataInstallationAuthorizationStatusResponseError = (\n  | getDataInstallationAuthorizationStatusResponse400\n  | getDataInstallationAuthorizationStatusResponse403\n  | getDataInstallationAuthorizationStatusResponse404\n) & {\n  headers: Headers;\n};\n\nexport type getDataInstallationAuthorizationStatusResponse =\n  | getDataInstallationAuthorizationStatusResponseSuccess\n  | getDataInstallationAuthorizationStatusResponseError;\n\nexport const getGetDataInstallationAuthorizationStatusUrl = (\n  dataIntegrationId: string,\n  state: string,\n) => {\n  return `https://api.workos.com/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`;\n};\n\nexport const getDataInstallationAuthorizationStatus = async (\n  dataIntegrationId: string,\n  state: string,\n  options?: RequestInit,\n): Promise<getDataInstallationAuthorizationStatusResponse> => {\n  const res = await fetch(\n    getGetDataInstallationAuthorizationStatusUrl(dataIntegrationId, state),\n    {\n      ...options,\n      method: \"GET\",\n    },\n  );\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: getDataInstallationAuthorizationStatusResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as getDataInstallationAuthorizationStatusResponse;\n};\n\nexport const getGetDataInstallationAuthorizationStatusQueryKey = (\n  dataIntegrationId: string,\n  state: string,\n) => {\n  return [\n    `https://api.workos.com/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`,\n  ] as const;\n};\n\nexport const getGetDataInstallationAuthorizationStatusQueryOptions = <\n  TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n  TError =\n    | GetDataInstallationAuthorizationStatus400\n    | GetDataInstallationAuthorizationStatus403\n    | GetDataInstallationAuthorizationStatus404,\n>(\n  dataIntegrationId: string,\n  state: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ??\n    getGetDataInstallationAuthorizationStatusQueryKey(dataIntegrationId, state);\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>\n  > = ({ signal }) =>\n    getDataInstallationAuthorizationStatus(dataIntegrationId, state, {\n      signal,\n      ...fetchOptions,\n    });\n\n  return {\n    queryKey,\n    queryFn,\n    enabled: !!(dataIntegrationId && state),\n    ...queryOptions,\n  } as UseQueryOptions<\n    Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDataInstallationAuthorizationStatusQueryResult = NonNullable<\n  Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>\n>;\nexport type GetDataInstallationAuthorizationStatusQueryError =\n  | GetDataInstallationAuthorizationStatus400\n  | GetDataInstallationAuthorizationStatus403\n  | GetDataInstallationAuthorizationStatus404;\n\nexport function useGetDataInstallationAuthorizationStatus<\n  TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n  TError =\n    | GetDataInstallationAuthorizationStatus400\n    | GetDataInstallationAuthorizationStatus403\n    | GetDataInstallationAuthorizationStatus404,\n>(\n  dataIntegrationId: string,\n  state: string,\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n          TError,\n          Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetDataInstallationAuthorizationStatus<\n  TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n  TError =\n    | GetDataInstallationAuthorizationStatus400\n    | GetDataInstallationAuthorizationStatus403\n    | GetDataInstallationAuthorizationStatus404,\n>(\n  dataIntegrationId: string,\n  state: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n          TError,\n          Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetDataInstallationAuthorizationStatus<\n  TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n  TError =\n    | GetDataInstallationAuthorizationStatus400\n    | GetDataInstallationAuthorizationStatus403\n    | GetDataInstallationAuthorizationStatus404,\n>(\n  dataIntegrationId: string,\n  state: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useGetDataInstallationAuthorizationStatus<\n  TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n  TError =\n    | GetDataInstallationAuthorizationStatus400\n    | GetDataInstallationAuthorizationStatus403\n    | GetDataInstallationAuthorizationStatus404,\n>(\n  dataIntegrationId: string,\n  state: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getGetDataInstallationAuthorizationStatusQueryOptions(\n    dataIntegrationId,\n    state,\n    options,\n  );\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type getDataIntegrationAuthorizeUrlResponse200 = {\n  data: GetDataIntegrationAuthorizeUrlResponse;\n  status: 200;\n};\n\nexport type getDataIntegrationAuthorizeUrlResponse400 = {\n  data: GetDataIntegrationAuthorizeUrl400;\n  status: 400;\n};\n\nexport type getDataIntegrationAuthorizeUrlResponse403 = {\n  data: GetDataIntegrationAuthorizeUrl403;\n  status: 403;\n};\n\nexport type getDataIntegrationAuthorizeUrlResponse404 = {\n  data: GetDataIntegrationAuthorizeUrl404;\n  status: 404;\n};\n\nexport type getDataIntegrationAuthorizeUrlResponseSuccess =\n  getDataIntegrationAuthorizeUrlResponse200 & {\n    headers: Headers;\n  };\nexport type getDataIntegrationAuthorizeUrlResponseError = (\n  | getDataIntegrationAuthorizeUrlResponse400\n  | getDataIntegrationAuthorizeUrlResponse403\n  | getDataIntegrationAuthorizeUrlResponse404\n) & {\n  headers: Headers;\n};\n\nexport type getDataIntegrationAuthorizeUrlResponse =\n  | getDataIntegrationAuthorizeUrlResponseSuccess\n  | getDataIntegrationAuthorizeUrlResponseError;\n\nexport const getGetDataIntegrationAuthorizeUrlUrl = (\n  slug: string,\n  params?: GetDataIntegrationAuthorizeUrlParams,\n) => {\n  const normalizedParams = new URLSearchParams();\n\n  Object.entries(params || {}).forEach(([key, value]) => {\n    if (value !== undefined) {\n      normalizedParams.append(key, value === null ? \"null\" : value.toString());\n    }\n  });\n\n  const stringifiedParams = normalizedParams.toString();\n\n  return stringifiedParams.length > 0\n    ? `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize?${stringifiedParams}`\n    : `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`;\n};\n\nexport const getDataIntegrationAuthorizeUrl = async (\n  slug: string,\n  params?: GetDataIntegrationAuthorizeUrlParams,\n  options?: RequestInit,\n): Promise<getDataIntegrationAuthorizeUrlResponse> => {\n  const res = await fetch(getGetDataIntegrationAuthorizeUrlUrl(slug, params), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: getDataIntegrationAuthorizeUrlResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as getDataIntegrationAuthorizeUrlResponse;\n};\n\nexport const getGetDataIntegrationAuthorizeUrlQueryKey = (\n  slug: string,\n  params?: GetDataIntegrationAuthorizeUrlParams,\n) => {\n  return [\n    `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`,\n    ...(params ? [params] : []),\n  ] as const;\n};\n\nexport const getGetDataIntegrationAuthorizeUrlQueryOptions = <\n  TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n  TError =\n    | GetDataIntegrationAuthorizeUrl400\n    | GetDataIntegrationAuthorizeUrl403\n    | GetDataIntegrationAuthorizeUrl404,\n>(\n  slug: string,\n  params?: GetDataIntegrationAuthorizeUrlParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ??\n    getGetDataIntegrationAuthorizeUrlQueryKey(slug, params);\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>\n  > = ({ signal }) =>\n    getDataIntegrationAuthorizeUrl(slug, params, { signal, ...fetchOptions });\n\n  return {\n    queryKey,\n    queryFn,\n    enabled: !!slug,\n    ...queryOptions,\n  } as UseQueryOptions<\n    Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDataIntegrationAuthorizeUrlQueryResult = NonNullable<\n  Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>\n>;\nexport type GetDataIntegrationAuthorizeUrlQueryError =\n  | GetDataIntegrationAuthorizeUrl400\n  | GetDataIntegrationAuthorizeUrl403\n  | GetDataIntegrationAuthorizeUrl404;\n\nexport function useGetDataIntegrationAuthorizeUrl<\n  TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n  TError =\n    | GetDataIntegrationAuthorizeUrl400\n    | GetDataIntegrationAuthorizeUrl403\n    | GetDataIntegrationAuthorizeUrl404,\n>(\n  slug: string,\n  params: undefined | GetDataIntegrationAuthorizeUrlParams,\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n          TError,\n          Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetDataIntegrationAuthorizeUrl<\n  TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n  TError =\n    | GetDataIntegrationAuthorizeUrl400\n    | GetDataIntegrationAuthorizeUrl403\n    | GetDataIntegrationAuthorizeUrl404,\n>(\n  slug: string,\n  params?: GetDataIntegrationAuthorizeUrlParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n          TError,\n          Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetDataIntegrationAuthorizeUrl<\n  TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n  TError =\n    | GetDataIntegrationAuthorizeUrl400\n    | GetDataIntegrationAuthorizeUrl403\n    | GetDataIntegrationAuthorizeUrl404,\n>(\n  slug: string,\n  params?: GetDataIntegrationAuthorizeUrlParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useGetDataIntegrationAuthorizeUrl<\n  TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n  TError =\n    | GetDataIntegrationAuthorizeUrl400\n    | GetDataIntegrationAuthorizeUrl403\n    | GetDataIntegrationAuthorizeUrl404,\n>(\n  slug: string,\n  params?: GetDataIntegrationAuthorizeUrlParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getGetDataIntegrationAuthorizeUrlQueryOptions(\n    slug,\n    params,\n    options,\n  );\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type createUserApiKeyResponse201 = {\n  data: CreateUserApiKeyResponse;\n  status: 201;\n};\n\nexport type createUserApiKeyResponse400 = {\n  data: CreateUserApiKey400;\n  status: 400;\n};\n\nexport type createUserApiKeyResponse403 = {\n  data: CreateUserApiKey403;\n  status: 403;\n};\n\nexport type createUserApiKeyResponse404 = {\n  data: CreateUserApiKey404;\n  status: 404;\n};\n\nexport type createUserApiKeyResponse422 = {\n  data: CreateUserApiKey422;\n  status: 422;\n};\n\nexport type createUserApiKeyResponseSuccess = createUserApiKeyResponse201 & {\n  headers: Headers;\n};\nexport type createUserApiKeyResponseError = (\n  | createUserApiKeyResponse400\n  | createUserApiKeyResponse403\n  | createUserApiKeyResponse404\n  | createUserApiKeyResponse422\n) & {\n  headers: Headers;\n};\n\nexport type createUserApiKeyResponse =\n  | createUserApiKeyResponseSuccess\n  | createUserApiKeyResponseError;\n\nexport const getCreateUserApiKeyUrl = () => {\n  return `https://api.workos.com/_widgets/UserApiKeys/api-keys`;\n};\n\nexport const createUserApiKey = async (\n  createUserApiKeyRequest: CreateUserApiKeyRequest,\n  options?: RequestInit,\n): Promise<createUserApiKeyResponse> => {\n  const res = await fetch(getCreateUserApiKeyUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(createUserApiKeyRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: createUserApiKeyResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as createUserApiKeyResponse;\n};\n\nexport const getCreateUserApiKeyMutationOptions = <\n  TError =\n    | CreateUserApiKey400\n    | CreateUserApiKey403\n    | CreateUserApiKey404\n    | CreateUserApiKey422,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof createUserApiKey>>,\n    TError,\n    { data: CreateUserApiKeyRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof createUserApiKey>>,\n  TError,\n  { data: CreateUserApiKeyRequest },\n  TContext\n> => {\n  const mutationKey = [\"createUserApiKey\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof createUserApiKey>>,\n    { data: CreateUserApiKeyRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return createUserApiKey(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type CreateUserApiKeyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof createUserApiKey>>\n>;\nexport type CreateUserApiKeyMutationBody = CreateUserApiKeyRequest;\nexport type CreateUserApiKeyMutationError =\n  | CreateUserApiKey400\n  | CreateUserApiKey403\n  | CreateUserApiKey404\n  | CreateUserApiKey422;\n\nexport const useCreateUserApiKey = <\n  TError =\n    | CreateUserApiKey400\n    | CreateUserApiKey403\n    | CreateUserApiKey404\n    | CreateUserApiKey422,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof createUserApiKey>>,\n      TError,\n      { data: CreateUserApiKeyRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof createUserApiKey>>,\n  TError,\n  { data: CreateUserApiKeyRequest },\n  TContext\n> => {\n  return useMutation(getCreateUserApiKeyMutationOptions(options), queryClient);\n};\n\nexport type listUserApiKeysResponse200 = {\n  data: ListUserApiKeysResponse;\n  status: 200;\n};\n\nexport type listUserApiKeysResponse400 = {\n  data: ListUserApiKeys400;\n  status: 400;\n};\n\nexport type listUserApiKeysResponse403 = {\n  data: ListUserApiKeys403;\n  status: 403;\n};\n\nexport type listUserApiKeysResponseSuccess = listUserApiKeysResponse200 & {\n  headers: Headers;\n};\nexport type listUserApiKeysResponseError = (\n  | listUserApiKeysResponse400\n  | listUserApiKeysResponse403\n) & {\n  headers: Headers;\n};\n\nexport type listUserApiKeysResponse =\n  | listUserApiKeysResponseSuccess\n  | listUserApiKeysResponseError;\n\nexport const getListUserApiKeysUrl = (params?: ListUserApiKeysParams) => {\n  const normalizedParams = new URLSearchParams();\n\n  Object.entries(params || {}).forEach(([key, value]) => {\n    if (value !== undefined) {\n      normalizedParams.append(key, value === null ? \"null\" : value.toString());\n    }\n  });\n\n  const stringifiedParams = normalizedParams.toString();\n\n  return stringifiedParams.length > 0\n    ? `https://api.workos.com/_widgets/UserApiKeys/api-keys?${stringifiedParams}`\n    : `https://api.workos.com/_widgets/UserApiKeys/api-keys`;\n};\n\nexport const listUserApiKeys = async (\n  params?: ListUserApiKeysParams,\n  options?: RequestInit,\n): Promise<listUserApiKeysResponse> => {\n  const res = await fetch(getListUserApiKeysUrl(params), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: listUserApiKeysResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as listUserApiKeysResponse;\n};\n\nexport const getListUserApiKeysQueryKey = (params?: ListUserApiKeysParams) => {\n  return [\n    `https://api.workos.com/_widgets/UserApiKeys/api-keys`,\n    ...(params ? [params] : []),\n  ] as const;\n};\n\nexport const getListUserApiKeysQueryOptions = <\n  TData = Awaited<ReturnType<typeof listUserApiKeys>>,\n  TError = ListUserApiKeys400 | ListUserApiKeys403,\n>(\n  params?: ListUserApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeys>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getListUserApiKeysQueryKey(params);\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof listUserApiKeys>>> = ({\n    signal,\n  }) => listUserApiKeys(params, { signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof listUserApiKeys>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type ListUserApiKeysQueryResult = NonNullable<\n  Awaited<ReturnType<typeof listUserApiKeys>>\n>;\nexport type ListUserApiKeysQueryError = ListUserApiKeys400 | ListUserApiKeys403;\n\nexport function useListUserApiKeys<\n  TData = Awaited<ReturnType<typeof listUserApiKeys>>,\n  TError = ListUserApiKeys400 | ListUserApiKeys403,\n>(\n  params: undefined | ListUserApiKeysParams,\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeys>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listUserApiKeys>>,\n          TError,\n          Awaited<ReturnType<typeof listUserApiKeys>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListUserApiKeys<\n  TData = Awaited<ReturnType<typeof listUserApiKeys>>,\n  TError = ListUserApiKeys400 | ListUserApiKeys403,\n>(\n  params?: ListUserApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeys>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listUserApiKeys>>,\n          TError,\n          Awaited<ReturnType<typeof listUserApiKeys>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListUserApiKeys<\n  TData = Awaited<ReturnType<typeof listUserApiKeys>>,\n  TError = ListUserApiKeys400 | ListUserApiKeys403,\n>(\n  params?: ListUserApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeys>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useListUserApiKeys<\n  TData = Awaited<ReturnType<typeof listUserApiKeys>>,\n  TError = ListUserApiKeys400 | ListUserApiKeys403,\n>(\n  params?: ListUserApiKeysParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeys>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getListUserApiKeysQueryOptions(params, options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type listUserApiKeyPermissionsResponse200 = {\n  data: ListUserApiKeyPermissionsResponse;\n  status: 200;\n};\n\nexport type listUserApiKeyPermissionsResponse400 = {\n  data: ListUserApiKeyPermissions400;\n  status: 400;\n};\n\nexport type listUserApiKeyPermissionsResponse403 = {\n  data: ListUserApiKeyPermissions403;\n  status: 403;\n};\n\nexport type listUserApiKeyPermissionsResponseSuccess =\n  listUserApiKeyPermissionsResponse200 & {\n    headers: Headers;\n  };\nexport type listUserApiKeyPermissionsResponseError = (\n  | listUserApiKeyPermissionsResponse400\n  | listUserApiKeyPermissionsResponse403\n) & {\n  headers: Headers;\n};\n\nexport type listUserApiKeyPermissionsResponse =\n  | listUserApiKeyPermissionsResponseSuccess\n  | listUserApiKeyPermissionsResponseError;\n\nexport const getListUserApiKeyPermissionsUrl = (\n  params?: ListUserApiKeyPermissionsParams,\n) => {\n  const normalizedParams = new URLSearchParams();\n\n  Object.entries(params || {}).forEach(([key, value]) => {\n    if (value !== undefined) {\n      normalizedParams.append(key, value === null ? \"null\" : value.toString());\n    }\n  });\n\n  const stringifiedParams = normalizedParams.toString();\n\n  return stringifiedParams.length > 0\n    ? `https://api.workos.com/_widgets/UserApiKeys/permissions?${stringifiedParams}`\n    : `https://api.workos.com/_widgets/UserApiKeys/permissions`;\n};\n\nexport const listUserApiKeyPermissions = async (\n  params?: ListUserApiKeyPermissionsParams,\n  options?: RequestInit,\n): Promise<listUserApiKeyPermissionsResponse> => {\n  const res = await fetch(getListUserApiKeyPermissionsUrl(params), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: listUserApiKeyPermissionsResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as listUserApiKeyPermissionsResponse;\n};\n\nexport const getListUserApiKeyPermissionsQueryKey = (\n  params?: ListUserApiKeyPermissionsParams,\n) => {\n  return [\n    `https://api.workos.com/_widgets/UserApiKeys/permissions`,\n    ...(params ? [params] : []),\n  ] as const;\n};\n\nexport const getListUserApiKeyPermissionsQueryOptions = <\n  TData = Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n  TError = ListUserApiKeyPermissions400 | ListUserApiKeyPermissions403,\n>(\n  params?: ListUserApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ?? getListUserApiKeyPermissionsQueryKey(params);\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof listUserApiKeyPermissions>>\n  > = ({ signal }) =>\n    listUserApiKeyPermissions(params, { signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type ListUserApiKeyPermissionsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof listUserApiKeyPermissions>>\n>;\nexport type ListUserApiKeyPermissionsQueryError =\n  | ListUserApiKeyPermissions400\n  | ListUserApiKeyPermissions403;\n\nexport function useListUserApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n  TError = ListUserApiKeyPermissions400 | ListUserApiKeyPermissions403,\n>(\n  params: undefined | ListUserApiKeyPermissionsParams,\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n          TError,\n          Awaited<ReturnType<typeof listUserApiKeyPermissions>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListUserApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n  TError = ListUserApiKeyPermissions400 | ListUserApiKeyPermissions403,\n>(\n  params?: ListUserApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n          TError,\n          Awaited<ReturnType<typeof listUserApiKeyPermissions>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListUserApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n  TError = ListUserApiKeyPermissions400 | ListUserApiKeyPermissions403,\n>(\n  params?: ListUserApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useListUserApiKeyPermissions<\n  TData = Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n  TError = ListUserApiKeyPermissions400 | ListUserApiKeyPermissions403,\n>(\n  params?: ListUserApiKeyPermissionsParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listUserApiKeyPermissions>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getListUserApiKeyPermissionsQueryOptions(\n    params,\n    options,\n  );\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type deleteUserApiKeyResponse200 = {\n  data: DeleteUserApiKey200;\n  status: 200;\n};\n\nexport type deleteUserApiKeyResponse403 = {\n  data: DeleteUserApiKey403;\n  status: 403;\n};\n\nexport type deleteUserApiKeyResponse404 = {\n  data: DeleteUserApiKey404;\n  status: 404;\n};\n\nexport type deleteUserApiKeyResponseSuccess = deleteUserApiKeyResponse200 & {\n  headers: Headers;\n};\nexport type deleteUserApiKeyResponseError = (\n  | deleteUserApiKeyResponse403\n  | deleteUserApiKeyResponse404\n) & {\n  headers: Headers;\n};\n\nexport type deleteUserApiKeyResponse =\n  | deleteUserApiKeyResponseSuccess\n  | deleteUserApiKeyResponseError;\n\nexport const getDeleteUserApiKeyUrl = (apiKeyId: string) => {\n  return `https://api.workos.com/_widgets/UserApiKeys/${apiKeyId}`;\n};\n\nexport const deleteUserApiKey = async (\n  apiKeyId: string,\n  options?: RequestInit,\n): Promise<deleteUserApiKeyResponse> => {\n  const res = await fetch(getDeleteUserApiKeyUrl(apiKeyId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: deleteUserApiKeyResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as deleteUserApiKeyResponse;\n};\n\nexport const getDeleteUserApiKeyMutationOptions = <\n  TError = DeleteUserApiKey403 | DeleteUserApiKey404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof deleteUserApiKey>>,\n    TError,\n    { apiKeyId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof deleteUserApiKey>>,\n  TError,\n  { apiKeyId: string },\n  TContext\n> => {\n  const mutationKey = [\"deleteUserApiKey\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof deleteUserApiKey>>,\n    { apiKeyId: string }\n  > = (props) => {\n    const { apiKeyId } = props ?? {};\n\n    return deleteUserApiKey(apiKeyId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteUserApiKeyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof deleteUserApiKey>>\n>;\n\nexport type DeleteUserApiKeyMutationError =\n  | DeleteUserApiKey403\n  | DeleteUserApiKey404;\n\nexport const useDeleteUserApiKey = <\n  TError = DeleteUserApiKey403 | DeleteUserApiKey404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof deleteUserApiKey>>,\n      TError,\n      { apiKeyId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof deleteUserApiKey>>,\n  TError,\n  { apiKeyId: string },\n  TContext\n> => {\n  return useMutation(getDeleteUserApiKeyMutationOptions(options), queryClient);\n};\n\n/**\n * Sends an invitation email to a user to join the organization. If the user does not have an account, they will be prompted to create one upon accepting.\n */\nexport type inviteMemberResponse201 = {\n  data: InviteMemberResponse;\n  status: 201;\n};\n\nexport type inviteMemberResponse400 = {\n  data: InviteMember400;\n  status: 400;\n};\n\nexport type inviteMemberResponse403 = {\n  data: InviteMember403;\n  status: 403;\n};\n\nexport type inviteMemberResponse404 = {\n  data: InviteMember404;\n  status: 404;\n};\n\nexport type inviteMemberResponseSuccess = inviteMemberResponse201 & {\n  headers: Headers;\n};\nexport type inviteMemberResponseError = (\n  | inviteMemberResponse400\n  | inviteMemberResponse403\n  | inviteMemberResponse404\n) & {\n  headers: Headers;\n};\n\nexport type inviteMemberResponse =\n  | inviteMemberResponseSuccess\n  | inviteMemberResponseError;\n\nexport const getInviteMemberUrl = () => {\n  return `https://api.workos.com/_widgets/UserManagement/invite-user`;\n};\n\nexport const inviteMember = async (\n  inviteMemberBody: InviteMemberBody,\n  options?: RequestInit,\n): Promise<inviteMemberResponse> => {\n  const res = await fetch(getInviteMemberUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(inviteMemberBody),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: inviteMemberResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as inviteMemberResponse;\n};\n\nexport const getInviteMemberMutationOptions = <\n  TError = InviteMember400 | InviteMember403 | InviteMember404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof inviteMember>>,\n    TError,\n    { data: InviteMemberBody },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof inviteMember>>,\n  TError,\n  { data: InviteMemberBody },\n  TContext\n> => {\n  const mutationKey = [\"inviteMember\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof inviteMember>>,\n    { data: InviteMemberBody }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return inviteMember(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type InviteMemberMutationResult = NonNullable<\n  Awaited<ReturnType<typeof inviteMember>>\n>;\nexport type InviteMemberMutationBody = InviteMemberBody;\nexport type InviteMemberMutationError =\n  | InviteMember400\n  | InviteMember403\n  | InviteMember404;\n\nexport const useInviteMember = <\n  TError = InviteMember400 | InviteMember403 | InviteMember404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof inviteMember>>,\n      TError,\n      { data: InviteMemberBody },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof inviteMember>>,\n  TError,\n  { data: InviteMemberBody },\n  TContext\n> => {\n  return useMutation(getInviteMemberMutationOptions(options), queryClient);\n};\n\n/**\n * Cancels a pending invitation for the specified user, preventing them from joining the organization via that invite link.\n */\nexport type revokeInviteResponse200 = {\n  data: RevokeMemberResponse;\n  status: 200;\n};\n\nexport type revokeInviteResponse400 = {\n  data: RevokeInvite400;\n  status: 400;\n};\n\nexport type revokeInviteResponse403 = {\n  data: RevokeInvite403;\n  status: 403;\n};\n\nexport type revokeInviteResponse404 = {\n  data: RevokeInvite404;\n  status: 404;\n};\n\nexport type revokeInviteResponseSuccess = revokeInviteResponse200 & {\n  headers: Headers;\n};\nexport type revokeInviteResponseError = (\n  | revokeInviteResponse400\n  | revokeInviteResponse403\n  | revokeInviteResponse404\n) & {\n  headers: Headers;\n};\n\nexport type revokeInviteResponse =\n  | revokeInviteResponseSuccess\n  | revokeInviteResponseError;\n\nexport const getRevokeInviteUrl = (userId: string) => {\n  return `https://api.workos.com/_widgets/UserManagement/invites/${userId}`;\n};\n\nexport const revokeInvite = async (\n  userId: string,\n  options?: RequestInit,\n): Promise<revokeInviteResponse> => {\n  const res = await fetch(getRevokeInviteUrl(userId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: revokeInviteResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as revokeInviteResponse;\n};\n\nexport const getRevokeInviteMutationOptions = <\n  TError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof revokeInvite>>,\n    TError,\n    { userId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof revokeInvite>>,\n  TError,\n  { userId: string },\n  TContext\n> => {\n  const mutationKey = [\"revokeInvite\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof revokeInvite>>,\n    { userId: string }\n  > = (props) => {\n    const { userId } = props ?? {};\n\n    return revokeInvite(userId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type RevokeInviteMutationResult = NonNullable<\n  Awaited<ReturnType<typeof revokeInvite>>\n>;\n\nexport type RevokeInviteMutationError =\n  | RevokeInvite400\n  | RevokeInvite403\n  | RevokeInvite404;\n\nexport const useRevokeInvite = <\n  TError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof revokeInvite>>,\n      TError,\n      { userId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof revokeInvite>>,\n  TError,\n  { userId: string },\n  TContext\n> => {\n  return useMutation(getRevokeInviteMutationOptions(options), queryClient);\n};\n\n/**\n * Resends the pending invitation email to the specified user. Returns an error if the invitation has already been accepted or has expired.\n */\nexport type resendInviteResponse201 = {\n  data: ResendInviteResponse;\n  status: 201;\n};\n\nexport type resendInviteResponse400 = {\n  data: ResendInvite400;\n  status: 400;\n};\n\nexport type resendInviteResponse403 = {\n  data: ResendInvite403;\n  status: 403;\n};\n\nexport type resendInviteResponse404 = {\n  data: ResendInvite404;\n  status: 404;\n};\n\nexport type resendInviteResponse422 = {\n  data: ResendInvite422;\n  status: 422;\n};\n\nexport type resendInviteResponseSuccess = resendInviteResponse201 & {\n  headers: Headers;\n};\nexport type resendInviteResponseError = (\n  | resendInviteResponse400\n  | resendInviteResponse403\n  | resendInviteResponse404\n  | resendInviteResponse422\n) & {\n  headers: Headers;\n};\n\nexport type resendInviteResponse =\n  | resendInviteResponseSuccess\n  | resendInviteResponseError;\n\nexport const getResendInviteUrl = (userId: string) => {\n  return `https://api.workos.com/_widgets/UserManagement/invites/${userId}/resend`;\n};\n\nexport const resendInvite = async (\n  userId: string,\n  options?: RequestInit,\n): Promise<resendInviteResponse> => {\n  const res = await fetch(getResendInviteUrl(userId), {\n    ...options,\n    method: \"POST\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: resendInviteResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as resendInviteResponse;\n};\n\nexport const getResendInviteMutationOptions = <\n  TError =\n    | ResendInvite400\n    | ResendInvite403\n    | ResendInvite404\n    | ResendInvite422,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof resendInvite>>,\n    TError,\n    { userId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof resendInvite>>,\n  TError,\n  { userId: string },\n  TContext\n> => {\n  const mutationKey = [\"resendInvite\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof resendInvite>>,\n    { userId: string }\n  > = (props) => {\n    const { userId } = props ?? {};\n\n    return resendInvite(userId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type ResendInviteMutationResult = NonNullable<\n  Awaited<ReturnType<typeof resendInvite>>\n>;\n\nexport type ResendInviteMutationError =\n  | ResendInvite400\n  | ResendInvite403\n  | ResendInvite404\n  | ResendInvite422;\n\nexport const useResendInvite = <\n  TError =\n    | ResendInvite400\n    | ResendInvite403\n    | ResendInvite404\n    | ResendInvite422,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof resendInvite>>,\n      TError,\n      { userId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof resendInvite>>,\n  TError,\n  { userId: string },\n  TContext\n> => {\n  return useMutation(getResendInviteMutationOptions(options), queryClient);\n};\n\n/**\n * Returns a paginated list of members belonging to the organization. Supports filtering by search term and role, and cursor-based pagination via before/after parameters.\n */\nexport type membersResponse200 = {\n  data: MembersResponse;\n  status: 200;\n};\n\nexport type membersResponse403 = {\n  data: Members403;\n  status: 403;\n};\n\nexport type membersResponse404 = {\n  data: Members404;\n  status: 404;\n};\n\nexport type membersResponseSuccess = membersResponse200 & {\n  headers: Headers;\n};\nexport type membersResponseError = (membersResponse403 | membersResponse404) & {\n  headers: Headers;\n};\n\nexport type membersResponse = membersResponseSuccess | membersResponseError;\n\nexport const getMembersUrl = (params?: MembersParams) => {\n  const normalizedParams = new URLSearchParams();\n\n  Object.entries(params || {}).forEach(([key, value]) => {\n    if (value !== undefined) {\n      normalizedParams.append(key, value === null ? \"null\" : value.toString());\n    }\n  });\n\n  const stringifiedParams = normalizedParams.toString();\n\n  return stringifiedParams.length > 0\n    ? `https://api.workos.com/_widgets/UserManagement/members?${stringifiedParams}`\n    : `https://api.workos.com/_widgets/UserManagement/members`;\n};\n\nexport const members = async (\n  params?: MembersParams,\n  options?: RequestInit,\n): Promise<membersResponse> => {\n  const res = await fetch(getMembersUrl(params), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: membersResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return { data, status: res.status, headers: res.headers } as membersResponse;\n};\n\nexport const getMembersQueryKey = (params?: MembersParams) => {\n  return [\n    `https://api.workos.com/_widgets/UserManagement/members`,\n    ...(params ? [params] : []),\n  ] as const;\n};\n\nexport const getMembersQueryOptions = <\n  TData = Awaited<ReturnType<typeof members>>,\n  TError = Members403 | Members404,\n>(\n  params?: MembersParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getMembersQueryKey(params);\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof members>>> = ({\n    signal,\n  }) => members(params, { signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof members>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type MembersQueryResult = NonNullable<\n  Awaited<ReturnType<typeof members>>\n>;\nexport type MembersQueryError = Members403 | Members404;\n\nexport function useMembers<\n  TData = Awaited<ReturnType<typeof members>>,\n  TError = Members403 | Members404,\n>(\n  params: undefined | MembersParams,\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof members>>,\n          TError,\n          Awaited<ReturnType<typeof members>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useMembers<\n  TData = Awaited<ReturnType<typeof members>>,\n  TError = Members403 | Members404,\n>(\n  params?: MembersParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof members>>,\n          TError,\n          Awaited<ReturnType<typeof members>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useMembers<\n  TData = Awaited<ReturnType<typeof members>>,\n  TError = Members403 | Members404,\n>(\n  params?: MembersParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useMembers<\n  TData = Awaited<ReturnType<typeof members>>,\n  TError = Members403 | Members404,\n>(\n  params?: MembersParams,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getMembersQueryOptions(params, options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Removes the specified user from the organization by revoking their membership. The user account itself is not deleted.\n */\nexport type removeMemberResponse200 = {\n  data: RemoveMemberResponse;\n  status: 200;\n};\n\nexport type removeMemberResponse400 = {\n  data: RemoveMember400;\n  status: 400;\n};\n\nexport type removeMemberResponse403 = {\n  data: RemoveMember403;\n  status: 403;\n};\n\nexport type removeMemberResponse404 = {\n  data: RemoveMember404;\n  status: 404;\n};\n\nexport type removeMemberResponseSuccess = removeMemberResponse200 & {\n  headers: Headers;\n};\nexport type removeMemberResponseError = (\n  | removeMemberResponse400\n  | removeMemberResponse403\n  | removeMemberResponse404\n) & {\n  headers: Headers;\n};\n\nexport type removeMemberResponse =\n  | removeMemberResponseSuccess\n  | removeMemberResponseError;\n\nexport const getRemoveMemberUrl = (userId: string) => {\n  return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;\n};\n\nexport const removeMember = async (\n  userId: string,\n  options?: RequestInit,\n): Promise<removeMemberResponse> => {\n  const res = await fetch(getRemoveMemberUrl(userId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: removeMemberResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as removeMemberResponse;\n};\n\nexport const getRemoveMemberMutationOptions = <\n  TError = RemoveMember400 | RemoveMember403 | RemoveMember404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof removeMember>>,\n    TError,\n    { userId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof removeMember>>,\n  TError,\n  { userId: string },\n  TContext\n> => {\n  const mutationKey = [\"removeMember\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof removeMember>>,\n    { userId: string }\n  > = (props) => {\n    const { userId } = props ?? {};\n\n    return removeMember(userId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type RemoveMemberMutationResult = NonNullable<\n  Awaited<ReturnType<typeof removeMember>>\n>;\n\nexport type RemoveMemberMutationError =\n  | RemoveMember400\n  | RemoveMember403\n  | RemoveMember404;\n\nexport const useRemoveMember = <\n  TError = RemoveMember400 | RemoveMember403 | RemoveMember404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof removeMember>>,\n      TError,\n      { userId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof removeMember>>,\n  TError,\n  { userId: string },\n  TContext\n> => {\n  return useMutation(getRemoveMemberMutationOptions(options), queryClient);\n};\n\n/**\n * Updates the specified member's organization membership, such as changing their assigned role.\n */\nexport type updateMemberResponse200 = {\n  data: UpdateMemberResponse;\n  status: 200;\n};\n\nexport type updateMemberResponse400 = {\n  data: UpdateMember400;\n  status: 400;\n};\n\nexport type updateMemberResponse403 = {\n  data: UpdateMember403;\n  status: 403;\n};\n\nexport type updateMemberResponse404 = {\n  data: UpdateMember404;\n  status: 404;\n};\n\nexport type updateMemberResponse422 = {\n  data: UpdateMember422;\n  status: 422;\n};\n\nexport type updateMemberResponseSuccess = updateMemberResponse200 & {\n  headers: Headers;\n};\nexport type updateMemberResponseError = (\n  | updateMemberResponse400\n  | updateMemberResponse403\n  | updateMemberResponse404\n  | updateMemberResponse422\n) & {\n  headers: Headers;\n};\n\nexport type updateMemberResponse =\n  | updateMemberResponseSuccess\n  | updateMemberResponseError;\n\nexport const getUpdateMemberUrl = (userId: string) => {\n  return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;\n};\n\nexport const updateMember = async (\n  userId: string,\n  updateMemberBody: UpdateMemberBody,\n  options?: RequestInit,\n): Promise<updateMemberResponse> => {\n  const res = await fetch(getUpdateMemberUrl(userId), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(updateMemberBody),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: updateMemberResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as updateMemberResponse;\n};\n\nexport const getUpdateMemberMutationOptions = <\n  TError =\n    | UpdateMember400\n    | UpdateMember403\n    | UpdateMember404\n    | UpdateMember422,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof updateMember>>,\n    TError,\n    { userId: string; data: UpdateMemberBody },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof updateMember>>,\n  TError,\n  { userId: string; data: UpdateMemberBody },\n  TContext\n> => {\n  const mutationKey = [\"updateMember\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof updateMember>>,\n    { userId: string; data: UpdateMemberBody }\n  > = (props) => {\n    const { userId, data } = props ?? {};\n\n    return updateMember(userId, data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type UpdateMemberMutationResult = NonNullable<\n  Awaited<ReturnType<typeof updateMember>>\n>;\nexport type UpdateMemberMutationBody = UpdateMemberBody;\nexport type UpdateMemberMutationError =\n  | UpdateMember400\n  | UpdateMember403\n  | UpdateMember404\n  | UpdateMember422;\n\nexport const useUpdateMember = <\n  TError =\n    | UpdateMember400\n    | UpdateMember403\n    | UpdateMember404\n    | UpdateMember422,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof updateMember>>,\n      TError,\n      { userId: string; data: UpdateMemberBody },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof updateMember>>,\n  TError,\n  { userId: string; data: UpdateMemberBody },\n  TContext\n> => {\n  return useMutation(getUpdateMemberMutationOptions(options), queryClient);\n};\n\n/**\n * Returns the list of organizations the authenticated user is a member of.\n */\nexport type organizationsResponse200 = {\n  data: OrganizationsResponse;\n  status: 200;\n};\n\nexport type organizationsResponse403 = {\n  data: Organizations403;\n  status: 403;\n};\n\nexport type organizationsResponse404 = {\n  data: Organizations404;\n  status: 404;\n};\n\nexport type organizationsResponseSuccess = organizationsResponse200 & {\n  headers: Headers;\n};\nexport type organizationsResponseError = (\n  | organizationsResponse403\n  | organizationsResponse404\n) & {\n  headers: Headers;\n};\n\nexport type organizationsResponse =\n  | organizationsResponseSuccess\n  | organizationsResponseError;\n\nexport const getOrganizationsUrl = () => {\n  return `https://api.workos.com/_widgets/UserManagement/organizations`;\n};\n\nexport const organizations = async (\n  options?: RequestInit,\n): Promise<organizationsResponse> => {\n  const res = await fetch(getOrganizationsUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: organizationsResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as organizationsResponse;\n};\n\nexport const getOrganizationsQueryKey = () => {\n  return [\n    `https://api.workos.com/_widgets/UserManagement/organizations`,\n  ] as const;\n};\n\nexport const getOrganizationsQueryOptions = <\n  TData = Awaited<ReturnType<typeof organizations>>,\n  TError = Organizations403 | Organizations404,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<Awaited<ReturnType<typeof organizations>>, TError, TData>\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getOrganizationsQueryKey();\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof organizations>>> = ({\n    signal,\n  }) => organizations({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof organizations>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type OrganizationsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof organizations>>\n>;\nexport type OrganizationsQueryError = Organizations403 | Organizations404;\n\nexport function useOrganizations<\n  TData = Awaited<ReturnType<typeof organizations>>,\n  TError = Organizations403 | Organizations404,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof organizations>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof organizations>>,\n          TError,\n          Awaited<ReturnType<typeof organizations>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useOrganizations<\n  TData = Awaited<ReturnType<typeof organizations>>,\n  TError = Organizations403 | Organizations404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof organizations>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof organizations>>,\n          TError,\n          Awaited<ReturnType<typeof organizations>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useOrganizations<\n  TData = Awaited<ReturnType<typeof organizations>>,\n  TError = Organizations403 | Organizations404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof organizations>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useOrganizations<\n  TData = Awaited<ReturnType<typeof organizations>>,\n  TError = Organizations403 | Organizations404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof organizations>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getOrganizationsQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Returns the list of roles available in the organization that can be assigned to members.\n */\nexport type rolesResponse200 = {\n  data: MemberRole[];\n  status: 200;\n};\n\nexport type rolesResponse403 = {\n  data: Roles403;\n  status: 403;\n};\n\nexport type rolesResponse404 = {\n  data: Roles404;\n  status: 404;\n};\n\nexport type rolesResponseSuccess = rolesResponse200 & {\n  headers: Headers;\n};\nexport type rolesResponseError = (rolesResponse403 | rolesResponse404) & {\n  headers: Headers;\n};\n\nexport type rolesResponse = rolesResponseSuccess | rolesResponseError;\n\nexport const getRolesUrl = () => {\n  return `https://api.workos.com/_widgets/UserManagement/roles`;\n};\n\nexport const roles = async (options?: RequestInit): Promise<rolesResponse> => {\n  const res = await fetch(getRolesUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: rolesResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return { data, status: res.status, headers: res.headers } as rolesResponse;\n};\n\nexport const getRolesQueryKey = () => {\n  return [`https://api.workos.com/_widgets/UserManagement/roles`] as const;\n};\n\nexport const getRolesQueryOptions = <\n  TData = Awaited<ReturnType<typeof roles>>,\n  TError = Roles403 | Roles404,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getRolesQueryKey();\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof roles>>> = ({\n    signal,\n  }) => roles({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof roles>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type RolesQueryResult = NonNullable<Awaited<ReturnType<typeof roles>>>;\nexport type RolesQueryError = Roles403 | Roles404;\n\nexport function useRoles<\n  TData = Awaited<ReturnType<typeof roles>>,\n  TError = Roles403 | Roles404,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof roles>>,\n          TError,\n          Awaited<ReturnType<typeof roles>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useRoles<\n  TData = Awaited<ReturnType<typeof roles>>,\n  TError = Roles403 | Roles404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof roles>>,\n          TError,\n          Awaited<ReturnType<typeof roles>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useRoles<\n  TData = Awaited<ReturnType<typeof roles>>,\n  TError = Roles403 | Roles404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useRoles<\n  TData = Awaited<ReturnType<typeof roles>>,\n  TError = Roles403 | Roles404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getRolesQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Returns the list of roles available in the organization along with the user management configuration, such as whether role assignment is enabled.\n */\nexport type rolesAndConfigResponse200 = {\n  data: RolesAndConfigResponse;\n  status: 200;\n};\n\nexport type rolesAndConfigResponse403 = {\n  data: RolesAndConfig403;\n  status: 403;\n};\n\nexport type rolesAndConfigResponse404 = {\n  data: RolesAndConfig404;\n  status: 404;\n};\n\nexport type rolesAndConfigResponseSuccess = rolesAndConfigResponse200 & {\n  headers: Headers;\n};\nexport type rolesAndConfigResponseError = (\n  | rolesAndConfigResponse403\n  | rolesAndConfigResponse404\n) & {\n  headers: Headers;\n};\n\nexport type rolesAndConfigResponse =\n  | rolesAndConfigResponseSuccess\n  | rolesAndConfigResponseError;\n\nexport const getRolesAndConfigUrl = () => {\n  return `https://api.workos.com/_widgets/UserManagement/roles-and-config`;\n};\n\nexport const rolesAndConfig = async (\n  options?: RequestInit,\n): Promise<rolesAndConfigResponse> => {\n  const res = await fetch(getRolesAndConfigUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: rolesAndConfigResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as rolesAndConfigResponse;\n};\n\nexport const getRolesAndConfigQueryKey = () => {\n  return [\n    `https://api.workos.com/_widgets/UserManagement/roles-and-config`,\n  ] as const;\n};\n\nexport const getRolesAndConfigQueryOptions = <\n  TData = Awaited<ReturnType<typeof rolesAndConfig>>,\n  TError = RolesAndConfig403 | RolesAndConfig404,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getRolesAndConfigQueryKey();\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof rolesAndConfig>>> = ({\n    signal,\n  }) => rolesAndConfig({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof rolesAndConfig>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type RolesAndConfigQueryResult = NonNullable<\n  Awaited<ReturnType<typeof rolesAndConfig>>\n>;\nexport type RolesAndConfigQueryError = RolesAndConfig403 | RolesAndConfig404;\n\nexport function useRolesAndConfig<\n  TData = Awaited<ReturnType<typeof rolesAndConfig>>,\n  TError = RolesAndConfig403 | RolesAndConfig404,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof rolesAndConfig>>,\n          TError,\n          Awaited<ReturnType<typeof rolesAndConfig>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useRolesAndConfig<\n  TData = Awaited<ReturnType<typeof rolesAndConfig>>,\n  TError = RolesAndConfig403 | RolesAndConfig404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof rolesAndConfig>>,\n          TError,\n          Awaited<ReturnType<typeof rolesAndConfig>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useRolesAndConfig<\n  TData = Awaited<ReturnType<typeof rolesAndConfig>>,\n  TError = RolesAndConfig403 | RolesAndConfig404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useRolesAndConfig<\n  TData = Awaited<ReturnType<typeof rolesAndConfig>>,\n  TError = RolesAndConfig403 | RolesAndConfig404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getRolesAndConfigQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Returns the authentication methods and MFA factors configured for the authenticated user, including enrolled TOTP factors and passkeys.\n */\nexport type authenticationInformationResponse200 = {\n  data: AuthenticationInformationResponse;\n  status: 200;\n};\n\nexport type authenticationInformationResponse403 = {\n  data: AuthenticationInformation403;\n  status: 403;\n};\n\nexport type authenticationInformationResponseSuccess =\n  authenticationInformationResponse200 & {\n    headers: Headers;\n  };\nexport type authenticationInformationResponseError =\n  authenticationInformationResponse403 & {\n    headers: Headers;\n  };\n\nexport type authenticationInformationResponse =\n  | authenticationInformationResponseSuccess\n  | authenticationInformationResponseError;\n\nexport const getAuthenticationInformationUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/authentication-information`;\n};\n\nexport const authenticationInformation = async (\n  options?: RequestInit,\n): Promise<authenticationInformationResponse> => {\n  const res = await fetch(getAuthenticationInformationUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: authenticationInformationResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as authenticationInformationResponse;\n};\n\nexport const getAuthenticationInformationQueryKey = () => {\n  return [\n    `https://api.workos.com/_widgets/UserProfile/authentication-information`,\n  ] as const;\n};\n\nexport const getAuthenticationInformationQueryOptions = <\n  TData = Awaited<ReturnType<typeof authenticationInformation>>,\n  TError = AuthenticationInformation403,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<\n      Awaited<ReturnType<typeof authenticationInformation>>,\n      TError,\n      TData\n    >\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ?? getAuthenticationInformationQueryKey();\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof authenticationInformation>>\n  > = ({ signal }) => authenticationInformation({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof authenticationInformation>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type AuthenticationInformationQueryResult = NonNullable<\n  Awaited<ReturnType<typeof authenticationInformation>>\n>;\nexport type AuthenticationInformationQueryError = AuthenticationInformation403;\n\nexport function useAuthenticationInformation<\n  TData = Awaited<ReturnType<typeof authenticationInformation>>,\n  TError = AuthenticationInformation403,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof authenticationInformation>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof authenticationInformation>>,\n          TError,\n          Awaited<ReturnType<typeof authenticationInformation>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useAuthenticationInformation<\n  TData = Awaited<ReturnType<typeof authenticationInformation>>,\n  TError = AuthenticationInformation403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof authenticationInformation>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof authenticationInformation>>,\n          TError,\n          Awaited<ReturnType<typeof authenticationInformation>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useAuthenticationInformation<\n  TData = Awaited<ReturnType<typeof authenticationInformation>>,\n  TError = AuthenticationInformation403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof authenticationInformation>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useAuthenticationInformation<\n  TData = Awaited<ReturnType<typeof authenticationInformation>>,\n  TError = AuthenticationInformation403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof authenticationInformation>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getAuthenticationInformationQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Sets a password for the authenticated user. Only available when the user does not already have a password configured. Requires elevated access.\n */\nexport type createPasswordResponse201 = {\n  data: CreatePassword201;\n  status: 201;\n};\n\nexport type createPasswordResponse400 = {\n  data: CreatePassword400;\n  status: 400;\n};\n\nexport type createPasswordResponse403 = {\n  data: CreatePassword403;\n  status: 403;\n};\n\nexport type createPasswordResponseSuccess = createPasswordResponse201 & {\n  headers: Headers;\n};\nexport type createPasswordResponseError = (\n  | createPasswordResponse400\n  | createPasswordResponse403\n) & {\n  headers: Headers;\n};\n\nexport type createPasswordResponse =\n  | createPasswordResponseSuccess\n  | createPasswordResponseError;\n\nexport const getCreatePasswordUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/create-password`;\n};\n\nexport const createPassword = async (\n  createPasswordRequest: CreatePasswordRequest,\n  options?: RequestInit,\n): Promise<createPasswordResponse> => {\n  const res = await fetch(getCreatePasswordUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(createPasswordRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: createPasswordResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as createPasswordResponse;\n};\n\nexport const getCreatePasswordMutationOptions = <\n  TError = CreatePassword400 | CreatePassword403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof createPassword>>,\n    TError,\n    { data: CreatePasswordRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof createPassword>>,\n  TError,\n  { data: CreatePasswordRequest },\n  TContext\n> => {\n  const mutationKey = [\"createPassword\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof createPassword>>,\n    { data: CreatePasswordRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return createPassword(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type CreatePasswordMutationResult = NonNullable<\n  Awaited<ReturnType<typeof createPassword>>\n>;\nexport type CreatePasswordMutationBody = CreatePasswordRequest;\nexport type CreatePasswordMutationError = CreatePassword400 | CreatePassword403;\n\nexport const useCreatePassword = <\n  TError = CreatePassword400 | CreatePassword403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof createPassword>>,\n      TError,\n      { data: CreatePasswordRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof createPassword>>,\n  TError,\n  { data: CreatePasswordRequest },\n  TContext\n> => {\n  return useMutation(getCreatePasswordMutationOptions(options), queryClient);\n};\n\n/**\n * Initiates TOTP (authenticator app) enrollment for the authenticated user by generating a new TOTP secret and QR code. Requires elevated access.\n */\nexport type createTotpFactorResponse201 = {\n  data: CreateTotpFactorResponse;\n  status: 201;\n};\n\nexport type createTotpFactorResponse400 = {\n  data: CreateTotpFactor400;\n  status: 400;\n};\n\nexport type createTotpFactorResponse403 = {\n  data: CreateTotpFactor403;\n  status: 403;\n};\n\nexport type createTotpFactorResponseSuccess = createTotpFactorResponse201 & {\n  headers: Headers;\n};\nexport type createTotpFactorResponseError = (\n  | createTotpFactorResponse400\n  | createTotpFactorResponse403\n) & {\n  headers: Headers;\n};\n\nexport type createTotpFactorResponse =\n  | createTotpFactorResponseSuccess\n  | createTotpFactorResponseError;\n\nexport const getCreateTotpFactorUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/create-totp-factor`;\n};\n\nexport const createTotpFactor = async (\n  options?: RequestInit,\n): Promise<createTotpFactorResponse> => {\n  const res = await fetch(getCreateTotpFactorUrl(), {\n    ...options,\n    method: \"POST\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: createTotpFactorResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as createTotpFactorResponse;\n};\n\nexport const getCreateTotpFactorMutationOptions = <\n  TError = CreateTotpFactor400 | CreateTotpFactor403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof createTotpFactor>>,\n    TError,\n    void,\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof createTotpFactor>>,\n  TError,\n  void,\n  TContext\n> => {\n  const mutationKey = [\"createTotpFactor\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof createTotpFactor>>,\n    void\n  > = () => {\n    return createTotpFactor(fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type CreateTotpFactorMutationResult = NonNullable<\n  Awaited<ReturnType<typeof createTotpFactor>>\n>;\n\nexport type CreateTotpFactorMutationError =\n  | CreateTotpFactor400\n  | CreateTotpFactor403;\n\nexport const useCreateTotpFactor = <\n  TError = CreateTotpFactor400 | CreateTotpFactor403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof createTotpFactor>>,\n      TError,\n      void,\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof createTotpFactor>>,\n  TError,\n  void,\n  TContext\n> => {\n  return useMutation(getCreateTotpFactorMutationOptions(options), queryClient);\n};\n\n/**\n * Returns the profile information of the currently authenticated user, including their name, email, and linked authentication factors.\n */\nexport type meResponse200 = {\n  data: Me;\n  status: 200;\n};\n\nexport type meResponse403 = {\n  data: Me403;\n  status: 403;\n};\n\nexport type meResponseSuccess = meResponse200 & {\n  headers: Headers;\n};\nexport type meResponseError = meResponse403 & {\n  headers: Headers;\n};\n\nexport type meResponse = meResponseSuccess | meResponseError;\n\nexport const getMeUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/me`;\n};\n\nexport const me = async (options?: RequestInit): Promise<meResponse> => {\n  const res = await fetch(getMeUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: meResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return { data, status: res.status, headers: res.headers } as meResponse;\n};\n\nexport const getMeQueryKey = () => {\n  return [`https://api.workos.com/_widgets/UserProfile/me`] as const;\n};\n\nexport const getMeQueryOptions = <\n  TData = Awaited<ReturnType<typeof me>>,\n  TError = Me403,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getMeQueryKey();\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof me>>> = ({ signal }) =>\n    me({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof me>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>;\nexport type MeQueryError = Me403;\n\nexport function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof me>>,\n          TError,\n          Awaited<ReturnType<typeof me>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof me>>,\n          TError,\n          Awaited<ReturnType<typeof me>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getMeQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Updates the profile information of the currently authenticated user, such as their first name, last name, or email address.\n */\nexport type updateMeResponse200 = {\n  data: Me;\n  status: 200;\n};\n\nexport type updateMeResponse400 = {\n  data: UpdateMe400;\n  status: 400;\n};\n\nexport type updateMeResponse403 = {\n  data: UpdateMe403;\n  status: 403;\n};\n\nexport type updateMeResponseSuccess = updateMeResponse200 & {\n  headers: Headers;\n};\nexport type updateMeResponseError = (\n  | updateMeResponse400\n  | updateMeResponse403\n) & {\n  headers: Headers;\n};\n\nexport type updateMeResponse = updateMeResponseSuccess | updateMeResponseError;\n\nexport const getUpdateMeUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/me`;\n};\n\nexport const updateMe = async (\n  updateMeBody: UpdateMeBody,\n  options?: RequestInit,\n): Promise<updateMeResponse> => {\n  const res = await fetch(getUpdateMeUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(updateMeBody),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: updateMeResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return { data, status: res.status, headers: res.headers } as updateMeResponse;\n};\n\nexport const getUpdateMeMutationOptions = <\n  TError = UpdateMe400 | UpdateMe403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof updateMe>>,\n    TError,\n    { data: UpdateMeBody },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof updateMe>>,\n  TError,\n  { data: UpdateMeBody },\n  TContext\n> => {\n  const mutationKey = [\"updateMe\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof updateMe>>,\n    { data: UpdateMeBody }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return updateMe(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type UpdateMeMutationResult = NonNullable<\n  Awaited<ReturnType<typeof updateMe>>\n>;\nexport type UpdateMeMutationBody = UpdateMeBody;\nexport type UpdateMeMutationError = UpdateMe400 | UpdateMe403;\n\nexport const useUpdateMe = <\n  TError = UpdateMe400 | UpdateMe403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof updateMe>>,\n      TError,\n      { data: UpdateMeBody },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof updateMe>>,\n  TError,\n  { data: UpdateMeBody },\n  TContext\n> => {\n  return useMutation(getUpdateMeMutationOptions(options), queryClient);\n};\n\n/**\n * Initiates passkey (WebAuthn) registration for the authenticated user by returning the credential creation options. Requires elevated access.\n */\nexport type registerPasskeyResponse201 = {\n  data: RegisterPasskeyResponse;\n  status: 201;\n};\n\nexport type registerPasskeyResponse400 = {\n  data: RegisterPasskey400;\n  status: 400;\n};\n\nexport type registerPasskeyResponse403 = {\n  data: RegisterPasskey403;\n  status: 403;\n};\n\nexport type registerPasskeyResponseSuccess = registerPasskeyResponse201 & {\n  headers: Headers;\n};\nexport type registerPasskeyResponseError = (\n  | registerPasskeyResponse400\n  | registerPasskeyResponse403\n) & {\n  headers: Headers;\n};\n\nexport type registerPasskeyResponse =\n  | registerPasskeyResponseSuccess\n  | registerPasskeyResponseError;\n\nexport const getRegisterPasskeyUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/passkeys`;\n};\n\nexport const registerPasskey = async (\n  options?: RequestInit,\n): Promise<registerPasskeyResponse> => {\n  const res = await fetch(getRegisterPasskeyUrl(), {\n    ...options,\n    method: \"POST\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: registerPasskeyResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as registerPasskeyResponse;\n};\n\nexport const getRegisterPasskeyMutationOptions = <\n  TError = RegisterPasskey400 | RegisterPasskey403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof registerPasskey>>,\n    TError,\n    void,\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof registerPasskey>>,\n  TError,\n  void,\n  TContext\n> => {\n  const mutationKey = [\"registerPasskey\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof registerPasskey>>,\n    void\n  > = () => {\n    return registerPasskey(fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type RegisterPasskeyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof registerPasskey>>\n>;\n\nexport type RegisterPasskeyMutationError =\n  | RegisterPasskey400\n  | RegisterPasskey403;\n\nexport const useRegisterPasskey = <\n  TError = RegisterPasskey400 | RegisterPasskey403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof registerPasskey>>,\n      TError,\n      void,\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof registerPasskey>>,\n  TError,\n  void,\n  TContext\n> => {\n  return useMutation(getRegisterPasskeyMutationOptions(options), queryClient);\n};\n\n/**\n * Completes passkey (WebAuthn) registration by verifying the credential created by the authenticator. Requires elevated access.\n */\nexport type verifyPasskeyResponse200 = {\n  data: VerifyPasskey200;\n  status: 200;\n};\n\nexport type verifyPasskeyResponse400 = {\n  data: VerifyPasskey400;\n  status: 400;\n};\n\nexport type verifyPasskeyResponse403 = {\n  data: VerifyPasskey403;\n  status: 403;\n};\n\nexport type verifyPasskeyResponseSuccess = verifyPasskeyResponse200 & {\n  headers: Headers;\n};\nexport type verifyPasskeyResponseError = (\n  | verifyPasskeyResponse400\n  | verifyPasskeyResponse403\n) & {\n  headers: Headers;\n};\n\nexport type verifyPasskeyResponse =\n  | verifyPasskeyResponseSuccess\n  | verifyPasskeyResponseError;\n\nexport const getVerifyPasskeyUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/passkeys/verify`;\n};\n\nexport const verifyPasskey = async (\n  verifyPasskeyRequest: VerifyPasskeyRequest,\n  options?: RequestInit,\n): Promise<verifyPasskeyResponse> => {\n  const res = await fetch(getVerifyPasskeyUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(verifyPasskeyRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: verifyPasskeyResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as verifyPasskeyResponse;\n};\n\nexport const getVerifyPasskeyMutationOptions = <\n  TError = VerifyPasskey400 | VerifyPasskey403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof verifyPasskey>>,\n    TError,\n    { data: VerifyPasskeyRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof verifyPasskey>>,\n  TError,\n  { data: VerifyPasskeyRequest },\n  TContext\n> => {\n  const mutationKey = [\"verifyPasskey\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof verifyPasskey>>,\n    { data: VerifyPasskeyRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return verifyPasskey(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type VerifyPasskeyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof verifyPasskey>>\n>;\nexport type VerifyPasskeyMutationBody = VerifyPasskeyRequest;\nexport type VerifyPasskeyMutationError = VerifyPasskey400 | VerifyPasskey403;\n\nexport const useVerifyPasskey = <\n  TError = VerifyPasskey400 | VerifyPasskey403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof verifyPasskey>>,\n      TError,\n      { data: VerifyPasskeyRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof verifyPasskey>>,\n  TError,\n  { data: VerifyPasskeyRequest },\n  TContext\n> => {\n  return useMutation(getVerifyPasskeyMutationOptions(options), queryClient);\n};\n\n/**\n * Removes the specified passkey from the authenticated user's account. Requires elevated access.\n */\nexport type deletePasskeyResponse200 = {\n  data: DeletePasskey200;\n  status: 200;\n};\n\nexport type deletePasskeyResponse400 = {\n  data: DeletePasskey400;\n  status: 400;\n};\n\nexport type deletePasskeyResponse403 = {\n  data: DeletePasskey403;\n  status: 403;\n};\n\nexport type deletePasskeyResponseSuccess = deletePasskeyResponse200 & {\n  headers: Headers;\n};\nexport type deletePasskeyResponseError = (\n  | deletePasskeyResponse400\n  | deletePasskeyResponse403\n) & {\n  headers: Headers;\n};\n\nexport type deletePasskeyResponse =\n  | deletePasskeyResponseSuccess\n  | deletePasskeyResponseError;\n\nexport const getDeletePasskeyUrl = (passkeyId: string) => {\n  return `https://api.workos.com/_widgets/UserProfile/passkeys/${passkeyId}`;\n};\n\nexport const deletePasskey = async (\n  passkeyId: string,\n  options?: RequestInit,\n): Promise<deletePasskeyResponse> => {\n  const res = await fetch(getDeletePasskeyUrl(passkeyId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: deletePasskeyResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as deletePasskeyResponse;\n};\n\nexport const getDeletePasskeyMutationOptions = <\n  TError = DeletePasskey400 | DeletePasskey403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof deletePasskey>>,\n    TError,\n    { passkeyId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof deletePasskey>>,\n  TError,\n  { passkeyId: string },\n  TContext\n> => {\n  const mutationKey = [\"deletePasskey\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof deletePasskey>>,\n    { passkeyId: string }\n  > = (props) => {\n    const { passkeyId } = props ?? {};\n\n    return deletePasskey(passkeyId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type DeletePasskeyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof deletePasskey>>\n>;\n\nexport type DeletePasskeyMutationError = DeletePasskey400 | DeletePasskey403;\n\nexport const useDeletePasskey = <\n  TError = DeletePasskey400 | DeletePasskey403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof deletePasskey>>,\n      TError,\n      { passkeyId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof deletePasskey>>,\n  TError,\n  { passkeyId: string },\n  TContext\n> => {\n  return useMutation(getDeletePasskeyMutationOptions(options), queryClient);\n};\n\n/**\n * Sends a verification email containing a one-time code to the new email address. The change does not take effect until the code is submitted via verify-email-change. Requires elevated access.\n */\nexport type sendEmailChangeResponse200 = {\n  data: SendEmailChangeResponse;\n  status: 200;\n};\n\nexport type sendEmailChangeResponse400 = {\n  data: SendEmailChange400;\n  status: 400;\n};\n\nexport type sendEmailChangeResponse403 = {\n  data: SendEmailChange403;\n  status: 403;\n};\n\nexport type sendEmailChangeResponse409 = {\n  data: SendEmailChange409;\n  status: 409;\n};\n\nexport type sendEmailChangeResponse422 = {\n  data: SendEmailChange422;\n  status: 422;\n};\n\nexport type sendEmailChangeResponse429 = {\n  data: SendEmailChange429;\n  status: 429;\n};\n\nexport type sendEmailChangeResponseSuccess = sendEmailChangeResponse200 & {\n  headers: Headers;\n};\nexport type sendEmailChangeResponseError = (\n  | sendEmailChangeResponse400\n  | sendEmailChangeResponse403\n  | sendEmailChangeResponse409\n  | sendEmailChangeResponse422\n  | sendEmailChangeResponse429\n) & {\n  headers: Headers;\n};\n\nexport type sendEmailChangeResponse =\n  | sendEmailChangeResponseSuccess\n  | sendEmailChangeResponseError;\n\nexport const getSendEmailChangeUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/send-email-change`;\n};\n\nexport const sendEmailChange = async (\n  sendEmailChangeRequest: SendEmailChangeRequest,\n  options?: RequestInit,\n): Promise<sendEmailChangeResponse> => {\n  const res = await fetch(getSendEmailChangeUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(sendEmailChangeRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: sendEmailChangeResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as sendEmailChangeResponse;\n};\n\nexport const getSendEmailChangeMutationOptions = <\n  TError =\n    | SendEmailChange400\n    | SendEmailChange403\n    | SendEmailChange409\n    | SendEmailChange422\n    | SendEmailChange429,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof sendEmailChange>>,\n    TError,\n    { data: SendEmailChangeRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof sendEmailChange>>,\n  TError,\n  { data: SendEmailChangeRequest },\n  TContext\n> => {\n  const mutationKey = [\"sendEmailChange\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof sendEmailChange>>,\n    { data: SendEmailChangeRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return sendEmailChange(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type SendEmailChangeMutationResult = NonNullable<\n  Awaited<ReturnType<typeof sendEmailChange>>\n>;\nexport type SendEmailChangeMutationBody = SendEmailChangeRequest;\nexport type SendEmailChangeMutationError =\n  | SendEmailChange400\n  | SendEmailChange403\n  | SendEmailChange409\n  | SendEmailChange422\n  | SendEmailChange429;\n\nexport const useSendEmailChange = <\n  TError =\n    | SendEmailChange400\n    | SendEmailChange403\n    | SendEmailChange409\n    | SendEmailChange422\n    | SendEmailChange429,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof sendEmailChange>>,\n      TError,\n      { data: SendEmailChangeRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof sendEmailChange>>,\n  TError,\n  { data: SendEmailChangeRequest },\n  TContext\n> => {\n  return useMutation(getSendEmailChangeMutationOptions(options), queryClient);\n};\n\n/**\n * Sends a verification email to the authenticated user to confirm their email address.\n */\nexport type sendVerificationResponse200 = {\n  data: SendVerificationResponse;\n  status: 200;\n};\n\nexport type sendVerificationResponse400 = {\n  data: SendVerification400;\n  status: 400;\n};\n\nexport type sendVerificationResponse403 = {\n  data: SendVerification403;\n  status: 403;\n};\n\nexport type sendVerificationResponseSuccess = sendVerificationResponse200 & {\n  headers: Headers;\n};\nexport type sendVerificationResponseError = (\n  | sendVerificationResponse400\n  | sendVerificationResponse403\n) & {\n  headers: Headers;\n};\n\nexport type sendVerificationResponse =\n  | sendVerificationResponseSuccess\n  | sendVerificationResponseError;\n\nexport const getSendVerificationUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/send-verification`;\n};\n\nexport const sendVerification = async (\n  options?: RequestInit,\n): Promise<sendVerificationResponse> => {\n  const res = await fetch(getSendVerificationUrl(), {\n    ...options,\n    method: \"POST\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: sendVerificationResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as sendVerificationResponse;\n};\n\nexport const getSendVerificationMutationOptions = <\n  TError = SendVerification400 | SendVerification403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof sendVerification>>,\n    TError,\n    void,\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof sendVerification>>,\n  TError,\n  void,\n  TContext\n> => {\n  const mutationKey = [\"sendVerification\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof sendVerification>>,\n    void\n  > = () => {\n    return sendVerification(fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type SendVerificationMutationResult = NonNullable<\n  Awaited<ReturnType<typeof sendVerification>>\n>;\n\nexport type SendVerificationMutationError =\n  | SendVerification400\n  | SendVerification403;\n\nexport const useSendVerification = <\n  TError = SendVerification400 | SendVerification403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof sendVerification>>,\n      TError,\n      void,\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof sendVerification>>,\n  TError,\n  void,\n  TContext\n> => {\n  return useMutation(getSendVerificationMutationOptions(options), queryClient);\n};\n\n/**\n * Returns all currently active sessions for the authenticated user, including device and location information where available.\n */\nexport type sessionsResponse200 = {\n  data: ActiveSessionsResponse;\n  status: 200;\n};\n\nexport type sessionsResponse403 = {\n  data: Sessions403;\n  status: 403;\n};\n\nexport type sessionsResponseSuccess = sessionsResponse200 & {\n  headers: Headers;\n};\nexport type sessionsResponseError = sessionsResponse403 & {\n  headers: Headers;\n};\n\nexport type sessionsResponse = sessionsResponseSuccess | sessionsResponseError;\n\nexport const getSessionsUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/sessions`;\n};\n\nexport const sessions = async (\n  options?: RequestInit,\n): Promise<sessionsResponse> => {\n  const res = await fetch(getSessionsUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: sessionsResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return { data, status: res.status, headers: res.headers } as sessionsResponse;\n};\n\nexport const getSessionsQueryKey = () => {\n  return [`https://api.workos.com/_widgets/UserProfile/sessions`] as const;\n};\n\nexport const getSessionsQueryOptions = <\n  TData = Awaited<ReturnType<typeof sessions>>,\n  TError = Sessions403,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<Awaited<ReturnType<typeof sessions>>, TError, TData>\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getSessionsQueryKey();\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof sessions>>> = ({\n    signal,\n  }) => sessions({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof sessions>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type SessionsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof sessions>>\n>;\nexport type SessionsQueryError = Sessions403;\n\nexport function useSessions<\n  TData = Awaited<ReturnType<typeof sessions>>,\n  TError = Sessions403,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof sessions>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof sessions>>,\n          TError,\n          Awaited<ReturnType<typeof sessions>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useSessions<\n  TData = Awaited<ReturnType<typeof sessions>>,\n  TError = Sessions403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof sessions>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof sessions>>,\n          TError,\n          Awaited<ReturnType<typeof sessions>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useSessions<\n  TData = Awaited<ReturnType<typeof sessions>>,\n  TError = Sessions403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof sessions>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useSessions<\n  TData = Awaited<ReturnType<typeof sessions>>,\n  TError = Sessions403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof sessions>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getSessionsQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Revokes all active sessions for the authenticated user except optionally the current one, signing them out of all other devices.\n */\nexport type revokeAllSessionsResponse200 = {\n  data: RevokeAllSessions200;\n  status: 200;\n};\n\nexport type revokeAllSessionsResponse400 = {\n  data: RevokeAllSessions400;\n  status: 400;\n};\n\nexport type revokeAllSessionsResponse403 = {\n  data: RevokeAllSessions403;\n  status: 403;\n};\n\nexport type revokeAllSessionsResponseSuccess = revokeAllSessionsResponse200 & {\n  headers: Headers;\n};\nexport type revokeAllSessionsResponseError = (\n  | revokeAllSessionsResponse400\n  | revokeAllSessionsResponse403\n) & {\n  headers: Headers;\n};\n\nexport type revokeAllSessionsResponse =\n  | revokeAllSessionsResponseSuccess\n  | revokeAllSessionsResponseError;\n\nexport const getRevokeAllSessionsUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/sessions/revoke-all`;\n};\n\nexport const revokeAllSessions = async (\n  revokeAllSessionsRequest: RevokeAllSessionsRequest,\n  options?: RequestInit,\n): Promise<revokeAllSessionsResponse> => {\n  const res = await fetch(getRevokeAllSessionsUrl(), {\n    ...options,\n    method: \"DELETE\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(revokeAllSessionsRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: revokeAllSessionsResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as revokeAllSessionsResponse;\n};\n\nexport const getRevokeAllSessionsMutationOptions = <\n  TError = RevokeAllSessions400 | RevokeAllSessions403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof revokeAllSessions>>,\n    TError,\n    { data: RevokeAllSessionsRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof revokeAllSessions>>,\n  TError,\n  { data: RevokeAllSessionsRequest },\n  TContext\n> => {\n  const mutationKey = [\"revokeAllSessions\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof revokeAllSessions>>,\n    { data: RevokeAllSessionsRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return revokeAllSessions(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type RevokeAllSessionsMutationResult = NonNullable<\n  Awaited<ReturnType<typeof revokeAllSessions>>\n>;\nexport type RevokeAllSessionsMutationBody = RevokeAllSessionsRequest;\nexport type RevokeAllSessionsMutationError =\n  | RevokeAllSessions400\n  | RevokeAllSessions403;\n\nexport const useRevokeAllSessions = <\n  TError = RevokeAllSessions400 | RevokeAllSessions403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof revokeAllSessions>>,\n      TError,\n      { data: RevokeAllSessionsRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof revokeAllSessions>>,\n  TError,\n  { data: RevokeAllSessionsRequest },\n  TContext\n> => {\n  return useMutation(getRevokeAllSessionsMutationOptions(options), queryClient);\n};\n\n/**\n * Revokes a specific active session by ID, signing the user out of that particular device or browser.\n */\nexport type revokeSessionResponse200 = {\n  data: RevokeSession200;\n  status: 200;\n};\n\nexport type revokeSessionResponse400 = {\n  data: RevokeSession400;\n  status: 400;\n};\n\nexport type revokeSessionResponse403 = {\n  data: RevokeSession403;\n  status: 403;\n};\n\nexport type revokeSessionResponseSuccess = revokeSessionResponse200 & {\n  headers: Headers;\n};\nexport type revokeSessionResponseError = (\n  | revokeSessionResponse400\n  | revokeSessionResponse403\n) & {\n  headers: Headers;\n};\n\nexport type revokeSessionResponse =\n  | revokeSessionResponseSuccess\n  | revokeSessionResponseError;\n\nexport const getRevokeSessionUrl = (sessionId: string) => {\n  return `https://api.workos.com/_widgets/UserProfile/sessions/revoke/${sessionId}`;\n};\n\nexport const revokeSession = async (\n  sessionId: string,\n  options?: RequestInit,\n): Promise<revokeSessionResponse> => {\n  const res = await fetch(getRevokeSessionUrl(sessionId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: revokeSessionResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as revokeSessionResponse;\n};\n\nexport const getRevokeSessionMutationOptions = <\n  TError = RevokeSession400 | RevokeSession403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof revokeSession>>,\n    TError,\n    { sessionId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof revokeSession>>,\n  TError,\n  { sessionId: string },\n  TContext\n> => {\n  const mutationKey = [\"revokeSession\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof revokeSession>>,\n    { sessionId: string }\n  > = (props) => {\n    const { sessionId } = props ?? {};\n\n    return revokeSession(sessionId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type RevokeSessionMutationResult = NonNullable<\n  Awaited<ReturnType<typeof revokeSession>>\n>;\n\nexport type RevokeSessionMutationError = RevokeSession400 | RevokeSession403;\n\nexport const useRevokeSession = <\n  TError = RevokeSession400 | RevokeSession403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof revokeSession>>,\n      TError,\n      { sessionId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof revokeSession>>,\n  TError,\n  { sessionId: string },\n  TContext\n> => {\n  return useMutation(getRevokeSessionMutationOptions(options), queryClient);\n};\n\n/**\n * Removes all TOTP factors enrolled for the authenticated user, disabling authenticator app as a second factor. Requires elevated access.\n */\nexport type deleteTotpFactorsResponse200 = {\n  data: DeleteTotpFactors200;\n  status: 200;\n};\n\nexport type deleteTotpFactorsResponse400 = {\n  data: DeleteTotpFactors400;\n  status: 400;\n};\n\nexport type deleteTotpFactorsResponse403 = {\n  data: DeleteTotpFactors403;\n  status: 403;\n};\n\nexport type deleteTotpFactorsResponseSuccess = deleteTotpFactorsResponse200 & {\n  headers: Headers;\n};\nexport type deleteTotpFactorsResponseError = (\n  | deleteTotpFactorsResponse400\n  | deleteTotpFactorsResponse403\n) & {\n  headers: Headers;\n};\n\nexport type deleteTotpFactorsResponse =\n  | deleteTotpFactorsResponseSuccess\n  | deleteTotpFactorsResponseError;\n\nexport const getDeleteTotpFactorsUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/totp-factors`;\n};\n\nexport const deleteTotpFactors = async (\n  options?: RequestInit,\n): Promise<deleteTotpFactorsResponse> => {\n  const res = await fetch(getDeleteTotpFactorsUrl(), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: deleteTotpFactorsResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as deleteTotpFactorsResponse;\n};\n\nexport const getDeleteTotpFactorsMutationOptions = <\n  TError = DeleteTotpFactors400 | DeleteTotpFactors403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof deleteTotpFactors>>,\n    TError,\n    void,\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof deleteTotpFactors>>,\n  TError,\n  void,\n  TContext\n> => {\n  const mutationKey = [\"deleteTotpFactors\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof deleteTotpFactors>>,\n    void\n  > = () => {\n    return deleteTotpFactors(fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteTotpFactorsMutationResult = NonNullable<\n  Awaited<ReturnType<typeof deleteTotpFactors>>\n>;\n\nexport type DeleteTotpFactorsMutationError =\n  | DeleteTotpFactors400\n  | DeleteTotpFactors403;\n\nexport const useDeleteTotpFactors = <\n  TError = DeleteTotpFactors400 | DeleteTotpFactors403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof deleteTotpFactors>>,\n      TError,\n      void,\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof deleteTotpFactors>>,\n  TError,\n  void,\n  TContext\n> => {\n  return useMutation(getDeleteTotpFactorsMutationOptions(options), queryClient);\n};\n\n/**\n * Changes the password for the authenticated user. Requires the current password to be supplied alongside the new password.\n */\nexport type updatePasswordResponse201 = {\n  data: UpdatePassword201;\n  status: 201;\n};\n\nexport type updatePasswordResponse400 = {\n  data: UpdatePassword400;\n  status: 400;\n};\n\nexport type updatePasswordResponse403 = {\n  data: UpdatePassword403;\n  status: 403;\n};\n\nexport type updatePasswordResponseSuccess = updatePasswordResponse201 & {\n  headers: Headers;\n};\nexport type updatePasswordResponseError = (\n  | updatePasswordResponse400\n  | updatePasswordResponse403\n) & {\n  headers: Headers;\n};\n\nexport type updatePasswordResponse =\n  | updatePasswordResponseSuccess\n  | updatePasswordResponseError;\n\nexport const getUpdatePasswordUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/update-password`;\n};\n\nexport const updatePassword = async (\n  updatePasswordRequest: UpdatePasswordRequest,\n  options?: RequestInit,\n): Promise<updatePasswordResponse> => {\n  const res = await fetch(getUpdatePasswordUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(updatePasswordRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: updatePasswordResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as updatePasswordResponse;\n};\n\nexport const getUpdatePasswordMutationOptions = <\n  TError = UpdatePassword400 | UpdatePassword403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof updatePassword>>,\n    TError,\n    { data: UpdatePasswordRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof updatePassword>>,\n  TError,\n  { data: UpdatePasswordRequest },\n  TContext\n> => {\n  const mutationKey = [\"updatePassword\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof updatePassword>>,\n    { data: UpdatePasswordRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return updatePassword(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type UpdatePasswordMutationResult = NonNullable<\n  Awaited<ReturnType<typeof updatePassword>>\n>;\nexport type UpdatePasswordMutationBody = UpdatePasswordRequest;\nexport type UpdatePasswordMutationError = UpdatePassword400 | UpdatePassword403;\n\nexport const useUpdatePassword = <\n  TError = UpdatePassword400 | UpdatePassword403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof updatePassword>>,\n      TError,\n      { data: UpdatePasswordRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof updatePassword>>,\n  TError,\n  { data: UpdatePasswordRequest },\n  TContext\n> => {\n  return useMutation(getUpdatePasswordMutationOptions(options), queryClient);\n};\n\n/**\n * Verifies the email address of the authenticated user using the code sent via the send-verification endpoint. On success, returns an elevated access token that grants access to sensitive operations such as MFA enrollment and passkey management.\n */\nexport type verifyResponse200 = {\n  data: VerifyResponse;\n  status: 200;\n};\n\nexport type verifyResponse400 = {\n  data: Verify400;\n  status: 400;\n};\n\nexport type verifyResponse403 = {\n  data: Verify403;\n  status: 403;\n};\n\nexport type verifyResponseSuccess = verifyResponse200 & {\n  headers: Headers;\n};\nexport type verifyResponseError = (verifyResponse400 | verifyResponse403) & {\n  headers: Headers;\n};\n\nexport type verifyResponse = verifyResponseSuccess | verifyResponseError;\n\nexport const getVerifyUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/verify`;\n};\n\nexport const verify = async (\n  verifyRequest: VerifyRequest,\n  options?: RequestInit,\n): Promise<verifyResponse> => {\n  const res = await fetch(getVerifyUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(verifyRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: verifyResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return { data, status: res.status, headers: res.headers } as verifyResponse;\n};\n\nexport const getVerifyMutationOptions = <\n  TError = Verify400 | Verify403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof verify>>,\n    TError,\n    { data: VerifyRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof verify>>,\n  TError,\n  { data: VerifyRequest },\n  TContext\n> => {\n  const mutationKey = [\"verify\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof verify>>,\n    { data: VerifyRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return verify(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type VerifyMutationResult = NonNullable<\n  Awaited<ReturnType<typeof verify>>\n>;\nexport type VerifyMutationBody = VerifyRequest;\nexport type VerifyMutationError = Verify400 | Verify403;\n\nexport const useVerify = <TError = Verify400 | Verify403, TContext = unknown>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof verify>>,\n      TError,\n      { data: VerifyRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof verify>>,\n  TError,\n  { data: VerifyRequest },\n  TContext\n> => {\n  return useMutation(getVerifyMutationOptions(options), queryClient);\n};\n\n/**\n * Verifies a pending email change using the one-time code sent via send-email-change. On success, updates the user’s email address and returns the updated profile along with an elevated access token that grants access to sensitive operations such as setting a password.\n */\nexport type verifyEmailChangeResponse200 = {\n  data: VerifyEmailChangeResponse;\n  status: 200;\n};\n\nexport type verifyEmailChangeResponse400 = {\n  data: VerifyEmailChange400;\n  status: 400;\n};\n\nexport type verifyEmailChangeResponse403 = {\n  data: VerifyEmailChange403;\n  status: 403;\n};\n\nexport type verifyEmailChangeResponse409 = {\n  data: VerifyEmailChange409;\n  status: 409;\n};\n\nexport type verifyEmailChangeResponse422 = {\n  data: VerifyEmailChange422;\n  status: 422;\n};\n\nexport type verifyEmailChangeResponse429 = {\n  data: VerifyEmailChange429;\n  status: 429;\n};\n\nexport type verifyEmailChangeResponseSuccess = verifyEmailChangeResponse200 & {\n  headers: Headers;\n};\nexport type verifyEmailChangeResponseError = (\n  | verifyEmailChangeResponse400\n  | verifyEmailChangeResponse403\n  | verifyEmailChangeResponse409\n  | verifyEmailChangeResponse422\n  | verifyEmailChangeResponse429\n) & {\n  headers: Headers;\n};\n\nexport type verifyEmailChangeResponse =\n  | verifyEmailChangeResponseSuccess\n  | verifyEmailChangeResponseError;\n\nexport const getVerifyEmailChangeUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/verify-email-change`;\n};\n\nexport const verifyEmailChange = async (\n  verifyEmailChangeRequest: VerifyEmailChangeRequest,\n  options?: RequestInit,\n): Promise<verifyEmailChangeResponse> => {\n  const res = await fetch(getVerifyEmailChangeUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(verifyEmailChangeRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: verifyEmailChangeResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as verifyEmailChangeResponse;\n};\n\nexport const getVerifyEmailChangeMutationOptions = <\n  TError =\n    | VerifyEmailChange400\n    | VerifyEmailChange403\n    | VerifyEmailChange409\n    | VerifyEmailChange422\n    | VerifyEmailChange429,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof verifyEmailChange>>,\n    TError,\n    { data: VerifyEmailChangeRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof verifyEmailChange>>,\n  TError,\n  { data: VerifyEmailChangeRequest },\n  TContext\n> => {\n  const mutationKey = [\"verifyEmailChange\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof verifyEmailChange>>,\n    { data: VerifyEmailChangeRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return verifyEmailChange(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type VerifyEmailChangeMutationResult = NonNullable<\n  Awaited<ReturnType<typeof verifyEmailChange>>\n>;\nexport type VerifyEmailChangeMutationBody = VerifyEmailChangeRequest;\nexport type VerifyEmailChangeMutationError =\n  | VerifyEmailChange400\n  | VerifyEmailChange403\n  | VerifyEmailChange409\n  | VerifyEmailChange422\n  | VerifyEmailChange429;\n\nexport const useVerifyEmailChange = <\n  TError =\n    | VerifyEmailChange400\n    | VerifyEmailChange403\n    | VerifyEmailChange409\n    | VerifyEmailChange422\n    | VerifyEmailChange429,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof verifyEmailChange>>,\n      TError,\n      { data: VerifyEmailChangeRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof verifyEmailChange>>,\n  TError,\n  { data: VerifyEmailChangeRequest },\n  TContext\n> => {\n  return useMutation(getVerifyEmailChangeMutationOptions(options), queryClient);\n};\n\n/**\n * Completes TOTP enrollment by verifying the one-time code generated by the authenticator app. Requires elevated access.\n */\nexport type verifyTotpFactorResponse200 = {\n  data: VerifyTotpFactor200;\n  status: 200;\n};\n\nexport type verifyTotpFactorResponse400 = {\n  data: VerifyTotpFactor400;\n  status: 400;\n};\n\nexport type verifyTotpFactorResponse403 = {\n  data: VerifyTotpFactor403;\n  status: 403;\n};\n\nexport type verifyTotpFactorResponseSuccess = verifyTotpFactorResponse200 & {\n  headers: Headers;\n};\nexport type verifyTotpFactorResponseError = (\n  | verifyTotpFactorResponse400\n  | verifyTotpFactorResponse403\n) & {\n  headers: Headers;\n};\n\nexport type verifyTotpFactorResponse =\n  | verifyTotpFactorResponseSuccess\n  | verifyTotpFactorResponseError;\n\nexport const getVerifyTotpFactorUrl = () => {\n  return `https://api.workos.com/_widgets/UserProfile/verify-totp-factor`;\n};\n\nexport const verifyTotpFactor = async (\n  verifyTotpFactorRequest: VerifyTotpFactorRequest,\n  options?: RequestInit,\n): Promise<verifyTotpFactorResponse> => {\n  const res = await fetch(getVerifyTotpFactorUrl(), {\n    ...options,\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n    body: JSON.stringify(verifyTotpFactorRequest),\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: verifyTotpFactorResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as verifyTotpFactorResponse;\n};\n\nexport const getVerifyTotpFactorMutationOptions = <\n  TError = VerifyTotpFactor400 | VerifyTotpFactor403,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof verifyTotpFactor>>,\n    TError,\n    { data: VerifyTotpFactorRequest },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof verifyTotpFactor>>,\n  TError,\n  { data: VerifyTotpFactorRequest },\n  TContext\n> => {\n  const mutationKey = [\"verifyTotpFactor\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof verifyTotpFactor>>,\n    { data: VerifyTotpFactorRequest }\n  > = (props) => {\n    const { data } = props ?? {};\n\n    return verifyTotpFactor(data, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type VerifyTotpFactorMutationResult = NonNullable<\n  Awaited<ReturnType<typeof verifyTotpFactor>>\n>;\nexport type VerifyTotpFactorMutationBody = VerifyTotpFactorRequest;\nexport type VerifyTotpFactorMutationError =\n  | VerifyTotpFactor400\n  | VerifyTotpFactor403;\n\nexport const useVerifyTotpFactor = <\n  TError = VerifyTotpFactor400 | VerifyTotpFactor403,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof verifyTotpFactor>>,\n      TError,\n      { data: VerifyTotpFactorRequest },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof verifyTotpFactor>>,\n  TError,\n  { data: VerifyTotpFactorRequest },\n  TContext\n> => {\n  return useMutation(getVerifyTotpFactorMutationOptions(options), queryClient);\n};\n\nexport type getAuditLogStreamResponse200 = {\n  data: GetAuditLogStream200;\n  status: 200;\n};\n\nexport type getAuditLogStreamResponse403 = {\n  data: GetAuditLogStream403;\n  status: 403;\n};\n\nexport type getAuditLogStreamResponseSuccess = getAuditLogStreamResponse200 & {\n  headers: Headers;\n};\nexport type getAuditLogStreamResponseError = getAuditLogStreamResponse403 & {\n  headers: Headers;\n};\n\nexport type getAuditLogStreamResponse =\n  | getAuditLogStreamResponseSuccess\n  | getAuditLogStreamResponseError;\n\nexport const getGetAuditLogStreamUrl = () => {\n  return `https://api.workos.com/_widgets/admin-portal/audit-log-stream`;\n};\n\nexport const getAuditLogStream = async (\n  options?: RequestInit,\n): Promise<getAuditLogStreamResponse> => {\n  const res = await fetch(getGetAuditLogStreamUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: getAuditLogStreamResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as getAuditLogStreamResponse;\n};\n\nexport const getGetAuditLogStreamQueryKey = () => {\n  return [\n    `https://api.workos.com/_widgets/admin-portal/audit-log-stream`,\n  ] as const;\n};\n\nexport const getGetAuditLogStreamQueryOptions = <\n  TData = Awaited<ReturnType<typeof getAuditLogStream>>,\n  TError = GetAuditLogStream403,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<\n      Awaited<ReturnType<typeof getAuditLogStream>>,\n      TError,\n      TData\n    >\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getGetAuditLogStreamQueryKey();\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof getAuditLogStream>>\n  > = ({ signal }) => getAuditLogStream({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof getAuditLogStream>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetAuditLogStreamQueryResult = NonNullable<\n  Awaited<ReturnType<typeof getAuditLogStream>>\n>;\nexport type GetAuditLogStreamQueryError = GetAuditLogStream403;\n\nexport function useGetAuditLogStream<\n  TData = Awaited<ReturnType<typeof getAuditLogStream>>,\n  TError = GetAuditLogStream403,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getAuditLogStream>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getAuditLogStream>>,\n          TError,\n          Awaited<ReturnType<typeof getAuditLogStream>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetAuditLogStream<\n  TData = Awaited<ReturnType<typeof getAuditLogStream>>,\n  TError = GetAuditLogStream403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getAuditLogStream>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getAuditLogStream>>,\n          TError,\n          Awaited<ReturnType<typeof getAuditLogStream>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetAuditLogStream<\n  TData = Awaited<ReturnType<typeof getAuditLogStream>>,\n  TError = GetAuditLogStream403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getAuditLogStream>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useGetAuditLogStream<\n  TData = Awaited<ReturnType<typeof getAuditLogStream>>,\n  TError = GetAuditLogStream403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof getAuditLogStream>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getGetAuditLogStreamQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type generateAdminPortalLinkResponse201 = {\n  data: GenerateAdminPortalLink201;\n  status: 201;\n};\n\nexport type generateAdminPortalLinkResponse403 = {\n  data: GenerateAdminPortalLink403;\n  status: 403;\n};\n\nexport type generateAdminPortalLinkResponse404 = {\n  data: GenerateAdminPortalLink404;\n  status: 404;\n};\n\nexport type generateAdminPortalLinkResponse500 = {\n  data: GenerateAdminPortalLink500;\n  status: 500;\n};\n\nexport type generateAdminPortalLinkResponseSuccess =\n  generateAdminPortalLinkResponse201 & {\n    headers: Headers;\n  };\nexport type generateAdminPortalLinkResponseError = (\n  | generateAdminPortalLinkResponse403\n  | generateAdminPortalLinkResponse404\n  | generateAdminPortalLinkResponse500\n) & {\n  headers: Headers;\n};\n\nexport type generateAdminPortalLinkResponse =\n  | generateAdminPortalLinkResponseSuccess\n  | generateAdminPortalLinkResponseError;\n\nexport const getGenerateAdminPortalLinkUrl = (\n  params: GenerateAdminPortalLinkParams,\n) => {\n  const normalizedParams = new URLSearchParams();\n\n  Object.entries(params || {}).forEach(([key, value]) => {\n    if (value !== undefined) {\n      normalizedParams.append(key, value === null ? \"null\" : value.toString());\n    }\n  });\n\n  const stringifiedParams = normalizedParams.toString();\n\n  return stringifiedParams.length > 0\n    ? `https://api.workos.com/_widgets/admin-portal/generate-link?${stringifiedParams}`\n    : `https://api.workos.com/_widgets/admin-portal/generate-link`;\n};\n\nexport const generateAdminPortalLink = async (\n  params: GenerateAdminPortalLinkParams,\n  options?: RequestInit,\n): Promise<generateAdminPortalLinkResponse> => {\n  const res = await fetch(getGenerateAdminPortalLinkUrl(params), {\n    ...options,\n    method: \"POST\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: generateAdminPortalLinkResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as generateAdminPortalLinkResponse;\n};\n\nexport const getGenerateAdminPortalLinkMutationOptions = <\n  TError =\n    | GenerateAdminPortalLink403\n    | GenerateAdminPortalLink404\n    | GenerateAdminPortalLink500,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof generateAdminPortalLink>>,\n    TError,\n    { params: GenerateAdminPortalLinkParams },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof generateAdminPortalLink>>,\n  TError,\n  { params: GenerateAdminPortalLinkParams },\n  TContext\n> => {\n  const mutationKey = [\"generateAdminPortalLink\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof generateAdminPortalLink>>,\n    { params: GenerateAdminPortalLinkParams }\n  > = (props) => {\n    const { params } = props ?? {};\n\n    return generateAdminPortalLink(params, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type GenerateAdminPortalLinkMutationResult = NonNullable<\n  Awaited<ReturnType<typeof generateAdminPortalLink>>\n>;\n\nexport type GenerateAdminPortalLinkMutationError =\n  | GenerateAdminPortalLink403\n  | GenerateAdminPortalLink404\n  | GenerateAdminPortalLink500;\n\nexport const useGenerateAdminPortalLink = <\n  TError =\n    | GenerateAdminPortalLink403\n    | GenerateAdminPortalLink404\n    | GenerateAdminPortalLink500,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof generateAdminPortalLink>>,\n      TError,\n      { params: GenerateAdminPortalLinkParams },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof generateAdminPortalLink>>,\n  TError,\n  { params: GenerateAdminPortalLinkParams },\n  TContext\n> => {\n  return useMutation(\n    getGenerateAdminPortalLinkMutationOptions(options),\n    queryClient,\n  );\n};\n\nexport type listOrganizationDomainsResponse200 = {\n  data: ListOrganizationDomains200;\n  status: 200;\n};\n\nexport type listOrganizationDomainsResponse403 = {\n  data: ListOrganizationDomains403;\n  status: 403;\n};\n\nexport type listOrganizationDomainsResponse404 = {\n  data: ListOrganizationDomains404;\n  status: 404;\n};\n\nexport type listOrganizationDomainsResponseSuccess =\n  listOrganizationDomainsResponse200 & {\n    headers: Headers;\n  };\nexport type listOrganizationDomainsResponseError = (\n  | listOrganizationDomainsResponse403\n  | listOrganizationDomainsResponse404\n) & {\n  headers: Headers;\n};\n\nexport type listOrganizationDomainsResponse =\n  | listOrganizationDomainsResponseSuccess\n  | listOrganizationDomainsResponseError;\n\nexport const getListOrganizationDomainsUrl = () => {\n  return `https://api.workos.com/_widgets/admin-portal/organization-domains`;\n};\n\nexport const listOrganizationDomains = async (\n  options?: RequestInit,\n): Promise<listOrganizationDomainsResponse> => {\n  const res = await fetch(getListOrganizationDomainsUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: listOrganizationDomainsResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as listOrganizationDomainsResponse;\n};\n\nexport const getListOrganizationDomainsQueryKey = () => {\n  return [\n    `https://api.workos.com/_widgets/admin-portal/organization-domains`,\n  ] as const;\n};\n\nexport const getListOrganizationDomainsQueryOptions = <\n  TData = Awaited<ReturnType<typeof listOrganizationDomains>>,\n  TError = ListOrganizationDomains403 | ListOrganizationDomains404,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<\n      Awaited<ReturnType<typeof listOrganizationDomains>>,\n      TError,\n      TData\n    >\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ?? getListOrganizationDomainsQueryKey();\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof listOrganizationDomains>>\n  > = ({ signal }) => listOrganizationDomains({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof listOrganizationDomains>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type ListOrganizationDomainsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof listOrganizationDomains>>\n>;\nexport type ListOrganizationDomainsQueryError =\n  | ListOrganizationDomains403\n  | ListOrganizationDomains404;\n\nexport function useListOrganizationDomains<\n  TData = Awaited<ReturnType<typeof listOrganizationDomains>>,\n  TError = ListOrganizationDomains403 | ListOrganizationDomains404,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationDomains>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listOrganizationDomains>>,\n          TError,\n          Awaited<ReturnType<typeof listOrganizationDomains>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListOrganizationDomains<\n  TData = Awaited<ReturnType<typeof listOrganizationDomains>>,\n  TError = ListOrganizationDomains403 | ListOrganizationDomains404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationDomains>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listOrganizationDomains>>,\n          TError,\n          Awaited<ReturnType<typeof listOrganizationDomains>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListOrganizationDomains<\n  TData = Awaited<ReturnType<typeof listOrganizationDomains>>,\n  TError = ListOrganizationDomains403 | ListOrganizationDomains404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationDomains>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useListOrganizationDomains<\n  TData = Awaited<ReturnType<typeof listOrganizationDomains>>,\n  TError = ListOrganizationDomains403 | ListOrganizationDomains404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listOrganizationDomains>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getListOrganizationDomainsQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type deleteOrganizationDomainResponse200 = {\n  data: OrganizationDomain;\n  status: 200;\n};\n\nexport type deleteOrganizationDomainResponse403 = {\n  data: DeleteOrganizationDomain403;\n  status: 403;\n};\n\nexport type deleteOrganizationDomainResponse404 = {\n  data: DeleteOrganizationDomain404;\n  status: 404;\n};\n\nexport type deleteOrganizationDomainResponseSuccess =\n  deleteOrganizationDomainResponse200 & {\n    headers: Headers;\n  };\nexport type deleteOrganizationDomainResponseError = (\n  | deleteOrganizationDomainResponse403\n  | deleteOrganizationDomainResponse404\n) & {\n  headers: Headers;\n};\n\nexport type deleteOrganizationDomainResponse =\n  | deleteOrganizationDomainResponseSuccess\n  | deleteOrganizationDomainResponseError;\n\nexport const getDeleteOrganizationDomainUrl = (domainId: string) => {\n  return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}`;\n};\n\nexport const deleteOrganizationDomain = async (\n  domainId: string,\n  options?: RequestInit,\n): Promise<deleteOrganizationDomainResponse> => {\n  const res = await fetch(getDeleteOrganizationDomainUrl(domainId), {\n    ...options,\n    method: \"DELETE\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: deleteOrganizationDomainResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as deleteOrganizationDomainResponse;\n};\n\nexport const getDeleteOrganizationDomainMutationOptions = <\n  TError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof deleteOrganizationDomain>>,\n    TError,\n    { domainId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof deleteOrganizationDomain>>,\n  TError,\n  { domainId: string },\n  TContext\n> => {\n  const mutationKey = [\"deleteOrganizationDomain\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof deleteOrganizationDomain>>,\n    { domainId: string }\n  > = (props) => {\n    const { domainId } = props ?? {};\n\n    return deleteOrganizationDomain(domainId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganizationDomainMutationResult = NonNullable<\n  Awaited<ReturnType<typeof deleteOrganizationDomain>>\n>;\n\nexport type DeleteOrganizationDomainMutationError =\n  | DeleteOrganizationDomain403\n  | DeleteOrganizationDomain404;\n\nexport const useDeleteOrganizationDomain = <\n  TError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof deleteOrganizationDomain>>,\n      TError,\n      { domainId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof deleteOrganizationDomain>>,\n  TError,\n  { domainId: string },\n  TContext\n> => {\n  return useMutation(\n    getDeleteOrganizationDomainMutationOptions(options),\n    queryClient,\n  );\n};\n\nexport type reverifyOrganizationDomainResponse200 = {\n  data: OrganizationDomain;\n  status: 200;\n};\n\nexport type reverifyOrganizationDomainResponse403 = {\n  data: ReverifyOrganizationDomain403;\n  status: 403;\n};\n\nexport type reverifyOrganizationDomainResponse404 = {\n  data: ReverifyOrganizationDomain404;\n  status: 404;\n};\n\nexport type reverifyOrganizationDomainResponseSuccess =\n  reverifyOrganizationDomainResponse200 & {\n    headers: Headers;\n  };\nexport type reverifyOrganizationDomainResponseError = (\n  | reverifyOrganizationDomainResponse403\n  | reverifyOrganizationDomainResponse404\n) & {\n  headers: Headers;\n};\n\nexport type reverifyOrganizationDomainResponse =\n  | reverifyOrganizationDomainResponseSuccess\n  | reverifyOrganizationDomainResponseError;\n\nexport const getReverifyOrganizationDomainUrl = (domainId: string) => {\n  return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}/reverify`;\n};\n\nexport const reverifyOrganizationDomain = async (\n  domainId: string,\n  options?: RequestInit,\n): Promise<reverifyOrganizationDomainResponse> => {\n  const res = await fetch(getReverifyOrganizationDomainUrl(domainId), {\n    ...options,\n    method: \"POST\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: reverifyOrganizationDomainResponse[\"data\"] = body\n    ? JSON.parse(body)\n    : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as reverifyOrganizationDomainResponse;\n};\n\nexport const getReverifyOrganizationDomainMutationOptions = <\n  TError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404,\n  TContext = unknown,\n>(options?: {\n  mutation?: UseMutationOptions<\n    Awaited<ReturnType<typeof reverifyOrganizationDomain>>,\n    TError,\n    { domainId: string },\n    TContext\n  >;\n  fetch?: RequestInit;\n}): UseMutationOptions<\n  Awaited<ReturnType<typeof reverifyOrganizationDomain>>,\n  TError,\n  { domainId: string },\n  TContext\n> => {\n  const mutationKey = [\"reverifyOrganizationDomain\"];\n  const { mutation: mutationOptions, fetch: fetchOptions } = options\n    ? options.mutation &&\n      \"mutationKey\" in options.mutation &&\n      options.mutation.mutationKey\n      ? options\n      : { ...options, mutation: { ...options.mutation, mutationKey } }\n    : { mutation: { mutationKey }, fetch: undefined };\n\n  const mutationFn: MutationFunction<\n    Awaited<ReturnType<typeof reverifyOrganizationDomain>>,\n    { domainId: string }\n  > = (props) => {\n    const { domainId } = props ?? {};\n\n    return reverifyOrganizationDomain(domainId, fetchOptions);\n  };\n\n  return { mutationFn, ...mutationOptions };\n};\n\nexport type ReverifyOrganizationDomainMutationResult = NonNullable<\n  Awaited<ReturnType<typeof reverifyOrganizationDomain>>\n>;\n\nexport type ReverifyOrganizationDomainMutationError =\n  | ReverifyOrganizationDomain403\n  | ReverifyOrganizationDomain404;\n\nexport const useReverifyOrganizationDomain = <\n  TError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404,\n  TContext = unknown,\n>(\n  options?: {\n    mutation?: UseMutationOptions<\n      Awaited<ReturnType<typeof reverifyOrganizationDomain>>,\n      TError,\n      { domainId: string },\n      TContext\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseMutationResult<\n  Awaited<ReturnType<typeof reverifyOrganizationDomain>>,\n  TError,\n  { domainId: string },\n  TContext\n> => {\n  return useMutation(\n    getReverifyOrganizationDomainMutationOptions(options),\n    queryClient,\n  );\n};\n\nexport type listSsoConnectionsResponse200 = {\n  data: SsoConnection[];\n  status: 200;\n};\n\nexport type listSsoConnectionsResponseSuccess =\n  listSsoConnectionsResponse200 & {\n    headers: Headers;\n  };\nexport type listSsoConnectionsResponse = listSsoConnectionsResponseSuccess;\n\nexport const getListSsoConnectionsUrl = () => {\n  return `https://api.workos.com/_widgets/admin-portal/sso-connections`;\n};\n\nexport const listSsoConnections = async (\n  options?: RequestInit,\n): Promise<listSsoConnectionsResponse> => {\n  const res = await fetch(getListSsoConnectionsUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: listSsoConnectionsResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as listSsoConnectionsResponse;\n};\n\nexport const getListSsoConnectionsQueryKey = () => {\n  return [\n    `https://api.workos.com/_widgets/admin-portal/sso-connections`,\n  ] as const;\n};\n\nexport const getListSsoConnectionsQueryOptions = <\n  TData = Awaited<ReturnType<typeof listSsoConnections>>,\n  TError = unknown,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<\n      Awaited<ReturnType<typeof listSsoConnections>>,\n      TError,\n      TData\n    >\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getListSsoConnectionsQueryKey();\n\n  const queryFn: QueryFunction<\n    Awaited<ReturnType<typeof listSsoConnections>>\n  > = ({ signal }) => listSsoConnections({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof listSsoConnections>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type ListSsoConnectionsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof listSsoConnections>>\n>;\nexport type ListSsoConnectionsQueryError = unknown;\n\nexport function useListSsoConnections<\n  TData = Awaited<ReturnType<typeof listSsoConnections>>,\n  TError = unknown,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listSsoConnections>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listSsoConnections>>,\n          TError,\n          Awaited<ReturnType<typeof listSsoConnections>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListSsoConnections<\n  TData = Awaited<ReturnType<typeof listSsoConnections>>,\n  TError = unknown,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listSsoConnections>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listSsoConnections>>,\n          TError,\n          Awaited<ReturnType<typeof listSsoConnections>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListSsoConnections<\n  TData = Awaited<ReturnType<typeof listSsoConnections>>,\n  TError = unknown,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listSsoConnections>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useListSsoConnections<\n  TData = Awaited<ReturnType<typeof listSsoConnections>>,\n  TError = unknown,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listSsoConnections>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getListSsoConnectionsQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type listDirectoriesResponse200 = {\n  data: DirectoriesResponse;\n  status: 200;\n};\n\nexport type listDirectoriesResponse403 = {\n  data: ListDirectories403;\n  status: 403;\n};\n\nexport type listDirectoriesResponse404 = {\n  data: ListDirectories404;\n  status: 404;\n};\n\nexport type listDirectoriesResponseSuccess = listDirectoriesResponse200 & {\n  headers: Headers;\n};\nexport type listDirectoriesResponseError = (\n  | listDirectoriesResponse403\n  | listDirectoriesResponse404\n) & {\n  headers: Headers;\n};\n\nexport type listDirectoriesResponse =\n  | listDirectoriesResponseSuccess\n  | listDirectoriesResponseError;\n\nexport const getListDirectoriesUrl = () => {\n  return `https://api.workos.com/_widgets/directory-sync/directories`;\n};\n\nexport const listDirectories = async (\n  options?: RequestInit,\n): Promise<listDirectoriesResponse> => {\n  const res = await fetch(getListDirectoriesUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: listDirectoriesResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as listDirectoriesResponse;\n};\n\nexport const getListDirectoriesQueryKey = () => {\n  return [\n    `https://api.workos.com/_widgets/directory-sync/directories`,\n  ] as const;\n};\n\nexport const getListDirectoriesQueryOptions = <\n  TData = Awaited<ReturnType<typeof listDirectories>>,\n  TError = ListDirectories403 | ListDirectories404,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<Awaited<ReturnType<typeof listDirectories>>, TError, TData>\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getListDirectoriesQueryKey();\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof listDirectories>>> = ({\n    signal,\n  }) => listDirectories({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof listDirectories>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type ListDirectoriesQueryResult = NonNullable<\n  Awaited<ReturnType<typeof listDirectories>>\n>;\nexport type ListDirectoriesQueryError = ListDirectories403 | ListDirectories404;\n\nexport function useListDirectories<\n  TData = Awaited<ReturnType<typeof listDirectories>>,\n  TError = ListDirectories403 | ListDirectories404,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listDirectories>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listDirectories>>,\n          TError,\n          Awaited<ReturnType<typeof listDirectories>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListDirectories<\n  TData = Awaited<ReturnType<typeof listDirectories>>,\n  TError = ListDirectories403 | ListDirectories404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listDirectories>>,\n        TError,\n        TData\n      >\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof listDirectories>>,\n          TError,\n          Awaited<ReturnType<typeof listDirectories>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useListDirectories<\n  TData = Awaited<ReturnType<typeof listDirectories>>,\n  TError = ListDirectories403 | ListDirectories404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listDirectories>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useListDirectories<\n  TData = Awaited<ReturnType<typeof listDirectories>>,\n  TError = ListDirectories403 | ListDirectories404,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<\n        Awaited<ReturnType<typeof listDirectories>>,\n        TError,\n        TData\n      >\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getListDirectoriesQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\nexport type getDirectoryResponse200 = {\n  data: Directory;\n  status: 200;\n};\n\nexport type getDirectoryResponse403 = {\n  data: GetDirectory403;\n  status: 403;\n};\n\nexport type getDirectoryResponse404 = {\n  data: GetDirectory404;\n  status: 404;\n};\n\nexport type getDirectoryResponseSuccess = getDirectoryResponse200 & {\n  headers: Headers;\n};\nexport type getDirectoryResponseError = (\n  | getDirectoryResponse403\n  | getDirectoryResponse404\n) & {\n  headers: Headers;\n};\n\nexport type getDirectoryResponse =\n  | getDirectoryResponseSuccess\n  | getDirectoryResponseError;\n\nexport const getGetDirectoryUrl = (directoryId: string) => {\n  return `https://api.workos.com/_widgets/directory-sync/directories/${directoryId}`;\n};\n\nexport const getDirectory = async (\n  directoryId: string,\n  options?: RequestInit,\n): Promise<getDirectoryResponse> => {\n  const res = await fetch(getGetDirectoryUrl(directoryId), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: getDirectoryResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return {\n    data,\n    status: res.status,\n    headers: res.headers,\n  } as getDirectoryResponse;\n};\n\nexport const getGetDirectoryQueryKey = (directoryId: string) => {\n  return [\n    `https://api.workos.com/_widgets/directory-sync/directories/${directoryId}`,\n  ] as const;\n};\n\nexport const getGetDirectoryQueryOptions = <\n  TData = Awaited<ReturnType<typeof getDirectory>>,\n  TError = GetDirectory403 | GetDirectory404,\n>(\n  directoryId: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof getDirectory>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey =\n    queryOptions?.queryKey ?? getGetDirectoryQueryKey(directoryId);\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof getDirectory>>> = ({\n    signal,\n  }) => getDirectory(directoryId, { signal, ...fetchOptions });\n\n  return {\n    queryKey,\n    queryFn,\n    enabled: !!directoryId,\n    ...queryOptions,\n  } as UseQueryOptions<\n    Awaited<ReturnType<typeof getDirectory>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDirectoryQueryResult = NonNullable<\n  Awaited<ReturnType<typeof getDirectory>>\n>;\nexport type GetDirectoryQueryError = GetDirectory403 | GetDirectory404;\n\nexport function useGetDirectory<\n  TData = Awaited<ReturnType<typeof getDirectory>>,\n  TError = GetDirectory403 | GetDirectory404,\n>(\n  directoryId: string,\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof getDirectory>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getDirectory>>,\n          TError,\n          Awaited<ReturnType<typeof getDirectory>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetDirectory<\n  TData = Awaited<ReturnType<typeof getDirectory>>,\n  TError = GetDirectory403 | GetDirectory404,\n>(\n  directoryId: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof getDirectory>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof getDirectory>>,\n          TError,\n          Awaited<ReturnType<typeof getDirectory>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useGetDirectory<\n  TData = Awaited<ReturnType<typeof getDirectory>>,\n  TError = GetDirectory403 | GetDirectory404,\n>(\n  directoryId: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof getDirectory>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useGetDirectory<\n  TData = Awaited<ReturnType<typeof getDirectory>>,\n  TError = GetDirectory403 | GetDirectory404,\n>(\n  directoryId: string,\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof getDirectory>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getGetDirectoryQueryOptions(directoryId, options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * Returns the widget settings for the current environment, including enabled authentication methods and branding configuration.\n */\nexport type settingsResponse200 = {\n  data: SettingsResponse;\n  status: 200;\n};\n\nexport type settingsResponse403 = {\n  data: Settings403;\n  status: 403;\n};\n\nexport type settingsResponseSuccess = settingsResponse200 & {\n  headers: Headers;\n};\nexport type settingsResponseError = settingsResponse403 & {\n  headers: Headers;\n};\n\nexport type settingsResponse = settingsResponseSuccess | settingsResponseError;\n\nexport const getSettingsUrl = () => {\n  return `https://api.workos.com/_widgets/settings`;\n};\n\nexport const settings = async (\n  options?: RequestInit,\n): Promise<settingsResponse> => {\n  const res = await fetch(getSettingsUrl(), {\n    ...options,\n    method: \"GET\",\n  });\n\n  const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n  const data: settingsResponse[\"data\"] = body ? JSON.parse(body) : {};\n  return { data, status: res.status, headers: res.headers } as settingsResponse;\n};\n\nexport const getSettingsQueryKey = () => {\n  return [`https://api.workos.com/_widgets/settings`] as const;\n};\n\nexport const getSettingsQueryOptions = <\n  TData = Awaited<ReturnType<typeof settings>>,\n  TError = Settings403,\n>(options?: {\n  query?: Partial<\n    UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>\n  >;\n  fetch?: RequestInit;\n}) => {\n  const { query: queryOptions, fetch: fetchOptions } = options ?? {};\n\n  const queryKey = queryOptions?.queryKey ?? getSettingsQueryKey();\n\n  const queryFn: QueryFunction<Awaited<ReturnType<typeof settings>>> = ({\n    signal,\n  }) => settings({ signal, ...fetchOptions });\n\n  return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n    Awaited<ReturnType<typeof settings>>,\n    TError,\n    TData\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type SettingsQueryResult = NonNullable<\n  Awaited<ReturnType<typeof settings>>\n>;\nexport type SettingsQueryError = Settings403;\n\nexport function useSettings<\n  TData = Awaited<ReturnType<typeof settings>>,\n  TError = Settings403,\n>(\n  options: {\n    query: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>\n    > &\n      Pick<\n        DefinedInitialDataOptions<\n          Awaited<ReturnType<typeof settings>>,\n          TError,\n          Awaited<ReturnType<typeof settings>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useSettings<\n  TData = Awaited<ReturnType<typeof settings>>,\n  TError = Settings403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>\n    > &\n      Pick<\n        UndefinedInitialDataOptions<\n          Awaited<ReturnType<typeof settings>>,\n          TError,\n          Awaited<ReturnType<typeof settings>>\n        >,\n        \"initialData\"\n      >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\nexport function useSettings<\n  TData = Awaited<ReturnType<typeof settings>>,\n  TError = Settings403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n};\n\nexport function useSettings<\n  TData = Awaited<ReturnType<typeof settings>>,\n  TError = Settings403,\n>(\n  options?: {\n    query?: Partial<\n      UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>\n    >;\n    fetch?: RequestInit;\n  },\n  queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & {\n  queryKey: DataTag<QueryKey, TData, TError>;\n} {\n  const queryOptions = getSettingsQueryOptions(options);\n\n  const query = useQuery(queryOptions, queryClient) as UseQueryResult<\n    TData,\n    TError\n  > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n  return { ...query, queryKey: queryOptions.queryKey };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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