@workos-inc/node 8.0.0 → 8.2.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/lib/access-token.interface-PK6QwTjk.d.cts +18 -0
- package/lib/action.interface-D1_tZFKt.d.cts +63 -0
- package/lib/action.serializer-BGWv6ab1.cjs +47 -0
- package/lib/action.serializer-BGWv6ab1.cjs.map +1 -0
- package/lib/actions/actions.cjs +1 -1
- package/lib/actions/actions.d.cts +1 -1
- package/lib/actions/interfaces/action.interface.d.cts +1 -1
- package/lib/actions/interfaces/index.d.cts +2 -2
- package/lib/actions/interfaces/response-payload.interface.d.cts +1 -1
- package/lib/actions/serializers/action.serializer.cjs +1 -1
- package/lib/actions/serializers/action.serializer.d.cts +1 -1
- package/lib/actions-DuKUPx9Z.cjs +58 -0
- package/lib/actions-DuKUPx9Z.cjs.map +1 -0
- package/lib/actions-dIejjUW1.d.cts +41 -0
- package/lib/add-environment-role-permission-options.interface-Pk9Z0RBF.d.cts +7 -0
- package/lib/add-flag-target-options.interface-CJ7M40Wi.d.cts +8 -0
- package/lib/add-organization-role-permission-options.interface-Oc11Zzvq.d.cts +7 -0
- package/lib/api-key-required.exception-DTYoK0KE.d.cts +10 -0
- package/lib/api-key.interface-SUHnxEHj.d.cts +32 -0
- package/lib/api-key.serializer-DWK81bXa.d.cts +7 -0
- package/lib/api-keys/api-keys.d.cts +1 -1
- package/lib/api-keys/interfaces/api-key.interface.d.cts +1 -1
- package/lib/api-keys/interfaces/create-organization-api-key-options.interface.d.cts +1 -1
- package/lib/api-keys/interfaces/created-api-key.interface.d.cts +1 -1
- package/lib/api-keys/interfaces/index.d.cts +5 -5
- package/lib/api-keys/interfaces/list-organization-api-keys-options.interface.d.cts +1 -1
- package/lib/api-keys/interfaces/validate-api-key.interface.d.cts +1 -1
- package/lib/api-keys/serializers/api-key.serializer.d.cts +1 -1
- package/lib/api-keys/serializers/create-organization-api-key-options.serializer.d.cts +1 -1
- package/lib/api-keys/serializers/created-api-key.serializer.d.cts +1 -1
- package/lib/api-keys/serializers/index.d.cts +4 -4
- package/lib/api-keys/serializers/validate-api-key.serializer.d.cts +1 -1
- package/lib/api-keys-4KSJ7vul.d.cts +744 -0
- package/lib/app-info.interface-DQRHsNPh.d.cts +8 -0
- package/lib/audit-log-export-options.interface-BLw_RWFk.d.cts +22 -0
- package/lib/audit-log-export-options.serializer-ffwj8kRw.d.cts +7 -0
- package/lib/audit-log-export.interface-oDR72O0J.d.cts +20 -0
- package/lib/audit-log-export.serializer-DVMljTPL.d.cts +7 -0
- package/lib/audit-logs/audit-logs.d.cts +1 -1
- package/lib/audit-logs/interfaces/audit-log-export-options.interface.d.cts +1 -1
- package/lib/audit-logs/interfaces/audit-log-export.interface.d.cts +1 -1
- package/lib/audit-logs/interfaces/create-audit-log-event-options.interface.d.cts +1 -1
- package/lib/audit-logs/interfaces/create-audit-log-schema-options.interface.d.cts +1 -1
- package/lib/audit-logs/interfaces/index.d.cts +4 -4
- package/lib/audit-logs/serializers/audit-log-export-options.serializer.d.cts +1 -1
- package/lib/audit-logs/serializers/audit-log-export.serializer.d.cts +1 -1
- package/lib/audit-logs/serializers/create-audit-log-event-options.serializer.d.cts +1 -1
- package/lib/audit-logs/serializers/create-audit-log-schema-options.serializer.d.cts +1 -1
- package/lib/audit-logs/serializers/create-audit-log-schema.serializer.d.cts +1 -1
- package/lib/audit-logs/serializers/index.d.cts +5 -5
- package/lib/authenticate-with-code-and-verifier-options.interface-CifpWY0M.d.cts +17 -0
- package/lib/authenticate-with-code-and-verifier-options.serializer-BqSvuzAF.d.cts +8 -0
- package/lib/authenticate-with-code-options.interface-CtsvRTYS.d.cts +20 -0
- package/lib/authenticate-with-code-options.serializer-Blhrjiq0.d.cts +8 -0
- package/lib/authenticate-with-email-verification-options.interface-BCC2K9Zp.d.cts +18 -0
- package/lib/authenticate-with-magic-auth-options.interface-Dmxc0Aes.d.cts +22 -0
- package/lib/authenticate-with-magic-auth-options.serializer-DAjj_AJh.d.cts +8 -0
- package/lib/authenticate-with-options-base.interface-Dx_YCajX.d.cts +41 -0
- package/lib/authenticate-with-organization-selection.interface-DYOjeIvu.d.cts +18 -0
- package/lib/authenticate-with-password-options.interface-BbjZEbmt.d.cts +20 -0
- package/lib/authenticate-with-password-options.serializer-CFKO59Ra.d.cts +8 -0
- package/lib/authenticate-with-refresh-token-options.interface-CqS4TJ3X.d.cts +18 -0
- package/lib/authenticate-with-refresh-token-public-client-options.interface-TPswbB8Z.d.cts +16 -0
- package/lib/authenticate-with-refresh-token-public-client-options.serializer-Ccv24S4s.d.cts +8 -0
- package/lib/authenticate-with-refresh-token.options.serializer-Dhk9Zd7b.d.cts +9 -0
- package/lib/authenticate-with-session-cookie.interface-CoZAMXL_.d.cts +45 -0
- package/lib/authenticate-with-totp-options.interface-C0Jr3YDb.d.cts +20 -0
- package/lib/authenticate-with-totp-options.serializer-BcaV2QsQ.d.cts +8 -0
- package/lib/authentication-event.interface-0-TCj9ur.d.cts +28 -0
- package/lib/authentication-event.serializer-DX0bzXas.d.cts +7 -0
- package/lib/authentication-radar-risk-detected-event.interface-CcBMeCX7.d.cts +24 -0
- package/lib/authentication-response.interface-DITy4Tzw.d.cts +28 -0
- package/lib/authentication-response.serializer-DIJ8dZZS.d.cts +7 -0
- package/lib/authorization/authorization.cjs +3 -0
- package/lib/authorization/authorization.d.cts +2 -0
- package/lib/authorization/authorization.d.ts +45 -0
- package/lib/authorization/authorization.js +106 -0
- package/lib/authorization/authorization.js.map +1 -0
- package/lib/authorization/index.cjs +4 -0
- package/lib/authorization/index.d.cts +17 -0
- package/lib/authorization/index.d.ts +17 -0
- package/lib/authorization/index.js +3 -0
- package/lib/authorization/interfaces/add-environment-role-permission-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/add-environment-role-permission-options.interface.d.ts +7 -0
- package/lib/authorization/interfaces/add-environment-role-permission-options.interface.js +1 -0
- package/lib/authorization/interfaces/add-organization-role-permission-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/add-organization-role-permission-options.interface.d.ts +7 -0
- package/lib/authorization/interfaces/add-organization-role-permission-options.interface.js +1 -0
- package/lib/authorization/interfaces/create-environment-role-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/create-environment-role-options.interface.d.ts +14 -0
- package/lib/authorization/interfaces/create-environment-role-options.interface.js +1 -0
- package/lib/authorization/interfaces/create-organization-role-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/create-organization-role-options.interface.d.ts +14 -0
- package/lib/authorization/interfaces/create-organization-role-options.interface.js +1 -0
- package/lib/authorization/interfaces/create-permission-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/create-permission-options.interface.d.ts +14 -0
- package/lib/authorization/interfaces/create-permission-options.interface.js +1 -0
- package/lib/authorization/interfaces/environment-role.interface.d.cts +2 -0
- package/lib/authorization/interfaces/environment-role.interface.d.ts +34 -0
- package/lib/authorization/interfaces/environment-role.interface.js +1 -0
- package/lib/authorization/interfaces/index.d.cts +16 -0
- package/lib/authorization/interfaces/index.d.ts +16 -0
- package/lib/authorization/interfaces/index.js +1 -0
- package/lib/authorization/interfaces/list-permissions-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/list-permissions-options.interface.d.ts +7 -0
- package/lib/authorization/interfaces/list-permissions-options.interface.js +1 -0
- package/lib/authorization/interfaces/organization-role.interface.d.cts +2 -0
- package/lib/authorization/interfaces/organization-role.interface.d.ts +15 -0
- package/lib/authorization/interfaces/organization-role.interface.js +1 -0
- package/lib/authorization/interfaces/permission.interface.d.cts +2 -0
- package/lib/authorization/interfaces/permission.interface.d.ts +40 -0
- package/lib/authorization/interfaces/permission.interface.js +1 -0
- package/lib/authorization/interfaces/remove-organization-role-permission-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/remove-organization-role-permission-options.interface.d.ts +7 -0
- package/lib/authorization/interfaces/remove-organization-role-permission-options.interface.js +1 -0
- package/lib/authorization/interfaces/set-environment-role-permissions-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/set-environment-role-permissions-options.interface.d.ts +7 -0
- package/lib/authorization/interfaces/set-environment-role-permissions-options.interface.js +1 -0
- package/lib/authorization/interfaces/set-organization-role-permissions-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/set-organization-role-permissions-options.interface.d.ts +7 -0
- package/lib/authorization/interfaces/set-organization-role-permissions-options.interface.js +1 -0
- package/lib/authorization/interfaces/update-environment-role-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/update-environment-role-options.interface.d.ts +12 -0
- package/lib/authorization/interfaces/update-environment-role-options.interface.js +1 -0
- package/lib/authorization/interfaces/update-organization-role-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/update-organization-role-options.interface.d.ts +12 -0
- package/lib/authorization/interfaces/update-organization-role-options.interface.js +1 -0
- package/lib/authorization/interfaces/update-permission-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/update-permission-options.interface.d.ts +12 -0
- package/lib/authorization/interfaces/update-permission-options.interface.js +1 -0
- package/lib/authorization/serializers/create-environment-role-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/create-environment-role-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/create-environment-role-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/create-environment-role-options.serializer.js +10 -0
- package/lib/authorization/serializers/create-environment-role-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/create-organization-role-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/create-organization-role-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/create-organization-role-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/create-organization-role-options.serializer.js +10 -0
- package/lib/authorization/serializers/create-organization-role-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/create-permission-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/create-permission-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/create-permission-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/create-permission-options.serializer.js +10 -0
- package/lib/authorization/serializers/create-permission-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/environment-role.serializer.cjs +3 -0
- package/lib/authorization/serializers/environment-role.serializer.d.cts +2 -0
- package/lib/authorization/serializers/environment-role.serializer.d.ts +7 -0
- package/lib/authorization/serializers/environment-role.serializer.js +16 -0
- package/lib/authorization/serializers/environment-role.serializer.js.map +1 -0
- package/lib/authorization/serializers/index.cjs +20 -0
- package/lib/authorization/serializers/index.d.cts +10 -0
- package/lib/authorization/serializers/index.d.ts +10 -0
- package/lib/authorization/serializers/index.js +11 -0
- package/lib/authorization/serializers/organization-role.serializer.cjs +4 -0
- package/lib/authorization/serializers/organization-role.serializer.d.cts +2 -0
- package/lib/authorization/serializers/organization-role.serializer.d.ts +9 -0
- package/lib/authorization/serializers/organization-role.serializer.js +27 -0
- package/lib/authorization/serializers/organization-role.serializer.js.map +1 -0
- package/lib/authorization/serializers/permission.serializer.cjs +3 -0
- package/lib/authorization/serializers/permission.serializer.d.cts +2 -0
- package/lib/authorization/serializers/permission.serializer.d.ts +7 -0
- package/lib/authorization/serializers/permission.serializer.js +15 -0
- package/lib/authorization/serializers/permission.serializer.js.map +1 -0
- package/lib/authorization/serializers/update-environment-role-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/update-environment-role-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/update-environment-role-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/update-environment-role-options.serializer.js +9 -0
- package/lib/authorization/serializers/update-environment-role-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/update-organization-role-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/update-organization-role-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/update-organization-role-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/update-organization-role-options.serializer.js +9 -0
- package/lib/authorization/serializers/update-organization-role-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/update-permission-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/update-permission-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/update-permission-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/update-permission-options.serializer.js +9 -0
- package/lib/authorization/serializers/update-permission-options.serializer.js.map +1 -0
- package/lib/authorization-BQtSYdHQ.cjs +111 -0
- package/lib/authorization-BQtSYdHQ.cjs.map +1 -0
- package/lib/authorization-url-options.interface-BwBNFg0Z.d.cts +45 -0
- package/lib/authorization-url-options.interface-C5ABtdiE.d.cts +55 -0
- package/lib/bad-request.exception-BWL7y3t5.d.cts +25 -0
- package/lib/base64-8aJjmiTE.cjs +44 -0
- package/lib/base64-8aJjmiTE.cjs.map +1 -0
- package/lib/batch-write-resources-options.serializer-BaW6EWzS.cjs +23 -0
- package/lib/batch-write-resources-options.serializer-BaW6EWzS.cjs.map +1 -0
- package/lib/batch-write-resources-options.serializer-G63Eiv-r.d.cts +7 -0
- package/lib/challenge-factor-options-DQBD-OBq.d.cts +10 -0
- package/lib/challenge.interface-CGUxrdzT.d.cts +22 -0
- package/lib/challenge.serializer-C9JkzvE8.d.cts +7 -0
- package/lib/check-op.enum-1gyp3mY_.d.cts +8 -0
- package/lib/check-op.enum-DXKGh2oy.cjs +16 -0
- package/lib/check-op.enum-DXKGh2oy.cjs.map +1 -0
- package/lib/check-options.serializer-7EswFQ_P.cjs +69 -0
- package/lib/check-options.serializer-7EswFQ_P.cjs.map +1 -0
- package/lib/check-options.serializer-C7So55Kd.d.cts +9 -0
- package/lib/check.interface-B2pzNanW.cjs +33 -0
- package/lib/check.interface-B2pzNanW.cjs.map +1 -0
- package/lib/check.interface-oac-oCtg.d.cts +88 -0
- package/lib/common/crypto/crypto-provider.cjs +1 -1
- package/lib/common/crypto/crypto-provider.d.cts +1 -1
- package/lib/common/crypto/signature-provider.d.cts +1 -1
- package/lib/common/crypto/subtle-crypto-provider.cjs +1 -1
- package/lib/common/crypto/subtle-crypto-provider.d.cts +1 -1
- package/lib/common/exceptions/api-key-required.exception.d.cts +1 -1
- package/lib/common/exceptions/bad-request.exception.d.cts +1 -1
- package/lib/common/exceptions/conflict.exception.cjs +1 -1
- package/lib/common/exceptions/conflict.exception.d.cts +1 -1
- package/lib/common/exceptions/generic-server.exception.d.cts +1 -1
- package/lib/common/exceptions/index.d.cts +10 -10
- package/lib/common/exceptions/no-api-key-provided.exception.d.cts +1 -1
- package/lib/common/exceptions/not-found.exception.d.cts +1 -1
- package/lib/common/exceptions/oauth.exception.d.cts +1 -1
- package/lib/common/exceptions/parse-error.cjs +1 -1
- package/lib/common/exceptions/parse-error.d.cts +1 -1
- package/lib/common/exceptions/rate-limit-exceeded.exception.d.cts +1 -1
- package/lib/common/exceptions/signature-verification.exception.d.cts +1 -1
- package/lib/common/exceptions/unauthorized.exception.d.cts +1 -1
- package/lib/common/exceptions/unprocessable-entity.exception.d.cts +1 -1
- package/lib/common/interfaces/app-info.interface.d.cts +1 -1
- package/lib/common/interfaces/event.interface.d.cts +1 -1
- package/lib/common/interfaces/get-options.interface.d.cts +1 -1
- package/lib/common/interfaces/http-client.interface.d.cts +1 -1
- package/lib/common/interfaces/index.d.cts +12 -11
- package/lib/common/interfaces/index.d.ts +2 -1
- package/lib/common/interfaces/list.interface.d.cts +1 -1
- package/lib/common/interfaces/pagination-options.interface.d.cts +1 -1
- package/lib/common/interfaces/patch-options.interface.d.cts +2 -0
- package/lib/common/interfaces/patch-options.interface.d.ts +12 -0
- package/lib/common/interfaces/patch-options.interface.js +1 -0
- package/lib/common/interfaces/post-options.interface.d.cts +1 -1
- package/lib/common/interfaces/put-options.interface.d.cts +1 -1
- package/lib/common/interfaces/request-exception.interface.d.cts +1 -1
- package/lib/common/interfaces/unknown-record.interface.d.cts +1 -1
- package/lib/common/interfaces/unprocessable-entity-error.interface.d.cts +1 -1
- package/lib/common/interfaces/workos-options.interface.d.cts +1 -1
- package/lib/common/interfaces/workos-response-error.interface.d.cts +1 -1
- package/lib/common/net/fetch-client.cjs +1 -1
- package/lib/common/net/fetch-client.d.cts +3 -2
- package/lib/common/net/fetch-client.d.ts +1 -0
- package/lib/common/net/fetch-client.js +11 -0
- package/lib/common/net/fetch-client.js.map +1 -1
- package/lib/common/net/http-client.cjs +1 -1
- package/lib/common/net/http-client.d.cts +1 -1
- package/lib/common/net/http-client.d.ts +1 -0
- package/lib/common/net/http-client.js.map +1 -1
- package/lib/common/serializers/event.serializer.cjs +1 -1
- package/lib/common/serializers/event.serializer.d.cts +1 -1
- package/lib/common/serializers/index.cjs +1 -1
- package/lib/common/serializers/index.d.cts +2 -2
- package/lib/common/serializers/list.serializer.d.cts +1 -1
- package/lib/common/utils/base64.cjs +1 -1
- package/lib/common/utils/fetch-and-deserialize.d.cts +4 -4
- package/lib/common/utils/leb128.cjs +1 -1
- package/lib/common/utils/pagination.d.cts +1 -1
- package/lib/common/utils/runtime-info.cjs +1 -1
- package/lib/common/utils/unreachable.cjs +1 -1
- package/lib/conflict.exception-4m45wGr8.cjs +23 -0
- package/lib/conflict.exception-4m45wGr8.cjs.map +1 -0
- package/lib/connection-type.enum-BCSkvlg6.d.cts +41 -0
- package/lib/connection-type.enum-CQncLVbr.cjs +49 -0
- package/lib/connection-type.enum-CQncLVbr.cjs.map +1 -0
- package/lib/connection.interface-D1HP4q90.d.cts +33 -0
- package/lib/connection.serializer-B47qKsDN.d.cts +7 -0
- package/lib/create-audit-log-event-options.interface-B-eEsjZw.d.cts +43 -0
- package/lib/create-audit-log-event-options.serializer-Byx8ZppH.d.cts +7 -0
- package/lib/create-audit-log-schema-options.interface-VEGNQUoR.d.cts +67 -0
- package/lib/create-audit-log-schema-options.serializer-vOYqa-AI.d.cts +7 -0
- package/lib/create-audit-log-schema.serializer-CDSQiWrT.d.cts +7 -0
- package/lib/create-data-key.interface-uWGAAWZC.d.cts +15 -0
- package/lib/create-environment-role-options.interface-BzAxMcvk.d.cts +14 -0
- package/lib/create-environment-role-options.serializer-Cgp-nj7R.d.cts +7 -0
- package/lib/create-environment-role-options.serializer-g9jwCPzJ.cjs +16 -0
- package/lib/create-environment-role-options.serializer-g9jwCPzJ.cjs.map +1 -0
- package/lib/create-magic-auth-options.interface-KljIsFrM.d.cts +12 -0
- package/lib/create-magic-auth-options.serializer-JyHvOWXa.d.cts +7 -0
- package/lib/create-object.interface-q1p30YMV.d.cts +16 -0
- package/lib/create-organization-api-key-options.serializer-BBMfnAnt.d.cts +7 -0
- package/lib/create-organization-domain-options.interface-BorRBhyO.d.cts +12 -0
- package/lib/create-organization-membership-options.interface-CT78k_RG.d.cts +16 -0
- package/lib/create-organization-options.serializer-CqgVu5DZ.d.cts +7 -0
- package/lib/create-organization-role-options.interface-D47Tf3Ep.d.cts +14 -0
- package/lib/create-organization-role-options.serializer-DSv6cNfU.cjs +16 -0
- package/lib/create-organization-role-options.serializer-DSv6cNfU.cjs.map +1 -0
- package/lib/create-organization-role-options.serializer-gKd5As_7.d.cts +7 -0
- package/lib/create-password-reset-options.interface-DugfAPGw.d.cts +10 -0
- package/lib/create-password-reset-options.serializer-CF9UYm2X.d.cts +7 -0
- package/lib/create-passwordless-session-options.interface-DCAzOCvV.d.cts +20 -0
- package/lib/create-permission-options.interface-ClaSX7df.d.cts +14 -0
- package/lib/create-permission-options.serializer-BJKj9O3y.cjs +16 -0
- package/lib/create-permission-options.serializer-BJKj9O3y.cjs.map +1 -0
- package/lib/create-permission-options.serializer-DAxJac9X.d.cts +7 -0
- package/lib/create-resource-options.serializer-CjLPXso6.cjs +17 -0
- package/lib/create-resource-options.serializer-CjLPXso6.cjs.map +1 -0
- package/lib/create-resource-options.serializer-DblyocXR.d.cts +7 -0
- package/lib/create-user-options.interface-ord6dU_x.d.cts +28 -0
- package/lib/create-user-options.serializer-DaIm8p-c.d.cts +7 -0
- package/lib/created-api-key.interface-DkDQVw2T.d.cts +34 -0
- package/lib/created-api-key.serializer-DKs_m9pB.d.cts +7 -0
- package/lib/crypto-provider-C895awiY.cjs +18 -0
- package/lib/crypto-provider-C895awiY.cjs.map +1 -0
- package/lib/crypto-provider-CYvkctEg.d.cts +75 -0
- package/lib/decrypt-data-key.interface-BwEc_O_A.d.cts +11 -0
- package/lib/delete-object.interface-B_P7yrm3.d.cts +7 -0
- package/lib/delete-resource-options.serializer-CFyX75Zh.cjs +16 -0
- package/lib/delete-resource-options.serializer-CFyX75Zh.cjs.map +1 -0
- package/lib/delete-resource-options.serializer-D6e_dLrI.d.cts +7 -0
- package/lib/directory-group.interface-RhiHiiPX.d.cts +24 -0
- package/lib/directory-group.serializer-BRcTw-sz.d.cts +8 -0
- package/lib/directory-sync/directory-sync.d.cts +1 -1
- package/lib/directory-sync/interfaces/directory-group.interface.d.cts +1 -1
- package/lib/directory-sync/interfaces/directory-user.interface.d.cts +1 -1
- package/lib/directory-sync/interfaces/directory.interface.d.cts +1 -1
- package/lib/directory-sync/interfaces/index.d.cts +6 -6
- package/lib/directory-sync/interfaces/list-directories-options.interface.d.cts +1 -1
- package/lib/directory-sync/interfaces/list-directory-users-options.interface.d.cts +1 -1
- package/lib/directory-sync/interfaces/list-groups-options.interface.d.cts +1 -1
- package/lib/directory-sync/serializers/directory-group.serializer.d.cts +1 -1
- package/lib/directory-sync/serializers/directory-user.serializer.d.cts +1 -1
- package/lib/directory-sync/serializers/directory.serializer.d.cts +1 -1
- package/lib/directory-sync/serializers/index.d.cts +4 -4
- package/lib/directory-sync/serializers/list-directories-options.serializer.d.cts +1 -1
- package/lib/directory-user.serializer-_FQdeNFr.d.cts +9 -0
- package/lib/directory.interface-RS2zVVSH.d.cts +60 -0
- package/lib/directory.serializer-C4ye_GNZ.d.cts +10 -0
- package/lib/domain-data.interface-CAbxsOXR.cjs +16 -0
- package/lib/domain-data.interface-CAbxsOXR.cjs.map +1 -0
- package/lib/domain-data.interface-CWu6PLZw.d.cts +12 -0
- package/lib/email-verification.interface-DPOUBm9v.d.cts +42 -0
- package/lib/email-verification.serializer-BKwo8A4r.d.cts +8 -0
- package/lib/enroll-auth-factor-options.serializer-B0Kr8aWf.d.cts +7 -0
- package/lib/enroll-auth-factor.interface-EhGkRx_t.d.cts +17 -0
- package/lib/enroll-factor-options-IU9WQYZu.d.cts +14 -0
- package/lib/environment-role.interface-B59FS29B.d.cts +34 -0
- package/lib/environment-role.serializer-3-YRsFp_.cjs +22 -0
- package/lib/environment-role.serializer-3-YRsFp_.cjs.map +1 -0
- package/lib/environment-role.serializer-C0AaYE8M.d.cts +7 -0
- package/lib/event.serializer-B2GuXosD.cjs +180 -0
- package/lib/event.serializer-B2GuXosD.cjs.map +1 -0
- package/lib/event.serializer-QBoSs9f4.d.cts +7 -0
- package/lib/events/events.cjs +1 -1
- package/lib/events/events.d.cts +1 -1
- package/lib/events/interfaces/index.d.cts +1 -1
- package/lib/events/interfaces/list-events-options.interface.d.cts +1 -1
- package/lib/events/serializers/index.d.cts +1 -1
- package/lib/events/serializers/list-event-options.serializer.d.cts +1 -1
- package/lib/events-lqbh0x1u.cjs +23 -0
- package/lib/events-lqbh0x1u.cjs.map +1 -0
- package/lib/factor.interface-DebkGvZh.d.cts +42 -0
- package/lib/factor.interface-DzLmWxJJ.d.cts +44 -0
- package/lib/factor.serializer-CTHEanUk.d.cts +8 -0
- package/lib/factor.serializer-DGKMWcSc.d.cts +8 -0
- package/lib/factory-DfYLyJUA.cjs +15 -0
- package/lib/factory-DfYLyJUA.cjs.map +1 -0
- package/lib/factory.cjs +6 -6
- package/lib/factory.d.cts +1 -1
- package/lib/feature-flag.interface-Dc9oPNTI.d.cts +28 -0
- package/lib/feature-flag.serializer-VHx8LryN.d.cts +7 -0
- package/lib/feature-flags/feature-flags.cjs +1 -1
- package/lib/feature-flags/feature-flags.d.cts +1 -1
- package/lib/feature-flags/interfaces/add-flag-target-options.interface.d.cts +1 -1
- package/lib/feature-flags/interfaces/feature-flag.interface.d.cts +1 -1
- package/lib/feature-flags/interfaces/index.d.cts +4 -4
- package/lib/feature-flags/interfaces/list-feature-flags-options.interface.d.cts +1 -1
- package/lib/feature-flags/interfaces/remove-flag-target-options.interface.d.cts +1 -1
- package/lib/feature-flags/serializers/feature-flag.serializer.d.cts +1 -1
- package/lib/feature-flags/serializers/index.d.cts +1 -1
- package/lib/feature-flags-w4M2jmZ4.cjs +42 -0
- package/lib/feature-flags-w4M2jmZ4.cjs.map +1 -0
- package/lib/fetch-and-deserialize-list-fKCIhUCS.cjs +19 -0
- package/lib/fetch-and-deserialize-list-fKCIhUCS.cjs.map +1 -0
- package/lib/fetch-client-CP0ICYQG.cjs +189 -0
- package/lib/fetch-client-CP0ICYQG.cjs.map +1 -0
- package/lib/fga/fga.cjs +1 -1
- package/lib/fga/fga.d.cts +1 -1
- package/lib/fga/interfaces/check-op.enum.cjs +1 -1
- package/lib/fga/interfaces/check-op.enum.d.cts +1 -1
- package/lib/fga/interfaces/check.interface.cjs +1 -1
- package/lib/fga/interfaces/check.interface.d.cts +1 -1
- package/lib/fga/interfaces/index.cjs +4 -4
- package/lib/fga/interfaces/index.d.cts +8 -8
- package/lib/fga/interfaces/list.interface.d.cts +1 -1
- package/lib/fga/interfaces/query.interface.d.cts +1 -1
- package/lib/fga/interfaces/resource-op.enum.cjs +1 -1
- package/lib/fga/interfaces/resource-op.enum.d.cts +1 -1
- package/lib/fga/interfaces/resource.interface.d.cts +1 -1
- package/lib/fga/interfaces/warning.interface.d.cts +1 -1
- package/lib/fga/interfaces/warrant-op.enum.cjs +1 -1
- package/lib/fga/interfaces/warrant-op.enum.d.cts +1 -1
- package/lib/fga/interfaces/warrant-token.interface.d.cts +1 -1
- package/lib/fga/interfaces/warrant.interface.d.cts +1 -1
- package/lib/fga/serializers/batch-write-resources-options.serializer.cjs +1 -1
- package/lib/fga/serializers/batch-write-resources-options.serializer.d.cts +1 -1
- package/lib/fga/serializers/check-options.serializer.cjs +1 -1
- package/lib/fga/serializers/check-options.serializer.d.cts +1 -1
- package/lib/fga/serializers/create-resource-options.serializer.cjs +1 -1
- package/lib/fga/serializers/create-resource-options.serializer.d.cts +1 -1
- package/lib/fga/serializers/delete-resource-options.serializer.cjs +1 -1
- package/lib/fga/serializers/delete-resource-options.serializer.d.cts +1 -1
- package/lib/fga/serializers/index.cjs +13 -13
- package/lib/fga/serializers/index.d.cts +13 -13
- package/lib/fga/serializers/list-resources-options.serializer.cjs +1 -1
- package/lib/fga/serializers/list-resources-options.serializer.d.cts +1 -1
- package/lib/fga/serializers/list-warrants-options.serializer.cjs +1 -1
- package/lib/fga/serializers/list-warrants-options.serializer.d.cts +1 -1
- package/lib/fga/serializers/list.serializer.cjs +1 -1
- package/lib/fga/serializers/list.serializer.d.cts +1 -1
- package/lib/fga/serializers/query-options.serializer.cjs +1 -1
- package/lib/fga/serializers/query-options.serializer.d.cts +1 -1
- package/lib/fga/serializers/query-result.serializer.cjs +1 -1
- package/lib/fga/serializers/query-result.serializer.d.cts +1 -1
- package/lib/fga/serializers/resource.serializer.cjs +1 -1
- package/lib/fga/serializers/resource.serializer.d.cts +1 -1
- package/lib/fga/serializers/warrant-token.serializer.cjs +1 -1
- package/lib/fga/serializers/warrant-token.serializer.d.cts +1 -1
- package/lib/fga/serializers/warrant.serializer.cjs +1 -1
- package/lib/fga/serializers/warrant.serializer.d.cts +1 -1
- package/lib/fga/serializers/write-warrant-options.serializer.cjs +1 -1
- package/lib/fga/serializers/write-warrant-options.serializer.d.cts +1 -1
- package/lib/fga/utils/fetch-and-deserialize-list.cjs +1 -1
- package/lib/fga/utils/fetch-and-deserialize-list.d.cts +4 -4
- package/lib/fga/utils/fga-paginatable.cjs +1 -1
- package/lib/fga/utils/fga-paginatable.d.cts +1 -1
- package/lib/fga/utils/interface-check.cjs +1 -1
- package/lib/fga/utils/interface-check.d.cts +2 -2
- package/lib/fga-DDQcYlFx.cjs +83 -0
- package/lib/fga-DDQcYlFx.cjs.map +1 -0
- package/lib/fga-paginatable-BGfH6hKb.d.cts +14 -0
- package/lib/fga-paginatable-CcnmklhZ.cjs +22 -0
- package/lib/fga-paginatable-CcnmklhZ.cjs.map +1 -0
- package/lib/generate-portal-link-intent.interface-DvAjnRTH.d.cts +12 -0
- package/lib/generate-portal-link-intent.interface-VhaOku0u.cjs +20 -0
- package/lib/generate-portal-link-intent.interface-VhaOku0u.cjs.map +1 -0
- package/lib/generic-server.exception-BQuagq-c.d.cts +14 -0
- package/lib/get-access-token.interface-C8vDOoS4.d.cts +32 -0
- package/lib/get-options.interface-DtIaBrYo.d.cts +11 -0
- package/lib/get-profile-and-token-options.interface-B4HEexcv.d.cts +14 -0
- package/lib/get-profile-options.interface-BTqozSx_.d.cts +7 -0
- package/lib/get-token-2lecb0Cy.cjs +23 -0
- package/lib/get-token-2lecb0Cy.cjs.map +1 -0
- package/lib/get-token-CRyPuAyd.d.cts +23 -0
- package/lib/http-client-8EHeTnVH.cjs +96 -0
- package/lib/http-client-8EHeTnVH.cjs.map +1 -0
- package/lib/http-client-Cs56_alu.d.cts +55 -0
- package/lib/http-client.interface-DMi5johZ.d.cts +24 -0
- package/lib/identity.interface-fsQohx9t.d.cts +14 -0
- package/lib/impersonator.interface-BLJ5uqT4.d.cts +12 -0
- package/lib/index-DBcxvLj5.d.cts +721 -0
- package/lib/index.cjs +19 -18
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +142 -130
- package/lib/index.d.ts +19 -1
- package/lib/index.js.map +1 -1
- package/lib/index.worker.cjs +19 -18
- package/lib/index.worker.cjs.map +1 -1
- package/lib/index.worker.d.cts +120 -108
- package/lib/index.worker.d.ts +19 -1
- package/lib/index.worker.js.map +1 -1
- package/lib/interface-check-CTSXH7TS.cjs +23 -0
- package/lib/interface-check-CTSXH7TS.cjs.map +1 -0
- package/lib/invitation.interface-BGj97ho-.d.cts +64 -0
- package/lib/invitation.serializer-BrvOpgFx.d.cts +8 -0
- package/lib/jose-D4-VExnk.cjs +27 -0
- package/lib/jose-D4-VExnk.cjs.map +1 -0
- package/lib/key.interface-CFC2qwl7.d.cts +16 -0
- package/lib/leb128-CzuVP25R.cjs +82 -0
- package/lib/leb128-CzuVP25R.cjs.map +1 -0
- package/lib/list-connections-options.interface-zYzKu8PV.d.cts +17 -0
- package/lib/list-connections-options.serializer-BQ887b-b.d.cts +7 -0
- package/lib/list-directories-options.interface-Bq6Ctiub.d.cts +14 -0
- package/lib/list-directories-options.serializer-Btoh5Gla.d.cts +7 -0
- package/lib/list-directory-users-options.interface-B3hWSKfC.d.cts +10 -0
- package/lib/list-event-options.serializer-Dm8sSe0n.d.cts +7 -0
- package/lib/list-events-options.interface-CUGdhgSG.d.cts +22 -0
- package/lib/list-feature-flags-options.interface-DBQ7vrv_.d.cts +7 -0
- package/lib/list-groups-options.interface-U_gybSue.d.cts +10 -0
- package/lib/list-object-versions.interface-Rd5wqEPb.d.cts +12 -0
- package/lib/list-objects.interface-yOVh3Ifn.d.cts +9 -0
- package/lib/list-organization-api-keys-options.interface-YUTCTNS6.d.cts +9 -0
- package/lib/list-organization-feature-flags-options.interface-DnLCq59G.d.cts +9 -0
- package/lib/list-organization-roles-options.interface-BuvnLvwK.d.cts +7 -0
- package/lib/list-organizations-options.interface-EgR4w6S9.d.cts +9 -0
- package/lib/list-resources-options.serializer-BmYs9Vf0.cjs +19 -0
- package/lib/list-resources-options.serializer-BmYs9Vf0.cjs.map +1 -0
- package/lib/list-resources-options.serializer-ChXI92JX.d.cts +7 -0
- package/lib/list-sessions-options.interface-3wEl-9ph.d.cts +8 -0
- package/lib/list-sessions-options.serializer-DY3aSLdT.d.cts +7 -0
- package/lib/list-users-options.interface-CwR5WeUq.d.cts +14 -0
- package/lib/list-warrants-options.serializer-Bd-WDleA.cjs +21 -0
- package/lib/list-warrants-options.serializer-Bd-WDleA.cjs.map +1 -0
- package/lib/list-warrants-options.serializer-DghippBd.d.cts +7 -0
- package/lib/list.interface-C8ZxDYyJ.d.cts +20 -0
- package/lib/list.interface-CXp7D6FF.d.cts +13 -0
- package/lib/list.serializer-BO40xS2N.d.cts +10 -0
- package/lib/list.serializer-CTHSrCW_.cjs +17 -0
- package/lib/list.serializer-CTHSrCW_.cjs.map +1 -0
- package/lib/list.serializer-xzcXVR9t.d.cts +7 -0
- package/lib/locale.interface-DtJ_6jKP.d.cts +5 -0
- package/lib/logout-url-options.interface-DhTgF8Hk.d.cts +8 -0
- package/lib/magic-auth.interface-BECeWMH_.d.cts +42 -0
- package/lib/magic-auth.serializer-DUVjoLsC.d.cts +8 -0
- package/lib/mfa/interfaces/challenge-factor-options.d.cts +1 -1
- package/lib/mfa/interfaces/challenge.interface.d.cts +1 -1
- package/lib/mfa/interfaces/enroll-factor-options.d.cts +1 -1
- package/lib/mfa/interfaces/factor.interface.d.cts +1 -1
- package/lib/mfa/interfaces/index.d.cts +8 -8
- package/lib/mfa/interfaces/sms.interface.d.cts +1 -1
- package/lib/mfa/interfaces/totp.interface.d.cts +1 -1
- package/lib/mfa/interfaces/verify-challenge-options.d.cts +1 -1
- package/lib/mfa/interfaces/verify-challenge-response.d.cts +1 -1
- package/lib/mfa/mfa.d.cts +1 -1
- package/lib/mfa/serializers/challenge.serializer.d.cts +1 -1
- package/lib/mfa/serializers/factor.serializer.d.cts +1 -1
- package/lib/mfa/serializers/index.d.cts +3 -3
- package/lib/mfa/serializers/sms.serializer.d.cts +1 -1
- package/lib/mfa/serializers/totp.serializer.d.cts +1 -1
- package/lib/mfa/serializers/verify-response.serializer.d.cts +1 -1
- package/lib/no-api-key-provided.exception-hJIhxWx8.d.cts +9 -0
- package/lib/not-found.exception-BfAxXziV.d.cts +24 -0
- package/lib/oauth-tokens.interface-BmW9Eh4w.d.cts +16 -0
- package/lib/oauth.exception-Qx8LPHkD.d.cts +15 -0
- package/lib/object.interface-CB8MiPSx.d.cts +35 -0
- package/lib/organization-domain.interface-B1AwHwAc.cjs +28 -0
- package/lib/organization-domain.interface-B1AwHwAc.cjs.map +1 -0
- package/lib/organization-domain.interface-ozdxzINN.d.cts +35 -0
- package/lib/organization-domains/interfaces/create-organization-domain-options.interface.d.cts +1 -1
- package/lib/organization-domains/interfaces/index.cjs +1 -1
- package/lib/organization-domains/interfaces/index.d.cts +2 -2
- package/lib/organization-domains/interfaces/organization-domain.interface.cjs +1 -1
- package/lib/organization-domains/interfaces/organization-domain.interface.d.cts +1 -1
- package/lib/organization-domains/organization-domains.d.cts +1 -1
- package/lib/organization-domains/serializers/create-organization-domain-options.serializer.d.cts +1 -1
- package/lib/organization-domains/serializers/organization-domain.serializer.d.cts +1 -1
- package/lib/organization-membership.serializer-DVtJVaRT.cjs +24 -0
- package/lib/organization-membership.serializer-DVtJVaRT.cjs.map +1 -0
- package/lib/organization-role.interface-evatb3Ca.d.cts +15 -0
- package/lib/organization-role.serializer-9lMyuYAJ.d.cts +9 -0
- package/lib/organization-role.serializer-BJI8i3kB.cjs +39 -0
- package/lib/organization-role.serializer-BJI8i3kB.cjs.map +1 -0
- package/lib/organization.interface-v9vB3M2o.d.cts +30 -0
- package/lib/organization.serializer-oavqZBEE.d.cts +7 -0
- package/lib/organizations/interfaces/create-organization-options.interface.d.cts +1 -1
- package/lib/organizations/interfaces/domain-data.interface.cjs +1 -1
- package/lib/organizations/interfaces/domain-data.interface.d.cts +1 -1
- package/lib/organizations/interfaces/index.cjs +1 -1
- package/lib/organizations/interfaces/index.d.cts +6 -6
- package/lib/organizations/interfaces/list-organization-feature-flags-options.interface.d.cts +1 -1
- package/lib/organizations/interfaces/list-organization-roles-options.interface.d.cts +1 -1
- package/lib/organizations/interfaces/list-organizations-options.interface.d.cts +1 -1
- package/lib/organizations/interfaces/organization.interface.d.cts +1 -1
- package/lib/organizations/interfaces/update-organization-options.interface.d.cts +1 -1
- package/lib/organizations/organizations.cjs +1 -1
- package/lib/organizations/organizations.d.cts +1 -1
- package/lib/organizations/organizations.d.ts +1 -1
- package/lib/organizations/organizations.js +1 -1
- package/lib/organizations/organizations.js.map +1 -1
- package/lib/organizations/serializers/create-organization-options.serializer.d.cts +1 -1
- package/lib/organizations/serializers/index.d.cts +3 -3
- package/lib/organizations/serializers/organization.serializer.d.cts +1 -1
- package/lib/organizations/serializers/update-organization-options.serializer.d.cts +1 -1
- package/lib/organizations-CqJIT1Q5.cjs +70 -0
- package/lib/organizations-CqJIT1Q5.cjs.map +1 -0
- package/lib/pagination-D--sr3e2.d.cts +25 -0
- package/lib/pagination-options.interface-SKgiNnuZ.d.cts +10 -0
- package/lib/parse-error-B7u-PJ1K.cjs +24 -0
- package/lib/parse-error-B7u-PJ1K.cjs.map +1 -0
- package/lib/password-hash-type.interface-vH25bPgH.d.cts +5 -0
- package/lib/password-reset.interface-Yi4hon-d.d.cts +40 -0
- package/lib/password-reset.serializer-DvGywW1e.d.cts +8 -0
- package/lib/passwordless/interfaces/create-passwordless-session-options.interface.d.cts +1 -1
- package/lib/passwordless/interfaces/index.d.cts +3 -3
- package/lib/passwordless/interfaces/passwordless-session.interface.d.cts +1 -1
- package/lib/passwordless/interfaces/send-session-response.interface.d.cts +1 -1
- package/lib/passwordless/passwordless.d.cts +1 -1
- package/lib/passwordless/serializers/passwordless-session.serializer.d.cts +1 -1
- package/lib/passwordless-session.interface-BgyPqlZF.d.cts +18 -0
- package/lib/patch-options.interface-46BCssmo.d.cts +12 -0
- package/lib/permission.interface-BBwAYH07.d.cts +40 -0
- package/lib/permission.serializer-DjWoIZ-K.cjs +21 -0
- package/lib/permission.serializer-DjWoIZ-K.cjs.map +1 -0
- package/lib/permission.serializer-RAI4SM7h.d.cts +7 -0
- package/lib/pipes/interfaces/access-token.interface.d.cts +1 -1
- package/lib/pipes/interfaces/get-access-token.interface.d.cts +1 -1
- package/lib/pipes/pipes.d.cts +1 -1
- package/lib/pipes/serializers/access-token.serializer.d.cts +1 -1
- package/lib/pipes/serializers/get-access-token.serializer.d.cts +1 -1
- package/lib/pkce/pkce.d.cts +1 -1
- package/lib/pkce-n0rRYj_Q.d.cts +38 -0
- package/lib/portal/interfaces/generate-portal-link-intent.interface.cjs +1 -1
- package/lib/portal/interfaces/generate-portal-link-intent.interface.d.cts +1 -1
- package/lib/portal/interfaces/index.cjs +1 -1
- package/lib/portal/interfaces/index.d.cts +1 -1
- package/lib/portal/portal.d.cts +1 -1
- package/lib/post-options.interface-DlEjJsYu.d.cts +13 -0
- package/lib/profile-and-token.interface-BrAmbRfi.cjs +0 -0
- package/lib/profile-and-token.serializer-BL6rgjRg.d.cts +8 -0
- package/lib/profile.interface-CIhPFxjC.cjs +0 -0
- package/lib/profile.serializer-C-SA2vtS.d.cts +8 -0
- package/lib/put-options.interface-7lk8rQLi.d.cts +12 -0
- package/lib/put-options.interface-C0STQ8xm.cjs +0 -0
- package/lib/query-options.serializer-Chg3TZdD.cjs +19 -0
- package/lib/query-options.serializer-Chg3TZdD.cjs.map +1 -0
- package/lib/query-options.serializer-rnZkdjgt.d.cts +7 -0
- package/lib/query-result.serializer-B2dxUnKw.d.cts +12 -0
- package/lib/query-result.serializer-CQqFGng9.cjs +28 -0
- package/lib/query-result.serializer-CQqFGng9.cjs.map +1 -0
- package/lib/query.interface-BuOZQoFM.d.cts +35 -0
- package/lib/query.interface-DBrke9TG.cjs +0 -0
- package/lib/rate-limit-exceeded.exception-CF4reeT2.d.cts +18 -0
- package/lib/read-object.interface-D0Poz3-p.d.cts +25 -0
- package/lib/read-object.interface-RCcLbvry.cjs +0 -0
- package/lib/refresh-and-seal-session-data.interface-BC_uVnK1.cjs +19 -0
- package/lib/refresh-and-seal-session-data.interface-BC_uVnK1.cjs.map +1 -0
- package/lib/refresh-and-seal-session-data.interface-BSKQWqmn.d.cts +24 -0
- package/lib/remove-flag-target-options.interface-BZBcjHE7.d.cts +8 -0
- package/lib/remove-flag-target-options.interface-CNzVf6zp.cjs +0 -0
- package/lib/remove-organization-role-permission-options.interface-BpQUw8lU.cjs +0 -0
- package/lib/remove-organization-role-permission-options.interface-ZMh36f0F.d.cts +7 -0
- package/lib/request-exception.interface-DahTOGID.d.cts +9 -0
- package/lib/resend-invitation-options.interface-BqrfHp3r.d.cts +12 -0
- package/lib/resend-invitation-options.interface-BvKYcUMa.cjs +0 -0
- package/lib/resend-invitation-options.serializer-gi3hyBeV.cjs +12 -0
- package/lib/resend-invitation-options.serializer-gi3hyBeV.cjs.map +1 -0
- package/lib/reset-password-options.interface-C8NDiT__.cjs +0 -0
- package/lib/reset-password-options.interface-uWGx-EHg.d.cts +12 -0
- package/lib/reset-password-options.serializer-B814ASb4.d.cts +7 -0
- package/lib/resource-op.enum-DvMR02yw.d.cts +8 -0
- package/lib/resource-op.enum-iS-Tf1WO.cjs +16 -0
- package/lib/resource-op.enum-iS-Tf1WO.cjs.map +1 -0
- package/lib/resource.interface-BZ27Ar_A.d.cts +77 -0
- package/lib/resource.interface-Dk75RqTQ.cjs +0 -0
- package/lib/resource.serializer-DO1Fpj-V.d.cts +8 -0
- package/lib/resource.serializer-DQA6JSVB.cjs +25 -0
- package/lib/resource.serializer-DQA6JSVB.cjs.map +1 -0
- package/lib/response-payload.interface-B6BBFm56.d.cts +26 -0
- package/lib/response-payload.interface-tlU2hrOg.cjs +0 -0
- package/lib/revoke-session-options.interface-20LkWyox.d.cts +11 -0
- package/lib/role.interface-DIftS8f6.cjs +0 -0
- package/lib/roles/interfaces/index.d.cts +1 -1
- package/lib/roles/interfaces/role.interface.d.cts +1 -1
- package/lib/roles/interfaces/role.interface.d.ts +4 -11
- package/lib/roles/serializers/role.serializer.d.cts +1 -1
- package/lib/runtime-info-CkgTBGi9.cjs +56 -0
- package/lib/runtime-info-CkgTBGi9.cjs.map +1 -0
- package/lib/send-invitation-options.interface-C2RofyVU.d.cts +22 -0
- package/lib/send-invitation-options.interface-C6iq0iBA.cjs +0 -0
- package/lib/send-invitation-options.serializer-BX9N-pl6.cjs +19 -0
- package/lib/send-invitation-options.serializer-BX9N-pl6.cjs.map +1 -0
- package/lib/send-session-response.interface-CMl4tWw_.d.cts +8 -0
- package/lib/send-session-response.interface-CVGhNzxv.cjs +0 -0
- package/lib/send-verification-email-options.interface-BUkQm-56.cjs +0 -0
- package/lib/send-verification-email-options.interface-BtOygLys.d.cts +7 -0
- package/lib/serializers-7jp-w6XR.cjs +0 -0
- package/lib/serializers-Bd8zRjMr.cjs +0 -0
- package/lib/session-BspC-lF9.cjs +144 -0
- package/lib/session-BspC-lF9.cjs.map +1 -0
- package/lib/session-handler-options.interface-BVTuA5uU.d.cts +9 -0
- package/lib/session.interface-CJL0YhXF.cjs +0 -0
- package/lib/session.interface-zszewQtk.d.cts +38 -0
- package/lib/session.serializer-DAUllV3H.d.cts +7 -0
- package/lib/set-environment-role-permissions-options.interface-C04yO7oE.cjs +0 -0
- package/lib/set-environment-role-permissions-options.interface-CJm4G5CM.d.cts +7 -0
- package/lib/set-organization-role-permissions-options.interface-Dsm86677.cjs +0 -0
- package/lib/set-organization-role-permissions-options.interface-F54jbJ3q.d.cts +7 -0
- package/lib/signature-verification.exception-D2-xkCRS.d.cts +8 -0
- package/lib/sms.interface-f_7eFA1B.d.cts +10 -0
- package/lib/sso/interfaces/authorization-url-options.interface.d.cts +1 -1
- package/lib/sso/interfaces/connection-type.enum.cjs +1 -1
- package/lib/sso/interfaces/connection-type.enum.d.cts +1 -1
- package/lib/sso/interfaces/connection.interface.d.cts +1 -1
- package/lib/sso/interfaces/get-profile-and-token-options.interface.d.cts +1 -1
- package/lib/sso/interfaces/get-profile-options.interface.d.cts +1 -1
- package/lib/sso/interfaces/index.cjs +1 -1
- package/lib/sso/interfaces/index.d.cts +7 -8
- package/lib/sso/interfaces/list-connections-options.interface.d.cts +1 -1
- package/lib/sso/interfaces/profile-and-token.interface.d.cts +1 -1
- package/lib/sso/interfaces/profile.interface.d.cts +1 -1
- package/lib/sso/serializers/connection.serializer.d.cts +1 -1
- package/lib/sso/serializers/index.d.cts +4 -4
- package/lib/sso/serializers/list-connections-options.serializer.d.cts +1 -1
- package/lib/sso/serializers/profile-and-token.serializer.d.cts +1 -1
- package/lib/sso/serializers/profile.serializer.d.cts +1 -1
- package/lib/sso/sso.d.cts +1 -1
- package/lib/subtle-crypto-provider-z15sJdtL.cjs +99 -0
- package/lib/subtle-crypto-provider-z15sJdtL.cjs.map +1 -0
- package/lib/totp.interface-4Tn9mcvR.d.cts +22 -0
- package/lib/unauthorized.exception-B0Ma7wJ5.d.cts +13 -0
- package/lib/unknown-record.interface-DSMWbzCc.d.cts +5 -0
- package/lib/unprocessable-entity-error.interface-B2dNTbj0.cjs +0 -0
- package/lib/unprocessable-entity-error.interface-CGfXN5Ma.d.cts +8 -0
- package/lib/unprocessable-entity.exception-rapwl2dZ.d.cts +25 -0
- package/lib/unreachable-HIg8NPjR.cjs +23 -0
- package/lib/unreachable-HIg8NPjR.cjs.map +1 -0
- package/lib/update-environment-role-options.interface-dosXnOZd.d.cts +12 -0
- package/lib/update-environment-role-options.interface-i6KgrgfD.cjs +0 -0
- package/lib/update-environment-role-options.serializer-BNsh8m0U.d.cts +7 -0
- package/lib/update-environment-role-options.serializer-DowajKPM.cjs +15 -0
- package/lib/update-environment-role-options.serializer-DowajKPM.cjs.map +1 -0
- package/lib/update-object.interface-CSfFiDhx.cjs +0 -0
- package/lib/update-object.interface-H3nqYCkH.d.cts +13 -0
- package/lib/update-organization-membership-options.interface-BB8dVzxD.cjs +0 -0
- package/lib/update-organization-membership-options.interface-vwSowDwp.d.cts +12 -0
- package/lib/update-organization-membership-options.serializer-J0-AHdSc.cjs +15 -0
- package/lib/update-organization-membership-options.serializer-J0-AHdSc.cjs.map +1 -0
- package/lib/update-organization-options.interface-Bo0n5-X2.cjs +0 -0
- package/lib/update-organization-options.interface-C5szqmv1.d.cts +21 -0
- package/lib/update-organization-options.serializer-BMZ1uX4v.d.cts +7 -0
- package/lib/update-organization-role-options.interface-BxoOYg6j.cjs +0 -0
- package/lib/update-organization-role-options.interface-rE638uDV.d.cts +12 -0
- package/lib/update-organization-role-options.serializer-P4807NCD.cjs +15 -0
- package/lib/update-organization-role-options.serializer-P4807NCD.cjs.map +1 -0
- package/lib/update-organization-role-options.serializer-v4U24skp.d.cts +7 -0
- package/lib/update-permission-options.interface-1DDWIS6-.d.cts +12 -0
- package/lib/update-permission-options.interface-Cc6sRKzk.cjs +0 -0
- package/lib/update-permission-options.serializer-DBaEseXC.cjs +15 -0
- package/lib/update-permission-options.serializer-DBaEseXC.cjs.map +1 -0
- package/lib/update-permission-options.serializer-LHPO0d7U.d.cts +7 -0
- package/lib/update-user-options.interface-hZd8eW6q.cjs +0 -0
- package/lib/update-user-options.interface-yJ1zfqXv.d.cts +31 -0
- package/lib/update-user-options.serializer-PMEBc0mh.d.cts +7 -0
- package/lib/update-user-password-options.interface-B9BC-Hv9.cjs +0 -0
- package/lib/update-user-password-options.interface-Bhwbi84x.d.cts +11 -0
- package/lib/update-user-password-options.serializer-xFeYcrdn.d.cts +7 -0
- package/lib/user-management/interfaces/authenticate-with-code-and-verifier-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-code-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-email-verification-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-magic-auth-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-options-base.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-organization-selection.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-password-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-refresh-token-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-refresh-token-public-client-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-session-cookie.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authenticate-with-totp-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authentication-event.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authentication-radar-risk-detected-event.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authentication-response.interface.d.cts +1 -1
- package/lib/user-management/interfaces/authorization-url-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/create-magic-auth-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/create-organization-membership-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/create-password-reset-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/create-user-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/email-verification.interface.d.cts +1 -1
- package/lib/user-management/interfaces/enroll-auth-factor.interface.d.cts +1 -1
- package/lib/user-management/interfaces/factor.interface.d.cts +1 -1
- package/lib/user-management/interfaces/identity.interface.d.cts +1 -1
- package/lib/user-management/interfaces/impersonator.interface.d.cts +1 -1
- package/lib/user-management/interfaces/index.cjs +1 -1
- package/lib/user-management/interfaces/index.d.cts +46 -45
- package/lib/user-management/interfaces/index.d.ts +3 -1
- package/lib/user-management/interfaces/invitation.interface.d.cts +1 -1
- package/lib/user-management/interfaces/list-auth-factors-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/list-invitations-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/list-organization-memberships-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/list-sessions-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/list-user-feature-flags-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/list-users-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/locale.interface.cjs +0 -0
- package/lib/user-management/interfaces/locale.interface.d.cts +2 -0
- package/lib/user-management/interfaces/locale.interface.d.ts +5 -0
- package/lib/user-management/interfaces/locale.interface.js +1 -0
- package/lib/user-management/interfaces/logout-url-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/magic-auth.interface.d.cts +1 -1
- package/lib/user-management/interfaces/oauth-tokens.interface.d.cts +1 -1
- package/lib/user-management/interfaces/organization-membership.interface.d.cts +1 -1
- package/lib/user-management/interfaces/organization-membership.interface.d.ts +2 -0
- package/lib/user-management/interfaces/password-hash-type.interface.d.cts +1 -1
- package/lib/user-management/interfaces/password-reset.interface.d.cts +1 -1
- package/lib/user-management/interfaces/refresh-and-seal-session-data.interface.cjs +1 -1
- package/lib/user-management/interfaces/refresh-and-seal-session-data.interface.d.cts +1 -1
- package/lib/user-management/interfaces/resend-invitation-options.interface.cjs +0 -0
- package/lib/user-management/interfaces/resend-invitation-options.interface.d.cts +2 -0
- package/lib/user-management/interfaces/resend-invitation-options.interface.d.ts +12 -0
- package/lib/user-management/interfaces/resend-invitation-options.interface.js +1 -0
- package/lib/user-management/interfaces/reset-password-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/revoke-session-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/send-invitation-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/send-invitation-options.interface.d.ts +4 -0
- package/lib/user-management/interfaces/send-verification-email-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/session-handler-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/session.interface.d.cts +1 -1
- package/lib/user-management/interfaces/update-organization-membership-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/update-user-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/update-user-password-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/user.interface.d.cts +1 -1
- package/lib/user-management/interfaces/verify-email-options.interface.d.cts +1 -1
- package/lib/user-management/serializers/authenticate-with-code-and-verifier-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authenticate-with-code-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authenticate-with-email-verification.serializer.d.cts +2 -2
- package/lib/user-management/serializers/authenticate-with-magic-auth-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authenticate-with-organization-selection-options.serializer.d.cts +2 -2
- package/lib/user-management/serializers/authenticate-with-password-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authenticate-with-refresh-token-public-client-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authenticate-with-refresh-token.options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authenticate-with-totp-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authentication-event.serializer.d.cts +1 -1
- package/lib/user-management/serializers/authentication-radar-risk-event-serializer.d.cts +1 -1
- package/lib/user-management/serializers/authentication-response.serializer.d.cts +1 -1
- package/lib/user-management/serializers/create-magic-auth-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/create-organization-membership-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/create-password-reset-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/create-user-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/email-verification.serializer.d.cts +1 -1
- package/lib/user-management/serializers/enroll-auth-factor-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/factor.serializer.d.cts +1 -1
- package/lib/user-management/serializers/identity.serializer.d.cts +1 -1
- package/lib/user-management/serializers/index.d.cts +24 -24
- package/lib/user-management/serializers/invitation.serializer.d.cts +1 -1
- package/lib/user-management/serializers/list-invitations-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/list-organization-memberships-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/list-sessions-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/list-users-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/magic-auth.serializer.d.cts +1 -1
- package/lib/user-management/serializers/oauth-tokens.serializer.d.cts +1 -1
- package/lib/user-management/serializers/organization-membership.serializer.cjs +1 -1
- package/lib/user-management/serializers/organization-membership.serializer.d.cts +1 -1
- package/lib/user-management/serializers/organization-membership.serializer.js +2 -1
- package/lib/user-management/serializers/organization-membership.serializer.js.map +1 -1
- package/lib/user-management/serializers/password-reset.serializer.d.cts +1 -1
- package/lib/user-management/serializers/resend-invitation-options.serializer.cjs +3 -0
- package/lib/user-management/serializers/resend-invitation-options.serializer.d.cts +7 -0
- package/lib/user-management/serializers/resend-invitation-options.serializer.d.ts +7 -0
- package/lib/user-management/serializers/resend-invitation-options.serializer.js +6 -0
- package/lib/user-management/serializers/resend-invitation-options.serializer.js.map +1 -0
- package/lib/user-management/serializers/reset-password-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/role.serializer.d.cts +1 -1
- package/lib/user-management/serializers/send-invitation-options.serializer.cjs +1 -1
- package/lib/user-management/serializers/send-invitation-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/send-invitation-options.serializer.js +2 -1
- package/lib/user-management/serializers/send-invitation-options.serializer.js.map +1 -1
- package/lib/user-management/serializers/session.serializer.d.cts +1 -1
- package/lib/user-management/serializers/update-organization-membership-options.serializer.cjs +1 -1
- package/lib/user-management/serializers/update-organization-membership-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/update-user-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/update-user-password-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/user.serializer.d.cts +1 -1
- package/lib/user-management/session.cjs +2 -2
- package/lib/user-management/session.d.cts +1 -1
- package/lib/user-management/user-management.cjs +3 -3
- package/lib/user-management/user-management.d.cts +1 -1
- package/lib/user-management/user-management.d.ts +2 -1
- package/lib/user-management/user-management.js +3 -2
- package/lib/user-management/user-management.js.map +1 -1
- package/lib/user-management-DCbkjgk8.cjs +539 -0
- package/lib/user-management-DCbkjgk8.cjs.map +1 -0
- package/lib/user.interface-BJY1-A6X.d.cts +34 -0
- package/lib/user.interface-Bln_2b82.cjs +0 -0
- package/lib/user.serializer-Cm-81FKp.d.cts +7 -0
- package/lib/utils/jose.cjs +1 -1
- package/lib/validate-api-key.interface-CH-HBG4k.cjs +0 -0
- package/lib/validate-api-key.interface-DNV_9W09.d.cts +15 -0
- package/lib/validate-api-key.serializer-1ugfgyKZ.d.cts +7 -0
- package/lib/vault/interfaces/index.d.cts +10 -10
- package/lib/vault/interfaces/key/create-data-key.interface.d.cts +1 -1
- package/lib/vault/interfaces/key/decrypt-data-key.interface.d.cts +1 -1
- package/lib/vault/interfaces/key.interface.d.cts +1 -1
- package/lib/vault/interfaces/object/create-object.interface.d.cts +1 -1
- package/lib/vault/interfaces/object/delete-object.interface.d.cts +1 -1
- package/lib/vault/interfaces/object/list-object-versions.interface.d.cts +1 -1
- package/lib/vault/interfaces/object/list-objects.interface.d.cts +1 -1
- package/lib/vault/interfaces/object/read-object.interface.d.cts +1 -1
- package/lib/vault/interfaces/object/update-object.interface.d.cts +1 -1
- package/lib/vault/interfaces/object.interface.d.cts +1 -1
- package/lib/vault/serializers/vault-key.serializer.cjs +1 -1
- package/lib/vault/serializers/vault-key.serializer.d.cts +3 -3
- package/lib/vault/serializers/vault-object.serializer.cjs +1 -1
- package/lib/vault/serializers/vault-object.serializer.d.cts +7 -7
- package/lib/vault/vault.cjs +1 -1
- package/lib/vault/vault.d.cts +1 -1
- package/lib/vault-DFZlnEty.cjs +106 -0
- package/lib/vault-DFZlnEty.cjs.map +1 -0
- package/lib/vault-key.serializer-CprnZmmD.cjs +29 -0
- package/lib/vault-key.serializer-CprnZmmD.cjs.map +1 -0
- package/lib/vault-object.serializer-DdulnQ2X.cjs +84 -0
- package/lib/vault-object.serializer-DdulnQ2X.cjs.map +1 -0
- package/lib/verify-challenge-options-BNCpUNrV.d.cts +8 -0
- package/lib/verify-challenge-response-DpXoIuSX.d.cts +14 -0
- package/lib/verify-email-options.interface-C0_VqDVK.d.cts +11 -0
- package/lib/verify-email-options.interface-DPQfAOwk.cjs +0 -0
- package/lib/verify-response.serializer-DLbxaA_Y.d.cts +7 -0
- package/lib/warning.interface-yJ1XNLbJ.d.cts +13 -0
- package/lib/warrant-op.enum-Bqzp9GRk.cjs +16 -0
- package/lib/warrant-op.enum-Bqzp9GRk.cjs.map +1 -0
- package/lib/warrant-op.enum-Dj1dkgof.d.cts +8 -0
- package/lib/warrant-token.interface-BpOppNeH.cjs +0 -0
- package/lib/warrant-token.interface-DPxaBIlh.d.cts +10 -0
- package/lib/warrant-token.serializer-C66i3W4C.d.cts +7 -0
- package/lib/warrant-token.serializer-DFNcFGQN.cjs +12 -0
- package/lib/warrant-token.serializer-DFNcFGQN.cjs.map +1 -0
- package/lib/warrant.interface-80A3Pew0.d.cts +71 -0
- package/lib/warrant.interface-BgyqZr7M.cjs +0 -0
- package/lib/warrant.serializer-BnF9sWUb.cjs +22 -0
- package/lib/warrant.serializer-BnF9sWUb.cjs.map +1 -0
- package/lib/warrant.serializer-q9Ra6iEa.d.cts +7 -0
- package/lib/webhooks/webhooks.cjs +1 -1
- package/lib/webhooks/webhooks.d.cts +1 -1
- package/lib/webhooks-BznN9ZsE.d.cts +35 -0
- package/lib/webhooks-CPFNC99w.cjs +38 -0
- package/lib/webhooks-CPFNC99w.cjs.map +1 -0
- package/lib/widgets/interfaces/get-token.cjs +1 -1
- package/lib/widgets/interfaces/get-token.d.cts +1 -1
- package/lib/widgets/widgets.cjs +1 -1
- package/lib/widgets/widgets.d.cts +1 -1
- package/lib/widgets-UYWIfPS5.cjs +21 -0
- package/lib/widgets-UYWIfPS5.cjs.map +1 -0
- package/lib/workos-HBr0yoqZ.cjs +332 -0
- package/lib/workos-HBr0yoqZ.cjs.map +1 -0
- package/lib/workos-options.interface-DsrGUZeh.d.cts +17 -0
- package/lib/workos-options.interface-Dyy5FyDG.cjs +0 -0
- package/lib/workos-response-error.interface-CUW8-rVq.d.cts +13 -0
- package/lib/workos-response-error.interface-DfARVQg0.cjs +0 -0
- package/lib/workos.cjs +5 -5
- package/lib/workos.d.cts +1 -1
- package/lib/workos.d.ts +6 -0
- package/lib/workos.js +27 -1
- package/lib/workos.js.map +1 -1
- package/lib/write-warrant-options.serializer-CJo81yBS.cjs +26 -0
- package/lib/write-warrant-options.serializer-CJo81yBS.cjs.map +1 -0
- package/lib/write-warrant-options.serializer-DYf63mng.d.cts +7 -0
- package/package.json +1 -1
- package/lib/access-token.interface-qb42DvMJ.d.cts +0 -18
- package/lib/action.interface-BLCbp-cT.d.cts +0 -63
- package/lib/action.serializer-CkMp2PpV.cjs +0 -47
- package/lib/action.serializer-CkMp2PpV.cjs.map +0 -1
- package/lib/actions-_-g7Idem.cjs +0 -58
- package/lib/actions-_-g7Idem.cjs.map +0 -1
- package/lib/actions-d_uq5P1L.d.cts +0 -41
- package/lib/add-flag-target-options.interface-DboHvXBu.d.cts +0 -8
- package/lib/api-key-required.exception-BOy1dF_S.d.cts +0 -10
- package/lib/api-key.interface-BHBINSO0.d.cts +0 -32
- package/lib/api-key.serializer-C50uuFpr.d.cts +0 -7
- package/lib/api-keys-mDyp4q6k.d.cts +0 -704
- package/lib/app-info.interface-C9ji_GUR.d.cts +0 -8
- package/lib/audit-log-export-options.interface-leXX6r-l.d.cts +0 -22
- package/lib/audit-log-export-options.serializer-Dvk0Vdn_.d.cts +0 -7
- package/lib/audit-log-export.interface-BOAyjgev.d.cts +0 -20
- package/lib/audit-log-export.serializer-DFqm5z_A.d.cts +0 -7
- package/lib/authenticate-with-code-and-verifier-options.interface-iYkG5mK5.d.cts +0 -17
- package/lib/authenticate-with-code-and-verifier-options.serializer-CooMcqC8.d.cts +0 -8
- package/lib/authenticate-with-code-options.interface-DQJr1pXz.d.cts +0 -20
- package/lib/authenticate-with-code-options.serializer-DfPtLDiz.d.cts +0 -8
- package/lib/authenticate-with-email-verification-options.interface-CrR9oRqC.d.cts +0 -18
- package/lib/authenticate-with-magic-auth-options.interface-CpVi8mtn.d.cts +0 -22
- package/lib/authenticate-with-magic-auth-options.serializer-B77kBerw.d.cts +0 -8
- package/lib/authenticate-with-options-base.interface-2DXtG4VP.d.cts +0 -41
- package/lib/authenticate-with-organization-selection.interface-BsFnw663.d.cts +0 -18
- package/lib/authenticate-with-password-options.interface-C96-JI_J.d.cts +0 -20
- package/lib/authenticate-with-password-options.serializer-Cu_SGAgE.d.cts +0 -8
- package/lib/authenticate-with-refresh-token-options.interface-CM1TufRB.d.cts +0 -18
- package/lib/authenticate-with-refresh-token-public-client-options.interface-D7hLjjWc.d.cts +0 -16
- package/lib/authenticate-with-refresh-token-public-client-options.serializer-BDGklXEB.d.cts +0 -8
- package/lib/authenticate-with-refresh-token.options.serializer-BnSt0VcK.d.cts +0 -9
- package/lib/authenticate-with-session-cookie.interface-tn2KA4cA.d.cts +0 -45
- package/lib/authenticate-with-totp-options.interface-16qWKCD0.d.cts +0 -20
- package/lib/authenticate-with-totp-options.serializer-CpfE1aHW.d.cts +0 -8
- package/lib/authentication-event.interface-B2DjMTcP.d.cts +0 -28
- package/lib/authentication-event.serializer-B2f7AREO.d.cts +0 -7
- package/lib/authentication-radar-risk-detected-event.interface-WzOM1Ikg.d.cts +0 -24
- package/lib/authentication-response.interface-DsUweGqC.d.cts +0 -28
- package/lib/authentication-response.serializer-Cvgyw-Ny.d.cts +0 -7
- package/lib/authorization-url-options.interface-ZrBipUt2.d.cts +0 -55
- package/lib/authorization-url-options.interface-eEOWfbHw.d.cts +0 -45
- package/lib/bad-request.exception-Dt5w75jb.d.cts +0 -25
- package/lib/base64-BROQtK6X.cjs +0 -44
- package/lib/base64-BROQtK6X.cjs.map +0 -1
- package/lib/batch-write-resources-options.serializer-BxUrYV3Z.d.cts +0 -7
- package/lib/batch-write-resources-options.serializer-CffA5DfH.cjs +0 -23
- package/lib/batch-write-resources-options.serializer-CffA5DfH.cjs.map +0 -1
- package/lib/challenge-factor-options-pbaZ9sT0.d.cts +0 -10
- package/lib/challenge.interface-BRyoywSw.d.cts +0 -22
- package/lib/challenge.serializer-DuO1FONN.d.cts +0 -7
- package/lib/check-op.enum-4IPdgcR_.cjs +0 -16
- package/lib/check-op.enum-4IPdgcR_.cjs.map +0 -1
- package/lib/check-op.enum-BxjDvXvG.d.cts +0 -8
- package/lib/check-options.serializer-B72dqHn5.cjs +0 -69
- package/lib/check-options.serializer-B72dqHn5.cjs.map +0 -1
- package/lib/check-options.serializer-BaiGXU5C.d.cts +0 -9
- package/lib/check.interface-BdAPzYtJ.d.cts +0 -88
- package/lib/check.interface-WnywQ3Nn.cjs +0 -33
- package/lib/check.interface-WnywQ3Nn.cjs.map +0 -1
- package/lib/conflict.exception-D66_QI9c.cjs +0 -23
- package/lib/conflict.exception-D66_QI9c.cjs.map +0 -1
- package/lib/connection-type.enum-CZfRWY9b.cjs +0 -49
- package/lib/connection-type.enum-CZfRWY9b.cjs.map +0 -1
- package/lib/connection-type.enum-CjWDQ5dq.d.cts +0 -41
- package/lib/connection.interface-DV7VmsKj.d.cts +0 -33
- package/lib/connection.serializer-Biy7KKu3.d.cts +0 -7
- package/lib/create-audit-log-event-options.interface-Cwth3loK.d.cts +0 -43
- package/lib/create-audit-log-event-options.serializer-DAT6w82I.d.cts +0 -7
- package/lib/create-audit-log-schema-options.interface-OCEBwyPY.d.cts +0 -67
- package/lib/create-audit-log-schema-options.serializer-Nxw9eaic.d.cts +0 -7
- package/lib/create-audit-log-schema.serializer-DHzQ5j3s.d.cts +0 -7
- package/lib/create-data-key.interface-B8yGESmB.d.cts +0 -15
- package/lib/create-magic-auth-options.interface-DK-rMcbs.d.cts +0 -12
- package/lib/create-magic-auth-options.serializer-C3YLOz8M.d.cts +0 -7
- package/lib/create-object.interface-BeH56LqJ.d.cts +0 -16
- package/lib/create-organization-api-key-options.serializer-BsRjnrYe.d.cts +0 -7
- package/lib/create-organization-domain-options.interface-CYOQi45i.d.cts +0 -12
- package/lib/create-organization-membership-options.interface-D_ChTOCZ.d.cts +0 -16
- package/lib/create-organization-options.serializer-BP9YqXCb.d.cts +0 -7
- package/lib/create-password-reset-options.interface-FlupefEp.d.cts +0 -10
- package/lib/create-password-reset-options.serializer-BXKZ6exA.d.cts +0 -7
- package/lib/create-passwordless-session-options.interface-DRRdook4.d.cts +0 -20
- package/lib/create-resource-options.serializer-CW1mImuQ.cjs +0 -17
- package/lib/create-resource-options.serializer-CW1mImuQ.cjs.map +0 -1
- package/lib/create-resource-options.serializer-x9S7UBJu.d.cts +0 -7
- package/lib/create-user-options.interface-D_FyRPT6.d.cts +0 -28
- package/lib/create-user-options.serializer-DbOQgaMH.d.cts +0 -7
- package/lib/created-api-key.interface-DJC0Hbil.d.cts +0 -34
- package/lib/created-api-key.serializer-CUESZReh.d.cts +0 -7
- package/lib/crypto-provider-DHQpgiJI.cjs +0 -18
- package/lib/crypto-provider-DHQpgiJI.cjs.map +0 -1
- package/lib/crypto-provider-xt721c-E.d.cts +0 -75
- package/lib/decrypt-data-key.interface-BMyadMdM.d.cts +0 -11
- package/lib/delete-object.interface-VOtMiRor.d.cts +0 -7
- package/lib/delete-resource-options.serializer-1OtbZ7Xw.cjs +0 -16
- package/lib/delete-resource-options.serializer-1OtbZ7Xw.cjs.map +0 -1
- package/lib/delete-resource-options.serializer-DXYb24lH.d.cts +0 -7
- package/lib/directory-group.interface-BXhORoZV.d.cts +0 -24
- package/lib/directory-group.serializer-CTJJy0Kb.d.cts +0 -8
- package/lib/directory-user.interface-B0cSpVBk.d.cts +0 -48
- package/lib/directory-user.serializer-CotaPd_A.d.cts +0 -9
- package/lib/directory.interface-CKBneEhg.d.cts +0 -60
- package/lib/directory.serializer-BhYUCxaX.d.cts +0 -10
- package/lib/domain-data.interface-jRo-qP_g.cjs +0 -16
- package/lib/domain-data.interface-jRo-qP_g.cjs.map +0 -1
- package/lib/domain-data.interface-pTi_WT5Q.d.cts +0 -12
- package/lib/email-verification.interface-CAc4zz7F.d.cts +0 -42
- package/lib/email-verification.serializer-C_AlrH3-.d.cts +0 -8
- package/lib/enroll-auth-factor-options.serializer-BZEtsmCx.d.cts +0 -7
- package/lib/enroll-auth-factor.interface-BtYeuUBZ.d.cts +0 -17
- package/lib/enroll-factor-options-CmyPkn2h.d.cts +0 -14
- package/lib/event.serializer-D7YBgSw3.d.cts +0 -7
- package/lib/event.serializer-DDxhlKpU.cjs +0 -180
- package/lib/event.serializer-DDxhlKpU.cjs.map +0 -1
- package/lib/events-DznbKxXA.cjs +0 -23
- package/lib/events-DznbKxXA.cjs.map +0 -1
- package/lib/factor.interface-Dsk_wYCN.d.cts +0 -44
- package/lib/factor.interface-DyQxGS-X.d.cts +0 -42
- package/lib/factor.serializer-B6Y-wFb5.d.cts +0 -8
- package/lib/factor.serializer-UAz7NTzS.d.cts +0 -8
- package/lib/factory-C447nn53.cjs +0 -15
- package/lib/factory-C447nn53.cjs.map +0 -1
- package/lib/feature-flag.interface-Btv6VfMI.d.cts +0 -28
- package/lib/feature-flag.serializer-dWnsMPwY.d.cts +0 -7
- package/lib/feature-flags-Be_HjF1A.cjs +0 -42
- package/lib/feature-flags-Be_HjF1A.cjs.map +0 -1
- package/lib/fetch-and-deserialize-list-BxNZs_lh.cjs +0 -19
- package/lib/fetch-and-deserialize-list-BxNZs_lh.cjs.map +0 -1
- package/lib/fetch-client-DdnJdHyo.cjs +0 -178
- package/lib/fetch-client-DdnJdHyo.cjs.map +0 -1
- package/lib/fga-BzThcM6n.cjs +0 -83
- package/lib/fga-BzThcM6n.cjs.map +0 -1
- package/lib/fga-paginatable-DEDsjb3U.cjs +0 -22
- package/lib/fga-paginatable-DEDsjb3U.cjs.map +0 -1
- package/lib/fga-paginatable-dk4rWGGN.d.cts +0 -14
- package/lib/generate-portal-link-intent.interface-BhUMhTmF.d.cts +0 -12
- package/lib/generate-portal-link-intent.interface-D-_01JcM.cjs +0 -20
- package/lib/generate-portal-link-intent.interface-D-_01JcM.cjs.map +0 -1
- package/lib/generic-server.exception-DcQ8s8I4.d.cts +0 -14
- package/lib/get-access-token.interface-CWupD3RW.d.cts +0 -32
- package/lib/get-options.interface-DAECfi3y.d.cts +0 -11
- package/lib/get-profile-and-token-options.interface-CgiTXQNg.d.cts +0 -14
- package/lib/get-profile-options.interface-CF_TcBM6.d.cts +0 -7
- package/lib/get-token-BN39vk9z.cjs +0 -23
- package/lib/get-token-BN39vk9z.cjs.map +0 -1
- package/lib/get-token-DzJWaKpa.d.cts +0 -23
- package/lib/http-client-B9cq9YMH.d.cts +0 -54
- package/lib/http-client-BLYDc7_a.cjs +0 -96
- package/lib/http-client-BLYDc7_a.cjs.map +0 -1
- package/lib/http-client.interface-B_lhFBGb.d.cts +0 -24
- package/lib/identity.interface-QfHtZhoz.d.cts +0 -14
- package/lib/impersonator.interface-Vr4-B1pz.d.cts +0 -12
- package/lib/index-CovDHv7q.d.cts +0 -557
- package/lib/index-SnTQxaLp.d.cts +0 -1
- package/lib/index-hRUJhHRh.d.cts +0 -1
- package/lib/index-kVnxSapa.d.cts +0 -1
- package/lib/interface-check-Cq-1Jdi8.cjs +0 -23
- package/lib/interface-check-Cq-1Jdi8.cjs.map +0 -1
- package/lib/invitation.interface-BQMsYCSZ.d.cts +0 -64
- package/lib/invitation.serializer-D7GsMvuH.d.cts +0 -8
- package/lib/jose-D0f0CVnA.cjs +0 -27
- package/lib/jose-D0f0CVnA.cjs.map +0 -1
- package/lib/key.interface-lG6YylXY.d.cts +0 -16
- package/lib/leb128-DgwAOCuj.cjs +0 -82
- package/lib/leb128-DgwAOCuj.cjs.map +0 -1
- package/lib/list-connections-options.interface-C_4eo9BU.d.cts +0 -17
- package/lib/list-connections-options.serializer-DfJliOZZ.d.cts +0 -7
- package/lib/list-directories-options.interface-B_Or3OFG.d.cts +0 -14
- package/lib/list-directories-options.serializer-C2zUlVDI.d.cts +0 -7
- package/lib/list-directory-users-options.interface-C7vYk_oi.d.cts +0 -10
- package/lib/list-event-options.serializer-JusR1KRI.d.cts +0 -7
- package/lib/list-events-options.interface-CD82jAU0.d.cts +0 -22
- package/lib/list-feature-flags-options.interface-TNRLg_eE.d.cts +0 -7
- package/lib/list-groups-options.interface-DSOFN2vw.d.cts +0 -10
- package/lib/list-object-versions.interface-Bcum-UM6.d.cts +0 -12
- package/lib/list-objects.interface-3h292QrX.d.cts +0 -9
- package/lib/list-organization-api-keys-options.interface-BHiZwa0X.d.cts +0 -9
- package/lib/list-organization-feature-flags-options.interface-lBZ9xl9J.d.cts +0 -9
- package/lib/list-organization-roles-options.interface-CDmO2AJ9.d.cts +0 -7
- package/lib/list-organizations-options.interface-fSvcaRDB.d.cts +0 -9
- package/lib/list-resources-options.serializer-B01VCK2u.d.cts +0 -7
- package/lib/list-resources-options.serializer-DGgWhS-1.cjs +0 -19
- package/lib/list-resources-options.serializer-DGgWhS-1.cjs.map +0 -1
- package/lib/list-sessions-options.interface-B2gN9ZV4.d.cts +0 -8
- package/lib/list-sessions-options.serializer-BZDbMjgP.d.cts +0 -7
- package/lib/list-users-options.interface-D2fACxr-.d.cts +0 -14
- package/lib/list-warrants-options.serializer-BsPCfAmS.d.cts +0 -7
- package/lib/list-warrants-options.serializer-DajLG33H.cjs +0 -21
- package/lib/list-warrants-options.serializer-DajLG33H.cjs.map +0 -1
- package/lib/list.interface-BA88zMzn.d.cts +0 -13
- package/lib/list.interface-D5DXp24q.d.cts +0 -20
- package/lib/list.serializer-Bz6Gh8tU.cjs +0 -17
- package/lib/list.serializer-Bz6Gh8tU.cjs.map +0 -1
- package/lib/list.serializer-Du5A8dpa.d.cts +0 -7
- package/lib/list.serializer-mTuQPSVS.d.cts +0 -10
- package/lib/logout-url-options.interface-CE3bWJ1r.d.cts +0 -8
- package/lib/magic-auth.interface-DHluxaz0.d.cts +0 -42
- package/lib/magic-auth.serializer-C2zJUZve.d.cts +0 -8
- package/lib/no-api-key-provided.exception-C7hM-2nF.d.cts +0 -9
- package/lib/not-found.exception-Dx6q9fB_.d.cts +0 -24
- package/lib/oauth-tokens.interface-BnEjos_G.d.cts +0 -16
- package/lib/oauth.exception-CevJbHCU.d.cts +0 -15
- package/lib/object.interface-DK7EXEsK.d.cts +0 -35
- package/lib/organization-domain.interface-CrAOoSPo.d.cts +0 -35
- package/lib/organization-domain.interface-F741XB-4.cjs +0 -28
- package/lib/organization-domain.interface-F741XB-4.cjs.map +0 -1
- package/lib/organization-membership.interface-ERgG2p4e.d.cts +0 -31
- package/lib/organization-membership.serializer-CYvdEErJ.cjs +0 -23
- package/lib/organization-membership.serializer-CYvdEErJ.cjs.map +0 -1
- package/lib/organization.interface-i6mWA3uA.d.cts +0 -30
- package/lib/organization.serializer-BLDEzQ1R.d.cts +0 -7
- package/lib/organizations-D95AsD1T.cjs +0 -70
- package/lib/organizations-D95AsD1T.cjs.map +0 -1
- package/lib/pagination-CJNMwJck.d.cts +0 -25
- package/lib/pagination-options.interface-Dan4Zh3s.d.cts +0 -10
- package/lib/parse-error-Bbj9GQ8a.cjs +0 -24
- package/lib/parse-error-Bbj9GQ8a.cjs.map +0 -1
- package/lib/password-hash-type.interface-CxNrEyUW.d.cts +0 -5
- package/lib/password-reset.interface-ClJw8CpQ.d.cts +0 -40
- package/lib/password-reset.serializer-b_eJxueA.d.cts +0 -8
- package/lib/passwordless-session.interface-DNuCWNwX.d.cts +0 -18
- package/lib/pkce-CjBivwLM.d.cts +0 -38
- package/lib/post-options.interface-BPsfRqbS.d.cts +0 -13
- package/lib/profile-and-token.interface-ZhaI1B_G.d.cts +0 -18
- package/lib/profile-and-token.serializer-jvVxElaa.d.cts +0 -8
- package/lib/profile.interface-CPseQwyu.d.cts +0 -42
- package/lib/profile.serializer-DdojQSTs.d.cts +0 -8
- package/lib/put-options.interface-CZQMFl9I.d.cts +0 -12
- package/lib/query-options.serializer-D8fa8ATB.cjs +0 -19
- package/lib/query-options.serializer-D8fa8ATB.cjs.map +0 -1
- package/lib/query-options.serializer-Diz_h8yQ.d.cts +0 -7
- package/lib/query-result.serializer-CNtZi5XJ.cjs +0 -28
- package/lib/query-result.serializer-CNtZi5XJ.cjs.map +0 -1
- package/lib/query-result.serializer-PmDR_3q_.d.cts +0 -12
- package/lib/query.interface-CRFxU55p.d.cts +0 -35
- package/lib/rate-limit-exceeded.exception-BIPgOZUD.d.cts +0 -18
- package/lib/read-object.interface-BB42mvW3.d.cts +0 -25
- package/lib/refresh-and-seal-session-data.interface-CseekR4v.cjs +0 -19
- package/lib/refresh-and-seal-session-data.interface-CseekR4v.cjs.map +0 -1
- package/lib/refresh-and-seal-session-data.interface-Dj5I8yeH.d.cts +0 -24
- package/lib/remove-flag-target-options.interface-GeGGkSC5.d.cts +0 -8
- package/lib/request-exception.interface-BmJyrOWP.d.cts +0 -9
- package/lib/reset-password-options.interface-CLFu671o.d.cts +0 -12
- package/lib/reset-password-options.serializer-CHPuZk8c.d.cts +0 -7
- package/lib/resource-op.enum-B88boilW.cjs +0 -16
- package/lib/resource-op.enum-B88boilW.cjs.map +0 -1
- package/lib/resource-op.enum-DvX5Qafv.d.cts +0 -8
- package/lib/resource.interface-DoGgkV2d.d.cts +0 -77
- package/lib/resource.serializer-BPTEBds3.d.cts +0 -8
- package/lib/resource.serializer-D7crN0bg.cjs +0 -25
- package/lib/resource.serializer-D7crN0bg.cjs.map +0 -1
- package/lib/response-payload.interface-CC-y4Nv6.d.cts +0 -26
- package/lib/revoke-session-options.interface-VAEw2kUV.d.cts +0 -11
- package/lib/role.interface-BfMq5Bju.d.cts +0 -51
- package/lib/runtime-info-tyLXDYg5.cjs +0 -56
- package/lib/runtime-info-tyLXDYg5.cjs.map +0 -1
- package/lib/send-invitation-options.interface-BfUo_y42.d.cts +0 -18
- package/lib/send-invitation-options.serializer-DW0HMDNN.cjs +0 -18
- package/lib/send-invitation-options.serializer-DW0HMDNN.cjs.map +0 -1
- package/lib/send-session-response.interface-B5S6VASb.d.cts +0 -8
- package/lib/send-verification-email-options.interface-I508oiKZ.d.cts +0 -7
- package/lib/session-9omTtyoD.cjs +0 -144
- package/lib/session-9omTtyoD.cjs.map +0 -1
- package/lib/session-handler-options.interface-DxF6E6ug.d.cts +0 -9
- package/lib/session.interface-BL6GFmCP.d.cts +0 -38
- package/lib/session.serializer-DfnhKR5i.d.cts +0 -7
- package/lib/signature-verification.exception-Bdz2blO4.d.cts +0 -8
- package/lib/sms.interface-CCvvcYpl.d.cts +0 -10
- package/lib/subtle-crypto-provider-B-Ywls_E.cjs +0 -99
- package/lib/subtle-crypto-provider-B-Ywls_E.cjs.map +0 -1
- package/lib/totp.interface-DYAiNCIp.d.cts +0 -22
- package/lib/unauthorized.exception-BfjoWRNu.d.cts +0 -13
- package/lib/unknown-record.interface-BeldI97Y.d.cts +0 -5
- package/lib/unprocessable-entity-error.interface-Cetcw8CZ.d.cts +0 -8
- package/lib/unprocessable-entity.exception-Bfdn63On.d.cts +0 -25
- package/lib/unreachable-BhX3Wm6O.cjs +0 -23
- package/lib/unreachable-BhX3Wm6O.cjs.map +0 -1
- package/lib/update-object.interface-DSpX1DVE.d.cts +0 -13
- package/lib/update-organization-membership-options.interface-dgLTrwtU.d.cts +0 -12
- package/lib/update-organization-membership-options.serializer-CMMOZfnN.cjs +0 -15
- package/lib/update-organization-membership-options.serializer-CMMOZfnN.cjs.map +0 -1
- package/lib/update-organization-options.interface-BsgwfPaF.d.cts +0 -21
- package/lib/update-organization-options.serializer-5Out0brr.d.cts +0 -7
- package/lib/update-user-options.interface-aM2-YVW5.d.cts +0 -31
- package/lib/update-user-options.serializer-6lvzxDwS.d.cts +0 -7
- package/lib/update-user-password-options.interface-Buytvx58.d.cts +0 -11
- package/lib/update-user-password-options.serializer-D35YAk--.d.cts +0 -7
- package/lib/user-management-B-wNbU8Q.cjs +0 -538
- package/lib/user-management-B-wNbU8Q.cjs.map +0 -1
- package/lib/user.interface-Dw_0nNpw.d.cts +0 -34
- package/lib/user.serializer-DJ3rbRrA.d.cts +0 -7
- package/lib/validate-api-key.interface-TBdiN_K_.d.cts +0 -15
- package/lib/validate-api-key.serializer-DJFc2ovX.d.cts +0 -7
- package/lib/vault-BlHYnRoU.cjs +0 -106
- package/lib/vault-BlHYnRoU.cjs.map +0 -1
- package/lib/vault-key.serializer-eYptLXG-.cjs +0 -29
- package/lib/vault-key.serializer-eYptLXG-.cjs.map +0 -1
- package/lib/vault-object.serializer-BZEXkPbG.cjs +0 -84
- package/lib/vault-object.serializer-BZEXkPbG.cjs.map +0 -1
- package/lib/verify-challenge-options-CbIfj-xU.d.cts +0 -8
- package/lib/verify-challenge-response-BmtVdUEW.d.cts +0 -14
- package/lib/verify-email-options.interface-C84HHtMI.d.cts +0 -11
- package/lib/verify-response.serializer-BzA1MzhA.d.cts +0 -7
- package/lib/warning.interface-CSsg4mki.d.cts +0 -13
- package/lib/warrant-op.enum-DlS3mxL5.d.cts +0 -8
- package/lib/warrant-op.enum-GglqG3OS.cjs +0 -16
- package/lib/warrant-op.enum-GglqG3OS.cjs.map +0 -1
- package/lib/warrant-token.interface-R40zmb_I.d.cts +0 -10
- package/lib/warrant-token.serializer-5-8n-V0R.d.cts +0 -7
- package/lib/warrant-token.serializer-DcPHu0QA.cjs +0 -12
- package/lib/warrant-token.serializer-DcPHu0QA.cjs.map +0 -1
- package/lib/warrant.interface-BTyeqwIZ.d.cts +0 -71
- package/lib/warrant.serializer-CoOLXomy.cjs +0 -22
- package/lib/warrant.serializer-CoOLXomy.cjs.map +0 -1
- package/lib/warrant.serializer-gpAVldox.d.cts +0 -7
- package/lib/webhooks-Cg-vwv-K.cjs +0 -38
- package/lib/webhooks-Cg-vwv-K.cjs.map +0 -1
- package/lib/webhooks-Cu--UoJt.d.cts +0 -35
- package/lib/widgets-DgRdyRWv.cjs +0 -21
- package/lib/widgets-DgRdyRWv.cjs.map +0 -1
- package/lib/workos-Q8jFdPPy.cjs +0 -306
- package/lib/workos-Q8jFdPPy.cjs.map +0 -1
- package/lib/workos-options.interface-UI0n58Db.d.cts +0 -17
- package/lib/workos-response-error.interface-BWAYi8L4.d.cts +0 -13
- package/lib/write-warrant-options.serializer-ZEtUaK3t.cjs +0 -26
- package/lib/write-warrant-options.serializer-ZEtUaK3t.cjs.map +0 -1
- package/lib/write-warrant-options.serializer-sFJLAscw.d.cts +0 -7
- /package/lib/{action.interface-CkOAE1pY.cjs → action.interface-Cp_zjlbq.cjs} +0 -0
- /package/lib/{add-flag-target-options.interface-dMGv3yj3.cjs → add-environment-role-permission-options.interface-Iu9Ch9C8.cjs} +0 -0
- /package/lib/{api-key.interface-Dp44lU0l.cjs → add-flag-target-options.interface-DIrECf_q.cjs} +0 -0
- /package/lib/{audit-log-export-options.interface-C0qji-yn.cjs → add-organization-role-permission-options.interface-CaoNd2oC.cjs} +0 -0
- /package/lib/{audit-log-export.interface-L9dgSkYy.cjs → api-key.interface-CKbSjD5i.cjs} +0 -0
- /package/lib/{authenticate-with-code-and-verifier-options.interface-BYx47_xz.cjs → audit-log-export-options.interface-DnLNNH69.cjs} +0 -0
- /package/lib/{authenticate-with-code-options.interface-BopjXJqx.cjs → audit-log-export.interface-C-vo0He0.cjs} +0 -0
- /package/lib/{authenticate-with-email-verification-options.interface-BHYcF7qE.cjs → authenticate-with-code-and-verifier-options.interface-Dx_BHLhw.cjs} +0 -0
- /package/lib/{authenticate-with-magic-auth-options.interface-D4f0rE9c.cjs → authenticate-with-code-options.interface-R6K1Vhe2.cjs} +0 -0
- /package/lib/{authenticate-with-options-base.interface-DON2cMpD.cjs → authenticate-with-email-verification-options.interface-B5rAPOaX.cjs} +0 -0
- /package/lib/{authenticate-with-organization-selection.interface-7wYlcuE4.cjs → authenticate-with-magic-auth-options.interface-BN61GmkA.cjs} +0 -0
- /package/lib/{authenticate-with-password-options.interface-BhYKWEov.cjs → authenticate-with-options-base.interface-OnfF-7oV.cjs} +0 -0
- /package/lib/{authenticate-with-refresh-token-options.interface-DHIVPm61.cjs → authenticate-with-organization-selection.interface-DW-NpTwE.cjs} +0 -0
- /package/lib/{authenticate-with-refresh-token-public-client-options.interface-CkimjQl3.cjs → authenticate-with-password-options.interface-Cyd9Mg9f.cjs} +0 -0
- /package/lib/{authenticate-with-totp-options.interface-BIrXLPem.cjs → authenticate-with-refresh-token-options.interface-DtToMftX.cjs} +0 -0
- /package/lib/{authentication-event.interface-EapgQlPG.cjs → authenticate-with-refresh-token-public-client-options.interface-BosOmcNC.cjs} +0 -0
- /package/lib/{authentication-radar-risk-detected-event.interface-BKZBuc9D.cjs → authenticate-with-totp-options.interface-NZ3FlPUp.cjs} +0 -0
- /package/lib/{authentication-response.interface-Bdr_R5sj.cjs → authentication-event.interface-D2d3yA2C.cjs} +0 -0
- /package/lib/{authorization-url-options.interface-C6Y5Gwm7.cjs → authentication-radar-risk-detected-event.interface-CUQwIbCE.cjs} +0 -0
- /package/lib/{authorization-url-options.interface-Cjohf5tR.cjs → authentication-response.interface-DDQn5MT0.cjs} +0 -0
- /package/lib/{create-audit-log-schema-options.interface-Bbg2hLgB.cjs → authorization/interfaces/add-environment-role-permission-options.interface.cjs} +0 -0
- /package/lib/{create-data-key.interface-gbc99HQ1.cjs → authorization/interfaces/add-organization-role-permission-options.interface.cjs} +0 -0
- /package/lib/{create-magic-auth-options.interface-De9IkCQF.cjs → authorization/interfaces/create-environment-role-options.interface.cjs} +0 -0
- /package/lib/{create-object.interface-CSsrC5NL.cjs → authorization/interfaces/create-organization-role-options.interface.cjs} +0 -0
- /package/lib/{create-organization-api-key-options.interface-9iLvdEx0.cjs → authorization/interfaces/create-permission-options.interface.cjs} +0 -0
- /package/lib/{create-organization-domain-options.interface-D1Ttuqb6.cjs → authorization/interfaces/environment-role.interface.cjs} +0 -0
- /package/lib/{create-organization-membership-options.interface-CBXXA0Gm.cjs → authorization/interfaces/index.cjs} +0 -0
- /package/lib/{create-organization-options.interface-D7xVl5sq.cjs → authorization/interfaces/list-permissions-options.interface.cjs} +0 -0
- /package/lib/{create-password-reset-options.interface-B2Rw4p5_.cjs → authorization/interfaces/organization-role.interface.cjs} +0 -0
- /package/lib/{create-passwordless-session-options.interface-B1BOSDIV.cjs → authorization/interfaces/permission.interface.cjs} +0 -0
- /package/lib/{create-user-options.interface-CX80nkXN.cjs → authorization/interfaces/remove-organization-role-permission-options.interface.cjs} +0 -0
- /package/lib/{created-api-key.interface-DkHwRpkj.cjs → authorization/interfaces/set-environment-role-permissions-options.interface.cjs} +0 -0
- /package/lib/{decrypt-data-key.interface-BpqQk6v6.cjs → authorization/interfaces/set-organization-role-permissions-options.interface.cjs} +0 -0
- /package/lib/{delete-object.interface-DXRirEIi.cjs → authorization/interfaces/update-environment-role-options.interface.cjs} +0 -0
- /package/lib/{directory-group.interface-B4ic7sA3.cjs → authorization/interfaces/update-organization-role-options.interface.cjs} +0 -0
- /package/lib/{directory-user.interface-Ci4KBF1c.cjs → authorization/interfaces/update-permission-options.interface.cjs} +0 -0
- /package/lib/{connection.interface-CSyly4pO.cjs → authorization-url-options.interface-C9Fxv_7o.cjs} +0 -0
- /package/lib/{create-audit-log-event-options.interface-CbozGiMJ.cjs → authorization-url-options.interface-CpQQiakb.cjs} +0 -0
- /package/lib/{directory.interface-DZqZAP7j.cjs → common/interfaces/patch-options.interface.cjs} +0 -0
- /package/lib/{email-verification.interface-B9puXDAs.cjs → connection.interface-Bizso5vL.cjs} +0 -0
- /package/lib/{enroll-auth-factor.interface-cLereKiZ.cjs → create-audit-log-event-options.interface-CV4irZpp.cjs} +0 -0
- /package/lib/{event.interface-DQMKDuc9.cjs → create-audit-log-schema-options.interface-CAfKAjBf.cjs} +0 -0
- /package/lib/{factor.interface-Uxx5A9bu.cjs → create-data-key.interface-C2-NUWkZ.cjs} +0 -0
- /package/lib/{feature-flag.interface-Ug-r9a4Y.cjs → create-environment-role-options.interface-kC_uHnZl.cjs} +0 -0
- /package/lib/{get-options.interface-C2z2r1ix.cjs → create-magic-auth-options.interface-DUm3MfqV.cjs} +0 -0
- /package/lib/{get-profile-and-token-options.interface-DI-Q8ebI.cjs → create-object.interface-jufKIYD_.cjs} +0 -0
- /package/lib/{get-profile-options.interface-DjUysY00.cjs → create-organization-api-key-options.interface-DneHi7Es.cjs} +0 -0
- /package/lib/{http-client.interface-DVx4DGRo.cjs → create-organization-domain-options.interface-9xVPDedq.cjs} +0 -0
- /package/lib/{identity.interface-pMR3VyDs.cjs → create-organization-membership-options.interface-D6p-ZR1H.cjs} +0 -0
- /package/lib/{impersonator.interface-C8ENsrgh.cjs → create-organization-options.interface-BQ-ynkFt.cjs} +0 -0
- /package/lib/{interfaces-BOHKsPOz.cjs → create-organization-role-options.interface-BZevKU9l.cjs} +0 -0
- /package/lib/{interfaces-BSEjYu3J.cjs → create-password-reset-options.interface-BwbNVK63.cjs} +0 -0
- /package/lib/{interfaces-D9mIJVCc.cjs → create-passwordless-session-options.interface-CUwrUUes.cjs} +0 -0
- /package/lib/{interfaces-D_qyT71O.cjs → create-permission-options.interface-gNV8L40W.cjs} +0 -0
- /package/lib/{interfaces-hquSk6kj.cjs → create-user-options.interface-B1BsHBrW.cjs} +0 -0
- /package/lib/{interfaces-lw3tA1Ig.cjs → created-api-key.interface-B9LIbGZn.cjs} +0 -0
- /package/lib/{invitation.interface-DuJQvENh.cjs → decrypt-data-key.interface-CC8-x3bk.cjs} +0 -0
- /package/lib/{key.interface-fwN2JSVT.cjs → delete-object.interface-maVx6Sss.cjs} +0 -0
- /package/lib/{list-auth-factors-options.interface-C_MNm3jN.cjs → directory-group.interface-fI3Q18_V.cjs} +0 -0
- /package/lib/{list-connections-options.interface-YNk1YDor.cjs → directory-user.interface-BDg3vEue.cjs} +0 -0
- /package/lib/{list-directories-options.interface-CI0d7UHw.cjs → directory.interface-BtqM2Oqa.cjs} +0 -0
- /package/lib/{list-directory-users-options.interface-B-cXq46X.cjs → email-verification.interface-ChKIDS-L.cjs} +0 -0
- /package/lib/{list-events-options.interface-C8jfNxm0.cjs → enroll-auth-factor.interface-CW5tMY5z.cjs} +0 -0
- /package/lib/{list-feature-flags-options.interface-CfqDXcyU.cjs → environment-role.interface-B1gHSYUW.cjs} +0 -0
- /package/lib/{list-groups-options.interface-XF1YACqA.cjs → event.interface-DJog_FVt.cjs} +0 -0
- /package/lib/{list-invitations-options.interface-BVUPp5YW.cjs → factor.interface-DXV18z-y.cjs} +0 -0
- /package/lib/{list-object-versions.interface-RY6pD26h.cjs → feature-flag.interface-zWuZQ0AN.cjs} +0 -0
- /package/lib/{list-objects.interface-Bp30QMX7.cjs → get-options.interface-PWSxSJWf.cjs} +0 -0
- /package/lib/{list-organization-api-keys-options.interface-CHwMsqCG.cjs → get-profile-and-token-options.interface-B4AIgzHK.cjs} +0 -0
- /package/lib/{list-organization-feature-flags-options.interface-BBYYH_hi.cjs → get-profile-options.interface-BL-ae6kv.cjs} +0 -0
- /package/lib/{list-organization-memberships-options.interface-OSYPLSDa.cjs → http-client.interface-q5tbZi3r.cjs} +0 -0
- /package/lib/{list-organizations-options.interface-BDvmneTo.cjs → identity.interface-ByIvTffv.cjs} +0 -0
- /package/lib/{list-sessions-options.interface-CNUdzKGT.cjs → impersonator.interface-Cf6hV6Sl.cjs} +0 -0
- /package/lib/{index-BXAFTIXq.d.cts → index-1uLygO4P.d.cts} +0 -0
- /package/lib/{index-By33K0bY.d.cts → index-B6gmSQ17.d.cts} +0 -0
- /package/lib/{index-CKltkU46.d.cts → index-BcBOa3hp.d.cts} +0 -0
- /package/lib/{index-DCiA8mC0.d.cts → index-BxzRAt8C.d.cts} +0 -0
- /package/lib/{index-DPFAF2L8.d.cts → index-CGSBYMIY.d.cts} +0 -0
- /package/lib/{index-DbQcfgDj.d.cts → index-CNyG9oqt.d.cts} +0 -0
- /package/lib/{index-DiJBdvWV.d.cts → index-CRoJq_Lc.d.cts} +0 -0
- /package/lib/{index-DuB_GnHY.d.cts → index-D-yUU_Re.d.cts} +0 -0
- /package/lib/{index-DyFAE6ok.d.cts → index-DBTRFl_2.d.cts} +0 -0
- /package/lib/{index-J9AgzEVC.d.cts → index-Daxn2RpI.d.cts} +0 -0
- /package/lib/{index-Kx-CLSKd.d.cts → index-W8XcuB-8.d.cts} +0 -0
- /package/lib/{list-user-feature-flags-options.interface-D8wcWYlx.cjs → interfaces-B2GoLcEd.cjs} +0 -0
- /package/lib/{list-users-options.interface-DIk86usi.cjs → interfaces-BYxjU24Y.cjs} +0 -0
- /package/lib/{list.interface-CANtyNNL.cjs → interfaces-Bj3jzkUk.cjs} +0 -0
- /package/lib/{logout-url-options.interface-XJrvh9Um.cjs → interfaces-D9rg42Qr.cjs} +0 -0
- /package/lib/{magic-auth.interface-OAoqBOq3.cjs → interfaces-DlIGjxho.cjs} +0 -0
- /package/lib/{oauth-tokens.interface-DN0gza6B.cjs → interfaces-MzGHd7Yh.cjs} +0 -0
- /package/lib/{object.interface-ouK-CMDg.cjs → invitation.interface-mC_8BuA9.cjs} +0 -0
- /package/lib/{organization-membership.interface-lE9RCqTV.cjs → key.interface-CHRr2LEz.cjs} +0 -0
- /package/lib/{organization.interface-CVqDknbl.cjs → list-auth-factors-options.interface-DKlym4v6.cjs} +0 -0
- /package/lib/{pagination-options.interface-B5F27Ki8.cjs → list-connections-options.interface-DVqutI5F.cjs} +0 -0
- /package/lib/{password-reset.interface-OhYRauB2.cjs → list-directories-options.interface-eav9nzy3.cjs} +0 -0
- /package/lib/{passwordless-session.interface-C5Jxlpb4.cjs → list-directory-users-options.interface-DLqDVyl2.cjs} +0 -0
- /package/lib/{post-options.interface-Dq51f5lQ.cjs → list-events-options.interface-0QWZL0Yw.cjs} +0 -0
- /package/lib/{profile-and-token.interface-DWS2cGa3.cjs → list-feature-flags-options.interface-DVCuHMFE.cjs} +0 -0
- /package/lib/{profile.interface-CDRlx1GK.cjs → list-groups-options.interface-By_UcNDc.cjs} +0 -0
- /package/lib/{put-options.interface-gBaevIoJ.cjs → list-invitations-options.interface-BP7cTrWE.cjs} +0 -0
- /package/lib/{query.interface-Bzmz5paB.cjs → list-object-versions.interface-CZ3u9vAQ.cjs} +0 -0
- /package/lib/{read-object.interface-23WBJJxF.cjs → list-objects.interface-DB0LHLG9.cjs} +0 -0
- /package/lib/{remove-flag-target-options.interface-Cku-Z1m-.cjs → list-organization-api-keys-options.interface-CveTG0uD.cjs} +0 -0
- /package/lib/{reset-password-options.interface-Cnc8Tptm.cjs → list-organization-feature-flags-options.interface-_x6kSSZY.cjs} +0 -0
- /package/lib/{resource.interface-B_62uGB9.cjs → list-organization-memberships-options.interface-B3j0iJtf.cjs} +0 -0
- /package/lib/{response-payload.interface-Bw5H70BX.cjs → list-organizations-options.interface-CO97CX3u.cjs} +0 -0
- /package/lib/{role.interface-DokcsdG6.cjs → list-permissions-options.interface-DLk_ltrp.cjs} +0 -0
- /package/lib/{send-invitation-options.interface-BKFjdXV9.cjs → list-sessions-options.interface-CxrAFAFB.cjs} +0 -0
- /package/lib/{send-session-response.interface-DikznICv.cjs → list-user-feature-flags-options.interface-BffT3Bgy.cjs} +0 -0
- /package/lib/{send-verification-email-options.interface-ouroaASB.cjs → list-users-options.interface-CZSIN83o.cjs} +0 -0
- /package/lib/{serializers-CshbWgH5.cjs → list.interface-BRryI6pg.cjs} +0 -0
- /package/lib/{session.interface-DRZhbyZ-.cjs → locale.interface-CEpymw1t.cjs} +0 -0
- /package/lib/{unprocessable-entity-error.interface-CBG2g2iU.cjs → logout-url-options.interface-DWdskc6a.cjs} +0 -0
- /package/lib/{update-object.interface-Nms9NiU9.cjs → magic-auth.interface-fz8MN6h7.cjs} +0 -0
- /package/lib/{update-organization-membership-options.interface-JtvQDljv.cjs → oauth-tokens.interface-B-4Pi0sR.cjs} +0 -0
- /package/lib/{update-organization-options.interface-4n3qEX9i.cjs → object.interface-npvKCWKF.cjs} +0 -0
- /package/lib/{update-user-options.interface-Docd9AML.cjs → organization-membership.interface-D1wrotmQ.cjs} +0 -0
- /package/lib/{update-user-password-options.interface-Bqpsk-Qq.cjs → organization-role.interface-CLBM9aza.cjs} +0 -0
- /package/lib/{user.interface-CQjmDTsg.cjs → organization.interface-pY1iGerY.cjs} +0 -0
- /package/lib/{validate-api-key.interface-CK407BWa.cjs → pagination-options.interface-BoiKHHTH.cjs} +0 -0
- /package/lib/{verify-email-options.interface-BBcp932Q.cjs → password-reset.interface-CnDQOmWv.cjs} +0 -0
- /package/lib/{warrant-token.interface-BQ9A2-XP.cjs → passwordless-session.interface-Bi9y87V7.cjs} +0 -0
- /package/lib/{warrant.interface-DJHgzeER.cjs → patch-options.interface-Fd1jUcSo.cjs} +0 -0
- /package/lib/{workos-options.interface-BCUwoqgS.cjs → permission.interface-Dhx-jPkZ.cjs} +0 -0
- /package/lib/{workos-response-error.interface-oYjLN9ok.cjs → post-options.interface-BY7OUsfe.cjs} +0 -0
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
const require_pagination = require('./pagination-BG1uBuL4.cjs');
|
|
2
|
+
const require_authenticate_with_code_options_serializer = require('./authenticate-with-code-options.serializer-BMz_1tBW.cjs');
|
|
3
|
+
const require_authenticate_with_code_and_verifier_options_serializer = require('./authenticate-with-code-and-verifier-options.serializer-BEILlMya.cjs');
|
|
4
|
+
const require_authenticate_with_magic_auth_options_serializer = require('./authenticate-with-magic-auth-options.serializer-CYU4H_5p.cjs');
|
|
5
|
+
const require_authenticate_with_password_options_serializer = require('./authenticate-with-password-options.serializer-DPYtf-9Q.cjs');
|
|
6
|
+
const require_authenticate_with_refresh_token_options_serializer = require('./authenticate-with-refresh-token.options.serializer-Ba3QVuMY.cjs');
|
|
7
|
+
const require_authenticate_with_refresh_token_public_client_options_serializer = require('./authenticate-with-refresh-token-public-client-options.serializer-BUO_bMxj.cjs');
|
|
8
|
+
const require_authenticate_with_totp_options_serializer = require('./authenticate-with-totp-options.serializer-Dv5iQHm4.cjs');
|
|
9
|
+
const require_user_serializer = require('./user.serializer-Y5EM8MeK.cjs');
|
|
10
|
+
const require_authentication_response_serializer = require('./authentication-response.serializer-DCSj_OPJ.cjs');
|
|
11
|
+
const require_create_magic_auth_options_serializer = require('./create-magic-auth-options.serializer-DN24SZEy.cjs');
|
|
12
|
+
const require_create_password_reset_options_serializer = require('./create-password-reset-options.serializer-C9rwv-Gj.cjs');
|
|
13
|
+
const require_email_verification_serializer = require('./email-verification.serializer-e6Mbvjvd.cjs');
|
|
14
|
+
const require_enroll_auth_factor_options_serializer = require('./enroll-auth-factor-options.serializer-BBfKN5IU.cjs');
|
|
15
|
+
const require_factor_serializer = require('./factor.serializer-CiRgOFhH.cjs');
|
|
16
|
+
const require_invitation_serializer = require('./invitation.serializer-BEVUkLP9.cjs');
|
|
17
|
+
const require_list_sessions_options_serializer = require('./list-sessions-options.serializer-DXI2uV_8.cjs');
|
|
18
|
+
const require_magic_auth_serializer = require('./magic-auth.serializer-By4HyvgZ.cjs');
|
|
19
|
+
const require_password_reset_serializer = require('./password-reset.serializer-D8Kbnirv.cjs');
|
|
20
|
+
const require_reset_password_options_serializer = require('./reset-password-options.serializer-6VTahIzL.cjs');
|
|
21
|
+
const require_session_serializer = require('./session.serializer-Dmj9Hm3q.cjs');
|
|
22
|
+
const require_create_user_options_serializer = require('./create-user-options.serializer-CphvVoaV.cjs');
|
|
23
|
+
const require_update_user_options_serializer = require('./update-user-options.serializer-H11lRdjH.cjs');
|
|
24
|
+
const require_organization_membership_serializer = require('./organization-membership.serializer-DVtJVaRT.cjs');
|
|
25
|
+
const require_fetch_and_deserialize = require('./fetch-and-deserialize-Cw0qruaA.cjs');
|
|
26
|
+
const require_feature_flag_serializer = require('./feature-flag.serializer-DhnZDZE3.cjs');
|
|
27
|
+
const require_query_string = require('./query-string-DvY-MOOT.cjs');
|
|
28
|
+
const require_challenge_serializer = require('./challenge.serializer-CiNDM6Ny.cjs');
|
|
29
|
+
const require_seal = require('./seal-Dl5Et6Vv.cjs');
|
|
30
|
+
const require_env = require('./env-CCN5u8Rv.cjs');
|
|
31
|
+
const require_authenticate_with_session_cookie_interface = require('./authenticate-with-session-cookie.interface-wRJr18ep.cjs');
|
|
32
|
+
const require_revoke_session_options_interface = require('./revoke-session-options.interface-adU7deuN.cjs');
|
|
33
|
+
const require_authenticate_with_email_verification_serializer = require('./authenticate-with-email-verification.serializer-DkvyobQ9.cjs');
|
|
34
|
+
const require_authenticate_with_organization_selection_options_serializer = require('./authenticate-with-organization-selection-options.serializer-BgFxJgiU.cjs');
|
|
35
|
+
const require_create_organization_membership_options_serializer = require('./create-organization-membership-options.serializer-Da3OXX5I.cjs');
|
|
36
|
+
const require_identity_serializer = require('./identity.serializer-Bzox6cAy.cjs');
|
|
37
|
+
const require_list_invitations_options_serializer = require('./list-invitations-options.serializer-DyJeeVXk.cjs');
|
|
38
|
+
const require_list_organization_memberships_options_serializer = require('./list-organization-memberships-options.serializer-eZn-qTI8.cjs');
|
|
39
|
+
const require_list_users_options_serializer = require('./list-users-options.serializer-CAQrhvH0.cjs');
|
|
40
|
+
const require_resend_invitation_options_serializer = require('./resend-invitation-options.serializer-gi3hyBeV.cjs');
|
|
41
|
+
const require_send_invitation_options_serializer = require('./send-invitation-options.serializer-BX9N-pl6.cjs');
|
|
42
|
+
const require_update_organization_membership_options_serializer = require('./update-organization-membership-options.serializer-J0-AHdSc.cjs');
|
|
43
|
+
const require_jose = require('./jose-D4-VExnk.cjs');
|
|
44
|
+
const require_session = require('./session-BspC-lF9.cjs');
|
|
45
|
+
|
|
46
|
+
//#region src/user-management/user-management.ts
|
|
47
|
+
var UserManagement = class {
|
|
48
|
+
_jwks;
|
|
49
|
+
clientId;
|
|
50
|
+
constructor(workos) {
|
|
51
|
+
this.workos = workos;
|
|
52
|
+
const { clientId } = workos.options;
|
|
53
|
+
this.clientId = clientId;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Resolve clientId from method options or fall back to constructor-provided value.
|
|
57
|
+
* @throws TypeError if clientId is not available from either source
|
|
58
|
+
*/
|
|
59
|
+
resolveClientId(clientId) {
|
|
60
|
+
const resolved = clientId ?? this.clientId;
|
|
61
|
+
if (!resolved) throw new TypeError("clientId is required. Provide it in method options or when initializing WorkOS.");
|
|
62
|
+
return resolved;
|
|
63
|
+
}
|
|
64
|
+
async getJWKS() {
|
|
65
|
+
const { createRemoteJWKSet } = await require_jose.getJose();
|
|
66
|
+
if (!this.clientId) return;
|
|
67
|
+
this._jwks ??= createRemoteJWKSet(new URL(this.getJwksUrl(this.clientId)), { cooldownDuration: 1e3 * 60 * 5 });
|
|
68
|
+
return this._jwks;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Loads a sealed session using the provided session data and cookie password.
|
|
72
|
+
*
|
|
73
|
+
* @param options - The options for loading the sealed session.
|
|
74
|
+
* @param options.sessionData - The sealed session data.
|
|
75
|
+
* @param options.cookiePassword - The password used to encrypt the session data.
|
|
76
|
+
* @returns The session class.
|
|
77
|
+
*/
|
|
78
|
+
loadSealedSession(options) {
|
|
79
|
+
return new require_session.CookieSession(this, options.sessionData, options.cookiePassword);
|
|
80
|
+
}
|
|
81
|
+
async getUser(userId) {
|
|
82
|
+
const { data } = await this.workos.get(`/user_management/users/${userId}`);
|
|
83
|
+
return require_user_serializer.deserializeUser(data);
|
|
84
|
+
}
|
|
85
|
+
async getUserByExternalId(externalId) {
|
|
86
|
+
const { data } = await this.workos.get(`/user_management/users/external_id/${externalId}`);
|
|
87
|
+
return require_user_serializer.deserializeUser(data);
|
|
88
|
+
}
|
|
89
|
+
async listUsers(options) {
|
|
90
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/user_management/users", require_user_serializer.deserializeUser, options ? require_list_users_options_serializer.serializeListUsersOptions(options) : void 0), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/user_management/users", require_user_serializer.deserializeUser, params), options ? require_list_users_options_serializer.serializeListUsersOptions(options) : void 0);
|
|
91
|
+
}
|
|
92
|
+
async createUser(payload) {
|
|
93
|
+
const { data } = await this.workos.post("/user_management/users", require_create_user_options_serializer.serializeCreateUserOptions(payload));
|
|
94
|
+
return require_user_serializer.deserializeUser(data);
|
|
95
|
+
}
|
|
96
|
+
async authenticateWithMagicAuth(payload) {
|
|
97
|
+
const { session, clientId, ...remainingPayload } = payload;
|
|
98
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
99
|
+
const { data } = await this.workos.post("/user_management/authenticate", require_authenticate_with_magic_auth_options_serializer.serializeAuthenticateWithMagicAuthOptions({
|
|
100
|
+
...remainingPayload,
|
|
101
|
+
clientId: resolvedClientId,
|
|
102
|
+
clientSecret: this.workos.key
|
|
103
|
+
}));
|
|
104
|
+
return this.prepareAuthenticationResponse({
|
|
105
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
106
|
+
session
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
async authenticateWithPassword(payload) {
|
|
110
|
+
const { session, clientId, ...remainingPayload } = payload;
|
|
111
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
112
|
+
const { data } = await this.workos.post("/user_management/authenticate", require_authenticate_with_password_options_serializer.serializeAuthenticateWithPasswordOptions({
|
|
113
|
+
...remainingPayload,
|
|
114
|
+
clientId: resolvedClientId,
|
|
115
|
+
clientSecret: this.workos.key
|
|
116
|
+
}));
|
|
117
|
+
return this.prepareAuthenticationResponse({
|
|
118
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
119
|
+
session
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Exchange an authorization code for tokens.
|
|
124
|
+
*
|
|
125
|
+
* Auto-detects public vs confidential client mode:
|
|
126
|
+
* - If codeVerifier is provided: Uses PKCE flow (public client)
|
|
127
|
+
* - If no codeVerifier: Uses client_secret from API key (confidential client)
|
|
128
|
+
* - If both: Uses both client_secret AND codeVerifier (confidential client with PKCE)
|
|
129
|
+
*
|
|
130
|
+
* Using PKCE with confidential clients is recommended by OAuth 2.1 for defense
|
|
131
|
+
* in depth and provides additional CSRF protection on the authorization flow.
|
|
132
|
+
*
|
|
133
|
+
* @throws Error if neither codeVerifier nor API key is available
|
|
134
|
+
*/
|
|
135
|
+
async authenticateWithCode(payload) {
|
|
136
|
+
const { session, clientId, codeVerifier, ...remainingPayload } = payload;
|
|
137
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
138
|
+
if (codeVerifier !== void 0 && codeVerifier.trim() === "") throw new TypeError("codeVerifier cannot be an empty string. Generate a valid PKCE pair using workos.pkce.generate().");
|
|
139
|
+
const hasApiKey = !!this.workos.key;
|
|
140
|
+
if (!!!codeVerifier && !hasApiKey) throw new TypeError("authenticateWithCode requires either a codeVerifier (for public clients) or an API key configured on the WorkOS instance (for confidential clients).");
|
|
141
|
+
const { data } = await this.workos.post("/user_management/authenticate", require_authenticate_with_code_options_serializer.serializeAuthenticateWithCodeOptions({
|
|
142
|
+
...remainingPayload,
|
|
143
|
+
clientId: resolvedClientId,
|
|
144
|
+
codeVerifier,
|
|
145
|
+
clientSecret: hasApiKey ? this.workos.key : void 0
|
|
146
|
+
}), { skipApiKeyCheck: !hasApiKey });
|
|
147
|
+
return this.prepareAuthenticationResponse({
|
|
148
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
149
|
+
session
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Exchange an authorization code for tokens using PKCE (public client flow).
|
|
154
|
+
* Use this instead of authenticateWithCode() when the client cannot securely
|
|
155
|
+
* store a client_secret (browser, mobile, CLI, desktop apps).
|
|
156
|
+
*
|
|
157
|
+
* @param payload.clientId - Your WorkOS client ID
|
|
158
|
+
* @param payload.code - The authorization code from the OAuth callback
|
|
159
|
+
* @param payload.codeVerifier - The PKCE code verifier used to generate the code challenge
|
|
160
|
+
*/
|
|
161
|
+
async authenticateWithCodeAndVerifier(payload) {
|
|
162
|
+
const { session, clientId, ...remainingPayload } = payload;
|
|
163
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
164
|
+
const { data } = await this.workos.post("/user_management/authenticate", require_authenticate_with_code_and_verifier_options_serializer.serializeAuthenticateWithCodeAndVerifierOptions({
|
|
165
|
+
...remainingPayload,
|
|
166
|
+
clientId: resolvedClientId
|
|
167
|
+
}), { skipApiKeyCheck: true });
|
|
168
|
+
return this.prepareAuthenticationResponse({
|
|
169
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
170
|
+
session
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Refresh an access token using a refresh token.
|
|
175
|
+
* Automatically detects public client mode - if no API key is configured,
|
|
176
|
+
* omits client_secret from the request.
|
|
177
|
+
*/
|
|
178
|
+
async authenticateWithRefreshToken(payload) {
|
|
179
|
+
const { session, clientId, ...remainingPayload } = payload;
|
|
180
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
181
|
+
const isPublicClient = !this.workos.key;
|
|
182
|
+
const body = isPublicClient ? require_authenticate_with_refresh_token_public_client_options_serializer.serializeAuthenticateWithRefreshTokenPublicClientOptions({
|
|
183
|
+
...remainingPayload,
|
|
184
|
+
clientId: resolvedClientId
|
|
185
|
+
}) : require_authenticate_with_refresh_token_options_serializer.serializeAuthenticateWithRefreshTokenOptions({
|
|
186
|
+
...remainingPayload,
|
|
187
|
+
clientId: resolvedClientId,
|
|
188
|
+
clientSecret: this.workos.key
|
|
189
|
+
});
|
|
190
|
+
const { data } = await this.workos.post("/user_management/authenticate", body, { skipApiKeyCheck: isPublicClient });
|
|
191
|
+
return this.prepareAuthenticationResponse({
|
|
192
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
193
|
+
session
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
async authenticateWithTotp(payload) {
|
|
197
|
+
const { session, clientId, ...remainingPayload } = payload;
|
|
198
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
199
|
+
const { data } = await this.workos.post("/user_management/authenticate", require_authenticate_with_totp_options_serializer.serializeAuthenticateWithTotpOptions({
|
|
200
|
+
...remainingPayload,
|
|
201
|
+
clientId: resolvedClientId,
|
|
202
|
+
clientSecret: this.workos.key
|
|
203
|
+
}));
|
|
204
|
+
return this.prepareAuthenticationResponse({
|
|
205
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
206
|
+
session
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
async authenticateWithEmailVerification(payload) {
|
|
210
|
+
const { session, clientId, ...remainingPayload } = payload;
|
|
211
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
212
|
+
const { data } = await this.workos.post("/user_management/authenticate", require_authenticate_with_email_verification_serializer.serializeAuthenticateWithEmailVerificationOptions({
|
|
213
|
+
...remainingPayload,
|
|
214
|
+
clientId: resolvedClientId,
|
|
215
|
+
clientSecret: this.workos.key
|
|
216
|
+
}));
|
|
217
|
+
return this.prepareAuthenticationResponse({
|
|
218
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
219
|
+
session
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
async authenticateWithOrganizationSelection(payload) {
|
|
223
|
+
const { session, clientId, ...remainingPayload } = payload;
|
|
224
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
225
|
+
const { data } = await this.workos.post("/user_management/authenticate", require_authenticate_with_organization_selection_options_serializer.serializeAuthenticateWithOrganizationSelectionOptions({
|
|
226
|
+
...remainingPayload,
|
|
227
|
+
clientId: resolvedClientId,
|
|
228
|
+
clientSecret: this.workos.key
|
|
229
|
+
}));
|
|
230
|
+
return this.prepareAuthenticationResponse({
|
|
231
|
+
authenticationResponse: require_authentication_response_serializer.deserializeAuthenticationResponse(data),
|
|
232
|
+
session
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
async authenticateWithSessionCookie({ sessionData, cookiePassword = require_env.getEnv("WORKOS_COOKIE_PASSWORD") }) {
|
|
236
|
+
if (!cookiePassword) throw new Error("Cookie password is required");
|
|
237
|
+
if (!await this.getJWKS()) throw new Error("Must provide clientId to initialize JWKS");
|
|
238
|
+
const { decodeJwt } = await require_jose.getJose();
|
|
239
|
+
if (!sessionData) return {
|
|
240
|
+
authenticated: false,
|
|
241
|
+
reason: require_authenticate_with_session_cookie_interface.AuthenticateWithSessionCookieFailureReason.NO_SESSION_COOKIE_PROVIDED
|
|
242
|
+
};
|
|
243
|
+
const session = await require_seal.unsealData(sessionData, { password: cookiePassword });
|
|
244
|
+
if (!session.accessToken) return {
|
|
245
|
+
authenticated: false,
|
|
246
|
+
reason: require_authenticate_with_session_cookie_interface.AuthenticateWithSessionCookieFailureReason.INVALID_SESSION_COOKIE
|
|
247
|
+
};
|
|
248
|
+
if (!await this.isValidJwt(session.accessToken)) return {
|
|
249
|
+
authenticated: false,
|
|
250
|
+
reason: require_authenticate_with_session_cookie_interface.AuthenticateWithSessionCookieFailureReason.INVALID_JWT
|
|
251
|
+
};
|
|
252
|
+
const { sid: sessionId, org_id: organizationId, role, roles, permissions, entitlements, feature_flags: featureFlags } = decodeJwt(session.accessToken);
|
|
253
|
+
return {
|
|
254
|
+
authenticated: true,
|
|
255
|
+
sessionId,
|
|
256
|
+
organizationId,
|
|
257
|
+
role,
|
|
258
|
+
roles,
|
|
259
|
+
user: session.user,
|
|
260
|
+
permissions,
|
|
261
|
+
entitlements,
|
|
262
|
+
featureFlags,
|
|
263
|
+
accessToken: session.accessToken,
|
|
264
|
+
authenticationMethod: session.authenticationMethod
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
async isValidJwt(accessToken) {
|
|
268
|
+
const jwks = await this.getJWKS();
|
|
269
|
+
const { jwtVerify } = await require_jose.getJose();
|
|
270
|
+
if (!jwks) throw new Error("Must provide clientId to initialize JWKS");
|
|
271
|
+
try {
|
|
272
|
+
await jwtVerify(accessToken, jwks);
|
|
273
|
+
return true;
|
|
274
|
+
} catch (e) {
|
|
275
|
+
if (e instanceof Error && "code" in e && typeof e.code === "string" && (e.code.startsWith("ERR_JWT_") || e.code.startsWith("ERR_JWS_"))) return false;
|
|
276
|
+
throw e;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
async prepareAuthenticationResponse({ authenticationResponse, session }) {
|
|
280
|
+
if (session?.sealSession) {
|
|
281
|
+
if (!this.workos.key) throw new Error("Session sealing requires server-side usage with an API key. Public clients should store tokens directly (e.g., secure storage on mobile, keychain on desktop).");
|
|
282
|
+
return {
|
|
283
|
+
...authenticationResponse,
|
|
284
|
+
sealedSession: await this.sealSessionDataFromAuthenticationResponse({
|
|
285
|
+
authenticationResponse,
|
|
286
|
+
cookiePassword: session.cookiePassword
|
|
287
|
+
})
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
return authenticationResponse;
|
|
291
|
+
}
|
|
292
|
+
async sealSessionDataFromAuthenticationResponse({ authenticationResponse, cookiePassword }) {
|
|
293
|
+
if (!cookiePassword) throw new Error("Cookie password is required");
|
|
294
|
+
const { decodeJwt } = await require_jose.getJose();
|
|
295
|
+
const { org_id: organizationIdFromAccessToken } = decodeJwt(authenticationResponse.accessToken);
|
|
296
|
+
return require_seal.sealData({
|
|
297
|
+
organizationId: organizationIdFromAccessToken,
|
|
298
|
+
user: authenticationResponse.user,
|
|
299
|
+
accessToken: authenticationResponse.accessToken,
|
|
300
|
+
refreshToken: authenticationResponse.refreshToken,
|
|
301
|
+
authenticationMethod: authenticationResponse.authenticationMethod,
|
|
302
|
+
impersonator: authenticationResponse.impersonator
|
|
303
|
+
}, { password: cookiePassword });
|
|
304
|
+
}
|
|
305
|
+
async getSessionFromCookie({ sessionData, cookiePassword = require_env.getEnv("WORKOS_COOKIE_PASSWORD") }) {
|
|
306
|
+
if (!cookiePassword) throw new Error("Cookie password is required");
|
|
307
|
+
if (sessionData) return require_seal.unsealData(sessionData, { password: cookiePassword });
|
|
308
|
+
}
|
|
309
|
+
async getEmailVerification(emailVerificationId) {
|
|
310
|
+
const { data } = await this.workos.get(`/user_management/email_verification/${emailVerificationId}`);
|
|
311
|
+
return require_email_verification_serializer.deserializeEmailVerification(data);
|
|
312
|
+
}
|
|
313
|
+
async sendVerificationEmail({ userId }) {
|
|
314
|
+
const { data } = await this.workos.post(`/user_management/users/${userId}/email_verification/send`, {});
|
|
315
|
+
return { user: require_user_serializer.deserializeUser(data.user) };
|
|
316
|
+
}
|
|
317
|
+
async getMagicAuth(magicAuthId) {
|
|
318
|
+
const { data } = await this.workos.get(`/user_management/magic_auth/${magicAuthId}`);
|
|
319
|
+
return require_magic_auth_serializer.deserializeMagicAuth(data);
|
|
320
|
+
}
|
|
321
|
+
async createMagicAuth(options) {
|
|
322
|
+
const { data } = await this.workos.post("/user_management/magic_auth", require_create_magic_auth_options_serializer.serializeCreateMagicAuthOptions({ ...options }));
|
|
323
|
+
return require_magic_auth_serializer.deserializeMagicAuth(data);
|
|
324
|
+
}
|
|
325
|
+
async verifyEmail({ code, userId }) {
|
|
326
|
+
const { data } = await this.workos.post(`/user_management/users/${userId}/email_verification/confirm`, { code });
|
|
327
|
+
return { user: require_user_serializer.deserializeUser(data.user) };
|
|
328
|
+
}
|
|
329
|
+
async getPasswordReset(passwordResetId) {
|
|
330
|
+
const { data } = await this.workos.get(`/user_management/password_reset/${passwordResetId}`);
|
|
331
|
+
return require_password_reset_serializer.deserializePasswordReset(data);
|
|
332
|
+
}
|
|
333
|
+
async createPasswordReset(options) {
|
|
334
|
+
const { data } = await this.workos.post("/user_management/password_reset", require_create_password_reset_options_serializer.serializeCreatePasswordResetOptions({ ...options }));
|
|
335
|
+
return require_password_reset_serializer.deserializePasswordReset(data);
|
|
336
|
+
}
|
|
337
|
+
async resetPassword(payload) {
|
|
338
|
+
const { data } = await this.workos.post("/user_management/password_reset/confirm", require_reset_password_options_serializer.serializeResetPasswordOptions(payload));
|
|
339
|
+
return { user: require_user_serializer.deserializeUser(data.user) };
|
|
340
|
+
}
|
|
341
|
+
async updateUser(payload) {
|
|
342
|
+
const { data } = await this.workos.put(`/user_management/users/${payload.userId}`, require_update_user_options_serializer.serializeUpdateUserOptions(payload));
|
|
343
|
+
return require_user_serializer.deserializeUser(data);
|
|
344
|
+
}
|
|
345
|
+
async enrollAuthFactor(payload) {
|
|
346
|
+
const { data } = await this.workos.post(`/user_management/users/${payload.userId}/auth_factors`, require_enroll_auth_factor_options_serializer.serializeEnrollAuthFactorOptions(payload));
|
|
347
|
+
return {
|
|
348
|
+
authenticationFactor: require_factor_serializer.deserializeFactorWithSecrets(data.authentication_factor),
|
|
349
|
+
authenticationChallenge: require_challenge_serializer.deserializeChallenge(data.authentication_challenge)
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
async listAuthFactors(options) {
|
|
353
|
+
const { userId, ...restOfOptions } = options;
|
|
354
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/user_management/users/${userId}/auth_factors`, require_factor_serializer.deserializeFactor, restOfOptions), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/user_management/users/${userId}/auth_factors`, require_factor_serializer.deserializeFactor, params), restOfOptions);
|
|
355
|
+
}
|
|
356
|
+
async listUserFeatureFlags(options) {
|
|
357
|
+
const { userId, ...paginationOptions } = options;
|
|
358
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/user_management/users/${userId}/feature-flags`, require_feature_flag_serializer.deserializeFeatureFlag, paginationOptions), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/user_management/users/${userId}/feature-flags`, require_feature_flag_serializer.deserializeFeatureFlag, params), paginationOptions);
|
|
359
|
+
}
|
|
360
|
+
async listSessions(userId, options) {
|
|
361
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/user_management/users/${userId}/sessions`, require_session_serializer.deserializeSession, options ? require_list_sessions_options_serializer.serializeListSessionsOptions(options) : void 0), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/user_management/users/${userId}/sessions`, require_session_serializer.deserializeSession, params), options ? require_list_sessions_options_serializer.serializeListSessionsOptions(options) : void 0);
|
|
362
|
+
}
|
|
363
|
+
async deleteUser(userId) {
|
|
364
|
+
await this.workos.delete(`/user_management/users/${userId}`);
|
|
365
|
+
}
|
|
366
|
+
async getUserIdentities(userId) {
|
|
367
|
+
if (!userId) throw new TypeError(`Incomplete arguments. Need to specify 'userId'.`);
|
|
368
|
+
const { data } = await this.workos.get(`/user_management/users/${userId}/identities`);
|
|
369
|
+
return require_identity_serializer.deserializeIdentities(data);
|
|
370
|
+
}
|
|
371
|
+
async getOrganizationMembership(organizationMembershipId) {
|
|
372
|
+
const { data } = await this.workos.get(`/user_management/organization_memberships/${organizationMembershipId}`);
|
|
373
|
+
return require_organization_membership_serializer.deserializeOrganizationMembership(data);
|
|
374
|
+
}
|
|
375
|
+
async listOrganizationMemberships(options) {
|
|
376
|
+
const serializedOptions = require_list_organization_memberships_options_serializer.serializeListOrganizationMembershipsOptions(options);
|
|
377
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/user_management/organization_memberships", require_organization_membership_serializer.deserializeOrganizationMembership, serializedOptions), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/user_management/organization_memberships", require_organization_membership_serializer.deserializeOrganizationMembership, params), serializedOptions);
|
|
378
|
+
}
|
|
379
|
+
async createOrganizationMembership(options) {
|
|
380
|
+
const { data } = await this.workos.post("/user_management/organization_memberships", require_create_organization_membership_options_serializer.serializeCreateOrganizationMembershipOptions(options));
|
|
381
|
+
return require_organization_membership_serializer.deserializeOrganizationMembership(data);
|
|
382
|
+
}
|
|
383
|
+
async updateOrganizationMembership(organizationMembershipId, options) {
|
|
384
|
+
const { data } = await this.workos.put(`/user_management/organization_memberships/${organizationMembershipId}`, require_update_organization_membership_options_serializer.serializeUpdateOrganizationMembershipOptions(options));
|
|
385
|
+
return require_organization_membership_serializer.deserializeOrganizationMembership(data);
|
|
386
|
+
}
|
|
387
|
+
async deleteOrganizationMembership(organizationMembershipId) {
|
|
388
|
+
await this.workos.delete(`/user_management/organization_memberships/${organizationMembershipId}`);
|
|
389
|
+
}
|
|
390
|
+
async deactivateOrganizationMembership(organizationMembershipId) {
|
|
391
|
+
const { data } = await this.workos.put(`/user_management/organization_memberships/${organizationMembershipId}/deactivate`, {});
|
|
392
|
+
return require_organization_membership_serializer.deserializeOrganizationMembership(data);
|
|
393
|
+
}
|
|
394
|
+
async reactivateOrganizationMembership(organizationMembershipId) {
|
|
395
|
+
const { data } = await this.workos.put(`/user_management/organization_memberships/${organizationMembershipId}/reactivate`, {});
|
|
396
|
+
return require_organization_membership_serializer.deserializeOrganizationMembership(data);
|
|
397
|
+
}
|
|
398
|
+
async getInvitation(invitationId) {
|
|
399
|
+
const { data } = await this.workos.get(`/user_management/invitations/${invitationId}`);
|
|
400
|
+
return require_invitation_serializer.deserializeInvitation(data);
|
|
401
|
+
}
|
|
402
|
+
async findInvitationByToken(invitationToken) {
|
|
403
|
+
const { data } = await this.workos.get(`/user_management/invitations/by_token/${invitationToken}`);
|
|
404
|
+
return require_invitation_serializer.deserializeInvitation(data);
|
|
405
|
+
}
|
|
406
|
+
async listInvitations(options) {
|
|
407
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/user_management/invitations", require_invitation_serializer.deserializeInvitation, options ? require_list_invitations_options_serializer.serializeListInvitationsOptions(options) : void 0), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/user_management/invitations", require_invitation_serializer.deserializeInvitation, params), options ? require_list_invitations_options_serializer.serializeListInvitationsOptions(options) : void 0);
|
|
408
|
+
}
|
|
409
|
+
async sendInvitation(payload) {
|
|
410
|
+
const { data } = await this.workos.post("/user_management/invitations", require_send_invitation_options_serializer.serializeSendInvitationOptions({ ...payload }));
|
|
411
|
+
return require_invitation_serializer.deserializeInvitation(data);
|
|
412
|
+
}
|
|
413
|
+
async acceptInvitation(invitationId) {
|
|
414
|
+
const { data } = await this.workos.post(`/user_management/invitations/${invitationId}/accept`, null);
|
|
415
|
+
return require_invitation_serializer.deserializeInvitation(data);
|
|
416
|
+
}
|
|
417
|
+
async revokeInvitation(invitationId) {
|
|
418
|
+
const { data } = await this.workos.post(`/user_management/invitations/${invitationId}/revoke`, null);
|
|
419
|
+
return require_invitation_serializer.deserializeInvitation(data);
|
|
420
|
+
}
|
|
421
|
+
async resendInvitation(invitationId, options) {
|
|
422
|
+
const { data } = await this.workos.post(`/user_management/invitations/${invitationId}/resend`, options ? require_resend_invitation_options_serializer.serializeResendInvitationOptions(options) : {});
|
|
423
|
+
return require_invitation_serializer.deserializeInvitation(data);
|
|
424
|
+
}
|
|
425
|
+
async revokeSession(payload) {
|
|
426
|
+
await this.workos.post("/user_management/sessions/revoke", require_revoke_session_options_interface.serializeRevokeSessionOptions(payload));
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Generate an OAuth 2.0 authorization URL.
|
|
430
|
+
*
|
|
431
|
+
* For public clients (browser, mobile, CLI), include PKCE parameters:
|
|
432
|
+
* - Generate PKCE using workos.pkce.generate()
|
|
433
|
+
* - Pass codeChallenge and codeChallengeMethod here
|
|
434
|
+
* - Store codeVerifier and pass to authenticateWithCode() later
|
|
435
|
+
*
|
|
436
|
+
* Or use getAuthorizationUrlWithPKCE() which handles PKCE automatically.
|
|
437
|
+
*/
|
|
438
|
+
getAuthorizationUrl(options) {
|
|
439
|
+
const { connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, state, screenHint } = options;
|
|
440
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
441
|
+
if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
|
|
442
|
+
if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
|
|
443
|
+
const query = require_query_string.toQueryString({
|
|
444
|
+
connection_id: connectionId,
|
|
445
|
+
code_challenge: codeChallenge,
|
|
446
|
+
code_challenge_method: codeChallengeMethod,
|
|
447
|
+
organization_id: organizationId,
|
|
448
|
+
domain_hint: domainHint,
|
|
449
|
+
login_hint: loginHint,
|
|
450
|
+
provider,
|
|
451
|
+
provider_query_params: providerQueryParams,
|
|
452
|
+
provider_scopes: providerScopes,
|
|
453
|
+
prompt,
|
|
454
|
+
client_id: resolvedClientId,
|
|
455
|
+
redirect_uri: redirectUri,
|
|
456
|
+
response_type: "code",
|
|
457
|
+
state,
|
|
458
|
+
screen_hint: screenHint
|
|
459
|
+
});
|
|
460
|
+
return `${this.workos.baseURL}/user_management/authorize?${query}`;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Generate an OAuth 2.0 authorization URL with automatic PKCE.
|
|
464
|
+
*
|
|
465
|
+
* This method generates PKCE parameters internally and returns them along with
|
|
466
|
+
* the authorization URL. Use this for public clients (CLI apps, Electron, mobile)
|
|
467
|
+
* that cannot securely store a client secret.
|
|
468
|
+
*
|
|
469
|
+
* @returns Object containing url, state, and codeVerifier
|
|
470
|
+
*
|
|
471
|
+
* @example
|
|
472
|
+
* ```typescript
|
|
473
|
+
* const { url, state, codeVerifier } = await workos.userManagement.getAuthorizationUrlWithPKCE({
|
|
474
|
+
* provider: 'authkit',
|
|
475
|
+
* clientId: 'client_123',
|
|
476
|
+
* redirectUri: 'myapp://callback',
|
|
477
|
+
* });
|
|
478
|
+
*
|
|
479
|
+
* // Store state and codeVerifier securely, then redirect user to url
|
|
480
|
+
* // After callback, exchange the code:
|
|
481
|
+
* const response = await workos.userManagement.authenticateWithCode({
|
|
482
|
+
* code: authorizationCode,
|
|
483
|
+
* codeVerifier,
|
|
484
|
+
* clientId: 'client_123',
|
|
485
|
+
* });
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
async getAuthorizationUrlWithPKCE(options) {
|
|
489
|
+
const { clientId, connectionId, domainHint, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, screenHint } = options;
|
|
490
|
+
const resolvedClientId = this.resolveClientId(clientId);
|
|
491
|
+
if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
|
|
492
|
+
if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
|
|
493
|
+
const pkce = await this.workos.pkce.generate();
|
|
494
|
+
const state = this.workos.pkce.generateCodeVerifier(43);
|
|
495
|
+
const query = require_query_string.toQueryString({
|
|
496
|
+
connection_id: connectionId,
|
|
497
|
+
code_challenge: pkce.codeChallenge,
|
|
498
|
+
code_challenge_method: "S256",
|
|
499
|
+
organization_id: organizationId,
|
|
500
|
+
domain_hint: domainHint,
|
|
501
|
+
login_hint: loginHint,
|
|
502
|
+
provider,
|
|
503
|
+
provider_query_params: providerQueryParams,
|
|
504
|
+
provider_scopes: providerScopes,
|
|
505
|
+
prompt,
|
|
506
|
+
client_id: resolvedClientId,
|
|
507
|
+
redirect_uri: redirectUri,
|
|
508
|
+
response_type: "code",
|
|
509
|
+
state,
|
|
510
|
+
screen_hint: screenHint
|
|
511
|
+
});
|
|
512
|
+
return {
|
|
513
|
+
url: `${this.workos.baseURL}/user_management/authorize?${query}`,
|
|
514
|
+
state,
|
|
515
|
+
codeVerifier: pkce.codeVerifier
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
getLogoutUrl(options) {
|
|
519
|
+
const { sessionId, returnTo } = options;
|
|
520
|
+
if (!sessionId) throw new TypeError(`Incomplete arguments. Need to specify 'sessionId'.`);
|
|
521
|
+
const url = new URL("/user_management/sessions/logout", this.workos.baseURL);
|
|
522
|
+
url.searchParams.set("session_id", sessionId);
|
|
523
|
+
if (returnTo) url.searchParams.set("return_to", returnTo);
|
|
524
|
+
return url.toString();
|
|
525
|
+
}
|
|
526
|
+
getJwksUrl(clientId) {
|
|
527
|
+
if (!clientId) throw new TypeError("clientId must be a valid clientId");
|
|
528
|
+
return `${this.workos.baseURL}/sso/jwks/${clientId}`;
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
//#endregion
|
|
533
|
+
Object.defineProperty(exports, 'UserManagement', {
|
|
534
|
+
enumerable: true,
|
|
535
|
+
get: function () {
|
|
536
|
+
return UserManagement;
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
//# sourceMappingURL=user-management-DCbkjgk8.cjs.map
|