@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-management-B-wNbU8Q.cjs","names":["workos: WorkOS","getJose","CookieSession","deserializeUser","AutoPaginatable","fetchAndDeserialize","serializeListUsersOptions","serializeCreateUserOptions","serializeAuthenticateWithMagicAuthOptions","deserializeAuthenticationResponse","serializeAuthenticateWithPasswordOptions","serializeAuthenticateWithCodeOptions","serializeAuthenticateWithCodeAndVerifierOptions","serializeAuthenticateWithRefreshTokenPublicClientOptions","serializeAuthenticateWithRefreshTokenOptions","serializeAuthenticateWithTotpOptions","serializeAuthenticateWithEmailVerificationOptions","serializeAuthenticateWithOrganizationSelectionOptions","getEnv","AuthenticateWithSessionCookieFailureReason","unsealData","sealData","deserializeEmailVerification","deserializeMagicAuth","serializeCreateMagicAuthOptions","deserializePasswordReset","serializeCreatePasswordResetOptions","serializeResetPasswordOptions","serializeUpdateUserOptions","serializeEnrollAuthFactorOptions","deserializeFactorWithSecrets","deserializeChallenge","deserializeFactor","deserializeFeatureFlag","deserializeSession","serializeListSessionsOptions","deserializeIdentities","deserializeOrganizationMembership","serializeListOrganizationMembershipsOptions","serializeCreateOrganizationMembershipOptions","serializeUpdateOrganizationMembershipOptions","deserializeInvitation","serializeListInvitationsOptions","serializeSendInvitationOptions","serializeRevokeSessionOptions","toQueryString"],"sources":["../src/user-management/user-management.ts"],"sourcesContent":["import { sealData, unsealData } from '../common/crypto/seal';\nimport { PaginationOptions } from '../common/interfaces/pagination-options.interface';\nimport { fetchAndDeserialize } from '../common/utils/fetch-and-deserialize';\nimport { AutoPaginatable } from '../common/utils/pagination';\nimport { getEnv } from '../common/utils/env';\nimport { toQueryString } from '../common/utils/query-string';\nimport { Challenge, ChallengeResponse } from '../mfa/interfaces';\nimport { deserializeChallenge } from '../mfa/serializers';\nimport {\n FeatureFlag,\n FeatureFlagResponse,\n} from '../feature-flags/interfaces/feature-flag.interface';\nimport { deserializeFeatureFlag } from '../feature-flags/serializers';\nimport { WorkOS } from '../workos';\nimport {\n AuthenticateWithCodeAndVerifierOptions,\n AuthenticateWithCodeOptions,\n AuthenticateWithMagicAuthOptions,\n AuthenticateWithPasswordOptions,\n AuthenticateWithRefreshTokenOptions,\n AuthenticateWithSessionOptions,\n AuthenticateWithTotpOptions,\n AuthenticationResponse,\n AuthenticationResponseResponse,\n CreateMagicAuthOptions,\n CreatePasswordResetOptions,\n CreateUserOptions,\n EmailVerification,\n EmailVerificationResponse,\n EnrollAuthFactorOptions,\n ListAuthFactorsOptions,\n ListSessionsOptions,\n ListUsersOptions,\n ListUserFeatureFlagsOptions,\n LogoutURLOptions,\n MagicAuth,\n MagicAuthResponse,\n PasswordReset,\n PasswordResetResponse,\n ResetPasswordOptions,\n SendVerificationEmailOptions,\n SerializedAuthenticateWithCodeAndVerifierOptions,\n SerializedAuthenticateWithCodeOptions,\n SerializedAuthenticateWithMagicAuthOptions,\n SerializedAuthenticateWithPasswordOptions,\n SerializedAuthenticateWithRefreshTokenOptions,\n SerializedAuthenticateWithRefreshTokenPublicClientOptions,\n SerializedAuthenticateWithTotpOptions,\n SerializedCreateMagicAuthOptions,\n SerializedCreatePasswordResetOptions,\n SerializedCreateUserOptions,\n SerializedListSessionsOptions,\n SerializedListUsersOptions,\n SerializedResetPasswordOptions,\n SerializedVerifyEmailOptions,\n Session,\n SessionResponse,\n UpdateUserOptions,\n User,\n UserResponse,\n VerifyEmailOptions,\n} from './interfaces';\nimport {\n AuthenticateWithEmailVerificationOptions,\n SerializedAuthenticateWithEmailVerificationOptions,\n} from './interfaces/authenticate-with-email-verification-options.interface';\nimport {\n AuthenticateWithOrganizationSelectionOptions,\n SerializedAuthenticateWithOrganizationSelectionOptions,\n} from './interfaces/authenticate-with-organization-selection.interface';\nimport {\n AccessToken,\n AuthenticateWithSessionCookieFailedResponse,\n AuthenticateWithSessionCookieFailureReason,\n AuthenticateWithSessionCookieOptions,\n AuthenticateWithSessionCookieSuccessResponse,\n SessionCookieData,\n} from './interfaces/authenticate-with-session-cookie.interface';\nimport {\n PKCEAuthorizationURLResult,\n UserManagementAuthorizationURLOptions,\n} from './interfaces/authorization-url-options.interface';\nimport {\n CreateOrganizationMembershipOptions,\n SerializedCreateOrganizationMembershipOptions,\n} from './interfaces/create-organization-membership-options.interface';\nimport {\n Factor,\n FactorResponse,\n FactorWithSecrets,\n FactorWithSecretsResponse,\n} from './interfaces/factor.interface';\nimport { Identity, IdentityResponse } from './interfaces/identity.interface';\nimport {\n Invitation,\n InvitationResponse,\n} from './interfaces/invitation.interface';\nimport {\n ListInvitationsOptions,\n SerializedListInvitationsOptions,\n} from './interfaces/list-invitations-options.interface';\nimport {\n ListOrganizationMembershipsOptions,\n SerializedListOrganizationMembershipsOptions,\n} from './interfaces/list-organization-memberships-options.interface';\nimport {\n OrganizationMembership,\n OrganizationMembershipResponse,\n} from './interfaces/organization-membership.interface';\nimport {\n RevokeSessionOptions,\n SerializedRevokeSessionOptions,\n serializeRevokeSessionOptions,\n} from './interfaces/revoke-session-options.interface';\nimport {\n SendInvitationOptions,\n SerializedSendInvitationOptions,\n} from './interfaces/send-invitation-options.interface';\nimport { SessionHandlerOptions } from './interfaces/session-handler-options.interface';\nimport {\n SerializedUpdateOrganizationMembershipOptions,\n UpdateOrganizationMembershipOptions,\n} from './interfaces/update-organization-membership-options.interface';\nimport {\n deserializeAuthenticationResponse,\n deserializeEmailVerification,\n deserializeFactorWithSecrets,\n deserializeMagicAuth,\n deserializePasswordReset,\n deserializeSession,\n deserializeUser,\n serializeAuthenticateWithCodeAndVerifierOptions,\n serializeAuthenticateWithCodeOptions,\n serializeAuthenticateWithMagicAuthOptions,\n serializeAuthenticateWithPasswordOptions,\n serializeAuthenticateWithRefreshTokenOptions,\n serializeAuthenticateWithRefreshTokenPublicClientOptions,\n serializeAuthenticateWithTotpOptions,\n serializeCreateMagicAuthOptions,\n serializeCreatePasswordResetOptions,\n serializeCreateUserOptions,\n serializeEnrollAuthFactorOptions,\n serializeListSessionsOptions,\n serializeResetPasswordOptions,\n serializeUpdateUserOptions,\n} from './serializers';\nimport { serializeAuthenticateWithEmailVerificationOptions } from './serializers/authenticate-with-email-verification.serializer';\nimport { serializeAuthenticateWithOrganizationSelectionOptions } from './serializers/authenticate-with-organization-selection-options.serializer';\nimport { serializeCreateOrganizationMembershipOptions } from './serializers/create-organization-membership-options.serializer';\nimport { deserializeFactor } from './serializers/factor.serializer';\nimport { deserializeIdentities } from './serializers/identity.serializer';\nimport { deserializeInvitation } from './serializers/invitation.serializer';\nimport { serializeListInvitationsOptions } from './serializers/list-invitations-options.serializer';\nimport { serializeListOrganizationMembershipsOptions } from './serializers/list-organization-memberships-options.serializer';\nimport { serializeListUsersOptions } from './serializers/list-users-options.serializer';\nimport { deserializeOrganizationMembership } from './serializers/organization-membership.serializer';\nimport { serializeSendInvitationOptions } from './serializers/send-invitation-options.serializer';\nimport { serializeUpdateOrganizationMembershipOptions } from './serializers/update-organization-membership-options.serializer';\nimport { CookieSession } from './session';\nimport { getJose } from '../utils/jose';\n\nexport class UserManagement {\n private _jwks:\n | ReturnType<typeof import('jose').createRemoteJWKSet>\n | undefined;\n public clientId: string | undefined;\n\n constructor(private readonly workos: WorkOS) {\n const { clientId } = workos.options;\n\n this.clientId = clientId;\n }\n\n /**\n * Resolve clientId from method options or fall back to constructor-provided value.\n * @throws TypeError if clientId is not available from either source\n */\n private resolveClientId(clientId?: string): string {\n const resolved = clientId ?? this.clientId;\n if (!resolved) {\n throw new TypeError(\n 'clientId is required. Provide it in method options or when initializing WorkOS.',\n );\n }\n return resolved;\n }\n\n async getJWKS(): Promise<\n ReturnType<typeof import('jose').createRemoteJWKSet> | undefined\n > {\n const { createRemoteJWKSet } = await getJose();\n if (!this.clientId) {\n return;\n }\n\n // Set the JWKS URL. This is used to verify if the JWT is still valid\n this._jwks ??= createRemoteJWKSet(new URL(this.getJwksUrl(this.clientId)), {\n cooldownDuration: 1000 * 60 * 5,\n });\n\n return this._jwks;\n }\n\n /**\n * Loads a sealed session using the provided session data and cookie password.\n *\n * @param options - The options for loading the sealed session.\n * @param options.sessionData - The sealed session data.\n * @param options.cookiePassword - The password used to encrypt the session data.\n * @returns The session class.\n */\n loadSealedSession(options: {\n sessionData: string;\n cookiePassword: string;\n }): CookieSession {\n return new CookieSession(this, options.sessionData, options.cookiePassword);\n }\n\n async getUser(userId: string): Promise<User> {\n const { data } = await this.workos.get<UserResponse>(\n `/user_management/users/${userId}`,\n );\n\n return deserializeUser(data);\n }\n\n async getUserByExternalId(externalId: string): Promise<User> {\n const { data } = await this.workos.get<UserResponse>(\n `/user_management/users/external_id/${externalId}`,\n );\n\n return deserializeUser(data);\n }\n\n async listUsers(\n options?: ListUsersOptions,\n ): Promise<AutoPaginatable<User, SerializedListUsersOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<UserResponse, User>(\n this.workos,\n '/user_management/users',\n deserializeUser,\n options ? serializeListUsersOptions(options) : undefined,\n ),\n (params) =>\n fetchAndDeserialize<UserResponse, User>(\n this.workos,\n '/user_management/users',\n deserializeUser,\n params,\n ),\n options ? serializeListUsersOptions(options) : undefined,\n );\n }\n\n async createUser(payload: CreateUserOptions): Promise<User> {\n const { data } = await this.workos.post<\n UserResponse,\n SerializedCreateUserOptions\n >('/user_management/users', serializeCreateUserOptions(payload));\n\n return deserializeUser(data);\n }\n\n async authenticateWithMagicAuth(\n payload: AuthenticateWithMagicAuthOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n SerializedAuthenticateWithMagicAuthOptions\n >(\n '/user_management/authenticate',\n serializeAuthenticateWithMagicAuthOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n clientSecret: this.workos.key,\n }),\n );\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n async authenticateWithPassword(\n payload: AuthenticateWithPasswordOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n SerializedAuthenticateWithPasswordOptions\n >(\n '/user_management/authenticate',\n serializeAuthenticateWithPasswordOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n clientSecret: this.workos.key,\n }),\n );\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n /**\n * Exchange an authorization code for tokens.\n *\n * Auto-detects public vs confidential client mode:\n * - If codeVerifier is provided: Uses PKCE flow (public client)\n * - If no codeVerifier: Uses client_secret from API key (confidential client)\n * - If both: Uses both client_secret AND codeVerifier (confidential client with PKCE)\n *\n * Using PKCE with confidential clients is recommended by OAuth 2.1 for defense\n * in depth and provides additional CSRF protection on the authorization flow.\n *\n * @throws Error if neither codeVerifier nor API key is available\n */\n async authenticateWithCode(\n payload: AuthenticateWithCodeOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, codeVerifier, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n\n // Validate codeVerifier is not an empty string (common mistake)\n if (codeVerifier !== undefined && codeVerifier.trim() === '') {\n throw new TypeError(\n 'codeVerifier cannot be an empty string. ' +\n 'Generate a valid PKCE pair using workos.pkce.generate().',\n );\n }\n\n const hasApiKey = !!this.workos.key;\n const hasPKCE = !!codeVerifier;\n\n if (!hasPKCE && !hasApiKey) {\n throw new TypeError(\n 'authenticateWithCode requires either a codeVerifier (for public clients) ' +\n 'or an API key configured on the WorkOS instance (for confidential clients).',\n );\n }\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n SerializedAuthenticateWithCodeOptions\n >(\n '/user_management/authenticate',\n serializeAuthenticateWithCodeOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n codeVerifier,\n clientSecret: hasApiKey ? this.workos.key : undefined,\n }),\n { skipApiKeyCheck: !hasApiKey },\n );\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n /**\n * Exchange an authorization code for tokens using PKCE (public client flow).\n * Use this instead of authenticateWithCode() when the client cannot securely\n * store a client_secret (browser, mobile, CLI, desktop apps).\n *\n * @param payload.clientId - Your WorkOS client ID\n * @param payload.code - The authorization code from the OAuth callback\n * @param payload.codeVerifier - The PKCE code verifier used to generate the code challenge\n */\n async authenticateWithCodeAndVerifier(\n payload: AuthenticateWithCodeAndVerifierOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n SerializedAuthenticateWithCodeAndVerifierOptions\n >(\n '/user_management/authenticate',\n serializeAuthenticateWithCodeAndVerifierOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n }),\n { skipApiKeyCheck: true },\n );\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n /**\n * Refresh an access token using a refresh token.\n * Automatically detects public client mode - if no API key is configured,\n * omits client_secret from the request.\n */\n async authenticateWithRefreshToken(\n payload: AuthenticateWithRefreshTokenOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n const isPublicClient = !this.workos.key;\n\n const body = isPublicClient\n ? serializeAuthenticateWithRefreshTokenPublicClientOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n })\n : serializeAuthenticateWithRefreshTokenOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n clientSecret: this.workos.key,\n });\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n | SerializedAuthenticateWithRefreshTokenOptions\n | SerializedAuthenticateWithRefreshTokenPublicClientOptions\n >('/user_management/authenticate', body, {\n skipApiKeyCheck: isPublicClient,\n });\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n async authenticateWithTotp(\n payload: AuthenticateWithTotpOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n SerializedAuthenticateWithTotpOptions\n >(\n '/user_management/authenticate',\n serializeAuthenticateWithTotpOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n clientSecret: this.workos.key,\n }),\n );\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n async authenticateWithEmailVerification(\n payload: AuthenticateWithEmailVerificationOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n SerializedAuthenticateWithEmailVerificationOptions\n >(\n '/user_management/authenticate',\n serializeAuthenticateWithEmailVerificationOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n clientSecret: this.workos.key,\n }),\n );\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n async authenticateWithOrganizationSelection(\n payload: AuthenticateWithOrganizationSelectionOptions,\n ): Promise<AuthenticationResponse> {\n const { session, clientId, ...remainingPayload } = payload;\n const resolvedClientId = this.resolveClientId(clientId);\n\n const { data } = await this.workos.post<\n AuthenticationResponseResponse,\n SerializedAuthenticateWithOrganizationSelectionOptions\n >(\n '/user_management/authenticate',\n serializeAuthenticateWithOrganizationSelectionOptions({\n ...remainingPayload,\n clientId: resolvedClientId,\n clientSecret: this.workos.key,\n }),\n );\n\n return this.prepareAuthenticationResponse({\n authenticationResponse: deserializeAuthenticationResponse(data),\n session,\n });\n }\n\n async authenticateWithSessionCookie({\n sessionData,\n cookiePassword = getEnv('WORKOS_COOKIE_PASSWORD'),\n }: AuthenticateWithSessionCookieOptions): Promise<\n | AuthenticateWithSessionCookieSuccessResponse\n | AuthenticateWithSessionCookieFailedResponse\n > {\n if (!cookiePassword) {\n throw new Error('Cookie password is required');\n }\n\n const jwks = await this.getJWKS();\n\n if (!jwks) {\n throw new Error('Must provide clientId to initialize JWKS');\n }\n\n const { decodeJwt } = await getJose();\n\n if (!sessionData) {\n return {\n authenticated: false,\n reason:\n AuthenticateWithSessionCookieFailureReason.NO_SESSION_COOKIE_PROVIDED,\n };\n }\n\n const session = await unsealData<SessionCookieData>(sessionData, {\n password: cookiePassword,\n });\n\n if (!session.accessToken) {\n return {\n authenticated: false,\n reason:\n AuthenticateWithSessionCookieFailureReason.INVALID_SESSION_COOKIE,\n };\n }\n\n if (!(await this.isValidJwt(session.accessToken))) {\n return {\n authenticated: false,\n reason: AuthenticateWithSessionCookieFailureReason.INVALID_JWT,\n };\n }\n\n const {\n sid: sessionId,\n org_id: organizationId,\n role,\n roles,\n permissions,\n entitlements,\n feature_flags: featureFlags,\n } = decodeJwt<AccessToken>(session.accessToken);\n\n return {\n authenticated: true,\n sessionId,\n organizationId,\n role,\n roles,\n user: session.user,\n permissions,\n entitlements,\n featureFlags,\n accessToken: session.accessToken,\n authenticationMethod: session.authenticationMethod,\n };\n }\n\n private async isValidJwt(accessToken: string): Promise<boolean> {\n const jwks = await this.getJWKS();\n const { jwtVerify } = await getJose();\n if (!jwks) {\n throw new Error('Must provide clientId to initialize JWKS');\n }\n\n try {\n await jwtVerify(accessToken, jwks);\n return true;\n } catch (e) {\n // Only treat as invalid JWT if it's an actual JWT/JWS error from jose\n // Network errors, crypto failures, etc. should propagate\n if (\n e instanceof Error &&\n 'code' in e &&\n typeof e.code === 'string' &&\n (e.code.startsWith('ERR_JWT_') || e.code.startsWith('ERR_JWS_'))\n ) {\n return false;\n }\n throw e;\n }\n }\n\n private async prepareAuthenticationResponse({\n authenticationResponse,\n session,\n }: {\n authenticationResponse: AuthenticationResponse;\n session?: AuthenticateWithSessionOptions;\n }): Promise<AuthenticationResponse> {\n if (session?.sealSession) {\n if (!this.workos.key) {\n throw new Error(\n 'Session sealing requires server-side usage with an API key. ' +\n 'Public clients should store tokens directly ' +\n '(e.g., secure storage on mobile, keychain on desktop).',\n );\n }\n\n return {\n ...authenticationResponse,\n sealedSession: await this.sealSessionDataFromAuthenticationResponse({\n authenticationResponse,\n cookiePassword: session.cookiePassword,\n }),\n };\n }\n\n return authenticationResponse;\n }\n\n private async sealSessionDataFromAuthenticationResponse({\n authenticationResponse,\n cookiePassword,\n }: {\n authenticationResponse: AuthenticationResponse;\n cookiePassword?: string;\n }): Promise<string> {\n if (!cookiePassword) {\n throw new Error('Cookie password is required');\n }\n\n const { decodeJwt } = await getJose();\n\n const { org_id: organizationIdFromAccessToken } = decodeJwt<AccessToken>(\n authenticationResponse.accessToken,\n );\n\n const sessionData: SessionCookieData = {\n organizationId: organizationIdFromAccessToken,\n user: authenticationResponse.user,\n accessToken: authenticationResponse.accessToken,\n refreshToken: authenticationResponse.refreshToken,\n authenticationMethod: authenticationResponse.authenticationMethod,\n impersonator: authenticationResponse.impersonator,\n };\n\n return sealData(sessionData, {\n password: cookiePassword,\n });\n }\n\n async getSessionFromCookie({\n sessionData,\n cookiePassword = getEnv('WORKOS_COOKIE_PASSWORD'),\n }: SessionHandlerOptions): Promise<SessionCookieData | undefined> {\n if (!cookiePassword) {\n throw new Error('Cookie password is required');\n }\n\n if (sessionData) {\n return unsealData<SessionCookieData>(sessionData, {\n password: cookiePassword,\n });\n }\n\n return undefined;\n }\n\n async getEmailVerification(\n emailVerificationId: string,\n ): Promise<EmailVerification> {\n const { data } = await this.workos.get<EmailVerificationResponse>(\n `/user_management/email_verification/${emailVerificationId}`,\n );\n\n return deserializeEmailVerification(data);\n }\n\n async sendVerificationEmail({\n userId,\n }: SendVerificationEmailOptions): Promise<{ user: User }> {\n const { data } = await this.workos.post<{ user: UserResponse }>(\n `/user_management/users/${userId}/email_verification/send`,\n {},\n );\n\n return { user: deserializeUser(data.user) };\n }\n\n async getMagicAuth(magicAuthId: string): Promise<MagicAuth> {\n const { data } = await this.workos.get<MagicAuthResponse>(\n `/user_management/magic_auth/${magicAuthId}`,\n );\n\n return deserializeMagicAuth(data);\n }\n\n async createMagicAuth(options: CreateMagicAuthOptions): Promise<MagicAuth> {\n const { data } = await this.workos.post<\n MagicAuthResponse,\n SerializedCreateMagicAuthOptions\n >(\n '/user_management/magic_auth',\n serializeCreateMagicAuthOptions({\n ...options,\n }),\n );\n\n return deserializeMagicAuth(data);\n }\n\n async verifyEmail({\n code,\n userId,\n }: VerifyEmailOptions): Promise<{ user: User }> {\n const { data } = await this.workos.post<\n { user: UserResponse },\n SerializedVerifyEmailOptions\n >(`/user_management/users/${userId}/email_verification/confirm`, {\n code,\n });\n\n return { user: deserializeUser(data.user) };\n }\n\n async getPasswordReset(passwordResetId: string): Promise<PasswordReset> {\n const { data } = await this.workos.get<PasswordResetResponse>(\n `/user_management/password_reset/${passwordResetId}`,\n );\n\n return deserializePasswordReset(data);\n }\n\n async createPasswordReset(\n options: CreatePasswordResetOptions,\n ): Promise<PasswordReset> {\n const { data } = await this.workos.post<\n PasswordResetResponse,\n SerializedCreatePasswordResetOptions\n >(\n '/user_management/password_reset',\n serializeCreatePasswordResetOptions({\n ...options,\n }),\n );\n\n return deserializePasswordReset(data);\n }\n\n async resetPassword(payload: ResetPasswordOptions): Promise<{ user: User }> {\n const { data } = await this.workos.post<\n { user: UserResponse },\n SerializedResetPasswordOptions\n >(\n '/user_management/password_reset/confirm',\n serializeResetPasswordOptions(payload),\n );\n\n return { user: deserializeUser(data.user) };\n }\n\n async updateUser(payload: UpdateUserOptions): Promise<User> {\n const { data } = await this.workos.put<UserResponse>(\n `/user_management/users/${payload.userId}`,\n serializeUpdateUserOptions(payload),\n );\n\n return deserializeUser(data);\n }\n\n async enrollAuthFactor(payload: EnrollAuthFactorOptions): Promise<{\n authenticationFactor: FactorWithSecrets;\n authenticationChallenge: Challenge;\n }> {\n const { data } = await this.workos.post<{\n authentication_factor: FactorWithSecretsResponse;\n authentication_challenge: ChallengeResponse;\n }>(\n `/user_management/users/${payload.userId}/auth_factors`,\n serializeEnrollAuthFactorOptions(payload),\n );\n\n return {\n authenticationFactor: deserializeFactorWithSecrets(\n data.authentication_factor,\n ),\n authenticationChallenge: deserializeChallenge(\n data.authentication_challenge,\n ),\n };\n }\n\n async listAuthFactors(\n options: ListAuthFactorsOptions,\n ): Promise<AutoPaginatable<Factor, PaginationOptions>> {\n const { userId, ...restOfOptions } = options;\n return new AutoPaginatable(\n await fetchAndDeserialize<FactorResponse, Factor>(\n this.workos,\n `/user_management/users/${userId}/auth_factors`,\n deserializeFactor,\n restOfOptions,\n ),\n (params) =>\n fetchAndDeserialize<FactorResponse, Factor>(\n this.workos,\n `/user_management/users/${userId}/auth_factors`,\n deserializeFactor,\n params,\n ),\n restOfOptions,\n );\n }\n\n async listUserFeatureFlags(\n options: ListUserFeatureFlagsOptions,\n ): Promise<AutoPaginatable<FeatureFlag>> {\n const { userId, ...paginationOptions } = options;\n\n return new AutoPaginatable(\n await fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(\n this.workos,\n `/user_management/users/${userId}/feature-flags`,\n deserializeFeatureFlag,\n paginationOptions,\n ),\n (params) =>\n fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(\n this.workos,\n `/user_management/users/${userId}/feature-flags`,\n deserializeFeatureFlag,\n params,\n ),\n paginationOptions,\n );\n }\n\n async listSessions(\n userId: string,\n options?: ListSessionsOptions,\n ): Promise<AutoPaginatable<Session, SerializedListSessionsOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<SessionResponse, Session>(\n this.workos,\n `/user_management/users/${userId}/sessions`,\n deserializeSession,\n options ? serializeListSessionsOptions(options) : undefined,\n ),\n (params) =>\n fetchAndDeserialize<SessionResponse, Session>(\n this.workos,\n `/user_management/users/${userId}/sessions`,\n deserializeSession,\n params,\n ),\n options ? serializeListSessionsOptions(options) : undefined,\n );\n }\n\n async deleteUser(userId: string) {\n await this.workos.delete(`/user_management/users/${userId}`);\n }\n\n async getUserIdentities(userId: string): Promise<Identity[]> {\n if (!userId) {\n throw new TypeError(`Incomplete arguments. Need to specify 'userId'.`);\n }\n\n const { data } = await this.workos.get<IdentityResponse[]>(\n `/user_management/users/${userId}/identities`,\n );\n\n return deserializeIdentities(data);\n }\n\n async getOrganizationMembership(\n organizationMembershipId: string,\n ): Promise<OrganizationMembership> {\n const { data } = await this.workos.get<OrganizationMembershipResponse>(\n `/user_management/organization_memberships/${organizationMembershipId}`,\n );\n\n return deserializeOrganizationMembership(data);\n }\n\n async listOrganizationMemberships(\n options: ListOrganizationMembershipsOptions,\n ): Promise<\n AutoPaginatable<\n OrganizationMembership,\n SerializedListOrganizationMembershipsOptions\n >\n > {\n const serializedOptions =\n serializeListOrganizationMembershipsOptions(options);\n\n return new AutoPaginatable(\n await fetchAndDeserialize<\n OrganizationMembershipResponse,\n OrganizationMembership\n >(\n this.workos,\n '/user_management/organization_memberships',\n deserializeOrganizationMembership,\n serializedOptions,\n ),\n (params) =>\n fetchAndDeserialize<\n OrganizationMembershipResponse,\n OrganizationMembership\n >(\n this.workos,\n '/user_management/organization_memberships',\n deserializeOrganizationMembership,\n params,\n ),\n serializedOptions,\n );\n }\n\n async createOrganizationMembership(\n options: CreateOrganizationMembershipOptions,\n ): Promise<OrganizationMembership> {\n const { data } = await this.workos.post<\n OrganizationMembershipResponse,\n SerializedCreateOrganizationMembershipOptions\n >(\n '/user_management/organization_memberships',\n serializeCreateOrganizationMembershipOptions(options),\n );\n\n return deserializeOrganizationMembership(data);\n }\n\n async updateOrganizationMembership(\n organizationMembershipId: string,\n options: UpdateOrganizationMembershipOptions,\n ): Promise<OrganizationMembership> {\n const { data } = await this.workos.put<\n OrganizationMembershipResponse,\n SerializedUpdateOrganizationMembershipOptions\n >(\n `/user_management/organization_memberships/${organizationMembershipId}`,\n serializeUpdateOrganizationMembershipOptions(options),\n );\n\n return deserializeOrganizationMembership(data);\n }\n\n async deleteOrganizationMembership(\n organizationMembershipId: string,\n ): Promise<void> {\n await this.workos.delete(\n `/user_management/organization_memberships/${organizationMembershipId}`,\n );\n }\n\n async deactivateOrganizationMembership(\n organizationMembershipId: string,\n ): Promise<OrganizationMembership> {\n const { data } = await this.workos.put<OrganizationMembershipResponse>(\n `/user_management/organization_memberships/${organizationMembershipId}/deactivate`,\n {},\n );\n\n return deserializeOrganizationMembership(data);\n }\n\n async reactivateOrganizationMembership(\n organizationMembershipId: string,\n ): Promise<OrganizationMembership> {\n const { data } = await this.workos.put<OrganizationMembershipResponse>(\n `/user_management/organization_memberships/${organizationMembershipId}/reactivate`,\n {},\n );\n\n return deserializeOrganizationMembership(data);\n }\n\n async getInvitation(invitationId: string): Promise<Invitation> {\n const { data } = await this.workos.get<InvitationResponse>(\n `/user_management/invitations/${invitationId}`,\n );\n\n return deserializeInvitation(data);\n }\n\n async findInvitationByToken(invitationToken: string): Promise<Invitation> {\n const { data } = await this.workos.get<InvitationResponse>(\n `/user_management/invitations/by_token/${invitationToken}`,\n );\n\n return deserializeInvitation(data);\n }\n\n async listInvitations(\n options: ListInvitationsOptions,\n ): Promise<AutoPaginatable<Invitation, SerializedListInvitationsOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<InvitationResponse, Invitation>(\n this.workos,\n '/user_management/invitations',\n deserializeInvitation,\n options ? serializeListInvitationsOptions(options) : undefined,\n ),\n (params) =>\n fetchAndDeserialize<InvitationResponse, Invitation>(\n this.workos,\n '/user_management/invitations',\n deserializeInvitation,\n params,\n ),\n options ? serializeListInvitationsOptions(options) : undefined,\n );\n }\n\n async sendInvitation(payload: SendInvitationOptions): Promise<Invitation> {\n const { data } = await this.workos.post<\n InvitationResponse,\n SerializedSendInvitationOptions\n >(\n '/user_management/invitations',\n serializeSendInvitationOptions({\n ...payload,\n }),\n );\n\n return deserializeInvitation(data);\n }\n\n async acceptInvitation(invitationId: string): Promise<Invitation> {\n const { data } = await this.workos.post<InvitationResponse, any>(\n `/user_management/invitations/${invitationId}/accept`,\n null,\n );\n\n return deserializeInvitation(data);\n }\n\n async revokeInvitation(invitationId: string): Promise<Invitation> {\n const { data } = await this.workos.post<InvitationResponse, any>(\n `/user_management/invitations/${invitationId}/revoke`,\n null,\n );\n\n return deserializeInvitation(data);\n }\n\n async resendInvitation(invitationId: string): Promise<Invitation> {\n const { data } = await this.workos.post<InvitationResponse, any>(\n `/user_management/invitations/${invitationId}/resend`,\n null,\n );\n\n return deserializeInvitation(data);\n }\n\n async revokeSession(payload: RevokeSessionOptions): Promise<void> {\n await this.workos.post<void, SerializedRevokeSessionOptions>(\n '/user_management/sessions/revoke',\n serializeRevokeSessionOptions(payload),\n );\n }\n\n /**\n * Generate an OAuth 2.0 authorization URL.\n *\n * For public clients (browser, mobile, CLI), include PKCE parameters:\n * - Generate PKCE using workos.pkce.generate()\n * - Pass codeChallenge and codeChallengeMethod here\n * - Store codeVerifier and pass to authenticateWithCode() later\n *\n * Or use getAuthorizationUrlWithPKCE() which handles PKCE automatically.\n */\n getAuthorizationUrl(options: UserManagementAuthorizationURLOptions): string {\n const {\n connectionId,\n codeChallenge,\n codeChallengeMethod,\n clientId,\n domainHint,\n loginHint,\n organizationId,\n provider,\n providerQueryParams,\n providerScopes,\n prompt,\n redirectUri,\n state,\n screenHint,\n } = options;\n const resolvedClientId = this.resolveClientId(clientId);\n\n if (!provider && !connectionId && !organizationId) {\n throw new TypeError(\n `Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`,\n );\n }\n\n if (provider !== 'authkit' && screenHint) {\n throw new TypeError(\n `'screenHint' is only supported for 'authkit' provider`,\n );\n }\n\n const query = toQueryString({\n connection_id: connectionId,\n code_challenge: codeChallenge,\n code_challenge_method: codeChallengeMethod,\n organization_id: organizationId,\n domain_hint: domainHint,\n login_hint: loginHint,\n provider,\n provider_query_params: providerQueryParams,\n provider_scopes: providerScopes,\n prompt,\n client_id: resolvedClientId,\n redirect_uri: redirectUri,\n response_type: 'code',\n state,\n screen_hint: screenHint,\n });\n\n return `${this.workos.baseURL}/user_management/authorize?${query}`;\n }\n\n /**\n * Generate an OAuth 2.0 authorization URL with automatic PKCE.\n *\n * This method generates PKCE parameters internally and returns them along with\n * the authorization URL. Use this for public clients (CLI apps, Electron, mobile)\n * that cannot securely store a client secret.\n *\n * @returns Object containing url, state, and codeVerifier\n *\n * @example\n * ```typescript\n * const { url, state, codeVerifier } = await workos.userManagement.getAuthorizationUrlWithPKCE({\n * provider: 'authkit',\n * clientId: 'client_123',\n * redirectUri: 'myapp://callback',\n * });\n *\n * // Store state and codeVerifier securely, then redirect user to url\n * // After callback, exchange the code:\n * const response = await workos.userManagement.authenticateWithCode({\n * code: authorizationCode,\n * codeVerifier,\n * clientId: 'client_123',\n * });\n * ```\n */\n async getAuthorizationUrlWithPKCE(\n options: Omit<\n UserManagementAuthorizationURLOptions,\n 'codeChallenge' | 'codeChallengeMethod' | 'state'\n >,\n ): Promise<PKCEAuthorizationURLResult> {\n const {\n clientId,\n connectionId,\n domainHint,\n loginHint,\n organizationId,\n provider,\n providerQueryParams,\n providerScopes,\n prompt,\n redirectUri,\n screenHint,\n } = options;\n const resolvedClientId = this.resolveClientId(clientId);\n\n if (!provider && !connectionId && !organizationId) {\n throw new TypeError(\n `Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`,\n );\n }\n\n if (provider !== 'authkit' && screenHint) {\n throw new TypeError(\n `'screenHint' is only supported for 'authkit' provider`,\n );\n }\n\n // Generate PKCE parameters\n const pkce = await this.workos.pkce.generate();\n\n // Generate secure random state\n const state = this.workos.pkce.generateCodeVerifier(43);\n\n const query = toQueryString({\n connection_id: connectionId,\n code_challenge: pkce.codeChallenge,\n code_challenge_method: 'S256',\n organization_id: organizationId,\n domain_hint: domainHint,\n login_hint: loginHint,\n provider,\n provider_query_params: providerQueryParams,\n provider_scopes: providerScopes,\n prompt,\n client_id: resolvedClientId,\n redirect_uri: redirectUri,\n response_type: 'code',\n state,\n screen_hint: screenHint,\n });\n\n const url = `${this.workos.baseURL}/user_management/authorize?${query}`;\n\n return { url, state, codeVerifier: pkce.codeVerifier };\n }\n\n getLogoutUrl(options: LogoutURLOptions): string {\n const { sessionId, returnTo } = options;\n\n if (!sessionId) {\n throw new TypeError(`Incomplete arguments. Need to specify 'sessionId'.`);\n }\n\n const url = new URL(\n '/user_management/sessions/logout',\n this.workos.baseURL,\n );\n\n url.searchParams.set('session_id', sessionId);\n if (returnTo) {\n url.searchParams.set('return_to', returnTo);\n }\n\n return url.toString();\n }\n\n getJwksUrl(clientId: string): string {\n if (!clientId) {\n throw new TypeError('clientId must be a valid clientId');\n }\n\n return `${this.workos.baseURL}/sso/jwks/${clientId}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiKA,IAAa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;CA6B7D,MAAM,4BACJ,SAIqC;EACrC,MAAM,EACJ,UACA,cACA,YACA,WACA,gBACA,UACA,qBACA,gBACA,QACA,aACA,eACE;EACJ,MAAM,mBAAmB,KAAK,gBAAgB,SAAS;AAEvD,MAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,eACjC,OAAM,IAAI,UACR,kGACD;AAGH,MAAI,aAAa,aAAa,WAC5B,OAAM,IAAI,UACR,wDACD;EAIH,MAAM,OAAO,MAAM,KAAK,OAAO,KAAK,UAAU;EAG9C,MAAM,QAAQ,KAAK,OAAO,KAAK,qBAAqB,GAAG;EAEvD,MAAM,QAAQA,mCAAc;GAC1B,eAAe;GACf,gBAAgB,KAAK;GACrB,uBAAuB;GACvB,iBAAiB;GACjB,aAAa;GACb,YAAY;GACZ;GACA,uBAAuB;GACvB,iBAAiB;GACjB;GACA,WAAW;GACX,cAAc;GACd,eAAe;GACf;GACA,aAAa;GACd,CAAC;AAIF,SAAO;GAAE,KAFG,GAAG,KAAK,OAAO,QAAQ,6BAA6B;GAElD;GAAO,cAAc,KAAK;GAAc;;CAGxD,aAAa,SAAmC;EAC9C,MAAM,EAAE,WAAW,aAAa;AAEhC,MAAI,CAAC,UACH,OAAM,IAAI,UAAU,qDAAqD;EAG3E,MAAM,MAAM,IAAI,IACd,oCACA,KAAK,OAAO,QACb;AAED,MAAI,aAAa,IAAI,cAAc,UAAU;AAC7C,MAAI,SACF,KAAI,aAAa,IAAI,aAAa,SAAS;AAG7C,SAAO,IAAI,UAAU;;CAGvB,WAAW,UAA0B;AACnC,MAAI,CAAC,SACH,OAAM,IAAI,UAAU,oCAAoC;AAG1D,SAAO,GAAG,KAAK,OAAO,QAAQ,YAAY"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//#region src/user-management/interfaces/user.interface.d.ts
|
|
2
|
-
interface User {
|
|
3
|
-
object: 'user';
|
|
4
|
-
id: string;
|
|
5
|
-
email: string;
|
|
6
|
-
emailVerified: boolean;
|
|
7
|
-
profilePictureUrl: string | null;
|
|
8
|
-
firstName: string | null;
|
|
9
|
-
lastName: string | null;
|
|
10
|
-
lastSignInAt: string | null;
|
|
11
|
-
locale: string | null;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
externalId: string | null;
|
|
15
|
-
metadata: Record<string, string>;
|
|
16
|
-
}
|
|
17
|
-
interface UserResponse {
|
|
18
|
-
object: 'user';
|
|
19
|
-
id: string;
|
|
20
|
-
email: string;
|
|
21
|
-
email_verified: boolean;
|
|
22
|
-
profile_picture_url: string | null;
|
|
23
|
-
first_name: string | null;
|
|
24
|
-
last_name: string | null;
|
|
25
|
-
last_sign_in_at: string | null;
|
|
26
|
-
locale: string | null;
|
|
27
|
-
created_at: string;
|
|
28
|
-
updated_at: string;
|
|
29
|
-
external_id?: string;
|
|
30
|
-
metadata?: Record<string, string>;
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
export { UserResponse as n, User as t };
|
|
34
|
-
//# sourceMappingURL=user.interface-Dw_0nNpw.d.cts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { n as UserResponse, t as User } from "./user.interface-Dw_0nNpw.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/user-management/serializers/user.serializer.d.ts
|
|
4
|
-
declare const deserializeUser: (user: UserResponse) => User;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { deserializeUser as t };
|
|
7
|
-
//# sourceMappingURL=user.serializer-DJ3rbRrA.d.cts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { n as SerializedApiKey, t as ApiKey } from "./api-key.interface-BHBINSO0.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/api-keys/interfaces/validate-api-key.interface.d.ts
|
|
4
|
-
interface ValidateApiKeyOptions {
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
interface ValidateApiKeyResponse {
|
|
8
|
-
apiKey: ApiKey | null;
|
|
9
|
-
}
|
|
10
|
-
interface SerializedValidateApiKeyResponse {
|
|
11
|
-
api_key: SerializedApiKey | null;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ValidateApiKeyOptions as n, ValidateApiKeyResponse as r, SerializedValidateApiKeyResponse as t };
|
|
15
|
-
//# sourceMappingURL=validate-api-key.interface-TBdiN_K_.d.cts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { r as ValidateApiKeyResponse, t as SerializedValidateApiKeyResponse } from "./validate-api-key.interface-TBdiN_K_.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/api-keys/serializers/validate-api-key.serializer.d.ts
|
|
4
|
-
declare function deserializeValidateApiKeyResponse(response: SerializedValidateApiKeyResponse): ValidateApiKeyResponse;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { deserializeValidateApiKeyResponse as t };
|
|
7
|
-
//# sourceMappingURL=validate-api-key.serializer-DJFc2ovX.d.cts.map
|
package/lib/vault-BlHYnRoU.cjs
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
const require_leb128 = require('./leb128-DgwAOCuj.cjs');
|
|
2
|
-
const require_base64 = require('./base64-BROQtK6X.cjs');
|
|
3
|
-
const require_vault_key_serializer = require('./vault-key.serializer-eYptLXG-.cjs');
|
|
4
|
-
const require_vault_object_serializer = require('./vault-object.serializer-BZEXkPbG.cjs');
|
|
5
|
-
|
|
6
|
-
//#region src/vault/vault.ts
|
|
7
|
-
var Vault = class {
|
|
8
|
-
cryptoProvider;
|
|
9
|
-
constructor(workos) {
|
|
10
|
-
this.workos = workos;
|
|
11
|
-
this.cryptoProvider = workos.getCryptoProvider();
|
|
12
|
-
}
|
|
13
|
-
decode(payload) {
|
|
14
|
-
const inputData = require_base64.base64ToUint8Array(payload);
|
|
15
|
-
const iv = new Uint8Array(inputData.subarray(0, 12));
|
|
16
|
-
const tag = new Uint8Array(inputData.subarray(12, 28));
|
|
17
|
-
const { value: keyLen, nextIndex } = require_leb128.decodeUInt32(inputData, 28);
|
|
18
|
-
return {
|
|
19
|
-
iv,
|
|
20
|
-
tag,
|
|
21
|
-
keys: require_base64.uint8ArrayToBase64(inputData.subarray(nextIndex, nextIndex + keyLen)),
|
|
22
|
-
ciphertext: new Uint8Array(inputData.subarray(nextIndex + keyLen))
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
async createObject(options) {
|
|
26
|
-
const { data } = await this.workos.post(`/vault/v1/kv`, require_vault_object_serializer.serializeCreateObjectEntity(options));
|
|
27
|
-
return require_vault_object_serializer.deserializeObjectMetadata(data);
|
|
28
|
-
}
|
|
29
|
-
async listObjects(options) {
|
|
30
|
-
const url = new URL("/vault/v1/kv", this.workos.baseURL);
|
|
31
|
-
if (options?.after) url.searchParams.set("after", options.after);
|
|
32
|
-
if (options?.limit) url.searchParams.set("limit", options.limit.toString());
|
|
33
|
-
const { data } = await this.workos.get(url.toString());
|
|
34
|
-
return require_vault_object_serializer.deserializeListObjects(data);
|
|
35
|
-
}
|
|
36
|
-
async listObjectVersions(options) {
|
|
37
|
-
const { data } = await this.workos.get(`/vault/v1/kv/${encodeURIComponent(options.id)}/versions`);
|
|
38
|
-
return require_vault_object_serializer.desrializeListObjectVersions(data);
|
|
39
|
-
}
|
|
40
|
-
async readObject(options) {
|
|
41
|
-
const { data } = await this.workos.get(`/vault/v1/kv/${encodeURIComponent(options.id)}`);
|
|
42
|
-
return require_vault_object_serializer.deserializeObject(data);
|
|
43
|
-
}
|
|
44
|
-
async readObjectByName(name) {
|
|
45
|
-
const { data } = await this.workos.get(`/vault/v1/kv/name/${encodeURIComponent(name)}`);
|
|
46
|
-
return require_vault_object_serializer.deserializeObject(data);
|
|
47
|
-
}
|
|
48
|
-
async describeObject(options) {
|
|
49
|
-
const { data } = await this.workos.get(`/vault/v1/kv/${encodeURIComponent(options.id)}/metadata`);
|
|
50
|
-
return require_vault_object_serializer.deserializeObject(data);
|
|
51
|
-
}
|
|
52
|
-
async updateObject(options) {
|
|
53
|
-
const { data } = await this.workos.put(`/vault/v1/kv/${encodeURIComponent(options.id)}`, require_vault_object_serializer.serializeUpdateObjectEntity(options));
|
|
54
|
-
return require_vault_object_serializer.deserializeObject(data);
|
|
55
|
-
}
|
|
56
|
-
async deleteObject(options) {
|
|
57
|
-
return this.workos.delete(`/vault/v1/kv/${encodeURIComponent(options.id)}`);
|
|
58
|
-
}
|
|
59
|
-
async createDataKey(options) {
|
|
60
|
-
const { data } = await this.workos.post(`/vault/v1/keys/data-key`, options);
|
|
61
|
-
return require_vault_key_serializer.deserializeCreateDataKeyResponse(data);
|
|
62
|
-
}
|
|
63
|
-
async decryptDataKey(options) {
|
|
64
|
-
const { data } = await this.workos.post(`/vault/v1/keys/decrypt`, options);
|
|
65
|
-
return require_vault_key_serializer.deserializeDecryptDataKeyResponse(data);
|
|
66
|
-
}
|
|
67
|
-
async encrypt(data, context, associatedData) {
|
|
68
|
-
const keyPair = await this.createDataKey({ context });
|
|
69
|
-
const encoder = new TextEncoder();
|
|
70
|
-
const key = require_base64.base64ToUint8Array(keyPair.dataKey.key);
|
|
71
|
-
const keyBlob = require_base64.base64ToUint8Array(keyPair.encryptedKeys);
|
|
72
|
-
const prefixLenBuffer = require_leb128.encodeUInt32(keyBlob.length);
|
|
73
|
-
const aadBuffer = associatedData ? encoder.encode(associatedData) : void 0;
|
|
74
|
-
const iv = this.cryptoProvider.randomBytes(12);
|
|
75
|
-
const { ciphertext, iv: resultIv, tag } = await this.cryptoProvider.encrypt(encoder.encode(data), key, iv, aadBuffer);
|
|
76
|
-
const resultArray = new Uint8Array(resultIv.length + tag.length + prefixLenBuffer.length + keyBlob.length + ciphertext.length);
|
|
77
|
-
let offset = 0;
|
|
78
|
-
resultArray.set(resultIv, offset);
|
|
79
|
-
offset += resultIv.length;
|
|
80
|
-
resultArray.set(tag, offset);
|
|
81
|
-
offset += tag.length;
|
|
82
|
-
resultArray.set(new Uint8Array(prefixLenBuffer), offset);
|
|
83
|
-
offset += prefixLenBuffer.length;
|
|
84
|
-
resultArray.set(keyBlob, offset);
|
|
85
|
-
offset += keyBlob.length;
|
|
86
|
-
resultArray.set(ciphertext, offset);
|
|
87
|
-
return require_base64.uint8ArrayToBase64(resultArray);
|
|
88
|
-
}
|
|
89
|
-
async decrypt(encryptedData, associatedData) {
|
|
90
|
-
const decoded = this.decode(encryptedData);
|
|
91
|
-
const key = require_base64.base64ToUint8Array((await this.decryptDataKey({ keys: decoded.keys })).key);
|
|
92
|
-
const encoder = new TextEncoder();
|
|
93
|
-
const aadBuffer = associatedData ? encoder.encode(associatedData) : void 0;
|
|
94
|
-
const decrypted = await this.cryptoProvider.decrypt(decoded.ciphertext, key, decoded.iv, decoded.tag, aadBuffer);
|
|
95
|
-
return new TextDecoder().decode(decrypted);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
//#endregion
|
|
100
|
-
Object.defineProperty(exports, 'Vault', {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () {
|
|
103
|
-
return Vault;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
//# sourceMappingURL=vault-BlHYnRoU.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vault-BlHYnRoU.cjs","names":["workos: WorkOS","base64ToUint8Array","decodeUInt32","uint8ArrayToBase64","serializeCreateObjectEntity","deserializeObjectMetadata","deserializeListObjects","desrializeListObjectVersions","deserializeObject","serializeUpdateObjectEntity","deserializeCreateDataKeyResponse","deserializeDecryptDataKeyResponse","encodeUInt32"],"sources":["../src/vault/vault.ts"],"sourcesContent":["import { decodeUInt32, encodeUInt32 } from '../common/utils/leb128';\nimport { CryptoProvider } from '../common/crypto/crypto-provider';\nimport { List, ListResponse } from '../common/interfaces';\nimport { PaginationOptions } from '../index.worker';\nimport { base64ToUint8Array, uint8ArrayToBase64 } from '../common/utils/base64';\nimport type { WorkOS } from '../workos';\nimport {\n CreateDataKeyOptions,\n CreateDataKeyResponse,\n CreateObjectOptions,\n DataKey,\n DataKeyPair,\n DecryptDataKeyOptions,\n DecryptDataKeyResponse,\n DeleteObjectOptions,\n KeyContext,\n ListObjectVersionsResponse,\n ObjectDigest,\n ObjectDigestResponse,\n ObjectMetadata,\n ObjectVersion,\n ReadObjectMetadataResponse,\n ReadObjectOptions,\n ReadObjectResponse,\n UpdateObjectOptions,\n VaultObject,\n} from './interfaces';\nimport {\n deserializeCreateDataKeyResponse,\n deserializeDecryptDataKeyResponse,\n} from './serializers/vault-key.serializer';\nimport {\n deserializeListObjects,\n deserializeObject,\n deserializeObjectMetadata,\n desrializeListObjectVersions,\n serializeCreateObjectEntity,\n serializeUpdateObjectEntity,\n} from './serializers/vault-object.serializer';\n\ninterface Decoded {\n iv: Uint8Array;\n tag: Uint8Array;\n keys: string;\n ciphertext: Uint8Array;\n}\n\nexport class Vault {\n private cryptoProvider: CryptoProvider;\n\n constructor(private readonly workos: WorkOS) {\n this.cryptoProvider = workos.getCryptoProvider();\n }\n\n private decode(payload: string): Decoded {\n const inputData = base64ToUint8Array(payload);\n // Use 12 bytes for IV (standard for AES-GCM)\n const iv = new Uint8Array(inputData.subarray(0, 12));\n const tag = new Uint8Array(inputData.subarray(12, 28));\n const { value: keyLen, nextIndex } = decodeUInt32(inputData, 28);\n\n // Use subarray instead of slice and convert directly to base64\n const keysBuffer = inputData.subarray(nextIndex, nextIndex + keyLen);\n const keys = uint8ArrayToBase64(keysBuffer);\n\n const ciphertext = new Uint8Array(inputData.subarray(nextIndex + keyLen));\n\n return {\n iv,\n tag,\n keys,\n ciphertext,\n };\n }\n\n async createObject(options: CreateObjectOptions): Promise<ObjectMetadata> {\n const { data } = await this.workos.post<ReadObjectMetadataResponse>(\n `/vault/v1/kv`,\n serializeCreateObjectEntity(options),\n );\n return deserializeObjectMetadata(data);\n }\n\n async listObjects(\n options?: PaginationOptions | undefined,\n ): Promise<List<ObjectDigest>> {\n const url = new URL('/vault/v1/kv', this.workos.baseURL);\n if (options?.after) {\n url.searchParams.set('after', options.after);\n }\n if (options?.limit) {\n url.searchParams.set('limit', options.limit.toString());\n }\n\n const { data } = await this.workos.get<ListResponse<ObjectDigestResponse>>(\n url.toString(),\n );\n return deserializeListObjects(data);\n }\n\n async listObjectVersions(\n options: ReadObjectOptions,\n ): Promise<ObjectVersion[]> {\n const { data } = await this.workos.get<ListObjectVersionsResponse>(\n `/vault/v1/kv/${encodeURIComponent(options.id)}/versions`,\n );\n return desrializeListObjectVersions(data);\n }\n\n async readObject(options: ReadObjectOptions): Promise<VaultObject> {\n const { data } = await this.workos.get<ReadObjectResponse>(\n `/vault/v1/kv/${encodeURIComponent(options.id)}`,\n );\n return deserializeObject(data);\n }\n\n async readObjectByName(name: string): Promise<VaultObject> {\n const { data } = await this.workos.get<ReadObjectResponse>(\n `/vault/v1/kv/name/${encodeURIComponent(name)}`,\n );\n return deserializeObject(data);\n }\n\n async describeObject(options: ReadObjectOptions): Promise<VaultObject> {\n const { data } = await this.workos.get<ReadObjectResponse>(\n `/vault/v1/kv/${encodeURIComponent(options.id)}/metadata`,\n );\n return deserializeObject(data);\n }\n\n async updateObject(options: UpdateObjectOptions): Promise<VaultObject> {\n const { data } = await this.workos.put<ReadObjectResponse>(\n `/vault/v1/kv/${encodeURIComponent(options.id)}`,\n serializeUpdateObjectEntity(options),\n );\n return deserializeObject(data);\n }\n\n async deleteObject(options: DeleteObjectOptions): Promise<void> {\n return this.workos.delete(`/vault/v1/kv/${encodeURIComponent(options.id)}`);\n }\n\n async createDataKey(options: CreateDataKeyOptions): Promise<DataKeyPair> {\n const { data } = await this.workos.post<CreateDataKeyResponse>(\n `/vault/v1/keys/data-key`,\n options,\n );\n return deserializeCreateDataKeyResponse(data);\n }\n\n async decryptDataKey(options: DecryptDataKeyOptions): Promise<DataKey> {\n const { data } = await this.workos.post<DecryptDataKeyResponse>(\n `/vault/v1/keys/decrypt`,\n options,\n );\n return deserializeDecryptDataKeyResponse(data);\n }\n\n async encrypt(\n data: string,\n context: KeyContext,\n associatedData?: string,\n ): Promise<string> {\n const keyPair = await this.createDataKey({\n context,\n });\n\n // Convert base64 key to Uint8Array\n const encoder = new TextEncoder();\n\n // Use our cross-runtime base64 utility\n const key = base64ToUint8Array(keyPair.dataKey.key);\n const keyBlob = base64ToUint8Array(keyPair.encryptedKeys);\n\n const prefixLenBuffer = encodeUInt32(keyBlob.length);\n const aadBuffer = associatedData\n ? encoder.encode(associatedData)\n : undefined;\n\n // Use a 12-byte IV for AES-GCM (industry standard)\n const iv = this.cryptoProvider.randomBytes(12);\n\n const {\n ciphertext,\n iv: resultIv,\n tag,\n } = await this.cryptoProvider.encrypt(\n encoder.encode(data),\n key,\n iv,\n aadBuffer,\n );\n\n // Concatenate all parts into a single array\n const resultArray = new Uint8Array(\n resultIv.length +\n tag.length +\n prefixLenBuffer.length +\n keyBlob.length +\n ciphertext.length,\n );\n\n let offset = 0;\n resultArray.set(resultIv, offset);\n offset += resultIv.length;\n\n resultArray.set(tag, offset);\n offset += tag.length;\n\n resultArray.set(new Uint8Array(prefixLenBuffer), offset);\n offset += prefixLenBuffer.length;\n\n resultArray.set(keyBlob, offset);\n offset += keyBlob.length;\n\n resultArray.set(ciphertext, offset);\n\n // Convert to base64 using our cross-runtime utility\n return uint8ArrayToBase64(resultArray);\n }\n\n async decrypt(\n encryptedData: string,\n associatedData?: string,\n ): Promise<string> {\n const decoded = this.decode(encryptedData);\n const dataKey = await this.decryptDataKey({ keys: decoded.keys });\n\n // Convert base64 key to Uint8Array using our cross-runtime utility\n const key = base64ToUint8Array(dataKey.key);\n\n const encoder = new TextEncoder();\n const aadBuffer = associatedData\n ? encoder.encode(associatedData)\n : undefined;\n\n const decrypted = await this.cryptoProvider.decrypt(\n decoded.ciphertext,\n key,\n decoded.iv,\n decoded.tag,\n aadBuffer,\n );\n\n return new TextDecoder().decode(decrypted);\n }\n}\n"],"mappings":";;;;;;AA+CA,IAAa,QAAb,MAAmB;CACjB,AAAQ;CAER,YAAY,AAAiBA,QAAgB;EAAhB;AAC3B,OAAK,iBAAi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AAI,UAAU,OAAO;AACjC,YAAU,SAAS;AAEnB,cAAY,IAAI,KAAK,OAAO;AAC5B,YAAU,IAAI;AAEd,cAAY,IAAI,IAAI,WAAW,gBAAgB,EAAE,OAAO;AACxD,YAAU,gBAAgB;AAE1B,cAAY,IAAI,SAAS,OAAO;AAChC,YAAU,QAAQ;AAElB,cAAY,IAAI,YAAY,OAAO;AAGnC,SAAOT,kCAAmB,YAAY;;CAGxC,MAAM,QACJ,eACA,gBACiB;EACjB,MAAM,UAAU,KAAK,OAAO,cAAc;EAI1C,MAAM,MAAMF,mCAHI,MAAM,KAAK,eAAe,EAAE,MAAM,QAAQ,MAAM,CAAC,EAG1B,IAAI;EAE3C,MAAM,UAAU,IAAI,aAAa;EACjC,MAAM,YAAY,iBACd,QAAQ,OAAO,eAAe,GAC9B;EAEJ,MAAM,YAAY,MAAM,KAAK,eAAe,QAC1C,QAAQ,YACR,KACA,QAAQ,IACR,QAAQ,KACR,UACD;AAED,SAAO,IAAI,aAAa,CAAC,OAAO,UAAU"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/vault/serializers/vault-key.serializer.ts
|
|
3
|
-
const deserializeCreateDataKeyResponse = (key) => ({
|
|
4
|
-
context: key.context,
|
|
5
|
-
dataKey: {
|
|
6
|
-
key: key.data_key,
|
|
7
|
-
id: key.id
|
|
8
|
-
},
|
|
9
|
-
encryptedKeys: key.encrypted_keys
|
|
10
|
-
});
|
|
11
|
-
const deserializeDecryptDataKeyResponse = (key) => ({
|
|
12
|
-
key: key.data_key,
|
|
13
|
-
id: key.id
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
Object.defineProperty(exports, 'deserializeCreateDataKeyResponse', {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return deserializeCreateDataKeyResponse;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, 'deserializeDecryptDataKeyResponse', {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return deserializeDecryptDataKeyResponse;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=vault-key.serializer-eYptLXG-.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vault-key.serializer-eYptLXG-.cjs","names":[],"sources":["../src/vault/serializers/vault-key.serializer.ts"],"sourcesContent":["import { CreateDataKeyResponse } from '../interfaces/key/create-data-key.interface';\nimport { DecryptDataKeyResponse } from '../interfaces/key/decrypt-data-key.interface';\nimport { DataKey, DataKeyPair } from '../interfaces/key.interface';\n\nexport const deserializeCreateDataKeyResponse = (\n key: CreateDataKeyResponse,\n): DataKeyPair => ({\n context: key.context,\n dataKey: {\n key: key.data_key,\n id: key.id,\n },\n encryptedKeys: key.encrypted_keys,\n});\n\nexport const deserializeDecryptDataKeyResponse = (\n key: DecryptDataKeyResponse,\n): DataKey => ({\n key: key.data_key,\n id: key.id,\n});\n"],"mappings":";;AAIA,MAAa,oCACX,SACiB;CACjB,SAAS,IAAI;CACb,SAAS;EACP,KAAK,IAAI;EACT,IAAI,IAAI;EACT;CACD,eAAe,IAAI;CACpB;AAED,MAAa,qCACX,SACa;CACb,KAAK,IAAI;CACT,IAAI,IAAI;CACT"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/vault/serializers/vault-object.serializer.ts
|
|
3
|
-
const deserializeObjectMetadata = (metadata) => ({
|
|
4
|
-
context: metadata.context,
|
|
5
|
-
environmentId: metadata.environment_id,
|
|
6
|
-
id: metadata.id,
|
|
7
|
-
keyId: metadata.key_id,
|
|
8
|
-
updatedAt: new Date(Date.parse(metadata.updated_at)),
|
|
9
|
-
updatedBy: metadata.updated_by,
|
|
10
|
-
versionId: metadata.version_id
|
|
11
|
-
});
|
|
12
|
-
const deserializeObject = (object) => ({
|
|
13
|
-
id: object.id,
|
|
14
|
-
name: object.name,
|
|
15
|
-
value: object.value,
|
|
16
|
-
metadata: deserializeObjectMetadata(object.metadata)
|
|
17
|
-
});
|
|
18
|
-
const deserializeObjectDigest = (digest) => ({
|
|
19
|
-
id: digest.id,
|
|
20
|
-
name: digest.name,
|
|
21
|
-
updatedAt: new Date(Date.parse(digest.updated_at))
|
|
22
|
-
});
|
|
23
|
-
const deserializeListObjects = (list) => ({
|
|
24
|
-
object: "list",
|
|
25
|
-
data: list.data.map(deserializeObjectDigest),
|
|
26
|
-
listMetadata: {
|
|
27
|
-
after: list.list_metadata.after ?? void 0,
|
|
28
|
-
before: list.list_metadata.before ?? void 0
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const desrializeListObjectVersions = (list) => list.data.map(deserializeObjectVersion);
|
|
32
|
-
const deserializeObjectVersion = (version) => ({
|
|
33
|
-
createdAt: new Date(Date.parse(version.created_at)),
|
|
34
|
-
currentVersion: version.current_version,
|
|
35
|
-
id: version.id
|
|
36
|
-
});
|
|
37
|
-
const serializeCreateObjectEntity = (options) => ({
|
|
38
|
-
name: options.name,
|
|
39
|
-
value: options.value,
|
|
40
|
-
key_context: options.context
|
|
41
|
-
});
|
|
42
|
-
const serializeUpdateObjectEntity = (options) => ({
|
|
43
|
-
value: options.value,
|
|
44
|
-
version_check: options.versionCheck
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
Object.defineProperty(exports, 'deserializeListObjects', {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return deserializeListObjects;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, 'deserializeObject', {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return deserializeObject;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, 'deserializeObjectMetadata', {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return deserializeObjectMetadata;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, 'desrializeListObjectVersions', {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return desrializeListObjectVersions;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, 'serializeCreateObjectEntity', {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return serializeCreateObjectEntity;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, 'serializeUpdateObjectEntity', {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return serializeUpdateObjectEntity;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
//# sourceMappingURL=vault-object.serializer-BZEXkPbG.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vault-object.serializer-BZEXkPbG.cjs","names":[],"sources":["../src/vault/serializers/vault-object.serializer.ts"],"sourcesContent":["import { List, ListResponse } from '../../common/interfaces';\nimport {\n ReadObjectMetadataResponse,\n ReadObjectResponse,\n UpdateObjectOptions,\n UpdateObjectEntity,\n ObjectMetadata,\n VaultObject,\n ObjectVersionResponse,\n ObjectVersion,\n CreateObjectOptions,\n CreateObjectEntity,\n ObjectDigestResponse,\n ObjectDigest,\n ListObjectVersionsResponse,\n} from '../interfaces';\n\nexport const deserializeObjectMetadata = (\n metadata: ReadObjectMetadataResponse,\n): ObjectMetadata => ({\n context: metadata.context,\n environmentId: metadata.environment_id,\n id: metadata.id,\n keyId: metadata.key_id,\n updatedAt: new Date(Date.parse(metadata.updated_at)),\n updatedBy: metadata.updated_by,\n versionId: metadata.version_id,\n});\n\nexport const deserializeObject = (object: ReadObjectResponse): VaultObject => ({\n id: object.id,\n name: object.name,\n value: object.value,\n metadata: deserializeObjectMetadata(object.metadata),\n});\n\nconst deserializeObjectDigest = (\n digest: ObjectDigestResponse,\n): ObjectDigest => ({\n id: digest.id,\n name: digest.name,\n updatedAt: new Date(Date.parse(digest.updated_at)),\n});\n\nexport const deserializeListObjects = (\n list: ListResponse<ObjectDigestResponse>,\n): List<ObjectDigest> => ({\n object: 'list',\n data: list.data.map(deserializeObjectDigest),\n listMetadata: {\n after: list.list_metadata.after ?? undefined,\n before: list.list_metadata.before ?? undefined,\n },\n});\n\nexport const desrializeListObjectVersions = (\n list: ListObjectVersionsResponse,\n): ObjectVersion[] => list.data.map(deserializeObjectVersion);\n\nconst deserializeObjectVersion = (\n version: ObjectVersionResponse,\n): ObjectVersion => ({\n createdAt: new Date(Date.parse(version.created_at)),\n currentVersion: version.current_version,\n id: version.id,\n});\n\nexport const serializeCreateObjectEntity = (\n options: CreateObjectOptions,\n): CreateObjectEntity => ({\n name: options.name,\n value: options.value,\n key_context: options.context,\n});\n\nexport const serializeUpdateObjectEntity = (\n options: UpdateObjectOptions,\n): UpdateObjectEntity => ({\n value: options.value,\n version_check: options.versionCheck,\n});\n"],"mappings":";;AAiBA,MAAa,6BACX,cACoB;CACpB,SAAS,SAAS;CAClB,eAAe,SAAS;CACxB,IAAI,SAAS;CACb,OAAO,SAAS;CAChB,WAAW,IAAI,KAAK,KAAK,MAAM,SAAS,WAAW,CAAC;CACpD,WAAW,SAAS;CACpB,WAAW,SAAS;CACrB;AAED,MAAa,qBAAqB,YAA6C;CAC7E,IAAI,OAAO;CACX,MAAM,OAAO;CACb,OAAO,OAAO;CACd,UAAU,0BAA0B,OAAO,SAAS;CACrD;AAED,MAAM,2BACJ,YACkB;CAClB,IAAI,OAAO;CACX,MAAM,OAAO;CACb,WAAW,IAAI,KAAK,KAAK,MAAM,OAAO,WAAW,CAAC;CACnD;AAED,MAAa,0BACX,UACwB;CACxB,QAAQ;CACR,MAAM,KAAK,KAAK,IAAI,wBAAwB;CAC5C,cAAc;EACZ,OAAO,KAAK,cAAc,SAAS;EACnC,QAAQ,KAAK,cAAc,UAAU;EACtC;CACF;AAED,MAAa,gCACX,SACoB,KAAK,KAAK,IAAI,yBAAyB;AAE7D,MAAM,4BACJ,aACmB;CACnB,WAAW,IAAI,KAAK,KAAK,MAAM,QAAQ,WAAW,CAAC;CACnD,gBAAgB,QAAQ;CACxB,IAAI,QAAQ;CACb;AAED,MAAa,+BACX,aACwB;CACxB,MAAM,QAAQ;CACd,OAAO,QAAQ;CACf,aAAa,QAAQ;CACtB;AAED,MAAa,+BACX,aACwB;CACxB,OAAO,QAAQ;CACf,eAAe,QAAQ;CACxB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/mfa/interfaces/verify-challenge-options.d.ts
|
|
2
|
-
interface VerifyChallengeOptions {
|
|
3
|
-
authenticationChallengeId: string;
|
|
4
|
-
code: string;
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { VerifyChallengeOptions as t };
|
|
8
|
-
//# sourceMappingURL=verify-challenge-options-CbIfj-xU.d.cts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { n as ChallengeResponse, t as Challenge } from "./challenge.interface-BRyoywSw.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/mfa/interfaces/verify-challenge-response.d.ts
|
|
4
|
-
interface VerifyResponse {
|
|
5
|
-
challenge: Challenge;
|
|
6
|
-
valid: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface VerifyResponseResponse {
|
|
9
|
-
challenge: ChallengeResponse;
|
|
10
|
-
valid: boolean;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { VerifyResponseResponse as n, VerifyResponse as t };
|
|
14
|
-
//# sourceMappingURL=verify-challenge-response-BmtVdUEW.d.cts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/user-management/interfaces/verify-email-options.interface.d.ts
|
|
2
|
-
interface VerifyEmailOptions {
|
|
3
|
-
code: string;
|
|
4
|
-
userId: string;
|
|
5
|
-
}
|
|
6
|
-
interface SerializedVerifyEmailOptions {
|
|
7
|
-
code: string;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { VerifyEmailOptions as n, SerializedVerifyEmailOptions as t };
|
|
11
|
-
//# sourceMappingURL=verify-email-options.interface-C84HHtMI.d.cts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { n as VerifyResponseResponse, t as VerifyResponse } from "./verify-challenge-response-BmtVdUEW.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/mfa/serializers/verify-response.serializer.d.ts
|
|
4
|
-
declare const deserializeVerifyResponse: (verifyResponse: VerifyResponseResponse) => VerifyResponse;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { deserializeVerifyResponse as t };
|
|
7
|
-
//# sourceMappingURL=verify-response.serializer-BzA1MzhA.d.cts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region src/fga/interfaces/warning.interface.d.ts
|
|
2
|
-
interface BaseWarning {
|
|
3
|
-
code: string;
|
|
4
|
-
message: string;
|
|
5
|
-
}
|
|
6
|
-
interface MissingContextKeysWarning extends BaseWarning {
|
|
7
|
-
code: 'missing_context_keys';
|
|
8
|
-
keys: string[];
|
|
9
|
-
}
|
|
10
|
-
type Warning = BaseWarning | MissingContextKeysWarning;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { MissingContextKeysWarning as n, Warning as r, BaseWarning as t };
|
|
13
|
-
//# sourceMappingURL=warning.interface-CSsg4mki.d.cts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/fga/interfaces/warrant-op.enum.ts
|
|
3
|
-
let WarrantOp = /* @__PURE__ */ function(WarrantOp$1) {
|
|
4
|
-
WarrantOp$1["Create"] = "create";
|
|
5
|
-
WarrantOp$1["Delete"] = "delete";
|
|
6
|
-
return WarrantOp$1;
|
|
7
|
-
}({});
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
Object.defineProperty(exports, 'WarrantOp', {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return WarrantOp;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
//# sourceMappingURL=warrant-op.enum-GglqG3OS.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warrant-op.enum-GglqG3OS.cjs","names":[],"sources":["../src/fga/interfaces/warrant-op.enum.ts"],"sourcesContent":["export enum WarrantOp {\n Create = 'create',\n Delete = 'delete',\n}\n"],"mappings":";;AAAA,IAAY,kDAAL;AACL;AACA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/fga/interfaces/warrant-token.interface.d.ts
|
|
2
|
-
interface WarrantToken {
|
|
3
|
-
warrantToken: string;
|
|
4
|
-
}
|
|
5
|
-
interface WarrantTokenResponse {
|
|
6
|
-
warrant_token: string;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { WarrantTokenResponse as n, WarrantToken as t };
|
|
10
|
-
//# sourceMappingURL=warrant-token.interface-R40zmb_I.d.cts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { n as WarrantTokenResponse, t as WarrantToken } from "./warrant-token.interface-R40zmb_I.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/fga/serializers/warrant-token.serializer.d.ts
|
|
4
|
-
declare const deserializeWarrantToken: (warrantToken: WarrantTokenResponse) => WarrantToken;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { deserializeWarrantToken as t };
|
|
7
|
-
//# sourceMappingURL=warrant-token.serializer-5-8n-V0R.d.cts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/fga/serializers/warrant-token.serializer.ts
|
|
3
|
-
const deserializeWarrantToken = (warrantToken) => ({ warrantToken: warrantToken.warrant_token });
|
|
4
|
-
|
|
5
|
-
//#endregion
|
|
6
|
-
Object.defineProperty(exports, 'deserializeWarrantToken', {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return deserializeWarrantToken;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=warrant-token.serializer-DcPHu0QA.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warrant-token.serializer-DcPHu0QA.cjs","names":[],"sources":["../src/fga/serializers/warrant-token.serializer.ts"],"sourcesContent":["import {\n WarrantToken,\n WarrantTokenResponse,\n} from '../interfaces/warrant-token.interface';\n\nexport const deserializeWarrantToken = (\n warrantToken: WarrantTokenResponse,\n): WarrantToken => ({\n warrantToken: warrantToken.warrant_token,\n});\n"],"mappings":";;AAKA,MAAa,2BACX,kBACkB,EAClB,cAAc,aAAa,eAC5B"}
|