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