@clossir-tech/ts-sdk 0.10.5 → 0.11.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/README.md +75 -24
- package/esm/funcs/approvals-get-approvals-by-approval-id-status.d.ts +20 -0
- package/esm/funcs/approvals-get-approvals-by-approval-id-status.d.ts.map +1 -0
- package/esm/funcs/approvals-get-approvals-by-approval-id-status.js +96 -0
- package/esm/funcs/approvals-get-approvals-by-approval-id-status.js.map +1 -0
- package/esm/funcs/approvals-get-approvals-by-approval-id.d.ts +20 -0
- package/esm/funcs/approvals-get-approvals-by-approval-id.d.ts.map +1 -0
- package/esm/funcs/approvals-get-approvals-by-approval-id.js +100 -0
- package/esm/funcs/approvals-get-approvals-by-approval-id.js.map +1 -0
- package/esm/funcs/approvals-post-approvals.d.ts +20 -0
- package/esm/funcs/approvals-post-approvals.d.ts.map +1 -0
- package/esm/funcs/approvals-post-approvals.js +90 -0
- package/esm/funcs/approvals-post-approvals.js.map +1 -0
- package/esm/funcs/assets-get-assets-by-asset-id.d.ts +2 -2
- package/esm/funcs/assets-get-assets-by-asset-id.js +3 -3
- package/esm/funcs/assets-get-assets-by-asset-id.js.map +1 -1
- package/esm/funcs/assets-get-assets.d.ts +2 -2
- package/esm/funcs/assets-get-assets.js +3 -3
- package/esm/funcs/assets-get-assets.js.map +1 -1
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.d.ts +1 -1
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +2 -4
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js +3 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +4 -2
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js +11 -19
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
- package/esm/funcs/attestations-post-attestations.d.ts +1 -1
- package/esm/funcs/attestations-post-attestations.js +2 -2
- package/esm/funcs/attestations-post-attestations.js.map +1 -1
- package/esm/funcs/auth-post-auth-accept-invite.js +1 -1
- package/esm/funcs/auth-post-auth-accept-invite.js.map +1 -1
- package/esm/funcs/auth-post-auth-login.js +1 -1
- package/esm/funcs/auth-post-auth-login.js.map +1 -1
- package/esm/funcs/auth-post-auth-refresh.d.ts +1 -1
- package/esm/funcs/auth-post-auth-refresh.js +1 -1
- package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.d.ts +1 -1
- package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.js +1 -1
- package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js +1 -1
- package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js.map +1 -1
- package/esm/funcs/eligibility-post-eligibility-check.d.ts +20 -0
- package/esm/funcs/eligibility-post-eligibility-check.d.ts.map +1 -0
- package/esm/funcs/eligibility-post-eligibility-check.js +90 -0
- package/esm/funcs/eligibility-post-eligibility-check.js.map +1 -0
- package/esm/funcs/health-get-health.d.ts +1 -1
- package/esm/funcs/health-get-health.js +1 -1
- package/esm/funcs/mfa-post-auth-mfa-verify.js +2 -2
- package/esm/funcs/mfa-post-auth-mfa-verify.js.map +1 -1
- package/esm/funcs/o-auth-get-oauth-authorize.d.ts +1 -1
- package/esm/funcs/o-auth-get-oauth-authorize.js +2 -1
- package/esm/funcs/o-auth-get-oauth-authorize.js.map +1 -1
- package/esm/funcs/o-auth-get-oauth-userinfo.d.ts +2 -2
- package/esm/funcs/o-auth-get-oauth-userinfo.d.ts.map +1 -1
- package/esm/funcs/o-auth-get-oauth-userinfo.js +2 -2
- package/esm/funcs/o-auth-get-oauth-userinfo.js.map +1 -1
- package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js +2 -0
- package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
- package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js +1 -1
- package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js.map +1 -1
- package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js +3 -1
- package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
- package/esm/funcs/o-auth-post-oauth-par.d.ts +18 -0
- package/esm/funcs/o-auth-post-oauth-par.d.ts.map +1 -0
- package/esm/funcs/{o-auth-post-oauth-authorize-callback.js → o-auth-post-oauth-par.js} +15 -11
- package/esm/funcs/o-auth-post-oauth-par.js.map +1 -0
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts +2 -2
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts.map +1 -1
- package/esm/funcs/o-auth-post-oauth-revoke.js +4 -2
- package/esm/funcs/o-auth-post-oauth-revoke.js.map +1 -1
- package/esm/funcs/o-auth-post-oauth-token.d.ts +2 -2
- package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
- package/esm/funcs/o-auth-post-oauth-token.js +4 -2
- package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-attestations.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-attestations.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-summary.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-summary.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js +4 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users.js +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users.js.map +1 -1
- package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +4 -2
- package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
- package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +12 -22
- package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
- package/esm/funcs/passport-get-login-passport-status.d.ts +18 -0
- package/esm/funcs/passport-get-login-passport-status.d.ts.map +1 -0
- package/esm/funcs/passport-get-login-passport-status.js +77 -0
- package/esm/funcs/passport-get-login-passport-status.js.map +1 -0
- package/esm/funcs/passport-get-passport-home.d.ts +17 -0
- package/esm/funcs/passport-get-passport-home.d.ts.map +1 -0
- package/esm/funcs/passport-get-passport-home.js +77 -0
- package/esm/funcs/passport-get-passport-home.js.map +1 -0
- package/esm/funcs/passport-get-passport-sign-in.d.ts +17 -0
- package/esm/funcs/passport-get-passport-sign-in.d.ts.map +1 -0
- package/esm/funcs/passport-get-passport-sign-in.js +75 -0
- package/esm/funcs/passport-get-passport-sign-in.js.map +1 -0
- package/esm/funcs/passport-post-login-passport-finish.d.ts +18 -0
- package/esm/funcs/passport-post-login-passport-finish.d.ts.map +1 -0
- package/esm/funcs/passport-post-login-passport-finish.js +89 -0
- package/esm/funcs/passport-post-login-passport-finish.js.map +1 -0
- package/esm/funcs/passport-post-passport-sign-in-decision.d.ts +18 -0
- package/esm/funcs/passport-post-passport-sign-in-decision.d.ts.map +1 -0
- package/esm/funcs/passport-post-passport-sign-in-decision.js +86 -0
- package/esm/funcs/passport-post-passport-sign-in-decision.js.map +1 -0
- package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts +20 -0
- package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts.map +1 -0
- package/esm/funcs/preflight-get-preflight-results-by-result-id.js +98 -0
- package/esm/funcs/preflight-get-preflight-results-by-result-id.js.map +1 -0
- package/esm/funcs/preflight-post-preflight-intents.d.ts +20 -0
- package/esm/funcs/preflight-post-preflight-intents.d.ts.map +1 -0
- package/esm/funcs/preflight-post-preflight-intents.js +90 -0
- package/esm/funcs/preflight-post-preflight-intents.js.map +1 -0
- package/esm/funcs/transfers-get-transfers.d.ts +1 -1
- package/esm/funcs/transfers-get-transfers.js +1 -1
- package/esm/funcs/travel-rule-post-travel-rule-records.d.ts +20 -0
- package/esm/funcs/travel-rule-post-travel-rule-records.d.ts.map +1 -0
- package/esm/funcs/travel-rule-post-travel-rule-records.js +90 -0
- package/esm/funcs/travel-rule-post-travel-rule-records.js.map +1 -0
- package/esm/funcs/ui-get-login.js +1 -0
- package/esm/funcs/ui-get-login.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/errors/get-approvals-by-approval-id.d.ts +41 -0
- package/esm/models/errors/get-approvals-by-approval-id.d.ts.map +1 -0
- package/esm/models/errors/get-approvals-by-approval-id.js +56 -0
- package/esm/models/errors/get-approvals-by-approval-id.js.map +1 -0
- package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
- package/esm/models/errors/get-oauth-authorize.js +3 -3
- package/esm/models/errors/get-oauth-userinfo.d.ts +152 -4
- package/esm/models/errors/get-oauth-userinfo.d.ts.map +1 -1
- package/esm/models/errors/get-oauth-userinfo.js +166 -2
- package/esm/models/errors/get-oauth-userinfo.js.map +1 -1
- package/esm/models/errors/get-passport-home.d.ts +96 -0
- package/esm/models/errors/get-passport-home.d.ts.map +1 -0
- package/esm/models/errors/get-passport-home.js +114 -0
- package/esm/models/errors/get-passport-home.js.map +1 -0
- package/esm/models/errors/get-passport-sign-in.d.ts +96 -0
- package/esm/models/errors/get-passport-sign-in.d.ts.map +1 -0
- package/esm/models/errors/get-passport-sign-in.js +114 -0
- package/esm/models/errors/get-passport-sign-in.js.map +1 -0
- package/esm/models/errors/index.d.ts +7 -1
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +7 -1
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/errors/o-auth-error-response.d.ts +52 -0
- package/esm/models/errors/o-auth-error-response.d.ts.map +1 -0
- package/esm/models/errors/o-auth-error-response.js +63 -0
- package/esm/models/errors/o-auth-error-response.js.map +1 -0
- package/esm/models/errors/post-eligibility-check.d.ts +58 -0
- package/esm/models/errors/post-eligibility-check.d.ts.map +1 -0
- package/esm/models/errors/post-eligibility-check.js +66 -0
- package/esm/models/errors/post-eligibility-check.js.map +1 -0
- package/esm/models/errors/{post-oauth-authorize-callback.d.ts → post-oauth-par.d.ts} +84 -29
- package/esm/models/errors/post-oauth-par.d.ts.map +1 -0
- package/esm/models/errors/{post-oauth-authorize-callback.js → post-oauth-par.js} +79 -23
- package/esm/models/errors/post-oauth-par.js.map +1 -0
- package/esm/models/errors/post-oauth-revoke.d.ts +15 -15
- package/esm/models/errors/post-oauth-revoke.d.ts.map +1 -1
- package/esm/models/errors/post-oauth-revoke.js +9 -9
- package/esm/models/errors/post-oauth-revoke.js.map +1 -1
- package/esm/models/errors/post-oauth-token.d.ts +99 -6
- package/esm/models/errors/post-oauth-token.d.ts.map +1 -1
- package/esm/models/errors/post-oauth-token.js +109 -3
- package/esm/models/errors/post-oauth-token.js.map +1 -1
- package/esm/models/errors/post-passport-sign-in-decision.d.ts +96 -0
- package/esm/models/errors/post-passport-sign-in-decision.d.ts.map +1 -0
- package/esm/models/errors/post-passport-sign-in-decision.js +115 -0
- package/esm/models/errors/post-passport-sign-in-decision.js.map +1 -0
- package/esm/models/errors/problem-details-error.d.ts +24 -0
- package/esm/models/errors/problem-details-error.d.ts.map +1 -1
- package/esm/models/errors/problem-details-error.js +21 -0
- package/esm/models/errors/problem-details-error.js.map +1 -1
- package/esm/models/operations/get-approvals-by-approval-id-status.d.ts +91 -0
- package/esm/models/operations/get-approvals-by-approval-id-status.d.ts.map +1 -0
- package/esm/models/operations/get-approvals-by-approval-id-status.js +60 -0
- package/esm/models/operations/get-approvals-by-approval-id-status.js.map +1 -0
- package/esm/models/operations/get-approvals-by-approval-id.d.ts +391 -0
- package/esm/models/operations/get-approvals-by-approval-id.d.ts.map +1 -0
- package/esm/models/operations/get-approvals-by-approval-id.js +299 -0
- package/esm/models/operations/get-approvals-by-approval-id.js.map +1 -0
- package/esm/models/operations/get-assets-by-asset-id.d.ts +53 -0
- package/esm/models/operations/get-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/get-assets-by-asset-id.js +35 -0
- package/esm/models/operations/get-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/get-assets.d.ts +55 -2
- package/esm/models/operations/get-assets.d.ts.map +1 -1
- package/esm/models/operations/get-assets.js +35 -0
- package/esm/models/operations/get-assets.js.map +1 -1
- package/esm/models/operations/get-health.d.ts +8 -0
- package/esm/models/operations/get-health.d.ts.map +1 -1
- package/esm/models/operations/get-health.js +2 -0
- package/esm/models/operations/get-health.js.map +1 -1
- package/esm/models/operations/get-login-passport-status.d.ts +42 -0
- package/esm/models/operations/get-login-passport-status.d.ts.map +1 -0
- package/esm/models/operations/get-login-passport-status.js +45 -0
- package/esm/models/operations/get-login-passport-status.js.map +1 -0
- package/esm/models/operations/get-login.d.ts +2 -0
- package/esm/models/operations/get-login.d.ts.map +1 -1
- package/esm/models/operations/get-login.js +1 -0
- package/esm/models/operations/get-login.js.map +1 -1
- package/esm/models/operations/get-oauth-authorize.d.ts +6 -1
- package/esm/models/operations/get-oauth-authorize.d.ts.map +1 -1
- package/esm/models/operations/get-oauth-authorize.js +2 -0
- package/esm/models/operations/get-oauth-authorize.js.map +1 -1
- package/esm/models/operations/get-oauth-userinfo.d.ts +48 -0
- package/esm/models/operations/get-oauth-userinfo.d.ts.map +1 -1
- package/esm/models/operations/get-oauth-userinfo.js +32 -0
- package/esm/models/operations/get-oauth-userinfo.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +17 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js +11 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts +17 -0
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.js +10 -0
- package/esm/models/operations/get-orgs-by-org-id-assets.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts +1 -0
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.js +8 -2
- package/esm/models/operations/get-orgs-by-org-id-issuer.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts +47 -0
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js +41 -0
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts +47 -0
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js +40 -0
- package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js.map +1 -1
- package/esm/models/operations/get-orgs-permission-scopes.d.ts +21 -1
- package/esm/models/operations/get-orgs-permission-scopes.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-permission-scopes.js +3 -1
- package/esm/models/operations/get-orgs-permission-scopes.js.map +1 -1
- package/esm/models/operations/get-passport-home.d.ts +9 -0
- package/esm/models/operations/get-passport-home.d.ts.map +1 -0
- package/esm/models/operations/get-passport-home.js +10 -0
- package/esm/models/operations/get-passport-home.js.map +1 -0
- package/esm/models/operations/get-passport-sign-in.d.ts +9 -0
- package/esm/models/operations/get-passport-sign-in.d.ts.map +1 -0
- package/esm/models/operations/get-passport-sign-in.js +10 -0
- package/esm/models/operations/get-passport-sign-in.js.map +1 -0
- package/esm/models/operations/get-preflight-results-by-result-id.d.ts +329 -0
- package/esm/models/operations/get-preflight-results-by-result-id.d.ts.map +1 -0
- package/esm/models/operations/get-preflight-results-by-result-id.js +280 -0
- package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -0
- package/esm/models/operations/index.d.ts +13 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +13 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts +18 -0
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js +10 -0
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/post-approvals.d.ts +114 -0
- package/esm/models/operations/post-approvals.d.ts.map +1 -0
- package/esm/models/operations/post-approvals.js +76 -0
- package/esm/models/operations/post-approvals.js.map +1 -0
- package/esm/models/operations/post-attestations.d.ts +24 -7
- package/esm/models/operations/post-attestations.d.ts.map +1 -1
- package/esm/models/operations/post-attestations.js +7 -1
- package/esm/models/operations/post-attestations.js.map +1 -1
- package/esm/models/operations/post-auth-verify-email.d.ts +10 -10
- package/esm/models/operations/post-auth-verify-email.d.ts.map +1 -1
- package/esm/models/operations/post-auth-verify-email.js +8 -8
- package/esm/models/operations/post-auth-verify-email.js.map +1 -1
- package/esm/models/operations/post-consent.d.ts +2 -0
- package/esm/models/operations/post-consent.d.ts.map +1 -1
- package/esm/models/operations/post-consent.js +2 -0
- package/esm/models/operations/post-consent.js.map +1 -1
- package/esm/models/operations/post-eligibility-check.d.ts +45 -0
- package/esm/models/operations/post-eligibility-check.d.ts.map +1 -0
- package/esm/models/operations/post-eligibility-check.js +43 -0
- package/esm/models/operations/post-eligibility-check.js.map +1 -0
- package/esm/models/operations/post-login-passport-finish.d.ts +24 -0
- package/esm/models/operations/post-login-passport-finish.d.ts.map +1 -0
- package/esm/models/operations/post-login-passport-finish.js +31 -0
- package/esm/models/operations/post-login-passport-finish.js.map +1 -0
- package/esm/models/operations/post-oauth-par.d.ts +98 -0
- package/esm/models/operations/post-oauth-par.d.ts.map +1 -0
- package/esm/models/operations/post-oauth-par.js +53 -0
- package/esm/models/operations/post-oauth-par.js.map +1 -0
- package/esm/models/operations/post-oauth-token.d.ts +22 -9
- package/esm/models/operations/post-oauth-token.d.ts.map +1 -1
- package/esm/models/operations/post-oauth-token.js +25 -6
- package/esm/models/operations/post-oauth-token.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts +4 -4
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js +5 -4
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +2 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +0 -12
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js +0 -8
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts +101 -0
- package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js +81 -0
- package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js.map +1 -1
- package/esm/models/operations/post-passport-sign-in-decision.d.ts +25 -0
- package/esm/models/operations/post-passport-sign-in-decision.d.ts.map +1 -0
- package/esm/models/operations/post-passport-sign-in-decision.js +27 -0
- package/esm/models/operations/post-passport-sign-in-decision.js.map +1 -0
- package/esm/models/operations/post-preflight-intents.d.ts +367 -0
- package/esm/models/operations/post-preflight-intents.d.ts.map +1 -0
- package/esm/models/operations/post-preflight-intents.js +299 -0
- package/esm/models/operations/post-preflight-intents.js.map +1 -0
- package/esm/models/operations/post-preflight.d.ts +8 -8
- package/esm/models/operations/post-preflight.d.ts.map +1 -1
- package/esm/models/operations/post-preflight.js +7 -7
- package/esm/models/operations/post-preflight.js.map +1 -1
- package/esm/models/operations/post-travel-rule-records.d.ts +27 -0
- package/esm/models/operations/post-travel-rule-records.d.ts.map +1 -0
- package/esm/models/operations/post-travel-rule-records.js +24 -0
- package/esm/models/operations/post-travel-rule-records.js.map +1 -0
- package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts +101 -0
- package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
- package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js +79 -0
- package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
- package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +0 -12
- package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
- package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +0 -8
- package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
- package/esm/sdk/approvals.d.ts +26 -0
- package/esm/sdk/approvals.d.ts.map +1 -0
- package/esm/sdk/approvals.js +38 -0
- package/esm/sdk/approvals.js.map +1 -0
- package/esm/sdk/assets.d.ts +7 -7
- package/esm/sdk/assets.d.ts.map +1 -1
- package/esm/sdk/assets.js +8 -8
- package/esm/sdk/assets.js.map +1 -1
- package/esm/sdk/attestations.d.ts +1 -1
- package/esm/sdk/attestations.js +1 -1
- package/esm/sdk/auth.d.ts +1 -1
- package/esm/sdk/auth.js +1 -1
- package/esm/sdk/bridge.d.ts +1 -1
- package/esm/sdk/bridge.js +1 -1
- package/esm/sdk/eligibility.d.ts +12 -0
- package/esm/sdk/eligibility.d.ts.map +1 -0
- package/esm/sdk/eligibility.js +18 -0
- package/esm/sdk/eligibility.js.map +1 -0
- package/esm/sdk/health.d.ts +1 -1
- package/esm/sdk/health.js +1 -1
- package/esm/sdk/o-auth.d.ts +7 -7
- package/esm/sdk/o-auth.d.ts.map +1 -1
- package/esm/sdk/o-auth.js +9 -9
- package/esm/sdk/o-auth.js.map +1 -1
- package/esm/sdk/organizations.d.ts +15 -6
- package/esm/sdk/organizations.d.ts.map +1 -1
- package/esm/sdk/organizations.js +16 -7
- package/esm/sdk/organizations.js.map +1 -1
- package/esm/sdk/passport.d.ts +40 -0
- package/esm/sdk/passport.d.ts.map +1 -0
- package/esm/sdk/passport.js +58 -0
- package/esm/sdk/passport.js.map +1 -0
- package/esm/sdk/preflight.d.ts +14 -0
- package/esm/sdk/preflight.d.ts.map +1 -1
- package/esm/sdk/preflight.js +20 -0
- package/esm/sdk/preflight.js.map +1 -1
- package/esm/sdk/sdk.d.ts +12 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +20 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/transfers.d.ts +1 -1
- package/esm/sdk/transfers.js +1 -1
- package/esm/sdk/travel-rule.d.ts +12 -0
- package/esm/sdk/travel-rule.d.ts.map +1 -0
- package/esm/sdk/travel-rule.js +18 -0
- package/esm/sdk/travel-rule.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/approvals-get-approvals-by-approval-id-status.ts +197 -0
- package/src/funcs/approvals-get-approvals-by-approval-id.ts +204 -0
- package/src/funcs/approvals-post-approvals.ts +189 -0
- package/src/funcs/assets-get-assets-by-asset-id.ts +3 -3
- package/src/funcs/assets-get-assets.ts +3 -3
- package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +6 -4
- package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.ts +3 -0
- package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.ts +8 -22
- package/src/funcs/attestations-post-attestations.ts +2 -2
- package/src/funcs/auth-post-auth-accept-invite.ts +1 -1
- package/src/funcs/auth-post-auth-login.ts +1 -1
- package/src/funcs/auth-post-auth-refresh.ts +1 -1
- package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
- package/src/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.ts +1 -1
- package/src/funcs/eligibility-post-eligibility-check.ts +191 -0
- package/src/funcs/health-get-health.ts +1 -1
- package/src/funcs/mfa-post-auth-mfa-verify.ts +2 -2
- package/src/funcs/o-auth-get-oauth-authorize.ts +2 -1
- package/src/funcs/o-auth-get-oauth-userinfo.ts +16 -1
- package/src/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.ts +3 -0
- package/src/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.ts +6 -1
- package/src/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.ts +4 -1
- package/src/funcs/o-auth-post-oauth-par.ts +191 -0
- package/src/funcs/o-auth-post-oauth-revoke.ts +11 -5
- package/src/funcs/o-auth-post-oauth-token.ts +15 -1
- package/src/funcs/organizations-get-orgs-by-org-id-attestations.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-audit-logs.ts +3 -0
- package/src/funcs/organizations-get-orgs-by-org-id-issuer.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-members.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-summary.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.ts +4 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users.ts +3 -0
- package/src/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +13 -25
- package/src/funcs/passport-get-login-passport-status.ts +158 -0
- package/src/funcs/passport-get-passport-home.ts +170 -0
- package/src/funcs/passport-get-passport-sign-in.ts +172 -0
- package/src/funcs/passport-post-login-passport-finish.ts +184 -0
- package/src/funcs/passport-post-passport-sign-in-decision.ts +201 -0
- package/src/funcs/preflight-get-preflight-results-by-result-id.ts +202 -0
- package/src/funcs/{o-auth-post-oauth-authorize-callback.ts → preflight-post-preflight-intents.ts} +39 -43
- package/src/funcs/transfers-get-transfers.ts +1 -1
- package/src/funcs/travel-rule-post-travel-rule-records.ts +190 -0
- package/src/funcs/ui-get-login.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/errors/get-approvals-by-approval-id.ts +83 -0
- package/src/models/errors/get-oauth-authorize.ts +6 -6
- package/src/models/errors/get-oauth-userinfo.ts +273 -4
- package/src/models/errors/get-passport-home.ts +182 -0
- package/src/models/errors/get-passport-sign-in.ts +182 -0
- package/src/models/errors/index.ts +7 -1
- package/src/models/errors/o-auth-error-response.ts +99 -0
- package/src/models/errors/post-eligibility-check.ts +103 -0
- package/src/models/errors/post-oauth-par.ts +493 -0
- package/src/models/errors/post-oauth-revoke.ts +40 -42
- package/src/models/errors/post-oauth-token.ts +180 -6
- package/src/models/errors/post-passport-sign-in-decision.ts +179 -0
- package/src/models/errors/problem-details-error.ts +30 -0
- package/src/models/operations/get-approvals-by-approval-id-status.ts +161 -0
- package/src/models/operations/get-approvals-by-approval-id.ts +735 -0
- package/src/models/operations/get-assets-by-asset-id.ts +95 -0
- package/src/models/operations/get-assets.ts +93 -2
- package/src/models/operations/get-health.ts +10 -0
- package/src/models/operations/get-login-passport-status.ts +91 -0
- package/src/models/operations/get-login.ts +3 -0
- package/src/models/operations/get-oauth-authorize.ts +8 -1
- package/src/models/operations/get-oauth-userinfo.ts +112 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +26 -0
- package/src/models/operations/get-orgs-by-org-id-assets.ts +25 -0
- package/src/models/operations/get-orgs-by-org-id-issuer.ts +14 -4
- package/src/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.ts +118 -0
- package/src/models/operations/get-orgs-by-org-id-oauth-clients.ts +113 -0
- package/src/models/operations/get-orgs-permission-scopes.ts +24 -2
- package/src/models/operations/get-passport-home.ts +16 -0
- package/src/models/operations/get-passport-sign-in.ts +16 -0
- package/src/models/operations/get-preflight-results-by-result-id.ts +653 -0
- package/src/models/operations/index.ts +13 -1
- package/src/models/operations/patch-orgs-by-org-id-assets-by-asset-id.ts +28 -0
- package/src/models/operations/post-approvals.ts +192 -0
- package/src/models/operations/post-attestations.ts +39 -8
- package/src/models/operations/post-auth-verify-email.ts +33 -19
- package/src/models/operations/post-consent.ts +4 -0
- package/src/models/operations/post-eligibility-check.ts +120 -0
- package/src/models/operations/post-login-passport-finish.ts +76 -0
- package/src/models/operations/post-oauth-par.ts +172 -0
- package/src/models/operations/post-oauth-token.ts +53 -14
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.ts +23 -11
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +4 -0
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.ts +0 -32
- package/src/models/operations/post-orgs-by-org-id-oauth-clients.ts +248 -0
- package/src/models/operations/post-passport-sign-in-decision.ts +67 -0
- package/src/models/operations/post-preflight-intents.ts +728 -0
- package/src/models/operations/post-preflight.ts +18 -15
- package/src/models/operations/post-travel-rule-records.ts +68 -0
- package/src/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.ts +263 -0
- package/src/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +0 -32
- package/src/sdk/approvals.ts +63 -0
- package/src/sdk/assets.ts +6 -8
- package/src/sdk/attestations.ts +1 -1
- package/src/sdk/auth.ts +1 -1
- package/src/sdk/bridge.ts +1 -1
- package/src/sdk/eligibility.ts +27 -0
- package/src/sdk/health.ts +1 -1
- package/src/sdk/o-auth.ts +11 -11
- package/src/sdk/organizations.ts +14 -7
- package/src/sdk/passport.ts +93 -0
- package/src/sdk/preflight.ts +36 -0
- package/src/sdk/sdk.ts +24 -0
- package/src/sdk/transfers.ts +1 -1
- package/src/sdk/travel-rule.ts +27 -0
- package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts +0 -18
- package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/funcs/o-auth-post-oauth-authorize-callback.js.map +0 -1
- package/esm/models/errors/post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/models/errors/post-oauth-authorize-callback.js.map +0 -1
- package/esm/models/operations/post-oauth-authorize-callback.d.ts +0 -50
- package/esm/models/operations/post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/models/operations/post-oauth-authorize-callback.js +0 -39
- package/esm/models/operations/post-oauth-authorize-callback.js.map +0 -1
- package/src/models/errors/post-oauth-authorize-callback.ts +0 -390
- package/src/models/operations/post-oauth-authorize-callback.ts +0 -113
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClossirCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKError } from "../models/errors/sdk-error.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check holder eligibility for target assets
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Evaluates whether the authenticated holder is eligible to subscribe to one or more target assets, returning a per-gate breakdown driven by the compliance engine. Accepts JWT callers and partner (DPoP-bound OAuth) callers with the clossir:eligibility scope. API-key callers receive 403. A partner call answers 503 temporarily_unavailable when MFA enforcement or the consent check cannot be read; MFA-gate outages carry Retry-After.
|
|
35
|
+
*
|
|
36
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
37
|
+
*/
|
|
38
|
+
export function eligibilityPostEligibilityCheck(
|
|
39
|
+
client: ClossirCore,
|
|
40
|
+
request: operations.PostEligibilityCheckRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<
|
|
43
|
+
Result<
|
|
44
|
+
operations.PostEligibilityCheckResponse,
|
|
45
|
+
| errors.ProblemDetailsError
|
|
46
|
+
| errors.OAuthErrorResponse
|
|
47
|
+
| errors.PostEligibilityCheckServiceUnavailableError
|
|
48
|
+
| SDKError
|
|
49
|
+
| ResponseValidationError
|
|
50
|
+
| ConnectionError
|
|
51
|
+
| RequestAbortedError
|
|
52
|
+
| RequestTimeoutError
|
|
53
|
+
| InvalidRequestError
|
|
54
|
+
| UnexpectedClientError
|
|
55
|
+
| SDKValidationError
|
|
56
|
+
>
|
|
57
|
+
> {
|
|
58
|
+
return new APIPromise($do(
|
|
59
|
+
client,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async function $do(
|
|
66
|
+
client: ClossirCore,
|
|
67
|
+
request: operations.PostEligibilityCheckRequest,
|
|
68
|
+
options?: RequestOptions,
|
|
69
|
+
): Promise<
|
|
70
|
+
[
|
|
71
|
+
Result<
|
|
72
|
+
operations.PostEligibilityCheckResponse,
|
|
73
|
+
| errors.ProblemDetailsError
|
|
74
|
+
| errors.OAuthErrorResponse
|
|
75
|
+
| errors.PostEligibilityCheckServiceUnavailableError
|
|
76
|
+
| SDKError
|
|
77
|
+
| ResponseValidationError
|
|
78
|
+
| ConnectionError
|
|
79
|
+
| RequestAbortedError
|
|
80
|
+
| RequestTimeoutError
|
|
81
|
+
| InvalidRequestError
|
|
82
|
+
| UnexpectedClientError
|
|
83
|
+
| SDKValidationError
|
|
84
|
+
>,
|
|
85
|
+
APICall,
|
|
86
|
+
]
|
|
87
|
+
> {
|
|
88
|
+
const parsed = safeParse(
|
|
89
|
+
request,
|
|
90
|
+
(value) =>
|
|
91
|
+
z.parse(operations.PostEligibilityCheckRequest$outboundSchema, value),
|
|
92
|
+
"Input validation failed",
|
|
93
|
+
);
|
|
94
|
+
if (!parsed.ok) {
|
|
95
|
+
return [parsed, { status: "invalid" }];
|
|
96
|
+
}
|
|
97
|
+
const payload = parsed.value;
|
|
98
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
99
|
+
|
|
100
|
+
const path = pathToFunc("/eligibility/check")();
|
|
101
|
+
|
|
102
|
+
const headers = new Headers(compactMap({
|
|
103
|
+
"Content-Type": "application/json",
|
|
104
|
+
Accept: "application/json",
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
108
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
109
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
110
|
+
|
|
111
|
+
const context = {
|
|
112
|
+
options: client._options,
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
|
+
operationID: "postEligibilityCheck",
|
|
115
|
+
oAuth2Scopes: null,
|
|
116
|
+
|
|
117
|
+
resolvedSecurity: requestSecurity,
|
|
118
|
+
|
|
119
|
+
securitySource: client._options.bearerAuth,
|
|
120
|
+
retryConfig: options?.retries
|
|
121
|
+
|| client._options.retryConfig
|
|
122
|
+
|| { strategy: "none" },
|
|
123
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const requestRes = client._createRequest(context, {
|
|
127
|
+
security: requestSecurity,
|
|
128
|
+
method: "POST",
|
|
129
|
+
baseURL: options?.serverURL,
|
|
130
|
+
path: path,
|
|
131
|
+
headers: headers,
|
|
132
|
+
body: body,
|
|
133
|
+
userAgent: client._options.userAgent,
|
|
134
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
|
+
}, options);
|
|
136
|
+
if (!requestRes.ok) {
|
|
137
|
+
return [requestRes, { status: "invalid" }];
|
|
138
|
+
}
|
|
139
|
+
const req = requestRes.value;
|
|
140
|
+
|
|
141
|
+
const doResult = await client._do(req, {
|
|
142
|
+
context,
|
|
143
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
144
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req }];
|
|
150
|
+
}
|
|
151
|
+
const response = doResult.value;
|
|
152
|
+
|
|
153
|
+
const responseFields = {
|
|
154
|
+
HttpMeta: { Response: response, Request: req },
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
operations.PostEligibilityCheckResponse,
|
|
159
|
+
| errors.ProblemDetailsError
|
|
160
|
+
| errors.OAuthErrorResponse
|
|
161
|
+
| errors.PostEligibilityCheckServiceUnavailableError
|
|
162
|
+
| SDKError
|
|
163
|
+
| ResponseValidationError
|
|
164
|
+
| ConnectionError
|
|
165
|
+
| RequestAbortedError
|
|
166
|
+
| RequestTimeoutError
|
|
167
|
+
| InvalidRequestError
|
|
168
|
+
| UnexpectedClientError
|
|
169
|
+
| SDKValidationError
|
|
170
|
+
>(
|
|
171
|
+
M.json(200, operations.PostEligibilityCheckResponse$inboundSchema),
|
|
172
|
+
M.jsonErr(401, errors.ProblemDetailsError$inboundSchema, {
|
|
173
|
+
ctype: "application/problem+json",
|
|
174
|
+
}),
|
|
175
|
+
M.jsonErr(401, errors.OAuthErrorResponse$inboundSchema),
|
|
176
|
+
M.jsonErr([400, 403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
177
|
+
ctype: "application/problem+json",
|
|
178
|
+
}),
|
|
179
|
+
M.jsonErr(
|
|
180
|
+
503,
|
|
181
|
+
errors.PostEligibilityCheckServiceUnavailableError$inboundSchema,
|
|
182
|
+
),
|
|
183
|
+
M.fail("4XX"),
|
|
184
|
+
M.fail("5XX"),
|
|
185
|
+
)(response, req, { extraFields: responseFields });
|
|
186
|
+
if (!result.ok) {
|
|
187
|
+
return [result, { status: "complete", request: req, response }];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return [result, { status: "complete", request: req, response }];
|
|
191
|
+
}
|
|
@@ -26,7 +26,7 @@ import { Result } from "../types/fp.js";
|
|
|
26
26
|
* Health check
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
* Returns the service health status, version, and issuer URL
|
|
29
|
+
* Returns the service health status, version, build commit, and issuer URL
|
|
30
30
|
*/
|
|
31
31
|
export function healthGetHealth(
|
|
32
32
|
client: ClossirCore,
|
|
@@ -155,10 +155,10 @@ async function $do(
|
|
|
155
155
|
| SDKValidationError
|
|
156
156
|
>(
|
|
157
157
|
M.json(200, operations.PostAuthMfaVerifyResponse$inboundSchema),
|
|
158
|
-
M.jsonErr([400, 401, 429], errors.ProblemDetailsError$inboundSchema, {
|
|
158
|
+
M.jsonErr([400, 401, 423, 429], errors.ProblemDetailsError$inboundSchema, {
|
|
159
159
|
ctype: "application/problem+json",
|
|
160
160
|
}),
|
|
161
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
161
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
162
162
|
ctype: "application/problem+json",
|
|
163
163
|
}),
|
|
164
164
|
M.fail("4XX"),
|
|
@@ -31,7 +31,7 @@ import * as types$ from "../types/primitives.js";
|
|
|
31
31
|
* OAuth2 Authorization
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Initiate OAuth2 authorization code flow. Redirects to login page for user authentication.
|
|
34
|
+
* Initiate OAuth2 authorization code flow. Redirects to login page for user authentication. Either pass the authorization parameters in the query, or pass client_id and a request_uri from POST /oauth/par (RFC 9126); clients registered to require PAR must use the latter. A bad, expired, reused or foreign request_uri is a 400 invalid_request_uri. A browser request (Accept: text/html) with an unknown client or an unregistered redirect_uri gets a 400 HTML page instead of the JSON error; nothing is redirected.
|
|
35
35
|
*/
|
|
36
36
|
export function oAuthGetOauthAuthorize(
|
|
37
37
|
client: ClossirCore,
|
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
"code_challenge_method": payload.code_challenge_method,
|
|
104
104
|
"nonce": payload.nonce,
|
|
105
105
|
"redirect_uri": payload.redirect_uri,
|
|
106
|
+
"request_uri": payload.request_uri,
|
|
106
107
|
"response_type": payload.response_type,
|
|
107
108
|
"scope": payload.scope,
|
|
108
109
|
"state": payload.state,
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* OIDC UserInfo
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
* Get user claims based on granted scopes. Standard OIDC UserInfo endpoint.
|
|
31
|
+
* Get user claims based on granted scopes. Standard OIDC UserInfo endpoint. The access token is accepted only in the Authorization header (Bearer, or DPoP); access_token in the query string or a form body answers 400 invalid_request, also next to a valid header (RFC 6750 §2: exactly one method). A token issued to a Clossir Passport extension client additionally requires X-Clossir-Passport-Version: 426 update_required when missing, malformed or below the minimum; 503 temporarily_unavailable when the version policy has never loaded. A DPoP-bound access token (token_type DPoP) must be sent as Authorization: DPoP with a DPoP proof over the token (RFC 9449); presenting it as Bearer, or a proof by another key, answers 401 with a WWW-Authenticate: DPoP challenge, and 401 use_dpop_nonce carries the DPoP-Nonce to sign. When MFA enforcement cannot be evaluated, or the token's user cannot be read, the answer is 503 temporarily_unavailable with Retry-After and no WWW-Authenticate challenge: the token was not judged invalid.
|
|
32
32
|
*/
|
|
33
33
|
export function oAuthGetOauthUserinfo(
|
|
34
34
|
client: ClossirCore,
|
|
@@ -36,8 +36,11 @@ export function oAuthGetOauthUserinfo(
|
|
|
36
36
|
): APIPromise<
|
|
37
37
|
Result<
|
|
38
38
|
operations.GetOauthUserinfoResponse,
|
|
39
|
+
| errors.GetOauthUserinfoBadRequestError
|
|
39
40
|
| errors.GetOauthUserinfoUnauthorizedError
|
|
41
|
+
| errors.GetOauthUserinfoUpdateRequiredError
|
|
40
42
|
| errors.GetOauthUserinfoInternalServerError
|
|
43
|
+
| errors.GetOauthUserinfoServiceUnavailableError
|
|
41
44
|
| SDKError
|
|
42
45
|
| ResponseValidationError
|
|
43
46
|
| ConnectionError
|
|
@@ -61,8 +64,11 @@ async function $do(
|
|
|
61
64
|
[
|
|
62
65
|
Result<
|
|
63
66
|
operations.GetOauthUserinfoResponse,
|
|
67
|
+
| errors.GetOauthUserinfoBadRequestError
|
|
64
68
|
| errors.GetOauthUserinfoUnauthorizedError
|
|
69
|
+
| errors.GetOauthUserinfoUpdateRequiredError
|
|
65
70
|
| errors.GetOauthUserinfoInternalServerError
|
|
71
|
+
| errors.GetOauthUserinfoServiceUnavailableError
|
|
66
72
|
| SDKError
|
|
67
73
|
| ResponseValidationError
|
|
68
74
|
| ConnectionError
|
|
@@ -132,8 +138,11 @@ async function $do(
|
|
|
132
138
|
|
|
133
139
|
const [result] = await M.match<
|
|
134
140
|
operations.GetOauthUserinfoResponse,
|
|
141
|
+
| errors.GetOauthUserinfoBadRequestError
|
|
135
142
|
| errors.GetOauthUserinfoUnauthorizedError
|
|
143
|
+
| errors.GetOauthUserinfoUpdateRequiredError
|
|
136
144
|
| errors.GetOauthUserinfoInternalServerError
|
|
145
|
+
| errors.GetOauthUserinfoServiceUnavailableError
|
|
137
146
|
| SDKError
|
|
138
147
|
| ResponseValidationError
|
|
139
148
|
| ConnectionError
|
|
@@ -144,8 +153,14 @@ async function $do(
|
|
|
144
153
|
| SDKValidationError
|
|
145
154
|
>(
|
|
146
155
|
M.json(200, operations.GetOauthUserinfoResponse$inboundSchema),
|
|
156
|
+
M.jsonErr(400, errors.GetOauthUserinfoBadRequestError$inboundSchema),
|
|
147
157
|
M.jsonErr(401, errors.GetOauthUserinfoUnauthorizedError$inboundSchema),
|
|
158
|
+
M.jsonErr(426, errors.GetOauthUserinfoUpdateRequiredError$inboundSchema),
|
|
148
159
|
M.jsonErr(500, errors.GetOauthUserinfoInternalServerError$inboundSchema),
|
|
160
|
+
M.jsonErr(
|
|
161
|
+
503,
|
|
162
|
+
errors.GetOauthUserinfoServiceUnavailableError$inboundSchema,
|
|
163
|
+
),
|
|
149
164
|
M.fail("4XX"),
|
|
150
165
|
M.fail("5XX"),
|
|
151
166
|
)(response, req, { extraFields: responseFields });
|
|
@@ -185,6 +185,9 @@ async function $do(
|
|
|
185
185
|
M.jsonErr([401, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
186
186
|
ctype: "application/problem+json",
|
|
187
187
|
}),
|
|
188
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
189
|
+
ctype: "application/problem+json",
|
|
190
|
+
}),
|
|
188
191
|
M.fail("4XX"),
|
|
189
192
|
M.fail("5XX"),
|
|
190
193
|
)(response, req, { extraFields: responseFields });
|
|
@@ -175,7 +175,12 @@ async function $do(
|
|
|
175
175
|
| SDKValidationError
|
|
176
176
|
>(
|
|
177
177
|
M.json(201, operations.PostOrgsByOrgIdOauthClientsResponse$inboundSchema),
|
|
178
|
-
M.jsonErr(
|
|
178
|
+
M.jsonErr(
|
|
179
|
+
[400, 401, 403, 409, 428],
|
|
180
|
+
errors.ProblemDetailsError$inboundSchema,
|
|
181
|
+
{ ctype: "application/problem+json" },
|
|
182
|
+
),
|
|
183
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
179
184
|
ctype: "application/problem+json",
|
|
180
185
|
}),
|
|
181
186
|
M.fail("4XX"),
|
|
@@ -187,10 +187,13 @@ async function $do(
|
|
|
187
187
|
operations.PutOrgsByOrgIdOauthClientsByClientIdResponse$inboundSchema,
|
|
188
188
|
),
|
|
189
189
|
M.jsonErr(
|
|
190
|
-
[400, 401, 403, 404, 428],
|
|
190
|
+
[400, 401, 403, 404, 409, 428],
|
|
191
191
|
errors.ProblemDetailsError$inboundSchema,
|
|
192
192
|
{ ctype: "application/problem+json" },
|
|
193
193
|
),
|
|
194
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
195
|
+
ctype: "application/problem+json",
|
|
196
|
+
}),
|
|
194
197
|
M.fail("4XX"),
|
|
195
198
|
M.fail("5XX"),
|
|
196
199
|
)(response, req, { extraFields: responseFields });
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClossirCore } from "../core.js";
|
|
7
|
+
import { encodeBodyForm } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/http-client-errors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdk-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Pushed authorization request (RFC 9126)
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Push the authorization request parameters over an authenticated back channel (client_secret_basic, client_secret_post, or client_id alone for public clients). Form-encoded body, at most 16 KiB. Returns a single-use request_uri valid for 60 seconds; start the authorization with GET /oauth/authorize?client_id=…&request_uri=…. Clients registered to require PAR can start an authorization only this way. prompt, max_age and acr_values are accepted and stored with the request; they are not yet enforced.
|
|
34
|
+
*/
|
|
35
|
+
export function oAuthPostOauthPar(
|
|
36
|
+
client: ClossirCore,
|
|
37
|
+
request: operations.PostOauthParRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
operations.PostOauthParResponse,
|
|
42
|
+
| errors.PostOauthParBadRequestError
|
|
43
|
+
| errors.PostOauthParUnauthorizedError
|
|
44
|
+
| errors.ProblemDetailsError
|
|
45
|
+
| errors.PostOauthParTooManyRequestsError
|
|
46
|
+
| errors.PostOauthParInternalServerError
|
|
47
|
+
| errors.PostOauthParServiceUnavailableError
|
|
48
|
+
| SDKError
|
|
49
|
+
| ResponseValidationError
|
|
50
|
+
| ConnectionError
|
|
51
|
+
| RequestAbortedError
|
|
52
|
+
| RequestTimeoutError
|
|
53
|
+
| InvalidRequestError
|
|
54
|
+
| UnexpectedClientError
|
|
55
|
+
| SDKValidationError
|
|
56
|
+
>
|
|
57
|
+
> {
|
|
58
|
+
return new APIPromise($do(
|
|
59
|
+
client,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async function $do(
|
|
66
|
+
client: ClossirCore,
|
|
67
|
+
request: operations.PostOauthParRequest,
|
|
68
|
+
options?: RequestOptions,
|
|
69
|
+
): Promise<
|
|
70
|
+
[
|
|
71
|
+
Result<
|
|
72
|
+
operations.PostOauthParResponse,
|
|
73
|
+
| errors.PostOauthParBadRequestError
|
|
74
|
+
| errors.PostOauthParUnauthorizedError
|
|
75
|
+
| errors.ProblemDetailsError
|
|
76
|
+
| errors.PostOauthParTooManyRequestsError
|
|
77
|
+
| errors.PostOauthParInternalServerError
|
|
78
|
+
| errors.PostOauthParServiceUnavailableError
|
|
79
|
+
| SDKError
|
|
80
|
+
| ResponseValidationError
|
|
81
|
+
| ConnectionError
|
|
82
|
+
| RequestAbortedError
|
|
83
|
+
| RequestTimeoutError
|
|
84
|
+
| InvalidRequestError
|
|
85
|
+
| UnexpectedClientError
|
|
86
|
+
| SDKValidationError
|
|
87
|
+
>,
|
|
88
|
+
APICall,
|
|
89
|
+
]
|
|
90
|
+
> {
|
|
91
|
+
const parsed = safeParse(
|
|
92
|
+
request,
|
|
93
|
+
(value) => z.parse(operations.PostOauthParRequest$outboundSchema, value),
|
|
94
|
+
"Input validation failed",
|
|
95
|
+
);
|
|
96
|
+
if (!parsed.ok) {
|
|
97
|
+
return [parsed, { status: "invalid" }];
|
|
98
|
+
}
|
|
99
|
+
const payload = parsed.value;
|
|
100
|
+
|
|
101
|
+
const body = Object.entries(payload || {}).map(([k, v]) => {
|
|
102
|
+
return encodeBodyForm(k, v, { charEncoding: "percent" });
|
|
103
|
+
}).join("&");
|
|
104
|
+
|
|
105
|
+
const path = pathToFunc("/oauth/par")();
|
|
106
|
+
|
|
107
|
+
const headers = new Headers(compactMap({
|
|
108
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
109
|
+
Accept: "application/json",
|
|
110
|
+
}));
|
|
111
|
+
|
|
112
|
+
const context = {
|
|
113
|
+
options: client._options,
|
|
114
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
+
operationID: "postOauthPar",
|
|
116
|
+
oAuth2Scopes: null,
|
|
117
|
+
|
|
118
|
+
resolvedSecurity: null,
|
|
119
|
+
|
|
120
|
+
securitySource: null,
|
|
121
|
+
retryConfig: options?.retries
|
|
122
|
+
|| client._options.retryConfig
|
|
123
|
+
|| { strategy: "none" },
|
|
124
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const requestRes = client._createRequest(context, {
|
|
128
|
+
method: "POST",
|
|
129
|
+
baseURL: options?.serverURL,
|
|
130
|
+
path: path,
|
|
131
|
+
headers: headers,
|
|
132
|
+
body: body,
|
|
133
|
+
userAgent: client._options.userAgent,
|
|
134
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
|
+
}, options);
|
|
136
|
+
if (!requestRes.ok) {
|
|
137
|
+
return [requestRes, { status: "invalid" }];
|
|
138
|
+
}
|
|
139
|
+
const req = requestRes.value;
|
|
140
|
+
|
|
141
|
+
const doResult = await client._do(req, {
|
|
142
|
+
context,
|
|
143
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
144
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req }];
|
|
150
|
+
}
|
|
151
|
+
const response = doResult.value;
|
|
152
|
+
|
|
153
|
+
const responseFields = {
|
|
154
|
+
HttpMeta: { Response: response, Request: req },
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
operations.PostOauthParResponse,
|
|
159
|
+
| errors.PostOauthParBadRequestError
|
|
160
|
+
| errors.PostOauthParUnauthorizedError
|
|
161
|
+
| errors.ProblemDetailsError
|
|
162
|
+
| errors.PostOauthParTooManyRequestsError
|
|
163
|
+
| errors.PostOauthParInternalServerError
|
|
164
|
+
| errors.PostOauthParServiceUnavailableError
|
|
165
|
+
| SDKError
|
|
166
|
+
| ResponseValidationError
|
|
167
|
+
| ConnectionError
|
|
168
|
+
| RequestAbortedError
|
|
169
|
+
| RequestTimeoutError
|
|
170
|
+
| InvalidRequestError
|
|
171
|
+
| UnexpectedClientError
|
|
172
|
+
| SDKValidationError
|
|
173
|
+
>(
|
|
174
|
+
M.json(201, operations.PostOauthParResponse$inboundSchema),
|
|
175
|
+
M.jsonErr(400, errors.PostOauthParBadRequestError$inboundSchema),
|
|
176
|
+
M.jsonErr(401, errors.PostOauthParUnauthorizedError$inboundSchema),
|
|
177
|
+
M.jsonErr(413, errors.ProblemDetailsError$inboundSchema, {
|
|
178
|
+
ctype: "application/problem+json",
|
|
179
|
+
}),
|
|
180
|
+
M.jsonErr(429, errors.PostOauthParTooManyRequestsError$inboundSchema),
|
|
181
|
+
M.jsonErr(500, errors.PostOauthParInternalServerError$inboundSchema),
|
|
182
|
+
M.jsonErr(503, errors.PostOauthParServiceUnavailableError$inboundSchema),
|
|
183
|
+
M.fail("4XX"),
|
|
184
|
+
M.fail("5XX"),
|
|
185
|
+
)(response, req, { extraFields: responseFields });
|
|
186
|
+
if (!result.ok) {
|
|
187
|
+
return [result, { status: "complete", request: req, response }];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return [result, { status: "complete", request: req, response }];
|
|
191
|
+
}
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Revoke token
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Revoke an access or refresh token. Requires client authentication (client_secret_basic, client_secret_post, or client_id for public clients). A
|
|
33
|
+
* Revoke an access or refresh token. Requires client authentication (client_secret_basic, client_secret_post, or client_id for public clients). A token is revoked only for the client it was issued to; first-party session tokens are revoked via /auth/logout, not here. Unknown tokens, and tokens of another client, return 200 per RFC 7009 §2.2 and nothing is revoked; 503 temporarily_unavailable (retryable) when the revocation could not be recorded.
|
|
34
34
|
*/
|
|
35
35
|
export function oAuthPostOauthRevoke(
|
|
36
36
|
client: ClossirCore,
|
|
@@ -41,9 +41,10 @@ export function oAuthPostOauthRevoke(
|
|
|
41
41
|
operations.PostOauthRevokeResponse,
|
|
42
42
|
| errors.PostOauthRevokeBadRequestError
|
|
43
43
|
| errors.PostOauthRevokeUnauthorizedError
|
|
44
|
+
| errors.ProblemDetailsError
|
|
44
45
|
| errors.PostOauthRevokeTooManyRequestsError
|
|
45
46
|
| errors.PostOauthRevokeInternalServerError
|
|
46
|
-
| errors.
|
|
47
|
+
| errors.PostOauthRevokeServiceUnavailableError
|
|
47
48
|
| SDKError
|
|
48
49
|
| ResponseValidationError
|
|
49
50
|
| ConnectionError
|
|
@@ -71,9 +72,10 @@ async function $do(
|
|
|
71
72
|
operations.PostOauthRevokeResponse,
|
|
72
73
|
| errors.PostOauthRevokeBadRequestError
|
|
73
74
|
| errors.PostOauthRevokeUnauthorizedError
|
|
75
|
+
| errors.ProblemDetailsError
|
|
74
76
|
| errors.PostOauthRevokeTooManyRequestsError
|
|
75
77
|
| errors.PostOauthRevokeInternalServerError
|
|
76
|
-
| errors.
|
|
78
|
+
| errors.PostOauthRevokeServiceUnavailableError
|
|
77
79
|
| SDKError
|
|
78
80
|
| ResponseValidationError
|
|
79
81
|
| ConnectionError
|
|
@@ -153,9 +155,10 @@ async function $do(
|
|
|
153
155
|
operations.PostOauthRevokeResponse,
|
|
154
156
|
| errors.PostOauthRevokeBadRequestError
|
|
155
157
|
| errors.PostOauthRevokeUnauthorizedError
|
|
158
|
+
| errors.ProblemDetailsError
|
|
156
159
|
| errors.PostOauthRevokeTooManyRequestsError
|
|
157
160
|
| errors.PostOauthRevokeInternalServerError
|
|
158
|
-
| errors.
|
|
161
|
+
| errors.PostOauthRevokeServiceUnavailableError
|
|
159
162
|
| SDKError
|
|
160
163
|
| ResponseValidationError
|
|
161
164
|
| ConnectionError
|
|
@@ -168,9 +171,12 @@ async function $do(
|
|
|
168
171
|
M.json(200, operations.PostOauthRevokeResponse$inboundSchema),
|
|
169
172
|
M.jsonErr(400, errors.PostOauthRevokeBadRequestError$inboundSchema),
|
|
170
173
|
M.jsonErr(401, errors.PostOauthRevokeUnauthorizedError$inboundSchema),
|
|
174
|
+
M.jsonErr(413, errors.ProblemDetailsError$inboundSchema, {
|
|
175
|
+
ctype: "application/problem+json",
|
|
176
|
+
}),
|
|
171
177
|
M.jsonErr(429, errors.PostOauthRevokeTooManyRequestsError$inboundSchema),
|
|
172
178
|
M.jsonErr(500, errors.PostOauthRevokeInternalServerError$inboundSchema),
|
|
173
|
-
M.jsonErr(503, errors.
|
|
179
|
+
M.jsonErr(503, errors.PostOauthRevokeServiceUnavailableError$inboundSchema),
|
|
174
180
|
M.fail("4XX"),
|
|
175
181
|
M.fail("5XX"),
|
|
176
182
|
)(response, req, { extraFields: responseFields });
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Token exchange
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Exchange authorization code for tokens or refresh existing tokens.
|
|
33
|
+
* Exchange authorization code for tokens or refresh existing tokens. Clossir Passport extension clients must send X-Clossir-Passport-Version (Chrome manifest version format); a missing, malformed or below-minimum version answers 426 update_required (minimum_version only on below-minimum) and nothing is consumed; 503 temporarily_unavailable when the version policy has never loaded. DPoP (RFC 9449): a DPoP header carrying an ES256 proof binds the issued access token (cnf.jkt) and, for a public client, the refresh token to the proof key, and token_type is DPoP; a client registered to require DPoP must send one. A proof without the server nonce answers 400 use_dpop_nonce with a DPoP-Nonce header; an invalid or replayed proof answers 400 invalid_dpop_proof; nothing is consumed on either. On the refresh_token grant, when MFA enforcement cannot be evaluated or the token or its user cannot be read, the answer is 503 temporarily_unavailable with Retry-After, never invalid_grant; the refresh token is neither rotated nor revoked and can be re-presented. On the authorization_code grant the same faults answer 503 temporarily_unavailable without Retry-After: the code is already consumed, so the client must restart authorization.
|
|
34
34
|
*/
|
|
35
35
|
export function oAuthPostOauthToken(
|
|
36
36
|
client: ClossirCore,
|
|
@@ -41,7 +41,10 @@ export function oAuthPostOauthToken(
|
|
|
41
41
|
operations.PostOauthTokenResponse,
|
|
42
42
|
| errors.PostOauthTokenBadRequestError
|
|
43
43
|
| errors.PostOauthTokenUnauthorizedError
|
|
44
|
+
| errors.ProblemDetailsError
|
|
45
|
+
| errors.PostOauthTokenUpdateRequiredError
|
|
44
46
|
| errors.PostOauthTokenInternalServerError
|
|
47
|
+
| errors.PostOauthTokenServiceUnavailableError
|
|
45
48
|
| SDKError
|
|
46
49
|
| ResponseValidationError
|
|
47
50
|
| ConnectionError
|
|
@@ -69,7 +72,10 @@ async function $do(
|
|
|
69
72
|
operations.PostOauthTokenResponse,
|
|
70
73
|
| errors.PostOauthTokenBadRequestError
|
|
71
74
|
| errors.PostOauthTokenUnauthorizedError
|
|
75
|
+
| errors.ProblemDetailsError
|
|
76
|
+
| errors.PostOauthTokenUpdateRequiredError
|
|
72
77
|
| errors.PostOauthTokenInternalServerError
|
|
78
|
+
| errors.PostOauthTokenServiceUnavailableError
|
|
73
79
|
| SDKError
|
|
74
80
|
| ResponseValidationError
|
|
75
81
|
| ConnectionError
|
|
@@ -149,7 +155,10 @@ async function $do(
|
|
|
149
155
|
operations.PostOauthTokenResponse,
|
|
150
156
|
| errors.PostOauthTokenBadRequestError
|
|
151
157
|
| errors.PostOauthTokenUnauthorizedError
|
|
158
|
+
| errors.ProblemDetailsError
|
|
159
|
+
| errors.PostOauthTokenUpdateRequiredError
|
|
152
160
|
| errors.PostOauthTokenInternalServerError
|
|
161
|
+
| errors.PostOauthTokenServiceUnavailableError
|
|
153
162
|
| SDKError
|
|
154
163
|
| ResponseValidationError
|
|
155
164
|
| ConnectionError
|
|
@@ -162,7 +171,12 @@ async function $do(
|
|
|
162
171
|
M.json(200, operations.PostOauthTokenResponse$inboundSchema),
|
|
163
172
|
M.jsonErr(400, errors.PostOauthTokenBadRequestError$inboundSchema),
|
|
164
173
|
M.jsonErr(401, errors.PostOauthTokenUnauthorizedError$inboundSchema),
|
|
174
|
+
M.jsonErr(413, errors.ProblemDetailsError$inboundSchema, {
|
|
175
|
+
ctype: "application/problem+json",
|
|
176
|
+
}),
|
|
177
|
+
M.jsonErr(426, errors.PostOauthTokenUpdateRequiredError$inboundSchema),
|
|
165
178
|
M.jsonErr(500, errors.PostOauthTokenInternalServerError$inboundSchema),
|
|
179
|
+
M.jsonErr(503, errors.PostOauthTokenServiceUnavailableError$inboundSchema),
|
|
166
180
|
M.fail("4XX"),
|
|
167
181
|
M.fail("5XX"),
|
|
168
182
|
)(response, req, { extraFields: responseFields });
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* List attestations for org members
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Returns all attestations for members of this organization, with pagination. Includes user email/display_name for each attestation.
|
|
34
|
+
* Returns all attestations for members of this organization, with pagination. Includes user email/display_name for each attestation. Readable by admin, operator or compliance_officer in the organization; an API key needs `attestations:read`. Operators and API keys may receive reduced user detail (null user fields or empty lists) where database row-level security does not admit them.
|
|
35
35
|
*/
|
|
36
36
|
export function organizationsGetOrgsByOrgIdAttestations(
|
|
37
37
|
client: ClossirCore,
|
|
@@ -29,6 +29,9 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* List org audit logs
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Returns the organization's audit log, newest first, with each actor's email where readable. Readable by admin, operator or compliance_officer in the organization; an API key needs `audit:read`. Operators and API keys may receive reduced user detail (null user fields or empty lists) where database row-level security does not admit them.
|
|
32
35
|
*/
|
|
33
36
|
export function organizationsGetOrgsByOrgIdAuditLogs(
|
|
34
37
|
client: ClossirCore,
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Get issuer status for organization
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Returns the issuer registration status and details for this organization.
|
|
34
|
+
* Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
|
|
35
35
|
*/
|
|
36
36
|
export function organizationsGetOrgsByOrgIdIssuer(
|
|
37
37
|
client: ClossirCore,
|