@workos-inc/node 8.0.0-rc.8 → 8.0.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-qb42DvMJ.d.cts +18 -0
- package/lib/access-token.serializer-BTB3otha.cjs +20 -0
- package/lib/access-token.serializer-BTB3otha.cjs.map +1 -0
- package/lib/action.interface-BLCbp-cT.d.cts +63 -0
- package/lib/action.interface-CkOAE1pY.cjs +0 -0
- package/lib/action.serializer-CkMp2PpV.cjs +47 -0
- package/lib/action.serializer-CkMp2PpV.cjs.map +1 -0
- package/lib/actions/actions.cjs +2 -52
- package/lib/actions/actions.d.cts +2 -41
- package/lib/actions/interfaces/action.interface.d.cts +2 -63
- package/lib/actions/interfaces/index.d.cts +2 -2
- package/lib/actions/interfaces/response-payload.interface.d.cts +2 -26
- package/lib/actions/serializers/action.serializer.cjs +2 -41
- package/lib/actions/serializers/action.serializer.d.cts +1 -1
- package/lib/actions-_-g7Idem.cjs +58 -0
- package/lib/actions-_-g7Idem.cjs.map +1 -0
- package/lib/actions-d_uq5P1L.d.cts +41 -0
- package/lib/add-flag-target-options.interface-DboHvXBu.d.cts +8 -0
- package/lib/add-flag-target-options.interface-dMGv3yj3.cjs +0 -0
- package/lib/api-key-required.exception-BOy1dF_S.d.cts +10 -0
- package/lib/api-key-required.exception-hy_QT4YB.cjs +20 -0
- package/lib/api-key-required.exception-hy_QT4YB.cjs.map +1 -0
- package/lib/api-key.interface-BHBINSO0.d.cts +32 -0
- package/lib/api-key.interface-Dp44lU0l.cjs +0 -0
- package/lib/api-key.serializer-384tUKDU.cjs +24 -0
- package/lib/api-key.serializer-384tUKDU.cjs.map +1 -0
- package/lib/api-key.serializer-C50uuFpr.d.cts +7 -0
- package/lib/api-keys/api-keys.cjs +2 -18
- package/lib/api-keys/api-keys.d.cts +2 -13
- package/lib/api-keys/interfaces/api-key.interface.d.cts +2 -32
- package/lib/api-keys/interfaces/create-organization-api-key-options.interface.d.cts +2 -16
- package/lib/api-keys/interfaces/created-api-key.interface.d.cts +2 -34
- package/lib/api-keys/interfaces/index.d.cts +5 -5
- package/lib/api-keys/interfaces/list-organization-api-keys-options.interface.d.cts +2 -9
- package/lib/api-keys/interfaces/validate-api-key.interface.d.cts +2 -15
- package/lib/api-keys/serializers/api-key.serializer.cjs +2 -18
- package/lib/api-keys/serializers/api-key.serializer.d.cts +2 -7
- package/lib/api-keys/serializers/create-organization-api-key-options.serializer.cjs +2 -11
- package/lib/api-keys/serializers/create-organization-api-key-options.serializer.d.cts +2 -7
- package/lib/api-keys/serializers/created-api-key.serializer.cjs +2 -19
- package/lib/api-keys/serializers/created-api-key.serializer.d.cts +2 -7
- package/lib/api-keys/serializers/index.cjs +8 -8
- package/lib/api-keys/serializers/index.d.cts +4 -4
- package/lib/api-keys/serializers/validate-api-key.serializer.cjs +2 -9
- package/lib/api-keys/serializers/validate-api-key.serializer.d.cts +2 -7
- package/lib/api-keys-DpNACVjB.cjs +24 -0
- package/lib/api-keys-DpNACVjB.cjs.map +1 -0
- package/lib/api-keys-mDyp4q6k.d.cts +704 -0
- package/lib/app-info.interface-C9ji_GUR.d.cts +8 -0
- package/lib/audit-log-export-options.interface-C0qji-yn.cjs +0 -0
- package/lib/audit-log-export-options.interface-leXX6r-l.d.cts +22 -0
- package/lib/audit-log-export-options.serializer-BFTh7oaz.cjs +20 -0
- package/lib/audit-log-export-options.serializer-BFTh7oaz.cjs.map +1 -0
- package/lib/audit-log-export-options.serializer-Dvk0Vdn_.d.cts +7 -0
- package/lib/audit-log-export.interface-BOAyjgev.d.cts +20 -0
- package/lib/audit-log-export.interface-L9dgSkYy.cjs +0 -0
- package/lib/audit-log-export.serializer-Byj3fn9x.cjs +19 -0
- package/lib/audit-log-export.serializer-Byj3fn9x.cjs.map +1 -0
- package/lib/audit-log-export.serializer-DFqm5z_A.d.cts +7 -0
- package/lib/audit-logs/audit-logs.cjs +2 -37
- package/lib/audit-logs/audit-logs.d.cts +2 -18
- package/lib/audit-logs/interfaces/audit-log-export-options.interface.d.cts +2 -22
- package/lib/audit-logs/interfaces/audit-log-export.interface.d.cts +2 -20
- package/lib/audit-logs/interfaces/create-audit-log-event-options.interface.d.cts +2 -43
- package/lib/audit-logs/interfaces/create-audit-log-schema-options.interface.d.cts +2 -67
- package/lib/audit-logs/interfaces/index.d.cts +4 -4
- package/lib/audit-logs/serializers/audit-log-export-options.serializer.cjs +2 -14
- package/lib/audit-logs/serializers/audit-log-export-options.serializer.d.cts +2 -7
- package/lib/audit-logs/serializers/audit-log-export.serializer.cjs +2 -13
- package/lib/audit-logs/serializers/audit-log-export.serializer.d.cts +2 -7
- package/lib/audit-logs/serializers/create-audit-log-event-options.serializer.cjs +2 -17
- package/lib/audit-logs/serializers/create-audit-log-event-options.serializer.d.cts +2 -7
- package/lib/audit-logs/serializers/create-audit-log-schema-options.serializer.cjs +2 -32
- package/lib/audit-logs/serializers/create-audit-log-schema-options.serializer.d.cts +2 -7
- package/lib/audit-logs/serializers/create-audit-log-schema.serializer.cjs +2 -26
- package/lib/audit-logs/serializers/create-audit-log-schema.serializer.d.cts +2 -7
- package/lib/audit-logs/serializers/index.cjs +10 -10
- package/lib/audit-logs/serializers/index.d.cts +5 -5
- package/lib/audit-logs-CnDObwhP.cjs +43 -0
- package/lib/audit-logs-CnDObwhP.cjs.map +1 -0
- package/lib/authenticate-with-code-and-verifier-options.interface-BYx47_xz.cjs +0 -0
- package/lib/authenticate-with-code-and-verifier-options.interface-iYkG5mK5.d.cts +17 -0
- package/lib/authenticate-with-code-and-verifier-options.serializer-BEILlMya.cjs +20 -0
- package/lib/authenticate-with-code-and-verifier-options.serializer-BEILlMya.cjs.map +1 -0
- package/lib/authenticate-with-code-and-verifier-options.serializer-CooMcqC8.d.cts +8 -0
- package/lib/authenticate-with-code-options.interface-BopjXJqx.cjs +0 -0
- package/lib/authenticate-with-code-options.interface-DQJr1pXz.d.cts +20 -0
- package/lib/authenticate-with-code-options.serializer-BMz_1tBW.cjs +21 -0
- package/lib/authenticate-with-code-options.serializer-BMz_1tBW.cjs.map +1 -0
- package/lib/authenticate-with-code-options.serializer-DfPtLDiz.d.cts +8 -0
- package/lib/authenticate-with-email-verification-options.interface-BHYcF7qE.cjs +0 -0
- package/lib/authenticate-with-email-verification-options.interface-CrR9oRqC.d.cts +18 -0
- package/lib/authenticate-with-email-verification.serializer-DkvyobQ9.cjs +20 -0
- package/lib/authenticate-with-email-verification.serializer-DkvyobQ9.cjs.map +1 -0
- package/lib/authenticate-with-magic-auth-options.interface-CpVi8mtn.d.cts +22 -0
- package/lib/authenticate-with-magic-auth-options.interface-D4f0rE9c.cjs +0 -0
- package/lib/authenticate-with-magic-auth-options.serializer-B77kBerw.d.cts +8 -0
- package/lib/authenticate-with-magic-auth-options.serializer-CYU4H_5p.cjs +22 -0
- package/lib/authenticate-with-magic-auth-options.serializer-CYU4H_5p.cjs.map +1 -0
- package/lib/authenticate-with-options-base.interface-2DXtG4VP.d.cts +41 -0
- package/lib/authenticate-with-options-base.interface-DON2cMpD.cjs +0 -0
- package/lib/authenticate-with-organization-selection-options.serializer-BgFxJgiU.cjs +20 -0
- package/lib/authenticate-with-organization-selection-options.serializer-BgFxJgiU.cjs.map +1 -0
- package/lib/authenticate-with-organization-selection.interface-7wYlcuE4.cjs +0 -0
- package/lib/authenticate-with-organization-selection.interface-BsFnw663.d.cts +18 -0
- package/lib/authenticate-with-password-options.interface-BhYKWEov.cjs +0 -0
- package/lib/authenticate-with-password-options.interface-C96-JI_J.d.cts +20 -0
- package/lib/authenticate-with-password-options.serializer-Cu_SGAgE.d.cts +8 -0
- package/lib/authenticate-with-password-options.serializer-DPYtf-9Q.cjs +21 -0
- package/lib/authenticate-with-password-options.serializer-DPYtf-9Q.cjs.map +1 -0
- package/lib/authenticate-with-refresh-token-options.interface-CM1TufRB.d.cts +18 -0
- package/lib/authenticate-with-refresh-token-options.interface-DHIVPm61.cjs +0 -0
- package/lib/authenticate-with-refresh-token-public-client-options.interface-CkimjQl3.cjs +0 -0
- package/lib/authenticate-with-refresh-token-public-client-options.interface-D7hLjjWc.d.cts +16 -0
- package/lib/authenticate-with-refresh-token-public-client-options.serializer-BDGklXEB.d.cts +8 -0
- package/lib/authenticate-with-refresh-token-public-client-options.serializer-BUO_bMxj.cjs +19 -0
- package/lib/authenticate-with-refresh-token-public-client-options.serializer-BUO_bMxj.cjs.map +1 -0
- package/lib/authenticate-with-refresh-token.options.serializer-Ba3QVuMY.cjs +20 -0
- package/lib/authenticate-with-refresh-token.options.serializer-Ba3QVuMY.cjs.map +1 -0
- package/lib/authenticate-with-refresh-token.options.serializer-BnSt0VcK.d.cts +9 -0
- package/lib/authenticate-with-session-cookie.interface-tn2KA4cA.d.cts +45 -0
- package/lib/authenticate-with-session-cookie.interface-wRJr18ep.cjs +17 -0
- package/lib/authenticate-with-session-cookie.interface-wRJr18ep.cjs.map +1 -0
- package/lib/authenticate-with-totp-options.interface-16qWKCD0.d.cts +20 -0
- package/lib/authenticate-with-totp-options.interface-BIrXLPem.cjs +0 -0
- package/lib/authenticate-with-totp-options.serializer-CpfE1aHW.d.cts +8 -0
- package/lib/authenticate-with-totp-options.serializer-Dv5iQHm4.cjs +21 -0
- package/lib/authenticate-with-totp-options.serializer-Dv5iQHm4.cjs.map +1 -0
- package/lib/authentication-event.interface-B2DjMTcP.d.cts +28 -0
- package/lib/authentication-event.interface-EapgQlPG.cjs +0 -0
- package/lib/authentication-event.serializer-B2f7AREO.d.cts +7 -0
- package/lib/authentication-event.serializer-mddvaOjb.cjs +20 -0
- package/lib/authentication-event.serializer-mddvaOjb.cjs.map +1 -0
- package/lib/authentication-radar-risk-detected-event.interface-BKZBuc9D.cjs +0 -0
- package/lib/authentication-radar-risk-detected-event.interface-WzOM1Ikg.d.cts +24 -0
- package/lib/authentication-radar-risk-event-serializer-CDBrk7yn.cjs +21 -0
- package/lib/authentication-radar-risk-event-serializer-CDBrk7yn.cjs.map +1 -0
- package/lib/authentication-response.interface-Bdr_R5sj.cjs +0 -0
- package/lib/authentication-response.interface-DsUweGqC.d.cts +28 -0
- package/lib/authentication-response.serializer-Cvgyw-Ny.d.cts +7 -0
- package/lib/authentication-response.serializer-DCSj_OPJ.cjs +26 -0
- package/lib/authentication-response.serializer-DCSj_OPJ.cjs.map +1 -0
- package/lib/authorization-url-options.interface-C6Y5Gwm7.cjs +0 -0
- package/lib/authorization-url-options.interface-Cjohf5tR.cjs +0 -0
- package/lib/authorization-url-options.interface-ZrBipUt2.d.cts +55 -0
- package/lib/authorization-url-options.interface-eEOWfbHw.d.cts +45 -0
- package/lib/bad-request.exception-BmjHrQEZ.cjs +26 -0
- package/lib/bad-request.exception-BmjHrQEZ.cjs.map +1 -0
- package/lib/bad-request.exception-Dt5w75jb.d.cts +25 -0
- package/lib/base64-BROQtK6X.cjs +44 -0
- package/lib/base64-BROQtK6X.cjs.map +1 -0
- package/lib/batch-write-resources-options.serializer-BxUrYV3Z.d.cts +7 -0
- package/lib/batch-write-resources-options.serializer-CffA5DfH.cjs +23 -0
- package/lib/batch-write-resources-options.serializer-CffA5DfH.cjs.map +1 -0
- package/lib/challenge-factor-options-pbaZ9sT0.d.cts +10 -0
- package/lib/challenge.interface-BRyoywSw.d.cts +22 -0
- package/lib/challenge.serializer-CiNDM6Ny.cjs +20 -0
- package/lib/challenge.serializer-CiNDM6Ny.cjs.map +1 -0
- package/lib/challenge.serializer-DuO1FONN.d.cts +7 -0
- package/lib/check-op.enum-4IPdgcR_.cjs +16 -0
- package/lib/check-op.enum-4IPdgcR_.cjs.map +1 -0
- package/lib/check-op.enum-BxjDvXvG.d.cts +8 -0
- package/lib/check-options.serializer-B72dqHn5.cjs +69 -0
- package/lib/check-options.serializer-B72dqHn5.cjs.map +1 -0
- package/lib/check-options.serializer-BaiGXU5C.d.cts +9 -0
- package/lib/check.interface-BdAPzYtJ.d.cts +88 -0
- package/lib/check.interface-WnywQ3Nn.cjs +33 -0
- package/lib/check.interface-WnywQ3Nn.cjs.map +1 -0
- package/lib/common/crypto/crypto-provider.cjs +2 -12
- package/lib/common/crypto/crypto-provider.d.cts +2 -75
- package/lib/common/crypto/seal.cjs +3 -43
- package/lib/common/crypto/seal.js +1 -1
- package/lib/common/crypto/signature-provider.cjs +2 -32
- package/lib/common/crypto/signature-provider.d.cts +1 -1
- package/lib/common/crypto/subtle-crypto-provider.cjs +2 -93
- package/lib/common/crypto/subtle-crypto-provider.d.cts +1 -1
- package/lib/common/exceptions/api-key-required.exception.cjs +2 -14
- package/lib/common/exceptions/api-key-required.exception.d.cts +2 -10
- package/lib/common/exceptions/bad-request.exception.cjs +2 -20
- package/lib/common/exceptions/bad-request.exception.d.cts +2 -25
- package/lib/common/exceptions/conflict.exception.cjs +2 -17
- package/lib/common/exceptions/conflict.exception.d.cts +1 -1
- package/lib/common/exceptions/generic-server.exception.cjs +2 -16
- package/lib/common/exceptions/generic-server.exception.d.cts +2 -14
- package/lib/common/exceptions/index.cjs +20 -20
- package/lib/common/exceptions/index.d.cts +10 -10
- package/lib/common/exceptions/no-api-key-provided.exception.cjs +2 -10
- package/lib/common/exceptions/no-api-key-provided.exception.d.cts +2 -9
- package/lib/common/exceptions/not-found.exception.cjs +2 -18
- package/lib/common/exceptions/not-found.exception.d.cts +2 -24
- package/lib/common/exceptions/oauth.exception.cjs +2 -19
- package/lib/common/exceptions/oauth.exception.d.cts +2 -15
- package/lib/common/exceptions/parse-error.cjs +2 -18
- package/lib/common/exceptions/parse-error.d.cts +1 -1
- package/lib/common/exceptions/rate-limit-exceeded.exception.cjs +2 -13
- package/lib/common/exceptions/rate-limit-exceeded.exception.d.cts +2 -18
- package/lib/common/exceptions/signature-verification.exception.cjs +2 -11
- package/lib/common/exceptions/signature-verification.exception.d.cts +2 -8
- package/lib/common/exceptions/unauthorized.exception.cjs +2 -15
- package/lib/common/exceptions/unauthorized.exception.d.cts +2 -13
- package/lib/common/exceptions/unprocessable-entity.exception.cjs +2 -22
- package/lib/common/exceptions/unprocessable-entity.exception.d.cts +2 -25
- package/lib/common/interfaces/app-info.interface.d.cts +2 -8
- package/lib/common/interfaces/event.interface.d.cts +2 -489
- package/lib/common/interfaces/event.interface.d.ts +2 -0
- package/lib/common/interfaces/get-options.interface.d.cts +2 -11
- package/lib/common/interfaces/http-client.interface.d.cts +2 -24
- package/lib/common/interfaces/index.d.cts +10 -10
- package/lib/common/interfaces/list.interface.d.cts +2 -20
- package/lib/common/interfaces/pagination-options.interface.d.cts +2 -10
- package/lib/common/interfaces/post-options.interface.d.cts +2 -13
- package/lib/common/interfaces/put-options.interface.d.cts +2 -12
- package/lib/common/interfaces/request-exception.interface.d.cts +2 -9
- package/lib/common/interfaces/unknown-record.interface.d.cts +2 -5
- package/lib/common/interfaces/unprocessable-entity-error.interface.d.cts +2 -8
- package/lib/common/interfaces/workos-options.interface.d.cts +2 -17
- package/lib/common/interfaces/workos-response-error.interface.d.cts +2 -13
- package/lib/common/net/fetch-client.cjs +3 -167
- package/lib/common/net/fetch-client.d.cts +2 -2
- package/lib/common/net/http-client.cjs +4 -80
- package/lib/common/net/http-client.d.cts +2 -54
- package/lib/common/serializers/event.serializer.cjs +2 -173
- package/lib/common/serializers/event.serializer.d.cts +2 -7
- package/lib/common/serializers/event.serializer.js +2 -1
- package/lib/common/serializers/event.serializer.js.map +1 -1
- package/lib/common/serializers/index.cjs +4 -4
- package/lib/common/serializers/index.d.cts +2 -2
- package/lib/common/serializers/list.serializer.cjs +2 -10
- package/lib/common/serializers/list.serializer.d.cts +2 -7
- package/lib/common/utils/base64.cjs +3 -33
- package/lib/common/utils/env.cjs +3 -51
- package/lib/common/utils/fetch-and-deserialize.cjs +2 -19
- package/lib/common/utils/fetch-and-deserialize.d.cts +4 -4
- package/lib/common/utils/leb128.cjs +3 -71
- package/lib/common/utils/pagination.cjs +2 -42
- package/lib/common/utils/pagination.d.cts +2 -25
- package/lib/common/utils/query-string.cjs +2 -34
- package/lib/common/utils/runtime-info.cjs +2 -50
- package/lib/common/utils/unreachable.cjs +2 -17
- package/lib/conflict.exception-D66_QI9c.cjs +23 -0
- package/lib/conflict.exception-D66_QI9c.cjs.map +1 -0
- package/lib/connection-type.enum-CZfRWY9b.cjs +49 -0
- package/lib/connection-type.enum-CZfRWY9b.cjs.map +1 -0
- package/lib/connection-type.enum-CjWDQ5dq.d.cts +41 -0
- package/lib/connection.interface-CSyly4pO.cjs +0 -0
- package/lib/connection.interface-DV7VmsKj.d.cts +33 -0
- package/lib/connection.serializer-Biy7KKu3.d.cts +7 -0
- package/lib/connection.serializer-phS0D1t9.cjs +22 -0
- package/lib/connection.serializer-phS0D1t9.cjs.map +1 -0
- package/lib/create-audit-log-event-options.interface-CbozGiMJ.cjs +0 -0
- package/lib/create-audit-log-event-options.interface-Cwth3loK.d.cts +43 -0
- package/lib/create-audit-log-event-options.serializer-DAT6w82I.d.cts +7 -0
- package/lib/create-audit-log-event-options.serializer-DZTgmGP0.cjs +23 -0
- package/lib/create-audit-log-event-options.serializer-DZTgmGP0.cjs.map +1 -0
- package/lib/create-audit-log-schema-options.interface-Bbg2hLgB.cjs +0 -0
- package/lib/create-audit-log-schema-options.interface-OCEBwyPY.d.cts +67 -0
- package/lib/create-audit-log-schema-options.serializer-DduNDNmZ.cjs +38 -0
- package/lib/create-audit-log-schema-options.serializer-DduNDNmZ.cjs.map +1 -0
- package/lib/create-audit-log-schema-options.serializer-Nxw9eaic.d.cts +7 -0
- package/lib/create-audit-log-schema.serializer-DHzQ5j3s.d.cts +7 -0
- package/lib/create-audit-log-schema.serializer-_lWlYDLV.cjs +32 -0
- package/lib/create-audit-log-schema.serializer-_lWlYDLV.cjs.map +1 -0
- package/lib/create-data-key.interface-B8yGESmB.d.cts +15 -0
- package/lib/create-data-key.interface-gbc99HQ1.cjs +0 -0
- package/lib/create-magic-auth-options.interface-DK-rMcbs.d.cts +12 -0
- package/lib/create-magic-auth-options.interface-De9IkCQF.cjs +0 -0
- package/lib/create-magic-auth-options.serializer-C3YLOz8M.d.cts +7 -0
- package/lib/create-magic-auth-options.serializer-DN24SZEy.cjs +15 -0
- package/lib/create-magic-auth-options.serializer-DN24SZEy.cjs.map +1 -0
- package/lib/create-object.interface-BeH56LqJ.d.cts +16 -0
- package/lib/create-object.interface-CSsrC5NL.cjs +0 -0
- package/lib/create-organization-api-key-options.interface-9iLvdEx0.cjs +0 -0
- package/lib/create-organization-api-key-options.serializer-Bd5IjZMz.cjs +17 -0
- package/lib/create-organization-api-key-options.serializer-Bd5IjZMz.cjs.map +1 -0
- package/lib/create-organization-api-key-options.serializer-BsRjnrYe.d.cts +7 -0
- package/lib/create-organization-domain-options.interface-CYOQi45i.d.cts +12 -0
- package/lib/create-organization-domain-options.interface-D1Ttuqb6.cjs +0 -0
- package/lib/create-organization-domain-options.serializer-DywoyU7B.cjs +15 -0
- package/lib/create-organization-domain-options.serializer-DywoyU7B.cjs.map +1 -0
- package/lib/create-organization-membership-options.interface-CBXXA0Gm.cjs +0 -0
- package/lib/create-organization-membership-options.interface-D_ChTOCZ.d.cts +16 -0
- package/lib/create-organization-membership-options.serializer-Da3OXX5I.cjs +17 -0
- package/lib/create-organization-membership-options.serializer-Da3OXX5I.cjs.map +1 -0
- package/lib/create-organization-options.interface-D7xVl5sq.cjs +0 -0
- package/lib/create-organization-options.serializer-BP9YqXCb.d.cts +7 -0
- package/lib/create-organization-options.serializer-Bg38u3Y_.cjs +17 -0
- package/lib/create-organization-options.serializer-Bg38u3Y_.cjs.map +1 -0
- package/lib/create-password-reset-options.interface-B2Rw4p5_.cjs +0 -0
- package/lib/create-password-reset-options.interface-FlupefEp.d.cts +10 -0
- package/lib/create-password-reset-options.serializer-BXKZ6exA.d.cts +7 -0
- package/lib/create-password-reset-options.serializer-C9rwv-Gj.cjs +12 -0
- package/lib/create-password-reset-options.serializer-C9rwv-Gj.cjs.map +1 -0
- package/lib/create-passwordless-session-options.interface-B1BOSDIV.cjs +0 -0
- package/lib/create-passwordless-session-options.interface-DRRdook4.d.cts +20 -0
- package/lib/create-resource-options.serializer-CW1mImuQ.cjs +17 -0
- package/lib/create-resource-options.serializer-CW1mImuQ.cjs.map +1 -0
- package/lib/create-resource-options.serializer-x9S7UBJu.d.cts +7 -0
- package/lib/create-user-options.interface-CX80nkXN.cjs +0 -0
- package/lib/create-user-options.interface-D_FyRPT6.d.cts +28 -0
- package/lib/create-user-options.serializer-CphvVoaV.cjs +22 -0
- package/lib/create-user-options.serializer-CphvVoaV.cjs.map +1 -0
- package/lib/create-user-options.serializer-DbOQgaMH.d.cts +7 -0
- package/lib/created-api-key.interface-DJC0Hbil.d.cts +34 -0
- package/lib/created-api-key.interface-DkHwRpkj.cjs +0 -0
- package/lib/created-api-key.serializer-CUESZReh.d.cts +7 -0
- package/lib/created-api-key.serializer-TAY4jtUj.cjs +25 -0
- package/lib/created-api-key.serializer-TAY4jtUj.cjs.map +1 -0
- package/lib/crypto-provider-DHQpgiJI.cjs +18 -0
- package/lib/crypto-provider-DHQpgiJI.cjs.map +1 -0
- package/lib/crypto-provider-xt721c-E.d.cts +75 -0
- package/lib/decrypt-data-key.interface-BMyadMdM.d.cts +11 -0
- package/lib/decrypt-data-key.interface-BpqQk6v6.cjs +0 -0
- package/lib/delete-object.interface-DXRirEIi.cjs +0 -0
- package/lib/delete-object.interface-VOtMiRor.d.cts +7 -0
- package/lib/delete-resource-options.serializer-1OtbZ7Xw.cjs +16 -0
- package/lib/delete-resource-options.serializer-1OtbZ7Xw.cjs.map +1 -0
- package/lib/delete-resource-options.serializer-DXYb24lH.d.cts +7 -0
- package/lib/directory-group.interface-B4ic7sA3.cjs +0 -0
- package/lib/directory-group.interface-BXhORoZV.d.cts +24 -0
- package/lib/directory-group.serializer-CTJJy0Kb.d.cts +8 -0
- package/lib/directory-group.serializer-DbTTdVPB.cjs +38 -0
- package/lib/directory-group.serializer-DbTTdVPB.cjs.map +1 -0
- package/lib/directory-sync/directory-sync.cjs +2 -40
- package/lib/directory-sync/directory-sync.d.cts +2 -24
- package/lib/directory-sync/interfaces/directory-group.interface.d.cts +2 -24
- package/lib/directory-sync/interfaces/directory-user.interface.d.cts +2 -48
- package/lib/directory-sync/interfaces/directory.interface.d.cts +2 -60
- package/lib/directory-sync/interfaces/index.d.cts +6 -6
- package/lib/directory-sync/interfaces/list-directories-options.interface.d.cts +2 -14
- package/lib/directory-sync/interfaces/list-directory-users-options.interface.d.cts +2 -10
- package/lib/directory-sync/interfaces/list-groups-options.interface.d.cts +2 -10
- package/lib/directory-sync/serializers/directory-group.serializer.cjs +3 -27
- package/lib/directory-sync/serializers/directory-group.serializer.d.cts +2 -8
- package/lib/directory-sync/serializers/directory-user.serializer.cjs +4 -47
- package/lib/directory-sync/serializers/directory-user.serializer.d.cts +2 -9
- package/lib/directory-sync/serializers/directory.serializer.cjs +5 -47
- package/lib/directory-sync/serializers/directory.serializer.d.cts +2 -10
- package/lib/directory-sync/serializers/index.cjs +14 -14
- package/lib/directory-sync/serializers/index.d.cts +4 -4
- package/lib/directory-sync/serializers/list-directories-options.serializer.cjs +2 -13
- package/lib/directory-sync/serializers/list-directories-options.serializer.d.cts +2 -7
- package/lib/directory-sync-DKBetghA.cjs +46 -0
- package/lib/directory-sync-DKBetghA.cjs.map +1 -0
- package/lib/directory-user.interface-B0cSpVBk.d.cts +48 -0
- package/lib/directory-user.interface-Ci4KBF1c.cjs +0 -0
- package/lib/directory-user.serializer-CotaPd_A.d.cts +9 -0
- package/lib/directory-user.serializer-UTYCZSSB.cjs +63 -0
- package/lib/directory-user.serializer-UTYCZSSB.cjs.map +1 -0
- package/lib/directory.interface-CKBneEhg.d.cts +60 -0
- package/lib/directory.interface-DZqZAP7j.cjs +0 -0
- package/lib/directory.serializer-BhYUCxaX.d.cts +10 -0
- package/lib/directory.serializer-j1RV_J7z.cjs +68 -0
- package/lib/directory.serializer-j1RV_J7z.cjs.map +1 -0
- package/lib/domain-data.interface-jRo-qP_g.cjs +16 -0
- package/lib/domain-data.interface-jRo-qP_g.cjs.map +1 -0
- package/lib/domain-data.interface-pTi_WT5Q.d.cts +12 -0
- package/lib/email-verification.interface-B9puXDAs.cjs +0 -0
- package/lib/email-verification.interface-CAc4zz7F.d.cts +42 -0
- package/lib/email-verification.serializer-C_AlrH3-.d.cts +8 -0
- package/lib/email-verification.serializer-e6Mbvjvd.cjs +36 -0
- package/lib/email-verification.serializer-e6Mbvjvd.cjs.map +1 -0
- package/lib/enroll-auth-factor-options.serializer-BBfKN5IU.cjs +17 -0
- package/lib/enroll-auth-factor-options.serializer-BBfKN5IU.cjs.map +1 -0
- package/lib/enroll-auth-factor-options.serializer-BZEtsmCx.d.cts +7 -0
- package/lib/enroll-auth-factor.interface-BtYeuUBZ.d.cts +17 -0
- package/lib/enroll-auth-factor.interface-cLereKiZ.cjs +0 -0
- package/lib/enroll-factor-options-CmyPkn2h.d.cts +14 -0
- package/lib/env-CCN5u8Rv.cjs +62 -0
- package/lib/env-CCN5u8Rv.cjs.map +1 -0
- package/lib/event.interface-DQMKDuc9.cjs +0 -0
- package/lib/event.serializer-D7YBgSw3.d.cts +7 -0
- package/lib/event.serializer-DDxhlKpU.cjs +180 -0
- package/lib/event.serializer-DDxhlKpU.cjs.map +1 -0
- package/lib/events/events.cjs +2 -17
- package/lib/events/events.d.cts +2 -14
- package/lib/events/interfaces/index.d.cts +1 -1
- package/lib/events/interfaces/list-events-options.interface.d.cts +2 -22
- package/lib/events/serializers/index.cjs +2 -2
- package/lib/events/serializers/index.d.cts +1 -1
- package/lib/events/serializers/list-event-options.serializer.cjs +2 -13
- package/lib/events/serializers/list-event-options.serializer.d.cts +2 -7
- package/lib/events-DznbKxXA.cjs +23 -0
- package/lib/events-DznbKxXA.cjs.map +1 -0
- package/lib/exceptions-DHjMOdn0.cjs +0 -0
- package/lib/factor.interface-Dsk_wYCN.d.cts +44 -0
- package/lib/factor.interface-DyQxGS-X.d.cts +42 -0
- package/lib/factor.interface-Uxx5A9bu.cjs +0 -0
- package/lib/factor.serializer-B6Y-wFb5.d.cts +8 -0
- package/lib/factor.serializer-CiRgOFhH.cjs +36 -0
- package/lib/factor.serializer-CiRgOFhH.cjs.map +1 -0
- package/lib/factor.serializer-CqXuPE9e.cjs +37 -0
- package/lib/factor.serializer-CqXuPE9e.cjs.map +1 -0
- package/lib/factor.serializer-UAz7NTzS.d.cts +8 -0
- package/lib/factory-C447nn53.cjs +15 -0
- package/lib/factory-C447nn53.cjs.map +1 -0
- package/lib/factory.cjs +7 -9
- package/lib/factory.d.cts +2 -83
- package/lib/factory.d.ts +2 -2
- package/lib/factory.js.map +1 -1
- package/lib/feature-flag.interface-Btv6VfMI.d.cts +28 -0
- package/lib/feature-flag.interface-Ug-r9a4Y.cjs +0 -0
- package/lib/feature-flag.serializer-DhnZDZE3.cjs +23 -0
- package/lib/feature-flag.serializer-DhnZDZE3.cjs.map +1 -0
- package/lib/feature-flag.serializer-dWnsMPwY.d.cts +7 -0
- package/lib/feature-flags/feature-flags.cjs +2 -36
- package/lib/feature-flags/feature-flags.d.cts +2 -21
- package/lib/feature-flags/interfaces/add-flag-target-options.interface.d.cts +2 -8
- package/lib/feature-flags/interfaces/feature-flag.interface.d.cts +2 -28
- package/lib/feature-flags/interfaces/index.d.cts +4 -4
- package/lib/feature-flags/interfaces/list-feature-flags-options.interface.d.cts +2 -7
- package/lib/feature-flags/interfaces/remove-flag-target-options.interface.d.cts +2 -8
- package/lib/feature-flags/serializers/feature-flag.serializer.cjs +2 -17
- package/lib/feature-flags/serializers/feature-flag.serializer.d.cts +2 -7
- package/lib/feature-flags/serializers/index.cjs +2 -2
- package/lib/feature-flags/serializers/index.d.cts +1 -1
- package/lib/feature-flags-Be_HjF1A.cjs +42 -0
- package/lib/feature-flags-Be_HjF1A.cjs.map +1 -0
- package/lib/fetch-and-deserialize-Cw0qruaA.cjs +25 -0
- package/lib/fetch-and-deserialize-Cw0qruaA.cjs.map +1 -0
- package/lib/fetch-and-deserialize-list-BxNZs_lh.cjs +19 -0
- package/lib/fetch-and-deserialize-list-BxNZs_lh.cjs.map +1 -0
- package/lib/fetch-client-DdnJdHyo.cjs +178 -0
- package/lib/fetch-client-DdnJdHyo.cjs.map +1 -0
- package/lib/fga/fga.cjs +2 -77
- package/lib/fga/fga.d.cts +2 -29
- package/lib/fga/interfaces/check-op.enum.cjs +2 -10
- package/lib/fga/interfaces/check-op.enum.d.cts +2 -8
- package/lib/fga/interfaces/check.interface.cjs +2 -27
- package/lib/fga/interfaces/check.interface.d.cts +2 -88
- package/lib/fga/interfaces/index.cjs +8 -8
- package/lib/fga/interfaces/index.d.cts +8 -8
- package/lib/fga/interfaces/list.interface.d.cts +2 -13
- package/lib/fga/interfaces/query.interface.d.cts +2 -35
- package/lib/fga/interfaces/resource-op.enum.cjs +2 -10
- package/lib/fga/interfaces/resource-op.enum.d.cts +2 -8
- package/lib/fga/interfaces/resource.interface.d.cts +2 -77
- package/lib/fga/interfaces/warning.interface.d.cts +2 -13
- package/lib/fga/interfaces/warrant-op.enum.cjs +2 -10
- package/lib/fga/interfaces/warrant-op.enum.d.cts +2 -8
- package/lib/fga/interfaces/warrant-token.interface.d.cts +2 -10
- package/lib/fga/interfaces/warrant.interface.d.cts +2 -71
- package/lib/fga/serializers/batch-write-resources-options.serializer.cjs +2 -17
- package/lib/fga/serializers/batch-write-resources-options.serializer.d.cts +2 -7
- package/lib/fga/serializers/check-options.serializer.cjs +4 -53
- package/lib/fga/serializers/check-options.serializer.d.cts +2 -9
- package/lib/fga/serializers/create-resource-options.serializer.cjs +2 -11
- package/lib/fga/serializers/create-resource-options.serializer.d.cts +2 -7
- package/lib/fga/serializers/delete-resource-options.serializer.cjs +2 -10
- package/lib/fga/serializers/delete-resource-options.serializer.d.cts +2 -7
- package/lib/fga/serializers/index.cjs +29 -29
- package/lib/fga/serializers/index.d.cts +13 -13
- package/lib/fga/serializers/list-resources-options.serializer.cjs +2 -13
- package/lib/fga/serializers/list-resources-options.serializer.d.cts +2 -7
- package/lib/fga/serializers/list-warrants-options.serializer.cjs +2 -15
- package/lib/fga/serializers/list-warrants-options.serializer.d.cts +2 -7
- package/lib/fga/serializers/list.serializer.cjs +2 -11
- package/lib/fga/serializers/list.serializer.d.cts +2 -10
- package/lib/fga/serializers/query-options.serializer.cjs +2 -13
- package/lib/fga/serializers/query-options.serializer.d.cts +2 -7
- package/lib/fga/serializers/query-result.serializer.cjs +2 -22
- package/lib/fga/serializers/query-result.serializer.d.cts +2 -12
- package/lib/fga/serializers/resource.serializer.cjs +3 -14
- package/lib/fga/serializers/resource.serializer.d.cts +2 -8
- package/lib/fga/serializers/warrant-token.serializer.cjs +2 -6
- package/lib/fga/serializers/warrant-token.serializer.d.cts +2 -7
- package/lib/fga/serializers/warrant.serializer.cjs +2 -16
- package/lib/fga/serializers/warrant.serializer.d.cts +2 -7
- package/lib/fga/serializers/write-warrant-options.serializer.cjs +2 -20
- package/lib/fga/serializers/write-warrant-options.serializer.d.cts +2 -7
- package/lib/fga/utils/fetch-and-deserialize-list.cjs +2 -13
- package/lib/fga/utils/fetch-and-deserialize-list.d.cts +4 -4
- package/lib/fga/utils/fga-paginatable.cjs +2 -16
- package/lib/fga/utils/fga-paginatable.d.cts +2 -14
- package/lib/fga/utils/interface-check.cjs +3 -12
- package/lib/fga/utils/interface-check.d.cts +2 -2
- package/lib/fga-BzThcM6n.cjs +83 -0
- package/lib/fga-BzThcM6n.cjs.map +1 -0
- package/lib/fga-paginatable-DEDsjb3U.cjs +22 -0
- package/lib/fga-paginatable-DEDsjb3U.cjs.map +1 -0
- package/lib/fga-paginatable-dk4rWGGN.d.cts +14 -0
- package/lib/generate-portal-link-intent.interface-BhUMhTmF.d.cts +12 -0
- package/lib/generate-portal-link-intent.interface-D-_01JcM.cjs +20 -0
- package/lib/generate-portal-link-intent.interface-D-_01JcM.cjs.map +1 -0
- package/lib/generic-server.exception-CQ1bI6ng.cjs +22 -0
- package/lib/generic-server.exception-CQ1bI6ng.cjs.map +1 -0
- package/lib/generic-server.exception-DcQ8s8I4.d.cts +14 -0
- package/lib/get-access-token.interface-CWupD3RW.d.cts +32 -0
- package/lib/get-access-token.serializer-DgmyudCD.cjs +34 -0
- package/lib/get-access-token.serializer-DgmyudCD.cjs.map +1 -0
- package/lib/get-options.interface-C2z2r1ix.cjs +0 -0
- package/lib/get-options.interface-DAECfi3y.d.cts +11 -0
- package/lib/get-profile-and-token-options.interface-CgiTXQNg.d.cts +14 -0
- package/lib/get-profile-and-token-options.interface-DI-Q8ebI.cjs +0 -0
- package/lib/get-profile-options.interface-CF_TcBM6.d.cts +7 -0
- package/lib/get-profile-options.interface-DjUysY00.cjs +0 -0
- package/lib/get-token-BN39vk9z.cjs +23 -0
- package/lib/get-token-BN39vk9z.cjs.map +1 -0
- package/lib/get-token-DzJWaKpa.d.cts +23 -0
- package/lib/http-client-B9cq9YMH.d.cts +54 -0
- package/lib/http-client-BLYDc7_a.cjs +96 -0
- package/lib/http-client-BLYDc7_a.cjs.map +1 -0
- package/lib/http-client.interface-B_lhFBGb.d.cts +24 -0
- package/lib/http-client.interface-DVx4DGRo.cjs +0 -0
- package/lib/identity.interface-QfHtZhoz.d.cts +14 -0
- package/lib/identity.interface-pMR3VyDs.cjs +0 -0
- package/lib/identity.serializer-Bzox6cAy.cjs +20 -0
- package/lib/identity.serializer-Bzox6cAy.cjs.map +1 -0
- package/lib/impersonator.interface-C8ENsrgh.cjs +0 -0
- package/lib/impersonator.interface-Vr4-B1pz.d.cts +12 -0
- package/lib/index-BXAFTIXq.d.cts +1 -0
- package/lib/index-By33K0bY.d.cts +1 -0
- package/lib/index-CKltkU46.d.cts +1 -0
- package/lib/index-CovDHv7q.d.cts +557 -0
- package/lib/index-DCiA8mC0.d.cts +1 -0
- package/lib/index-DPFAF2L8.d.cts +1 -0
- package/lib/index-DbQcfgDj.d.cts +1 -0
- package/lib/index-DiJBdvWV.d.cts +1 -0
- package/lib/index-DuB_GnHY.d.cts +1 -0
- package/lib/index-DyFAE6ok.d.cts +1 -0
- package/lib/index-J9AgzEVC.d.cts +1 -0
- package/lib/index-Kx-CLSKd.d.cts +1 -0
- package/lib/index-SnTQxaLp.d.cts +1 -0
- package/lib/index-hRUJhHRh.d.cts +1 -0
- package/lib/index-kVnxSapa.d.cts +1 -0
- package/lib/index.cjs +70 -57
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +129 -136
- package/lib/index.worker.cjs +67 -57
- package/lib/index.worker.cjs.map +1 -1
- package/lib/index.worker.d.cts +108 -133
- package/lib/interface-check-Cq-1Jdi8.cjs +23 -0
- package/lib/interface-check-Cq-1Jdi8.cjs.map +1 -0
- package/lib/interfaces-BOHKsPOz.cjs +0 -0
- package/lib/interfaces-BSEjYu3J.cjs +0 -0
- package/lib/interfaces-D9mIJVCc.cjs +0 -0
- package/lib/interfaces-D_qyT71O.cjs +0 -0
- package/lib/interfaces-hquSk6kj.cjs +0 -0
- package/lib/interfaces-lw3tA1Ig.cjs +0 -0
- package/lib/invitation.interface-BQMsYCSZ.d.cts +64 -0
- package/lib/invitation.interface-DuJQvENh.cjs +0 -0
- package/lib/invitation.serializer-BEVUkLP9.cjs +47 -0
- package/lib/invitation.serializer-BEVUkLP9.cjs.map +1 -0
- package/lib/invitation.serializer-D7GsMvuH.d.cts +8 -0
- package/lib/jose-D0f0CVnA.cjs +27 -0
- package/lib/jose-D0f0CVnA.cjs.map +1 -0
- package/lib/key.interface-fwN2JSVT.cjs +0 -0
- package/lib/key.interface-lG6YylXY.d.cts +16 -0
- package/lib/leb128-DgwAOCuj.cjs +82 -0
- package/lib/leb128-DgwAOCuj.cjs.map +1 -0
- package/lib/list-auth-factors-options.interface-C_MNm3jN.cjs +0 -0
- package/lib/list-connections-options.interface-C_4eo9BU.d.cts +17 -0
- package/lib/list-connections-options.interface-YNk1YDor.cjs +0 -0
- package/lib/list-connections-options.serializer-B9jyhBCh.cjs +20 -0
- package/lib/list-connections-options.serializer-B9jyhBCh.cjs.map +1 -0
- package/lib/list-connections-options.serializer-DfJliOZZ.d.cts +7 -0
- package/lib/list-directories-options.interface-B_Or3OFG.d.cts +14 -0
- package/lib/list-directories-options.interface-CI0d7UHw.cjs +0 -0
- package/lib/list-directories-options.serializer-C2zUlVDI.d.cts +7 -0
- package/lib/list-directories-options.serializer-DIkuNuJB.cjs +19 -0
- package/lib/list-directories-options.serializer-DIkuNuJB.cjs.map +1 -0
- package/lib/list-directory-users-options.interface-B-cXq46X.cjs +0 -0
- package/lib/list-directory-users-options.interface-C7vYk_oi.d.cts +10 -0
- package/lib/list-event-options.serializer-JusR1KRI.d.cts +7 -0
- package/lib/list-event-options.serializer-bbZhjMlc.cjs +19 -0
- package/lib/list-event-options.serializer-bbZhjMlc.cjs.map +1 -0
- package/lib/list-events-options.interface-C8jfNxm0.cjs +0 -0
- package/lib/list-events-options.interface-CD82jAU0.d.cts +22 -0
- package/lib/list-feature-flags-options.interface-CfqDXcyU.cjs +0 -0
- package/lib/list-feature-flags-options.interface-TNRLg_eE.d.cts +7 -0
- package/lib/list-groups-options.interface-DSOFN2vw.d.cts +10 -0
- package/lib/list-groups-options.interface-XF1YACqA.cjs +0 -0
- package/lib/list-invitations-options.interface-BVUPp5YW.cjs +0 -0
- package/lib/list-invitations-options.serializer-DyJeeVXk.cjs +19 -0
- package/lib/list-invitations-options.serializer-DyJeeVXk.cjs.map +1 -0
- package/lib/list-object-versions.interface-Bcum-UM6.d.cts +12 -0
- package/lib/list-object-versions.interface-RY6pD26h.cjs +0 -0
- package/lib/list-objects.interface-3h292QrX.d.cts +9 -0
- package/lib/list-objects.interface-Bp30QMX7.cjs +0 -0
- package/lib/list-organization-api-keys-options.interface-BHiZwa0X.d.cts +9 -0
- package/lib/list-organization-api-keys-options.interface-CHwMsqCG.cjs +0 -0
- package/lib/list-organization-feature-flags-options.interface-BBYYH_hi.cjs +0 -0
- package/lib/list-organization-feature-flags-options.interface-lBZ9xl9J.d.cts +9 -0
- package/lib/list-organization-memberships-options.interface-OSYPLSDa.cjs +0 -0
- package/lib/list-organization-memberships-options.serializer-eZn-qTI8.cjs +20 -0
- package/lib/list-organization-memberships-options.serializer-eZn-qTI8.cjs.map +1 -0
- package/lib/list-organization-roles-options.interface-CDmO2AJ9.d.cts +7 -0
- package/lib/list-organizations-options.interface-BDvmneTo.cjs +0 -0
- package/lib/list-organizations-options.interface-fSvcaRDB.d.cts +9 -0
- package/lib/list-resources-options.serializer-B01VCK2u.d.cts +7 -0
- package/lib/list-resources-options.serializer-DGgWhS-1.cjs +19 -0
- package/lib/list-resources-options.serializer-DGgWhS-1.cjs.map +1 -0
- package/lib/list-sessions-options.interface-B2gN9ZV4.d.cts +8 -0
- package/lib/list-sessions-options.interface-CNUdzKGT.cjs +0 -0
- package/lib/list-sessions-options.serializer-BZDbMjgP.d.cts +7 -0
- package/lib/list-sessions-options.serializer-DXI2uV_8.cjs +12 -0
- package/lib/list-sessions-options.serializer-DXI2uV_8.cjs.map +1 -0
- package/lib/list-user-feature-flags-options.interface-D8wcWYlx.cjs +0 -0
- package/lib/list-users-options.interface-D2fACxr-.d.cts +14 -0
- package/lib/list-users-options.interface-DIk86usi.cjs +0 -0
- package/lib/list-users-options.serializer-CAQrhvH0.cjs +19 -0
- package/lib/list-users-options.serializer-CAQrhvH0.cjs.map +1 -0
- package/lib/list-warrants-options.serializer-BsPCfAmS.d.cts +7 -0
- package/lib/list-warrants-options.serializer-DajLG33H.cjs +21 -0
- package/lib/list-warrants-options.serializer-DajLG33H.cjs.map +1 -0
- package/lib/list.interface-BA88zMzn.d.cts +13 -0
- package/lib/list.interface-CANtyNNL.cjs +0 -0
- package/lib/list.interface-D5DXp24q.d.cts +20 -0
- package/lib/list.serializer-BY9yE1pB.cjs +16 -0
- package/lib/list.serializer-BY9yE1pB.cjs.map +1 -0
- package/lib/list.serializer-Bz6Gh8tU.cjs +17 -0
- package/lib/list.serializer-Bz6Gh8tU.cjs.map +1 -0
- package/lib/list.serializer-Du5A8dpa.d.cts +7 -0
- package/lib/list.serializer-mTuQPSVS.d.cts +10 -0
- package/lib/logout-url-options.interface-CE3bWJ1r.d.cts +8 -0
- package/lib/logout-url-options.interface-XJrvh9Um.cjs +0 -0
- package/lib/magic-auth.interface-DHluxaz0.d.cts +42 -0
- package/lib/magic-auth.interface-OAoqBOq3.cjs +0 -0
- package/lib/magic-auth.serializer-By4HyvgZ.cjs +36 -0
- package/lib/magic-auth.serializer-By4HyvgZ.cjs.map +1 -0
- package/lib/magic-auth.serializer-C2zJUZve.d.cts +8 -0
- package/lib/mfa/interfaces/challenge-factor-options.d.cts +2 -10
- package/lib/mfa/interfaces/challenge.interface.d.cts +2 -22
- package/lib/mfa/interfaces/enroll-factor-options.d.cts +2 -14
- package/lib/mfa/interfaces/factor.interface.d.cts +2 -44
- package/lib/mfa/interfaces/index.cjs +8 -0
- package/lib/mfa/interfaces/index.d.cts +8 -8
- package/lib/mfa/interfaces/sms.interface.d.cts +2 -10
- package/lib/mfa/interfaces/totp.interface.d.cts +2 -22
- package/lib/mfa/interfaces/verify-challenge-options.d.cts +2 -8
- package/lib/mfa/interfaces/verify-challenge-response.d.cts +2 -14
- package/lib/mfa/mfa.cjs +2 -44
- package/lib/mfa/mfa.d.cts +2 -21
- package/lib/mfa/serializers/challenge.serializer.cjs +2 -14
- package/lib/mfa/serializers/challenge.serializer.d.cts +2 -7
- package/lib/mfa/serializers/factor.serializer.cjs +3 -26
- package/lib/mfa/serializers/factor.serializer.d.cts +2 -8
- package/lib/mfa/serializers/index.cjs +7 -7
- package/lib/mfa/serializers/index.d.cts +3 -3
- package/lib/mfa/serializers/sms.serializer.cjs +2 -6
- package/lib/mfa/serializers/sms.serializer.d.cts +1 -1
- package/lib/mfa/serializers/totp.serializer.cjs +3 -21
- package/lib/mfa/serializers/totp.serializer.d.cts +1 -1
- package/lib/mfa/serializers/verify-response.serializer.cjs +2 -10
- package/lib/mfa/serializers/verify-response.serializer.d.cts +2 -7
- package/lib/mfa-BbisUIpM.cjs +50 -0
- package/lib/mfa-BbisUIpM.cjs.map +1 -0
- package/lib/no-api-key-provided.exception-C7hM-2nF.d.cts +9 -0
- package/lib/no-api-key-provided.exception-CAJnPlPr.cjs +16 -0
- package/lib/no-api-key-provided.exception-CAJnPlPr.cjs.map +1 -0
- package/lib/not-found.exception-BcKq0hWv.cjs +24 -0
- package/lib/not-found.exception-BcKq0hWv.cjs.map +1 -0
- package/lib/not-found.exception-Dx6q9fB_.d.cts +24 -0
- package/lib/oauth-tokens.interface-BnEjos_G.d.cts +16 -0
- package/lib/oauth-tokens.interface-DN0gza6B.cjs +0 -0
- package/lib/oauth-tokens.serializer-BmyyKwrh.cjs +17 -0
- package/lib/oauth-tokens.serializer-BmyyKwrh.cjs.map +1 -0
- package/lib/oauth.exception-BJAv3tg-.cjs +25 -0
- package/lib/oauth.exception-BJAv3tg-.cjs.map +1 -0
- package/lib/oauth.exception-CevJbHCU.d.cts +15 -0
- package/lib/object.interface-DK7EXEsK.d.cts +35 -0
- package/lib/object.interface-ouK-CMDg.cjs +0 -0
- package/lib/organization-domain.interface-CrAOoSPo.d.cts +35 -0
- package/lib/organization-domain.interface-F741XB-4.cjs +28 -0
- package/lib/organization-domain.interface-F741XB-4.cjs.map +1 -0
- package/lib/organization-domain.serializer-BuecMdCg.cjs +22 -0
- package/lib/organization-domain.serializer-BuecMdCg.cjs.map +1 -0
- package/lib/organization-domains/interfaces/create-organization-domain-options.interface.d.cts +2 -12
- package/lib/organization-domains/interfaces/index.cjs +3 -3
- package/lib/organization-domains/interfaces/index.d.cts +2 -2
- package/lib/organization-domains/interfaces/organization-domain.interface.cjs +3 -17
- package/lib/organization-domains/interfaces/organization-domain.interface.d.cts +2 -35
- package/lib/organization-domains/organization-domains.cjs +2 -27
- package/lib/organization-domains/organization-domains.d.cts +2 -16
- package/lib/organization-domains/serializers/create-organization-domain-options.serializer.cjs +2 -9
- package/lib/organization-domains/serializers/create-organization-domain-options.serializer.d.cts +1 -1
- package/lib/organization-domains/serializers/organization-domain.serializer.cjs +2 -16
- package/lib/organization-domains/serializers/organization-domain.serializer.d.cts +1 -1
- package/lib/organization-domains-BRGEKO06.cjs +33 -0
- package/lib/organization-domains-BRGEKO06.cjs.map +1 -0
- package/lib/organization-membership.interface-ERgG2p4e.d.cts +31 -0
- package/lib/organization-membership.interface-lE9RCqTV.cjs +0 -0
- package/lib/organization-membership.serializer-CYvdEErJ.cjs +23 -0
- package/lib/organization-membership.serializer-CYvdEErJ.cjs.map +1 -0
- package/lib/organization.interface-CVqDknbl.cjs +0 -0
- package/lib/organization.interface-i6mWA3uA.d.cts +30 -0
- package/lib/organization.serializer-BLDEzQ1R.d.cts +7 -0
- package/lib/organization.serializer-DM6Xkk2V.cjs +24 -0
- package/lib/organization.serializer-DM6Xkk2V.cjs.map +1 -0
- package/lib/organizations/interfaces/create-organization-options.interface.d.cts +2 -20
- package/lib/organizations/interfaces/domain-data.interface.cjs +2 -10
- package/lib/organizations/interfaces/domain-data.interface.d.cts +2 -12
- package/lib/organizations/interfaces/index.cjs +2 -2
- package/lib/organizations/interfaces/index.d.cts +6 -6
- package/lib/organizations/interfaces/list-organization-feature-flags-options.interface.d.cts +2 -9
- package/lib/organizations/interfaces/list-organization-roles-options.interface.d.cts +2 -7
- package/lib/organizations/interfaces/list-organizations-options.interface.d.cts +2 -9
- package/lib/organizations/interfaces/organization.interface.d.cts +2 -30
- package/lib/organizations/interfaces/update-organization-options.interface.d.cts +2 -21
- package/lib/organizations/organizations.cjs +2 -64
- package/lib/organizations/organizations.d.cts +2 -33
- package/lib/organizations/serializers/create-organization-options.serializer.cjs +2 -11
- package/lib/organizations/serializers/create-organization-options.serializer.d.cts +2 -7
- package/lib/organizations/serializers/index.cjs +6 -6
- package/lib/organizations/serializers/index.d.cts +3 -3
- package/lib/organizations/serializers/organization.serializer.cjs +2 -18
- package/lib/organizations/serializers/organization.serializer.d.cts +2 -7
- package/lib/organizations/serializers/update-organization-options.serializer.cjs +2 -12
- package/lib/organizations/serializers/update-organization-options.serializer.d.cts +2 -7
- package/lib/organizations-D95AsD1T.cjs +70 -0
- package/lib/organizations-D95AsD1T.cjs.map +1 -0
- package/lib/pagination-BG1uBuL4.cjs +48 -0
- package/lib/pagination-BG1uBuL4.cjs.map +1 -0
- package/lib/pagination-CJNMwJck.d.cts +25 -0
- package/lib/pagination-options.interface-B5F27Ki8.cjs +0 -0
- package/lib/pagination-options.interface-Dan4Zh3s.d.cts +10 -0
- package/lib/parse-error-Bbj9GQ8a.cjs +24 -0
- package/lib/parse-error-Bbj9GQ8a.cjs.map +1 -0
- package/lib/password-hash-type.interface-CxNrEyUW.d.cts +5 -0
- package/lib/password-reset.interface-ClJw8CpQ.d.cts +40 -0
- package/lib/password-reset.interface-OhYRauB2.cjs +0 -0
- package/lib/password-reset.serializer-D8Kbnirv.cjs +35 -0
- package/lib/password-reset.serializer-D8Kbnirv.cjs.map +1 -0
- package/lib/password-reset.serializer-b_eJxueA.d.cts +8 -0
- package/lib/passwordless/interfaces/create-passwordless-session-options.interface.d.cts +2 -20
- package/lib/passwordless/interfaces/index.d.cts +3 -3
- package/lib/passwordless/interfaces/passwordless-session.interface.d.cts +2 -18
- package/lib/passwordless/interfaces/send-session-response.interface.d.cts +2 -8
- package/lib/passwordless/passwordless.cjs +2 -23
- package/lib/passwordless/passwordless.d.cts +2 -19
- package/lib/passwordless/serializers/passwordless-session.serializer.cjs +2 -12
- package/lib/passwordless/serializers/passwordless-session.serializer.d.cts +1 -1
- package/lib/passwordless-DEThp5fE.cjs +29 -0
- package/lib/passwordless-DEThp5fE.cjs.map +1 -0
- package/lib/passwordless-session.interface-C5Jxlpb4.cjs +0 -0
- package/lib/passwordless-session.interface-DNuCWNwX.d.cts +18 -0
- package/lib/passwordless-session.serializer-CASCZ8yC.cjs +18 -0
- package/lib/passwordless-session.serializer-CASCZ8yC.cjs.map +1 -0
- package/lib/pipes/interfaces/access-token.interface.d.cts +2 -18
- package/lib/pipes/interfaces/get-access-token.interface.d.cts +2 -32
- package/lib/pipes/pipes.cjs +2 -15
- package/lib/pipes/pipes.d.cts +2 -17
- package/lib/pipes/serializers/access-token.serializer.cjs +2 -14
- package/lib/pipes/serializers/access-token.serializer.d.cts +1 -1
- package/lib/pipes/serializers/get-access-token.serializer.cjs +3 -23
- package/lib/pipes/serializers/get-access-token.serializer.d.cts +1 -1
- package/lib/pipes-BACoDN0N.cjs +21 -0
- package/lib/pipes-BACoDN0N.cjs.map +1 -0
- package/lib/pkce/pkce.cjs +2 -53
- package/lib/pkce/pkce.d.cts +2 -38
- package/lib/pkce-Bu_KcDMw.cjs +59 -0
- package/lib/pkce-Bu_KcDMw.cjs.map +1 -0
- package/lib/pkce-CjBivwLM.d.cts +38 -0
- package/lib/portal/interfaces/generate-portal-link-intent.interface.cjs +2 -14
- package/lib/portal/interfaces/generate-portal-link-intent.interface.d.cts +2 -12
- package/lib/portal/interfaces/index.cjs +2 -2
- package/lib/portal/interfaces/index.d.cts +1 -1
- package/lib/portal/portal.cjs +2 -19
- package/lib/portal/portal.d.cts +2 -24
- package/lib/portal-DeMgODuk.cjs +25 -0
- package/lib/portal-DeMgODuk.cjs.map +1 -0
- package/lib/post-options.interface-BPsfRqbS.d.cts +13 -0
- package/lib/post-options.interface-Dq51f5lQ.cjs +0 -0
- package/lib/profile-and-token.interface-DWS2cGa3.cjs +0 -0
- package/lib/profile-and-token.interface-ZhaI1B_G.d.cts +18 -0
- package/lib/profile-and-token.serializer-CUFdGpX3.cjs +18 -0
- package/lib/profile-and-token.serializer-CUFdGpX3.cjs.map +1 -0
- package/lib/profile-and-token.serializer-jvVxElaa.d.cts +8 -0
- package/lib/profile.interface-CDRlx1GK.cjs +0 -0
- package/lib/profile.interface-CPseQwyu.d.cts +42 -0
- package/lib/profile.serializer-BDlm0TRU.cjs +26 -0
- package/lib/profile.serializer-BDlm0TRU.cjs.map +1 -0
- package/lib/profile.serializer-DdojQSTs.d.cts +8 -0
- package/lib/put-options.interface-CZQMFl9I.d.cts +12 -0
- package/lib/put-options.interface-gBaevIoJ.cjs +0 -0
- package/lib/query-options.serializer-D8fa8ATB.cjs +19 -0
- package/lib/query-options.serializer-D8fa8ATB.cjs.map +1 -0
- package/lib/query-options.serializer-Diz_h8yQ.d.cts +7 -0
- package/lib/query-result.serializer-CNtZi5XJ.cjs +28 -0
- package/lib/query-result.serializer-CNtZi5XJ.cjs.map +1 -0
- package/lib/query-result.serializer-PmDR_3q_.d.cts +12 -0
- package/lib/query-string-DvY-MOOT.cjs +40 -0
- package/lib/query-string-DvY-MOOT.cjs.map +1 -0
- package/lib/query.interface-Bzmz5paB.cjs +0 -0
- package/lib/query.interface-CRFxU55p.d.cts +35 -0
- package/lib/rate-limit-exceeded.exception-BIPgOZUD.d.cts +18 -0
- package/lib/rate-limit-exceeded.exception-DwIKSjgt.cjs +19 -0
- package/lib/rate-limit-exceeded.exception-DwIKSjgt.cjs.map +1 -0
- package/lib/read-object.interface-23WBJJxF.cjs +0 -0
- package/lib/read-object.interface-BB42mvW3.d.cts +25 -0
- package/lib/refresh-and-seal-session-data.interface-CseekR4v.cjs +19 -0
- package/lib/refresh-and-seal-session-data.interface-CseekR4v.cjs.map +1 -0
- package/lib/refresh-and-seal-session-data.interface-Dj5I8yeH.d.cts +24 -0
- package/lib/remove-flag-target-options.interface-Cku-Z1m-.cjs +0 -0
- package/lib/remove-flag-target-options.interface-GeGGkSC5.d.cts +8 -0
- package/lib/request-exception.interface-BmJyrOWP.d.cts +9 -0
- package/lib/reset-password-options.interface-CLFu671o.d.cts +12 -0
- package/lib/reset-password-options.interface-Cnc8Tptm.cjs +0 -0
- package/lib/reset-password-options.serializer-6VTahIzL.cjs +15 -0
- package/lib/reset-password-options.serializer-6VTahIzL.cjs.map +1 -0
- package/lib/reset-password-options.serializer-CHPuZk8c.d.cts +7 -0
- package/lib/resource-op.enum-B88boilW.cjs +16 -0
- package/lib/resource-op.enum-B88boilW.cjs.map +1 -0
- package/lib/resource-op.enum-DvX5Qafv.d.cts +8 -0
- package/lib/resource.interface-B_62uGB9.cjs +0 -0
- package/lib/resource.interface-DoGgkV2d.d.cts +77 -0
- package/lib/resource.serializer-BPTEBds3.d.cts +8 -0
- package/lib/resource.serializer-D7crN0bg.cjs +25 -0
- package/lib/resource.serializer-D7crN0bg.cjs.map +1 -0
- package/lib/response-payload.interface-Bw5H70BX.cjs +0 -0
- package/lib/response-payload.interface-CC-y4Nv6.d.cts +26 -0
- package/lib/revoke-session-options.interface-VAEw2kUV.d.cts +11 -0
- package/lib/revoke-session-options.interface-adU7deuN.cjs +12 -0
- package/lib/revoke-session-options.interface-adU7deuN.cjs.map +1 -0
- package/lib/role.interface-BfMq5Bju.d.cts +51 -0
- package/lib/role.interface-DokcsdG6.cjs +0 -0
- package/lib/role.serializer-DVr857zo.cjs +22 -0
- package/lib/role.serializer-DVr857zo.cjs.map +1 -0
- package/lib/role.serializer-yTKLys-u.cjs +18 -0
- package/lib/role.serializer-yTKLys-u.cjs.map +1 -0
- package/lib/roles/interfaces/index.d.cts +1 -1
- package/lib/roles/interfaces/role.interface.d.cts +2 -51
- package/lib/roles/serializers/role.serializer.cjs +2 -16
- package/lib/roles/serializers/role.serializer.d.cts +1 -1
- package/lib/runtime-info-tyLXDYg5.cjs +56 -0
- package/lib/runtime-info-tyLXDYg5.cjs.map +1 -0
- package/lib/{node_modules/iron-webcrypto/index.js → seal-Dl5Et6Vv.cjs} +102 -3
- package/lib/seal-Dl5Et6Vv.cjs.map +1 -0
- package/lib/send-invitation-options.interface-BKFjdXV9.cjs +0 -0
- package/lib/send-invitation-options.interface-BfUo_y42.d.cts +18 -0
- package/lib/send-invitation-options.serializer-DW0HMDNN.cjs +18 -0
- package/lib/send-invitation-options.serializer-DW0HMDNN.cjs.map +1 -0
- package/lib/send-session-response.interface-B5S6VASb.d.cts +8 -0
- package/lib/send-session-response.interface-DikznICv.cjs +0 -0
- package/lib/send-verification-email-options.interface-I508oiKZ.d.cts +7 -0
- package/lib/send-verification-email-options.interface-ouroaASB.cjs +0 -0
- package/lib/serializers-1DJGR2Bq.cjs +0 -0
- package/lib/serializers-1RdL3mOO.cjs +0 -0
- package/lib/serializers-AObKGeJ9.cjs +0 -0
- package/lib/serializers-BGydYdNv.cjs +0 -0
- package/lib/serializers-BdASmY_9.cjs +0 -0
- package/lib/serializers-Cg02bBkh.cjs +0 -0
- package/lib/serializers-CshbWgH5.cjs +0 -0
- package/lib/serializers-D7IALzFJ.cjs +0 -0
- package/lib/serializers-L67xhHGh.cjs +0 -0
- package/lib/serializers-mApGhp2E.cjs +0 -0
- package/lib/serializers-trBM15Pj.cjs +0 -0
- package/lib/session-9omTtyoD.cjs +144 -0
- package/lib/session-9omTtyoD.cjs.map +1 -0
- package/lib/session-handler-options.interface-DxF6E6ug.d.cts +9 -0
- package/lib/session.interface-BL6GFmCP.d.cts +38 -0
- package/lib/session.interface-DRZhbyZ-.cjs +0 -0
- package/lib/session.serializer-DfnhKR5i.d.cts +7 -0
- package/lib/session.serializer-Dmj9Hm3q.cjs +26 -0
- package/lib/session.serializer-Dmj9Hm3q.cjs.map +1 -0
- package/lib/signature-provider-Dx4cy5vI.cjs +38 -0
- package/lib/signature-provider-Dx4cy5vI.cjs.map +1 -0
- package/lib/signature-verification.exception-Bdz2blO4.d.cts +8 -0
- package/lib/signature-verification.exception-Dc1gSCYD.cjs +17 -0
- package/lib/signature-verification.exception-Dc1gSCYD.cjs.map +1 -0
- package/lib/sms.interface-CCvvcYpl.d.cts +10 -0
- package/lib/sms.serializer-X3xntG8l.cjs +12 -0
- package/lib/sms.serializer-X3xntG8l.cjs.map +1 -0
- package/lib/sso/interfaces/authorization-url-options.interface.d.cts +2 -55
- package/lib/sso/interfaces/connection-type.enum.cjs +2 -43
- package/lib/sso/interfaces/connection-type.enum.d.cts +2 -41
- package/lib/sso/interfaces/connection.interface.d.cts +2 -33
- package/lib/sso/interfaces/get-profile-and-token-options.interface.d.cts +2 -14
- package/lib/sso/interfaces/get-profile-options.interface.d.cts +2 -7
- package/lib/sso/interfaces/index.cjs +2 -2
- package/lib/sso/interfaces/index.d.cts +9 -9
- package/lib/sso/interfaces/list-connections-options.interface.d.cts +2 -17
- package/lib/sso/interfaces/profile-and-token.interface.d.cts +2 -18
- package/lib/sso/interfaces/profile.interface.d.cts +2 -42
- package/lib/sso/serializers/connection.serializer.cjs +2 -16
- package/lib/sso/serializers/connection.serializer.d.cts +2 -7
- package/lib/sso/serializers/index.cjs +8 -8
- package/lib/sso/serializers/index.d.cts +4 -4
- package/lib/sso/serializers/list-connections-options.serializer.cjs +2 -14
- package/lib/sso/serializers/list-connections-options.serializer.d.cts +2 -7
- package/lib/sso/serializers/profile-and-token.serializer.cjs +2 -12
- package/lib/sso/serializers/profile-and-token.serializer.d.cts +2 -8
- package/lib/sso/serializers/profile.serializer.cjs +2 -20
- package/lib/sso/serializers/profile.serializer.d.cts +2 -8
- package/lib/sso/sso.cjs +2 -129
- package/lib/sso/sso.d.cts +2 -69
- package/lib/sso-BGdbsFSR.cjs +135 -0
- package/lib/sso-BGdbsFSR.cjs.map +1 -0
- package/lib/subtle-crypto-provider-B-Ywls_E.cjs +99 -0
- package/lib/subtle-crypto-provider-B-Ywls_E.cjs.map +1 -0
- package/lib/totp.interface-DYAiNCIp.d.cts +22 -0
- package/lib/totp.serializer-DlQAVrBt.cjs +32 -0
- package/lib/totp.serializer-DlQAVrBt.cjs.map +1 -0
- package/lib/unauthorized.exception-BfjoWRNu.d.cts +13 -0
- package/lib/unauthorized.exception-hTKkIjP4.cjs +21 -0
- package/lib/unauthorized.exception-hTKkIjP4.cjs.map +1 -0
- package/lib/unknown-record.interface-BeldI97Y.d.cts +5 -0
- package/lib/unprocessable-entity-error.interface-CBG2g2iU.cjs +0 -0
- package/lib/unprocessable-entity-error.interface-Cetcw8CZ.d.cts +8 -0
- package/lib/unprocessable-entity.exception-BdCyQCYX.cjs +28 -0
- package/lib/unprocessable-entity.exception-BdCyQCYX.cjs.map +1 -0
- package/lib/unprocessable-entity.exception-Bfdn63On.d.cts +25 -0
- package/lib/unreachable-BhX3Wm6O.cjs +23 -0
- package/lib/unreachable-BhX3Wm6O.cjs.map +1 -0
- package/lib/update-object.interface-DSpX1DVE.d.cts +13 -0
- package/lib/update-object.interface-Nms9NiU9.cjs +0 -0
- package/lib/update-organization-membership-options.interface-JtvQDljv.cjs +0 -0
- package/lib/update-organization-membership-options.interface-dgLTrwtU.d.cts +12 -0
- package/lib/update-organization-membership-options.serializer-CMMOZfnN.cjs +15 -0
- package/lib/update-organization-membership-options.serializer-CMMOZfnN.cjs.map +1 -0
- package/lib/update-organization-options.interface-4n3qEX9i.cjs +0 -0
- package/lib/update-organization-options.interface-BsgwfPaF.d.cts +21 -0
- package/lib/update-organization-options.serializer-5Out0brr.d.cts +7 -0
- package/lib/update-organization-options.serializer-DWh4RlX3.cjs +18 -0
- package/lib/update-organization-options.serializer-DWh4RlX3.cjs.map +1 -0
- package/lib/update-user-options.interface-Docd9AML.cjs +0 -0
- package/lib/update-user-options.interface-aM2-YVW5.d.cts +31 -0
- package/lib/update-user-options.serializer-6lvzxDwS.d.cts +7 -0
- package/lib/update-user-options.serializer-H11lRdjH.cjs +23 -0
- package/lib/update-user-options.serializer-H11lRdjH.cjs.map +1 -0
- package/lib/update-user-password-options.interface-Bqpsk-Qq.cjs +0 -0
- package/lib/update-user-password-options.interface-Buytvx58.d.cts +11 -0
- package/lib/update-user-password-options.serializer-CY9Ckmqw.cjs +12 -0
- package/lib/update-user-password-options.serializer-CY9Ckmqw.cjs.map +1 -0
- package/lib/update-user-password-options.serializer-D35YAk--.d.cts +7 -0
- package/lib/user-management/interfaces/authenticate-with-code-and-verifier-options.interface.d.cts +2 -17
- package/lib/user-management/interfaces/authenticate-with-code-options.interface.d.cts +2 -20
- package/lib/user-management/interfaces/authenticate-with-email-verification-options.interface.d.cts +2 -18
- package/lib/user-management/interfaces/authenticate-with-magic-auth-options.interface.d.cts +2 -22
- package/lib/user-management/interfaces/authenticate-with-options-base.interface.d.cts +2 -41
- package/lib/user-management/interfaces/authenticate-with-organization-selection.interface.d.cts +2 -18
- package/lib/user-management/interfaces/authenticate-with-password-options.interface.d.cts +2 -20
- package/lib/user-management/interfaces/authenticate-with-refresh-token-options.interface.d.cts +2 -18
- package/lib/user-management/interfaces/authenticate-with-refresh-token-public-client-options.interface.d.cts +2 -16
- package/lib/user-management/interfaces/authenticate-with-session-cookie.interface.cjs +2 -11
- package/lib/user-management/interfaces/authenticate-with-session-cookie.interface.d.cts +2 -45
- package/lib/user-management/interfaces/authenticate-with-totp-options.interface.d.cts +2 -20
- package/lib/user-management/interfaces/authentication-event.interface.d.cts +2 -28
- package/lib/user-management/interfaces/authentication-radar-risk-detected-event.interface.d.cts +2 -24
- package/lib/user-management/interfaces/authentication-response.interface.d.cts +2 -28
- package/lib/user-management/interfaces/authorization-url-options.interface.d.cts +2 -45
- package/lib/user-management/interfaces/create-magic-auth-options.interface.d.cts +2 -12
- package/lib/user-management/interfaces/create-organization-membership-options.interface.d.cts +2 -16
- package/lib/user-management/interfaces/create-password-reset-options.interface.d.cts +2 -10
- package/lib/user-management/interfaces/create-user-options.interface.d.cts +2 -28
- package/lib/user-management/interfaces/email-verification.interface.d.cts +2 -42
- package/lib/user-management/interfaces/enroll-auth-factor.interface.d.cts +2 -17
- package/lib/user-management/interfaces/factor.interface.d.cts +2 -42
- package/lib/user-management/interfaces/identity.interface.d.cts +2 -14
- package/lib/user-management/interfaces/impersonator.interface.d.cts +2 -12
- package/lib/user-management/interfaces/index.cjs +6 -6
- package/lib/user-management/interfaces/index.d.cts +44 -47
- package/lib/user-management/interfaces/invitation.interface.d.cts +2 -64
- package/lib/user-management/interfaces/list-auth-factors-options.interface.d.cts +2 -9
- package/lib/user-management/interfaces/list-invitations-options.interface.d.cts +2 -14
- package/lib/user-management/interfaces/list-organization-memberships-options.interface.d.cts +2 -21
- package/lib/user-management/interfaces/list-sessions-options.interface.d.cts +2 -8
- package/lib/user-management/interfaces/list-user-feature-flags-options.interface.d.cts +2 -9
- package/lib/user-management/interfaces/list-users-options.interface.d.cts +2 -14
- package/lib/user-management/interfaces/logout-url-options.interface.d.cts +2 -8
- package/lib/user-management/interfaces/magic-auth.interface.d.cts +2 -42
- package/lib/user-management/interfaces/oauth-tokens.interface.d.cts +2 -16
- package/lib/user-management/interfaces/organization-membership.interface.d.cts +2 -31
- package/lib/user-management/interfaces/password-hash-type.interface.d.cts +2 -5
- package/lib/user-management/interfaces/password-reset.interface.d.cts +2 -40
- package/lib/user-management/interfaces/refresh-and-seal-session-data.interface.cjs +2 -13
- package/lib/user-management/interfaces/refresh-and-seal-session-data.interface.d.cts +2 -24
- package/lib/user-management/interfaces/reset-password-options.interface.d.cts +2 -12
- package/lib/user-management/interfaces/revoke-session-options.interface.cjs +2 -6
- package/lib/user-management/interfaces/revoke-session-options.interface.d.cts +2 -11
- package/lib/user-management/interfaces/send-invitation-options.interface.d.cts +2 -18
- package/lib/user-management/interfaces/send-verification-email-options.interface.d.cts +2 -7
- package/lib/user-management/interfaces/session-handler-options.interface.d.cts +2 -9
- package/lib/user-management/interfaces/session.interface.d.cts +2 -38
- package/lib/user-management/interfaces/update-organization-membership-options.interface.d.cts +2 -12
- package/lib/user-management/interfaces/update-user-options.interface.d.cts +2 -31
- package/lib/user-management/interfaces/update-user-password-options.interface.d.cts +2 -11
- package/lib/user-management/interfaces/user.interface.d.cts +2 -34
- package/lib/user-management/interfaces/verify-email-options.interface.d.cts +2 -11
- package/lib/user-management/serializers/authenticate-with-code-and-verifier-options.serializer.cjs +2 -14
- package/lib/user-management/serializers/authenticate-with-code-and-verifier-options.serializer.d.cts +2 -8
- package/lib/user-management/serializers/authenticate-with-code-options.serializer.cjs +2 -15
- package/lib/user-management/serializers/authenticate-with-code-options.serializer.d.cts +2 -8
- package/lib/user-management/serializers/authenticate-with-email-verification.serializer.cjs +2 -14
- 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.cjs +2 -16
- package/lib/user-management/serializers/authenticate-with-magic-auth-options.serializer.d.cts +2 -8
- package/lib/user-management/serializers/authenticate-with-organization-selection-options.serializer.cjs +2 -14
- 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.cjs +2 -15
- package/lib/user-management/serializers/authenticate-with-password-options.serializer.d.cts +2 -8
- package/lib/user-management/serializers/authenticate-with-refresh-token-public-client-options.serializer.cjs +2 -13
- package/lib/user-management/serializers/authenticate-with-refresh-token-public-client-options.serializer.d.cts +2 -8
- package/lib/user-management/serializers/authenticate-with-refresh-token.options.serializer.cjs +2 -14
- package/lib/user-management/serializers/authenticate-with-refresh-token.options.serializer.d.cts +2 -9
- package/lib/user-management/serializers/authenticate-with-totp-options.serializer.cjs +2 -15
- package/lib/user-management/serializers/authenticate-with-totp-options.serializer.d.cts +2 -8
- package/lib/user-management/serializers/authentication-event.serializer.cjs +2 -14
- package/lib/user-management/serializers/authentication-event.serializer.d.cts +2 -7
- package/lib/user-management/serializers/authentication-radar-risk-event-serializer.cjs +2 -15
- package/lib/user-management/serializers/authentication-radar-risk-event-serializer.d.cts +1 -1
- package/lib/user-management/serializers/authentication-response.serializer.cjs +2 -20
- package/lib/user-management/serializers/authentication-response.serializer.d.cts +2 -7
- package/lib/user-management/serializers/create-magic-auth-options.serializer.cjs +2 -9
- package/lib/user-management/serializers/create-magic-auth-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/create-organization-membership-options.serializer.cjs +2 -11
- package/lib/user-management/serializers/create-organization-membership-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/create-password-reset-options.serializer.cjs +2 -6
- package/lib/user-management/serializers/create-password-reset-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/create-user-options.serializer.cjs +2 -16
- package/lib/user-management/serializers/create-user-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/email-verification.serializer.cjs +3 -25
- package/lib/user-management/serializers/email-verification.serializer.d.cts +2 -8
- package/lib/user-management/serializers/enroll-auth-factor-options.serializer.cjs +2 -11
- package/lib/user-management/serializers/enroll-auth-factor-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/factor.serializer.cjs +3 -25
- package/lib/user-management/serializers/factor.serializer.d.cts +2 -8
- package/lib/user-management/serializers/identity.serializer.cjs +2 -14
- package/lib/user-management/serializers/identity.serializer.d.cts +1 -1
- package/lib/user-management/serializers/index.cjs +53 -53
- package/lib/user-management/serializers/index.d.cts +24 -24
- package/lib/user-management/serializers/invitation.serializer.cjs +3 -36
- package/lib/user-management/serializers/invitation.serializer.d.cts +2 -8
- package/lib/user-management/serializers/list-invitations-options.serializer.cjs +2 -13
- package/lib/user-management/serializers/list-invitations-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/list-organization-memberships-options.serializer.cjs +2 -14
- package/lib/user-management/serializers/list-organization-memberships-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/list-sessions-options.serializer.cjs +2 -6
- package/lib/user-management/serializers/list-sessions-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/list-users-options.serializer.cjs +2 -13
- package/lib/user-management/serializers/list-users-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/magic-auth.serializer.cjs +3 -25
- package/lib/user-management/serializers/magic-auth.serializer.d.cts +2 -8
- package/lib/user-management/serializers/oauth-tokens.serializer.cjs +2 -11
- package/lib/user-management/serializers/oauth-tokens.serializer.d.cts +1 -1
- package/lib/user-management/serializers/organization-membership.serializer.cjs +2 -17
- package/lib/user-management/serializers/organization-membership.serializer.d.cts +1 -1
- package/lib/user-management/serializers/password-reset.serializer.cjs +3 -24
- package/lib/user-management/serializers/password-reset.serializer.d.cts +2 -8
- package/lib/user-management/serializers/reset-password-options.serializer.cjs +2 -9
- package/lib/user-management/serializers/reset-password-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/role.serializer.cjs +2 -12
- package/lib/user-management/serializers/role.serializer.d.cts +1 -1
- package/lib/user-management/serializers/send-invitation-options.serializer.cjs +2 -12
- package/lib/user-management/serializers/send-invitation-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/session.serializer.cjs +2 -20
- package/lib/user-management/serializers/session.serializer.d.cts +2 -7
- package/lib/user-management/serializers/update-organization-membership-options.serializer.cjs +2 -9
- package/lib/user-management/serializers/update-organization-membership-options.serializer.d.cts +1 -1
- package/lib/user-management/serializers/update-user-options.serializer.cjs +2 -17
- package/lib/user-management/serializers/update-user-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/update-user-password-options.serializer.cjs +2 -6
- package/lib/user-management/serializers/update-user-password-options.serializer.d.cts +2 -7
- package/lib/user-management/serializers/user.serializer.cjs +2 -20
- package/lib/user-management/serializers/user.serializer.d.cts +2 -7
- package/lib/user-management/session.cjs +3 -138
- package/lib/user-management/session.d.cts +2 -44
- package/lib/user-management/user-management.cjs +4 -532
- package/lib/user-management/user-management.d.cts +2 -210
- package/lib/user-management-B-wNbU8Q.cjs +538 -0
- package/lib/user-management-B-wNbU8Q.cjs.map +1 -0
- package/lib/user.interface-CQjmDTsg.cjs +0 -0
- package/lib/user.interface-Dw_0nNpw.d.cts +34 -0
- package/lib/user.serializer-DJ3rbRrA.d.cts +7 -0
- package/lib/user.serializer-Y5EM8MeK.cjs +26 -0
- package/lib/user.serializer-Y5EM8MeK.cjs.map +1 -0
- package/lib/utils/jose.cjs +2 -21
- package/lib/validate-api-key.interface-CK407BWa.cjs +0 -0
- package/lib/validate-api-key.interface-TBdiN_K_.d.cts +15 -0
- package/lib/validate-api-key.serializer-Cwpx9odk.cjs +15 -0
- package/lib/validate-api-key.serializer-Cwpx9odk.cjs.map +1 -0
- package/lib/validate-api-key.serializer-DJFc2ovX.d.cts +7 -0
- package/lib/vault/interfaces/index.d.cts +10 -10
- package/lib/vault/interfaces/key/create-data-key.interface.d.cts +2 -15
- package/lib/vault/interfaces/key/decrypt-data-key.interface.d.cts +2 -11
- package/lib/vault/interfaces/key.interface.d.cts +2 -16
- package/lib/vault/interfaces/object/create-object.interface.d.cts +2 -16
- package/lib/vault/interfaces/object/delete-object.interface.d.cts +2 -7
- package/lib/vault/interfaces/object/list-object-versions.interface.d.cts +2 -12
- package/lib/vault/interfaces/object/list-objects.interface.d.cts +2 -9
- package/lib/vault/interfaces/object/read-object.interface.d.cts +2 -25
- package/lib/vault/interfaces/object/update-object.interface.d.cts +2 -13
- package/lib/vault/interfaces/object.interface.d.cts +2 -35
- package/lib/vault/serializers/vault-key.serializer.cjs +3 -18
- package/lib/vault/serializers/vault-key.serializer.d.cts +3 -3
- package/lib/vault/serializers/vault-object.serializer.cjs +7 -53
- package/lib/vault/serializers/vault-object.serializer.d.cts +7 -7
- package/lib/vault/vault.cjs +2 -100
- package/lib/vault/vault.d.cts +2 -34
- package/lib/vault-BlHYnRoU.cjs +106 -0
- package/lib/vault-BlHYnRoU.cjs.map +1 -0
- package/lib/vault-key.serializer-eYptLXG-.cjs +29 -0
- package/lib/vault-key.serializer-eYptLXG-.cjs.map +1 -0
- package/lib/vault-object.serializer-BZEXkPbG.cjs +84 -0
- package/lib/vault-object.serializer-BZEXkPbG.cjs.map +1 -0
- package/lib/verify-challenge-options-CbIfj-xU.d.cts +8 -0
- package/lib/verify-challenge-response-BmtVdUEW.d.cts +14 -0
- package/lib/verify-email-options.interface-BBcp932Q.cjs +0 -0
- package/lib/verify-email-options.interface-C84HHtMI.d.cts +11 -0
- package/lib/verify-response.serializer-BzA1MzhA.d.cts +7 -0
- package/lib/verify-response.serializer-Ga6sZ_he.cjs +16 -0
- package/lib/verify-response.serializer-Ga6sZ_he.cjs.map +1 -0
- package/lib/warning.interface-CSsg4mki.d.cts +13 -0
- package/lib/warrant-op.enum-DlS3mxL5.d.cts +8 -0
- package/lib/warrant-op.enum-GglqG3OS.cjs +16 -0
- package/lib/warrant-op.enum-GglqG3OS.cjs.map +1 -0
- package/lib/warrant-token.interface-BQ9A2-XP.cjs +0 -0
- package/lib/warrant-token.interface-R40zmb_I.d.cts +10 -0
- package/lib/warrant-token.serializer-5-8n-V0R.d.cts +7 -0
- package/lib/warrant-token.serializer-DcPHu0QA.cjs +12 -0
- package/lib/warrant-token.serializer-DcPHu0QA.cjs.map +1 -0
- package/lib/warrant.interface-BTyeqwIZ.d.cts +71 -0
- package/lib/warrant.interface-DJHgzeER.cjs +0 -0
- package/lib/warrant.serializer-CoOLXomy.cjs +22 -0
- package/lib/warrant.serializer-CoOLXomy.cjs.map +1 -0
- package/lib/warrant.serializer-gpAVldox.d.cts +7 -0
- package/lib/webhooks/webhooks.cjs +2 -32
- package/lib/webhooks/webhooks.d.cts +2 -35
- package/lib/webhooks-Cg-vwv-K.cjs +38 -0
- package/lib/webhooks-Cg-vwv-K.cjs.map +1 -0
- package/lib/webhooks-Cu--UoJt.d.cts +35 -0
- package/lib/widgets/interfaces/get-token.cjs +3 -12
- package/lib/widgets/interfaces/get-token.d.cts +2 -23
- package/lib/widgets/widgets.cjs +2 -15
- package/lib/widgets/widgets.d.cts +2 -12
- package/lib/widgets-DgRdyRWv.cjs +21 -0
- package/lib/widgets-DgRdyRWv.cjs.map +1 -0
- package/lib/workos-Q8jFdPPy.cjs +306 -0
- package/lib/workos-Q8jFdPPy.cjs.map +1 -0
- package/lib/workos-options.interface-BCUwoqgS.cjs +0 -0
- package/lib/workos-options.interface-UI0n58Db.d.cts +17 -0
- package/lib/workos-response-error.interface-BWAYi8L4.d.cts +13 -0
- package/lib/workos-response-error.interface-oYjLN9ok.cjs +0 -0
- package/lib/workos.cjs +6 -300
- package/lib/workos.d.cts +2 -101
- package/lib/workos.js +1 -1
- package/lib/workos.js.map +1 -1
- package/lib/write-warrant-options.serializer-ZEtUaK3t.cjs +26 -0
- package/lib/write-warrant-options.serializer-ZEtUaK3t.cjs.map +1 -0
- package/lib/write-warrant-options.serializer-sFJLAscw.d.cts +7 -0
- package/package.json +1 -1
- package/lib/actions/actions.cjs.map +0 -1
- package/lib/actions/serializers/action.serializer.cjs.map +0 -1
- package/lib/api-keys/api-keys.cjs.map +0 -1
- package/lib/api-keys/serializers/api-key.serializer.cjs.map +0 -1
- package/lib/api-keys/serializers/create-organization-api-key-options.serializer.cjs.map +0 -1
- package/lib/api-keys/serializers/created-api-key.serializer.cjs.map +0 -1
- package/lib/api-keys/serializers/validate-api-key.serializer.cjs.map +0 -1
- package/lib/audit-logs/audit-logs.cjs.map +0 -1
- package/lib/audit-logs/serializers/audit-log-export-options.serializer.cjs.map +0 -1
- package/lib/audit-logs/serializers/audit-log-export.serializer.cjs.map +0 -1
- package/lib/audit-logs/serializers/create-audit-log-event-options.serializer.cjs.map +0 -1
- package/lib/audit-logs/serializers/create-audit-log-schema-options.serializer.cjs.map +0 -1
- package/lib/audit-logs/serializers/create-audit-log-schema.serializer.cjs.map +0 -1
- package/lib/common/crypto/crypto-provider.cjs.map +0 -1
- package/lib/common/crypto/seal.cjs.map +0 -1
- package/lib/common/crypto/signature-provider.cjs.map +0 -1
- package/lib/common/crypto/subtle-crypto-provider.cjs.map +0 -1
- package/lib/common/exceptions/api-key-required.exception.cjs.map +0 -1
- package/lib/common/exceptions/bad-request.exception.cjs.map +0 -1
- package/lib/common/exceptions/conflict.exception.cjs.map +0 -1
- package/lib/common/exceptions/generic-server.exception.cjs.map +0 -1
- package/lib/common/exceptions/no-api-key-provided.exception.cjs.map +0 -1
- package/lib/common/exceptions/not-found.exception.cjs.map +0 -1
- package/lib/common/exceptions/oauth.exception.cjs.map +0 -1
- package/lib/common/exceptions/parse-error.cjs.map +0 -1
- package/lib/common/exceptions/rate-limit-exceeded.exception.cjs.map +0 -1
- package/lib/common/exceptions/signature-verification.exception.cjs.map +0 -1
- package/lib/common/exceptions/unauthorized.exception.cjs.map +0 -1
- package/lib/common/exceptions/unprocessable-entity.exception.cjs.map +0 -1
- package/lib/common/net/fetch-client.cjs.map +0 -1
- package/lib/common/net/http-client.cjs.map +0 -1
- package/lib/common/serializers/event.serializer.cjs.map +0 -1
- package/lib/common/serializers/list.serializer.cjs.map +0 -1
- package/lib/common/utils/base64.cjs.map +0 -1
- package/lib/common/utils/env.cjs.map +0 -1
- package/lib/common/utils/fetch-and-deserialize.cjs.map +0 -1
- package/lib/common/utils/leb128.cjs.map +0 -1
- package/lib/common/utils/pagination.cjs.map +0 -1
- package/lib/common/utils/query-string.cjs.map +0 -1
- package/lib/common/utils/runtime-info.cjs.map +0 -1
- package/lib/common/utils/unreachable.cjs.map +0 -1
- package/lib/directory-sync/directory-sync.cjs.map +0 -1
- package/lib/directory-sync/serializers/directory-group.serializer.cjs.map +0 -1
- package/lib/directory-sync/serializers/directory-user.serializer.cjs.map +0 -1
- package/lib/directory-sync/serializers/directory.serializer.cjs.map +0 -1
- package/lib/directory-sync/serializers/list-directories-options.serializer.cjs.map +0 -1
- package/lib/events/events.cjs.map +0 -1
- package/lib/events/serializers/list-event-options.serializer.cjs.map +0 -1
- package/lib/factory.cjs.map +0 -1
- package/lib/feature-flags/feature-flags.cjs.map +0 -1
- package/lib/feature-flags/serializers/feature-flag.serializer.cjs.map +0 -1
- package/lib/fga/fga.cjs.map +0 -1
- package/lib/fga/interfaces/check-op.enum.cjs.map +0 -1
- package/lib/fga/interfaces/check.interface.cjs.map +0 -1
- package/lib/fga/interfaces/resource-op.enum.cjs.map +0 -1
- package/lib/fga/interfaces/warrant-op.enum.cjs.map +0 -1
- package/lib/fga/serializers/batch-write-resources-options.serializer.cjs.map +0 -1
- package/lib/fga/serializers/check-options.serializer.cjs.map +0 -1
- package/lib/fga/serializers/create-resource-options.serializer.cjs.map +0 -1
- package/lib/fga/serializers/delete-resource-options.serializer.cjs.map +0 -1
- package/lib/fga/serializers/list-resources-options.serializer.cjs.map +0 -1
- package/lib/fga/serializers/list-warrants-options.serializer.cjs.map +0 -1
- package/lib/fga/serializers/list.serializer.cjs.map +0 -1
- package/lib/fga/serializers/query-options.serializer.cjs.map +0 -1
- package/lib/fga/serializers/query-result.serializer.cjs.map +0 -1
- package/lib/fga/serializers/resource.serializer.cjs.map +0 -1
- package/lib/fga/serializers/warrant-token.serializer.cjs.map +0 -1
- package/lib/fga/serializers/warrant.serializer.cjs.map +0 -1
- package/lib/fga/serializers/write-warrant-options.serializer.cjs.map +0 -1
- package/lib/fga/utils/fetch-and-deserialize-list.cjs.map +0 -1
- package/lib/fga/utils/fga-paginatable.cjs.map +0 -1
- package/lib/fga/utils/interface-check.cjs.map +0 -1
- package/lib/mfa/mfa.cjs.map +0 -1
- package/lib/mfa/serializers/challenge.serializer.cjs.map +0 -1
- package/lib/mfa/serializers/factor.serializer.cjs.map +0 -1
- package/lib/mfa/serializers/sms.serializer.cjs.map +0 -1
- package/lib/mfa/serializers/totp.serializer.cjs.map +0 -1
- package/lib/mfa/serializers/verify-response.serializer.cjs.map +0 -1
- package/lib/node_modules/iron-webcrypto/index.cjs +0 -218
- package/lib/node_modules/iron-webcrypto/index.cjs.map +0 -1
- package/lib/node_modules/iron-webcrypto/index.js.map +0 -1
- package/lib/node_modules/uint8array-extras/index.cjs +0 -55
- package/lib/node_modules/uint8array-extras/index.cjs.map +0 -1
- package/lib/node_modules/uint8array-extras/index.js +0 -52
- package/lib/node_modules/uint8array-extras/index.js.map +0 -1
- package/lib/organization-domains/interfaces/organization-domain.interface.cjs.map +0 -1
- package/lib/organization-domains/organization-domains.cjs.map +0 -1
- package/lib/organization-domains/serializers/create-organization-domain-options.serializer.cjs.map +0 -1
- package/lib/organization-domains/serializers/organization-domain.serializer.cjs.map +0 -1
- package/lib/organizations/interfaces/domain-data.interface.cjs.map +0 -1
- package/lib/organizations/organizations.cjs.map +0 -1
- package/lib/organizations/serializers/create-organization-options.serializer.cjs.map +0 -1
- package/lib/organizations/serializers/organization.serializer.cjs.map +0 -1
- package/lib/organizations/serializers/update-organization-options.serializer.cjs.map +0 -1
- package/lib/passwordless/passwordless.cjs.map +0 -1
- package/lib/passwordless/serializers/passwordless-session.serializer.cjs.map +0 -1
- package/lib/pipes/pipes.cjs.map +0 -1
- package/lib/pipes/serializers/access-token.serializer.cjs.map +0 -1
- package/lib/pipes/serializers/get-access-token.serializer.cjs.map +0 -1
- package/lib/pkce/pkce.cjs.map +0 -1
- package/lib/portal/interfaces/generate-portal-link-intent.interface.cjs.map +0 -1
- package/lib/portal/portal.cjs.map +0 -1
- package/lib/roles/serializers/role.serializer.cjs.map +0 -1
- package/lib/sso/interfaces/connection-type.enum.cjs.map +0 -1
- package/lib/sso/serializers/connection.serializer.cjs.map +0 -1
- package/lib/sso/serializers/list-connections-options.serializer.cjs.map +0 -1
- package/lib/sso/serializers/profile-and-token.serializer.cjs.map +0 -1
- package/lib/sso/serializers/profile.serializer.cjs.map +0 -1
- package/lib/sso/sso.cjs.map +0 -1
- package/lib/user-management/interfaces/authenticate-with-session-cookie.interface.cjs.map +0 -1
- package/lib/user-management/interfaces/refresh-and-seal-session-data.interface.cjs.map +0 -1
- package/lib/user-management/interfaces/revoke-session-options.interface.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-code-and-verifier-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-code-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-email-verification.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-magic-auth-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-organization-selection-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-password-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-refresh-token-public-client-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-refresh-token.options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authenticate-with-totp-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authentication-event.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authentication-radar-risk-event-serializer.cjs.map +0 -1
- package/lib/user-management/serializers/authentication-response.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/create-magic-auth-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/create-organization-membership-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/create-password-reset-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/create-user-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/email-verification.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/enroll-auth-factor-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/factor.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/identity.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/invitation.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/list-invitations-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/list-organization-memberships-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/list-sessions-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/list-users-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/magic-auth.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/oauth-tokens.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/organization-membership.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/password-reset.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/reset-password-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/role.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/send-invitation-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/session.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/update-organization-membership-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/update-user-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/update-user-password-options.serializer.cjs.map +0 -1
- package/lib/user-management/serializers/user.serializer.cjs.map +0 -1
- package/lib/user-management/session.cjs.map +0 -1
- package/lib/user-management/user-management.cjs.map +0 -1
- package/lib/utils/jose.cjs.map +0 -1
- package/lib/vault/serializers/vault-key.serializer.cjs.map +0 -1
- package/lib/vault/serializers/vault-object.serializer.cjs.map +0 -1
- package/lib/vault/vault.cjs.map +0 -1
- package/lib/webhooks/webhooks.cjs.map +0 -1
- package/lib/widgets/interfaces/get-token.cjs.map +0 -1
- package/lib/widgets/widgets.cjs.map +0 -1
- package/lib/workos.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
const require_create_organization_options_serializer = require('../../create-organization-options.serializer-Bg38u3Y_.cjs');
|
|
2
|
+
const require_organization_serializer = require('../../organization.serializer-DM6Xkk2V.cjs');
|
|
3
|
+
const require_update_organization_options_serializer = require('../../update-organization-options.serializer-DWh4RlX3.cjs');
|
|
4
4
|
|
|
5
|
-
exports.deserializeOrganization =
|
|
6
|
-
exports.serializeCreateOrganizationOptions =
|
|
7
|
-
exports.serializeUpdateOrganizationOptions =
|
|
5
|
+
exports.deserializeOrganization = require_organization_serializer.deserializeOrganization;
|
|
6
|
+
exports.serializeCreateOrganizationOptions = require_create_organization_options_serializer.serializeCreateOrganizationOptions;
|
|
7
|
+
exports.serializeUpdateOrganizationOptions = require_update_organization_options_serializer.serializeUpdateOrganizationOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serializeCreateOrganizationOptions } from "
|
|
2
|
-
import { deserializeOrganization } from "
|
|
3
|
-
import { serializeUpdateOrganizationOptions } from "
|
|
1
|
+
import { t as serializeCreateOrganizationOptions } from "../../create-organization-options.serializer-BP9YqXCb.cjs";
|
|
2
|
+
import { t as deserializeOrganization } from "../../organization.serializer-BLDEzQ1R.cjs";
|
|
3
|
+
import { t as serializeUpdateOrganizationOptions } from "../../update-organization-options.serializer-5Out0brr.cjs";
|
|
4
4
|
export { deserializeOrganization, serializeCreateOrganizationOptions, serializeUpdateOrganizationOptions };
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_organization_serializer = require('../../organization.serializer-DM6Xkk2V.cjs');
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
const deserializeOrganization = (organization) => ({
|
|
5
|
-
object: organization.object,
|
|
6
|
-
id: organization.id,
|
|
7
|
-
name: organization.name,
|
|
8
|
-
allowProfilesOutsideOrganization: organization.allow_profiles_outside_organization,
|
|
9
|
-
domains: organization.domains.map(require_organization_domains_serializers_organization_domain_serializer.deserializeOrganizationDomain),
|
|
10
|
-
...typeof organization.stripe_customer_id === "undefined" ? void 0 : { stripeCustomerId: organization.stripe_customer_id },
|
|
11
|
-
createdAt: organization.created_at,
|
|
12
|
-
updatedAt: organization.updated_at,
|
|
13
|
-
externalId: organization.external_id ?? null,
|
|
14
|
-
metadata: organization.metadata ?? {}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
exports.deserializeOrganization = deserializeOrganization;
|
|
19
|
-
//# sourceMappingURL=organization.serializer.cjs.map
|
|
3
|
+
exports.deserializeOrganization = require_organization_serializer.deserializeOrganization;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/organizations/serializers/organization.serializer.d.ts
|
|
4
|
-
declare const deserializeOrganization: (organization: OrganizationResponse) => Organization;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { deserializeOrganization };
|
|
7
|
-
//# sourceMappingURL=organization.serializer.d.cts.map
|
|
1
|
+
import { t as deserializeOrganization } from "../../organization.serializer-BLDEzQ1R.cjs";
|
|
2
|
+
export { deserializeOrganization };
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
+
const require_update_organization_options_serializer = require('../../update-organization-options.serializer-DWh4RlX3.cjs');
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
const serializeUpdateOrganizationOptions = (options) => ({
|
|
4
|
-
name: options.name,
|
|
5
|
-
domain_data: options.domainData,
|
|
6
|
-
stripe_customer_id: options.stripeCustomerId,
|
|
7
|
-
external_id: options.externalId,
|
|
8
|
-
metadata: options.metadata
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.serializeUpdateOrganizationOptions = serializeUpdateOrganizationOptions;
|
|
13
|
-
//# sourceMappingURL=update-organization-options.serializer.cjs.map
|
|
3
|
+
exports.serializeUpdateOrganizationOptions = require_update_organization_options_serializer.serializeUpdateOrganizationOptions;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/organizations/serializers/update-organization-options.serializer.d.ts
|
|
4
|
-
declare const serializeUpdateOrganizationOptions: (options: Omit<UpdateOrganizationOptions, "organization">) => SerializedUpdateOrganizationOptions;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { serializeUpdateOrganizationOptions };
|
|
7
|
-
//# sourceMappingURL=update-organization-options.serializer.d.cts.map
|
|
1
|
+
import { t as serializeUpdateOrganizationOptions } from "../../update-organization-options.serializer-5Out0brr.cjs";
|
|
2
|
+
export { serializeUpdateOrganizationOptions };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const require_api_key_serializer = require('./api-key.serializer-384tUKDU.cjs');
|
|
2
|
+
const require_pagination = require('./pagination-BG1uBuL4.cjs');
|
|
3
|
+
const require_create_organization_options_serializer = require('./create-organization-options.serializer-Bg38u3Y_.cjs');
|
|
4
|
+
const require_organization_serializer = require('./organization.serializer-DM6Xkk2V.cjs');
|
|
5
|
+
const require_update_organization_options_serializer = require('./update-organization-options.serializer-DWh4RlX3.cjs');
|
|
6
|
+
const require_fetch_and_deserialize = require('./fetch-and-deserialize-Cw0qruaA.cjs');
|
|
7
|
+
const require_role_serializer = require('./role.serializer-DVr857zo.cjs');
|
|
8
|
+
const require_feature_flag_serializer = require('./feature-flag.serializer-DhnZDZE3.cjs');
|
|
9
|
+
const require_create_organization_api_key_options_serializer = require('./create-organization-api-key-options.serializer-Bd5IjZMz.cjs');
|
|
10
|
+
const require_created_api_key_serializer = require('./created-api-key.serializer-TAY4jtUj.cjs');
|
|
11
|
+
|
|
12
|
+
//#region src/organizations/organizations.ts
|
|
13
|
+
var Organizations = class {
|
|
14
|
+
constructor(workos) {
|
|
15
|
+
this.workos = workos;
|
|
16
|
+
}
|
|
17
|
+
async listOrganizations(options) {
|
|
18
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/organizations", require_organization_serializer.deserializeOrganization, options), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, "/organizations", require_organization_serializer.deserializeOrganization, params), options);
|
|
19
|
+
}
|
|
20
|
+
async createOrganization(payload, requestOptions = {}) {
|
|
21
|
+
const { data } = await this.workos.post("/organizations", require_create_organization_options_serializer.serializeCreateOrganizationOptions(payload), requestOptions);
|
|
22
|
+
return require_organization_serializer.deserializeOrganization(data);
|
|
23
|
+
}
|
|
24
|
+
async deleteOrganization(id) {
|
|
25
|
+
await this.workos.delete(`/organizations/${id}`);
|
|
26
|
+
}
|
|
27
|
+
async getOrganization(id) {
|
|
28
|
+
const { data } = await this.workos.get(`/organizations/${id}`);
|
|
29
|
+
return require_organization_serializer.deserializeOrganization(data);
|
|
30
|
+
}
|
|
31
|
+
async getOrganizationByExternalId(externalId) {
|
|
32
|
+
const { data } = await this.workos.get(`/organizations/external_id/${externalId}`);
|
|
33
|
+
return require_organization_serializer.deserializeOrganization(data);
|
|
34
|
+
}
|
|
35
|
+
async updateOrganization(options) {
|
|
36
|
+
const { organization: organizationId, ...payload } = options;
|
|
37
|
+
const { data } = await this.workos.put(`/organizations/${organizationId}`, require_update_organization_options_serializer.serializeUpdateOrganizationOptions(payload));
|
|
38
|
+
return require_organization_serializer.deserializeOrganization(data);
|
|
39
|
+
}
|
|
40
|
+
async listOrganizationRoles(options) {
|
|
41
|
+
const { organizationId } = options;
|
|
42
|
+
const { data: response } = await this.workos.get(`/organizations/${organizationId}/roles`);
|
|
43
|
+
return {
|
|
44
|
+
object: "list",
|
|
45
|
+
data: response.data.map((role) => require_role_serializer.deserializeRole(role))
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
async listOrganizationFeatureFlags(options) {
|
|
49
|
+
const { organizationId, ...paginationOptions } = options;
|
|
50
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/organizations/${organizationId}/feature-flags`, require_feature_flag_serializer.deserializeFeatureFlag, paginationOptions), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/organizations/${organizationId}/feature-flags`, require_feature_flag_serializer.deserializeFeatureFlag, params), options);
|
|
51
|
+
}
|
|
52
|
+
async listOrganizationApiKeys(options) {
|
|
53
|
+
const { organizationId, ...paginationOptions } = options;
|
|
54
|
+
return new require_pagination.AutoPaginatable(await require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/organizations/${organizationId}/api_keys`, require_api_key_serializer.deserializeApiKey, paginationOptions), (params) => require_fetch_and_deserialize.fetchAndDeserialize(this.workos, `/organizations/${organizationId}/api_keys`, require_api_key_serializer.deserializeApiKey, params), paginationOptions);
|
|
55
|
+
}
|
|
56
|
+
async createOrganizationApiKey(options, requestOptions = {}) {
|
|
57
|
+
const { organizationId } = options;
|
|
58
|
+
const { data } = await this.workos.post(`/organizations/${organizationId}/api_keys`, require_create_organization_api_key_options_serializer.serializeCreateOrganizationApiKeyOptions(options), requestOptions);
|
|
59
|
+
return require_created_api_key_serializer.deserializeCreatedApiKey(data);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
Object.defineProperty(exports, 'Organizations', {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return Organizations;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//# sourceMappingURL=organizations-D95AsD1T.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations-D95AsD1T.cjs","names":["workos: WorkOS","AutoPaginatable","fetchAndDeserialize","deserializeOrganization","serializeCreateOrganizationOptions","serializeUpdateOrganizationOptions","deserializeRole","deserializeFeatureFlag","deserializeApiKey","serializeCreateOrganizationApiKeyOptions","deserializeCreatedApiKey"],"sources":["../src/organizations/organizations.ts"],"sourcesContent":["import { AutoPaginatable } from '../common/utils/pagination';\nimport { WorkOS } from '../workos';\nimport {\n CreateOrganizationOptions,\n CreateOrganizationRequestOptions,\n ListOrganizationsOptions,\n Organization,\n OrganizationResponse,\n UpdateOrganizationOptions,\n} from './interfaces';\nimport {\n FeatureFlag,\n FeatureFlagResponse,\n} from '../feature-flags/interfaces/feature-flag.interface';\nimport {\n deserializeOrganization,\n serializeCreateOrganizationOptions,\n serializeUpdateOrganizationOptions,\n} from './serializers';\n\nimport { fetchAndDeserialize } from '../common/utils/fetch-and-deserialize';\nimport { ListOrganizationRolesResponse, RoleList } from '../roles/interfaces';\nimport { deserializeRole } from '../roles/serializers/role.serializer';\nimport { ListOrganizationRolesOptions } from './interfaces/list-organization-roles-options.interface';\nimport { ListOrganizationFeatureFlagsOptions } from './interfaces/list-organization-feature-flags-options.interface';\nimport { deserializeFeatureFlag } from '../feature-flags/serializers';\nimport {\n ApiKey,\n SerializedApiKey,\n ListOrganizationApiKeysOptions,\n CreateOrganizationApiKeyOptions,\n CreateOrganizationApiKeyRequestOptions,\n CreatedApiKey,\n SerializedCreatedApiKey,\n} from '../api-keys/interfaces';\nimport {\n deserializeApiKey,\n serializeCreateOrganizationApiKeyOptions,\n deserializeCreatedApiKey,\n} from '../api-keys/serializers';\n\nexport class Organizations {\n constructor(private readonly workos: WorkOS) {}\n\n async listOrganizations(\n options?: ListOrganizationsOptions,\n ): Promise<AutoPaginatable<Organization, ListOrganizationsOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<OrganizationResponse, Organization>(\n this.workos,\n '/organizations',\n deserializeOrganization,\n options,\n ),\n (params) =>\n fetchAndDeserialize<OrganizationResponse, Organization>(\n this.workos,\n '/organizations',\n deserializeOrganization,\n params,\n ),\n options,\n );\n }\n\n async createOrganization(\n payload: CreateOrganizationOptions,\n requestOptions: CreateOrganizationRequestOptions = {},\n ): Promise<Organization> {\n const { data } = await this.workos.post<OrganizationResponse>(\n '/organizations',\n serializeCreateOrganizationOptions(payload),\n requestOptions,\n );\n\n return deserializeOrganization(data);\n }\n\n async deleteOrganization(id: string) {\n await this.workos.delete(`/organizations/${id}`);\n }\n\n async getOrganization(id: string): Promise<Organization> {\n const { data } = await this.workos.get<OrganizationResponse>(\n `/organizations/${id}`,\n );\n\n return deserializeOrganization(data);\n }\n\n async getOrganizationByExternalId(externalId: string): Promise<Organization> {\n const { data } = await this.workos.get<OrganizationResponse>(\n `/organizations/external_id/${externalId}`,\n );\n\n return deserializeOrganization(data);\n }\n\n async updateOrganization(\n options: UpdateOrganizationOptions,\n ): Promise<Organization> {\n const { organization: organizationId, ...payload } = options;\n\n const { data } = await this.workos.put<OrganizationResponse>(\n `/organizations/${organizationId}`,\n serializeUpdateOrganizationOptions(payload),\n );\n\n return deserializeOrganization(data);\n }\n\n async listOrganizationRoles(\n options: ListOrganizationRolesOptions,\n ): Promise<RoleList> {\n const { organizationId } = options;\n\n const { data: response } =\n await this.workos.get<ListOrganizationRolesResponse>(\n `/organizations/${organizationId}/roles`,\n );\n\n return {\n object: 'list',\n data: response.data.map((role) => deserializeRole(role)),\n };\n }\n\n async listOrganizationFeatureFlags(\n options: ListOrganizationFeatureFlagsOptions,\n ): Promise<\n AutoPaginatable<FeatureFlag, ListOrganizationFeatureFlagsOptions>\n > {\n const { organizationId, ...paginationOptions } = options;\n\n return new AutoPaginatable(\n await fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(\n this.workos,\n `/organizations/${organizationId}/feature-flags`,\n deserializeFeatureFlag,\n paginationOptions,\n ),\n (params) =>\n fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(\n this.workos,\n `/organizations/${organizationId}/feature-flags`,\n deserializeFeatureFlag,\n params,\n ),\n options,\n );\n }\n\n async listOrganizationApiKeys(\n options: ListOrganizationApiKeysOptions,\n ): Promise<AutoPaginatable<ApiKey>> {\n const { organizationId, ...paginationOptions } = options;\n\n return new AutoPaginatable(\n await fetchAndDeserialize<SerializedApiKey, ApiKey>(\n this.workos,\n `/organizations/${organizationId}/api_keys`,\n deserializeApiKey,\n paginationOptions,\n ),\n (params) =>\n fetchAndDeserialize<SerializedApiKey, ApiKey>(\n this.workos,\n `/organizations/${organizationId}/api_keys`,\n deserializeApiKey,\n params,\n ),\n paginationOptions,\n );\n }\n\n async createOrganizationApiKey(\n options: CreateOrganizationApiKeyOptions,\n requestOptions: CreateOrganizationApiKeyRequestOptions = {},\n ): Promise<CreatedApiKey> {\n const { organizationId } = options;\n\n const { data } = await this.workos.post<SerializedCreatedApiKey>(\n `/organizations/${organizationId}/api_keys`,\n serializeCreateOrganizationApiKeyOptions(options),\n requestOptions,\n );\n\n return deserializeCreatedApiKey(data);\n }\n}\n"],"mappings":";;;;;;;;;;;;AAyCA,IAAa,gBAAb,MAA2B;CACzB,YAAY,AAAiBA,QAAgB;EAAhB;;CAE7B,MAAM,kBACJ,SACkE;AAClE,SAAO,IAAIC,mCACT,MAAMC,kDACJ,KAAK,QACL,kBACAC,yDACA,QACD,GACA,WACCD,kDACE,KAAK,QACL,kBACAC,yDACA,OACD,EACH,QACD;;CAGH,MAAM,mBACJ,SACA,iBAAmD,EAAE,EAC9B;EACvB,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,KACjC,kBACAC,kFAAmC,QAAQ,EAC3C,eACD;AAED,SAAOD,wDAAwB,KAAK;;CAGtC,MAAM,mBAAmB,IAAY;AACnC,QAAM,KAAK,OAAO,OAAO,kBAAkB,KAAK;;CAGlD,MAAM,gBAAgB,IAAmC;EACvD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,kBAAkB,KACnB;AAED,SAAOA,wDAAwB,KAAK;;CAGtC,MAAM,4BAA4B,YAA2C;EAC3E,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,8BAA8B,aAC/B;AAED,SAAOA,wDAAwB,KAAK;;CAGtC,MAAM,mBACJ,SACuB;EACvB,MAAM,EAAE,cAAc,gBAAgB,GAAG,YAAY;EAErD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,kBAAkB,kBAClBE,kFAAmC,QAAQ,CAC5C;AAED,SAAOF,wDAAwB,KAAK;;CAGtC,MAAM,sBACJ,SACmB;EACnB,MAAM,EAAE,mBAAmB;EAE3B,MAAM,EAAE,MAAM,aACZ,MAAM,KAAK,OAAO,IAChB,kBAAkB,eAAe,QAClC;AAEH,SAAO;GACL,QAAQ;GACR,MAAM,SAAS,KAAK,KAAK,SAASG,wCAAgB,KAAK,CAAC;GACzD;;CAGH,MAAM,6BACJ,SAGA;EACA,MAAM,EAAE,gBAAgB,GAAG,sBAAsB;AAEjD,SAAO,IAAIL,mCACT,MAAMC,kDACJ,KAAK,QACL,kBAAkB,eAAe,iBACjCK,wDACA,kBACD,GACA,WACCL,kDACE,KAAK,QACL,kBAAkB,eAAe,iBACjCK,wDACA,OACD,EACH,QACD;;CAGH,MAAM,wBACJ,SACkC;EAClC,MAAM,EAAE,gBAAgB,GAAG,sBAAsB;AAEjD,SAAO,IAAIN,mCACT,MAAMC,kDACJ,KAAK,QACL,kBAAkB,eAAe,YACjCM,8CACA,kBACD,GACA,WACCN,kDACE,KAAK,QACL,kBAAkB,eAAe,YACjCM,8CACA,OACD,EACH,kBACD;;CAGH,MAAM,yBACJ,SACA,iBAAyD,EAAE,EACnC;EACxB,MAAM,EAAE,mBAAmB;EAE3B,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,KACjC,kBAAkB,eAAe,YACjCC,gGAAyC,QAAQ,EACjD,eACD;AAED,SAAOC,4DAAyB,KAAK"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/common/utils/pagination.ts
|
|
3
|
+
var AutoPaginatable = class {
|
|
4
|
+
object = "list";
|
|
5
|
+
options;
|
|
6
|
+
constructor(list, apiCall, options) {
|
|
7
|
+
this.list = list;
|
|
8
|
+
this.apiCall = apiCall;
|
|
9
|
+
this.options = options ?? {};
|
|
10
|
+
}
|
|
11
|
+
get data() {
|
|
12
|
+
return this.list.data;
|
|
13
|
+
}
|
|
14
|
+
get listMetadata() {
|
|
15
|
+
return this.list.listMetadata;
|
|
16
|
+
}
|
|
17
|
+
async *generatePages(params) {
|
|
18
|
+
const result = await this.apiCall({
|
|
19
|
+
...this.options,
|
|
20
|
+
limit: 100,
|
|
21
|
+
after: params.after
|
|
22
|
+
});
|
|
23
|
+
yield result.data;
|
|
24
|
+
if (result.listMetadata.after) {
|
|
25
|
+
await new Promise((resolve) => setTimeout(resolve, 350));
|
|
26
|
+
yield* this.generatePages({ after: result.listMetadata.after });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Automatically paginates over the list of results, returning the complete data set.
|
|
31
|
+
* Returns the first result if `options.limit` is passed to the first request.
|
|
32
|
+
*/
|
|
33
|
+
async autoPagination() {
|
|
34
|
+
if (this.options.limit) return this.data;
|
|
35
|
+
const results = [];
|
|
36
|
+
for await (const page of this.generatePages({ after: this.options.after })) results.push(...page);
|
|
37
|
+
return results;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
Object.defineProperty(exports, 'AutoPaginatable', {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return AutoPaginatable;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=pagination-BG1uBuL4.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-BG1uBuL4.cjs","names":["list: List<ResourceType>","apiCall: (params: PaginationOptions) => Promise<List<ResourceType>>","results: ResourceType[]"],"sources":["../src/common/utils/pagination.ts"],"sourcesContent":["import { List, PaginationOptions } from '../interfaces';\n\nexport class AutoPaginatable<\n ResourceType,\n ParametersType extends PaginationOptions = PaginationOptions,\n> {\n readonly object = 'list' as const;\n readonly options: ParametersType;\n\n constructor(\n protected list: List<ResourceType>,\n private apiCall: (params: PaginationOptions) => Promise<List<ResourceType>>,\n options?: ParametersType,\n ) {\n this.options = options ?? ({} as ParametersType);\n }\n\n get data(): ResourceType[] {\n return this.list.data;\n }\n\n get listMetadata() {\n return this.list.listMetadata;\n }\n\n private async *generatePages(\n params: PaginationOptions,\n ): AsyncGenerator<ResourceType[]> {\n const result = await this.apiCall({\n ...this.options,\n limit: 100,\n after: params.after,\n });\n\n yield result.data;\n\n if (result.listMetadata.after) {\n // Delay of 4rps to respect list users rate limits\n await new Promise((resolve) => setTimeout(resolve, 350));\n yield* this.generatePages({ after: result.listMetadata.after });\n }\n }\n\n /**\n * Automatically paginates over the list of results, returning the complete data set.\n * Returns the first result if `options.limit` is passed to the first request.\n */\n async autoPagination(): Promise<ResourceType[]> {\n if (this.options.limit) {\n return this.data;\n }\n\n const results: ResourceType[] = [];\n\n for await (const page of this.generatePages({\n after: this.options.after,\n })) {\n results.push(...page);\n }\n\n return results;\n }\n}\n"],"mappings":";;AAEA,IAAa,kBAAb,MAGE;CACA,AAAS,SAAS;CAClB,AAAS;CAET,YACE,AAAUA,MACV,AAAQC,SACR,SACA;EAHU;EACF;AAGR,OAAK,UAAU,WAAY,EAAE;;CAG/B,IAAI,OAAuB;AACzB,SAAO,KAAK,KAAK;;CAGnB,IAAI,eAAe;AACjB,SAAO,KAAK,KAAK;;CAGnB,OAAe,cACb,QACgC;EAChC,MAAM,SAAS,MAAM,KAAK,QAAQ;GAChC,GAAG,KAAK;GACR,OAAO;GACP,OAAO,OAAO;GACf,CAAC;AAEF,QAAM,OAAO;AAEb,MAAI,OAAO,aAAa,OAAO;AAE7B,SAAM,IAAI,SAAS,YAAY,WAAW,SAAS,IAAI,CAAC;AACxD,UAAO,KAAK,cAAc,EAAE,OAAO,OAAO,aAAa,OAAO,CAAC;;;;;;;CAQnE,MAAM,iBAA0C;AAC9C,MAAI,KAAK,QAAQ,MACf,QAAO,KAAK;EAGd,MAAMC,UAA0B,EAAE;AAElC,aAAW,MAAM,QAAQ,KAAK,cAAc,EAC1C,OAAO,KAAK,QAAQ,OACrB,CAAC,CACA,SAAQ,KAAK,GAAG,KAAK;AAGvB,SAAO"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as PaginationOptions } from "./pagination-options.interface-Dan4Zh3s.cjs";
|
|
2
|
+
import { t as List } from "./list.interface-D5DXp24q.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/common/utils/pagination.d.ts
|
|
5
|
+
declare class AutoPaginatable<ResourceType, ParametersType extends PaginationOptions = PaginationOptions> {
|
|
6
|
+
protected list: List<ResourceType>;
|
|
7
|
+
private apiCall;
|
|
8
|
+
readonly object: "list";
|
|
9
|
+
readonly options: ParametersType;
|
|
10
|
+
constructor(list: List<ResourceType>, apiCall: (params: PaginationOptions) => Promise<List<ResourceType>>, options?: ParametersType);
|
|
11
|
+
get data(): ResourceType[];
|
|
12
|
+
get listMetadata(): {
|
|
13
|
+
before?: string;
|
|
14
|
+
after?: string;
|
|
15
|
+
};
|
|
16
|
+
private generatePages;
|
|
17
|
+
/**
|
|
18
|
+
* Automatically paginates over the list of results, returning the complete data set.
|
|
19
|
+
* Returns the first result if `options.limit` is passed to the first request.
|
|
20
|
+
*/
|
|
21
|
+
autoPagination(): Promise<ResourceType[]>;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { AutoPaginatable as t };
|
|
25
|
+
//# sourceMappingURL=pagination-CJNMwJck.d.cts.map
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/common/interfaces/pagination-options.interface.d.ts
|
|
2
|
+
interface PaginationOptions {
|
|
3
|
+
limit?: number;
|
|
4
|
+
before?: string;
|
|
5
|
+
after?: string;
|
|
6
|
+
order?: 'asc' | 'desc';
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { PaginationOptions as t };
|
|
10
|
+
//# sourceMappingURL=pagination-options.interface-Dan4Zh3s.d.cts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/common/exceptions/parse-error.ts
|
|
3
|
+
var ParseError = class extends Error {
|
|
4
|
+
name = "ParseError";
|
|
5
|
+
status = 500;
|
|
6
|
+
rawBody;
|
|
7
|
+
rawStatus;
|
|
8
|
+
requestID;
|
|
9
|
+
constructor({ message, rawBody, rawStatus, requestID }) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.rawBody = rawBody;
|
|
12
|
+
this.rawStatus = rawStatus;
|
|
13
|
+
this.requestID = requestID;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, 'ParseError', {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return ParseError;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=parse-error-Bbj9GQ8a.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-error-Bbj9GQ8a.cjs","names":[],"sources":["../src/common/exceptions/parse-error.ts"],"sourcesContent":["import { RequestException } from '../interfaces/request-exception.interface';\n\nexport class ParseError extends Error implements RequestException {\n readonly name = 'ParseError';\n readonly status = 500;\n readonly rawBody: string;\n readonly rawStatus: number;\n readonly requestID: string;\n\n constructor({\n message,\n rawBody,\n rawStatus,\n requestID,\n }: {\n message: string;\n rawBody: string;\n requestID: string;\n rawStatus: number;\n }) {\n super(message);\n this.rawBody = rawBody;\n this.rawStatus = rawStatus;\n this.requestID = requestID;\n }\n}\n"],"mappings":";;AAEA,IAAa,aAAb,cAAgC,MAAkC;CAChE,AAAS,OAAO;CAChB,AAAS,SAAS;CAClB,AAAS;CACT,AAAS;CACT,AAAS;CAET,YAAY,EACV,SACA,SACA,WACA,aAMC;AACD,QAAM,QAAQ;AACd,OAAK,UAAU;AACf,OAAK,YAAY;AACjB,OAAK,YAAY"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/user-management/interfaces/password-hash-type.interface.d.ts
|
|
2
|
+
type PasswordHashType = 'bcrypt' | 'firebase-scrypt' | 'ssha' | 'scrypt' | 'argon2';
|
|
3
|
+
//#endregion
|
|
4
|
+
export { PasswordHashType as t };
|
|
5
|
+
//# sourceMappingURL=password-hash-type.interface-CxNrEyUW.d.cts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region src/user-management/interfaces/password-reset.interface.d.ts
|
|
2
|
+
interface PasswordReset {
|
|
3
|
+
object: 'password_reset';
|
|
4
|
+
id: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
email: string;
|
|
7
|
+
passwordResetToken: string;
|
|
8
|
+
passwordResetUrl: string;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
}
|
|
12
|
+
interface PasswordResetEvent {
|
|
13
|
+
object: 'password_reset';
|
|
14
|
+
id: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
email: string;
|
|
17
|
+
expiresAt: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
}
|
|
20
|
+
interface PasswordResetResponse {
|
|
21
|
+
object: 'password_reset';
|
|
22
|
+
id: string;
|
|
23
|
+
user_id: string;
|
|
24
|
+
email: string;
|
|
25
|
+
password_reset_token: string;
|
|
26
|
+
password_reset_url: string;
|
|
27
|
+
expires_at: string;
|
|
28
|
+
created_at: string;
|
|
29
|
+
}
|
|
30
|
+
interface PasswordResetEventResponse {
|
|
31
|
+
object: 'password_reset';
|
|
32
|
+
id: string;
|
|
33
|
+
user_id: string;
|
|
34
|
+
email: string;
|
|
35
|
+
expires_at: string;
|
|
36
|
+
created_at: string;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { PasswordResetResponse as i, PasswordResetEvent as n, PasswordResetEventResponse as r, PasswordReset as t };
|
|
40
|
+
//# sourceMappingURL=password-reset.interface-ClJw8CpQ.d.cts.map
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/user-management/serializers/password-reset.serializer.ts
|
|
3
|
+
const deserializePasswordReset = (passwordReset) => ({
|
|
4
|
+
object: passwordReset.object,
|
|
5
|
+
id: passwordReset.id,
|
|
6
|
+
userId: passwordReset.user_id,
|
|
7
|
+
email: passwordReset.email,
|
|
8
|
+
passwordResetToken: passwordReset.password_reset_token,
|
|
9
|
+
passwordResetUrl: passwordReset.password_reset_url,
|
|
10
|
+
expiresAt: passwordReset.expires_at,
|
|
11
|
+
createdAt: passwordReset.created_at
|
|
12
|
+
});
|
|
13
|
+
const deserializePasswordResetEvent = (passwordReset) => ({
|
|
14
|
+
object: passwordReset.object,
|
|
15
|
+
id: passwordReset.id,
|
|
16
|
+
userId: passwordReset.user_id,
|
|
17
|
+
email: passwordReset.email,
|
|
18
|
+
expiresAt: passwordReset.expires_at,
|
|
19
|
+
createdAt: passwordReset.created_at
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
Object.defineProperty(exports, 'deserializePasswordReset', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return deserializePasswordReset;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, 'deserializePasswordResetEvent', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return deserializePasswordResetEvent;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=password-reset.serializer-D8Kbnirv.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-reset.serializer-D8Kbnirv.cjs","names":[],"sources":["../src/user-management/serializers/password-reset.serializer.ts"],"sourcesContent":["import {\n PasswordReset,\n PasswordResetEvent,\n PasswordResetEventResponse,\n PasswordResetResponse,\n} from '../interfaces';\n\nexport const deserializePasswordReset = (\n passwordReset: PasswordResetResponse,\n): PasswordReset => ({\n object: passwordReset.object,\n id: passwordReset.id,\n userId: passwordReset.user_id,\n email: passwordReset.email,\n passwordResetToken: passwordReset.password_reset_token,\n passwordResetUrl: passwordReset.password_reset_url,\n expiresAt: passwordReset.expires_at,\n createdAt: passwordReset.created_at,\n});\n\nexport const deserializePasswordResetEvent = (\n passwordReset: PasswordResetEventResponse,\n): PasswordResetEvent => ({\n object: passwordReset.object,\n id: passwordReset.id,\n userId: passwordReset.user_id,\n email: passwordReset.email,\n expiresAt: passwordReset.expires_at,\n createdAt: passwordReset.created_at,\n});\n"],"mappings":";;AAOA,MAAa,4BACX,mBACmB;CACnB,QAAQ,cAAc;CACtB,IAAI,cAAc;CAClB,QAAQ,cAAc;CACtB,OAAO,cAAc;CACrB,oBAAoB,cAAc;CAClC,kBAAkB,cAAc;CAChC,WAAW,cAAc;CACzB,WAAW,cAAc;CAC1B;AAED,MAAa,iCACX,mBACwB;CACxB,QAAQ,cAAc;CACtB,IAAI,cAAc;CAClB,QAAQ,cAAc;CACtB,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,WAAW,cAAc;CAC1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { i as PasswordResetResponse, n as PasswordResetEvent, r as PasswordResetEventResponse, t as PasswordReset } from "./password-reset.interface-ClJw8CpQ.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/user-management/serializers/password-reset.serializer.d.ts
|
|
4
|
+
declare const deserializePasswordReset: (passwordReset: PasswordResetResponse) => PasswordReset;
|
|
5
|
+
declare const deserializePasswordResetEvent: (passwordReset: PasswordResetEventResponse) => PasswordResetEvent;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { deserializePasswordResetEvent as n, deserializePasswordReset as t };
|
|
8
|
+
//# sourceMappingURL=password-reset.serializer-b_eJxueA.d.cts.map
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: 'MagicLink';
|
|
4
|
-
email: string;
|
|
5
|
-
redirectURI?: string;
|
|
6
|
-
state?: string;
|
|
7
|
-
connection?: string;
|
|
8
|
-
expiresIn?: number;
|
|
9
|
-
}
|
|
10
|
-
interface SerializedCreatePasswordlessSessionOptions {
|
|
11
|
-
type: 'MagicLink';
|
|
12
|
-
email: string;
|
|
13
|
-
redirect_uri?: string;
|
|
14
|
-
state?: string;
|
|
15
|
-
connection?: string;
|
|
16
|
-
expires_in?: number;
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { CreatePasswordlessSessionOptions, SerializedCreatePasswordlessSessionOptions };
|
|
20
|
-
//# sourceMappingURL=create-passwordless-session-options.interface.d.cts.map
|
|
1
|
+
import { n as SerializedCreatePasswordlessSessionOptions, t as CreatePasswordlessSessionOptions } from "../../create-passwordless-session-options.interface-DRRdook4.cjs";
|
|
2
|
+
export { CreatePasswordlessSessionOptions, SerializedCreatePasswordlessSessionOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { SendSessionResponse } from "
|
|
1
|
+
import { n as PasswordlessSessionResponse, t as PasswordlessSession } from "../../passwordless-session.interface-DNuCWNwX.cjs";
|
|
2
|
+
import { n as SerializedCreatePasswordlessSessionOptions, t as CreatePasswordlessSessionOptions } from "../../create-passwordless-session-options.interface-DRRdook4.cjs";
|
|
3
|
+
import { t as SendSessionResponse } from "../../send-session-response.interface-B5S6VASb.cjs";
|
|
4
4
|
export { CreatePasswordlessSessionOptions, PasswordlessSession, PasswordlessSessionResponse, SendSessionResponse, SerializedCreatePasswordlessSessionOptions };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
4
|
-
email: string;
|
|
5
|
-
expiresAt: Date;
|
|
6
|
-
link: string;
|
|
7
|
-
object: 'passwordless_session';
|
|
8
|
-
}
|
|
9
|
-
interface PasswordlessSessionResponse {
|
|
10
|
-
id: string;
|
|
11
|
-
email: string;
|
|
12
|
-
expires_at: Date;
|
|
13
|
-
link: string;
|
|
14
|
-
object: 'passwordless_session';
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { PasswordlessSession, PasswordlessSessionResponse };
|
|
18
|
-
//# sourceMappingURL=passwordless-session.interface.d.cts.map
|
|
1
|
+
import { n as PasswordlessSessionResponse, t as PasswordlessSession } from "../../passwordless-session.interface-DNuCWNwX.cjs";
|
|
2
|
+
export { PasswordlessSession, PasswordlessSessionResponse };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
message?: string;
|
|
4
|
-
success?: boolean;
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SendSessionResponse };
|
|
8
|
-
//# sourceMappingURL=send-session-response.interface.d.cts.map
|
|
1
|
+
import { t as SendSessionResponse } from "../../send-session-response.interface-B5S6VASb.cjs";
|
|
2
|
+
export { SendSessionResponse };
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_passwordless = require('../passwordless-DEThp5fE.cjs');
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var Passwordless = class {
|
|
5
|
-
constructor(workos) {
|
|
6
|
-
this.workos = workos;
|
|
7
|
-
}
|
|
8
|
-
async createSession({ redirectURI, expiresIn, ...options }) {
|
|
9
|
-
const { data } = await this.workos.post("/passwordless/sessions", {
|
|
10
|
-
...options,
|
|
11
|
-
redirect_uri: redirectURI,
|
|
12
|
-
expires_in: expiresIn
|
|
13
|
-
});
|
|
14
|
-
return require_passwordless_serializers_passwordless_session_serializer.deserializePasswordlessSession(data);
|
|
15
|
-
}
|
|
16
|
-
async sendSession(sessionId) {
|
|
17
|
-
const { data } = await this.workos.post(`/passwordless/sessions/${sessionId}/send`, {});
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.Passwordless = Passwordless;
|
|
24
|
-
//# sourceMappingURL=passwordless.cjs.map
|
|
3
|
+
exports.Passwordless = require_passwordless.Passwordless;
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { SendSessionResponse } from "./interfaces/send-session-response.interface.cjs";
|
|
4
|
-
import { WorkOS } from "../workos.cjs";
|
|
5
|
-
|
|
6
|
-
//#region src/passwordless/passwordless.d.ts
|
|
7
|
-
declare class Passwordless {
|
|
8
|
-
private readonly workos;
|
|
9
|
-
constructor(workos: WorkOS);
|
|
10
|
-
createSession({
|
|
11
|
-
redirectURI,
|
|
12
|
-
expiresIn,
|
|
13
|
-
...options
|
|
14
|
-
}: CreatePasswordlessSessionOptions): Promise<PasswordlessSession>;
|
|
15
|
-
sendSession(sessionId: string): Promise<SendSessionResponse>;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { Passwordless };
|
|
19
|
-
//# sourceMappingURL=passwordless.d.cts.map
|
|
1
|
+
import { x as Passwordless } from "../api-keys-mDyp4q6k.cjs";
|
|
2
|
+
export { Passwordless };
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
+
const require_passwordless_session_serializer = require('../../passwordless-session.serializer-CASCZ8yC.cjs');
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
const deserializePasswordlessSession = (passwordlessSession) => ({
|
|
4
|
-
id: passwordlessSession.id,
|
|
5
|
-
email: passwordlessSession.email,
|
|
6
|
-
expiresAt: passwordlessSession.expires_at,
|
|
7
|
-
link: passwordlessSession.link,
|
|
8
|
-
object: passwordlessSession.object
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.deserializePasswordlessSession = deserializePasswordlessSession;
|
|
13
|
-
//# sourceMappingURL=passwordless-session.serializer.cjs.map
|
|
3
|
+
exports.deserializePasswordlessSession = require_passwordless_session_serializer.deserializePasswordlessSession;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as PasswordlessSessionResponse, t as PasswordlessSession } from "../../passwordless-session.interface-DNuCWNwX.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/passwordless/serializers/passwordless-session.serializer.d.ts
|
|
4
4
|
declare const deserializePasswordlessSession: (passwordlessSession: PasswordlessSessionResponse) => PasswordlessSession;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_passwordless_session_serializer = require('./passwordless-session.serializer-CASCZ8yC.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/passwordless/passwordless.ts
|
|
4
|
+
var Passwordless = class {
|
|
5
|
+
constructor(workos) {
|
|
6
|
+
this.workos = workos;
|
|
7
|
+
}
|
|
8
|
+
async createSession({ redirectURI, expiresIn, ...options }) {
|
|
9
|
+
const { data } = await this.workos.post("/passwordless/sessions", {
|
|
10
|
+
...options,
|
|
11
|
+
redirect_uri: redirectURI,
|
|
12
|
+
expires_in: expiresIn
|
|
13
|
+
});
|
|
14
|
+
return require_passwordless_session_serializer.deserializePasswordlessSession(data);
|
|
15
|
+
}
|
|
16
|
+
async sendSession(sessionId) {
|
|
17
|
+
const { data } = await this.workos.post(`/passwordless/sessions/${sessionId}/send`, {});
|
|
18
|
+
return data;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
Object.defineProperty(exports, 'Passwordless', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return Passwordless;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=passwordless-DEThp5fE.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passwordless-DEThp5fE.cjs","names":["workos: WorkOS","deserializePasswordlessSession"],"sources":["../src/passwordless/passwordless.ts"],"sourcesContent":["import { WorkOS } from '../workos';\nimport {\n CreatePasswordlessSessionOptions,\n PasswordlessSession,\n PasswordlessSessionResponse,\n SendSessionResponse,\n SerializedCreatePasswordlessSessionOptions,\n} from './interfaces';\nimport { deserializePasswordlessSession } from './serializers/passwordless-session.serializer';\n\nexport class Passwordless {\n constructor(private readonly workos: WorkOS) {}\n\n async createSession({\n redirectURI,\n expiresIn,\n ...options\n }: CreatePasswordlessSessionOptions): Promise<PasswordlessSession> {\n const { data } = await this.workos.post<\n PasswordlessSessionResponse,\n SerializedCreatePasswordlessSessionOptions\n >('/passwordless/sessions', {\n ...options,\n redirect_uri: redirectURI,\n expires_in: expiresIn,\n });\n\n return deserializePasswordlessSession(data);\n }\n\n async sendSession(sessionId: string): Promise<SendSessionResponse> {\n const { data } = await this.workos.post(\n `/passwordless/sessions/${sessionId}/send`,\n {},\n );\n return data;\n }\n}\n"],"mappings":";;;AAUA,IAAa,eAAb,MAA0B;CACxB,YAAY,AAAiBA,QAAgB;EAAhB;;CAE7B,MAAM,cAAc,EAClB,aACA,WACA,GAAG,WAC8D;EACjE,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,KAGjC,0BAA0B;GAC1B,GAAG;GACH,cAAc;GACd,YAAY;GACb,CAAC;AAEF,SAAOC,uEAA+B,KAAK;;CAG7C,MAAM,YAAY,WAAiD;EACjE,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,KACjC,0BAA0B,UAAU,QACpC,EAAE,CACH;AACD,SAAO"}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/passwordless/interfaces/passwordless-session.interface.d.ts
|
|
2
|
+
interface PasswordlessSession {
|
|
3
|
+
id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
expiresAt: Date;
|
|
6
|
+
link: string;
|
|
7
|
+
object: 'passwordless_session';
|
|
8
|
+
}
|
|
9
|
+
interface PasswordlessSessionResponse {
|
|
10
|
+
id: string;
|
|
11
|
+
email: string;
|
|
12
|
+
expires_at: Date;
|
|
13
|
+
link: string;
|
|
14
|
+
object: 'passwordless_session';
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { PasswordlessSessionResponse as n, PasswordlessSession as t };
|
|
18
|
+
//# sourceMappingURL=passwordless-session.interface-DNuCWNwX.d.cts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/passwordless/serializers/passwordless-session.serializer.ts
|
|
3
|
+
const deserializePasswordlessSession = (passwordlessSession) => ({
|
|
4
|
+
id: passwordlessSession.id,
|
|
5
|
+
email: passwordlessSession.email,
|
|
6
|
+
expiresAt: passwordlessSession.expires_at,
|
|
7
|
+
link: passwordlessSession.link,
|
|
8
|
+
object: passwordlessSession.object
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
Object.defineProperty(exports, 'deserializePasswordlessSession', {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return deserializePasswordlessSession;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=passwordless-session.serializer-CASCZ8yC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passwordless-session.serializer-CASCZ8yC.cjs","names":[],"sources":["../src/passwordless/serializers/passwordless-session.serializer.ts"],"sourcesContent":["import {\n PasswordlessSession,\n PasswordlessSessionResponse,\n} from '../interfaces';\n\nexport const deserializePasswordlessSession = (\n passwordlessSession: PasswordlessSessionResponse,\n): PasswordlessSession => ({\n id: passwordlessSession.id,\n email: passwordlessSession.email,\n expiresAt: passwordlessSession.expires_at,\n link: passwordlessSession.link,\n object: passwordlessSession.object,\n});\n"],"mappings":";;AAKA,MAAa,kCACX,yBACyB;CACzB,IAAI,oBAAoB;CACxB,OAAO,oBAAoB;CAC3B,WAAW,oBAAoB;CAC/B,MAAM,oBAAoB;CAC1B,QAAQ,oBAAoB;CAC7B"}
|