@clossir-tech/ts-sdk 0.10.6 → 0.11.1
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 +79 -19
- package/esm/funcs/accounts-get-accounts-cash-assets.d.ts +20 -0
- package/esm/funcs/accounts-get-accounts-cash-assets.d.ts.map +1 -0
- package/esm/funcs/accounts-get-accounts-cash-assets.js +77 -0
- package/esm/funcs/accounts-get-accounts-cash-assets.js.map +1 -0
- package/esm/funcs/accounts-get-accounts-movable-wallets.d.ts +20 -0
- package/esm/funcs/accounts-get-accounts-movable-wallets.d.ts.map +1 -0
- package/esm/funcs/accounts-get-accounts-movable-wallets.js +94 -0
- package/esm/funcs/accounts-get-accounts-movable-wallets.js.map +1 -0
- 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-by-approval-id-approve.d.ts +20 -0
- package/esm/funcs/approvals-post-approvals-by-approval-id-approve.d.ts.map +1 -0
- package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js +100 -0
- package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js.map +1 -0
- package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts +20 -0
- package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts.map +1 -0
- package/esm/funcs/approvals-post-approvals-by-approval-id-reject.js +100 -0
- package/esm/funcs/approvals-post-approvals-by-approval-id-reject.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-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 +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-deploy.js +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.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/assets-post-orgs-by-org-id-assets.d.ts +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets.js +1 -1
- package/esm/funcs/attestations-delete-attestations-by-id.d.ts +1 -1
- package/esm/funcs/attestations-delete-attestations-by-id.js +2 -2
- package/esm/funcs/attestations-delete-attestations-by-id.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/commands-get-commands-by-command-id.d.ts +1 -1
- package/esm/funcs/commands-get-commands-by-command-id.js +1 -1
- package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -1
- package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -2
- package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
- package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js +2 -0
- package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js.map +1 -1
- package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.js +2 -0
- package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.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/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js +3 -1
- package/esm/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js.map +1 -1
- package/esm/funcs/health-get-health.d.ts +1 -1
- package/esm/funcs/health-get-health.js +1 -1
- package/esm/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.js +2 -0
- package/esm/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.js.map +1 -1
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js +1 -1
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js.map +1 -1
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js +3 -1
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js.map +1 -1
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js +1 -1
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js.map +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/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js +2 -0
- package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js.map +1 -1
- package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.js +2 -0
- package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.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-get-orgs-by-org-id-server-wallet.js +2 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-server-wallet.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +3 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js.map +1 -1
- package/esm/funcs/organizations-put-orgs-by-org-id-compliance.d.ts +1 -1
- package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js +2 -4
- package/esm/funcs/organizations-put-orgs-by-org-id-compliance.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/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js +3 -1
- package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js.map +1 -1
- package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js +3 -1
- package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js.map +1 -1
- package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.js +3 -1
- package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.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 +8 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +8 -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-approvals-by-approval-id-approve.d.ts +41 -0
- package/esm/models/errors/post-approvals-by-approval-id-approve.d.ts.map +1 -0
- package/esm/models/errors/post-approvals-by-approval-id-approve.js +52 -0
- package/esm/models/errors/post-approvals-by-approval-id-approve.js.map +1 -0
- package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts +41 -0
- package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts.map +1 -0
- package/esm/models/errors/post-approvals-by-approval-id-reject.js +53 -0
- package/esm/models/errors/post-approvals-by-approval-id-reject.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-accounts-cash-assets.d.ts +44 -0
- package/esm/models/operations/get-accounts-cash-assets.d.ts.map +1 -0
- package/esm/models/operations/get-accounts-cash-assets.js +30 -0
- package/esm/models/operations/get-accounts-cash-assets.js.map +1 -0
- package/esm/models/operations/get-accounts-movable-wallets.d.ts +104 -0
- package/esm/models/operations/get-accounts-movable-wallets.d.ts.map +1 -0
- package/esm/models/operations/get-accounts-movable-wallets.js +75 -0
- package/esm/models/operations/get-accounts-movable-wallets.js.map +1 -0
- 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-commands-by-command-id.d.ts +105 -0
- package/esm/models/operations/get-commands-by-command-id.d.ts.map +1 -1
- package/esm/models/operations/get-commands-by-command-id.js +119 -0
- package/esm/models/operations/get-commands-by-command-id.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-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 +354 -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 +291 -0
- package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -0
- package/esm/models/operations/index.d.ts +16 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +16 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/post-accounts-wallets-sync.d.ts +3 -1
- package/esm/models/operations/post-accounts-wallets-sync.d.ts.map +1 -1
- package/esm/models/operations/post-accounts-wallets-sync.js.map +1 -1
- package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts +53 -0
- package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts.map +1 -0
- package/esm/models/operations/post-approvals-by-approval-id-approve.js +41 -0
- package/esm/models/operations/post-approvals-by-approval-id-approve.js.map +1 -0
- package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts +105 -0
- package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts.map +1 -0
- package/esm/models/operations/post-approvals-by-approval-id-reject.js +71 -0
- package/esm/models/operations/post-approvals-by-approval-id-reject.js.map +1 -0
- 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-assets-by-asset-id-markets-by-market-id-orders.d.ts +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 +392 -0
- package/esm/models/operations/post-preflight-intents.d.ts.map +1 -0
- package/esm/models/operations/post-preflight-intents.js +310 -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/accounts.d.ts +14 -0
- package/esm/sdk/accounts.d.ts.map +1 -1
- package/esm/sdk/accounts.js +20 -0
- package/esm/sdk/accounts.js.map +1 -1
- package/esm/sdk/approvals.d.ts +40 -0
- package/esm/sdk/approvals.d.ts.map +1 -0
- package/esm/sdk/approvals.js +58 -0
- package/esm/sdk/approvals.js.map +1 -0
- package/esm/sdk/assets.d.ts +4 -4
- package/esm/sdk/assets.d.ts.map +1 -1
- package/esm/sdk/assets.js +5 -5
- package/esm/sdk/assets.js.map +1 -1
- package/esm/sdk/attestations.d.ts +2 -2
- package/esm/sdk/attestations.js +2 -2
- 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/commands.d.ts +1 -1
- package/esm/sdk/commands.js +1 -1
- package/esm/sdk/compliance.d.ts +1 -1
- package/esm/sdk/compliance.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 +3 -3
- package/esm/sdk/organizations.d.ts.map +1 -1
- package/esm/sdk/organizations.js +4 -4
- 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/accounts-get-accounts-cash-assets.ts +157 -0
- package/src/funcs/accounts-get-accounts-movable-wallets.ts +193 -0
- 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-by-approval-id-approve.ts +217 -0
- package/src/funcs/approvals-post-approvals-by-approval-id-reject.ts +217 -0
- package/src/funcs/approvals-post-approvals.ts +189 -0
- package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +1 -1
- 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-deploy.ts +1 -1
- package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.ts +8 -22
- package/src/funcs/assets-post-orgs-by-org-id-assets.ts +1 -1
- package/src/funcs/attestations-delete-attestations-by-id.ts +2 -2
- package/src/funcs/attestations-post-attestations.ts +3 -3
- 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/commands-get-commands-by-command-id.ts +1 -1
- package/src/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -2
- package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.ts +3 -0
- package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.ts +3 -0
- package/src/funcs/eligibility-post-eligibility-check.ts +191 -0
- package/src/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.ts +3 -0
- package/src/funcs/health-get-health.ts +1 -1
- package/src/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.ts +3 -0
- package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.ts +1 -1
- package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts +3 -0
- package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.ts +1 -1
- package/src/funcs/mfa-post-auth-mfa-verify.ts +2 -2
- package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.ts +3 -0
- package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.ts +3 -0
- 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-get-orgs-by-org-id-server-wallet.ts +3 -0
- package/src/funcs/organizations-post-orgs-by-org-id-issuer-register.ts +1 -1
- package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +3 -0
- package/src/funcs/organizations-post-orgs-by-org-id-server-wallet.ts +1 -1
- package/src/funcs/organizations-put-orgs-by-org-id-compliance.ts +6 -4
- 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/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.ts +3 -0
- package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.ts +3 -0
- package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.ts +3 -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 +8 -0
- package/src/models/errors/o-auth-error-response.ts +99 -0
- package/src/models/errors/post-approvals-by-approval-id-approve.ts +85 -0
- package/src/models/errors/post-approvals-by-approval-id-reject.ts +85 -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-accounts-cash-assets.ts +89 -0
- package/src/models/operations/get-accounts-movable-wallets.ts +240 -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-commands-by-command-id.ts +267 -0
- package/src/models/operations/get-health.ts +10 -0
- package/src/models/operations/get-login-passport-status.ts +97 -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 +704 -0
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/post-accounts-wallets-sync.ts +3 -1
- package/src/models/operations/post-approvals-by-approval-id-approve.ts +134 -0
- package/src/models/operations/post-approvals-by-approval-id-reject.ts +207 -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 +123 -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-assets-by-asset-id-markets-by-market-id-orders.ts +1 -1
- 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 +775 -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/accounts.ts +34 -0
- package/src/sdk/approvals.ts +103 -0
- package/src/sdk/assets.ts +3 -5
- package/src/sdk/attestations.ts +2 -2
- package/src/sdk/auth.ts +1 -1
- package/src/sdk/bridge.ts +1 -1
- package/src/sdk/commands.ts +1 -1
- package/src/sdk/compliance.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 +2 -4
- 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
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { approvalsGetApprovalsByApprovalIdStatus } from "../funcs/approvals-get-approvals-by-approval-id-status.js";
|
|
6
|
+
import { approvalsGetApprovalsByApprovalId } from "../funcs/approvals-get-approvals-by-approval-id.js";
|
|
7
|
+
import { approvalsPostApprovalsByApprovalIdApprove } from "../funcs/approvals-post-approvals-by-approval-id-approve.js";
|
|
8
|
+
import { approvalsPostApprovalsByApprovalIdReject } from "../funcs/approvals-post-approvals-by-approval-id-reject.js";
|
|
9
|
+
import { approvalsPostApprovals } from "../funcs/approvals-post-approvals.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
|
|
14
|
+
export class Approvals extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Request the user's approval for a preflight intent
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Requests an approval, by session or by passkey, for a transfer intent the caller submitted, whose newest preflight result is an unexpired signed pass. Answers 201 with the approval (status requested, 900 s TTL). Requesting decides nothing: deciding needs a designated approver and a fresh step-up, whatever the method. Refuses anything the approver's detail view could not render (400 invalid_argument). An intent that is missing or not the caller's is 409 intent_mismatch. Session JWT only: API keys are 403 actor_required, partner tokens 403 partner_scope_denied. The credential is checked before the body: an unauthenticated request is 401 whatever it sent. A body over 4096 bytes is 413 payload_too_large. Synchronous 201 DB write (CQRS exception). No Kafka.
|
|
20
|
+
*/
|
|
21
|
+
async postApprovals(
|
|
22
|
+
request: operations.PostApprovalsRequest,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<operations.PostApprovalsResponse> {
|
|
25
|
+
return unwrapAsync(approvalsPostApprovals(
|
|
26
|
+
this,
|
|
27
|
+
request,
|
|
28
|
+
options,
|
|
29
|
+
));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Read an approval as its designated approver
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* What the designated approver is approving: the approval, the decoded transfer, the server-built call display, the canonical intent pre-image and the preflight result. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; session JWTs, API keys and partner tokens answer 401. A caller who is not the designated approver gets the same 404 approval_not_found as an unknown id.
|
|
37
|
+
*/
|
|
38
|
+
async getApprovalsByApprovalId(
|
|
39
|
+
approvalId: string,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): Promise<operations.GetApprovalsByApprovalIdResponse> {
|
|
42
|
+
return unwrapAsync(approvalsGetApprovalsByApprovalId(
|
|
43
|
+
this,
|
|
44
|
+
approvalId,
|
|
45
|
+
options,
|
|
46
|
+
));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Read the status of an approval you requested or may decide
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* The approval summary, for the session user who requested it or who is a designated approver of its organization. The status is one of requested, approved, consumed, rejected, expired or withdrawn; an open approval past its expiry reads as expired. Session JWT only: API keys are 403 actor_required, and partner and Passport tokens are 401. Any other caller, and an unknown or malformed id, gets one 404 approval_not_found.
|
|
54
|
+
*/
|
|
55
|
+
async getApprovalsByApprovalIdStatus(
|
|
56
|
+
approvalId: string,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<operations.GetApprovalsByApprovalIdStatusResponse> {
|
|
59
|
+
return unwrapAsync(approvalsGetApprovalsByApprovalIdStatus(
|
|
60
|
+
this,
|
|
61
|
+
approvalId,
|
|
62
|
+
options,
|
|
63
|
+
));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Approve an approval as its designated approver
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* Consumes the approval and its intent and queues the transfer command in one transaction, then publishes it. Answers 202 {approvalId, status, commandId} as soon as the transaction commits, whether or not the publish succeeded: the body has no published flag, and GET /commands/:commandId is the outcome source. Body: {stepUpChallengeId?} (strict; empty is {}). A verified step-up challenge bound to this approval and this approver is required (409 stepup_required otherwise). A repeat is 409 approval_consumed. 503 approval_contention carries Retry-After and nothing committed; 500 approval_outcome_unknown means the approval may have been consumed: do not retry, read the approval. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
|
|
71
|
+
*/
|
|
72
|
+
async postApprovalsByApprovalIdApprove(
|
|
73
|
+
approvalId: string,
|
|
74
|
+
body?: operations.PostApprovalsByApprovalIdApproveRequestBody | undefined,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<operations.PostApprovalsByApprovalIdApproveResponse> {
|
|
77
|
+
return unwrapAsync(approvalsPostApprovalsByApprovalIdApprove(
|
|
78
|
+
this,
|
|
79
|
+
approvalId,
|
|
80
|
+
body,
|
|
81
|
+
options,
|
|
82
|
+
));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Reject an approval as its designated approver
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Declines a requested approval; its intent can no longer be executed through it. Synchronous 200 with the approval (status rejected). No Kafka. Body: {} (strict; empty is {}). A consumed approval is 409 approval_consumed, a rejected or withdrawn one 409 illegal_transition, an expired one 409 approval_expired. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
|
|
90
|
+
*/
|
|
91
|
+
async postApprovalsByApprovalIdReject(
|
|
92
|
+
approvalId: string,
|
|
93
|
+
body?: operations.PostApprovalsByApprovalIdRejectRequestBody | undefined,
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): Promise<operations.PostApprovalsByApprovalIdRejectResponse> {
|
|
96
|
+
return unwrapAsync(approvalsPostApprovalsByApprovalIdReject(
|
|
97
|
+
this,
|
|
98
|
+
approvalId,
|
|
99
|
+
body,
|
|
100
|
+
options,
|
|
101
|
+
));
|
|
102
|
+
}
|
|
103
|
+
}
|
package/src/sdk/assets.ts
CHANGED
|
@@ -50,7 +50,7 @@ export class Assets extends ClientSDK {
|
|
|
50
50
|
* Create a new asset
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals.
|
|
53
|
+
* Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed.
|
|
54
54
|
*/
|
|
55
55
|
async postOrgsByOrgIdAssets(
|
|
56
56
|
security: operations.PostOrgsByOrgIdAssetsSecurity,
|
|
@@ -92,7 +92,7 @@ export class Assets extends ClientSDK {
|
|
|
92
92
|
* Update asset
|
|
93
93
|
*
|
|
94
94
|
* @remarks
|
|
95
|
-
* Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
|
|
95
|
+
* Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
|
|
96
96
|
*/
|
|
97
97
|
async patchOrgsByOrgIdAssetsByAssetId(
|
|
98
98
|
security: operations.PatchOrgsByOrgIdAssetsByAssetIdSecurity,
|
|
@@ -157,10 +157,9 @@ export class Assets extends ClientSDK {
|
|
|
157
157
|
* Upload asset document
|
|
158
158
|
*
|
|
159
159
|
* @remarks
|
|
160
|
-
* Attach a compliance document to the asset. Provide the document URL and type.
|
|
160
|
+
* 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.
|
|
161
161
|
*/
|
|
162
162
|
async postOrgsByOrgIdAssetsByAssetIdDocuments(
|
|
163
|
-
security: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsSecurity,
|
|
164
163
|
orgId: string,
|
|
165
164
|
assetId: string,
|
|
166
165
|
body: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsRequestBody,
|
|
@@ -168,7 +167,6 @@ export class Assets extends ClientSDK {
|
|
|
168
167
|
): Promise<operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsResponse> {
|
|
169
168
|
return unwrapAsync(assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
|
|
170
169
|
this,
|
|
171
|
-
security,
|
|
172
170
|
orgId,
|
|
173
171
|
assetId,
|
|
174
172
|
body,
|
package/src/sdk/attestations.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class Attestations extends ClientSDK {
|
|
|
33
33
|
* Create attestation (async)
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* 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.
|
|
36
|
+
* 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.
|
|
37
37
|
*/
|
|
38
38
|
async postAttestations(
|
|
39
39
|
request: operations.PostAttestationsRequest,
|
|
@@ -67,7 +67,7 @@ export class Attestations extends ClientSDK {
|
|
|
67
67
|
* Revoke attestation (async)
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted
|
|
70
|
+
* Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted. Poll GET /attestations/:id to track the revocation status. 503 with Retry-After: the signing organisation could not be read and nothing was written; retry after that many seconds. 503 without Retry-After: the revocation is recorded but its command was not confirmed sent; do not retry (a retry answers 400).
|
|
71
71
|
*/
|
|
72
72
|
async deleteAttestationsById(
|
|
73
73
|
id: string,
|
package/src/sdk/auth.ts
CHANGED
|
@@ -59,7 +59,7 @@ export class Auth extends ClientSDK {
|
|
|
59
59
|
* Refresh tokens
|
|
60
60
|
*
|
|
61
61
|
* @remarks
|
|
62
|
-
* Exchange a refresh token for new access and refresh tokens.
|
|
62
|
+
* 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.
|
|
63
63
|
*/
|
|
64
64
|
async postAuthRefresh(
|
|
65
65
|
request: operations.PostAuthRefreshRequest,
|
package/src/sdk/bridge.ts
CHANGED
|
@@ -62,7 +62,7 @@ export class Bridge extends ClientSDK {
|
|
|
62
62
|
* List bridge transactions
|
|
63
63
|
*
|
|
64
64
|
* @remarks
|
|
65
|
-
* Returns
|
|
65
|
+
* 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`.
|
|
66
66
|
*/
|
|
67
67
|
async getOrgsByOrgIdBridgeHistory(
|
|
68
68
|
security: operations.GetOrgsByOrgIdBridgeHistorySecurity,
|
package/src/sdk/commands.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class Commands extends ClientSDK {
|
|
|
12
12
|
* Get command lifecycle
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source")
|
|
15
|
+
* Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source"). For a final, whole cross-chain transfer to a tracked dstChainEid, delivery reports the destination leg: state is pending | delivered | needs_attention | undeliverable. delivered = the destination credit booked from a finalized block for the same guid, quantity and recipient; dstTxHash is set if and only if state is delivered. delivered can read pending again if the destination cursor is reset, so a client that treats delivered as final must keep the first delivered answer. delivery is null for every other command, including an untracked destination. unconfirmed is a non-terminal flag (no_broadcast_seen | dropped | stuck_unmined) and is null once the command is terminal. partial = final with another tx of the command reverted or failed.
|
|
16
16
|
*/
|
|
17
17
|
async getCommandsByCommandId(
|
|
18
18
|
commandId: string,
|
package/src/sdk/compliance.ts
CHANGED
|
@@ -38,7 +38,7 @@ export class Compliance extends ClientSDK {
|
|
|
38
38
|
* Update asset compliance policy
|
|
39
39
|
*
|
|
40
40
|
* @remarks
|
|
41
|
-
* Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart.
|
|
41
|
+
* Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. On an edit the local policy update is committed in every one of them, including publish_failed. A body with only chain_eid publishes the stored policy, writes nothing and answers updated: false. The caller must also have access to the organization that owns the asset. A blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
|
|
42
42
|
*/
|
|
43
43
|
async postOrgsByOrgIdAssetsByAssetIdCompliancePolicy(
|
|
44
44
|
security: operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicySecurity,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { eligibilityPostEligibilityCheck } from "../funcs/eligibility-post-eligibility-check.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Eligibility extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Check holder eligibility for target assets
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
async postEligibilityCheck(
|
|
18
|
+
request: operations.PostEligibilityCheckRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.PostEligibilityCheckResponse> {
|
|
21
|
+
return unwrapAsync(eligibilityPostEligibilityCheck(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/sdk/health.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class Health extends ClientSDK {
|
|
|
13
13
|
* Health check
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Returns the service health status, version, and issuer URL
|
|
16
|
+
* Returns the service health status, version, build commit, and issuer URL
|
|
17
17
|
*/
|
|
18
18
|
async getHealth(
|
|
19
19
|
options?: RequestOptions,
|
package/src/sdk/o-auth.ts
CHANGED
|
@@ -16,7 +16,7 @@ export class OAuth extends ClientSDK {
|
|
|
16
16
|
* OAuth2 Authorization
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* 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.
|
|
19
|
+
* 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.
|
|
20
20
|
*/
|
|
21
21
|
async getOauthAuthorize(
|
|
22
22
|
request: operations.GetOauthAuthorizeRequest,
|
|
@@ -50,7 +50,7 @@ export class OAuth extends ClientSDK {
|
|
|
50
50
|
* Token exchange
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Exchange authorization code for tokens or refresh existing tokens.
|
|
53
|
+
* 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.
|
|
54
54
|
*/
|
|
55
55
|
async postOauthToken(
|
|
56
56
|
request: operations.PostOauthTokenRequest,
|
|
@@ -84,7 +84,7 @@ export class OAuth extends ClientSDK {
|
|
|
84
84
|
* OIDC UserInfo
|
|
85
85
|
*
|
|
86
86
|
* @remarks
|
|
87
|
-
* Get user claims based on granted scopes. Standard OIDC UserInfo endpoint.
|
|
87
|
+
* 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.
|
|
88
88
|
*/
|
|
89
89
|
async getOauthUserinfo(
|
|
90
90
|
options?: RequestOptions,
|
package/src/sdk/organizations.ts
CHANGED
|
@@ -627,10 +627,9 @@ export class Organizations extends ClientSDK {
|
|
|
627
627
|
* Move sub-organization
|
|
628
628
|
*
|
|
629
629
|
* @remarks
|
|
630
|
-
* Moves a sub-organization
|
|
630
|
+
* 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.
|
|
631
631
|
*/
|
|
632
632
|
async putOrgsByOrgIdSubOrgsBySubOrgIdMove(
|
|
633
|
-
security: operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity,
|
|
634
633
|
orgId: string,
|
|
635
634
|
subOrgId: string,
|
|
636
635
|
body: operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveRequestBody,
|
|
@@ -638,7 +637,6 @@ export class Organizations extends ClientSDK {
|
|
|
638
637
|
): Promise<operations.PutOrgsByOrgIdSubOrgsBySubOrgIdMoveResponse> {
|
|
639
638
|
return unwrapAsync(organizationsPutOrgsByOrgIdSubOrgsBySubOrgIdMove(
|
|
640
639
|
this,
|
|
641
|
-
security,
|
|
642
640
|
orgId,
|
|
643
641
|
subOrgId,
|
|
644
642
|
body,
|
|
@@ -1088,7 +1086,7 @@ export class Organizations extends ClientSDK {
|
|
|
1088
1086
|
* Update organization compliance config
|
|
1089
1087
|
*
|
|
1090
1088
|
* @remarks
|
|
1091
|
-
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role.
|
|
1089
|
+
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
|
|
1092
1090
|
*/
|
|
1093
1091
|
async putOrgsByOrgIdCompliance(
|
|
1094
1092
|
orgId: string,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { passportGetLoginPassportStatus } from "../funcs/passport-get-login-passport-status.js";
|
|
6
|
+
import { passportGetPassportHome } from "../funcs/passport-get-passport-home.js";
|
|
7
|
+
import { passportGetPassportSignIn } from "../funcs/passport-get-passport-sign-in.js";
|
|
8
|
+
import { passportPostLoginPassportFinish } from "../funcs/passport-post-login-passport-finish.js";
|
|
9
|
+
import { passportPostPassportSignInDecision } from "../funcs/passport-post-passport-sign-in-decision.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
|
|
14
|
+
export class Passport extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Passport home (personal context)
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* The signed-in user's identity verification, holdings, wallets, value, 12-month change, yield and recent activity. Requires a Clossir Passport client's DPoP-bound access token sent as Authorization: DPoP with a fresh DPoP proof, plus X-Clossir-Passport-Version; session JWTs, API keys, Bearer tokens and partner tokens answer 401 with a WWW-Authenticate: DPoP challenge. context=personal is required; context=org and context=org:<id> answer 422 context_not_available. Amounts are decimal strings; a value that cannot be computed completely is null with a reason. 503 temporarily_unavailable with Retry-After on a database fault, including when MFA enforcement cannot be evaluated; never 401, so the token is not discarded.
|
|
20
|
+
*/
|
|
21
|
+
async getPassportHome(
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<any> {
|
|
24
|
+
return unwrapAsync(passportGetPassportHome(
|
|
25
|
+
this,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Claim a pending web sign-in for Passport
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Claims the pending web sign-in named by ?session_id= (exactly one lowercase v4 UUID) for the calling Passport (user, Passport client and DPoP key) and returns the partner's display name, the origin of its registered redirect, and each requested scope with its required flag. No user data. Idempotent for the same Passport. Requires a Clossir Passport client's DPoP-bound access token sent as Authorization: DPoP with a fresh DPoP proof, plus X-Clossir-Passport-Version; session JWTs, API keys, Bearer tokens and partner tokens answer 401 with a WWW-Authenticate: DPoP challenge. Requires the per-sign-in hand-off secret in the X-Clossir-Passport-Handoff header (never the query); a missing or wrong secret answers as not found. 400 invalid_request for a missing, repeated or malformed session_id. 404 not_found, one identical body, for an unknown, expired or ineligible sign-in or a missing or wrong hand-off secret. 409 identity_mismatch when the sign-in belongs to another user; 409 already_decided when another Passport holds it or it was already decided. 503 when the session store is unavailable. Served with Cache-Control: no-store.
|
|
35
|
+
*/
|
|
36
|
+
async getPassportSignIn(
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): Promise<any> {
|
|
39
|
+
return unwrapAsync(passportGetPassportSignIn(
|
|
40
|
+
this,
|
|
41
|
+
options,
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Record the Passport user's sign-in decision
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* Records allow (with granted_scopes, which must include openid and clossir:attestation and be a subset of the requested scopes) or deny for a sign-in this Passport claimed. Single-shot. Does not issue an authorization code and does not save consent; the bound browser's finish step does. Requires a Clossir Passport client's DPoP-bound access token sent as Authorization: DPoP with a fresh DPoP proof, plus X-Clossir-Passport-Version; session JWTs, API keys, Bearer tokens and partner tokens answer 401 with a WWW-Authenticate: DPoP challenge. 400 invalid_request for a body that fails PassportSignInDecisionRequestSchema or grants a scope that was not requested. 404 not_found for an unclaimed, unknown, expired or ineligible sign-in. 409 identity_mismatch or already_decided as for the claim. 503 when the session store is unavailable. Served with Cache-Control: no-store.
|
|
50
|
+
*/
|
|
51
|
+
async postPassportSignInDecision(
|
|
52
|
+
request: operations.PostPassportSignInDecisionRequest,
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): Promise<any> {
|
|
55
|
+
return unwrapAsync(passportPostPassportSignInDecision(
|
|
56
|
+
this,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Poll a Passport sign-in from the browser that started it
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* Answers waiting (not claimed), claimed (a Passport holds it) or decided (allow or deny; never which) for the sign-in named by ?session_id= (exactly one lowercase v4 UUID). Requires the browser-binding cookie set by /oauth/authorize. 404 not_found, one identical body, for a missing or wrong cookie and an unknown, expired or malformed session. 429 when polled faster than once a second. 503 when the session store is unavailable. Served with Cache-Control: no-store.
|
|
67
|
+
*/
|
|
68
|
+
async getLoginPassportStatus(
|
|
69
|
+
options?: RequestOptions,
|
|
70
|
+
): Promise<operations.GetLoginPassportStatusResponse> {
|
|
71
|
+
return unwrapAsync(passportGetLoginPassportStatus(
|
|
72
|
+
this,
|
|
73
|
+
options,
|
|
74
|
+
));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Finish a Passport sign-in in the browser that started it
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* Form post from the hosted sign-in page with session_id and csrf_token, from the browser holding the binding cookie. On allow, saves consent and issues the authorization code (302 to the client's redirect with code and state); on deny, 302 with error=access_denied. 303 back to /login while Passport has not decided. HTML refusal pages otherwise. Every redirect that ends the flow clears the binding cookie.
|
|
82
|
+
*/
|
|
83
|
+
async postLoginPassportFinish(
|
|
84
|
+
request: operations.PostLoginPassportFinishRequest,
|
|
85
|
+
options?: RequestOptions,
|
|
86
|
+
): Promise<operations.PostLoginPassportFinishResponse | undefined> {
|
|
87
|
+
return unwrapAsync(passportPostLoginPassportFinish(
|
|
88
|
+
this,
|
|
89
|
+
request,
|
|
90
|
+
options,
|
|
91
|
+
));
|
|
92
|
+
}
|
|
93
|
+
}
|
package/src/sdk/preflight.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { preflightGetPreflightResultsByResultId } from "../funcs/preflight-get-preflight-results-by-result-id.js";
|
|
6
|
+
import { preflightPostPreflightIntents } from "../funcs/preflight-post-preflight-intents.js";
|
|
5
7
|
import { preflightPostPreflight } from "../funcs/preflight-post-preflight.js";
|
|
6
8
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
9
|
import * as operations from "../models/operations/index.js";
|
|
@@ -26,4 +28,38 @@ export class Preflight extends ClientSDK {
|
|
|
26
28
|
options,
|
|
27
29
|
));
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Create an intent-bound preflight check
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Builds a transaction intent, runs policy gates, calls the preflight-gateway for simulation and a signed report, and returns a PreflightResult bound to the intent with a 300s TTL. CQRS exception: synchronous 200 that writes evidence rows. No Kafka.
|
|
37
|
+
*/
|
|
38
|
+
async postPreflightIntents(
|
|
39
|
+
request: operations.PostPreflightIntentsRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): Promise<operations.PostPreflightIntentsResponse> {
|
|
42
|
+
return unwrapAsync(preflightPostPreflightIntents(
|
|
43
|
+
this,
|
|
44
|
+
request,
|
|
45
|
+
options,
|
|
46
|
+
));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Read a preflight result
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Returns the actor's own preflight result row. Returns expired results (freshness is the consumer's check). 404 for another actor's result.
|
|
54
|
+
*/
|
|
55
|
+
async getPreflightResultsByResultId(
|
|
56
|
+
resultId: string,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<operations.GetPreflightResultsByResultIdResponse> {
|
|
59
|
+
return unwrapAsync(preflightGetPreflightResultsByResultId(
|
|
60
|
+
this,
|
|
61
|
+
resultId,
|
|
62
|
+
options,
|
|
63
|
+
));
|
|
64
|
+
}
|
|
29
65
|
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
7
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
8
8
|
import { AccountTimeseries } from "./account-timeseries.js";
|
|
9
9
|
import { Accounts } from "./accounts.js";
|
|
10
|
+
import { Approvals } from "./approvals.js";
|
|
10
11
|
import { Assets } from "./assets.js";
|
|
11
12
|
import { Attestations } from "./attestations.js";
|
|
12
13
|
import { Auth } from "./auth.js";
|
|
@@ -16,6 +17,7 @@ import { Chains } from "./chains.js";
|
|
|
16
17
|
import { Commands } from "./commands.js";
|
|
17
18
|
import { Compliance } from "./compliance.js";
|
|
18
19
|
import { Distributions } from "./distributions.js";
|
|
20
|
+
import { Eligibility } from "./eligibility.js";
|
|
19
21
|
import { Fees } from "./fees.js";
|
|
20
22
|
import { Health } from "./health.js";
|
|
21
23
|
import { Jurisdictions } from "./jurisdictions.js";
|
|
@@ -27,10 +29,12 @@ import { Nav } from "./nav.js";
|
|
|
27
29
|
import { OAuthManagement } from "./o-auth-management.js";
|
|
28
30
|
import { OAuth } from "./o-auth.js";
|
|
29
31
|
import { Organizations } from "./organizations.js";
|
|
32
|
+
import { Passport } from "./passport.js";
|
|
30
33
|
import { Preflight } from "./preflight.js";
|
|
31
34
|
import { PublicMarketData } from "./public-market-data.js";
|
|
32
35
|
import { Timeseries } from "./timeseries.js";
|
|
33
36
|
import { Transfers } from "./transfers.js";
|
|
37
|
+
import { TravelRule } from "./travel-rule.js";
|
|
34
38
|
import { Ui } from "./ui.js";
|
|
35
39
|
import { Uploads } from "./uploads.js";
|
|
36
40
|
import { Vaults } from "./vaults.js";
|
|
@@ -151,6 +155,21 @@ export class Clossir extends ClientSDK {
|
|
|
151
155
|
return (this._preflight ??= new Preflight(this._options));
|
|
152
156
|
}
|
|
153
157
|
|
|
158
|
+
private _travelRule?: TravelRule;
|
|
159
|
+
get travelRule(): TravelRule {
|
|
160
|
+
return (this._travelRule ??= new TravelRule(this._options));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
private _passport?: Passport;
|
|
164
|
+
get passport(): Passport {
|
|
165
|
+
return (this._passport ??= new Passport(this._options));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
private _approvals?: Approvals;
|
|
169
|
+
get approvals(): Approvals {
|
|
170
|
+
return (this._approvals ??= new Approvals(this._options));
|
|
171
|
+
}
|
|
172
|
+
|
|
154
173
|
private _jurisdictions?: Jurisdictions;
|
|
155
174
|
get jurisdictions(): Jurisdictions {
|
|
156
175
|
return (this._jurisdictions ??= new Jurisdictions(this._options));
|
|
@@ -166,6 +185,11 @@ export class Clossir extends ClientSDK {
|
|
|
166
185
|
return (this._uploads ??= new Uploads(this._options));
|
|
167
186
|
}
|
|
168
187
|
|
|
188
|
+
private _eligibility?: Eligibility;
|
|
189
|
+
get eligibility(): Eligibility {
|
|
190
|
+
return (this._eligibility ??= new Eligibility(this._options));
|
|
191
|
+
}
|
|
192
|
+
|
|
169
193
|
private _publicMarketData?: PublicMarketData;
|
|
170
194
|
get publicMarketData(): PublicMarketData {
|
|
171
195
|
return (this._publicMarketData ??= new PublicMarketData(this._options));
|
package/src/sdk/transfers.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Transfers extends ClientSDK {
|
|
|
14
14
|
* List transfers (org-scoped)
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Returns the transfers initiated by the active members of the organization named by `orgId`
|
|
17
|
+
* Returns the transfers initiated by the active members of the organization named by `orgId` of that organization's own assets: for a user token, assets owned by the organization or any of its sub-organizations; for an API key, assets owned by exactly that organization. A member's transfers of another organization's assets, and transfers with no known asset, are not included. Optionally filtered by assetId, type (allocation/transfer), and status. Supports cursor-based pagination. Enriches each record with recipient name and cross-chain metadata. Readable by admin, operator or compliance_officer in the organization named by `orgId`; an API key of that organization needs `transfers:read`.
|
|
18
18
|
*/
|
|
19
19
|
async getTransfers(
|
|
20
20
|
security: operations.GetTransfersSecurity,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { travelRulePostTravelRuleRecords } from "../funcs/travel-rule-post-travel-rule-records.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class TravelRule extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Create a Travel Rule beneficiary record for a transaction intent
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Stores the FATF Travel Rule beneficiary name for an existing transaction intent. Actor-scoped; the caller must own the intent. One record per intent (409 on duplicate). Consumed intents are rejected (409). Synchronous 201 insert (CQRS exception). No Kafka.
|
|
16
|
+
*/
|
|
17
|
+
async postTravelRuleRecords(
|
|
18
|
+
request: operations.PostTravelRuleRecordsRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.PostTravelRuleRecordsResponse> {
|
|
21
|
+
return unwrapAsync(travelRulePostTravelRuleRecords(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|