@clossir-tech/ts-sdk 0.10.6 → 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 +69 -19
- 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-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 +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-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 +2 -2
- package/esm/funcs/o-auth-post-oauth-token.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 +6 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +6 -0
- 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-par.d.ts +10 -10
- package/esm/models/errors/post-oauth-par.js +5 -5
- package/esm/models/errors/post-oauth-revoke.d.ts +10 -10
- package/esm/models/errors/post-oauth-revoke.js +5 -5
- 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-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-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-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-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 +12 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +12 -0
- package/esm/models/operations/index.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-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 +2 -2
- package/esm/sdk/assets.d.ts.map +1 -1
- package/esm/sdk/assets.js +3 -3
- 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 +3 -3
- package/esm/sdk/o-auth.js +3 -3
- package/esm/sdk/organizations.d.ts +2 -2
- package/esm/sdk/organizations.d.ts.map +1 -1
- package/esm/sdk/organizations.js +3 -3
- 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-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 +1 -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-token.ts +9 -1
- 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/preflight-post-preflight-intents.ts +190 -0
- 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 +6 -0
- 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 +10 -10
- package/src/models/errors/post-oauth-revoke.ts +10 -10
- 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-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-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-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-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 +12 -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-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 +1 -3
- 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 +3 -3
- package/src/sdk/organizations.ts +1 -3
- 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
|
@@ -10,7 +10,7 @@ import * as M from "../lib/matchers.js";
|
|
|
10
10
|
import { compactMap } from "../lib/primitives.js";
|
|
11
11
|
import { safeParse } from "../lib/schemas.js";
|
|
12
12
|
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
-
import {
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
14
|
import { pathToFunc } from "../lib/url.js";
|
|
15
15
|
import {
|
|
16
16
|
ConnectionError,
|
|
@@ -31,11 +31,12 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Upload asset document
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Attach a compliance document to the asset. Provide the document URL and type.
|
|
34
|
+
* Attach a compliance document to the asset. Provide the document URL and type. Requires a user session with the admin or operator role; API keys receive 403.
|
|
35
|
+
*
|
|
36
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
35
37
|
*/
|
|
36
38
|
export function assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
|
|
37
39
|
client: ClossirCore,
|
|
38
|
-
security: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsSecurity,
|
|
39
40
|
orgId: string,
|
|
40
41
|
assetId: string,
|
|
41
42
|
body: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsRequestBody,
|
|
@@ -56,7 +57,6 @@ export function assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
|
|
|
56
57
|
> {
|
|
57
58
|
return new APIPromise($do(
|
|
58
59
|
client,
|
|
59
|
-
security,
|
|
60
60
|
orgId,
|
|
61
61
|
assetId,
|
|
62
62
|
body,
|
|
@@ -66,7 +66,6 @@ export function assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
|
|
|
66
66
|
|
|
67
67
|
async function $do(
|
|
68
68
|
client: ClossirCore,
|
|
69
|
-
security: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsSecurity,
|
|
70
69
|
orgId: string,
|
|
71
70
|
assetId: string,
|
|
72
71
|
body: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsRequestBody,
|
|
@@ -129,22 +128,9 @@ async function $do(
|
|
|
129
128
|
Accept: "application/json",
|
|
130
129
|
}));
|
|
131
130
|
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
fieldName: "Authorization",
|
|
136
|
-
type: "http:bearer",
|
|
137
|
-
value: security?.bearerAuth,
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
[
|
|
141
|
-
{
|
|
142
|
-
fieldName: "x-api-key",
|
|
143
|
-
type: "apiKey:header",
|
|
144
|
-
value: security?.apiKeyAuth,
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
);
|
|
131
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
132
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
133
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
148
134
|
|
|
149
135
|
const context = {
|
|
150
136
|
options: client._options,
|
|
@@ -154,7 +140,7 @@ async function $do(
|
|
|
154
140
|
|
|
155
141
|
resolvedSecurity: requestSecurity,
|
|
156
142
|
|
|
157
|
-
securitySource:
|
|
143
|
+
securitySource: client._options.bearerAuth,
|
|
158
144
|
retryConfig: options?.retries
|
|
159
145
|
|| client._options.retryConfig
|
|
160
146
|
|| { strategy: "none" },
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Create attestation (async)
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Queues an on-chain attestation via LayerZero (CQRS pattern). Creates a pending record and publishes a command to Kafka for the chain agents (evm-agent / solana-agent). Returns 202 Accepted immediately. Poll GET /attestations/:id to track completion. The claim_hash (<chainEid>_<walletAddress>) is used for deduplication — an active or pending attestation cannot be re-created.
|
|
34
|
+
* Queues an on-chain attestation via LayerZero (CQRS pattern). Creates a pending record and publishes a command to Kafka for the chain agents (evm-agent / solana-agent). Returns 202 Accepted immediately. Poll GET /attestations/:id to track completion. The claim_hash (<chainEid>_<walletAddress>) is used for deduplication — an active or pending attestation cannot be re-created. A caller without approved, unexpired KYC verification gets 403 kyc_required.
|
|
35
35
|
*
|
|
36
36
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
37
37
|
*/
|
|
@@ -164,7 +164,7 @@ async function $do(
|
|
|
164
164
|
>(
|
|
165
165
|
M.json(202, operations.PostAttestationsResponse$inboundSchema),
|
|
166
166
|
M.jsonErr(
|
|
167
|
-
[400, 401, 409, 428, 429],
|
|
167
|
+
[400, 401, 403, 409, 428, 429],
|
|
168
168
|
errors.ProblemDetailsError$inboundSchema,
|
|
169
169
|
{ ctype: "application/problem+json" },
|
|
170
170
|
),
|
|
@@ -164,7 +164,7 @@ async function $do(
|
|
|
164
164
|
M.jsonErr([400, 403, 422, 429], errors.ProblemDetailsError$inboundSchema, {
|
|
165
165
|
ctype: "application/problem+json",
|
|
166
166
|
}),
|
|
167
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
167
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
168
168
|
ctype: "application/problem+json",
|
|
169
169
|
}),
|
|
170
170
|
M.fail("4XX"),
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
errors.ProblemDetailsError$inboundSchema,
|
|
160
160
|
{ ctype: "application/problem+json" },
|
|
161
161
|
),
|
|
162
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
162
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
163
163
|
ctype: "application/problem+json",
|
|
164
164
|
}),
|
|
165
165
|
M.fail("4XX"),
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Refresh tokens
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Exchange a refresh token for new access and refresh tokens.
|
|
33
|
+
* Exchange a refresh token for new access and refresh tokens. 503 when the token or its user cannot be read (with Retry-After) or when rotation faults; on either the presented token is not consumed and can be re-presented.
|
|
34
34
|
*/
|
|
35
35
|
export function authPostAuthRefresh(
|
|
36
36
|
client: ClossirCore,
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* List bridge transactions
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Returns
|
|
34
|
+
* Returns bridge transactions of the organization's own assets (for a user token, assets owned by the organization or any of its sub-organizations; for an API key, exactly that organization). Row-level security limits the list to bridges the caller initiated themselves, so an API key receives none. Supports filtering by asset ID and status, with cursor-based pagination. Readable by admin, operator or compliance_officer in the organization; an API key needs `assets:read`.
|
|
35
35
|
*/
|
|
36
36
|
export function bridgeGetOrgsByOrgIdBridgeHistory(
|
|
37
37
|
client: ClossirCore,
|
|
@@ -210,7 +210,7 @@ async function $do(
|
|
|
210
210
|
errors.ProblemDetailsError$inboundSchema,
|
|
211
211
|
{ ctype: "application/problem+json" },
|
|
212
212
|
),
|
|
213
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
213
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
214
214
|
ctype: "application/problem+json",
|
|
215
215
|
}),
|
|
216
216
|
M.fail("4XX"),
|
|
@@ -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. 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.
|
|
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,
|
|
@@ -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 });
|
|
@@ -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,
|
|
@@ -42,7 +42,9 @@ export function oAuthPostOauthToken(
|
|
|
42
42
|
| errors.PostOauthTokenBadRequestError
|
|
43
43
|
| errors.PostOauthTokenUnauthorizedError
|
|
44
44
|
| errors.ProblemDetailsError
|
|
45
|
+
| errors.PostOauthTokenUpdateRequiredError
|
|
45
46
|
| errors.PostOauthTokenInternalServerError
|
|
47
|
+
| errors.PostOauthTokenServiceUnavailableError
|
|
46
48
|
| SDKError
|
|
47
49
|
| ResponseValidationError
|
|
48
50
|
| ConnectionError
|
|
@@ -71,7 +73,9 @@ async function $do(
|
|
|
71
73
|
| errors.PostOauthTokenBadRequestError
|
|
72
74
|
| errors.PostOauthTokenUnauthorizedError
|
|
73
75
|
| errors.ProblemDetailsError
|
|
76
|
+
| errors.PostOauthTokenUpdateRequiredError
|
|
74
77
|
| errors.PostOauthTokenInternalServerError
|
|
78
|
+
| errors.PostOauthTokenServiceUnavailableError
|
|
75
79
|
| SDKError
|
|
76
80
|
| ResponseValidationError
|
|
77
81
|
| ConnectionError
|
|
@@ -152,7 +156,9 @@ async function $do(
|
|
|
152
156
|
| errors.PostOauthTokenBadRequestError
|
|
153
157
|
| errors.PostOauthTokenUnauthorizedError
|
|
154
158
|
| errors.ProblemDetailsError
|
|
159
|
+
| errors.PostOauthTokenUpdateRequiredError
|
|
155
160
|
| errors.PostOauthTokenInternalServerError
|
|
161
|
+
| errors.PostOauthTokenServiceUnavailableError
|
|
156
162
|
| SDKError
|
|
157
163
|
| ResponseValidationError
|
|
158
164
|
| ConnectionError
|
|
@@ -168,7 +174,9 @@ async function $do(
|
|
|
168
174
|
M.jsonErr(413, errors.ProblemDetailsError$inboundSchema, {
|
|
169
175
|
ctype: "application/problem+json",
|
|
170
176
|
}),
|
|
177
|
+
M.jsonErr(426, errors.PostOauthTokenUpdateRequiredError$inboundSchema),
|
|
171
178
|
M.jsonErr(500, errors.PostOauthTokenInternalServerError$inboundSchema),
|
|
179
|
+
M.jsonErr(503, errors.PostOauthTokenServiceUnavailableError$inboundSchema),
|
|
172
180
|
M.fail("4XX"),
|
|
173
181
|
M.fail("5XX"),
|
|
174
182
|
)(response, req, { extraFields: responseFields });
|
|
@@ -10,7 +10,7 @@ import * as M from "../lib/matchers.js";
|
|
|
10
10
|
import { compactMap } from "../lib/primitives.js";
|
|
11
11
|
import { safeParse } from "../lib/schemas.js";
|
|
12
12
|
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
-
import {
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
14
|
import { pathToFunc } from "../lib/url.js";
|
|
15
15
|
import {
|
|
16
16
|
ConnectionError,
|
|
@@ -31,11 +31,12 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Move sub-organization
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Moves a sub-organization
|
|
34
|
+
* Moves a sub-organization, with its whole subtree, under a different parent in the same organization tree, in one transaction. The caller must be an active admin of the current parent (or an ancestor of it) and of the new parent (or an ancestor of it). User sessions only: API keys get 403. 400 circular_reference / root_not_movable; 404 sub_org_not_found / new_parent_not_found; 409 org_not_active, protected_org_in_subtree, scoped_api_key_in_subtree, hierarchy_too_deep, or conflict (another move in the same tree is in progress; retry); 429 rate limited. Moving to the current parent is a no-op that returns the unchanged organization.
|
|
35
|
+
*
|
|
36
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
35
37
|
*/
|
|
36
38
|
export function organizationsPutOrgsByOrgIdSubOrgsBySubOrgIdMove(
|
|
37
39
|
client: ClossirCore,
|
|
38
|
-
security: operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity,
|
|
39
40
|
orgId: string,
|
|
40
41
|
subOrgId: string,
|
|
41
42
|
body: operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveRequestBody,
|
|
@@ -56,7 +57,6 @@ export function organizationsPutOrgsByOrgIdSubOrgsBySubOrgIdMove(
|
|
|
56
57
|
> {
|
|
57
58
|
return new APIPromise($do(
|
|
58
59
|
client,
|
|
59
|
-
security,
|
|
60
60
|
orgId,
|
|
61
61
|
subOrgId,
|
|
62
62
|
body,
|
|
@@ -66,7 +66,6 @@ export function organizationsPutOrgsByOrgIdSubOrgsBySubOrgIdMove(
|
|
|
66
66
|
|
|
67
67
|
async function $do(
|
|
68
68
|
client: ClossirCore,
|
|
69
|
-
security: operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity,
|
|
70
69
|
orgId: string,
|
|
71
70
|
subOrgId: string,
|
|
72
71
|
body: operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveRequestBody,
|
|
@@ -126,22 +125,9 @@ async function $do(
|
|
|
126
125
|
Accept: "application/json",
|
|
127
126
|
}));
|
|
128
127
|
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
fieldName: "Authorization",
|
|
133
|
-
type: "http:bearer",
|
|
134
|
-
value: security?.bearerAuth,
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
[
|
|
138
|
-
{
|
|
139
|
-
fieldName: "x-api-key",
|
|
140
|
-
type: "apiKey:header",
|
|
141
|
-
value: security?.apiKeyAuth,
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
);
|
|
128
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
129
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
130
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
145
131
|
|
|
146
132
|
const context = {
|
|
147
133
|
options: client._options,
|
|
@@ -151,7 +137,7 @@ async function $do(
|
|
|
151
137
|
|
|
152
138
|
resolvedSecurity: requestSecurity,
|
|
153
139
|
|
|
154
|
-
securitySource:
|
|
140
|
+
securitySource: client._options.bearerAuth,
|
|
155
141
|
retryConfig: options?.retries
|
|
156
142
|
|| client._options.retryConfig
|
|
157
143
|
|| { strategy: "none" },
|
|
@@ -205,9 +191,11 @@ async function $do(
|
|
|
205
191
|
200,
|
|
206
192
|
operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveResponse$inboundSchema,
|
|
207
193
|
),
|
|
208
|
-
M.jsonErr(
|
|
209
|
-
|
|
210
|
-
|
|
194
|
+
M.jsonErr(
|
|
195
|
+
[400, 401, 403, 404, 409, 428, 429],
|
|
196
|
+
errors.ProblemDetailsError$inboundSchema,
|
|
197
|
+
{ ctype: "application/problem+json" },
|
|
198
|
+
),
|
|
211
199
|
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
212
200
|
ctype: "application/problem+json",
|
|
213
201
|
}),
|