@workos-inc/node 8.3.1 → 8.5.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-C6LZCoKM.d.cts +18 -0
- package/lib/access-token.serializer-tYgOvBoN.cjs +20 -0
- package/lib/access-token.serializer-tYgOvBoN.cjs.map +1 -0
- package/lib/action.interface-C0C0S3AC.d.cts +63 -0
- package/lib/action.serializer-CWhwCinS.cjs +47 -0
- package/lib/action.serializer-CWhwCinS.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-CVHQXngv.cjs +58 -0
- package/lib/actions-CVHQXngv.cjs.map +1 -0
- package/lib/actions-DuQ9dqQv.d.cts +41 -0
- package/lib/add-environment-role-permission-options.interface-DPQPMlMJ.d.cts +7 -0
- package/lib/add-flag-target-options.interface-Bwr2zybt.d.cts +8 -0
- package/lib/add-organization-role-permission-options.interface-DjcIZCA2.d.cts +7 -0
- package/lib/api-key-required.exception-BR-OrqJz.d.cts +10 -0
- package/lib/api-key.interface-CiHEJPea.d.cts +32 -0
- package/lib/api-key.serializer-2aE2Ya1t.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.cjs +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.cjs +1 -1
- package/lib/api-keys/serializers/created-api-key.serializer.d.cts +1 -1
- package/lib/api-keys/serializers/index.cjs +2 -2
- 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-OJfN1xfX.d.cts +780 -0
- package/lib/app-info.interface-C8Yk9_lU.d.cts +8 -0
- package/lib/assign-role-options.interface-EodzUpo8.d.cts +19 -0
- package/lib/assign-role-options.serializer-Bt2btRso.cjs +19 -0
- package/lib/assign-role-options.serializer-Bt2btRso.cjs.map +1 -0
- package/lib/assign-role-options.serializer-CZ8yPE31.d.cts +7 -0
- package/lib/audit-log-export-options.interface--M_PWQFX.d.cts +22 -0
- package/lib/audit-log-export-options.serializer-BOeLgBJq.d.cts +7 -0
- package/lib/audit-log-export-options.serializer-DAwtL9MV.cjs +20 -0
- package/lib/audit-log-export-options.serializer-DAwtL9MV.cjs.map +1 -0
- package/lib/audit-log-export.interface-DD4KnnW3.d.cts +20 -0
- package/lib/audit-log-export.serializer-BKTHwAcR.d.cts +7 -0
- package/lib/audit-log-export.serializer-DyItrRKD.cjs +19 -0
- package/lib/audit-log-export.serializer-DyItrRKD.cjs.map +1 -0
- package/lib/audit-logs/audit-logs.cjs +1 -1
- 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.cjs +1 -1
- package/lib/audit-logs/serializers/audit-log-export-options.serializer.d.cts +1 -1
- package/lib/audit-logs/serializers/audit-log-export.serializer.cjs +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.cjs +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.cjs +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.cjs +1 -1
- package/lib/audit-logs/serializers/create-audit-log-schema.serializer.d.cts +1 -1
- package/lib/audit-logs/serializers/index.cjs +5 -5
- package/lib/audit-logs/serializers/index.d.cts +5 -5
- package/lib/audit-logs-BXPMHkYl.cjs +43 -0
- package/lib/audit-logs-BXPMHkYl.cjs.map +1 -0
- package/lib/authenticate-with-code-and-verifier-options.interface-DW8HBYmR.d.cts +17 -0
- package/lib/authenticate-with-code-and-verifier-options.serializer-DvwpALlU.d.cts +8 -0
- package/lib/authenticate-with-code-options.interface-H0yfsHxj.d.cts +20 -0
- package/lib/authenticate-with-code-options.serializer-k5aSKScw.d.cts +8 -0
- package/lib/authenticate-with-email-verification-options.interface-bntD5tLo.d.cts +18 -0
- package/lib/authenticate-with-email-verification.serializer-BcGBk2xZ.cjs +20 -0
- package/lib/authenticate-with-email-verification.serializer-BcGBk2xZ.cjs.map +1 -0
- package/lib/authenticate-with-magic-auth-options.interface-DKiBkjxK.d.cts +22 -0
- package/lib/authenticate-with-magic-auth-options.serializer-CTabjcIp.d.cts +8 -0
- package/lib/authenticate-with-options-base.interface-C3xH9pmi.d.cts +41 -0
- package/lib/authenticate-with-organization-selection-options.serializer-DY4N430u.cjs +20 -0
- package/lib/authenticate-with-organization-selection-options.serializer-DY4N430u.cjs.map +1 -0
- package/lib/authenticate-with-organization-selection.interface-BjNOboud.d.cts +18 -0
- package/lib/authenticate-with-password-options.interface-CBzERAqt.d.cts +20 -0
- package/lib/authenticate-with-password-options.serializer-Dzjg_r_v.d.cts +8 -0
- package/lib/authenticate-with-refresh-token-options.interface-Bc0KcSmQ.d.cts +18 -0
- package/lib/authenticate-with-refresh-token-public-client-options.interface-BUR1ShKn.d.cts +16 -0
- package/lib/authenticate-with-refresh-token-public-client-options.serializer-D5G70-Wh.d.cts +8 -0
- package/lib/authenticate-with-refresh-token.options.serializer-DSpCTh6M.d.cts +9 -0
- package/lib/authenticate-with-session-cookie.interface--Ugw1Meh.d.cts +45 -0
- package/lib/authenticate-with-session-cookie.interface-jDv8x_VH.cjs +17 -0
- package/lib/authenticate-with-session-cookie.interface-jDv8x_VH.cjs.map +1 -0
- package/lib/authenticate-with-totp-options.interface-CBZmKTjf.d.cts +20 -0
- package/lib/authenticate-with-totp-options.serializer-BV9NMqo_.d.cts +8 -0
- package/lib/authentication-event.interface-Bf03cz-8.d.cts +28 -0
- package/lib/authentication-event.serializer-BHTuuzSf.d.cts +7 -0
- package/lib/authentication-radar-risk-detected-event.interface-B4L-0H-B.d.cts +24 -0
- package/lib/authentication-response.interface-B5XOTdYu.d.cts +28 -0
- package/lib/authentication-response.serializer-CL0jlYDc.d.cts +7 -0
- package/lib/authorization/authorization.cjs +1 -1
- package/lib/authorization/authorization.d.cts +1 -1
- package/lib/authorization/authorization.d.ts +32 -0
- package/lib/authorization/authorization.js +117 -0
- package/lib/authorization/authorization.js.map +1 -1
- package/lib/authorization/index.cjs +1 -1
- package/lib/authorization/index.d.cts +32 -17
- package/lib/authorization/index.d.ts +16 -1
- package/lib/authorization/interfaces/add-environment-role-permission-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/add-organization-role-permission-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/assign-role-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/assign-role-options.interface.d.ts +19 -0
- package/lib/authorization/interfaces/assign-role-options.interface.js +1 -0
- package/lib/authorization/interfaces/authorization-resource-check.interface.d.cts +2 -0
- package/lib/authorization/interfaces/authorization-resource-check.interface.d.ts +22 -0
- package/lib/authorization/interfaces/authorization-resource-check.interface.js +1 -0
- package/lib/authorization/interfaces/authorization-resource-identifier.interface.d.cts +2 -0
- package/lib/authorization/interfaces/authorization-resource-identifier.interface.d.ts +11 -0
- package/lib/authorization/interfaces/authorization-resource-identifier.interface.js +1 -0
- package/lib/authorization/interfaces/authorization-resource.interface.d.cts +2 -0
- package/lib/authorization/interfaces/authorization-resource.interface.d.ts +78 -0
- package/lib/authorization/interfaces/authorization-resource.interface.js +1 -0
- package/lib/authorization/interfaces/create-environment-role-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/create-organization-role-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/create-permission-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/delete-authorization-resource-by-external-id-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/delete-authorization-resource-by-external-id-options.interface.d.ts +10 -0
- package/lib/authorization/interfaces/delete-authorization-resource-by-external-id-options.interface.js +1 -0
- package/lib/authorization/interfaces/delete-authorization-resource-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/delete-authorization-resource-options.interface.d.ts +8 -0
- package/lib/authorization/interfaces/delete-authorization-resource-options.interface.js +1 -0
- package/lib/authorization/interfaces/environment-role.interface.d.cts +1 -1
- package/lib/authorization/interfaces/get-authorization-resource-by-external-id-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/get-authorization-resource-by-external-id-options.interface.d.ts +9 -0
- package/lib/authorization/interfaces/get-authorization-resource-by-external-id-options.interface.js +1 -0
- package/lib/authorization/interfaces/index.d.cts +31 -16
- package/lib/authorization/interfaces/index.d.ts +16 -1
- package/lib/authorization/interfaces/list-authorization-resources-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/list-authorization-resources-options.interface.d.ts +22 -0
- package/lib/authorization/interfaces/list-authorization-resources-options.interface.js +1 -0
- package/lib/authorization/interfaces/list-memberships-for-resource-by-external-id-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/list-memberships-for-resource-by-external-id-options.interface.d.ts +13 -0
- package/lib/authorization/interfaces/list-memberships-for-resource-by-external-id-options.interface.js +1 -0
- package/lib/authorization/interfaces/list-memberships-for-resource-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/list-memberships-for-resource-options.interface.d.ts +11 -0
- package/lib/authorization/interfaces/list-memberships-for-resource-options.interface.js +1 -0
- package/lib/authorization/interfaces/list-permissions-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/list-resources-for-membership-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/list-resources-for-membership-options.interface.d.ts +24 -0
- package/lib/authorization/interfaces/list-resources-for-membership-options.interface.js +1 -0
- package/lib/authorization/interfaces/list-role-assignments-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/list-role-assignments-options.interface.d.ts +9 -0
- package/lib/authorization/interfaces/list-role-assignments-options.interface.js +1 -0
- package/lib/authorization/interfaces/organization-role.interface.d.cts +1 -1
- package/lib/authorization/interfaces/permission.interface.d.cts +1 -1
- package/lib/authorization/interfaces/remove-organization-role-permission-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/remove-role-assignment-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/remove-role-assignment-options.interface.d.ts +8 -0
- package/lib/authorization/interfaces/remove-role-assignment-options.interface.js +1 -0
- package/lib/authorization/interfaces/remove-role-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/remove-role-options.interface.d.ts +19 -0
- package/lib/authorization/interfaces/remove-role-options.interface.js +1 -0
- package/lib/authorization/interfaces/role-assignment.interface.d.cts +2 -0
- package/lib/authorization/interfaces/role-assignment.interface.d.ts +49 -0
- package/lib/authorization/interfaces/role-assignment.interface.js +1 -0
- package/lib/authorization/interfaces/set-environment-role-permissions-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/set-organization-role-permissions-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/update-authorization-resource-by-external-id-options.interface.d.cts +2 -0
- package/lib/authorization/interfaces/update-authorization-resource-by-external-id-options.interface.d.ts +11 -0
- package/lib/authorization/interfaces/update-authorization-resource-by-external-id-options.interface.js +1 -0
- package/lib/authorization/interfaces/update-environment-role-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/update-organization-role-options.interface.d.cts +1 -1
- package/lib/authorization/interfaces/update-permission-options.interface.d.cts +1 -1
- package/lib/authorization/serializers/assign-role-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/assign-role-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/assign-role-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/assign-role-options.serializer.js +13 -0
- package/lib/authorization/serializers/assign-role-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/authorization-check-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/authorization-check-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/authorization-check-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/authorization-check-options.serializer.js +13 -0
- package/lib/authorization/serializers/authorization-check-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/authorization-resource.serializer.cjs +3 -0
- package/lib/authorization/serializers/authorization-resource.serializer.d.cts +2 -0
- package/lib/authorization/serializers/authorization-resource.serializer.d.ts +7 -0
- package/lib/authorization/serializers/authorization-resource.serializer.js +17 -0
- package/lib/authorization/serializers/authorization-resource.serializer.js.map +1 -0
- package/lib/authorization/serializers/create-authorization-resource-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/create-authorization-resource-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/create-authorization-resource-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/create-authorization-resource-options.serializer.js +17 -0
- package/lib/authorization/serializers/create-authorization-resource-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/create-environment-role-options.serializer.cjs +1 -1
- package/lib/authorization/serializers/create-environment-role-options.serializer.d.cts +1 -1
- package/lib/authorization/serializers/create-organization-role-options.serializer.cjs +1 -1
- package/lib/authorization/serializers/create-organization-role-options.serializer.d.cts +1 -1
- package/lib/authorization/serializers/create-permission-options.serializer.cjs +1 -1
- package/lib/authorization/serializers/create-permission-options.serializer.d.cts +1 -1
- package/lib/authorization/serializers/environment-role.serializer.cjs +1 -1
- package/lib/authorization/serializers/environment-role.serializer.d.cts +1 -1
- package/lib/authorization/serializers/index.cjs +32 -9
- package/lib/authorization/serializers/index.d.cts +21 -10
- package/lib/authorization/serializers/index.d.ts +13 -2
- package/lib/authorization/serializers/index.js +13 -2
- package/lib/authorization/serializers/list-authorization-resources-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/list-authorization-resources-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/list-authorization-resources-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/list-authorization-resources-options.serializer.js +16 -0
- package/lib/authorization/serializers/list-authorization-resources-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/list-memberships-for-resource-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/list-memberships-for-resource-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/list-memberships-for-resource-options.serializer.d.ts +9 -0
- package/lib/authorization/serializers/list-memberships-for-resource-options.serializer.js +12 -0
- package/lib/authorization/serializers/list-memberships-for-resource-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/list-resources-for-membership-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/list-resources-for-membership-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/list-resources-for-membership-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/list-resources-for-membership-options.serializer.js +16 -0
- package/lib/authorization/serializers/list-resources-for-membership-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/organization-role.serializer.cjs +2 -1
- package/lib/authorization/serializers/organization-role.serializer.d.cts +2 -2
- package/lib/authorization/serializers/organization-role.serializer.d.ts +3 -2
- package/lib/authorization/serializers/organization-role.serializer.js +12 -1
- package/lib/authorization/serializers/organization-role.serializer.js.map +1 -1
- package/lib/authorization/serializers/permission.serializer.d.cts +1 -1
- package/lib/authorization/serializers/remove-role-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/remove-role-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/remove-role-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/remove-role-options.serializer.js +13 -0
- package/lib/authorization/serializers/remove-role-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/role-assignment.serializer.cjs +3 -0
- package/lib/authorization/serializers/role-assignment.serializer.d.cts +2 -0
- package/lib/authorization/serializers/role-assignment.serializer.d.ts +7 -0
- package/lib/authorization/serializers/role-assignment.serializer.js +17 -0
- package/lib/authorization/serializers/role-assignment.serializer.js.map +1 -0
- package/lib/authorization/serializers/update-authorization-resource-by-external-id-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/update-authorization-resource-by-external-id-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/update-authorization-resource-by-external-id-options.serializer.d.ts +8 -0
- package/lib/authorization/serializers/update-authorization-resource-by-external-id-options.serializer.js +9 -0
- package/lib/authorization/serializers/update-authorization-resource-by-external-id-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/update-authorization-resource-options.serializer.cjs +3 -0
- package/lib/authorization/serializers/update-authorization-resource-options.serializer.d.cts +2 -0
- package/lib/authorization/serializers/update-authorization-resource-options.serializer.d.ts +7 -0
- package/lib/authorization/serializers/update-authorization-resource-options.serializer.js +9 -0
- package/lib/authorization/serializers/update-authorization-resource-options.serializer.js.map +1 -0
- package/lib/authorization/serializers/update-environment-role-options.serializer.cjs +1 -1
- package/lib/authorization/serializers/update-environment-role-options.serializer.d.cts +1 -1
- package/lib/authorization/serializers/update-organization-role-options.serializer.cjs +1 -1
- package/lib/authorization/serializers/update-organization-role-options.serializer.d.cts +1 -1
- package/lib/authorization/serializers/update-permission-options.serializer.cjs +1 -1
- package/lib/authorization/serializers/update-permission-options.serializer.d.cts +1 -1
- package/lib/authorization-Ccp2pNRF.cjs +228 -0
- package/lib/authorization-Ccp2pNRF.cjs.map +1 -0
- package/lib/authorization-check-options.serializer-BD_SSghP.cjs +19 -0
- package/lib/authorization-check-options.serializer-BD_SSghP.cjs.map +1 -0
- package/lib/authorization-check-options.serializer-BU8vA2RG.d.cts +7 -0
- package/lib/authorization-resource-check.interface-BTZ0DC-5.d.cts +22 -0
- package/lib/authorization-resource-identifier.interface-BxMAEe4m.d.cts +11 -0
- package/lib/authorization-resource.interface-DIAEcvVn.d.cts +78 -0
- package/lib/authorization-resource.serializer-B5pMimLt.cjs +23 -0
- package/lib/authorization-resource.serializer-B5pMimLt.cjs.map +1 -0
- package/lib/authorization-resource.serializer-D2-I6HsO.d.cts +7 -0
- package/lib/authorization-url-options.interface-DbdK4xoe.d.cts +45 -0
- package/lib/authorization-url-options.interface-jpmqnJeg.d.cts +55 -0
- package/lib/bad-request.exception-Dr0eSa0O.d.cts +25 -0
- package/lib/base64-DtRxstGt.cjs +44 -0
- package/lib/base64-DtRxstGt.cjs.map +1 -0
- package/lib/batch-write-resources-options.serializer-AOQbeleT.d.cts +7 -0
- package/lib/batch-write-resources-options.serializer-JVsYFsRR.cjs +23 -0
- package/lib/batch-write-resources-options.serializer-JVsYFsRR.cjs.map +1 -0
- package/lib/challenge-factor-options-1PMSJeef.d.cts +10 -0
- package/lib/challenge.interface-UNMAxHWR.d.cts +22 -0
- package/lib/challenge.serializer-B3MYXnw3.cjs +20 -0
- package/lib/challenge.serializer-B3MYXnw3.cjs.map +1 -0
- package/lib/challenge.serializer-DgCPxnMb.d.cts +7 -0
- package/lib/check-op.enum-C-8dV-An.cjs +16 -0
- package/lib/check-op.enum-C-8dV-An.cjs.map +1 -0
- package/lib/check-op.enum-rHoL_au9.d.cts +8 -0
- package/lib/check-options.serializer-5pk3sfuU.d.cts +9 -0
- package/lib/check-options.serializer-DUP1MOAn.cjs +69 -0
- package/lib/check-options.serializer-DUP1MOAn.cjs.map +1 -0
- package/lib/check.interface-CiNYxsPC.d.cts +88 -0
- package/lib/check.interface-DatRG9HP.cjs +33 -0
- package/lib/check.interface-DatRG9HP.cjs.map +1 -0
- package/lib/common/crypto/crypto-provider.cjs +1 -1
- package/lib/common/crypto/crypto-provider.d.cts +1 -1
- package/lib/common/crypto/seal.cjs +1 -1
- package/lib/common/crypto/signature-provider.cjs +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/event.interface.d.ts +7 -8
- 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 +11 -11
- 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 +1 -1
- 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/event.serializer.js +2 -2
- package/lib/common/serializers/event.serializer.js.map +1 -1
- package/lib/common/serializers/index.cjs +4 -2
- package/lib/common/serializers/index.d.cts +4 -3
- package/lib/common/serializers/index.d.ts +2 -1
- package/lib/common/serializers/index.js +2 -1
- package/lib/common/serializers/list.serializer.d.cts +1 -1
- package/lib/common/serializers/pagination-options.serializer.cjs +3 -0
- package/lib/common/serializers/pagination-options.serializer.d.cts +2 -0
- package/lib/common/serializers/pagination-options.serializer.d.ts +7 -0
- package/lib/common/serializers/pagination-options.serializer.js +11 -0
- package/lib/common/serializers/pagination-options.serializer.js.map +1 -0
- package/lib/common/utils/base64.cjs +1 -1
- package/lib/common/utils/env.cjs +1 -1
- package/lib/common/utils/fetch-and-deserialize.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/query-string.cjs +1 -1
- package/lib/common/utils/runtime-info.cjs +1 -1
- package/lib/common/utils/unreachable.cjs +1 -1
- package/lib/conflict.exception-DNThkhe4.cjs +23 -0
- package/lib/conflict.exception-DNThkhe4.cjs.map +1 -0
- package/lib/connection-type.enum-5NICh5Uu.d.cts +41 -0
- package/lib/connection-type.enum-blH7z4Tf.cjs +49 -0
- package/lib/connection-type.enum-blH7z4Tf.cjs.map +1 -0
- package/lib/connection.interface-CYEbF9mD.d.cts +33 -0
- package/lib/connection.serializer-CrL-OTu7.d.cts +7 -0
- package/lib/create-audit-log-event-options.interface-BMImi3Ph.d.cts +43 -0
- package/lib/create-audit-log-event-options.serializer-BN3OcEy6.d.cts +7 -0
- package/lib/create-audit-log-event-options.serializer-CPNm7TaF.cjs +23 -0
- package/lib/create-audit-log-event-options.serializer-CPNm7TaF.cjs.map +1 -0
- package/lib/create-audit-log-schema-options.interface-DEw2JEw9.d.cts +67 -0
- package/lib/create-audit-log-schema-options.serializer-BmI7ebQD.cjs +38 -0
- package/lib/create-audit-log-schema-options.serializer-BmI7ebQD.cjs.map +1 -0
- package/lib/create-audit-log-schema-options.serializer-DPBryixD.d.cts +7 -0
- package/lib/create-audit-log-schema.serializer-W9V-e22z.d.cts +7 -0
- package/lib/create-audit-log-schema.serializer-_Ku0Ixdh.cjs +32 -0
- package/lib/create-audit-log-schema.serializer-_Ku0Ixdh.cjs.map +1 -0
- package/lib/create-authorization-resource-options.serializer-BIbK4rxC.cjs +23 -0
- package/lib/create-authorization-resource-options.serializer-BIbK4rxC.cjs.map +1 -0
- package/lib/create-authorization-resource-options.serializer-IpNLeVGk.d.cts +7 -0
- package/lib/create-data-key.interface-B-aytYEd.d.cts +15 -0
- package/lib/create-environment-role-options.interface-D4HEg3bl.d.cts +14 -0
- package/lib/create-environment-role-options.serializer-C93Da-yB.cjs +16 -0
- package/lib/create-environment-role-options.serializer-C93Da-yB.cjs.map +1 -0
- package/lib/create-environment-role-options.serializer-iP8V6vTu.d.cts +7 -0
- package/lib/create-magic-auth-options.interface-Ducd6OEm.d.cts +12 -0
- package/lib/create-magic-auth-options.serializer-DEGZ1Mas.d.cts +7 -0
- package/lib/create-object.interface-Bm7L0wKq.d.cts +16 -0
- package/lib/create-organization-api-key-options.serializer-BF4uMC-l.d.cts +7 -0
- package/lib/create-organization-api-key-options.serializer-CEub4G8x.cjs +17 -0
- package/lib/create-organization-api-key-options.serializer-CEub4G8x.cjs.map +1 -0
- package/lib/create-organization-domain-options.interface-BA0FNfqD.d.cts +12 -0
- package/lib/create-organization-domain-options.serializer-CmbATv0L.cjs +15 -0
- package/lib/create-organization-domain-options.serializer-CmbATv0L.cjs.map +1 -0
- package/lib/create-organization-membership-options.interface-Ce6O3qzL.d.cts +16 -0
- package/lib/create-organization-membership-options.serializer-BdcjvCRS.cjs +17 -0
- package/lib/create-organization-membership-options.serializer-BdcjvCRS.cjs.map +1 -0
- package/lib/create-organization-options.serializer-DLUDlaQA.d.cts +7 -0
- package/lib/create-organization-role-options.interface-Cl-_2QsZ.d.cts +14 -0
- package/lib/create-organization-role-options.serializer-BSk0I9Yx.cjs +16 -0
- package/lib/create-organization-role-options.serializer-BSk0I9Yx.cjs.map +1 -0
- package/lib/create-organization-role-options.serializer-DHxEokgq.d.cts +7 -0
- package/lib/create-password-reset-options.interface-_azhiyDG.d.cts +10 -0
- package/lib/create-password-reset-options.serializer-CbLK2YKw.d.cts +7 -0
- package/lib/create-passwordless-session-options.interface-BPq-a_ff.d.cts +20 -0
- package/lib/create-permission-options.interface-D-ZUSfo3.d.cts +14 -0
- package/lib/create-permission-options.serializer-DxzSil89.cjs +16 -0
- package/lib/create-permission-options.serializer-DxzSil89.cjs.map +1 -0
- package/lib/create-permission-options.serializer-XB51F9aI.d.cts +7 -0
- package/lib/create-resource-options.serializer-BykgeGKC.cjs +17 -0
- package/lib/create-resource-options.serializer-BykgeGKC.cjs.map +1 -0
- package/lib/create-resource-options.serializer-wt7jffzB.d.cts +7 -0
- package/lib/create-user-options.interface-C5A9ZFXJ.d.cts +28 -0
- package/lib/create-user-options.serializer-BP4YGU-1.d.cts +7 -0
- package/lib/created-api-key.interface-Dskf-Dpu.d.cts +34 -0
- package/lib/created-api-key.serializer-BPumuXR6.cjs +25 -0
- package/lib/created-api-key.serializer-BPumuXR6.cjs.map +1 -0
- package/lib/created-api-key.serializer-Btz_bpl-.d.cts +7 -0
- package/lib/crypto-provider-Bhd3lKp3.cjs +18 -0
- package/lib/crypto-provider-Bhd3lKp3.cjs.map +1 -0
- package/lib/crypto-provider-EnxiazDt.d.cts +75 -0
- package/lib/decrypt-data-key.interface-BuI1is1m.d.cts +11 -0
- package/lib/delete-authorization-resource-by-external-id-options.interface-BvZqYnwY.d.cts +10 -0
- package/lib/delete-authorization-resource-options.interface-BADx9Ibk.d.cts +8 -0
- package/lib/delete-object.interface-BJMqWLai.d.cts +7 -0
- package/lib/delete-resource-options.serializer-C_7j-llT.d.cts +7 -0
- package/lib/delete-resource-options.serializer-DhOS6WiW.cjs +16 -0
- package/lib/delete-resource-options.serializer-DhOS6WiW.cjs.map +1 -0
- package/lib/directory-group.interface-Ds7hJJCb.d.cts +24 -0
- package/lib/directory-group.serializer-0TKalsuT.d.cts +8 -0
- package/lib/directory-sync/directory-sync.cjs +1 -1
- 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-sync-BGWLeGge.cjs +46 -0
- package/lib/directory-sync-BGWLeGge.cjs.map +1 -0
- package/lib/directory-user.serializer-BYRUfzrl.d.cts +9 -0
- package/lib/directory.interface-oSn1IaAq.d.cts +60 -0
- package/lib/directory.serializer-v_PXRd7z.d.cts +10 -0
- package/lib/domain-data.interface-DM-kcHV9.d.cts +12 -0
- package/lib/domain-data.interface-kHXPqpDJ.cjs +16 -0
- package/lib/domain-data.interface-kHXPqpDJ.cjs.map +1 -0
- package/lib/email-verification.interface-DoXRDBkX.d.cts +42 -0
- package/lib/email-verification.serializer-WFRMhGvJ.d.cts +8 -0
- package/lib/enroll-auth-factor-options.serializer-D4C-tOTm.d.cts +7 -0
- package/lib/enroll-auth-factor.interface-BsXY6399.d.cts +17 -0
- package/lib/enroll-factor-options-Dj9Vl-kp.d.cts +14 -0
- package/lib/env-CFSscuz_.cjs +62 -0
- package/lib/env-CFSscuz_.cjs.map +1 -0
- package/lib/environment-role.interface-D1iWLXE9.d.cts +34 -0
- package/lib/environment-role.serializer-BC82fir5.d.cts +7 -0
- package/lib/environment-role.serializer-CIiNX92v.cjs +22 -0
- package/lib/environment-role.serializer-CIiNX92v.cjs.map +1 -0
- package/lib/event.serializer-CUdxp9OM.d.cts +7 -0
- package/lib/event.serializer-sODBRJP0.cjs +196 -0
- package/lib/event.serializer-sODBRJP0.cjs.map +1 -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.cjs +1 -1
- package/lib/events/serializers/index.d.cts +1 -1
- package/lib/events/serializers/list-event-options.serializer.cjs +1 -1
- package/lib/events/serializers/list-event-options.serializer.d.cts +1 -1
- package/lib/events-CgfiCVFD.cjs +23 -0
- package/lib/events-CgfiCVFD.cjs.map +1 -0
- package/lib/factor.interface-DPOR4t5-.d.cts +44 -0
- package/lib/factor.interface-TCY5UjaZ.d.cts +42 -0
- package/lib/factor.serializer-CJyyyOEq.d.cts +8 -0
- package/lib/factor.serializer-DozaVLbI.d.cts +8 -0
- package/lib/factor.serializer-jvpYENTq.cjs +37 -0
- package/lib/factor.serializer-jvpYENTq.cjs.map +1 -0
- package/lib/factory-DWGULNUv.cjs +15 -0
- package/lib/factory-DWGULNUv.cjs.map +1 -0
- package/lib/factory.cjs +6 -6
- package/lib/factory.d.cts +1 -1
- package/lib/feature-flag.interface-DDrAgky3.d.cts +28 -0
- package/lib/feature-flag.serializer-3aiAgB2_.d.cts +7 -0
- package/lib/feature-flag.serializer-Cs7qjKgp.cjs +23 -0
- package/lib/feature-flag.serializer-Cs7qjKgp.cjs.map +1 -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.cjs +1 -1
- package/lib/feature-flags/serializers/feature-flag.serializer.d.cts +1 -1
- package/lib/feature-flags/serializers/index.cjs +1 -1
- package/lib/feature-flags/serializers/index.d.cts +1 -1
- package/lib/feature-flags-D0BnuozI.cjs +42 -0
- package/lib/feature-flags-D0BnuozI.cjs.map +1 -0
- package/lib/fetch-and-deserialize-Ba2wR4ur.cjs +25 -0
- package/lib/fetch-and-deserialize-Ba2wR4ur.cjs.map +1 -0
- package/lib/fetch-and-deserialize-list-DRAoVbMj.cjs +19 -0
- package/lib/fetch-and-deserialize-list-DRAoVbMj.cjs.map +1 -0
- package/lib/fetch-client-Br9ipQ8n.cjs +200 -0
- package/lib/fetch-client-Br9ipQ8n.cjs.map +1 -0
- package/lib/fga/fga.cjs +1 -1
- package/lib/fga/fga.d.cts +1 -1
- package/lib/fga/fga.d.ts +4 -0
- package/lib/fga/fga.js +4 -0
- package/lib/fga/fga.js.map +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-BXWRwaKi.cjs +87 -0
- package/lib/fga-BXWRwaKi.cjs.map +1 -0
- package/lib/fga-paginatable-C0a-1wD-.cjs +22 -0
- package/lib/fga-paginatable-C0a-1wD-.cjs.map +1 -0
- package/lib/fga-paginatable-DYGgFxzL.d.cts +14 -0
- package/lib/generate-portal-link-intent.interface-BQMOkPft.d.cts +12 -0
- package/lib/generate-portal-link-intent.interface-CCKgsr2O.cjs +20 -0
- package/lib/generate-portal-link-intent.interface-CCKgsr2O.cjs.map +1 -0
- package/lib/generic-server.exception-C_jhVvki.d.cts +14 -0
- package/lib/get-access-token.interface-COCgEGF_.d.cts +32 -0
- package/lib/get-access-token.serializer-BkuD5POO.cjs +34 -0
- package/lib/get-access-token.serializer-BkuD5POO.cjs.map +1 -0
- package/lib/get-authorization-resource-by-external-id-options.interface-Qnp6DQk8.d.cts +9 -0
- package/lib/get-options.interface-DoL0T9e1.d.cts +11 -0
- package/lib/get-profile-and-token-options.interface-BTmM6245.d.cts +14 -0
- package/lib/get-profile-options.interface-BJLekz2p.d.cts +7 -0
- package/lib/get-token-CVW25jmW.cjs +23 -0
- package/lib/get-token-CVW25jmW.cjs.map +1 -0
- package/lib/get-token-xmqdj8Zh.d.cts +23 -0
- package/lib/http-client-DZQxEd4J.cjs +96 -0
- package/lib/http-client-DZQxEd4J.cjs.map +1 -0
- package/lib/http-client-tGbZ0v6f.d.cts +56 -0
- package/lib/http-client.interface-B5Hj5nF-.d.cts +24 -0
- package/lib/identity.interface-BwHBiRFv.d.cts +14 -0
- package/lib/identity.serializer-B-QbTGfi.cjs +20 -0
- package/lib/identity.serializer-B-QbTGfi.cjs.map +1 -0
- package/lib/impersonator.interface-CGlMZ9vr.d.cts +12 -0
- package/lib/index-BIw0X_SV.d.cts +814 -0
- package/lib/index.cjs +20 -20
- package/lib/index.d.cts +157 -142
- package/lib/index.d.ts +18 -3
- package/lib/index.worker.cjs +20 -20
- package/lib/index.worker.d.cts +135 -120
- package/lib/index.worker.d.ts +18 -3
- package/lib/interface-check-DXnd6tn3.cjs +23 -0
- package/lib/interface-check-DXnd6tn3.cjs.map +1 -0
- package/lib/invitation.interface-BwZhU4Nq.d.cts +64 -0
- package/lib/invitation.serializer-EDopn96N.d.cts +8 -0
- package/lib/jose-BhyqkBqW.cjs +27 -0
- package/lib/jose-BhyqkBqW.cjs.map +1 -0
- package/lib/key.interface-DWikImzG.d.cts +16 -0
- package/lib/leb128-DvqSoSLE.cjs +82 -0
- package/lib/leb128-DvqSoSLE.cjs.map +1 -0
- package/lib/list-authorization-resources-options.interface-DGEUHL6V.d.cts +22 -0
- package/lib/list-authorization-resources-options.serializer-BnhrvHcU.cjs +21 -0
- package/lib/list-authorization-resources-options.serializer-BnhrvHcU.cjs.map +1 -0
- package/lib/list-authorization-resources-options.serializer-LWnyxV9R.d.cts +7 -0
- package/lib/list-connections-options.interface-DVXp4re1.d.cts +17 -0
- package/lib/list-connections-options.serializer-oZKaQIbM.d.cts +7 -0
- package/lib/list-directories-options.interface-CcEf0ljy.d.cts +14 -0
- package/lib/list-directories-options.serializer-wDBlMx46.d.cts +7 -0
- package/lib/list-directory-users-options.interface-ByCIBUjA.d.cts +10 -0
- package/lib/list-event-options.serializer-DFGqBMuU.d.cts +7 -0
- package/lib/list-event-options.serializer-qthqqVlR.cjs +19 -0
- package/lib/list-event-options.serializer-qthqqVlR.cjs.map +1 -0
- package/lib/list-events-options.interface-D6nLmJQl.d.cts +22 -0
- package/lib/list-feature-flags-options.interface-BDzOTdye.d.cts +7 -0
- package/lib/list-groups-options.interface-DjW5LHiP.d.cts +10 -0
- package/lib/list-invitations-options.serializer-BjpU4ZDR.cjs +19 -0
- package/lib/list-invitations-options.serializer-BjpU4ZDR.cjs.map +1 -0
- package/lib/list-memberships-for-resource-by-external-id-options.interface-2SPYpjXz.d.cts +13 -0
- package/lib/list-memberships-for-resource-options.interface-DYjL4T-O.d.cts +11 -0
- package/lib/list-memberships-for-resource-options.serializer-CZyTun33.d.cts +9 -0
- package/lib/list-memberships-for-resource-options.serializer-DdyDG2lm.cjs +17 -0
- package/lib/list-memberships-for-resource-options.serializer-DdyDG2lm.cjs.map +1 -0
- package/lib/list-object-versions.interface-BIpsoYSF.d.cts +12 -0
- package/lib/list-objects.interface-5d1Vw7Kl.d.cts +9 -0
- package/lib/list-organization-api-keys-options.interface-DP6NjvYw.d.cts +9 -0
- package/lib/list-organization-feature-flags-options.interface-BuY-zNS_.d.cts +9 -0
- package/lib/list-organization-memberships-options.serializer-CLDG_9Kn.cjs +20 -0
- package/lib/list-organization-memberships-options.serializer-CLDG_9Kn.cjs.map +1 -0
- package/lib/list-organization-roles-options.interface-DmY9jVcp.d.cts +7 -0
- package/lib/list-organizations-options.interface-CR5m7YfR.d.cts +9 -0
- package/lib/list-resources-for-membership-options.interface-BxIdPPlj.d.cts +24 -0
- package/lib/list-resources-for-membership-options.serializer--NGDy2ss.cjs +21 -0
- package/lib/list-resources-for-membership-options.serializer--NGDy2ss.cjs.map +1 -0
- package/lib/list-resources-for-membership-options.serializer-Cz9gPByQ.d.cts +7 -0
- package/lib/list-resources-options.serializer-iHnbemUA.cjs +19 -0
- package/lib/list-resources-options.serializer-iHnbemUA.cjs.map +1 -0
- package/lib/list-resources-options.serializer-rf5arsbR.d.cts +7 -0
- package/lib/list-role-assignments-options.interface-CitVe5-E.d.cts +9 -0
- package/lib/list-sessions-options.interface-rRvxj4no.d.cts +8 -0
- package/lib/list-sessions-options.serializer-Bt-16Y8Y.d.cts +7 -0
- package/lib/list-users-options.interface-BrZWq49H.d.cts +14 -0
- package/lib/list-users-options.serializer-4-_RN0tZ.cjs +19 -0
- package/lib/list-users-options.serializer-4-_RN0tZ.cjs.map +1 -0
- package/lib/list-warrants-options.serializer-CQnwwLKg.cjs +21 -0
- package/lib/list-warrants-options.serializer-CQnwwLKg.cjs.map +1 -0
- package/lib/list-warrants-options.serializer-DXo_srPx.d.cts +7 -0
- package/lib/list.interface-BMsjwGOu.d.cts +20 -0
- package/lib/list.interface-BzCMY9Yg.d.cts +13 -0
- package/lib/list.serializer-BGYIG8Hl.d.cts +10 -0
- package/lib/list.serializer-DIHSqY98.cjs +17 -0
- package/lib/list.serializer-DIHSqY98.cjs.map +1 -0
- package/lib/list.serializer-DPAtA6zK.d.cts +7 -0
- package/lib/locale.interface-BDuI7VXX.d.cts +5 -0
- package/lib/logout-url-options.interface-BOLd7ZRi.d.cts +8 -0
- package/lib/magic-auth.interface-DGn4_Ctk.d.cts +42 -0
- package/lib/magic-auth.serializer-DAydIP4V.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.cjs +1 -1
- package/lib/mfa/mfa.d.cts +1 -1
- package/lib/mfa/serializers/challenge.serializer.cjs +1 -1
- package/lib/mfa/serializers/challenge.serializer.d.cts +1 -1
- package/lib/mfa/serializers/factor.serializer.cjs +1 -1
- package/lib/mfa/serializers/factor.serializer.d.cts +1 -1
- package/lib/mfa/serializers/index.cjs +3 -3
- package/lib/mfa/serializers/index.d.cts +3 -3
- package/lib/mfa/serializers/sms.serializer.cjs +1 -1
- 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.cjs +1 -1
- package/lib/mfa/serializers/verify-response.serializer.d.cts +1 -1
- package/lib/mfa-Ck3-dTm_.cjs +50 -0
- package/lib/mfa-Ck3-dTm_.cjs.map +1 -0
- package/lib/no-api-key-provided.exception-CVdb8QHN.d.cts +9 -0
- package/lib/not-found.exception-7qN1H4Nf.d.cts +24 -0
- package/lib/oauth-tokens.interface--rFwkKXb.d.cts +16 -0
- package/lib/oauth.exception-C3PMJZOl.d.cts +15 -0
- package/lib/object.interface-C0gQ84EY.d.cts +35 -0
- package/lib/organization-domain.interface-D9DJtORe.cjs +28 -0
- package/lib/organization-domain.interface-D9DJtORe.cjs.map +1 -0
- package/lib/organization-domain.interface-DCWcsWrJ.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.cjs +1 -1
- package/lib/organization-domains/organization-domains.d.cts +1 -1
- package/lib/organization-domains/serializers/create-organization-domain-options.serializer.cjs +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-domains-BINLS8SW.cjs +33 -0
- package/lib/organization-domains-BINLS8SW.cjs.map +1 -0
- package/lib/organization-membership.serializer-CgjS5BwK.cjs +40 -0
- package/lib/organization-membership.serializer-CgjS5BwK.cjs.map +1 -0
- package/lib/organization-role.interface-DXjTJ0Z5.d.cts +15 -0
- package/lib/organization-role.serializer-CXvUe32C.d.cts +10 -0
- package/lib/organization-role.serializer-DFNkyIDQ.cjs +56 -0
- package/lib/organization-role.serializer-DFNkyIDQ.cjs.map +1 -0
- package/lib/organization.interface-qvSYAhMT.d.cts +30 -0
- package/lib/organization.serializer-C5kF4Tqo.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/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-BvnCc0n6.cjs +70 -0
- package/lib/organizations-BvnCc0n6.cjs.map +1 -0
- package/lib/pagination-DARFXAuP.d.cts +25 -0
- package/lib/pagination-options.interface--3MwpP52.d.cts +10 -0
- package/lib/pagination-options.serializer-BV8g5B38.cjs +17 -0
- package/lib/pagination-options.serializer-BV8g5B38.cjs.map +1 -0
- package/lib/pagination-options.serializer-DmyeFigF.d.cts +7 -0
- package/lib/parse-error-Dr-zK4Ai.cjs +24 -0
- package/lib/parse-error-Dr-zK4Ai.cjs.map +1 -0
- package/lib/password-hash-type.interface-DjrfV612.d.cts +5 -0
- package/lib/password-reset.interface-5Hk5_t85.d.cts +40 -0
- package/lib/password-reset.serializer-grZ1VGba.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.cjs +1 -1
- package/lib/passwordless/passwordless.d.cts +1 -1
- package/lib/passwordless/serializers/passwordless-session.serializer.cjs +1 -1
- package/lib/passwordless/serializers/passwordless-session.serializer.d.cts +1 -1
- package/lib/passwordless-Cbbfvvgq.cjs +29 -0
- package/lib/passwordless-Cbbfvvgq.cjs.map +1 -0
- package/lib/passwordless-session.interface-DBPNZsQp.d.cts +18 -0
- package/lib/passwordless-session.serializer-Buh50Btt.cjs +18 -0
- package/lib/passwordless-session.serializer-Buh50Btt.cjs.map +1 -0
- package/lib/patch-options.interface-BAVaR96y.d.cts +12 -0
- package/lib/permission.interface-DUgNctyv.d.cts +40 -0
- package/lib/permission.serializer-GO1NbZki.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.cjs +1 -1
- package/lib/pipes/pipes.d.cts +1 -1
- package/lib/pipes/serializers/access-token.serializer.cjs +1 -1
- package/lib/pipes/serializers/access-token.serializer.d.cts +1 -1
- package/lib/pipes/serializers/get-access-token.serializer.cjs +1 -1
- package/lib/pipes/serializers/get-access-token.serializer.d.cts +1 -1
- package/lib/pipes-C6PJAgY4.cjs +21 -0
- package/lib/pipes-C6PJAgY4.cjs.map +1 -0
- package/lib/pkce/pkce.d.cts +1 -1
- package/lib/pkce-CkDcEdoo.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.cjs +1 -1
- package/lib/portal/portal.d.cts +1 -1
- package/lib/portal-Bw4FWwRi.cjs +25 -0
- package/lib/portal-Bw4FWwRi.cjs.map +1 -0
- package/lib/post-options.interface-D8yUBVGr.d.cts +13 -0
- package/lib/profile-and-token.serializer-OV839v64.d.cts +8 -0
- package/lib/profile.serializer-CMW0xbca.d.cts +8 -0
- package/lib/put-options.interface-JSNS5evI.d.cts +12 -0
- package/lib/query-options.serializer-B3PH3QRw.cjs +19 -0
- package/lib/query-options.serializer-B3PH3QRw.cjs.map +1 -0
- package/lib/query-options.serializer-Cjv6DV1k.d.cts +7 -0
- package/lib/query-result.serializer-DvOD-ib6.cjs +28 -0
- package/lib/query-result.serializer-DvOD-ib6.cjs.map +1 -0
- package/lib/query-result.serializer-Dy0eBy0g.d.cts +12 -0
- package/lib/query-string-DJDFy7sp.cjs +40 -0
- package/lib/query-string-DJDFy7sp.cjs.map +1 -0
- package/lib/query.interface-BSHlqTYK.d.cts +35 -0
- package/lib/rate-limit-exceeded.exception-LIdF3qZq.d.cts +18 -0
- package/lib/read-object.interface-BwzjcSVm.d.cts +25 -0
- package/lib/refresh-and-seal-session-data.interface-BQRY5jDN.cjs +19 -0
- package/lib/refresh-and-seal-session-data.interface-BQRY5jDN.cjs.map +1 -0
- package/lib/refresh-and-seal-session-data.interface-CfKqrf2N.d.cts +24 -0
- package/lib/remove-flag-target-options.interface-BlZtU4Qf.d.cts +8 -0
- package/lib/remove-organization-role-permission-options.interface-wLcPXpuW.d.cts +7 -0
- package/lib/remove-role-assignment-options.interface-D0qpb2wr.d.cts +8 -0
- package/lib/remove-role-options.interface-C05Tjj04.d.cts +19 -0
- package/lib/remove-role-options.serializer-Cq-gQ6eh.d.cts +7 -0
- package/lib/remove-role-options.serializer-D_YKoTt5.cjs +19 -0
- package/lib/remove-role-options.serializer-D_YKoTt5.cjs.map +1 -0
- package/lib/request-exception.interface-DXrL5xJL.d.cts +9 -0
- package/lib/resend-invitation-options.interface-5-DjRWwi.d.cts +12 -0
- package/lib/resend-invitation-options.serializer-Bm4mW-1L.cjs +12 -0
- package/lib/resend-invitation-options.serializer-Bm4mW-1L.cjs.map +1 -0
- package/lib/reset-password-options.interface-DR1PHcVr.d.cts +12 -0
- package/lib/reset-password-options.serializer-B9Dv28B5.d.cts +7 -0
- package/lib/resource-op.enum-CNibFpd3.d.cts +8 -0
- package/lib/resource-op.enum-lyCNZOG-.cjs +16 -0
- package/lib/resource-op.enum-lyCNZOG-.cjs.map +1 -0
- package/lib/resource.interface-D-MMSzFn.d.cts +77 -0
- package/lib/resource.serializer-C3woPtVQ.cjs +25 -0
- package/lib/resource.serializer-C3woPtVQ.cjs.map +1 -0
- package/lib/resource.serializer-CNYCg5zr.d.cts +8 -0
- package/lib/response-payload.interface-DwFDDgXN.d.cts +26 -0
- package/lib/revoke-session-options.interface-BW7f0pb7.d.cts +11 -0
- package/lib/revoke-session-options.interface-DWpnqU2p.cjs +12 -0
- package/lib/revoke-session-options.interface-DWpnqU2p.cjs.map +1 -0
- package/lib/role-assignment.interface-ChR_OANy.d.cts +49 -0
- package/lib/role-assignment.serializer-D7MAb-zC.cjs +23 -0
- package/lib/role-assignment.serializer-D7MAb-zC.cjs.map +1 -0
- package/lib/role-assignment.serializer-ddyzkw8N.d.cts +7 -0
- package/lib/role.serializer-BJE162aA.cjs +22 -0
- package/lib/role.serializer-BJE162aA.cjs.map +1 -0
- package/lib/roles/interfaces/index.d.cts +2 -2
- package/lib/roles/interfaces/index.d.ts +2 -2
- package/lib/roles/interfaces/role.interface.d.cts +2 -2
- package/lib/roles/interfaces/role.interface.d.ts +23 -1
- package/lib/roles/serializers/role.serializer.cjs +1 -1
- package/lib/roles/serializers/role.serializer.d.cts +1 -1
- package/lib/runtime-info-D11Gtx8I.cjs +56 -0
- package/lib/runtime-info-D11Gtx8I.cjs.map +1 -0
- package/lib/seal-BDnUayLx.cjs +315 -0
- package/lib/seal-BDnUayLx.cjs.map +1 -0
- package/lib/send-invitation-options.interface-CmHj_ls3.cjs +0 -0
- package/lib/send-invitation-options.interface-DtIC4uoS.d.cts +22 -0
- package/lib/send-invitation-options.serializer-DoSLFoca.cjs +19 -0
- package/lib/send-invitation-options.serializer-DoSLFoca.cjs.map +1 -0
- package/lib/send-session-response.interface-Bu76CdzC.d.cts +8 -0
- package/lib/send-session-response.interface-CnYzQ75X.cjs +0 -0
- package/lib/send-verification-email-options.interface-IMaY7OHw.d.cts +7 -0
- package/lib/send-verification-email-options.interface-KE6HXoGl.cjs +0 -0
- package/lib/serializers-CQ9KUAbO.cjs +0 -0
- package/lib/serializers-C_P8R3U5.cjs +0 -0
- package/lib/serializers-CzTjSkin.cjs +0 -0
- package/lib/serializers-D7IALzFJ.cjs +0 -0
- package/lib/serializers-DGbHryl9.cjs +0 -0
- package/lib/serializers-DMjnDh0k.cjs +0 -0
- package/lib/serializers-VqoW2jFY.cjs +0 -0
- package/lib/serializers-xzNg-6UC.cjs +0 -0
- package/lib/session-Beigw6Nc.cjs +144 -0
- package/lib/session-Beigw6Nc.cjs.map +1 -0
- package/lib/session-handler-options.interface-DJRJes_5.d.cts +9 -0
- package/lib/session.interface-DEkXnpLu.d.cts +38 -0
- package/lib/session.interface-DTlTOZpJ.cjs +0 -0
- package/lib/session.serializer-BL-7BJfq.d.cts +7 -0
- package/lib/set-environment-role-permissions-options.interface-BZKVKr61.d.cts +7 -0
- package/lib/set-environment-role-permissions-options.interface-DkP1-5Qw.cjs +0 -0
- package/lib/set-organization-role-permissions-options.interface-B5ETA0fj.d.cts +7 -0
- package/lib/set-organization-role-permissions-options.interface-C6GsAkHc.cjs +0 -0
- package/lib/signature-provider-DBHzmT8N.cjs +38 -0
- package/lib/signature-provider-DBHzmT8N.cjs.map +1 -0
- package/lib/signature-verification.exception-DDuwGSbj.d.cts +8 -0
- package/lib/sms.interface-yD1fgT7s.d.cts +10 -0
- package/lib/sms.serializer-D2a3LAEN.cjs +12 -0
- package/lib/sms.serializer-D2a3LAEN.cjs.map +1 -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 -7
- 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.cjs +1 -1
- package/lib/sso/sso.d.cts +1 -1
- package/lib/sso-FWyObHDp.cjs +135 -0
- package/lib/sso-FWyObHDp.cjs.map +1 -0
- package/lib/subtle-crypto-provider-RQC7QPlf.cjs +99 -0
- package/lib/subtle-crypto-provider-RQC7QPlf.cjs.map +1 -0
- package/lib/totp.interface-DPRsa_Dc.d.cts +22 -0
- package/lib/unauthorized.exception-DJ5xylS-.d.cts +13 -0
- package/lib/unknown-record.interface-KDwjwNHM.d.cts +5 -0
- package/lib/unprocessable-entity-error.interface-BYalF3nu.cjs +0 -0
- package/lib/unprocessable-entity-error.interface-Cz6BURFm.d.cts +8 -0
- package/lib/unprocessable-entity.exception-C-wX8JBR.d.cts +25 -0
- package/lib/unreachable-BxbjIt8H.cjs +23 -0
- package/lib/unreachable-BxbjIt8H.cjs.map +1 -0
- package/lib/update-authorization-resource-by-external-id-options.interface-VdkOB-85.d.cts +11 -0
- package/lib/update-authorization-resource-by-external-id-options.interface-mN_nsHCu.cjs +0 -0
- package/lib/update-authorization-resource-by-external-id-options.serializer-CY2Lbl7g.cjs +15 -0
- package/lib/update-authorization-resource-by-external-id-options.serializer-CY2Lbl7g.cjs.map +1 -0
- package/lib/update-authorization-resource-by-external-id-options.serializer-mJfmRL1W.d.cts +8 -0
- package/lib/update-authorization-resource-options.serializer-D-xkj_s1.cjs +15 -0
- package/lib/update-authorization-resource-options.serializer-D-xkj_s1.cjs.map +1 -0
- package/lib/update-authorization-resource-options.serializer-DXLx8new.d.cts +7 -0
- package/lib/update-environment-role-options.interface-B9n2iznD.cjs +0 -0
- package/lib/update-environment-role-options.interface-DmxJlvJj.d.cts +12 -0
- package/lib/update-environment-role-options.serializer-BQtOkLrr.cjs +15 -0
- package/lib/update-environment-role-options.serializer-BQtOkLrr.cjs.map +1 -0
- package/lib/update-environment-role-options.serializer-BaPLpNDa.d.cts +7 -0
- package/lib/update-object.interface-C8y9e8Lt.d.cts +13 -0
- package/lib/update-object.interface-nhE3xAFf.cjs +0 -0
- package/lib/update-organization-membership-options.interface-CBFTtRh2.d.cts +12 -0
- package/lib/update-organization-membership-options.interface-CjgSH1bc.cjs +0 -0
- package/lib/update-organization-membership-options.serializer-BlMg2vFm.cjs +15 -0
- package/lib/update-organization-membership-options.serializer-BlMg2vFm.cjs.map +1 -0
- package/lib/update-organization-options.interface-BiK4pXHm.d.cts +21 -0
- package/lib/update-organization-options.interface-CL0f4NZm.cjs +0 -0
- package/lib/update-organization-options.serializer-D8RJ1sqA.d.cts +7 -0
- package/lib/update-organization-role-options.interface-B7y-X0Wq.cjs +0 -0
- package/lib/update-organization-role-options.interface-DmZR0gHw.d.cts +12 -0
- package/lib/update-organization-role-options.serializer-01r1UnNA.d.cts +7 -0
- package/lib/update-organization-role-options.serializer-CCFmpMNA.cjs +15 -0
- package/lib/update-organization-role-options.serializer-CCFmpMNA.cjs.map +1 -0
- package/lib/update-permission-options.interface-BUmoAwcY.d.cts +12 -0
- package/lib/update-permission-options.interface-DCG5a3S7.cjs +0 -0
- package/lib/update-permission-options.serializer-B2xClQjZ.cjs +15 -0
- package/lib/update-permission-options.serializer-B2xClQjZ.cjs.map +1 -0
- package/lib/update-permission-options.serializer-gE63Z8CH.d.cts +7 -0
- package/lib/update-user-options.interface-628EegED.cjs +0 -0
- package/lib/update-user-options.interface-CzrbRCX7.d.cts +31 -0
- package/lib/update-user-options.serializer-DCtFirLd.d.cts +7 -0
- package/lib/update-user-password-options.interface-CN6_YJse.d.cts +11 -0
- package/lib/update-user-password-options.interface-MkvrPqTk.cjs +0 -0
- package/lib/update-user-password-options.serializer-CCVVrUCy.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.cjs +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 +3 -3
- package/lib/user-management/interfaces/index.d.cts +46 -46
- package/lib/user-management/interfaces/index.d.ts +2 -2
- 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.d.cts +1 -1
- 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 +2 -2
- package/lib/user-management/interfaces/organization-membership.interface.d.ts +28 -6
- 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.d.cts +1 -1
- package/lib/user-management/interfaces/reset-password-options.interface.d.cts +1 -1
- package/lib/user-management/interfaces/revoke-session-options.interface.cjs +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-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.cjs +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.cjs +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.cjs +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.cjs +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.cjs +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.cjs +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.cjs +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 +2 -1
- package/lib/user-management/serializers/organization-membership.serializer.d.cts +3 -2
- package/lib/user-management/serializers/organization-membership.serializer.d.ts +3 -2
- package/lib/user-management/serializers/organization-membership.serializer.js +12 -2
- 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 +1 -1
- package/lib/user-management/serializers/resend-invitation-options.serializer.d.cts +1 -1
- 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/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-CTQFnn4h.cjs +539 -0
- package/lib/user-management-CTQFnn4h.cjs.map +1 -0
- package/lib/user.interface-CSksrToF.d.cts +34 -0
- package/lib/user.interface-v7V0JLDQ.cjs +0 -0
- package/lib/user.serializer-B8Yr_r6n.d.cts +7 -0
- package/lib/utils/jose.cjs +1 -1
- package/lib/validate-api-key.interface-BGq76tsL.cjs +0 -0
- package/lib/validate-api-key.interface-D_WJOvPm.d.cts +15 -0
- package/lib/validate-api-key.serializer-DJMNSZRi.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-key.serializer-D5WVcdFV.cjs +29 -0
- package/lib/vault-key.serializer-D5WVcdFV.cjs.map +1 -0
- package/lib/vault-object.serializer-CwmJwCnO.cjs +84 -0
- package/lib/vault-object.serializer-CwmJwCnO.cjs.map +1 -0
- package/lib/vault-tqn3i5Ms.cjs +106 -0
- package/lib/vault-tqn3i5Ms.cjs.map +1 -0
- package/lib/verify-challenge-options-Cnd5QHmo.d.cts +8 -0
- package/lib/verify-challenge-response-Cxjr42mg.d.cts +14 -0
- package/lib/verify-email-options.interface-6ZR-BxLC.cjs +0 -0
- package/lib/verify-email-options.interface-B8NOVqLy.d.cts +11 -0
- package/lib/verify-response.serializer-B_xSg0qN.cjs +16 -0
- package/lib/verify-response.serializer-B_xSg0qN.cjs.map +1 -0
- package/lib/verify-response.serializer-l6VbQpg3.d.cts +7 -0
- package/lib/warning.interface-D8U1ON2d.d.cts +13 -0
- package/lib/warrant-op.enum-2bx2ed9X.d.cts +8 -0
- package/lib/warrant-op.enum-CdLsJJCt.cjs +16 -0
- package/lib/warrant-op.enum-CdLsJJCt.cjs.map +1 -0
- package/lib/warrant-token.interface-Ce-WGK9E.cjs +0 -0
- package/lib/warrant-token.interface-NdVyFw9l.d.cts +10 -0
- package/lib/warrant-token.serializer-DIzg-CmP.cjs +12 -0
- package/lib/warrant-token.serializer-DIzg-CmP.cjs.map +1 -0
- package/lib/warrant-token.serializer-DPrcN4qY.d.cts +7 -0
- package/lib/warrant.interface-DPnDplf7.d.cts +71 -0
- package/lib/warrant.interface-Dv6nrxc-.cjs +0 -0
- package/lib/warrant.serializer-DSuf7fH7.d.cts +7 -0
- package/lib/warrant.serializer-_TqpbD4I.cjs +22 -0
- package/lib/warrant.serializer-_TqpbD4I.cjs.map +1 -0
- package/lib/webhooks/webhooks.cjs +1 -1
- package/lib/webhooks/webhooks.d.cts +1 -1
- package/lib/webhooks-B1jXr6Fj.d.cts +35 -0
- package/lib/webhooks-BxQxp6AJ.cjs +38 -0
- package/lib/webhooks-BxQxp6AJ.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-BckzS1Py.cjs +21 -0
- package/lib/widgets-BckzS1Py.cjs.map +1 -0
- package/lib/workos-options.interface-Cszzjn_W.cjs +0 -0
- package/lib/workos-options.interface-PcLJpyIn.d.cts +17 -0
- package/lib/workos-response-error.interface-Div6tr1y.cjs +0 -0
- package/lib/workos-response-error.interface-u0ZMPUFj.d.cts +13 -0
- package/lib/workos-y5BVhQQQ.cjs +344 -0
- package/lib/workos-y5BVhQQQ.cjs.map +1 -0
- package/lib/workos.cjs +5 -5
- package/lib/workos.d.cts +1 -1
- package/lib/workos.d.ts +1 -0
- package/lib/workos.js +13 -1
- package/lib/workos.js.map +1 -1
- package/lib/write-warrant-options.serializer-BVsqqyjn.d.cts +7 -0
- package/lib/write-warrant-options.serializer-C4p0DqUx.cjs +26 -0
- package/lib/write-warrant-options.serializer-C4p0DqUx.cjs.map +1 -0
- package/package.json +1 -1
- package/lib/access-token.interface-PK6QwTjk.d.cts +0 -18
- package/lib/access-token.serializer-C80IQpUd.cjs +0 -20
- package/lib/access-token.serializer-C80IQpUd.cjs.map +0 -1
- package/lib/action.interface-B-xUqwBf.d.cts +0 -63
- package/lib/action.serializer-J8blkXac.cjs +0 -47
- package/lib/action.serializer-J8blkXac.cjs.map +0 -1
- package/lib/actions-BQWfMHLW.cjs +0 -58
- package/lib/actions-BQWfMHLW.cjs.map +0 -1
- package/lib/actions-DQUZ4b2r.d.cts +0 -41
- package/lib/add-environment-role-permission-options.interface-Pk9Z0RBF.d.cts +0 -7
- package/lib/add-flag-target-options.interface-CJ7M40Wi.d.cts +0 -8
- package/lib/add-organization-role-permission-options.interface-Oc11Zzvq.d.cts +0 -7
- package/lib/api-key-required.exception-DTYoK0KE.d.cts +0 -10
- package/lib/api-key.interface-SUHnxEHj.d.cts +0 -32
- package/lib/api-key.serializer-DWK81bXa.d.cts +0 -7
- package/lib/api-keys-dib2861v.d.cts +0 -744
- package/lib/app-info.interface-DQRHsNPh.d.cts +0 -8
- package/lib/audit-log-export-options.interface-BLw_RWFk.d.cts +0 -22
- package/lib/audit-log-export-options.serializer-8ESYq4aa.cjs +0 -20
- package/lib/audit-log-export-options.serializer-8ESYq4aa.cjs.map +0 -1
- package/lib/audit-log-export-options.serializer-ffwj8kRw.d.cts +0 -7
- package/lib/audit-log-export.interface-oDR72O0J.d.cts +0 -20
- package/lib/audit-log-export.serializer-DVMljTPL.d.cts +0 -7
- package/lib/audit-log-export.serializer-mFDU2Fxf.cjs +0 -19
- package/lib/audit-log-export.serializer-mFDU2Fxf.cjs.map +0 -1
- package/lib/audit-logs-DiZN60g_.cjs +0 -43
- package/lib/audit-logs-DiZN60g_.cjs.map +0 -1
- package/lib/authenticate-with-code-and-verifier-options.interface-CifpWY0M.d.cts +0 -17
- package/lib/authenticate-with-code-and-verifier-options.serializer-BqSvuzAF.d.cts +0 -8
- package/lib/authenticate-with-code-options.interface-CtsvRTYS.d.cts +0 -20
- package/lib/authenticate-with-code-options.serializer-Blhrjiq0.d.cts +0 -8
- package/lib/authenticate-with-email-verification-options.interface-BCC2K9Zp.d.cts +0 -18
- package/lib/authenticate-with-email-verification.serializer-Bf1j1ew9.cjs +0 -20
- package/lib/authenticate-with-email-verification.serializer-Bf1j1ew9.cjs.map +0 -1
- package/lib/authenticate-with-magic-auth-options.interface-Dmxc0Aes.d.cts +0 -22
- package/lib/authenticate-with-magic-auth-options.serializer-DAjj_AJh.d.cts +0 -8
- package/lib/authenticate-with-options-base.interface-Dx_YCajX.d.cts +0 -41
- package/lib/authenticate-with-organization-selection-options.serializer-Did46zvW.cjs +0 -20
- package/lib/authenticate-with-organization-selection-options.serializer-Did46zvW.cjs.map +0 -1
- package/lib/authenticate-with-organization-selection.interface-DYOjeIvu.d.cts +0 -18
- package/lib/authenticate-with-password-options.interface-BbjZEbmt.d.cts +0 -20
- package/lib/authenticate-with-password-options.serializer-CFKO59Ra.d.cts +0 -8
- package/lib/authenticate-with-refresh-token-options.interface-CqS4TJ3X.d.cts +0 -18
- package/lib/authenticate-with-refresh-token-public-client-options.interface-TPswbB8Z.d.cts +0 -16
- package/lib/authenticate-with-refresh-token-public-client-options.serializer-Ccv24S4s.d.cts +0 -8
- package/lib/authenticate-with-refresh-token.options.serializer-Dhk9Zd7b.d.cts +0 -9
- package/lib/authenticate-with-session-cookie.interface-B4eQTrfN.cjs +0 -17
- package/lib/authenticate-with-session-cookie.interface-B4eQTrfN.cjs.map +0 -1
- package/lib/authenticate-with-session-cookie.interface-CoZAMXL_.d.cts +0 -45
- package/lib/authenticate-with-totp-options.interface-C0Jr3YDb.d.cts +0 -20
- package/lib/authenticate-with-totp-options.serializer-BcaV2QsQ.d.cts +0 -8
- package/lib/authentication-event.interface-0-TCj9ur.d.cts +0 -28
- package/lib/authentication-event.serializer-DX0bzXas.d.cts +0 -7
- package/lib/authentication-radar-risk-detected-event.interface-CcBMeCX7.d.cts +0 -24
- package/lib/authentication-response.interface-DITy4Tzw.d.cts +0 -28
- package/lib/authentication-response.serializer-DIJ8dZZS.d.cts +0 -7
- package/lib/authorization-CK0d-2Tg.cjs +0 -111
- package/lib/authorization-CK0d-2Tg.cjs.map +0 -1
- package/lib/authorization-url-options.interface-BwBNFg0Z.d.cts +0 -45
- package/lib/authorization-url-options.interface-C5ABtdiE.d.cts +0 -55
- package/lib/bad-request.exception-BWL7y3t5.d.cts +0 -25
- package/lib/base64-8aJjmiTE.cjs +0 -44
- package/lib/base64-8aJjmiTE.cjs.map +0 -1
- package/lib/batch-write-resources-options.serializer-CC48gIZp.cjs +0 -23
- package/lib/batch-write-resources-options.serializer-CC48gIZp.cjs.map +0 -1
- package/lib/batch-write-resources-options.serializer-G63Eiv-r.d.cts +0 -7
- package/lib/challenge-factor-options-DQBD-OBq.d.cts +0 -10
- package/lib/challenge.interface-CGUxrdzT.d.cts +0 -22
- package/lib/challenge.serializer-C9JkzvE8.d.cts +0 -7
- package/lib/challenge.serializer-Dzoig6Tb.cjs +0 -20
- package/lib/challenge.serializer-Dzoig6Tb.cjs.map +0 -1
- package/lib/check-op.enum-1gyp3mY_.d.cts +0 -8
- package/lib/check-op.enum-CJmiI-EV.cjs +0 -16
- package/lib/check-op.enum-CJmiI-EV.cjs.map +0 -1
- package/lib/check-options.serializer-C7So55Kd.d.cts +0 -9
- package/lib/check-options.serializer-DlNVIJoZ.cjs +0 -69
- package/lib/check-options.serializer-DlNVIJoZ.cjs.map +0 -1
- package/lib/check.interface-Bqtu_Kmu.cjs +0 -33
- package/lib/check.interface-Bqtu_Kmu.cjs.map +0 -1
- package/lib/check.interface-oac-oCtg.d.cts +0 -88
- package/lib/conflict.exception-4m45wGr8.cjs +0 -23
- package/lib/conflict.exception-4m45wGr8.cjs.map +0 -1
- package/lib/connection-type.enum-BCSkvlg6.d.cts +0 -41
- package/lib/connection-type.enum-CQncLVbr.cjs +0 -49
- package/lib/connection-type.enum-CQncLVbr.cjs.map +0 -1
- package/lib/connection.interface-D1HP4q90.d.cts +0 -33
- package/lib/connection.serializer-B47qKsDN.d.cts +0 -7
- package/lib/create-audit-log-event-options.interface-B-eEsjZw.d.cts +0 -43
- package/lib/create-audit-log-event-options.serializer-Byx8ZppH.d.cts +0 -7
- package/lib/create-audit-log-event-options.serializer-CIEpbo2R.cjs +0 -23
- package/lib/create-audit-log-event-options.serializer-CIEpbo2R.cjs.map +0 -1
- package/lib/create-audit-log-schema-options.interface-VEGNQUoR.d.cts +0 -67
- package/lib/create-audit-log-schema-options.serializer-BY__IgYQ.cjs +0 -38
- package/lib/create-audit-log-schema-options.serializer-BY__IgYQ.cjs.map +0 -1
- package/lib/create-audit-log-schema-options.serializer-vOYqa-AI.d.cts +0 -7
- package/lib/create-audit-log-schema.serializer-CBjhgiOY.cjs +0 -32
- package/lib/create-audit-log-schema.serializer-CBjhgiOY.cjs.map +0 -1
- package/lib/create-audit-log-schema.serializer-CDSQiWrT.d.cts +0 -7
- package/lib/create-data-key.interface-uWGAAWZC.d.cts +0 -15
- package/lib/create-environment-role-options.interface-BzAxMcvk.d.cts +0 -14
- package/lib/create-environment-role-options.serializer-C_4tdn3G.cjs +0 -16
- package/lib/create-environment-role-options.serializer-C_4tdn3G.cjs.map +0 -1
- package/lib/create-environment-role-options.serializer-Cgp-nj7R.d.cts +0 -7
- package/lib/create-magic-auth-options.interface-KljIsFrM.d.cts +0 -12
- package/lib/create-magic-auth-options.serializer-JyHvOWXa.d.cts +0 -7
- package/lib/create-object.interface-q1p30YMV.d.cts +0 -16
- package/lib/create-organization-api-key-options.serializer-7g514vpF.d.cts +0 -7
- package/lib/create-organization-api-key-options.serializer-Bd5XkHe-.cjs +0 -17
- package/lib/create-organization-api-key-options.serializer-Bd5XkHe-.cjs.map +0 -1
- package/lib/create-organization-domain-options.interface-BorRBhyO.d.cts +0 -12
- package/lib/create-organization-domain-options.serializer-B64Zeqrn.cjs +0 -15
- package/lib/create-organization-domain-options.serializer-B64Zeqrn.cjs.map +0 -1
- package/lib/create-organization-membership-options.interface-CT78k_RG.d.cts +0 -16
- package/lib/create-organization-membership-options.serializer-J20uU0fe.cjs +0 -17
- package/lib/create-organization-membership-options.serializer-J20uU0fe.cjs.map +0 -1
- package/lib/create-organization-options.serializer-B2WT_f3-.d.cts +0 -7
- package/lib/create-organization-role-options.interface-D47Tf3Ep.d.cts +0 -14
- package/lib/create-organization-role-options.serializer-CX2ND-mF.cjs +0 -16
- package/lib/create-organization-role-options.serializer-CX2ND-mF.cjs.map +0 -1
- package/lib/create-organization-role-options.serializer-gKd5As_7.d.cts +0 -7
- package/lib/create-password-reset-options.interface-DugfAPGw.d.cts +0 -10
- package/lib/create-password-reset-options.serializer-CF9UYm2X.d.cts +0 -7
- package/lib/create-passwordless-session-options.interface-DCAzOCvV.d.cts +0 -20
- package/lib/create-permission-options.interface-ClaSX7df.d.cts +0 -14
- package/lib/create-permission-options.serializer-BJKj9O3y.cjs +0 -16
- package/lib/create-permission-options.serializer-BJKj9O3y.cjs.map +0 -1
- package/lib/create-permission-options.serializer-DAxJac9X.d.cts +0 -7
- package/lib/create-resource-options.serializer-DblyocXR.d.cts +0 -7
- package/lib/create-resource-options.serializer-N1fy1b2S.cjs +0 -17
- package/lib/create-resource-options.serializer-N1fy1b2S.cjs.map +0 -1
- package/lib/create-user-options.interface-ord6dU_x.d.cts +0 -28
- package/lib/create-user-options.serializer-DaIm8p-c.d.cts +0 -7
- package/lib/created-api-key.interface-DkDQVw2T.d.cts +0 -34
- package/lib/created-api-key.serializer-CUt_hj_z.cjs +0 -25
- package/lib/created-api-key.serializer-CUt_hj_z.cjs.map +0 -1
- package/lib/created-api-key.serializer-DKs_m9pB.d.cts +0 -7
- package/lib/crypto-provider-Bg3tRE2P.cjs +0 -18
- package/lib/crypto-provider-Bg3tRE2P.cjs.map +0 -1
- package/lib/crypto-provider-CYvkctEg.d.cts +0 -75
- package/lib/decrypt-data-key.interface-BwEc_O_A.d.cts +0 -11
- package/lib/delete-object.interface-B_P7yrm3.d.cts +0 -7
- package/lib/delete-resource-options.serializer-D6e_dLrI.d.cts +0 -7
- package/lib/delete-resource-options.serializer-DJCtDzLP.cjs +0 -16
- package/lib/delete-resource-options.serializer-DJCtDzLP.cjs.map +0 -1
- package/lib/directory-group.interface-RhiHiiPX.d.cts +0 -24
- package/lib/directory-group.serializer-BRcTw-sz.d.cts +0 -8
- package/lib/directory-sync-pnubY2JS.cjs +0 -46
- package/lib/directory-sync-pnubY2JS.cjs.map +0 -1
- package/lib/directory-user.serializer-DbtCZejx.d.cts +0 -9
- package/lib/directory.interface-RS2zVVSH.d.cts +0 -60
- package/lib/directory.serializer-C4ye_GNZ.d.cts +0 -10
- package/lib/domain-data.interface-CAbxsOXR.cjs +0 -16
- package/lib/domain-data.interface-CAbxsOXR.cjs.map +0 -1
- package/lib/domain-data.interface-CWu6PLZw.d.cts +0 -12
- package/lib/email-verification.interface-DPOUBm9v.d.cts +0 -42
- package/lib/email-verification.serializer-BKwo8A4r.d.cts +0 -8
- package/lib/enroll-auth-factor-options.serializer-B0Kr8aWf.d.cts +0 -7
- package/lib/enroll-auth-factor.interface-EhGkRx_t.d.cts +0 -17
- package/lib/enroll-factor-options-IU9WQYZu.d.cts +0 -14
- package/lib/env-BRem2_1e.cjs +0 -62
- package/lib/env-BRem2_1e.cjs.map +0 -1
- package/lib/environment-role.interface-B59FS29B.d.cts +0 -34
- package/lib/environment-role.serializer-7K6a1PBm.cjs +0 -22
- package/lib/environment-role.serializer-7K6a1PBm.cjs.map +0 -1
- package/lib/environment-role.serializer-C0AaYE8M.d.cts +0 -7
- package/lib/event.serializer-B_sji9Uq.cjs +0 -196
- package/lib/event.serializer-B_sji9Uq.cjs.map +0 -1
- package/lib/event.serializer-CLMbB532.d.cts +0 -7
- package/lib/events-D2w-qpi6.cjs +0 -23
- package/lib/events-D2w-qpi6.cjs.map +0 -1
- package/lib/factor.interface-DebkGvZh.d.cts +0 -42
- package/lib/factor.interface-DzLmWxJJ.d.cts +0 -44
- package/lib/factor.serializer-CTHEanUk.d.cts +0 -8
- package/lib/factor.serializer-DGKMWcSc.d.cts +0 -8
- package/lib/factor.serializer-S_m_uTAP.cjs +0 -37
- package/lib/factor.serializer-S_m_uTAP.cjs.map +0 -1
- package/lib/factory-DLxPFIuH.cjs +0 -15
- package/lib/factory-DLxPFIuH.cjs.map +0 -1
- package/lib/feature-flag.interface-Dc9oPNTI.d.cts +0 -28
- package/lib/feature-flag.serializer-VHx8LryN.d.cts +0 -7
- package/lib/feature-flag.serializer-iuO0V07A.cjs +0 -23
- package/lib/feature-flag.serializer-iuO0V07A.cjs.map +0 -1
- package/lib/feature-flags-C-2fqPKn.cjs +0 -42
- package/lib/feature-flags-C-2fqPKn.cjs.map +0 -1
- package/lib/fetch-and-deserialize-B6lbfouV.cjs +0 -25
- package/lib/fetch-and-deserialize-B6lbfouV.cjs.map +0 -1
- package/lib/fetch-and-deserialize-list-C7zY6BRV.cjs +0 -19
- package/lib/fetch-and-deserialize-list-C7zY6BRV.cjs.map +0 -1
- package/lib/fetch-client-CiqtLSDr.cjs +0 -189
- package/lib/fetch-client-CiqtLSDr.cjs.map +0 -1
- package/lib/fga-DWvTVn5k.cjs +0 -83
- package/lib/fga-DWvTVn5k.cjs.map +0 -1
- package/lib/fga-paginatable-BAls8pYD.cjs +0 -22
- package/lib/fga-paginatable-BAls8pYD.cjs.map +0 -1
- package/lib/fga-paginatable-BGfH6hKb.d.cts +0 -14
- package/lib/generate-portal-link-intent.interface-DvAjnRTH.d.cts +0 -12
- package/lib/generate-portal-link-intent.interface-VhaOku0u.cjs +0 -20
- package/lib/generate-portal-link-intent.interface-VhaOku0u.cjs.map +0 -1
- package/lib/generic-server.exception-BQuagq-c.d.cts +0 -14
- package/lib/get-access-token.interface-C8vDOoS4.d.cts +0 -32
- package/lib/get-access-token.serializer-DgAG_4iQ.cjs +0 -34
- package/lib/get-access-token.serializer-DgAG_4iQ.cjs.map +0 -1
- package/lib/get-options.interface-DtIaBrYo.d.cts +0 -11
- package/lib/get-profile-and-token-options.interface-B4HEexcv.d.cts +0 -14
- package/lib/get-profile-options.interface-BTqozSx_.d.cts +0 -7
- package/lib/get-token-CRyPuAyd.d.cts +0 -23
- package/lib/get-token-cdbfCycJ.cjs +0 -23
- package/lib/get-token-cdbfCycJ.cjs.map +0 -1
- package/lib/http-client-Cs56_alu.d.cts +0 -55
- package/lib/http-client-J_x7lZuh.cjs +0 -96
- package/lib/http-client-J_x7lZuh.cjs.map +0 -1
- package/lib/http-client.interface-DMi5johZ.d.cts +0 -24
- package/lib/identity.interface-fsQohx9t.d.cts +0 -14
- package/lib/identity.serializer-aL8fr6V6.cjs +0 -20
- package/lib/identity.serializer-aL8fr6V6.cjs.map +0 -1
- package/lib/impersonator.interface-BLJ5uqT4.d.cts +0 -12
- package/lib/index-BkSnDb9g.d.cts +0 -770
- package/lib/interface-check-jNs7TVqZ.cjs +0 -23
- package/lib/interface-check-jNs7TVqZ.cjs.map +0 -1
- package/lib/invitation.interface-BGj97ho-.d.cts +0 -64
- package/lib/invitation.serializer-BrvOpgFx.d.cts +0 -8
- package/lib/jose-B0lH7z8y.cjs +0 -27
- package/lib/jose-B0lH7z8y.cjs.map +0 -1
- package/lib/key.interface-CFC2qwl7.d.cts +0 -16
- package/lib/leb128-CzuVP25R.cjs +0 -82
- package/lib/leb128-CzuVP25R.cjs.map +0 -1
- package/lib/list-connections-options.interface-zYzKu8PV.d.cts +0 -17
- package/lib/list-connections-options.serializer-BQ887b-b.d.cts +0 -7
- package/lib/list-directories-options.interface-Bq6Ctiub.d.cts +0 -14
- package/lib/list-directories-options.serializer-Btoh5Gla.d.cts +0 -7
- package/lib/list-directory-users-options.interface-B3hWSKfC.d.cts +0 -10
- package/lib/list-event-options.serializer-BiXalhxh.d.cts +0 -7
- package/lib/list-event-options.serializer-DV-MYHc5.cjs +0 -19
- package/lib/list-event-options.serializer-DV-MYHc5.cjs.map +0 -1
- package/lib/list-events-options.interface-UoXqiBjR.d.cts +0 -22
- package/lib/list-feature-flags-options.interface-DBQ7vrv_.d.cts +0 -7
- package/lib/list-groups-options.interface-U_gybSue.d.cts +0 -10
- package/lib/list-invitations-options.serializer-BBeD69mZ.cjs +0 -19
- package/lib/list-invitations-options.serializer-BBeD69mZ.cjs.map +0 -1
- package/lib/list-object-versions.interface-Rd5wqEPb.d.cts +0 -12
- package/lib/list-objects.interface-yOVh3Ifn.d.cts +0 -9
- package/lib/list-organization-api-keys-options.interface-YUTCTNS6.d.cts +0 -9
- package/lib/list-organization-feature-flags-options.interface-DnLCq59G.d.cts +0 -9
- package/lib/list-organization-memberships-options.serializer-DHBnW5rP.cjs +0 -20
- package/lib/list-organization-memberships-options.serializer-DHBnW5rP.cjs.map +0 -1
- package/lib/list-organization-roles-options.interface-BuvnLvwK.d.cts +0 -7
- package/lib/list-organizations-options.interface-EgR4w6S9.d.cts +0 -9
- package/lib/list-resources-options.serializer-CJG4qFwy.cjs +0 -19
- package/lib/list-resources-options.serializer-CJG4qFwy.cjs.map +0 -1
- package/lib/list-resources-options.serializer-ChXI92JX.d.cts +0 -7
- package/lib/list-sessions-options.interface-3wEl-9ph.d.cts +0 -8
- package/lib/list-sessions-options.serializer-DY3aSLdT.d.cts +0 -7
- package/lib/list-users-options.interface-CwR5WeUq.d.cts +0 -14
- package/lib/list-users-options.serializer-NjRJdnZI.cjs +0 -19
- package/lib/list-users-options.serializer-NjRJdnZI.cjs.map +0 -1
- package/lib/list-warrants-options.serializer-Da2XBD1V.cjs +0 -21
- package/lib/list-warrants-options.serializer-Da2XBD1V.cjs.map +0 -1
- package/lib/list-warrants-options.serializer-DghippBd.d.cts +0 -7
- package/lib/list.interface-C8ZxDYyJ.d.cts +0 -20
- package/lib/list.interface-CXp7D6FF.d.cts +0 -13
- package/lib/list.serializer-BO40xS2N.d.cts +0 -10
- package/lib/list.serializer-DJP9g3te.cjs +0 -17
- package/lib/list.serializer-DJP9g3te.cjs.map +0 -1
- package/lib/list.serializer-xzcXVR9t.d.cts +0 -7
- package/lib/locale.interface-DtJ_6jKP.d.cts +0 -5
- package/lib/logout-url-options.interface-DhTgF8Hk.d.cts +0 -8
- package/lib/magic-auth.interface-BECeWMH_.d.cts +0 -42
- package/lib/magic-auth.serializer-DUVjoLsC.d.cts +0 -8
- package/lib/mfa-sqTC0oK9.cjs +0 -50
- package/lib/mfa-sqTC0oK9.cjs.map +0 -1
- package/lib/no-api-key-provided.exception-hJIhxWx8.d.cts +0 -9
- package/lib/not-found.exception-BfAxXziV.d.cts +0 -24
- package/lib/oauth-tokens.interface-BmW9Eh4w.d.cts +0 -16
- package/lib/oauth.exception-Qx8LPHkD.d.cts +0 -15
- package/lib/object.interface-CB8MiPSx.d.cts +0 -35
- package/lib/organization-domain.interface-B1AwHwAc.cjs +0 -28
- package/lib/organization-domain.interface-B1AwHwAc.cjs.map +0 -1
- package/lib/organization-domain.interface-ozdxzINN.d.cts +0 -35
- package/lib/organization-domains-DjSUcSTL.cjs +0 -33
- package/lib/organization-domains-DjSUcSTL.cjs.map +0 -1
- package/lib/organization-membership.serializer-DVtJVaRT.cjs +0 -24
- package/lib/organization-membership.serializer-DVtJVaRT.cjs.map +0 -1
- package/lib/organization-role.interface-evatb3Ca.d.cts +0 -15
- package/lib/organization-role.serializer-BSsXTOeL.d.cts +0 -9
- package/lib/organization-role.serializer-lsSLexV6.cjs +0 -39
- package/lib/organization-role.serializer-lsSLexV6.cjs.map +0 -1
- package/lib/organization.interface-v9vB3M2o.d.cts +0 -30
- package/lib/organization.serializer-oavqZBEE.d.cts +0 -7
- package/lib/organizations-YJmyTBI7.cjs +0 -70
- package/lib/organizations-YJmyTBI7.cjs.map +0 -1
- package/lib/pagination-D--sr3e2.d.cts +0 -25
- package/lib/pagination-options.interface-SKgiNnuZ.d.cts +0 -10
- package/lib/parse-error-DGjhb0xQ.cjs +0 -24
- package/lib/parse-error-DGjhb0xQ.cjs.map +0 -1
- package/lib/password-hash-type.interface-vH25bPgH.d.cts +0 -5
- package/lib/password-reset.interface-Yi4hon-d.d.cts +0 -40
- package/lib/password-reset.serializer-DvGywW1e.d.cts +0 -8
- package/lib/passwordless-DTlsaF8V.cjs +0 -29
- package/lib/passwordless-DTlsaF8V.cjs.map +0 -1
- package/lib/passwordless-session.interface-BgyPqlZF.d.cts +0 -18
- package/lib/passwordless-session.serializer-CcFomvWf.cjs +0 -18
- package/lib/passwordless-session.serializer-CcFomvWf.cjs.map +0 -1
- package/lib/patch-options.interface-46BCssmo.d.cts +0 -12
- package/lib/permission.interface-BBwAYH07.d.cts +0 -40
- package/lib/permission.serializer-RAI4SM7h.d.cts +0 -7
- package/lib/pipes-CRAGN38U.cjs +0 -21
- package/lib/pipes-CRAGN38U.cjs.map +0 -1
- package/lib/pkce-n0rRYj_Q.d.cts +0 -38
- package/lib/portal-BjIQRDuq.cjs +0 -25
- package/lib/portal-BjIQRDuq.cjs.map +0 -1
- package/lib/post-options.interface-DlEjJsYu.d.cts +0 -13
- package/lib/profile-and-token.serializer-B4TVJ1rX.d.cts +0 -8
- package/lib/profile.serializer-DQhnLRm3.d.cts +0 -8
- package/lib/put-options.interface-7lk8rQLi.d.cts +0 -12
- package/lib/query-options.serializer-lpbxqWwr.cjs +0 -19
- package/lib/query-options.serializer-lpbxqWwr.cjs.map +0 -1
- package/lib/query-options.serializer-rnZkdjgt.d.cts +0 -7
- package/lib/query-result.serializer-B2dxUnKw.d.cts +0 -12
- package/lib/query-result.serializer-BfOCrnKb.cjs +0 -28
- package/lib/query-result.serializer-BfOCrnKb.cjs.map +0 -1
- package/lib/query-string-B9WibUJl.cjs +0 -40
- package/lib/query-string-B9WibUJl.cjs.map +0 -1
- package/lib/query.interface-BuOZQoFM.d.cts +0 -35
- package/lib/rate-limit-exceeded.exception-CF4reeT2.d.cts +0 -18
- package/lib/read-object.interface-D0Poz3-p.d.cts +0 -25
- package/lib/refresh-and-seal-session-data.interface-BSKQWqmn.d.cts +0 -24
- package/lib/refresh-and-seal-session-data.interface-zT1i8_J0.cjs +0 -19
- package/lib/refresh-and-seal-session-data.interface-zT1i8_J0.cjs.map +0 -1
- package/lib/remove-flag-target-options.interface-BZBcjHE7.d.cts +0 -8
- package/lib/remove-organization-role-permission-options.interface-ZMh36f0F.d.cts +0 -7
- package/lib/request-exception.interface-DahTOGID.d.cts +0 -9
- package/lib/resend-invitation-options.interface-BqrfHp3r.d.cts +0 -12
- package/lib/resend-invitation-options.serializer-DnsrXnYw.cjs +0 -12
- package/lib/resend-invitation-options.serializer-DnsrXnYw.cjs.map +0 -1
- package/lib/reset-password-options.interface-uWGx-EHg.d.cts +0 -12
- package/lib/reset-password-options.serializer-B814ASb4.d.cts +0 -7
- package/lib/resource-op.enum-DvMR02yw.d.cts +0 -8
- package/lib/resource-op.enum-ZN9cNRlL.cjs +0 -16
- package/lib/resource-op.enum-ZN9cNRlL.cjs.map +0 -1
- package/lib/resource.interface-BZ27Ar_A.d.cts +0 -77
- package/lib/resource.serializer-BiDk7ATq.cjs +0 -25
- package/lib/resource.serializer-BiDk7ATq.cjs.map +0 -1
- package/lib/resource.serializer-DO1Fpj-V.d.cts +0 -8
- package/lib/response-payload.interface-B6BBFm56.d.cts +0 -26
- package/lib/revoke-session-options.interface-20LkWyox.d.cts +0 -11
- package/lib/revoke-session-options.interface-DNh6uGcR.cjs +0 -12
- package/lib/revoke-session-options.interface-DNh6uGcR.cjs.map +0 -1
- package/lib/role.serializer-BtM19-S9.cjs +0 -22
- package/lib/role.serializer-BtM19-S9.cjs.map +0 -1
- package/lib/runtime-info-1sRVT3y-.cjs +0 -56
- package/lib/runtime-info-1sRVT3y-.cjs.map +0 -1
- package/lib/seal-B34v5bmh.cjs +0 -315
- package/lib/seal-B34v5bmh.cjs.map +0 -1
- package/lib/send-invitation-options.interface-C2RofyVU.d.cts +0 -22
- package/lib/send-invitation-options.serializer-D5x3ss8t.cjs +0 -19
- package/lib/send-invitation-options.serializer-D5x3ss8t.cjs.map +0 -1
- package/lib/send-session-response.interface-CMl4tWw_.d.cts +0 -8
- package/lib/send-verification-email-options.interface-BtOygLys.d.cts +0 -7
- package/lib/session-D_vnUDl1.cjs +0 -144
- package/lib/session-D_vnUDl1.cjs.map +0 -1
- package/lib/session-handler-options.interface-BVTuA5uU.d.cts +0 -9
- package/lib/session.interface-zszewQtk.d.cts +0 -38
- package/lib/session.serializer-DAUllV3H.d.cts +0 -7
- package/lib/set-environment-role-permissions-options.interface-CJm4G5CM.d.cts +0 -7
- package/lib/set-organization-role-permissions-options.interface-F54jbJ3q.d.cts +0 -7
- package/lib/signature-provider-CdkJsGc8.cjs +0 -38
- package/lib/signature-provider-CdkJsGc8.cjs.map +0 -1
- package/lib/signature-verification.exception-D2-xkCRS.d.cts +0 -8
- package/lib/sms.interface-f_7eFA1B.d.cts +0 -10
- package/lib/sms.serializer-DH2jsPuC.cjs +0 -12
- package/lib/sms.serializer-DH2jsPuC.cjs.map +0 -1
- package/lib/sso-DgPiUuie.cjs +0 -135
- package/lib/sso-DgPiUuie.cjs.map +0 -1
- package/lib/subtle-crypto-provider-BMf63Lhz.cjs +0 -99
- package/lib/subtle-crypto-provider-BMf63Lhz.cjs.map +0 -1
- package/lib/totp.interface-4Tn9mcvR.d.cts +0 -22
- package/lib/unauthorized.exception-B0Ma7wJ5.d.cts +0 -13
- package/lib/unknown-record.interface-DSMWbzCc.d.cts +0 -5
- package/lib/unprocessable-entity-error.interface-CGfXN5Ma.d.cts +0 -8
- package/lib/unprocessable-entity.exception-rapwl2dZ.d.cts +0 -25
- package/lib/unreachable-CWBbz4U6.cjs +0 -23
- package/lib/unreachable-CWBbz4U6.cjs.map +0 -1
- package/lib/update-environment-role-options.interface-dosXnOZd.d.cts +0 -12
- package/lib/update-environment-role-options.serializer-BNsh8m0U.d.cts +0 -7
- package/lib/update-environment-role-options.serializer-CBZS-b8e.cjs +0 -15
- package/lib/update-environment-role-options.serializer-CBZS-b8e.cjs.map +0 -1
- package/lib/update-object.interface-H3nqYCkH.d.cts +0 -13
- package/lib/update-organization-membership-options.interface-vwSowDwp.d.cts +0 -12
- package/lib/update-organization-membership-options.serializer-BL-XfapK.cjs +0 -15
- package/lib/update-organization-membership-options.serializer-BL-XfapK.cjs.map +0 -1
- package/lib/update-organization-options.interface-C5szqmv1.d.cts +0 -21
- package/lib/update-organization-options.serializer-BMZ1uX4v.d.cts +0 -7
- package/lib/update-organization-role-options.interface-rE638uDV.d.cts +0 -12
- package/lib/update-organization-role-options.serializer-C09TvDoL.cjs +0 -15
- package/lib/update-organization-role-options.serializer-C09TvDoL.cjs.map +0 -1
- package/lib/update-organization-role-options.serializer-v4U24skp.d.cts +0 -7
- package/lib/update-permission-options.interface-1DDWIS6-.d.cts +0 -12
- package/lib/update-permission-options.serializer-DBaEseXC.cjs +0 -15
- package/lib/update-permission-options.serializer-DBaEseXC.cjs.map +0 -1
- package/lib/update-permission-options.serializer-LHPO0d7U.d.cts +0 -7
- package/lib/update-user-options.interface-yJ1zfqXv.d.cts +0 -31
- package/lib/update-user-options.serializer-PMEBc0mh.d.cts +0 -7
- package/lib/update-user-password-options.interface-Bhwbi84x.d.cts +0 -11
- package/lib/update-user-password-options.serializer-xFeYcrdn.d.cts +0 -7
- package/lib/user-management-BiK0k4qR.cjs +0 -539
- package/lib/user-management-BiK0k4qR.cjs.map +0 -1
- package/lib/user.interface-BJY1-A6X.d.cts +0 -34
- package/lib/user.serializer-Cm-81FKp.d.cts +0 -7
- package/lib/validate-api-key.interface-DNV_9W09.d.cts +0 -15
- package/lib/validate-api-key.serializer-1ugfgyKZ.d.cts +0 -7
- package/lib/vault-DFZlnEty.cjs +0 -106
- package/lib/vault-DFZlnEty.cjs.map +0 -1
- package/lib/vault-key.serializer-CprnZmmD.cjs +0 -29
- package/lib/vault-key.serializer-CprnZmmD.cjs.map +0 -1
- package/lib/vault-object.serializer-DdulnQ2X.cjs +0 -84
- package/lib/vault-object.serializer-DdulnQ2X.cjs.map +0 -1
- package/lib/verify-challenge-options-BNCpUNrV.d.cts +0 -8
- package/lib/verify-challenge-response-DpXoIuSX.d.cts +0 -14
- package/lib/verify-email-options.interface-C0_VqDVK.d.cts +0 -11
- package/lib/verify-response.serializer-DLbxaA_Y.d.cts +0 -7
- package/lib/verify-response.serializer-DnBMVXXn.cjs +0 -16
- package/lib/verify-response.serializer-DnBMVXXn.cjs.map +0 -1
- package/lib/warning.interface-yJ1XNLbJ.d.cts +0 -13
- package/lib/warrant-op.enum-B2CZD0r0.cjs +0 -16
- package/lib/warrant-op.enum-B2CZD0r0.cjs.map +0 -1
- package/lib/warrant-op.enum-Dj1dkgof.d.cts +0 -8
- package/lib/warrant-token.interface-DPxaBIlh.d.cts +0 -10
- package/lib/warrant-token.serializer-C66i3W4C.d.cts +0 -7
- package/lib/warrant-token.serializer-CjWnRVCi.cjs +0 -12
- package/lib/warrant-token.serializer-CjWnRVCi.cjs.map +0 -1
- package/lib/warrant.interface-80A3Pew0.d.cts +0 -71
- package/lib/warrant.serializer-CpeeZzCI.cjs +0 -22
- package/lib/warrant.serializer-CpeeZzCI.cjs.map +0 -1
- package/lib/warrant.serializer-q9Ra6iEa.d.cts +0 -7
- package/lib/webhooks-BaB4dnDB.cjs +0 -38
- package/lib/webhooks-BaB4dnDB.cjs.map +0 -1
- package/lib/webhooks-CiFRnyi6.d.cts +0 -35
- package/lib/widgets-BRJb0-Zr.cjs +0 -21
- package/lib/widgets-BRJb0-Zr.cjs.map +0 -1
- package/lib/workos-BprVrvXG.cjs +0 -332
- package/lib/workos-BprVrvXG.cjs.map +0 -1
- package/lib/workos-options.interface-DsrGUZeh.d.cts +0 -17
- package/lib/workos-response-error.interface-CUW8-rVq.d.cts +0 -13
- package/lib/write-warrant-options.serializer-BuW_6XA_.cjs +0 -26
- package/lib/write-warrant-options.serializer-BuW_6XA_.cjs.map +0 -1
- package/lib/write-warrant-options.serializer-DYf63mng.d.cts +0 -7
- /package/lib/{action.interface-Cp_zjlbq.cjs → action.interface-CuR159eL.cjs} +0 -0
- /package/lib/{add-environment-role-permission-options.interface-Iu9Ch9C8.cjs → add-environment-role-permission-options.interface-SgWJ1ky5.cjs} +0 -0
- /package/lib/{add-flag-target-options.interface-DIrECf_q.cjs → add-flag-target-options.interface-5g9jOlv2.cjs} +0 -0
- /package/lib/{add-organization-role-permission-options.interface-CaoNd2oC.cjs → add-organization-role-permission-options.interface-vB_dUo4U.cjs} +0 -0
- /package/lib/{api-key.interface-CKbSjD5i.cjs → api-key.interface-D9M-QfXG.cjs} +0 -0
- /package/lib/{audit-log-export-options.interface-DnLNNH69.cjs → assign-role-options.interface-CoMCEKhg.cjs} +0 -0
- /package/lib/{audit-log-export.interface-C-vo0He0.cjs → audit-log-export-options.interface-mof1h-Fh.cjs} +0 -0
- /package/lib/{authenticate-with-code-and-verifier-options.interface-BtQJ_bZ2.cjs → audit-log-export.interface-ndtjUpSz.cjs} +0 -0
- /package/lib/{authenticate-with-code-options.interface-Cdjhe1KQ.cjs → authenticate-with-code-and-verifier-options.interface-DHpnQj2w.cjs} +0 -0
- /package/lib/{authenticate-with-email-verification-options.interface-Qo2pZU1Z.cjs → authenticate-with-code-options.interface-D_91NAcH.cjs} +0 -0
- /package/lib/{authenticate-with-magic-auth-options.interface-DfLPcjHB.cjs → authenticate-with-email-verification-options.interface-C9ZJu4jT.cjs} +0 -0
- /package/lib/{authenticate-with-options-base.interface-Dmse1U8k.cjs → authenticate-with-magic-auth-options.interface-Dv3BRcaM.cjs} +0 -0
- /package/lib/{authenticate-with-organization-selection.interface-CdD1Rxpb.cjs → authenticate-with-options-base.interface-CytZiAfd.cjs} +0 -0
- /package/lib/{authenticate-with-password-options.interface-CrrEcybu.cjs → authenticate-with-organization-selection.interface-C6L-ADkz.cjs} +0 -0
- /package/lib/{authenticate-with-refresh-token-options.interface-BWDjl5Ix.cjs → authenticate-with-password-options.interface-CSJGrQ5X.cjs} +0 -0
- /package/lib/{authenticate-with-refresh-token-public-client-options.interface-BT7t8bV7.cjs → authenticate-with-refresh-token-options.interface-D3XfeTmP.cjs} +0 -0
- /package/lib/{authenticate-with-totp-options.interface-BN1BsXUK.cjs → authenticate-with-refresh-token-public-client-options.interface-DVfBzMNm.cjs} +0 -0
- /package/lib/{authentication-event.interface-tO5OaPx1.cjs → authenticate-with-totp-options.interface-BTIYdseY.cjs} +0 -0
- /package/lib/{authentication-radar-risk-detected-event.interface-Cr1dhnQs.cjs → authentication-event.interface-DCzKFcA6.cjs} +0 -0
- /package/lib/{authentication-response.interface-Boc89IyY.cjs → authentication-radar-risk-detected-event.interface-ChSqAcxc.cjs} +0 -0
- /package/lib/{authorization-url-options.interface-C9Fxv_7o.cjs → authentication-response.interface-Bm9zyZ7t.cjs} +0 -0
- /package/lib/{create-data-key.interface-C2-NUWkZ.cjs → authorization/interfaces/assign-role-options.interface.cjs} +0 -0
- /package/lib/{create-environment-role-options.interface-kC_uHnZl.cjs → authorization/interfaces/authorization-resource-check.interface.cjs} +0 -0
- /package/lib/{create-magic-auth-options.interface-CSOTMcli.cjs → authorization/interfaces/authorization-resource-identifier.interface.cjs} +0 -0
- /package/lib/{create-object.interface-jufKIYD_.cjs → authorization/interfaces/authorization-resource.interface.cjs} +0 -0
- /package/lib/{create-organization-api-key-options.interface-DneHi7Es.cjs → authorization/interfaces/delete-authorization-resource-by-external-id-options.interface.cjs} +0 -0
- /package/lib/{create-organization-domain-options.interface-9xVPDedq.cjs → authorization/interfaces/delete-authorization-resource-options.interface.cjs} +0 -0
- /package/lib/{create-organization-membership-options.interface-CaQYvh6M.cjs → authorization/interfaces/get-authorization-resource-by-external-id-options.interface.cjs} +0 -0
- /package/lib/{create-organization-options.interface-BQ-ynkFt.cjs → authorization/interfaces/list-authorization-resources-options.interface.cjs} +0 -0
- /package/lib/{create-organization-role-options.interface-BZevKU9l.cjs → authorization/interfaces/list-memberships-for-resource-by-external-id-options.interface.cjs} +0 -0
- /package/lib/{create-password-reset-options.interface-CvQ8OPUP.cjs → authorization/interfaces/list-memberships-for-resource-options.interface.cjs} +0 -0
- /package/lib/{create-passwordless-session-options.interface-CUwrUUes.cjs → authorization/interfaces/list-resources-for-membership-options.interface.cjs} +0 -0
- /package/lib/{create-permission-options.interface-gNV8L40W.cjs → authorization/interfaces/list-role-assignments-options.interface.cjs} +0 -0
- /package/lib/{create-user-options.interface-Clu2DRMm.cjs → authorization/interfaces/remove-role-assignment-options.interface.cjs} +0 -0
- /package/lib/{created-api-key.interface-B9LIbGZn.cjs → authorization/interfaces/remove-role-options.interface.cjs} +0 -0
- /package/lib/{decrypt-data-key.interface-CC8-x3bk.cjs → authorization/interfaces/role-assignment.interface.cjs} +0 -0
- /package/lib/{delete-object.interface-maVx6Sss.cjs → authorization/interfaces/update-authorization-resource-by-external-id-options.interface.cjs} +0 -0
- /package/lib/{authorization-url-options.interface-Dhxhc6na.cjs → authorization-resource-check.interface-BPaHa5zy.cjs} +0 -0
- /package/lib/{connection.interface-Bizso5vL.cjs → authorization-resource.interface-DoncaLia.cjs} +0 -0
- /package/lib/{create-audit-log-event-options.interface-CV4irZpp.cjs → authorization-url-options.interface-DmZLjxDG.cjs} +0 -0
- /package/lib/{create-audit-log-schema-options.interface-CAfKAjBf.cjs → authorization-url-options.interface-gjezKDx0.cjs} +0 -0
- /package/lib/{directory-group.interface-fI3Q18_V.cjs → connection.interface-CoV0tCTn.cjs} +0 -0
- /package/lib/{directory-user.interface-BDg3vEue.cjs → create-audit-log-event-options.interface-D99OX2xL.cjs} +0 -0
- /package/lib/{directory.interface-BtqM2Oqa.cjs → create-audit-log-schema-options.interface-CtvgGRaa.cjs} +0 -0
- /package/lib/{email-verification.interface-wQQsh5oJ.cjs → create-data-key.interface-DUVzxo7g.cjs} +0 -0
- /package/lib/{enroll-auth-factor.interface-DtoEIL35.cjs → create-environment-role-options.interface-CLZHV12e.cjs} +0 -0
- /package/lib/{environment-role.interface-B1gHSYUW.cjs → create-magic-auth-options.interface-B5PJndA3.cjs} +0 -0
- /package/lib/{event.interface-DJog_FVt.cjs → create-object.interface-VxKjDrqH.cjs} +0 -0
- /package/lib/{factor.interface-DYEY2DmK.cjs → create-organization-api-key-options.interface-BaxESpuJ.cjs} +0 -0
- /package/lib/{feature-flag.interface-zWuZQ0AN.cjs → create-organization-domain-options.interface-SaQ1dv2w.cjs} +0 -0
- /package/lib/{get-options.interface-PWSxSJWf.cjs → create-organization-membership-options.interface-BTNw3jC9.cjs} +0 -0
- /package/lib/{get-profile-and-token-options.interface-B4AIgzHK.cjs → create-organization-options.interface-DtcOzvcJ.cjs} +0 -0
- /package/lib/{get-profile-options.interface-BL-ae6kv.cjs → create-organization-role-options.interface-Dy65PU52.cjs} +0 -0
- /package/lib/{http-client.interface-q5tbZi3r.cjs → create-password-reset-options.interface-CAxwaM5z.cjs} +0 -0
- /package/lib/{identity.interface-CENecjOJ.cjs → create-passwordless-session-options.interface-CmYSl_hB.cjs} +0 -0
- /package/lib/{impersonator.interface-D2BWTjld.cjs → create-permission-options.interface-862O5uvJ.cjs} +0 -0
- /package/lib/{interfaces-Bj3jzkUk.cjs → create-user-options.interface-BKkeTnvf.cjs} +0 -0
- /package/lib/{interfaces-D9rg42Qr.cjs → created-api-key.interface-C1aPiShv.cjs} +0 -0
- /package/lib/{interfaces-D_GTYFG5.cjs → decrypt-data-key.interface-D69Vb3ft.cjs} +0 -0
- /package/lib/{interfaces-DlIGjxho.cjs → delete-authorization-resource-by-external-id-options.interface-BiQ32Cns.cjs} +0 -0
- /package/lib/{interfaces-MzGHd7Yh.cjs → delete-authorization-resource-options.interface-BP6KZ1gG.cjs} +0 -0
- /package/lib/{interfaces-zQuVtXTa.cjs → delete-object.interface-DZ-xHmQu.cjs} +0 -0
- /package/lib/{invitation.interface-Dz6VF1sU.cjs → directory-group.interface-Gjrl6Za6.cjs} +0 -0
- /package/lib/{key.interface-CHRr2LEz.cjs → directory-user.interface-jIKY1oa_.cjs} +0 -0
- /package/lib/{list-auth-factors-options.interface-L62JljVx.cjs → directory.interface-Cx8RYw6k.cjs} +0 -0
- /package/lib/{list-connections-options.interface-DVqutI5F.cjs → email-verification.interface-eQIbonny.cjs} +0 -0
- /package/lib/{list-directories-options.interface-eav9nzy3.cjs → enroll-auth-factor.interface-B3iA0f5-.cjs} +0 -0
- /package/lib/{list-directory-users-options.interface-DLqDVyl2.cjs → environment-role.interface-vp39mbJG.cjs} +0 -0
- /package/lib/{list-events-options.interface-0QWZL0Yw.cjs → event.interface-DTEEUV0a.cjs} +0 -0
- /package/lib/{list-feature-flags-options.interface-DVCuHMFE.cjs → factor.interface-Cr3vEd_Q.cjs} +0 -0
- /package/lib/{list-groups-options.interface-By_UcNDc.cjs → feature-flag.interface-Bn_Jcnb4.cjs} +0 -0
- /package/lib/{list-invitations-options.interface-BSkj-ZNH.cjs → get-authorization-resource-by-external-id-options.interface-DHwlk2AT.cjs} +0 -0
- /package/lib/{list-object-versions.interface-CZ3u9vAQ.cjs → get-options.interface-DjHw29Gw.cjs} +0 -0
- /package/lib/{list-objects.interface-DB0LHLG9.cjs → get-profile-and-token-options.interface-D-t_N_S4.cjs} +0 -0
- /package/lib/{list-organization-api-keys-options.interface-CveTG0uD.cjs → get-profile-options.interface-CHz99jzH.cjs} +0 -0
- /package/lib/{list-organization-feature-flags-options.interface-_x6kSSZY.cjs → http-client.interface-f2mgwQFE.cjs} +0 -0
- /package/lib/{list-organization-memberships-options.interface-DQEYYc8q.cjs → identity.interface-CE-TyJpI.cjs} +0 -0
- /package/lib/{list-organizations-options.interface-CO97CX3u.cjs → impersonator.interface-DVfPFpHv.cjs} +0 -0
- /package/lib/{index-1uLygO4P.d.cts → index-5sePSnuT.d.cts} +0 -0
- /package/lib/{index-B6gmSQ17.d.cts → index-AOdzNy7G.d.cts} +0 -0
- /package/lib/{index-BcBOa3hp.d.cts → index-B8KvrSri.d.cts} +0 -0
- /package/lib/{index-BxzRAt8C.d.cts → index-BM6C8eiF.d.cts} +0 -0
- /package/lib/{index-CGSBYMIY.d.cts → index-BarF0VGQ.d.cts} +0 -0
- /package/lib/{index-CNyG9oqt.d.cts → index-BkwoKYuA.d.cts} +0 -0
- /package/lib/{index-CRoJq_Lc.d.cts → index-ChDktAOS.d.cts} +0 -0
- /package/lib/{index-D-yUU_Re.d.cts → index-D6_7i5mv.d.cts} +0 -0
- /package/lib/{index-DBTRFl_2.d.cts → index-DPFAF2L8.d.cts} +0 -0
- /package/lib/{index-Daxn2RpI.d.cts → index-DZvf9ts3.d.cts} +0 -0
- /package/lib/{index-W8XcuB-8.d.cts → index-QaV06Orc.d.cts} +0 -0
- /package/lib/{list-permissions-options.interface-DLk_ltrp.cjs → interfaces-2RIrb9eZ.cjs} +0 -0
- /package/lib/{list-sessions-options.interface-DRc1NZdD.cjs → interfaces-BhsLvV2I.cjs} +0 -0
- /package/lib/{list-user-feature-flags-options.interface-CgqawmKH.cjs → interfaces-Bo2cVn99.cjs} +0 -0
- /package/lib/{list-users-options.interface-C5sgnUd6.cjs → interfaces-CMcTAErf.cjs} +0 -0
- /package/lib/{list.interface-BRryI6pg.cjs → interfaces-CQzl9vB6.cjs} +0 -0
- /package/lib/{locale.interface-BTUQlgqX.cjs → interfaces-CZMLFhDN.cjs} +0 -0
- /package/lib/{logout-url-options.interface-lD0JqUBq.cjs → invitation.interface-CknczPqq.cjs} +0 -0
- /package/lib/{magic-auth.interface-D8jgzoGD.cjs → key.interface-CC2uD6p4.cjs} +0 -0
- /package/lib/{oauth-tokens.interface-BBMvv6jR.cjs → list-auth-factors-options.interface-BaWRr4HX.cjs} +0 -0
- /package/lib/{object.interface-npvKCWKF.cjs → list-authorization-resources-options.interface-B3sf3hOh.cjs} +0 -0
- /package/lib/{organization-membership.interface-CYxOpTIM.cjs → list-connections-options.interface-B4o7Dg7E.cjs} +0 -0
- /package/lib/{organization-role.interface-CLBM9aza.cjs → list-directories-options.interface-CQga5gNx.cjs} +0 -0
- /package/lib/{organization.interface-pY1iGerY.cjs → list-directory-users-options.interface-bRKoi3uh.cjs} +0 -0
- /package/lib/{pagination-options.interface-BoiKHHTH.cjs → list-events-options.interface-DlD8hbg-.cjs} +0 -0
- /package/lib/{password-reset.interface-s_bWZdDk.cjs → list-feature-flags-options.interface-BuAGocb_.cjs} +0 -0
- /package/lib/{passwordless-session.interface-Bi9y87V7.cjs → list-groups-options.interface-BkzhnP23.cjs} +0 -0
- /package/lib/{patch-options.interface-Fd1jUcSo.cjs → list-invitations-options.interface-ANMijoDj.cjs} +0 -0
- /package/lib/{permission.interface-Dhx-jPkZ.cjs → list-memberships-for-resource-by-external-id-options.interface-DVmCOuB-.cjs} +0 -0
- /package/lib/{post-options.interface-BY7OUsfe.cjs → list-memberships-for-resource-options.interface-9ATHNNdH.cjs} +0 -0
- /package/lib/{profile-and-token.interface-BrAmbRfi.cjs → list-object-versions.interface-7bMXekXS.cjs} +0 -0
- /package/lib/{profile.interface-CIhPFxjC.cjs → list-objects.interface-Df3gsh5f.cjs} +0 -0
- /package/lib/{put-options.interface-C0STQ8xm.cjs → list-organization-api-keys-options.interface-7oL0NhBo.cjs} +0 -0
- /package/lib/{query.interface-C37Vr290.cjs → list-organization-feature-flags-options.interface-CS56ReAC.cjs} +0 -0
- /package/lib/{read-object.interface-RCcLbvry.cjs → list-organization-memberships-options.interface-2VAVS67L.cjs} +0 -0
- /package/lib/{remove-flag-target-options.interface-CNzVf6zp.cjs → list-organizations-options.interface-B1M5Od_m.cjs} +0 -0
- /package/lib/{remove-organization-role-permission-options.interface-BpQUw8lU.cjs → list-permissions-options.interface-CgVHKqiN.cjs} +0 -0
- /package/lib/{resend-invitation-options.interface-U-F_hXjY.cjs → list-resources-for-membership-options.interface-1dSllzkH.cjs} +0 -0
- /package/lib/{reset-password-options.interface-ePAbD4TN.cjs → list-role-assignments-options.interface-DF9W0Crg.cjs} +0 -0
- /package/lib/{resource.interface-CvM11E0d.cjs → list-sessions-options.interface-BR3oWxBU.cjs} +0 -0
- /package/lib/{response-payload.interface-tlU2hrOg.cjs → list-user-feature-flags-options.interface-BjORmo6E.cjs} +0 -0
- /package/lib/{role.interface-DIftS8f6.cjs → list-users-options.interface-BGH7eAhH.cjs} +0 -0
- /package/lib/{send-invitation-options.interface-Kcf-k9PB.cjs → list.interface-Ch7SsnDq.cjs} +0 -0
- /package/lib/{send-session-response.interface-CVGhNzxv.cjs → locale.interface-DwCivlkF.cjs} +0 -0
- /package/lib/{send-verification-email-options.interface-BDFFU_hE.cjs → logout-url-options.interface-CW7A-s1Y.cjs} +0 -0
- /package/lib/{serializers-7jp-w6XR.cjs → magic-auth.interface-CtOudjuJ.cjs} +0 -0
- /package/lib/{serializers-BYNFscuJ.cjs → oauth-tokens.interface-CxNP7L-L.cjs} +0 -0
- /package/lib/{serializers-BwPEoKGa.cjs → object.interface-CBgtGtyU.cjs} +0 -0
- /package/lib/{serializers-ByG5nPfP.cjs → organization-membership.interface-CUF7HzwC.cjs} +0 -0
- /package/lib/{serializers-CF5AFJRO.cjs → organization-role.interface-HnEQVE0J.cjs} +0 -0
- /package/lib/{serializers-CTAQ2MNs.cjs → organization.interface-B_xvfP51.cjs} +0 -0
- /package/lib/{serializers-ConfEXvy.cjs → pagination-options.interface-865FT6y0.cjs} +0 -0
- /package/lib/{serializers-D2Dn6RC1.cjs → password-reset.interface-Cx8n6T9V.cjs} +0 -0
- /package/lib/{session.interface-BZJrUkM4.cjs → passwordless-session.interface-BPmUhUA4.cjs} +0 -0
- /package/lib/{set-environment-role-permissions-options.interface-C04yO7oE.cjs → patch-options.interface-CgLPAxTh.cjs} +0 -0
- /package/lib/{set-organization-role-permissions-options.interface-Dsm86677.cjs → permission.interface-D9G_Tf6C.cjs} +0 -0
- /package/lib/{unprocessable-entity-error.interface-B2dNTbj0.cjs → post-options.interface-8YBGzFMW.cjs} +0 -0
- /package/lib/{update-environment-role-options.interface-i6KgrgfD.cjs → profile-and-token.interface-B7LtTM4T.cjs} +0 -0
- /package/lib/{update-object.interface-CSfFiDhx.cjs → profile.interface-Ikyg1dXV.cjs} +0 -0
- /package/lib/{update-organization-membership-options.interface-DI05j1eb.cjs → put-options.interface-DyDiwQjk.cjs} +0 -0
- /package/lib/{update-organization-options.interface-Bo0n5-X2.cjs → query.interface-DtqCj1pM.cjs} +0 -0
- /package/lib/{update-organization-role-options.interface-BxoOYg6j.cjs → read-object.interface-DxLLeoRt.cjs} +0 -0
- /package/lib/{update-permission-options.interface-Cc6sRKzk.cjs → remove-flag-target-options.interface-DyBUaupv.cjs} +0 -0
- /package/lib/{update-user-options.interface-CS28Uw1c.cjs → remove-organization-role-permission-options.interface-B5nIrOvq.cjs} +0 -0
- /package/lib/{update-user-password-options.interface-Bx71Wh7d.cjs → remove-role-assignment-options.interface-Bdsr91u1.cjs} +0 -0
- /package/lib/{user.interface-Db9w7KTg.cjs → remove-role-options.interface-aSK65AAy.cjs} +0 -0
- /package/lib/{validate-api-key.interface-CH-HBG4k.cjs → resend-invitation-options.interface-CRNqm7lR.cjs} +0 -0
- /package/lib/{verify-email-options.interface-DNBDrwqZ.cjs → reset-password-options.interface-DAmF6JPe.cjs} +0 -0
- /package/lib/{warrant-token.interface-CT-IebpW.cjs → resource.interface-1aq4-7ME.cjs} +0 -0
- /package/lib/{warrant.interface-DdHBsjB0.cjs → response-payload.interface-vwwiY4s6.cjs} +0 -0
- /package/lib/{workos-options.interface-Dyy5FyDG.cjs → role-assignment.interface-CQVAgfeO.cjs} +0 -0
- /package/lib/{workos-response-error.interface-DfARVQg0.cjs → role.interface-Bjkku_tB.cjs} +0 -0
package/lib/seal-B34v5bmh.cjs
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region node_modules/uint8array-extras/index.js
|
|
3
|
-
const objectToString = Object.prototype.toString;
|
|
4
|
-
const uint8ArrayStringified = "[object Uint8Array]";
|
|
5
|
-
function isType(value, typeConstructor, typeStringified) {
|
|
6
|
-
if (!value) return false;
|
|
7
|
-
if (value.constructor === typeConstructor) return true;
|
|
8
|
-
return objectToString.call(value) === typeStringified;
|
|
9
|
-
}
|
|
10
|
-
function isUint8Array(value) {
|
|
11
|
-
return isType(value, Uint8Array, uint8ArrayStringified);
|
|
12
|
-
}
|
|
13
|
-
function assertUint8Array(value) {
|
|
14
|
-
if (!isUint8Array(value)) throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof value}\``);
|
|
15
|
-
}
|
|
16
|
-
const cachedDecoders = { utf8: new globalThis.TextDecoder("utf8") };
|
|
17
|
-
function assertString(value) {
|
|
18
|
-
if (typeof value !== "string") throw new TypeError(`Expected \`string\`, got \`${typeof value}\``);
|
|
19
|
-
}
|
|
20
|
-
const cachedEncoder = new globalThis.TextEncoder();
|
|
21
|
-
function base64ToBase64Url(base64) {
|
|
22
|
-
return base64.replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/, "");
|
|
23
|
-
}
|
|
24
|
-
function base64UrlToBase64(base64url) {
|
|
25
|
-
const base64 = base64url.replaceAll("-", "+").replaceAll("_", "/");
|
|
26
|
-
const padding = (4 - base64.length % 4) % 4;
|
|
27
|
-
return base64 + "=".repeat(padding);
|
|
28
|
-
}
|
|
29
|
-
const MAX_BLOCK_SIZE = 65535;
|
|
30
|
-
function uint8ArrayToBase64(array, { urlSafe = false } = {}) {
|
|
31
|
-
assertUint8Array(array);
|
|
32
|
-
let base64 = "";
|
|
33
|
-
for (let index = 0; index < array.length; index += MAX_BLOCK_SIZE) {
|
|
34
|
-
const chunk = array.subarray(index, index + MAX_BLOCK_SIZE);
|
|
35
|
-
base64 += globalThis.btoa(String.fromCodePoint.apply(void 0, chunk));
|
|
36
|
-
}
|
|
37
|
-
return urlSafe ? base64ToBase64Url(base64) : base64;
|
|
38
|
-
}
|
|
39
|
-
function base64ToUint8Array(base64String) {
|
|
40
|
-
assertString(base64String);
|
|
41
|
-
return Uint8Array.from(globalThis.atob(base64UrlToBase64(base64String)), (x) => x.codePointAt(0));
|
|
42
|
-
}
|
|
43
|
-
const byteToHexLookupTable = Array.from({ length: 256 }, (_, index) => index.toString(16).padStart(2, "0"));
|
|
44
|
-
function uint8ArrayToHex(array) {
|
|
45
|
-
assertUint8Array(array);
|
|
46
|
-
let hexString = "";
|
|
47
|
-
for (let index = 0; index < array.length; index++) hexString += byteToHexLookupTable[array[index]];
|
|
48
|
-
return hexString;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region node_modules/iron-webcrypto/index.js
|
|
53
|
-
function losslessJsonStringify(data) {
|
|
54
|
-
try {
|
|
55
|
-
if (isJson(data)) {
|
|
56
|
-
let stringified = JSON.stringify(data);
|
|
57
|
-
if (stringified) return stringified;
|
|
58
|
-
}
|
|
59
|
-
} catch {}
|
|
60
|
-
throw Error("Data is not JSON serializable");
|
|
61
|
-
}
|
|
62
|
-
function jsonParse(string) {
|
|
63
|
-
try {
|
|
64
|
-
return JSON.parse(string);
|
|
65
|
-
} catch (err) {
|
|
66
|
-
throw Error("Failed parsing sealed object JSON: " + err.message);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function isJson(val) {
|
|
70
|
-
let stack = [], seen = /* @__PURE__ */ new WeakSet(), check = (val$1) => val$1 === null || typeof val$1 == "string" || typeof val$1 == "boolean" ? !0 : typeof val$1 == "number" ? Number.isFinite(val$1) : typeof val$1 == "object" ? seen.has(val$1) ? !0 : (seen.add(val$1), stack.push(val$1), !0) : !1;
|
|
71
|
-
if (!check(val)) return !1;
|
|
72
|
-
for (; stack.length;) {
|
|
73
|
-
let obj = stack.pop();
|
|
74
|
-
if (Array.isArray(obj)) {
|
|
75
|
-
let i$1 = obj.length;
|
|
76
|
-
for (; i$1--;) if (!check(obj[i$1])) return !1;
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
let proto = Reflect.getPrototypeOf(obj);
|
|
80
|
-
if (proto !== null && proto !== Object.prototype) return !1;
|
|
81
|
-
let keys = Reflect.ownKeys(obj), i = keys.length;
|
|
82
|
-
for (; i--;) {
|
|
83
|
-
let key = keys[i];
|
|
84
|
-
if (typeof key != "string" || Reflect.getOwnPropertyDescriptor(obj, key)?.enumerable === !1) return !1;
|
|
85
|
-
let val$1 = obj[key];
|
|
86
|
-
if (val$1 !== void 0 && !check(val$1)) return !1;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return !0;
|
|
90
|
-
}
|
|
91
|
-
const enc = /* @__PURE__ */ new TextEncoder(), dec = /* @__PURE__ */ new TextDecoder(), jsBase64Enabled = /* @__PURE__ */ (() => typeof Uint8Array.fromBase64 == "function" && typeof Uint8Array.prototype.toBase64 == "function" && typeof Uint8Array.prototype.toHex == "function")();
|
|
92
|
-
function b64ToU8(str) {
|
|
93
|
-
return jsBase64Enabled ? Uint8Array.fromBase64(str, { alphabet: "base64url" }) : base64ToUint8Array(str);
|
|
94
|
-
}
|
|
95
|
-
function u8ToB64(arr) {
|
|
96
|
-
return arr = arr instanceof ArrayBuffer ? new Uint8Array(arr) : arr, jsBase64Enabled ? arr.toBase64({
|
|
97
|
-
alphabet: "base64url",
|
|
98
|
-
omitPadding: !0
|
|
99
|
-
}) : uint8ArrayToBase64(arr, { urlSafe: !0 });
|
|
100
|
-
}
|
|
101
|
-
function u8ToHex(arr) {
|
|
102
|
-
return arr = arr instanceof ArrayBuffer ? new Uint8Array(arr) : arr, jsBase64Enabled ? arr.toHex() : uint8ArrayToHex(arr);
|
|
103
|
-
}
|
|
104
|
-
const defaults = /* @__PURE__ */ Object.freeze({
|
|
105
|
-
encryption: /* @__PURE__ */ Object.freeze({
|
|
106
|
-
algorithm: "aes-256-cbc",
|
|
107
|
-
saltBits: 256,
|
|
108
|
-
iterations: 1,
|
|
109
|
-
minPasswordlength: 32
|
|
110
|
-
}),
|
|
111
|
-
integrity: /* @__PURE__ */ Object.freeze({
|
|
112
|
-
algorithm: "sha256",
|
|
113
|
-
saltBits: 256,
|
|
114
|
-
iterations: 1,
|
|
115
|
-
minPasswordlength: 32
|
|
116
|
-
}),
|
|
117
|
-
ttl: 0,
|
|
118
|
-
timestampSkewSec: 60,
|
|
119
|
-
localtimeOffsetMsec: 0
|
|
120
|
-
});
|
|
121
|
-
const algorithms = /* @__PURE__ */ Object.freeze({
|
|
122
|
-
"aes-128-ctr": /* @__PURE__ */ Object.freeze({
|
|
123
|
-
keyBits: 128,
|
|
124
|
-
ivBits: 128,
|
|
125
|
-
name: "AES-CTR"
|
|
126
|
-
}),
|
|
127
|
-
"aes-256-cbc": /* @__PURE__ */ Object.freeze({
|
|
128
|
-
keyBits: 256,
|
|
129
|
-
ivBits: 128,
|
|
130
|
-
name: "AES-CBC"
|
|
131
|
-
}),
|
|
132
|
-
sha256: /* @__PURE__ */ Object.freeze({
|
|
133
|
-
keyBits: 256,
|
|
134
|
-
ivBits: void 0,
|
|
135
|
-
name: "SHA-256"
|
|
136
|
-
})
|
|
137
|
-
}), macFormatVersion = "2", macPrefix = "Fe26.2";
|
|
138
|
-
function randomBits(bits) {
|
|
139
|
-
return crypto.getRandomValues(new Uint8Array(bits / 8));
|
|
140
|
-
}
|
|
141
|
-
async function generateKey(password, options) {
|
|
142
|
-
if (!password || !password.length) throw Error("Empty password");
|
|
143
|
-
if (!options || typeof options != "object") throw Error("Bad options");
|
|
144
|
-
let algorithm = algorithms[options.algorithm];
|
|
145
|
-
if (!algorithm) throw Error("Unknown algorithm: " + options.algorithm);
|
|
146
|
-
let isHmac = algorithm.name === "SHA-256", id = isHmac ? {
|
|
147
|
-
name: "HMAC",
|
|
148
|
-
hash: algorithm.name,
|
|
149
|
-
length: algorithm.keyBits
|
|
150
|
-
} : {
|
|
151
|
-
name: algorithm.name,
|
|
152
|
-
length: algorithm.keyBits
|
|
153
|
-
}, usages = isHmac ? ["sign", "verify"] : ["encrypt", "decrypt"], iv = options.iv || (algorithm.ivBits ? randomBits(algorithm.ivBits) : void 0);
|
|
154
|
-
if (typeof password == "string") {
|
|
155
|
-
if (password.length < options.minPasswordlength) throw Error("Password string too short (min " + options.minPasswordlength + " characters required)");
|
|
156
|
-
let salt = options.salt;
|
|
157
|
-
if (!salt) {
|
|
158
|
-
if (!options.saltBits) throw Error("Missing salt and saltBits options");
|
|
159
|
-
salt = u8ToHex(randomBits(options.saltBits));
|
|
160
|
-
}
|
|
161
|
-
let baseKey = await crypto.subtle.importKey("raw", enc.encode(password), "PBKDF2", !1, ["deriveKey"]), algorithm$1 = {
|
|
162
|
-
name: "PBKDF2",
|
|
163
|
-
salt: enc.encode(salt),
|
|
164
|
-
iterations: options.iterations,
|
|
165
|
-
hash: "SHA-1"
|
|
166
|
-
};
|
|
167
|
-
return {
|
|
168
|
-
key: await crypto.subtle.deriveKey(algorithm$1, baseKey, id, !1, usages),
|
|
169
|
-
iv,
|
|
170
|
-
salt
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
if (password.length < algorithm.keyBits / 8) throw Error("Key buffer (password) too small");
|
|
174
|
-
return {
|
|
175
|
-
key: await crypto.subtle.importKey("raw", password.slice(), id, !1, usages),
|
|
176
|
-
iv,
|
|
177
|
-
salt: ""
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
function getEncryptParams(algorithm, key, data) {
|
|
181
|
-
return [
|
|
182
|
-
algorithm === "aes-128-ctr" ? {
|
|
183
|
-
name: "AES-CTR",
|
|
184
|
-
counter: key.iv,
|
|
185
|
-
length: 128
|
|
186
|
-
} : {
|
|
187
|
-
name: "AES-CBC",
|
|
188
|
-
iv: key.iv
|
|
189
|
-
},
|
|
190
|
-
key.key,
|
|
191
|
-
typeof data == "string" ? enc.encode(data) : data.slice()
|
|
192
|
-
];
|
|
193
|
-
}
|
|
194
|
-
async function encrypt(password, options, data) {
|
|
195
|
-
let key = await generateKey(password, options), encrypted = await crypto.subtle.encrypt(...getEncryptParams(options.algorithm, key, data));
|
|
196
|
-
return {
|
|
197
|
-
encrypted: new Uint8Array(encrypted),
|
|
198
|
-
key
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
async function decrypt(password, options, data) {
|
|
202
|
-
let key = await generateKey(password, options), decrypted = await crypto.subtle.decrypt(...getEncryptParams(options.algorithm, key, data));
|
|
203
|
-
return dec.decode(decrypted);
|
|
204
|
-
}
|
|
205
|
-
async function hmacWithPassword(password, options, data) {
|
|
206
|
-
let key = await generateKey(password, options);
|
|
207
|
-
return {
|
|
208
|
-
digest: u8ToB64(await crypto.subtle.sign("HMAC", key.key, enc.encode(data))),
|
|
209
|
-
salt: key.salt
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
function normalizePassword(password) {
|
|
213
|
-
let normalized = typeof password == "string" || password instanceof Uint8Array ? {
|
|
214
|
-
encryption: password,
|
|
215
|
-
integrity: password
|
|
216
|
-
} : password && typeof password == "object" ? "secret" in password ? {
|
|
217
|
-
id: password.id,
|
|
218
|
-
encryption: password.secret,
|
|
219
|
-
integrity: password.secret
|
|
220
|
-
} : {
|
|
221
|
-
id: password.id,
|
|
222
|
-
encryption: password.encryption,
|
|
223
|
-
integrity: password.integrity
|
|
224
|
-
} : void 0;
|
|
225
|
-
if (!normalized || !normalized.encryption || normalized.encryption.length === 0 || !normalized.integrity || normalized.integrity.length === 0) throw Error("Empty password");
|
|
226
|
-
return normalized;
|
|
227
|
-
}
|
|
228
|
-
async function seal(object, password, options) {
|
|
229
|
-
let now = Date.now() + (options.localtimeOffsetMsec || 0), { id = "", encryption, integrity } = normalizePassword(password);
|
|
230
|
-
if (id && !/^\w+$/.test(id)) throw Error("Invalid password id");
|
|
231
|
-
let { encrypted, key } = await encrypt(encryption, options.encryption, (options.encode || losslessJsonStringify)(object)), expiration = options.ttl ? now + options.ttl : "", macBaseString = macPrefix + "*" + id + "*" + key.salt + "*" + u8ToB64(key.iv) + "*" + u8ToB64(encrypted) + "*" + expiration, mac = await hmacWithPassword(integrity, options.integrity, macBaseString);
|
|
232
|
-
return macBaseString + "*" + mac.salt + "*" + mac.digest;
|
|
233
|
-
}
|
|
234
|
-
async function unseal(sealed, password, options) {
|
|
235
|
-
let now = Date.now() + (options.localtimeOffsetMsec || 0), parts = sealed.split("*");
|
|
236
|
-
if (parts.length !== 8) throw Error("Incorrect number of sealed components");
|
|
237
|
-
let [prefix, passwordId, encryptionSalt, ivB64, encryptedB64, expiration, hmacSalt, hmacDigestB64] = parts;
|
|
238
|
-
if (prefix !== macPrefix) throw Error("Wrong mac prefix");
|
|
239
|
-
if (expiration) {
|
|
240
|
-
if (!/^[1-9]\d*$/.test(expiration)) throw Error("Invalid expiration");
|
|
241
|
-
if (Number.parseInt(expiration, 10) <= now - options.timestampSkewSec * 1e3) throw Error("Expired seal");
|
|
242
|
-
}
|
|
243
|
-
let pass;
|
|
244
|
-
if (typeof password == "string" || password instanceof Uint8Array) pass = password;
|
|
245
|
-
else if (typeof password == "object" && password) {
|
|
246
|
-
let passwordIdKey = passwordId || "default";
|
|
247
|
-
if (pass = password[passwordIdKey], !pass) throw Error("Cannot find password: " + passwordIdKey);
|
|
248
|
-
}
|
|
249
|
-
pass = normalizePassword(pass);
|
|
250
|
-
let key = await generateKey(pass.integrity, {
|
|
251
|
-
...options.integrity,
|
|
252
|
-
salt: hmacSalt
|
|
253
|
-
}), macBaseString = prefix + "*" + passwordId + "*" + encryptionSalt + "*" + ivB64 + "*" + encryptedB64 + "*" + expiration;
|
|
254
|
-
if (!await crypto.subtle.verify("HMAC", key.key, b64ToU8(hmacDigestB64), enc.encode(macBaseString))) throw Error("Bad hmac value");
|
|
255
|
-
let decryptedString = await decrypt(pass.encryption, {
|
|
256
|
-
...options.encryption,
|
|
257
|
-
salt: encryptionSalt,
|
|
258
|
-
iv: b64ToU8(ivB64)
|
|
259
|
-
}, b64ToU8(encryptedB64));
|
|
260
|
-
return (options.decode || jsonParse)(decryptedString);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
//#endregion
|
|
264
|
-
//#region src/common/crypto/seal.ts
|
|
265
|
-
const VERSION_DELIMITER = "~";
|
|
266
|
-
const CURRENT_MAJOR_VERSION = 2;
|
|
267
|
-
function parseSeal(seal$1) {
|
|
268
|
-
const [sealWithoutVersion = "", tokenVersionAsString] = seal$1.split(VERSION_DELIMITER);
|
|
269
|
-
return {
|
|
270
|
-
sealWithoutVersion,
|
|
271
|
-
tokenVersion: tokenVersionAsString == null ? null : parseInt(tokenVersionAsString, 10)
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
async function sealData(data, { password }) {
|
|
275
|
-
return `${await seal(data, {
|
|
276
|
-
id: "1",
|
|
277
|
-
secret: password
|
|
278
|
-
}, {
|
|
279
|
-
...defaults,
|
|
280
|
-
ttl: 0,
|
|
281
|
-
encode: JSON.stringify
|
|
282
|
-
})}${VERSION_DELIMITER}${CURRENT_MAJOR_VERSION}`;
|
|
283
|
-
}
|
|
284
|
-
async function unsealData(encryptedData, { password }) {
|
|
285
|
-
const { sealWithoutVersion, tokenVersion } = parseSeal(encryptedData);
|
|
286
|
-
const passwordMap = { 1: password };
|
|
287
|
-
let data;
|
|
288
|
-
try {
|
|
289
|
-
data = await unseal(sealWithoutVersion, passwordMap, {
|
|
290
|
-
...defaults,
|
|
291
|
-
ttl: 0
|
|
292
|
-
}) ?? {};
|
|
293
|
-
} catch (error) {
|
|
294
|
-
if (error instanceof Error && /^(Expired seal|Bad hmac value|Cannot find password|Incorrect number of sealed components|Wrong mac prefix)/.test(error.message)) return {};
|
|
295
|
-
throw error;
|
|
296
|
-
}
|
|
297
|
-
if (tokenVersion === 2) return data;
|
|
298
|
-
else if (tokenVersion !== null) return data.persistent ?? data;
|
|
299
|
-
return data;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
//#endregion
|
|
303
|
-
Object.defineProperty(exports, 'sealData', {
|
|
304
|
-
enumerable: true,
|
|
305
|
-
get: function () {
|
|
306
|
-
return sealData;
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
Object.defineProperty(exports, 'unsealData', {
|
|
310
|
-
enumerable: true,
|
|
311
|
-
get: function () {
|
|
312
|
-
return unsealData;
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
//# sourceMappingURL=seal-B34v5bmh.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seal-B34v5bmh.cjs","names":["seal","ironSeal","data: unknown","ironUnseal"],"sources":["../node_modules/uint8array-extras/index.js","../node_modules/iron-webcrypto/index.js","../src/common/crypto/seal.ts"],"sourcesContent":["const objectToString = Object.prototype.toString;\nconst uint8ArrayStringified = '[object Uint8Array]';\nconst arrayBufferStringified = '[object ArrayBuffer]';\n\nfunction isType(value, typeConstructor, typeStringified) {\n\tif (!value) {\n\t\treturn false;\n\t}\n\n\tif (value.constructor === typeConstructor) {\n\t\treturn true;\n\t}\n\n\treturn objectToString.call(value) === typeStringified;\n}\n\nexport function isUint8Array(value) {\n\treturn isType(value, Uint8Array, uint8ArrayStringified);\n}\n\nfunction isArrayBuffer(value) {\n\treturn isType(value, ArrayBuffer, arrayBufferStringified);\n}\n\nfunction isUint8ArrayOrArrayBuffer(value) {\n\treturn isUint8Array(value) || isArrayBuffer(value);\n}\n\nexport function assertUint8Array(value) {\n\tif (!isUint8Array(value)) {\n\t\tthrow new TypeError(`Expected \\`Uint8Array\\`, got \\`${typeof value}\\``);\n\t}\n}\n\nexport function assertUint8ArrayOrArrayBuffer(value) {\n\tif (!isUint8ArrayOrArrayBuffer(value)) {\n\t\tthrow new TypeError(`Expected \\`Uint8Array\\` or \\`ArrayBuffer\\`, got \\`${typeof value}\\``);\n\t}\n}\n\nexport function toUint8Array(value) {\n\tif (value instanceof ArrayBuffer) {\n\t\treturn new Uint8Array(value);\n\t}\n\n\tif (ArrayBuffer.isView(value)) {\n\t\treturn new Uint8Array(value.buffer, value.byteOffset, value.byteLength);\n\t}\n\n\tthrow new TypeError(`Unsupported value, got \\`${typeof value}\\`.`);\n}\n\nexport function concatUint8Arrays(arrays, totalLength) {\n\tif (arrays.length === 0) {\n\t\treturn new Uint8Array(0);\n\t}\n\n\ttotalLength ??= arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0);\n\n\tconst returnValue = new Uint8Array(totalLength);\n\n\tlet offset = 0;\n\tfor (const array of arrays) {\n\t\tassertUint8Array(array);\n\t\treturnValue.set(array, offset);\n\t\toffset += array.length;\n\t}\n\n\treturn returnValue;\n}\n\nexport function areUint8ArraysEqual(a, b) {\n\tassertUint8Array(a);\n\tassertUint8Array(b);\n\n\tif (a === b) {\n\t\treturn true;\n\t}\n\n\tif (a.length !== b.length) {\n\t\treturn false;\n\t}\n\n\t// eslint-disable-next-line unicorn/no-for-loop\n\tfor (let index = 0; index < a.length; index++) {\n\t\tif (a[index] !== b[index]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\nexport function compareUint8Arrays(a, b) {\n\tassertUint8Array(a);\n\tassertUint8Array(b);\n\n\tconst length = Math.min(a.length, b.length);\n\n\tfor (let index = 0; index < length; index++) {\n\t\tconst diff = a[index] - b[index];\n\t\tif (diff !== 0) {\n\t\t\treturn Math.sign(diff);\n\t\t}\n\t}\n\n\t// At this point, all the compared elements are equal.\n\t// The shorter array should come first if the arrays are of different lengths.\n\treturn Math.sign(a.length - b.length);\n}\n\nconst cachedDecoders = {\n\tutf8: new globalThis.TextDecoder('utf8'),\n};\n\nexport function uint8ArrayToString(array, encoding = 'utf8') {\n\tassertUint8ArrayOrArrayBuffer(array);\n\tcachedDecoders[encoding] ??= new globalThis.TextDecoder(encoding);\n\treturn cachedDecoders[encoding].decode(array);\n}\n\nfunction assertString(value) {\n\tif (typeof value !== 'string') {\n\t\tthrow new TypeError(`Expected \\`string\\`, got \\`${typeof value}\\``);\n\t}\n}\n\nconst cachedEncoder = new globalThis.TextEncoder();\n\nexport function stringToUint8Array(string) {\n\tassertString(string);\n\treturn cachedEncoder.encode(string);\n}\n\nfunction base64ToBase64Url(base64) {\n\treturn base64.replaceAll('+', '-').replaceAll('/', '_').replace(/=+$/, '');\n}\n\nfunction base64UrlToBase64(base64url) {\n\tconst base64 = base64url.replaceAll('-', '+').replaceAll('_', '/');\n\tconst padding = (4 - (base64.length % 4)) % 4;\n\treturn base64 + '='.repeat(padding);\n}\n\n// Reference: https://phuoc.ng/collection/this-vs-that/concat-vs-push/\n// Important: Keep this value divisible by 3 so intermediate chunks produce no Base64 padding.\nconst MAX_BLOCK_SIZE = 65_535;\n\nexport function uint8ArrayToBase64(array, {urlSafe = false} = {}) {\n\tassertUint8Array(array);\n\n\tlet base64 = '';\n\n\tfor (let index = 0; index < array.length; index += MAX_BLOCK_SIZE) {\n\t\tconst chunk = array.subarray(index, index + MAX_BLOCK_SIZE);\n\t\t// Required as `btoa` and `atob` don't properly support Unicode: https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem\n\t\tbase64 += globalThis.btoa(String.fromCodePoint.apply(undefined, chunk));\n\t}\n\n\treturn urlSafe ? base64ToBase64Url(base64) : base64;\n}\n\nexport function base64ToUint8Array(base64String) {\n\tassertString(base64String);\n\treturn Uint8Array.from(globalThis.atob(base64UrlToBase64(base64String)), x => x.codePointAt(0));\n}\n\nexport function stringToBase64(string, {urlSafe = false} = {}) {\n\tassertString(string);\n\treturn uint8ArrayToBase64(stringToUint8Array(string), {urlSafe});\n}\n\nexport function base64ToString(base64String) {\n\tassertString(base64String);\n\treturn uint8ArrayToString(base64ToUint8Array(base64String));\n}\n\nconst byteToHexLookupTable = Array.from({length: 256}, (_, index) => index.toString(16).padStart(2, '0'));\n\nexport function uint8ArrayToHex(array) {\n\tassertUint8Array(array);\n\n\t// Concatenating a string is faster than using an array.\n\tlet hexString = '';\n\n\t// eslint-disable-next-line unicorn/no-for-loop -- Max performance is critical.\n\tfor (let index = 0; index < array.length; index++) {\n\t\thexString += byteToHexLookupTable[array[index]];\n\t}\n\n\treturn hexString;\n}\n\nconst hexToDecimalLookupTable = {\n\t0: 0,\n\t1: 1,\n\t2: 2,\n\t3: 3,\n\t4: 4,\n\t5: 5,\n\t6: 6,\n\t7: 7,\n\t8: 8,\n\t9: 9,\n\ta: 10,\n\tb: 11,\n\tc: 12,\n\td: 13,\n\te: 14,\n\tf: 15,\n\tA: 10,\n\tB: 11,\n\tC: 12,\n\tD: 13,\n\tE: 14,\n\tF: 15,\n};\n\nexport function hexToUint8Array(hexString) {\n\tassertString(hexString);\n\n\tif (hexString.length % 2 !== 0) {\n\t\tthrow new Error('Invalid Hex string length.');\n\t}\n\n\tconst resultLength = hexString.length / 2;\n\tconst bytes = new Uint8Array(resultLength);\n\n\tfor (let index = 0; index < resultLength; index++) {\n\t\tconst highNibble = hexToDecimalLookupTable[hexString[index * 2]];\n\t\tconst lowNibble = hexToDecimalLookupTable[hexString[(index * 2) + 1]];\n\n\t\tif (highNibble === undefined || lowNibble === undefined) {\n\t\t\tthrow new Error(`Invalid Hex character encountered at position ${index * 2}`);\n\t\t}\n\n\t\tbytes[index] = (highNibble << 4) | lowNibble; // eslint-disable-line no-bitwise\n\t}\n\n\treturn bytes;\n}\n\n/**\n@param {DataView} view\n@returns {number}\n*/\nexport function getUintBE(view) {\n\tconst {byteLength} = view;\n\n\tif (byteLength === 6) {\n\t\treturn (view.getUint16(0) * (2 ** 32)) + view.getUint32(2);\n\t}\n\n\tif (byteLength === 5) {\n\t\treturn (view.getUint8(0) * (2 ** 32)) + view.getUint32(1);\n\t}\n\n\tif (byteLength === 4) {\n\t\treturn view.getUint32(0);\n\t}\n\n\tif (byteLength === 3) {\n\t\treturn (view.getUint8(0) * (2 ** 16)) + view.getUint16(1);\n\t}\n\n\tif (byteLength === 2) {\n\t\treturn view.getUint16(0);\n\t}\n\n\tif (byteLength === 1) {\n\t\treturn view.getUint8(0);\n\t}\n}\n\n/**\n@param {Uint8Array} array\n@param {Uint8Array} value\n@returns {number}\n*/\nexport function indexOf(array, value) {\n\tconst arrayLength = array.length;\n\tconst valueLength = value.length;\n\n\tif (valueLength === 0) {\n\t\treturn -1;\n\t}\n\n\tif (valueLength > arrayLength) {\n\t\treturn -1;\n\t}\n\n\tconst validOffsetLength = arrayLength - valueLength;\n\n\tfor (let index = 0; index <= validOffsetLength; index++) {\n\t\tlet isMatch = true;\n\t\tfor (let index2 = 0; index2 < valueLength; index2++) {\n\t\t\tif (array[index + index2] !== value[index2]) {\n\t\t\t\tisMatch = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (isMatch) {\n\t\t\treturn index;\n\t\t}\n\t}\n\n\treturn -1;\n}\n\n/**\n@param {Uint8Array} array\n@param {Uint8Array} value\n@returns {boolean}\n*/\nexport function includes(array, value) {\n\treturn indexOf(array, value) !== -1;\n}\n","/* @ts-self-types=\"./index.d.ts\" */\nimport { base64ToUint8Array, uint8ArrayToBase64, uint8ArrayToHex } from \"uint8array-extras\";\nfunction losslessJsonStringify(data) {\n\ttry {\n\t\tif (isJson(data)) {\n\t\t\tlet stringified = JSON.stringify(data);\n\t\t\tif (stringified) return stringified;\n\t\t}\n\t} catch {}\n\tthrow Error(\"Data is not JSON serializable\");\n}\nfunction jsonParse(string) {\n\ttry {\n\t\treturn JSON.parse(string);\n\t} catch (err) {\n\t\tthrow Error(\"Failed parsing sealed object JSON: \" + err.message);\n\t}\n}\nfunction isJson(val) {\n\tlet stack = [], seen = /* @__PURE__ */ new WeakSet(), check = (val$1) => val$1 === null || typeof val$1 == \"string\" || typeof val$1 == \"boolean\" ? !0 : typeof val$1 == \"number\" ? Number.isFinite(val$1) : typeof val$1 == \"object\" ? seen.has(val$1) ? !0 : (seen.add(val$1), stack.push(val$1), !0) : !1;\n\tif (!check(val)) return !1;\n\tfor (; stack.length;) {\n\t\tlet obj = stack.pop();\n\t\tif (Array.isArray(obj)) {\n\t\t\tlet i$1 = obj.length;\n\t\t\tfor (; i$1--;) if (!check(obj[i$1])) return !1;\n\t\t\tcontinue;\n\t\t}\n\t\tlet proto = Reflect.getPrototypeOf(obj);\n\t\tif (proto !== null && proto !== Object.prototype) return !1;\n\t\tlet keys = Reflect.ownKeys(obj), i = keys.length;\n\t\tfor (; i--;) {\n\t\t\tlet key = keys[i];\n\t\t\tif (typeof key != \"string\" || Reflect.getOwnPropertyDescriptor(obj, key)?.enumerable === !1) return !1;\n\t\t\tlet val$1 = obj[key];\n\t\t\tif (val$1 !== void 0 && !check(val$1)) return !1;\n\t\t}\n\t}\n\treturn !0;\n}\nconst enc = /* @__PURE__ */ new TextEncoder(), dec = /* @__PURE__ */ new TextDecoder(), jsBase64Enabled = /* @__PURE__ */ (() => typeof Uint8Array.fromBase64 == \"function\" && typeof Uint8Array.prototype.toBase64 == \"function\" && typeof Uint8Array.prototype.toHex == \"function\")();\nfunction b64ToU8(str) {\n\treturn jsBase64Enabled ? Uint8Array.fromBase64(str, { alphabet: \"base64url\" }) : base64ToUint8Array(str);\n}\nfunction u8ToB64(arr) {\n\treturn arr = arr instanceof ArrayBuffer ? new Uint8Array(arr) : arr, jsBase64Enabled ? arr.toBase64({\n\t\talphabet: \"base64url\",\n\t\tomitPadding: !0\n\t}) : uint8ArrayToBase64(arr, { urlSafe: !0 });\n}\nfunction u8ToHex(arr) {\n\treturn arr = arr instanceof ArrayBuffer ? new Uint8Array(arr) : arr, jsBase64Enabled ? arr.toHex() : uint8ArrayToHex(arr);\n}\nconst defaults = /* @__PURE__ */ Object.freeze({\n\tencryption: /* @__PURE__ */ Object.freeze({\n\t\talgorithm: \"aes-256-cbc\",\n\t\tsaltBits: 256,\n\t\titerations: 1,\n\t\tminPasswordlength: 32\n\t}),\n\tintegrity: /* @__PURE__ */ Object.freeze({\n\t\talgorithm: \"sha256\",\n\t\tsaltBits: 256,\n\t\titerations: 1,\n\t\tminPasswordlength: 32\n\t}),\n\tttl: 0,\n\ttimestampSkewSec: 60,\n\tlocaltimeOffsetMsec: 0\n});\nfunction clone(options) {\n\treturn {\n\t\t...options,\n\t\tencryption: { ...options.encryption },\n\t\tintegrity: { ...options.integrity }\n\t};\n}\nconst algorithms = /* @__PURE__ */ Object.freeze({\n\t\"aes-128-ctr\": /* @__PURE__ */ Object.freeze({\n\t\tkeyBits: 128,\n\t\tivBits: 128,\n\t\tname: \"AES-CTR\"\n\t}),\n\t\"aes-256-cbc\": /* @__PURE__ */ Object.freeze({\n\t\tkeyBits: 256,\n\t\tivBits: 128,\n\t\tname: \"AES-CBC\"\n\t}),\n\tsha256: /* @__PURE__ */ Object.freeze({\n\t\tkeyBits: 256,\n\t\tivBits: void 0,\n\t\tname: \"SHA-256\"\n\t})\n}), macFormatVersion = \"2\", macPrefix = \"Fe26.2\";\nfunction randomBits(bits) {\n\treturn crypto.getRandomValues(new Uint8Array(bits / 8));\n}\nasync function generateKey(password, options) {\n\tif (!password || !password.length) throw Error(\"Empty password\");\n\tif (!options || typeof options != \"object\") throw Error(\"Bad options\");\n\tlet algorithm = algorithms[options.algorithm];\n\tif (!algorithm) throw Error(\"Unknown algorithm: \" + options.algorithm);\n\tlet isHmac = algorithm.name === \"SHA-256\", id = isHmac ? {\n\t\tname: \"HMAC\",\n\t\thash: algorithm.name,\n\t\tlength: algorithm.keyBits\n\t} : {\n\t\tname: algorithm.name,\n\t\tlength: algorithm.keyBits\n\t}, usages = isHmac ? [\"sign\", \"verify\"] : [\"encrypt\", \"decrypt\"], iv = options.iv || (algorithm.ivBits ? randomBits(algorithm.ivBits) : void 0);\n\tif (typeof password == \"string\") {\n\t\tif (password.length < options.minPasswordlength) throw Error(\"Password string too short (min \" + options.minPasswordlength + \" characters required)\");\n\t\tlet salt = options.salt;\n\t\tif (!salt) {\n\t\t\tif (!options.saltBits) throw Error(\"Missing salt and saltBits options\");\n\t\t\tsalt = u8ToHex(randomBits(options.saltBits));\n\t\t}\n\t\tlet baseKey = await crypto.subtle.importKey(\"raw\", enc.encode(password), \"PBKDF2\", !1, [\"deriveKey\"]), algorithm$1 = {\n\t\t\tname: \"PBKDF2\",\n\t\t\tsalt: enc.encode(salt),\n\t\t\titerations: options.iterations,\n\t\t\thash: \"SHA-1\"\n\t\t};\n\t\treturn {\n\t\t\tkey: await crypto.subtle.deriveKey(algorithm$1, baseKey, id, !1, usages),\n\t\t\tiv,\n\t\t\tsalt\n\t\t};\n\t}\n\tif (password.length < algorithm.keyBits / 8) throw Error(\"Key buffer (password) too small\");\n\treturn {\n\t\tkey: await crypto.subtle.importKey(\"raw\", password.slice(), id, !1, usages),\n\t\tiv,\n\t\tsalt: \"\"\n\t};\n}\nfunction getEncryptParams(algorithm, key, data) {\n\treturn [\n\t\talgorithm === \"aes-128-ctr\" ? {\n\t\t\tname: \"AES-CTR\",\n\t\t\tcounter: key.iv,\n\t\t\tlength: 128\n\t\t} : {\n\t\t\tname: \"AES-CBC\",\n\t\t\tiv: key.iv\n\t\t},\n\t\tkey.key,\n\t\ttypeof data == \"string\" ? enc.encode(data) : data.slice()\n\t];\n}\nasync function encrypt(password, options, data) {\n\tlet key = await generateKey(password, options), encrypted = await crypto.subtle.encrypt(...getEncryptParams(options.algorithm, key, data));\n\treturn {\n\t\tencrypted: new Uint8Array(encrypted),\n\t\tkey\n\t};\n}\nasync function decrypt(password, options, data) {\n\tlet key = await generateKey(password, options), decrypted = await crypto.subtle.decrypt(...getEncryptParams(options.algorithm, key, data));\n\treturn dec.decode(decrypted);\n}\nasync function hmacWithPassword(password, options, data) {\n\tlet key = await generateKey(password, options);\n\treturn {\n\t\tdigest: u8ToB64(await crypto.subtle.sign(\"HMAC\", key.key, enc.encode(data))),\n\t\tsalt: key.salt\n\t};\n}\nfunction normalizePassword(password) {\n\tlet normalized = typeof password == \"string\" || password instanceof Uint8Array ? {\n\t\tencryption: password,\n\t\tintegrity: password\n\t} : password && typeof password == \"object\" ? \"secret\" in password ? {\n\t\tid: password.id,\n\t\tencryption: password.secret,\n\t\tintegrity: password.secret\n\t} : {\n\t\tid: password.id,\n\t\tencryption: password.encryption,\n\t\tintegrity: password.integrity\n\t} : void 0;\n\tif (!normalized || !normalized.encryption || normalized.encryption.length === 0 || !normalized.integrity || normalized.integrity.length === 0) throw Error(\"Empty password\");\n\treturn normalized;\n}\nasync function seal(object, password, options) {\n\tlet now = Date.now() + (options.localtimeOffsetMsec || 0), { id = \"\", encryption, integrity } = normalizePassword(password);\n\tif (id && !/^\\w+$/.test(id)) throw Error(\"Invalid password id\");\n\tlet { encrypted, key } = await encrypt(encryption, options.encryption, (options.encode || losslessJsonStringify)(object)), expiration = options.ttl ? now + options.ttl : \"\", macBaseString = macPrefix + \"*\" + id + \"*\" + key.salt + \"*\" + u8ToB64(key.iv) + \"*\" + u8ToB64(encrypted) + \"*\" + expiration, mac = await hmacWithPassword(integrity, options.integrity, macBaseString);\n\treturn macBaseString + \"*\" + mac.salt + \"*\" + mac.digest;\n}\nasync function unseal(sealed, password, options) {\n\tlet now = Date.now() + (options.localtimeOffsetMsec || 0), parts = sealed.split(\"*\");\n\tif (parts.length !== 8) throw Error(\"Incorrect number of sealed components\");\n\tlet [prefix, passwordId, encryptionSalt, ivB64, encryptedB64, expiration, hmacSalt, hmacDigestB64] = parts;\n\tif (prefix !== macPrefix) throw Error(\"Wrong mac prefix\");\n\tif (expiration) {\n\t\tif (!/^[1-9]\\d*$/.test(expiration)) throw Error(\"Invalid expiration\");\n\t\tif (Number.parseInt(expiration, 10) <= now - options.timestampSkewSec * 1e3) throw Error(\"Expired seal\");\n\t}\n\tlet pass;\n\tif (typeof password == \"string\" || password instanceof Uint8Array) pass = password;\n\telse if (typeof password == \"object\" && password) {\n\t\tlet passwordIdKey = passwordId || \"default\";\n\t\tif (pass = password[passwordIdKey], !pass) throw Error(\"Cannot find password: \" + passwordIdKey);\n\t}\n\tpass = normalizePassword(pass);\n\tlet key = await generateKey(pass.integrity, {\n\t\t...options.integrity,\n\t\tsalt: hmacSalt\n\t}), macBaseString = prefix + \"*\" + passwordId + \"*\" + encryptionSalt + \"*\" + ivB64 + \"*\" + encryptedB64 + \"*\" + expiration;\n\tif (!await crypto.subtle.verify(\"HMAC\", key.key, b64ToU8(hmacDigestB64), enc.encode(macBaseString))) throw Error(\"Bad hmac value\");\n\tlet decryptedString = await decrypt(pass.encryption, {\n\t\t...options.encryption,\n\t\tsalt: encryptionSalt,\n\t\tiv: b64ToU8(ivB64)\n\t}, b64ToU8(encryptedB64));\n\treturn (options.decode || jsonParse)(decryptedString);\n}\nexport { algorithms, clone, decrypt, defaults, encrypt, generateKey, hmacWithPassword, macFormatVersion, macPrefix, randomBits, seal, unseal };\n","import {\n seal as ironSeal,\n unseal as ironUnseal,\n defaults,\n} from 'iron-webcrypto';\n\nconst VERSION_DELIMITER = '~';\nconst CURRENT_MAJOR_VERSION = 2;\n\ninterface SealOptions {\n password: string;\n}\n\ninterface UnsealOptions {\n password: string;\n}\n\nfunction parseSeal(seal: string): {\n sealWithoutVersion: string;\n tokenVersion: number | null;\n} {\n const [sealWithoutVersion = '', tokenVersionAsString] =\n seal.split(VERSION_DELIMITER);\n const tokenVersion =\n tokenVersionAsString == null ? null : parseInt(tokenVersionAsString, 10);\n return { sealWithoutVersion, tokenVersion };\n}\n\nexport async function sealData(\n data: unknown,\n { password }: SealOptions,\n): Promise<string> {\n const passwordObj = {\n id: '1',\n secret: password,\n };\n\n const seal = await ironSeal(data, passwordObj, {\n ...defaults,\n ttl: 0,\n encode: JSON.stringify,\n });\n\n return `${seal}${VERSION_DELIMITER}${CURRENT_MAJOR_VERSION}`;\n}\n\nexport async function unsealData<T = unknown>(\n encryptedData: string,\n { password }: UnsealOptions,\n): Promise<T> {\n const { sealWithoutVersion, tokenVersion } = parseSeal(encryptedData);\n\n const passwordMap = { 1: password };\n\n let data: unknown;\n try {\n data =\n (await ironUnseal(sealWithoutVersion, passwordMap, {\n ...defaults,\n ttl: 0,\n })) ?? {};\n } catch (error) {\n if (\n error instanceof Error &&\n /^(Expired seal|Bad hmac value|Cannot find password|Incorrect number of sealed components|Wrong mac prefix)/.test(\n error.message,\n )\n ) {\n return {} as T;\n }\n throw error;\n }\n\n if (tokenVersion === 2) {\n return data as T;\n } else if (tokenVersion !== null) {\n const record = data as Record<string, unknown>;\n return (record.persistent ?? data) as T;\n }\n\n return data as T;\n}\n"],"x_google_ignoreList":[0,1],"mappings":"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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { t as Locale } from "./locale.interface-DtJ_6jKP.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/user-management/interfaces/send-invitation-options.interface.d.ts
|
|
4
|
-
interface SendInvitationOptions {
|
|
5
|
-
email: string;
|
|
6
|
-
organizationId?: string;
|
|
7
|
-
expiresInDays?: number;
|
|
8
|
-
inviterUserId?: string;
|
|
9
|
-
roleSlug?: string;
|
|
10
|
-
locale?: Locale;
|
|
11
|
-
}
|
|
12
|
-
interface SerializedSendInvitationOptions {
|
|
13
|
-
email: string;
|
|
14
|
-
organization_id?: string;
|
|
15
|
-
expires_in_days?: number;
|
|
16
|
-
inviter_user_id?: string;
|
|
17
|
-
role_slug?: string;
|
|
18
|
-
locale?: Locale;
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { SerializedSendInvitationOptions as n, SendInvitationOptions as t };
|
|
22
|
-
//# sourceMappingURL=send-invitation-options.interface-C2RofyVU.d.cts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/user-management/serializers/send-invitation-options.serializer.ts
|
|
3
|
-
const serializeSendInvitationOptions = (options) => ({
|
|
4
|
-
email: options.email,
|
|
5
|
-
organization_id: options.organizationId,
|
|
6
|
-
expires_in_days: options.expiresInDays,
|
|
7
|
-
inviter_user_id: options.inviterUserId,
|
|
8
|
-
role_slug: options.roleSlug,
|
|
9
|
-
locale: options.locale
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
Object.defineProperty(exports, 'serializeSendInvitationOptions', {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return serializeSendInvitationOptions;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
//# sourceMappingURL=send-invitation-options.serializer-D5x3ss8t.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-invitation-options.serializer-D5x3ss8t.cjs","names":[],"sources":["../src/user-management/serializers/send-invitation-options.serializer.ts"],"sourcesContent":["import {} from '../interfaces';\nimport {\n SendInvitationOptions,\n SerializedSendInvitationOptions,\n} from '../interfaces/send-invitation-options.interface';\n\nexport const serializeSendInvitationOptions = (\n options: SendInvitationOptions,\n): SerializedSendInvitationOptions => ({\n email: options.email,\n organization_id: options.organizationId,\n expires_in_days: options.expiresInDays,\n inviter_user_id: options.inviterUserId,\n role_slug: options.roleSlug,\n locale: options.locale,\n});\n"],"mappings":";;AAMA,MAAa,kCACX,aACqC;CACrC,OAAO,QAAQ;CACf,iBAAiB,QAAQ;CACzB,iBAAiB,QAAQ;CACzB,iBAAiB,QAAQ;CACzB,WAAW,QAAQ;CACnB,QAAQ,QAAQ;CACjB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/passwordless/interfaces/send-session-response.interface.d.ts
|
|
2
|
-
interface SendSessionResponse {
|
|
3
|
-
message?: string;
|
|
4
|
-
success?: boolean;
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SendSessionResponse as t };
|
|
8
|
-
//# sourceMappingURL=send-session-response.interface-CMl4tWw_.d.cts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region src/user-management/interfaces/send-verification-email-options.interface.d.ts
|
|
2
|
-
interface SendVerificationEmailOptions {
|
|
3
|
-
userId: string;
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
export { SendVerificationEmailOptions as t };
|
|
7
|
-
//# sourceMappingURL=send-verification-email-options.interface-BtOygLys.d.cts.map
|
package/lib/session-D_vnUDl1.cjs
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
const require_oauth_exception = require('./oauth.exception-BJAv3tg-.cjs');
|
|
2
|
-
const require_seal = require('./seal-B34v5bmh.cjs');
|
|
3
|
-
const require_authenticate_with_session_cookie_interface = require('./authenticate-with-session-cookie.interface-B4eQTrfN.cjs');
|
|
4
|
-
const require_refresh_and_seal_session_data_interface = require('./refresh-and-seal-session-data.interface-zT1i8_J0.cjs');
|
|
5
|
-
const require_jose = require('./jose-B0lH7z8y.cjs');
|
|
6
|
-
|
|
7
|
-
//#region src/user-management/session.ts
|
|
8
|
-
var CookieSession = class {
|
|
9
|
-
userManagement;
|
|
10
|
-
cookiePassword;
|
|
11
|
-
sessionData;
|
|
12
|
-
constructor(userManagement, sessionData, cookiePassword) {
|
|
13
|
-
if (!cookiePassword) throw new Error("cookiePassword is required");
|
|
14
|
-
this.userManagement = userManagement;
|
|
15
|
-
this.cookiePassword = cookiePassword;
|
|
16
|
-
this.sessionData = sessionData;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Authenticates a user with a session cookie.
|
|
20
|
-
*
|
|
21
|
-
* @returns An object indicating whether the authentication was successful or not. If successful, it will include the user's session data.
|
|
22
|
-
*/
|
|
23
|
-
async authenticate() {
|
|
24
|
-
if (!this.sessionData) return {
|
|
25
|
-
authenticated: false,
|
|
26
|
-
reason: require_authenticate_with_session_cookie_interface.AuthenticateWithSessionCookieFailureReason.NO_SESSION_COOKIE_PROVIDED
|
|
27
|
-
};
|
|
28
|
-
const session = await require_seal.unsealData(this.sessionData, { password: this.cookiePassword });
|
|
29
|
-
if (!session.accessToken) return {
|
|
30
|
-
authenticated: false,
|
|
31
|
-
reason: require_authenticate_with_session_cookie_interface.AuthenticateWithSessionCookieFailureReason.INVALID_SESSION_COOKIE
|
|
32
|
-
};
|
|
33
|
-
if (!await this.isValidJwt(session.accessToken)) return {
|
|
34
|
-
authenticated: false,
|
|
35
|
-
reason: require_authenticate_with_session_cookie_interface.AuthenticateWithSessionCookieFailureReason.INVALID_JWT
|
|
36
|
-
};
|
|
37
|
-
const { decodeJwt } = await require_jose.getJose();
|
|
38
|
-
const { sid: sessionId, org_id: organizationId, role, roles, permissions, entitlements, feature_flags: featureFlags } = decodeJwt(session.accessToken);
|
|
39
|
-
return {
|
|
40
|
-
authenticated: true,
|
|
41
|
-
sessionId,
|
|
42
|
-
organizationId,
|
|
43
|
-
role,
|
|
44
|
-
roles,
|
|
45
|
-
permissions,
|
|
46
|
-
entitlements,
|
|
47
|
-
featureFlags,
|
|
48
|
-
user: session.user,
|
|
49
|
-
authenticationMethod: session.authenticationMethod,
|
|
50
|
-
impersonator: session.impersonator,
|
|
51
|
-
accessToken: session.accessToken
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Refreshes the user's session.
|
|
56
|
-
*
|
|
57
|
-
* @param options - Optional options for refreshing the session.
|
|
58
|
-
* @param options.cookiePassword - The password to use for the new session cookie.
|
|
59
|
-
* @param options.organizationId - The organization ID to use for the new session cookie.
|
|
60
|
-
* @returns An object indicating whether the refresh was successful or not. If successful, it will include the new sealed session data.
|
|
61
|
-
*/
|
|
62
|
-
async refresh(options = {}) {
|
|
63
|
-
const { decodeJwt } = await require_jose.getJose();
|
|
64
|
-
const session = await require_seal.unsealData(this.sessionData, { password: this.cookiePassword });
|
|
65
|
-
if (!session.refreshToken || !session.user) return {
|
|
66
|
-
authenticated: false,
|
|
67
|
-
reason: require_refresh_and_seal_session_data_interface.RefreshSessionFailureReason.INVALID_SESSION_COOKIE
|
|
68
|
-
};
|
|
69
|
-
const { org_id: organizationIdFromAccessToken } = decodeJwt(session.accessToken);
|
|
70
|
-
try {
|
|
71
|
-
const cookiePassword = options.cookiePassword ?? this.cookiePassword;
|
|
72
|
-
const authenticationResponse = await this.userManagement.authenticateWithRefreshToken({
|
|
73
|
-
clientId: this.userManagement.clientId,
|
|
74
|
-
refreshToken: session.refreshToken,
|
|
75
|
-
organizationId: options.organizationId ?? organizationIdFromAccessToken,
|
|
76
|
-
session: {
|
|
77
|
-
sealSession: true,
|
|
78
|
-
cookiePassword
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
if (options.cookiePassword) this.cookiePassword = options.cookiePassword;
|
|
82
|
-
this.sessionData = authenticationResponse.sealedSession;
|
|
83
|
-
const { sid: sessionId, org_id: organizationId, role, roles, permissions, entitlements, feature_flags: featureFlags } = decodeJwt(authenticationResponse.accessToken);
|
|
84
|
-
return {
|
|
85
|
-
authenticated: true,
|
|
86
|
-
sealedSession: authenticationResponse.sealedSession,
|
|
87
|
-
session: authenticationResponse,
|
|
88
|
-
authenticationMethod: authenticationResponse.authenticationMethod,
|
|
89
|
-
sessionId,
|
|
90
|
-
organizationId,
|
|
91
|
-
role,
|
|
92
|
-
roles,
|
|
93
|
-
permissions,
|
|
94
|
-
entitlements,
|
|
95
|
-
featureFlags,
|
|
96
|
-
user: session.user,
|
|
97
|
-
impersonator: session.impersonator
|
|
98
|
-
};
|
|
99
|
-
} catch (error) {
|
|
100
|
-
if (error instanceof require_oauth_exception.OauthException && (error.error === require_refresh_and_seal_session_data_interface.RefreshSessionFailureReason.INVALID_GRANT || error.error === require_refresh_and_seal_session_data_interface.RefreshSessionFailureReason.MFA_ENROLLMENT || error.error === require_refresh_and_seal_session_data_interface.RefreshSessionFailureReason.SSO_REQUIRED)) return {
|
|
101
|
-
authenticated: false,
|
|
102
|
-
reason: error.error
|
|
103
|
-
};
|
|
104
|
-
throw error;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Gets the URL to redirect the user to for logging out.
|
|
109
|
-
*
|
|
110
|
-
* @returns The URL to redirect the user to for logging out.
|
|
111
|
-
*/
|
|
112
|
-
async getLogoutUrl({ returnTo } = {}) {
|
|
113
|
-
const authenticationResponse = await this.authenticate();
|
|
114
|
-
if (!authenticationResponse.authenticated) {
|
|
115
|
-
const { reason } = authenticationResponse;
|
|
116
|
-
throw new Error(`Failed to extract session ID for logout URL: ${reason}`);
|
|
117
|
-
}
|
|
118
|
-
return this.userManagement.getLogoutUrl({
|
|
119
|
-
sessionId: authenticationResponse.sessionId,
|
|
120
|
-
returnTo
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
async isValidJwt(accessToken) {
|
|
124
|
-
const { jwtVerify } = await require_jose.getJose();
|
|
125
|
-
const jwks = await this.userManagement.getJWKS();
|
|
126
|
-
if (!jwks) throw new Error("Missing client ID. Did you provide it when initializing WorkOS?");
|
|
127
|
-
try {
|
|
128
|
-
await jwtVerify(accessToken, jwks);
|
|
129
|
-
return true;
|
|
130
|
-
} catch (e) {
|
|
131
|
-
if (e instanceof Error && "code" in e && typeof e.code === "string" && (e.code.startsWith("ERR_JWT_") || e.code.startsWith("ERR_JWS_"))) return false;
|
|
132
|
-
throw e;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
//#endregion
|
|
138
|
-
Object.defineProperty(exports, 'CookieSession', {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function () {
|
|
141
|
-
return CookieSession;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
//# sourceMappingURL=session-D_vnUDl1.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-D_vnUDl1.cjs","names":["AuthenticateWithSessionCookieFailureReason","unsealData","getJose","RefreshSessionFailureReason","OauthException"],"sources":["../src/user-management/session.ts"],"sourcesContent":["import { OauthException } from '../common/exceptions/oauth.exception';\nimport {\n AccessToken,\n AuthenticateWithSessionCookieFailedResponse,\n AuthenticateWithSessionCookieFailureReason,\n AuthenticateWithSessionCookieSuccessResponse,\n AuthenticationResponse,\n RefreshSessionFailureReason,\n RefreshSessionResponse,\n SessionCookieData,\n} from './interfaces';\nimport { UserManagement } from './user-management';\nimport { unsealData } from '../common/crypto/seal';\nimport { getJose } from '../utils/jose';\n\ntype RefreshOptions = {\n cookiePassword?: string;\n organizationId?: string;\n};\n\nexport class CookieSession {\n private userManagement: UserManagement;\n private cookiePassword: string;\n private sessionData: string;\n\n constructor(\n userManagement: UserManagement,\n sessionData: string,\n cookiePassword: string,\n ) {\n if (!cookiePassword) {\n throw new Error('cookiePassword is required');\n }\n\n this.userManagement = userManagement;\n this.cookiePassword = cookiePassword;\n this.sessionData = sessionData;\n }\n\n /**\n * Authenticates a user with a session cookie.\n *\n * @returns An object indicating whether the authentication was successful or not. If successful, it will include the user's session data.\n */\n async authenticate(): Promise<\n | AuthenticateWithSessionCookieSuccessResponse\n | AuthenticateWithSessionCookieFailedResponse\n > {\n if (!this.sessionData) {\n return {\n authenticated: false,\n reason:\n AuthenticateWithSessionCookieFailureReason.NO_SESSION_COOKIE_PROVIDED,\n };\n }\n\n // unsealData returns {} for known seal errors (expired, bad hmac, etc.)\n // Unknown errors propagate - don't catch them as \"invalid session\"\n const session = await unsealData<SessionCookieData>(this.sessionData, {\n password: this.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 { decodeJwt } = await getJose();\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 permissions,\n entitlements,\n featureFlags,\n user: session.user,\n authenticationMethod: session.authenticationMethod,\n impersonator: session.impersonator,\n accessToken: session.accessToken,\n };\n }\n\n /**\n * Refreshes the user's session.\n *\n * @param options - Optional options for refreshing the session.\n * @param options.cookiePassword - The password to use for the new session cookie.\n * @param options.organizationId - The organization ID to use for the new session cookie.\n * @returns An object indicating whether the refresh was successful or not. If successful, it will include the new sealed session data.\n */\n async refresh(options: RefreshOptions = {}): Promise<RefreshSessionResponse> {\n const { decodeJwt } = await getJose();\n const session = await unsealData<SessionCookieData>(this.sessionData, {\n password: this.cookiePassword,\n });\n\n if (!session.refreshToken || !session.user) {\n return {\n authenticated: false,\n reason: RefreshSessionFailureReason.INVALID_SESSION_COOKIE,\n };\n }\n\n const { org_id: organizationIdFromAccessToken } = decodeJwt<AccessToken>(\n session.accessToken,\n );\n\n try {\n const cookiePassword = options.cookiePassword ?? this.cookiePassword;\n\n const authenticationResponse =\n await this.userManagement.authenticateWithRefreshToken({\n clientId: this.userManagement.clientId as string,\n refreshToken: session.refreshToken,\n organizationId:\n options.organizationId ?? organizationIdFromAccessToken,\n session: {\n // We want to store the new sealed session in this class instance, so this always needs to be true\n sealSession: true,\n cookiePassword,\n },\n });\n\n // Update the password if a new one was provided\n if (options.cookiePassword) {\n this.cookiePassword = options.cookiePassword;\n }\n\n this.sessionData = authenticationResponse.sealedSession as string;\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>(authenticationResponse.accessToken);\n\n // TODO: Returning `session` here means there's some duplicated data.\n // Slim down the return type in a future major version.\n return {\n authenticated: true,\n sealedSession: authenticationResponse.sealedSession,\n session: authenticationResponse as AuthenticationResponse,\n authenticationMethod: authenticationResponse.authenticationMethod,\n sessionId,\n organizationId,\n role,\n roles,\n permissions,\n entitlements,\n featureFlags,\n user: session.user,\n impersonator: session.impersonator,\n };\n } catch (error) {\n if (\n error instanceof OauthException &&\n // TODO: Add additional known errors and remove re-throw\n (error.error === RefreshSessionFailureReason.INVALID_GRANT ||\n error.error === RefreshSessionFailureReason.MFA_ENROLLMENT ||\n error.error === RefreshSessionFailureReason.SSO_REQUIRED)\n ) {\n return {\n authenticated: false,\n reason: error.error,\n };\n }\n\n throw error;\n }\n }\n\n /**\n * Gets the URL to redirect the user to for logging out.\n *\n * @returns The URL to redirect the user to for logging out.\n */\n async getLogoutUrl({\n returnTo,\n }: { returnTo?: string } = {}): Promise<string> {\n const authenticationResponse = await this.authenticate();\n\n if (!authenticationResponse.authenticated) {\n const { reason } = authenticationResponse;\n throw new Error(`Failed to extract session ID for logout URL: ${reason}`);\n }\n\n return this.userManagement.getLogoutUrl({\n sessionId: authenticationResponse.sessionId,\n returnTo,\n });\n }\n\n private async isValidJwt(accessToken: string): Promise<boolean> {\n const { jwtVerify } = await getJose();\n const jwks = await this.userManagement.getJWKS();\n if (!jwks) {\n throw new Error(\n 'Missing client ID. Did you provide it when initializing WorkOS?',\n );\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"],"mappings":"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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region src/user-management/interfaces/session-handler-options.interface.d.ts
|
|
2
|
-
interface SessionHandlerOptions {
|
|
3
|
-
sessionData: string;
|
|
4
|
-
cookiePassword?: string;
|
|
5
|
-
organizationId?: string;
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { SessionHandlerOptions as t };
|
|
9
|
-
//# sourceMappingURL=session-handler-options.interface-BVTuA5uU.d.cts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { t as Impersonator } from "./impersonator.interface-BLJ5uqT4.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/user-management/interfaces/session.interface.d.ts
|
|
4
|
-
type AuthMethod = 'external_auth' | 'impersonation' | 'magic_code' | 'migrated_session' | 'oauth' | 'passkey' | 'password' | 'sso' | 'unknown';
|
|
5
|
-
type SessionStatus = 'active' | 'expired' | 'revoked';
|
|
6
|
-
interface Session {
|
|
7
|
-
object: 'session';
|
|
8
|
-
id: string;
|
|
9
|
-
userId: string;
|
|
10
|
-
ipAddress: string | null;
|
|
11
|
-
userAgent: string | null;
|
|
12
|
-
organizationId?: string;
|
|
13
|
-
impersonator?: Impersonator;
|
|
14
|
-
authMethod: AuthMethod;
|
|
15
|
-
status: SessionStatus;
|
|
16
|
-
expiresAt: string;
|
|
17
|
-
endedAt: string | null;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
}
|
|
21
|
-
interface SessionResponse {
|
|
22
|
-
object: 'session';
|
|
23
|
-
id: string;
|
|
24
|
-
user_id: string;
|
|
25
|
-
ip_address: string | null;
|
|
26
|
-
user_agent: string | null;
|
|
27
|
-
organization_id?: string;
|
|
28
|
-
impersonator?: Impersonator;
|
|
29
|
-
auth_method: AuthMethod;
|
|
30
|
-
status: SessionStatus;
|
|
31
|
-
expires_at: string;
|
|
32
|
-
ended_at: string | null;
|
|
33
|
-
created_at: string;
|
|
34
|
-
updated_at: string;
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { SessionStatus as i, Session as n, SessionResponse as r, AuthMethod as t };
|
|
38
|
-
//# sourceMappingURL=session.interface-zszewQtk.d.cts.map
|