@workos-inc/widgets 1.8.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/cjs/api/api-provider.cjs.map +1 -1
- package/dist/cjs/api/api-provider.d.cts +1 -1
- package/dist/cjs/api/endpoint.cjs +702 -623
- package/dist/cjs/api/endpoint.cjs.map +1 -1
- package/dist/cjs/api/endpoint.d.cts +810 -729
- package/dist/cjs/directory-sync.client.cjs +143 -0
- package/dist/cjs/directory-sync.client.cjs.map +1 -0
- package/dist/cjs/directory-sync.client.d.cts +26 -0
- package/dist/cjs/experimental/api/fetch.cjs +309 -252
- package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.d.cts +809 -731
- package/dist/cjs/experimental/api/react-query.cjs +695 -613
- package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
- package/dist/cjs/experimental/api/react-query.d.cts +1355 -1250
- package/dist/cjs/experimental/api/swr.cjs +660 -583
- package/dist/cjs/experimental/api/swr.cjs.map +1 -1
- package/dist/cjs/experimental/api/swr.d.cts +1307 -1212
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -0
- package/dist/cjs/lib/api-keys/api-keys-context.cjs +1 -1
- package/dist/cjs/lib/api-keys/api-keys-context.cjs.map +1 -1
- package/dist/cjs/lib/api-keys/api-keys-table.cjs +7 -5
- package/dist/cjs/lib/api-keys/api-keys-table.cjs.map +1 -1
- package/dist/cjs/lib/directory-sync.cjs +288 -0
- package/dist/cjs/lib/directory-sync.cjs.map +1 -0
- package/dist/cjs/lib/directory-sync.d.cts +72 -0
- package/dist/cjs/lib/identity-providers.cjs +57 -1
- package/dist/cjs/lib/identity-providers.cjs.map +1 -1
- package/dist/cjs/lib/identity-providers.d.cts +5 -3
- package/dist/cjs/lib/pipes.cjs +9 -9
- package/dist/cjs/lib/pipes.cjs.map +1 -1
- package/dist/cjs/lib/reset-mfa-dialog.cjs +2 -1
- package/dist/cjs/lib/reset-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.d.cts +1 -1
- package/dist/cjs/lib/users-management-context.cjs +1 -1
- package/dist/cjs/lib/users-management-context.cjs.map +1 -1
- package/dist/cjs/lib/users-management.cjs +3 -3
- package/dist/cjs/lib/users-management.cjs.map +1 -1
- package/dist/cjs/lib/utils.cjs +9 -0
- package/dist/cjs/lib/utils.cjs.map +1 -1
- package/dist/cjs/lib/utils.d.cts +16 -2
- package/dist/esm/api/api-provider.d.ts +1 -1
- package/dist/esm/api/api-provider.js.map +1 -1
- package/dist/esm/api/endpoint.d.ts +810 -729
- package/dist/esm/api/endpoint.js +691 -618
- package/dist/esm/api/endpoint.js.map +1 -1
- package/dist/esm/directory-sync.client.d.ts +26 -0
- package/dist/esm/directory-sync.client.js +121 -0
- package/dist/esm/directory-sync.client.js.map +1 -0
- package/dist/esm/experimental/api/fetch.d.ts +809 -731
- package/dist/esm/experimental/api/fetch.js +300 -247
- package/dist/esm/experimental/api/fetch.js.map +1 -1
- package/dist/esm/experimental/api/react-query.d.ts +1355 -1250
- package/dist/esm/experimental/api/react-query.js +683 -608
- package/dist/esm/experimental/api/react-query.js.map +1 -1
- package/dist/esm/experimental/api/swr.d.ts +1307 -1212
- package/dist/esm/experimental/api/swr.js +649 -578
- package/dist/esm/experimental/api/swr.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/api-keys/api-keys-context.js +1 -1
- package/dist/esm/lib/api-keys/api-keys-context.js.map +1 -1
- package/dist/esm/lib/api-keys/api-keys-table.js +7 -5
- package/dist/esm/lib/api-keys/api-keys-table.js.map +1 -1
- package/dist/esm/lib/directory-sync.d.ts +72 -0
- package/dist/esm/lib/directory-sync.js +259 -0
- package/dist/esm/lib/directory-sync.js.map +1 -0
- package/dist/esm/lib/identity-providers.d.ts +5 -3
- package/dist/esm/lib/identity-providers.js +55 -1
- package/dist/esm/lib/identity-providers.js.map +1 -1
- package/dist/esm/lib/pipes.js +9 -10
- package/dist/esm/lib/pipes.js.map +1 -1
- package/dist/esm/lib/reset-mfa-dialog.js +2 -1
- package/dist/esm/lib/reset-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/use-permissions.d.ts +1 -1
- package/dist/esm/lib/use-permissions.js.map +1 -1
- package/dist/esm/lib/users-management-context.js +1 -1
- package/dist/esm/lib/users-management-context.js.map +1 -1
- package/dist/esm/lib/users-management.js +5 -4
- package/dist/esm/lib/users-management.js.map +1 -1
- package/dist/esm/lib/utils.d.ts +16 -2
- package/dist/esm/lib/utils.js +8 -0
- package/dist/esm/lib/utils.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/experimental/api/react-query.ts"],"sourcesContent":["/**\n * Generated by orval v7.21.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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const MemberStatus = {\n Active: \"Active\",\n Invited: \"Invited\",\n InviteExpired: \"InviteExpired\",\n InviteRevoked: \"InviteRevoked\",\n NoInvite: \"NoInvite\",\n} as const;\nexport type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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;\nexport type MemberActions =\n (typeof MemberActionsItem)[keyof typeof MemberActionsItem][];\n\nexport type MemberRolesItem = {\n name: string;\n slug: string;\n /** @nullable */\n description?: string | null;\n};\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 createdAt: string;\n /** @nullable */\n lastActivityAt?: string | null;\n status: MemberStatus;\n actions: MemberActions;\n /** @nullable */\n isLoggedInUser?: boolean | null;\n /** @nullable */\n roles?: MemberRolesItem[] | null;\n}\n\nexport interface ListMetadata {\n /** @nullable */\n before?: string | null;\n /** @nullable */\n after?: string | null;\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 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\n/**\n * @nullable\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 /** @nullable */\n oauthProfiles?: MeOauthProfiles;\n}\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfObject =\n (typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateTotpFactorResponseAuthenticationFactorAllOfObject = {\n authentication_factor: \"authentication_factor\",\n} as const;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfType =\n (typeof CreateTotpFactorResponseAuthenticationFactorAllOfType)[keyof typeof CreateTotpFactorResponseAuthenticationFactorAllOfType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateTotpFactorResponseAuthenticationFactorAllOfType = {\n generic_otp: \"generic_otp\",\n sms: \"sms\",\n totp: \"totp\",\n webauthn: \"webauthn\",\n} as const;\n\n/**\n * @nullable\n */\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfSms = {\n phone_number: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf = {\n issuer: string;\n user: string;\n secret: string;\n qr_code: string;\n uri: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo = {\n issuer: string;\n user: string;\n} | null;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfTotp =\n | CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf\n | CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOf = {\n object: CreateTotpFactorResponseAuthenticationFactorAllOfObject;\n id: string;\n type: CreateTotpFactorResponseAuthenticationFactorAllOfType;\n /** @nullable */\n user_id?: string | null;\n /** @nullable */\n sms?: CreateTotpFactorResponseAuthenticationFactorAllOfSms;\n totp?: CreateTotpFactorResponseAuthenticationFactorAllOfTotp;\n};\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfEight = {\n created_at: string;\n updated_at: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationFactor =\n CreateTotpFactorResponseAuthenticationFactorAllOf &\n CreateTotpFactorResponseAuthenticationFactorAllOfEight;\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOfObject =\n (typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {\n authentication_challenge: \"authentication_challenge\",\n} as const;\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOf = {\n object: CreateTotpFactorResponseAuthenticationChallengeAllOfObject;\n id: string;\n /** @nullable */\n expires_at?: string | null;\n /** @nullable */\n code?: string | null;\n authentication_factor_id: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOfThree = {\n created_at: string;\n updated_at: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationChallenge =\n CreateTotpFactorResponseAuthenticationChallengeAllOf &\n CreateTotpFactorResponseAuthenticationChallengeAllOfThree;\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 AuthenticationInformationResponseDataVerificationMethodsMfaProvider =\n (typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AuthenticationInformationResponseDataVerificationMethodsMfaProvider =\n {\n MFA: \"MFA\",\n } as const;\n\n/**\n * @nullable\n */\nexport type AuthenticationInformationResponseDataVerificationMethodsMfa = {\n provider: AuthenticationInformationResponseDataVerificationMethodsMfaProvider;\n isSetUp: boolean;\n /** @nullable */\n lastUsed?: string | null;\n} | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasswordProvider =\n (typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider =\n {\n Password: \"Password\",\n } as const;\n\n/**\n * @nullable\n */\nexport type AuthenticationInformationResponseDataVerificationMethodsPassword = {\n provider: AuthenticationInformationResponseDataVerificationMethodsPasswordProvider;\n isSetUp: boolean;\n /** @nullable */\n lastUsed?: string | null;\n isCurrentSession: boolean;\n} | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider =\n (typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider =\n {\n Passkey: \"Passkey\",\n } as const;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem =\n {\n id: string;\n };\n\n/**\n * @nullable\n */\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskey = {\n provider: AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider;\n isSetUp: boolean;\n /** @nullable */\n lastUsed?: string | null;\n passKeys: AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem[];\n isCurrentSession: boolean;\n} | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethods = {\n /** @nullable */\n Mfa?: AuthenticationInformationResponseDataVerificationMethodsMfa;\n /** @nullable */\n Password?: AuthenticationInformationResponseDataVerificationMethodsPassword;\n /** @nullable */\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\n/**\n * @nullable\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 /** @nullable */\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 type SendVerificationResponseType =\n (typeof SendVerificationResponseType)[keyof typeof SendVerificationResponseType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SendVerificationResponseType = {\n EmailVerification: \"EmailVerification\",\n} as const;\n\nexport interface SendVerificationResponse {\n authenticationChallenge: string;\n type: SendVerificationResponseType;\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 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 type SettingsResponseObject =\n (typeof SettingsResponseObject)[keyof typeof SettingsResponseObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SettingsResponseObject = {\n settings: \"settings\",\n} as const;\n\nexport interface SettingsResponse {\n object: SettingsResponseObject;\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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 SsoConnectionAnyOfType =\n (typeof SsoConnectionAnyOfType)[keyof typeof SsoConnectionAnyOfType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfType = {\n AdfsSaml: \"AdfsSaml\",\n Auth0Saml: \"Auth0Saml\",\n AzureSaml: \"AzureSaml\",\n CasSaml: \"CasSaml\",\n ClassLinkSaml: \"ClassLinkSaml\",\n CloudflareSaml: \"CloudflareSaml\",\n CyberArkSaml: \"CyberArkSaml\",\n DuoSaml: \"DuoSaml\",\n GenericSaml: \"GenericSaml\",\n GoogleSaml: \"GoogleSaml\",\n JumpCloudSaml: \"JumpCloudSaml\",\n KeycloakSaml: \"KeycloakSaml\",\n LastPassSaml: \"LastPassSaml\",\n MiniOrangeSaml: \"MiniOrangeSaml\",\n NetIqSaml: \"NetIqSaml\",\n OktaSaml: \"OktaSaml\",\n OneLoginSaml: \"OneLoginSaml\",\n OracleSaml: \"OracleSaml\",\n PingFederateSaml: \"PingFederateSaml\",\n PingOneSaml: \"PingOneSaml\",\n RipplingSaml: \"RipplingSaml\",\n SalesforceSaml: \"SalesforceSaml\",\n ShibbolethGenericSaml: \"ShibbolethGenericSaml\",\n ShibbolethSaml: \"ShibbolethSaml\",\n SimpleSamlPhpSaml: \"SimpleSamlPhpSaml\",\n TestIdp: \"TestIdp\",\n VmWareSaml: \"VmWareSaml\",\n} as const;\n\nexport type SsoConnectionAnyOfState =\n (typeof SsoConnectionAnyOfState)[keyof typeof SsoConnectionAnyOfState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfState = {\n Inactive: \"Inactive\",\n Validating: \"Validating\",\n Active: \"Active\",\n Deleting: \"Deleting\",\n} as const;\n\nexport type SsoConnectionAnyOfLatestExpiringCertificate =\n X509CertificateJSON | null;\n\nexport type SsoConnectionAnyOfLatestExpiredCertificate =\n X509CertificateJSON | null;\n\nexport type SsoConnectionAnyOfProviderTag =\n (typeof SsoConnectionAnyOfProviderTag)[keyof typeof SsoConnectionAnyOfProviderTag];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfProviderTag = {\n Saml: \"Saml\",\n} as const;\n\nexport type SsoConnectionAnyOfLastSession = SsoConnectionSessionJSON | null;\n\nexport type SsoConnectionAnyOf = {\n id: string;\n type: SsoConnectionAnyOfType;\n name: string;\n state: SsoConnectionAnyOfState;\n x509Certificates: X509CertificateJSON[];\n latestExpiringCertificate?: SsoConnectionAnyOfLatestExpiringCertificate;\n latestExpiredCertificate?: SsoConnectionAnyOfLatestExpiredCertificate;\n createdAt: string;\n providerTag: SsoConnectionAnyOfProviderTag;\n lastSession?: SsoConnectionAnyOfLastSession;\n};\n\nexport type SsoConnectionAnyOfEightAllOfState =\n (typeof SsoConnectionAnyOfEightAllOfState)[keyof typeof SsoConnectionAnyOfEightAllOfState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfEightAllOfState = {\n Inactive: \"Inactive\",\n Validating: \"Validating\",\n Active: \"Active\",\n Deleting: \"Deleting\",\n} as const;\n\nexport type SsoConnectionAnyOfEightAllOfType =\n (typeof SsoConnectionAnyOfEightAllOfType)[keyof typeof SsoConnectionAnyOfEightAllOfType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfEightAllOfType = {\n AdpOidc: \"AdpOidc\",\n Auth0Migration: \"Auth0Migration\",\n CleverOidc: \"CleverOidc\",\n EntraIdOidc: \"EntraIdOidc\",\n GenericOidc: \"GenericOidc\",\n GoogleOidc: \"GoogleOidc\",\n OktaOidc: \"OktaOidc\",\n LoginGovOidc: \"LoginGovOidc\",\n} as const;\n\nexport type SsoConnectionAnyOfEightAllOfProviderTag =\n (typeof SsoConnectionAnyOfEightAllOfProviderTag)[keyof typeof SsoConnectionAnyOfEightAllOfProviderTag];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfEightAllOfProviderTag = {\n OpenIdConnect: \"OpenIdConnect\",\n} as const;\n\nexport type SsoConnectionAnyOfEightAllOfLastSession =\n SsoConnectionSessionJSON | null;\n\nexport type SsoConnectionAnyOfEightAllOf = {\n id: string;\n name: string;\n state: SsoConnectionAnyOfEightAllOfState;\n type: SsoConnectionAnyOfEightAllOfType;\n createdAt: string;\n providerTag: SsoConnectionAnyOfEightAllOfProviderTag;\n lastSession?: SsoConnectionAnyOfEightAllOfLastSession;\n};\n\nexport type SsoConnectionAnyOfEightAllOfSix = {\n x509Certificates?: null;\n latestExpiringCertificate?: null;\n latestExpiredCertificate?: null;\n};\n\nexport type SsoConnectionAnyOfEight = SsoConnectionAnyOfEightAllOf &\n SsoConnectionAnyOfEightAllOfSix;\n\nexport type SsoConnection = SsoConnectionAnyOf | SsoConnectionAnyOfEight;\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 listMetadata: 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 listMetadata: ListOrganizationApiKeyPermissionsResponseListMetadata;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataInstallationObject = {\n data_installation: \"data_installation\",\n connected_account: \"connected_account\",\n} as const;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataInstallationState = {\n connected: \"connected\",\n needs_reauthorization: \"needs_reauthorization\",\n} as const;\nexport interface DataInstallation {\n object: (typeof DataInstallationObject)[keyof typeof DataInstallationObject];\n id: string;\n /** @nullable */\n userlandUserId?: string | null;\n /** @nullable */\n organizationId?: string | null;\n scopes: string[];\n state: (typeof DataInstallationState)[keyof typeof DataInstallationState];\n createdAt: string;\n updatedAt: string;\n}\n\nexport type DataIntegrationObject =\n (typeof DataIntegrationObject)[keyof typeof DataIntegrationObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationObject = {\n data_integration: \"data_integration\",\n} as const;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationIntegrationType = {\n asana: \"asana\",\n box: \"box\",\n \"cal-dot-com\": \"cal-dot-com\",\n calendly: \"calendly\",\n confluence: \"confluence\",\n dropbox: \"dropbox\",\n \"frame-io\": \"frame-io\",\n front: \"front\",\n github: \"github\",\n gitlab: \"gitlab\",\n gmail: \"gmail\",\n google: \"google\",\n \"google-calendar\": \"google-calendar\",\n \"google-drive\": \"google-drive\",\n helpscout: \"helpscout\",\n hubspot: \"hubspot\",\n intercom: \"intercom\",\n jira: \"jira\",\n linear: \"linear\",\n microsoft: \"microsoft\",\n \"microsoft-onedrive\": \"microsoft-onedrive\",\n \"microsoft-onenote\": \"microsoft-onenote\",\n \"microsoft-outlook\": \"microsoft-outlook\",\n \"microsoft-outlook-calendar\": \"microsoft-outlook-calendar\",\n \"microsoft-sharepoint\": \"microsoft-sharepoint\",\n \"microsoft-teams\": \"microsoft-teams\",\n \"microsoft-todo\": \"microsoft-todo\",\n notion: \"notion\",\n prefect: \"prefect\",\n \"pydantic-logfire\": \"pydantic-logfire\",\n salesforce: \"salesforce\",\n sentry: \"sentry\",\n slack: \"slack\",\n snowflake: \"snowflake\",\n stripe: \"stripe\",\n xero: \"xero\",\n zendesk: \"zendesk\",\n} as const;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationOwnership = {\n userland_user: \"userland_user\",\n organization: \"organization\",\n} as const;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationCredentialsType = {\n shared: \"shared\",\n custom: \"custom\",\n} as const;\nexport type DataIntegrationInstallation = DataInstallation | null;\n\nexport interface DataIntegration {\n object: DataIntegrationObject;\n id: string;\n name: string;\n /** @nullable */\n description?: string | null;\n slug: string;\n integrationType: (typeof DataIntegrationIntegrationType)[keyof typeof DataIntegrationIntegrationType];\n ownership: (typeof DataIntegrationOwnership)[keyof typeof DataIntegrationOwnership];\n credentialsType: (typeof DataIntegrationCredentialsType)[keyof typeof DataIntegrationCredentialsType];\n /** @nullable */\n scopes?: string[] | null;\n createdAt: string;\n updatedAt: string;\n installation?: DataIntegrationInstallation;\n}\n\nexport interface DataIntegrationsResponse {\n data: DataIntegration[];\n}\n\nexport type GetDataIntegrationAuthorizeUrlResponseAllOf = {\n url: string;\n redirectToken: string;\n};\n\nexport type GetDataIntegrationAuthorizeUrlResponseAllOfTwo = {\n handoffToken?: string;\n};\n\nexport type GetDataIntegrationAuthorizeUrlResponse =\n GetDataIntegrationAuthorizeUrlResponseAllOf &\n GetDataIntegrationAuthorizeUrlResponseAllOfTwo;\n\nexport interface GetAuthorizationStatusResponse {\n isConnecting: boolean;\n}\n\nexport type MembersParams = {\n search?: string;\n limit?: string;\n before?: string;\n after?: string;\n role?: string;\n};\n\nexport type Members200 = {\n data: Member[];\n listMetadata: ListMetadata;\n};\n\nexport type Members403 = {\n message: string;\n};\n\nexport type Members404 = {\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 InviteMemberBody = {\n email: string;\n /** @nullable */\n firstName?: string | null;\n /** @nullable */\n lastName?: string | null;\n roles: string[];\n};\n\nexport type InviteMember201 = {\n success: boolean;\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 ResendInvite201 = {\n /** @nullable */\n id?: string | null;\n success: boolean;\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 RevokeInvite200 = {\n id: string;\n success: boolean;\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 RemoveMember200 = {\n id: string;\n success: boolean;\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 UpdateMember200 = {\n id: string;\n success: boolean;\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 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 CreateTotpFactor400 = {\n message: string;\n};\n\nexport type CreateTotpFactor403 = {\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 DeleteTotpFactors200 = {\n success: boolean;\n};\n\nexport type DeleteTotpFactors400 = {\n message: string;\n};\n\nexport type DeleteTotpFactors403 = {\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 UpdatePassword201 = {\n success: boolean;\n};\n\nexport type UpdatePassword400 = {\n message: string;\n};\n\nexport type UpdatePassword403 = {\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 Sessions403 = {\n message: string;\n};\n\nexport type SendVerification400 = {\n message: string;\n};\n\nexport type SendVerification403 = {\n message: string;\n};\n\nexport type Verify400 = {\n message: string;\n};\n\nexport type Verify403 = {\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 Settings403 = {\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 GenerateAdminPortalLinkParams = {\n intent: GenerateAdminPortalLinkIntent;\n};\n\nexport type GenerateAdminPortalLinkIntent =\n (typeof GenerateAdminPortalLinkIntent)[keyof typeof GenerateAdminPortalLinkIntent];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GenerateAdminPortalLinkIntent = {\n domain_verification: \"domain_verification\",\n sso: \"sso\",\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 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 CreateOrganizationApiKey400 = {\n message: string;\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 ListOrganizationApiKeys400 = {\n message: string;\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 ListOrganizationApiKeyPermissions400 = {\n message: string;\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 MyDataIntegrations403 = {\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 GetDataInstallationAuthorizationStatus400 = {\n message: string;\n};\n\nexport type GetDataInstallationAuthorizationStatus403 = {\n message: string;\n};\n\nexport type GetDataInstallationAuthorizationStatus404 = {\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 membersResponse200 = {\n data: Members200;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\nexport type inviteMemberResponse201 = {\n data: InviteMember201;\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 const mutationOptions = getInviteMemberMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type resendInviteResponse201 = {\n data: ResendInvite201;\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 const mutationOptions = getResendInviteMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type revokeInviteResponse200 = {\n data: RevokeInvite200;\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 const mutationOptions = getRevokeInviteMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type removeMemberResponse200 = {\n data: RemoveMember200;\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 const mutationOptions = getRemoveMemberMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type updateMemberResponse200 = {\n data: UpdateMember200;\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 const mutationOptions = getUpdateMemberMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 const mutationOptions = getUpdateMeMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getCreateTotpFactorMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getVerifyTotpFactorMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getDeleteTotpFactorsMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 const mutationOptions = getCreatePasswordMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getUpdatePasswordMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getRevokeAllSessionsMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getRevokeSessionMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 const mutationOptions = getSendVerificationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getVerifyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getRegisterPasskeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getVerifyPasskeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getDeletePasskeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 const mutationOptions = getGenerateAdminPortalLinkMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 const mutationOptions = getDeleteOrganizationDomainMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 const mutationOptions = getReverifyOrganizationDomainMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 const mutationOptions = getCreateOrganizationApiKeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 const mutationOptions = getDeleteOrganizationApiKeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 const mutationOptions = getDeleteDataInstallationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA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ACf,UACA,EAAE,GAAG,SAAS,UAAU,EAAE,GAAG,QAAQ,UAAU,YAAY,EAAE,IAC/D,EAAE,UAAU,EAAE,YAAY,GAAG,OAAO,OAAU;AAElD,QAAM,aAGF,CAAC,UAAU;AACb,UAAM,EAAE,eAAe,IAAI,SAAS,CAAC;AAErC,WAAO,uBAAuB,gBAAgB,YAAY;AAAA,EAC5D;AAEA,SAAO,EAAE,YAAY,GAAG,gBAAgB;AAC1C;AAUO,MAAM,4BAA4B,CAIvC,SASA,gBAMG;AACH,QAAM,kBAAkB,yCAAyC,OAAO;AAExE,aAAO,gCAAY,iBAAiB,WAAW;AACjD;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/experimental/api/react-query.ts"],"sourcesContent":["/**\n * Generated by orval v7.21.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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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 MemberProfilePictureUrl = string | null;\n\nexport type MemberFirstName = string | null;\n\nexport type MemberLastName = string | null;\n\nexport type MemberLastActivityAt = string | null;\n\nexport type MemberIsLoggedInUser = true | null;\n\nexport type MemberRolesOneOfItemDescription = string | null;\n\nexport type MemberRolesOneOfItem = {\n name: string;\n slug: string;\n description?: MemberRolesOneOfItemDescription;\n};\n\nexport type MemberRoles = MemberRolesOneOfItem[] | null;\n\nexport interface Member {\n id: string;\n email: string;\n emailVerified: boolean;\n profilePictureUrl?: MemberProfilePictureUrl;\n firstName?: MemberFirstName;\n lastName?: MemberLastName;\n /** An ISO 8601 timestamp. */\n createdAt: string;\n lastActivityAt?: MemberLastActivityAt;\n status: MemberStatus;\n actions: MemberActions;\n isLoggedInUser?: MemberIsLoggedInUser;\n roles?: MemberRoles;\n}\n\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 */\nexport type ListMetadataBefore = string | null;\n\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 */\nexport type ListMetadataAfter = string | null;\n\nexport interface ListMetadata {\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 before: ListMetadataBefore;\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 after: ListMetadataAfter;\n}\n\nexport type MemberRoleDescription = string | null;\n\nexport interface MemberRole {\n name: string;\n slug: string;\n default: boolean;\n description?: MemberRoleDescription;\n}\n\nexport interface RolesAndConfigResponse {\n roles: MemberRole[];\n multipleRolesEnabled: boolean;\n}\n\nexport type OrganizationInfoFavicon = string | null;\n\nexport interface OrganizationInfo {\n id: string;\n name: string;\n current: boolean;\n favicon?: OrganizationInfoFavicon;\n}\n\nexport interface OrganizationsResponse {\n data: OrganizationInfo[];\n}\n\nexport type OAuthProfileEmail = string | null;\n\nexport type OAuthProfileFirstName = string | null;\n\nexport type OAuthProfileLastName = string | null;\n\nexport type OAuthProfileProfilePictureUrl = string | null;\n\nexport type OAuthProfileLastLoginAt = string | null;\n\nexport interface OAuthProfile {\n id: string;\n email?: OAuthProfileEmail;\n firstName?: OAuthProfileFirstName;\n lastName?: OAuthProfileLastName;\n profilePictureUrl?: OAuthProfileProfilePictureUrl;\n lastLoginAt?: OAuthProfileLastLoginAt;\n}\n\nexport type MeFirstName = string | null;\n\nexport type MeLastName = string | null;\n\nexport type MeLocale = string | null;\n\nexport type MeProfilePictureUrl = string | null;\n\nexport type MeOauthProfilesOneOf = {\n AppleOAuth?: OAuthProfile;\n GithubOAuth?: OAuthProfile;\n GoogleOAuth?: OAuthProfile;\n MicrosoftOAuth?: OAuthProfile;\n};\n\nexport type MeOauthProfiles = MeOauthProfilesOneOf | null;\n\nexport interface Me {\n id: string;\n email: string;\n firstName?: MeFirstName;\n lastName?: MeLastName;\n locale?: MeLocale;\n profilePictureUrl?: MeProfilePictureUrl;\n oauthProfiles?: MeOauthProfiles;\n}\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfObject =\n (typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateTotpFactorResponseAuthenticationFactorAllOfObject = {\n authentication_factor: \"authentication_factor\",\n} as const;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfType =\n (typeof CreateTotpFactorResponseAuthenticationFactorAllOfType)[keyof typeof CreateTotpFactorResponseAuthenticationFactorAllOfType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateTotpFactorResponseAuthenticationFactorAllOfType = {\n generic_otp: \"generic_otp\",\n sms: \"sms\",\n totp: \"totp\",\n webauthn: \"webauthn\",\n} as const;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfUserId =\n | string\n | null;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfSmsOneOf = {\n phone_number: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfSms =\n CreateTotpFactorResponseAuthenticationFactorAllOfSmsOneOf | null;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf = {\n issuer: string;\n user: string;\n secret: string;\n qr_code: string;\n uri: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo = {\n issuer: string;\n user: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfTotp =\n | CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf\n | CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo\n | null;\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOf = {\n object: CreateTotpFactorResponseAuthenticationFactorAllOfObject;\n id: string;\n type: CreateTotpFactorResponseAuthenticationFactorAllOfType;\n user_id?: CreateTotpFactorResponseAuthenticationFactorAllOfUserId;\n sms?: CreateTotpFactorResponseAuthenticationFactorAllOfSms;\n totp?: CreateTotpFactorResponseAuthenticationFactorAllOfTotp;\n};\n\nexport type CreateTotpFactorResponseAuthenticationFactorAllOfOnezero = {\n created_at: string;\n updated_at: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationFactor =\n CreateTotpFactorResponseAuthenticationFactorAllOf &\n CreateTotpFactorResponseAuthenticationFactorAllOfOnezero;\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOfObject =\n (typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {\n authentication_challenge: \"authentication_challenge\",\n} as const;\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOfExpiresAt =\n | string\n | null;\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOfCode =\n | string\n | null;\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOf = {\n object: CreateTotpFactorResponseAuthenticationChallengeAllOfObject;\n id: string;\n expires_at?: CreateTotpFactorResponseAuthenticationChallengeAllOfExpiresAt;\n code?: CreateTotpFactorResponseAuthenticationChallengeAllOfCode;\n authentication_factor_id: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationChallengeAllOfFive = {\n created_at: string;\n updated_at: string;\n};\n\nexport type CreateTotpFactorResponseAuthenticationChallenge =\n CreateTotpFactorResponseAuthenticationChallengeAllOf &\n CreateTotpFactorResponseAuthenticationChallengeAllOfFive;\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 AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider =\n (typeof AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider =\n {\n MFA: \"MFA\",\n } as const;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsMfaOneOfLastUsed =\n string | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsMfaOneOf = {\n provider: AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider;\n isSetUp: boolean;\n lastUsed?: AuthenticationInformationResponseDataVerificationMethodsMfaOneOfLastUsed;\n};\n\nexport type AuthenticationInformationResponseDataVerificationMethodsMfa =\n AuthenticationInformationResponseDataVerificationMethodsMfaOneOf | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider =\n (typeof AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider =\n {\n Password: \"Password\",\n } as const;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfLastUsed =\n string | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOf =\n {\n provider: AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider;\n isSetUp: boolean;\n lastUsed?: AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfLastUsed;\n isCurrentSession: boolean;\n };\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPassword =\n AuthenticationInformationResponseDataVerificationMethodsPasswordOneOf | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider =\n (typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider =\n {\n Passkey: \"Passkey\",\n } as const;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfLastUsed =\n string | null;\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfPassKeysItem =\n {\n id: string;\n };\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOf =\n {\n provider: AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider;\n isSetUp: boolean;\n lastUsed?: AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfLastUsed;\n passKeys: AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfPassKeysItem[];\n isCurrentSession: boolean;\n };\n\nexport type AuthenticationInformationResponseDataVerificationMethodsPasskey =\n AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOf | 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 ActiveSessionIpAddress = string | null;\n\nexport type ActiveSessionUserAgent = string | null;\n\nexport type ActiveSessionOrganizationId = string | null;\n\nexport type ActiveSessionStateExpiresAt = string | null;\n\nexport type ActiveSessionState = {\n tag: string;\n expiresAt?: ActiveSessionStateExpiresAt;\n};\n\nexport type ActiveSessionCurrentLocationOneOf = {\n cityName: string;\n countryISOCode: string;\n};\n\nexport type ActiveSessionCurrentLocation =\n ActiveSessionCurrentLocationOneOf | null;\n\nexport type ActiveSessionImpersonatorUserId = string | null;\n\nexport type ActiveSessionImpersonatorEmail = string | null;\n\nexport type ActiveSessionImpersonationReason = string | null;\n\nexport type ActiveSessionLastActivityAt = string | null;\n\nexport interface ActiveSession {\n id: string;\n userlandUserId: string;\n ipAddress?: ActiveSessionIpAddress;\n userAgent?: ActiveSessionUserAgent;\n organizationId?: ActiveSessionOrganizationId;\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 impersonatorUserId?: ActiveSessionImpersonatorUserId;\n impersonatorEmail?: ActiveSessionImpersonatorEmail;\n impersonationReason?: ActiveSessionImpersonationReason;\n lastActivityAt?: ActiveSessionLastActivityAt;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface ActiveSessionsResponse {\n data: ActiveSession[];\n}\n\nexport type SendVerificationResponseType =\n (typeof SendVerificationResponseType)[keyof typeof SendVerificationResponseType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SendVerificationResponseType = {\n EmailVerification: \"EmailVerification\",\n} as const;\n\nexport interface SendVerificationResponse {\n authenticationChallenge: string;\n type: SendVerificationResponseType;\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 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 type SettingsResponseObject =\n (typeof SettingsResponseObject)[keyof typeof SettingsResponseObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SettingsResponseObject = {\n settings: \"settings\",\n} as const;\n\nexport type SettingsResponseLogoDarkIconPath = string | null;\n\nexport type SettingsResponseLogoDarkPath = string | null;\n\nexport type SettingsResponseLogoLightIconPath = string | null;\n\nexport type SettingsResponseLogoLightPath = string | null;\n\nexport interface SettingsResponse {\n object: SettingsResponseObject;\n authkitOrigin: string;\n logoDarkIconPath?: SettingsResponseLogoDarkIconPath;\n logoDarkPath?: SettingsResponseLogoDarkPath;\n logoLightIconPath?: SettingsResponseLogoLightIconPath;\n logoLightPath?: SettingsResponseLogoLightPath;\n teamName: string;\n}\n\nexport type OrganizationDomainState =\n (typeof OrganizationDomainState)[keyof typeof OrganizationDomainState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DomainVerificationNameServer = {\n AwsRoute53: \"AwsRoute53\",\n GoogleDomains: \"GoogleDomains\",\n CloudFlare: \"CloudFlare\",\n GoDaddy: \"GoDaddy\",\n Other: \"Other\",\n} as const;\n\nexport type OrganizationDomainVerificationPrefix = string | null;\n\nexport type OrganizationDomainVerificationToken = string | null;\n\nexport type OrganizationDomainSubdomain = string | null;\n\nexport interface OrganizationDomain {\n id: string;\n domain: string;\n state: OrganizationDomainState;\n nameServer: DomainVerificationNameServer;\n verificationPrefix?: OrganizationDomainVerificationPrefix;\n verificationToken?: OrganizationDomainVerificationToken;\n subdomain?: OrganizationDomainSubdomain;\n createdAt: string;\n}\n\nexport type X509CertificateJSONNotBefore = string | null;\n\nexport type X509CertificateJSONNotAfter = string | null;\n\nexport type X509CertificateJSONLastExpiryEventSentAt = string | null;\n\nexport interface X509CertificateJSON {\n id: string;\n value: string;\n notBefore?: X509CertificateJSONNotBefore;\n notAfter?: X509CertificateJSONNotAfter;\n lastExpiryEventSentAt?: X509CertificateJSONLastExpiryEventSentAt;\n}\n\nexport type SamlSessionState =\n (typeof SamlSessionState)[keyof typeof SamlSessionState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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 SsoConnectionAnyOfType =\n (typeof SsoConnectionAnyOfType)[keyof typeof SsoConnectionAnyOfType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfType = {\n AdfsSaml: \"AdfsSaml\",\n Auth0Saml: \"Auth0Saml\",\n AzureSaml: \"AzureSaml\",\n CasSaml: \"CasSaml\",\n ClassLinkSaml: \"ClassLinkSaml\",\n CloudflareSaml: \"CloudflareSaml\",\n CyberArkSaml: \"CyberArkSaml\",\n DuoSaml: \"DuoSaml\",\n GenericSaml: \"GenericSaml\",\n GoogleSaml: \"GoogleSaml\",\n JumpCloudSaml: \"JumpCloudSaml\",\n KeycloakSaml: \"KeycloakSaml\",\n LastPassSaml: \"LastPassSaml\",\n MiniOrangeSaml: \"MiniOrangeSaml\",\n NetIqSaml: \"NetIqSaml\",\n OktaSaml: \"OktaSaml\",\n OneLoginSaml: \"OneLoginSaml\",\n OracleSaml: \"OracleSaml\",\n PingFederateSaml: \"PingFederateSaml\",\n PingOneSaml: \"PingOneSaml\",\n RipplingSaml: \"RipplingSaml\",\n SalesforceSaml: \"SalesforceSaml\",\n ShibbolethGenericSaml: \"ShibbolethGenericSaml\",\n ShibbolethSaml: \"ShibbolethSaml\",\n SimpleSamlPhpSaml: \"SimpleSamlPhpSaml\",\n TestIdp: \"TestIdp\",\n VmWareSaml: \"VmWareSaml\",\n} as const;\n\nexport type SsoConnectionAnyOfState =\n (typeof SsoConnectionAnyOfState)[keyof typeof SsoConnectionAnyOfState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfState = {\n Inactive: \"Inactive\",\n Validating: \"Validating\",\n Active: \"Active\",\n Deleting: \"Deleting\",\n} as const;\n\nexport type SsoConnectionAnyOfLatestExpiringCertificate =\n X509CertificateJSON | null;\n\nexport type SsoConnectionAnyOfLatestExpiredCertificate =\n X509CertificateJSON | null;\n\nexport type SsoConnectionAnyOfProviderTag =\n (typeof SsoConnectionAnyOfProviderTag)[keyof typeof SsoConnectionAnyOfProviderTag];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfProviderTag = {\n Saml: \"Saml\",\n} as const;\n\nexport type SsoConnectionAnyOfLastSession = SsoConnectionSessionJSON | null;\n\nexport type SsoConnectionAnyOf = {\n id: string;\n type: SsoConnectionAnyOfType;\n name: string;\n state: SsoConnectionAnyOfState;\n x509Certificates: X509CertificateJSON[];\n latestExpiringCertificate?: SsoConnectionAnyOfLatestExpiringCertificate;\n latestExpiredCertificate?: SsoConnectionAnyOfLatestExpiredCertificate;\n createdAt: string;\n providerTag: SsoConnectionAnyOfProviderTag;\n lastSession?: SsoConnectionAnyOfLastSession;\n};\n\nexport type SsoConnectionAnyOfEightAllOfState =\n (typeof SsoConnectionAnyOfEightAllOfState)[keyof typeof SsoConnectionAnyOfEightAllOfState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfEightAllOfState = {\n Inactive: \"Inactive\",\n Validating: \"Validating\",\n Active: \"Active\",\n Deleting: \"Deleting\",\n} as const;\n\nexport type SsoConnectionAnyOfEightAllOfType =\n (typeof SsoConnectionAnyOfEightAllOfType)[keyof typeof SsoConnectionAnyOfEightAllOfType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfEightAllOfType = {\n AdpOidc: \"AdpOidc\",\n Auth0Migration: \"Auth0Migration\",\n CleverOidc: \"CleverOidc\",\n EntraIdOidc: \"EntraIdOidc\",\n GenericOidc: \"GenericOidc\",\n GoogleOidc: \"GoogleOidc\",\n OktaOidc: \"OktaOidc\",\n LoginGovOidc: \"LoginGovOidc\",\n} as const;\n\nexport type SsoConnectionAnyOfEightAllOfProviderTag =\n (typeof SsoConnectionAnyOfEightAllOfProviderTag)[keyof typeof SsoConnectionAnyOfEightAllOfProviderTag];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const SsoConnectionAnyOfEightAllOfProviderTag = {\n OpenIdConnect: \"OpenIdConnect\",\n} as const;\n\nexport type SsoConnectionAnyOfEightAllOfLastSession =\n SsoConnectionSessionJSON | null;\n\nexport type SsoConnectionAnyOfEightAllOf = {\n id: string;\n name: string;\n state: SsoConnectionAnyOfEightAllOfState;\n type: SsoConnectionAnyOfEightAllOfType;\n createdAt: string;\n providerTag: SsoConnectionAnyOfEightAllOfProviderTag;\n lastSession?: SsoConnectionAnyOfEightAllOfLastSession;\n};\n\nexport type SsoConnectionAnyOfEightAllOfSix = {\n x509Certificates?: null;\n latestExpiringCertificate?: null;\n latestExpiredCertificate?: null;\n};\n\nexport type SsoConnectionAnyOfEight = SsoConnectionAnyOfEightAllOf &\n SsoConnectionAnyOfEightAllOfSix;\n\nexport type SsoConnection = SsoConnectionAnyOf | SsoConnectionAnyOfEight;\n\nexport type ListOrganizationApiKeysResponseDataLastUsedAt = string | null;\n\nexport interface ListOrganizationApiKeysResponseData {\n id: string;\n name: string;\n obfuscatedValue: string;\n createdAt: string;\n lastUsedAt?: ListOrganizationApiKeysResponseDataLastUsedAt;\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 type ListOrganizationApiKeyPermissionDescription = string | null;\n\nexport interface ListOrganizationApiKeyPermission {\n id: string;\n slug: string;\n name: string;\n description?: ListOrganizationApiKeyPermissionDescription;\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataInstallationAllOfObject = {\n data_installation: \"data_installation\",\n connected_account: \"connected_account\",\n} as const;\nexport type DataInstallationAllOfUserId = string | null;\n\nexport type DataInstallationAllOfOrganizationId = string | null;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataInstallationAllOfState = {\n connected: \"connected\",\n needs_reauthorization: \"needs_reauthorization\",\n} as const;\nexport type DataInstallationAllOf = {\n object: (typeof DataInstallationAllOfObject)[keyof typeof DataInstallationAllOfObject];\n id: string;\n user_id?: DataInstallationAllOfUserId;\n organization_id?: DataInstallationAllOfOrganizationId;\n scopes: string[];\n state: (typeof DataInstallationAllOfState)[keyof typeof DataInstallationAllOfState];\n created_at: string;\n updated_at: string;\n};\n\nexport type DataInstallationAllOfSixUserlandUserId = string | null;\n\nexport type DataInstallationAllOfSixOrganizationId = string | null;\n\nexport type DataInstallationAllOfSix = {\n userlandUserId?: DataInstallationAllOfSixUserlandUserId;\n organizationId?: DataInstallationAllOfSixOrganizationId;\n createdAt?: string;\n updatedAt?: string;\n};\n\nexport type DataInstallation = DataInstallationAllOf & DataInstallationAllOfSix;\n\nexport type DataIntegrationObject =\n (typeof DataIntegrationObject)[keyof typeof DataIntegrationObject];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationObject = {\n data_integration: \"data_integration\",\n} as const;\n\nexport type DataIntegrationDescription = string | null;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationIntegrationType = {\n asana: \"asana\",\n box: \"box\",\n \"cal-dot-com\": \"cal-dot-com\",\n calendly: \"calendly\",\n confluence: \"confluence\",\n dropbox: \"dropbox\",\n \"frame-io\": \"frame-io\",\n front: \"front\",\n github: \"github\",\n gitlab: \"gitlab\",\n gmail: \"gmail\",\n google: \"google\",\n \"google-calendar\": \"google-calendar\",\n \"google-drive\": \"google-drive\",\n helpscout: \"helpscout\",\n hubspot: \"hubspot\",\n intercom: \"intercom\",\n jira: \"jira\",\n linear: \"linear\",\n microsoft: \"microsoft\",\n \"microsoft-onedrive\": \"microsoft-onedrive\",\n \"microsoft-onenote\": \"microsoft-onenote\",\n \"microsoft-outlook\": \"microsoft-outlook\",\n \"microsoft-outlook-calendar\": \"microsoft-outlook-calendar\",\n \"microsoft-sharepoint\": \"microsoft-sharepoint\",\n \"microsoft-teams\": \"microsoft-teams\",\n \"microsoft-todo\": \"microsoft-todo\",\n notion: \"notion\",\n prefect: \"prefect\",\n \"pydantic-logfire\": \"pydantic-logfire\",\n salesforce: \"salesforce\",\n sentry: \"sentry\",\n slack: \"slack\",\n snowflake: \"snowflake\",\n stripe: \"stripe\",\n xero: \"xero\",\n zendesk: \"zendesk\",\n} as const;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationOwnership = {\n userland_user: \"userland_user\",\n organization: \"organization\",\n} as const;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DataIntegrationCredentialsType = {\n shared: \"shared\",\n custom: \"custom\",\n} as const;\nexport type DataIntegrationScopes = string[] | null;\n\nexport type DataIntegrationInstallation = DataInstallation | null;\n\nexport interface DataIntegration {\n object: DataIntegrationObject;\n id: string;\n name: string;\n description?: DataIntegrationDescription;\n slug: string;\n integrationType: (typeof DataIntegrationIntegrationType)[keyof typeof DataIntegrationIntegrationType];\n ownership: (typeof DataIntegrationOwnership)[keyof typeof DataIntegrationOwnership];\n credentialsType: (typeof DataIntegrationCredentialsType)[keyof typeof DataIntegrationCredentialsType];\n scopes?: DataIntegrationScopes;\n createdAt: string;\n updatedAt: string;\n installation?: DataIntegrationInstallation;\n}\n\nexport interface DataIntegrationsResponse {\n data: DataIntegration[];\n}\n\nexport type GetDataIntegrationAuthorizeUrlResponseAllOf = {\n url: string;\n redirectToken: string;\n};\n\nexport type GetDataIntegrationAuthorizeUrlResponseAllOfTwo = {\n handoffToken?: string;\n};\n\nexport type GetDataIntegrationAuthorizeUrlResponse =\n GetDataIntegrationAuthorizeUrlResponseAllOf &\n GetDataIntegrationAuthorizeUrlResponseAllOfTwo;\n\nexport interface GetAuthorizationStatusResponse {\n isConnecting: boolean;\n}\n\nexport type DirectoryType = (typeof DirectoryType)[keyof typeof DirectoryType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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\n// eslint-disable-next-line @typescript-eslint/no-redeclare\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 metadata: DirectoryMetadata;\n}\n\nexport interface DirectoriesResponse {\n data: Directory[];\n link: string;\n}\n\nexport type CreateOrganizationApiKey400 = {\n message: string;\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 ListOrganizationApiKeys400 = {\n message: string;\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 ListOrganizationApiKeyPermissions400 = {\n message: string;\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 InviteMemberBodyFirstName = string | null;\n\nexport type InviteMemberBodyLastName = string | null;\n\nexport type InviteMemberBody = {\n email: string;\n firstName?: InviteMemberBodyFirstName;\n lastName?: InviteMemberBodyLastName;\n roles: string[];\n};\n\nexport type InviteMember201 = {\n success: boolean;\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 RevokeInvite200 = {\n id: string;\n success: boolean;\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 ResendInvite201Id = string | null;\n\nexport type ResendInvite201 = {\n id?: ResendInvite201Id;\n success: boolean;\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 Members200 = {\n data: Member[];\n list_metadata: ListMetadata;\n};\n\nexport type Members403 = {\n message: string;\n};\n\nexport type Members404 = {\n message: string;\n};\n\nexport type RemoveMember200 = {\n id: string;\n success: boolean;\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 UpdateMember200 = {\n id: string;\n success: boolean;\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 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 VerifyTotpFactor200 = {\n success: boolean;\n};\n\nexport type VerifyTotpFactor400 = {\n message: string;\n};\n\nexport type VerifyTotpFactor403 = {\n message: string;\n};\n\nexport type GenerateAdminPortalLinkParams = {\n intent: GenerateAdminPortalLinkIntent;\n};\n\nexport type GenerateAdminPortalLinkIntent =\n (typeof GenerateAdminPortalLinkIntent)[keyof typeof GenerateAdminPortalLinkIntent];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GenerateAdminPortalLinkIntent = {\n domain_verification: \"domain_verification\",\n sso: \"sso\",\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 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 const mutationOptions = getCreateOrganizationApiKeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 const mutationOptions = getDeleteOrganizationApiKeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 const mutationOptions = getDeleteDataInstallationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\nexport type inviteMemberResponse201 = {\n data: InviteMember201;\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 const mutationOptions = getInviteMemberMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type revokeInviteResponse200 = {\n data: RevokeInvite200;\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 const mutationOptions = getRevokeInviteMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type resendInviteResponse201 = {\n data: ResendInvite201;\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 const mutationOptions = getResendInviteMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type membersResponse200 = {\n data: Members200;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\nexport type removeMemberResponse200 = {\n data: RemoveMember200;\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 const mutationOptions = getRemoveMemberMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n\nexport type updateMemberResponse200 = {\n data: UpdateMember200;\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 const mutationOptions = getUpdateMemberMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 const mutationOptions = getCreatePasswordMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getCreateTotpFactorMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 const mutationOptions = getUpdateMeMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getRegisterPasskeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getVerifyPasskeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getDeletePasskeyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getSendVerificationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 const mutationOptions = getRevokeAllSessionsMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getRevokeSessionMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getDeleteTotpFactorsMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getUpdatePasswordMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getVerifyMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\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 const mutationOptions = getVerifyTotpFactorMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 const mutationOptions = getGenerateAdminPortalLinkMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 const mutationOptions = getDeleteOrganizationDomainMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 const mutationOptions = getReverifyOrganizationDomainMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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 query.queryKey = queryOptions.queryKey;\n\n return query;\n}\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 query.queryKey = queryOptions.queryKey;\n\n return query;\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;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;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;A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