@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
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
13
|
+
|
|
14
|
+
export type PostPreflightIntentsRequestBody2 = {
|
|
15
|
+
intentId: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type PostPreflightIntentsRequestBody1 = {
|
|
19
|
+
action: string;
|
|
20
|
+
chainId: number;
|
|
21
|
+
from: string;
|
|
22
|
+
tokenAddress: string;
|
|
23
|
+
toWallet: string;
|
|
24
|
+
amount: string;
|
|
25
|
+
assetId?: string | undefined;
|
|
26
|
+
dstEid?: number | undefined;
|
|
27
|
+
amountLD?: string | undefined;
|
|
28
|
+
quotedNativeFee?: string | undefined;
|
|
29
|
+
minAmountLD?: string | undefined;
|
|
30
|
+
extraOptions?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type PostPreflightIntentsRequest =
|
|
34
|
+
| PostPreflightIntentsRequestBody1
|
|
35
|
+
| PostPreflightIntentsRequestBody2;
|
|
36
|
+
|
|
37
|
+
export const PostPreflightIntentsAction = {
|
|
38
|
+
Subscribe: "subscribe",
|
|
39
|
+
Redeem: "redeem",
|
|
40
|
+
Transfer: "transfer",
|
|
41
|
+
Withdraw: "withdraw",
|
|
42
|
+
Claim: "claim",
|
|
43
|
+
Allocate: "allocate",
|
|
44
|
+
} as const;
|
|
45
|
+
export type PostPreflightIntentsAction = OpenEnum<
|
|
46
|
+
typeof PostPreflightIntentsAction
|
|
47
|
+
>;
|
|
48
|
+
|
|
49
|
+
export const PostPreflightIntentsAssetKind = {
|
|
50
|
+
Issued: "issued",
|
|
51
|
+
Cash: "cash",
|
|
52
|
+
} as const;
|
|
53
|
+
export type PostPreflightIntentsAssetKind = OpenEnum<
|
|
54
|
+
typeof PostPreflightIntentsAssetKind
|
|
55
|
+
>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The worst gate status.
|
|
59
|
+
*/
|
|
60
|
+
export const PostPreflightIntentsResultStatus = {
|
|
61
|
+
Pass: "pass",
|
|
62
|
+
ActionRequired: "action_required",
|
|
63
|
+
Blocked: "blocked",
|
|
64
|
+
Error: "error",
|
|
65
|
+
Pending: "pending",
|
|
66
|
+
} as const;
|
|
67
|
+
/**
|
|
68
|
+
* The worst gate status.
|
|
69
|
+
*/
|
|
70
|
+
export type PostPreflightIntentsResultStatus = OpenEnum<
|
|
71
|
+
typeof PostPreflightIntentsResultStatus
|
|
72
|
+
>;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Which gate this is.
|
|
76
|
+
*/
|
|
77
|
+
export const PostPreflightIntentsId = {
|
|
78
|
+
AddressNetwork: "address_network",
|
|
79
|
+
RecipientAttested: "recipient_attested",
|
|
80
|
+
KycLevel: "kyc_level",
|
|
81
|
+
Jurisdiction: "jurisdiction",
|
|
82
|
+
HolderCap: "holder_cap",
|
|
83
|
+
TransferableAmount: "transferable_amount",
|
|
84
|
+
SanctionsAml: "sanctions_aml",
|
|
85
|
+
Route: "route",
|
|
86
|
+
Simulation: "simulation",
|
|
87
|
+
TravelRule: "travel_rule",
|
|
88
|
+
IdentityAttested: "identity_attested",
|
|
89
|
+
InvestorClass: "investor_class",
|
|
90
|
+
PartnerMembership: "partner_membership",
|
|
91
|
+
MinimumTicket: "minimum_ticket",
|
|
92
|
+
FundsAvailable: "funds_available",
|
|
93
|
+
SubscriptionDocuments: "subscription_documents",
|
|
94
|
+
EpochWindow: "epoch_window",
|
|
95
|
+
HolderOfRecord: "holder_of_record",
|
|
96
|
+
LockupElapsed: "lockup_elapsed",
|
|
97
|
+
UnlockedBalance: "unlocked_balance",
|
|
98
|
+
IssuerCapacity: "issuer_capacity",
|
|
99
|
+
HolderAtSnapshot: "holder_at_snapshot",
|
|
100
|
+
ClaimWindow: "claim_window",
|
|
101
|
+
PaidTo: "paid_to",
|
|
102
|
+
SubscriptionAgreement: "subscription_agreement",
|
|
103
|
+
TreasurySupply: "treasury_supply",
|
|
104
|
+
Payment: "payment",
|
|
105
|
+
} as const;
|
|
106
|
+
/**
|
|
107
|
+
* Which gate this is.
|
|
108
|
+
*/
|
|
109
|
+
export type PostPreflightIntentsId = OpenEnum<typeof PostPreflightIntentsId>;
|
|
110
|
+
|
|
111
|
+
export const PostPreflightIntentsLayer = {
|
|
112
|
+
Policy: "policy",
|
|
113
|
+
Simulation: "simulation",
|
|
114
|
+
} as const;
|
|
115
|
+
export type PostPreflightIntentsLayer = OpenEnum<
|
|
116
|
+
typeof PostPreflightIntentsLayer
|
|
117
|
+
>;
|
|
118
|
+
|
|
119
|
+
export const PostPreflightIntentsGateStatus = {
|
|
120
|
+
Pass: "pass",
|
|
121
|
+
ActionRequired: "action_required",
|
|
122
|
+
Blocked: "blocked",
|
|
123
|
+
Error: "error",
|
|
124
|
+
Pending: "pending",
|
|
125
|
+
} as const;
|
|
126
|
+
export type PostPreflightIntentsGateStatus = OpenEnum<
|
|
127
|
+
typeof PostPreflightIntentsGateStatus
|
|
128
|
+
>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Why the gate did not pass. Present on a blocked or error gate, absent on a pass.
|
|
132
|
+
*/
|
|
133
|
+
export const PostPreflightIntentsCode = {
|
|
134
|
+
HarnessUnconfigured: "harness_unconfigured",
|
|
135
|
+
HarnessNoVerdict: "harness_no_verdict",
|
|
136
|
+
HarnessEngineMismatch: "harness_engine_mismatch",
|
|
137
|
+
TenderlyUnconfigured: "tenderly_unconfigured",
|
|
138
|
+
TransparencyLogUnavailable: "transparency_log_unavailable",
|
|
139
|
+
GatewayUnavailable: "gateway_unavailable",
|
|
140
|
+
GatewayTimeout: "gateway_timeout",
|
|
141
|
+
FactUnavailable: "fact_unavailable",
|
|
142
|
+
SanctionsRegistryUnsynced: "sanctions_registry_unsynced",
|
|
143
|
+
DocumentsRegistryUnavailable: "documents_registry_unavailable",
|
|
144
|
+
NotRunPolicyBlocked: "not_run_policy_blocked",
|
|
145
|
+
ChainNotEnabled: "chain_not_enabled",
|
|
146
|
+
PartnerScopeDenied: "partner_scope_denied",
|
|
147
|
+
SanctionedJurisdiction: "sanctioned_jurisdiction",
|
|
148
|
+
JurisdictionBlocked: "jurisdiction_blocked",
|
|
149
|
+
RiskScoreExceeded: "risk_score_exceeded",
|
|
150
|
+
LockupActive: "lockup_active",
|
|
151
|
+
HolderLimitReached: "holder_limit_reached",
|
|
152
|
+
CredentialWindowMissing: "credential_window_missing",
|
|
153
|
+
BelowMinimum: "below_minimum",
|
|
154
|
+
InsufficientFunds: "insufficient_funds",
|
|
155
|
+
DocumentsRequired: "documents_required",
|
|
156
|
+
RecipientNotAttested: "recipient_not_attested",
|
|
157
|
+
RecipientAttestationExpired: "recipient_attestation_expired",
|
|
158
|
+
RouteUnsupported: "route_unsupported",
|
|
159
|
+
ScreeningHit: "screening_hit",
|
|
160
|
+
BeneficiaryNameRequired: "beneficiary_name_required",
|
|
161
|
+
CounterpartyUnavailable: "counterparty_unavailable",
|
|
162
|
+
} as const;
|
|
163
|
+
/**
|
|
164
|
+
* Why the gate did not pass. Present on a blocked or error gate, absent on a pass.
|
|
165
|
+
*/
|
|
166
|
+
export type PostPreflightIntentsCode = OpenEnum<
|
|
167
|
+
typeof PostPreflightIntentsCode
|
|
168
|
+
>;
|
|
169
|
+
|
|
170
|
+
export type PostPreflightIntentsGate = {
|
|
171
|
+
/**
|
|
172
|
+
* Which gate this is.
|
|
173
|
+
*/
|
|
174
|
+
id: PostPreflightIntentsId;
|
|
175
|
+
layer: PostPreflightIntentsLayer;
|
|
176
|
+
status: PostPreflightIntentsGateStatus;
|
|
177
|
+
title: string;
|
|
178
|
+
detail: string;
|
|
179
|
+
/**
|
|
180
|
+
* Why the gate did not pass. Present on a blocked or error gate, absent on a pass.
|
|
181
|
+
*/
|
|
182
|
+
code?: PostPreflightIntentsCode | undefined;
|
|
183
|
+
[additionalProperties: string]: unknown;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export const PostPreflightIntentsResultEngine = {
|
|
187
|
+
Tenderly: "tenderly",
|
|
188
|
+
HyperevmAnvil: "hyperevm-anvil",
|
|
189
|
+
Litesvm: "litesvm",
|
|
190
|
+
Surfpool: "surfpool",
|
|
191
|
+
HeliusSimulate: "helius-simulate",
|
|
192
|
+
LayerzeroTest: "layerzero-test",
|
|
193
|
+
Local: "local",
|
|
194
|
+
} as const;
|
|
195
|
+
export type PostPreflightIntentsResultEngine = OpenEnum<
|
|
196
|
+
typeof PostPreflightIntentsResultEngine
|
|
197
|
+
>;
|
|
198
|
+
|
|
199
|
+
export type PostPreflightIntentsSimulation = {
|
|
200
|
+
engine: PostPreflightIntentsResultEngine;
|
|
201
|
+
reportId: string;
|
|
202
|
+
signature: string;
|
|
203
|
+
moduleSet: Array<string>;
|
|
204
|
+
[additionalProperties: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* PreflightResult. Parse it with PreflightResultSchema from @signum-tech/preflight-types for the gate-order and status rules this document does not express.
|
|
209
|
+
*/
|
|
210
|
+
export type PostPreflightIntentsResult = {
|
|
211
|
+
id: string;
|
|
212
|
+
/**
|
|
213
|
+
* The intent hash this result is bound to.
|
|
214
|
+
*/
|
|
215
|
+
intentHash: string;
|
|
216
|
+
action: PostPreflightIntentsAction;
|
|
217
|
+
assetKind: PostPreflightIntentsAssetKind;
|
|
218
|
+
/**
|
|
219
|
+
* ISO 8601 UTC time, millisecond precision, after which the result is stale.
|
|
220
|
+
*/
|
|
221
|
+
expiresAt: string;
|
|
222
|
+
/**
|
|
223
|
+
* The worst gate status.
|
|
224
|
+
*/
|
|
225
|
+
status: PostPreflightIntentsResultStatus;
|
|
226
|
+
gates: Array<PostPreflightIntentsGate>;
|
|
227
|
+
simulation?: PostPreflightIntentsSimulation | undefined;
|
|
228
|
+
[additionalProperties: string]: unknown;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export type PostPreflightIntentsDisplay = {
|
|
232
|
+
fn: string;
|
|
233
|
+
line: string;
|
|
234
|
+
warn?: string | undefined;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export type PostPreflightIntentsCall = {
|
|
238
|
+
/**
|
|
239
|
+
* Call target, a lowercase 0x address.
|
|
240
|
+
*/
|
|
241
|
+
to: string;
|
|
242
|
+
/**
|
|
243
|
+
* Calldata, lowercase 0x hex.
|
|
244
|
+
*/
|
|
245
|
+
data: string;
|
|
246
|
+
/**
|
|
247
|
+
* Native value in wei, a decimal string.
|
|
248
|
+
*/
|
|
249
|
+
value: string;
|
|
250
|
+
display?: PostPreflightIntentsDisplay | undefined;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export const PostPreflightIntentsReportEngine = {
|
|
254
|
+
Tenderly: "tenderly",
|
|
255
|
+
HyperevmAnvil: "hyperevm-anvil",
|
|
256
|
+
Litesvm: "litesvm",
|
|
257
|
+
Surfpool: "surfpool",
|
|
258
|
+
HeliusSimulate: "helius-simulate",
|
|
259
|
+
LayerzeroTest: "layerzero-test",
|
|
260
|
+
Local: "local",
|
|
261
|
+
} as const;
|
|
262
|
+
export type PostPreflightIntentsReportEngine = OpenEnum<
|
|
263
|
+
typeof PostPreflightIntentsReportEngine
|
|
264
|
+
>;
|
|
265
|
+
|
|
266
|
+
export const PostPreflightIntentsOverallStatus = {
|
|
267
|
+
Green: "green",
|
|
268
|
+
Amber: "amber",
|
|
269
|
+
Red: "red",
|
|
270
|
+
Pending: "pending",
|
|
271
|
+
} as const;
|
|
272
|
+
export type PostPreflightIntentsOverallStatus = OpenEnum<
|
|
273
|
+
typeof PostPreflightIntentsOverallStatus
|
|
274
|
+
>;
|
|
275
|
+
|
|
276
|
+
export const PostPreflightIntentsReportStatus = {
|
|
277
|
+
Pass: "pass",
|
|
278
|
+
Fail: "fail",
|
|
279
|
+
Warn: "warn",
|
|
280
|
+
Skip: "skip",
|
|
281
|
+
Pending: "pending",
|
|
282
|
+
} as const;
|
|
283
|
+
export type PostPreflightIntentsReportStatus = OpenEnum<
|
|
284
|
+
typeof PostPreflightIntentsReportStatus
|
|
285
|
+
>;
|
|
286
|
+
|
|
287
|
+
export type PostPreflightIntentsCheck = {
|
|
288
|
+
id: string;
|
|
289
|
+
label: string;
|
|
290
|
+
status: PostPreflightIntentsReportStatus;
|
|
291
|
+
durationMs?: number | undefined;
|
|
292
|
+
detail?: string | undefined;
|
|
293
|
+
rejectionCode?: string | undefined;
|
|
294
|
+
[additionalProperties: string]: unknown;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export type PostPreflightIntentsReport = {
|
|
298
|
+
routeKey: string;
|
|
299
|
+
scenario: string;
|
|
300
|
+
engine: PostPreflightIntentsReportEngine;
|
|
301
|
+
startedAt: string;
|
|
302
|
+
finishedAt?: string | undefined;
|
|
303
|
+
overallStatus: PostPreflightIntentsOverallStatus;
|
|
304
|
+
checks: Array<PostPreflightIntentsCheck>;
|
|
305
|
+
[additionalProperties: string]: unknown;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
export const PostPreflightIntentsAlgorithm = {
|
|
309
|
+
Ed25519: "ed25519",
|
|
310
|
+
} as const;
|
|
311
|
+
export type PostPreflightIntentsAlgorithm = ClosedEnum<
|
|
312
|
+
typeof PostPreflightIntentsAlgorithm
|
|
313
|
+
>;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Signed preflight report, passed through from the preflight gateway. Verify it client-side.
|
|
317
|
+
*/
|
|
318
|
+
export type PostPreflightIntentsSignedReport = {
|
|
319
|
+
report: PostPreflightIntentsReport;
|
|
320
|
+
signature: string;
|
|
321
|
+
keyId: string;
|
|
322
|
+
algorithm: PostPreflightIntentsAlgorithm;
|
|
323
|
+
[additionalProperties: string]: unknown;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Response
|
|
328
|
+
*/
|
|
329
|
+
export type PostPreflightIntentsResponse = {
|
|
330
|
+
intentId: string;
|
|
331
|
+
resultId: string;
|
|
332
|
+
/**
|
|
333
|
+
* PreflightResult. Parse it with PreflightResultSchema from @signum-tech/preflight-types for the gate-order and status rules this document does not express.
|
|
334
|
+
*/
|
|
335
|
+
result: PostPreflightIntentsResult;
|
|
336
|
+
calls: Array<PostPreflightIntentsCall>;
|
|
337
|
+
/**
|
|
338
|
+
* The gateway's signed report, or null when no simulation ran.
|
|
339
|
+
*/
|
|
340
|
+
signedReport: PostPreflightIntentsSignedReport | null;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
/** @internal */
|
|
344
|
+
export type PostPreflightIntentsRequestBody2$Outbound = {
|
|
345
|
+
intentId: string;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/** @internal */
|
|
349
|
+
export const PostPreflightIntentsRequestBody2$outboundSchema: z.ZodMiniType<
|
|
350
|
+
PostPreflightIntentsRequestBody2$Outbound,
|
|
351
|
+
PostPreflightIntentsRequestBody2
|
|
352
|
+
> = z.object({
|
|
353
|
+
intentId: z.string(),
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
export function postPreflightIntentsRequestBody2ToJSON(
|
|
357
|
+
postPreflightIntentsRequestBody2: PostPreflightIntentsRequestBody2,
|
|
358
|
+
): string {
|
|
359
|
+
return JSON.stringify(
|
|
360
|
+
PostPreflightIntentsRequestBody2$outboundSchema.parse(
|
|
361
|
+
postPreflightIntentsRequestBody2,
|
|
362
|
+
),
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/** @internal */
|
|
367
|
+
export type PostPreflightIntentsRequestBody1$Outbound = {
|
|
368
|
+
action: string;
|
|
369
|
+
chainId: number;
|
|
370
|
+
from: string;
|
|
371
|
+
tokenAddress: string;
|
|
372
|
+
toWallet: string;
|
|
373
|
+
amount: string;
|
|
374
|
+
assetId?: string | undefined;
|
|
375
|
+
dstEid?: number | undefined;
|
|
376
|
+
amountLD?: string | undefined;
|
|
377
|
+
quotedNativeFee?: string | undefined;
|
|
378
|
+
minAmountLD?: string | undefined;
|
|
379
|
+
extraOptions?: string | undefined;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
/** @internal */
|
|
383
|
+
export const PostPreflightIntentsRequestBody1$outboundSchema: z.ZodMiniType<
|
|
384
|
+
PostPreflightIntentsRequestBody1$Outbound,
|
|
385
|
+
PostPreflightIntentsRequestBody1
|
|
386
|
+
> = z.object({
|
|
387
|
+
action: z.string(),
|
|
388
|
+
chainId: z.number(),
|
|
389
|
+
from: z.string(),
|
|
390
|
+
tokenAddress: z.string(),
|
|
391
|
+
toWallet: z.string(),
|
|
392
|
+
amount: z.string(),
|
|
393
|
+
assetId: z.optional(z.string()),
|
|
394
|
+
dstEid: z.optional(z.number()),
|
|
395
|
+
amountLD: z.optional(z.string()),
|
|
396
|
+
quotedNativeFee: z.optional(z.string()),
|
|
397
|
+
minAmountLD: z.optional(z.string()),
|
|
398
|
+
extraOptions: z.optional(z.string()),
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
export function postPreflightIntentsRequestBody1ToJSON(
|
|
402
|
+
postPreflightIntentsRequestBody1: PostPreflightIntentsRequestBody1,
|
|
403
|
+
): string {
|
|
404
|
+
return JSON.stringify(
|
|
405
|
+
PostPreflightIntentsRequestBody1$outboundSchema.parse(
|
|
406
|
+
postPreflightIntentsRequestBody1,
|
|
407
|
+
),
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/** @internal */
|
|
412
|
+
export type PostPreflightIntentsRequest$Outbound =
|
|
413
|
+
| PostPreflightIntentsRequestBody1$Outbound
|
|
414
|
+
| PostPreflightIntentsRequestBody2$Outbound;
|
|
415
|
+
|
|
416
|
+
/** @internal */
|
|
417
|
+
export const PostPreflightIntentsRequest$outboundSchema: z.ZodMiniType<
|
|
418
|
+
PostPreflightIntentsRequest$Outbound,
|
|
419
|
+
PostPreflightIntentsRequest
|
|
420
|
+
> = smartUnion([
|
|
421
|
+
z.lazy(() => PostPreflightIntentsRequestBody1$outboundSchema),
|
|
422
|
+
z.lazy(() => PostPreflightIntentsRequestBody2$outboundSchema),
|
|
423
|
+
]);
|
|
424
|
+
|
|
425
|
+
export function postPreflightIntentsRequestToJSON(
|
|
426
|
+
postPreflightIntentsRequest: PostPreflightIntentsRequest,
|
|
427
|
+
): string {
|
|
428
|
+
return JSON.stringify(
|
|
429
|
+
PostPreflightIntentsRequest$outboundSchema.parse(
|
|
430
|
+
postPreflightIntentsRequest,
|
|
431
|
+
),
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/** @internal */
|
|
436
|
+
export const PostPreflightIntentsAction$inboundSchema: z.ZodMiniType<
|
|
437
|
+
PostPreflightIntentsAction,
|
|
438
|
+
unknown
|
|
439
|
+
> = openEnums.inboundSchema(PostPreflightIntentsAction);
|
|
440
|
+
|
|
441
|
+
/** @internal */
|
|
442
|
+
export const PostPreflightIntentsAssetKind$inboundSchema: z.ZodMiniType<
|
|
443
|
+
PostPreflightIntentsAssetKind,
|
|
444
|
+
unknown
|
|
445
|
+
> = openEnums.inboundSchema(PostPreflightIntentsAssetKind);
|
|
446
|
+
|
|
447
|
+
/** @internal */
|
|
448
|
+
export const PostPreflightIntentsResultStatus$inboundSchema: z.ZodMiniType<
|
|
449
|
+
PostPreflightIntentsResultStatus,
|
|
450
|
+
unknown
|
|
451
|
+
> = openEnums.inboundSchema(PostPreflightIntentsResultStatus);
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const PostPreflightIntentsId$inboundSchema: z.ZodMiniType<
|
|
455
|
+
PostPreflightIntentsId,
|
|
456
|
+
unknown
|
|
457
|
+
> = openEnums.inboundSchema(PostPreflightIntentsId);
|
|
458
|
+
|
|
459
|
+
/** @internal */
|
|
460
|
+
export const PostPreflightIntentsLayer$inboundSchema: z.ZodMiniType<
|
|
461
|
+
PostPreflightIntentsLayer,
|
|
462
|
+
unknown
|
|
463
|
+
> = openEnums.inboundSchema(PostPreflightIntentsLayer);
|
|
464
|
+
|
|
465
|
+
/** @internal */
|
|
466
|
+
export const PostPreflightIntentsGateStatus$inboundSchema: z.ZodMiniType<
|
|
467
|
+
PostPreflightIntentsGateStatus,
|
|
468
|
+
unknown
|
|
469
|
+
> = openEnums.inboundSchema(PostPreflightIntentsGateStatus);
|
|
470
|
+
|
|
471
|
+
/** @internal */
|
|
472
|
+
export const PostPreflightIntentsCode$inboundSchema: z.ZodMiniType<
|
|
473
|
+
PostPreflightIntentsCode,
|
|
474
|
+
unknown
|
|
475
|
+
> = openEnums.inboundSchema(PostPreflightIntentsCode);
|
|
476
|
+
|
|
477
|
+
/** @internal */
|
|
478
|
+
export const PostPreflightIntentsGate$inboundSchema: z.ZodMiniType<
|
|
479
|
+
PostPreflightIntentsGate,
|
|
480
|
+
unknown
|
|
481
|
+
> = z.catchall(
|
|
482
|
+
z.object({
|
|
483
|
+
id: PostPreflightIntentsId$inboundSchema,
|
|
484
|
+
layer: PostPreflightIntentsLayer$inboundSchema,
|
|
485
|
+
status: PostPreflightIntentsGateStatus$inboundSchema,
|
|
486
|
+
title: types.string(),
|
|
487
|
+
detail: types.string(),
|
|
488
|
+
code: types.optional(PostPreflightIntentsCode$inboundSchema),
|
|
489
|
+
}),
|
|
490
|
+
z.any(),
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
export function postPreflightIntentsGateFromJSON(
|
|
494
|
+
jsonString: string,
|
|
495
|
+
): SafeParseResult<PostPreflightIntentsGate, SDKValidationError> {
|
|
496
|
+
return safeParse(
|
|
497
|
+
jsonString,
|
|
498
|
+
(x) => PostPreflightIntentsGate$inboundSchema.parse(JSON.parse(x)),
|
|
499
|
+
`Failed to parse 'PostPreflightIntentsGate' from JSON`,
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/** @internal */
|
|
504
|
+
export const PostPreflightIntentsResultEngine$inboundSchema: z.ZodMiniType<
|
|
505
|
+
PostPreflightIntentsResultEngine,
|
|
506
|
+
unknown
|
|
507
|
+
> = openEnums.inboundSchema(PostPreflightIntentsResultEngine);
|
|
508
|
+
|
|
509
|
+
/** @internal */
|
|
510
|
+
export const PostPreflightIntentsSimulation$inboundSchema: z.ZodMiniType<
|
|
511
|
+
PostPreflightIntentsSimulation,
|
|
512
|
+
unknown
|
|
513
|
+
> = z.catchall(
|
|
514
|
+
z.object({
|
|
515
|
+
engine: PostPreflightIntentsResultEngine$inboundSchema,
|
|
516
|
+
reportId: types.string(),
|
|
517
|
+
signature: types.string(),
|
|
518
|
+
moduleSet: z.array(types.string()),
|
|
519
|
+
}),
|
|
520
|
+
z.any(),
|
|
521
|
+
);
|
|
522
|
+
|
|
523
|
+
export function postPreflightIntentsSimulationFromJSON(
|
|
524
|
+
jsonString: string,
|
|
525
|
+
): SafeParseResult<PostPreflightIntentsSimulation, SDKValidationError> {
|
|
526
|
+
return safeParse(
|
|
527
|
+
jsonString,
|
|
528
|
+
(x) => PostPreflightIntentsSimulation$inboundSchema.parse(JSON.parse(x)),
|
|
529
|
+
`Failed to parse 'PostPreflightIntentsSimulation' from JSON`,
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/** @internal */
|
|
534
|
+
export const PostPreflightIntentsResult$inboundSchema: z.ZodMiniType<
|
|
535
|
+
PostPreflightIntentsResult,
|
|
536
|
+
unknown
|
|
537
|
+
> = z.catchall(
|
|
538
|
+
z.object({
|
|
539
|
+
id: types.string(),
|
|
540
|
+
intentHash: types.string(),
|
|
541
|
+
action: PostPreflightIntentsAction$inboundSchema,
|
|
542
|
+
assetKind: PostPreflightIntentsAssetKind$inboundSchema,
|
|
543
|
+
expiresAt: types.string(),
|
|
544
|
+
status: PostPreflightIntentsResultStatus$inboundSchema,
|
|
545
|
+
gates: z.array(z.lazy(() => PostPreflightIntentsGate$inboundSchema)),
|
|
546
|
+
simulation: types.optional(
|
|
547
|
+
z.lazy(() => PostPreflightIntentsSimulation$inboundSchema),
|
|
548
|
+
),
|
|
549
|
+
}),
|
|
550
|
+
z.any(),
|
|
551
|
+
);
|
|
552
|
+
|
|
553
|
+
export function postPreflightIntentsResultFromJSON(
|
|
554
|
+
jsonString: string,
|
|
555
|
+
): SafeParseResult<PostPreflightIntentsResult, SDKValidationError> {
|
|
556
|
+
return safeParse(
|
|
557
|
+
jsonString,
|
|
558
|
+
(x) => PostPreflightIntentsResult$inboundSchema.parse(JSON.parse(x)),
|
|
559
|
+
`Failed to parse 'PostPreflightIntentsResult' from JSON`,
|
|
560
|
+
);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/** @internal */
|
|
564
|
+
export const PostPreflightIntentsDisplay$inboundSchema: z.ZodMiniType<
|
|
565
|
+
PostPreflightIntentsDisplay,
|
|
566
|
+
unknown
|
|
567
|
+
> = z.object({
|
|
568
|
+
fn: types.string(),
|
|
569
|
+
line: types.string(),
|
|
570
|
+
warn: types.optional(types.string()),
|
|
571
|
+
});
|
|
572
|
+
|
|
573
|
+
export function postPreflightIntentsDisplayFromJSON(
|
|
574
|
+
jsonString: string,
|
|
575
|
+
): SafeParseResult<PostPreflightIntentsDisplay, SDKValidationError> {
|
|
576
|
+
return safeParse(
|
|
577
|
+
jsonString,
|
|
578
|
+
(x) => PostPreflightIntentsDisplay$inboundSchema.parse(JSON.parse(x)),
|
|
579
|
+
`Failed to parse 'PostPreflightIntentsDisplay' from JSON`,
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/** @internal */
|
|
584
|
+
export const PostPreflightIntentsCall$inboundSchema: z.ZodMiniType<
|
|
585
|
+
PostPreflightIntentsCall,
|
|
586
|
+
unknown
|
|
587
|
+
> = z.object({
|
|
588
|
+
to: types.string(),
|
|
589
|
+
data: types.string(),
|
|
590
|
+
value: types.string(),
|
|
591
|
+
display: types.optional(
|
|
592
|
+
z.lazy(() => PostPreflightIntentsDisplay$inboundSchema),
|
|
593
|
+
),
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
export function postPreflightIntentsCallFromJSON(
|
|
597
|
+
jsonString: string,
|
|
598
|
+
): SafeParseResult<PostPreflightIntentsCall, SDKValidationError> {
|
|
599
|
+
return safeParse(
|
|
600
|
+
jsonString,
|
|
601
|
+
(x) => PostPreflightIntentsCall$inboundSchema.parse(JSON.parse(x)),
|
|
602
|
+
`Failed to parse 'PostPreflightIntentsCall' from JSON`,
|
|
603
|
+
);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/** @internal */
|
|
607
|
+
export const PostPreflightIntentsReportEngine$inboundSchema: z.ZodMiniType<
|
|
608
|
+
PostPreflightIntentsReportEngine,
|
|
609
|
+
unknown
|
|
610
|
+
> = openEnums.inboundSchema(PostPreflightIntentsReportEngine);
|
|
611
|
+
|
|
612
|
+
/** @internal */
|
|
613
|
+
export const PostPreflightIntentsOverallStatus$inboundSchema: z.ZodMiniType<
|
|
614
|
+
PostPreflightIntentsOverallStatus,
|
|
615
|
+
unknown
|
|
616
|
+
> = openEnums.inboundSchema(PostPreflightIntentsOverallStatus);
|
|
617
|
+
|
|
618
|
+
/** @internal */
|
|
619
|
+
export const PostPreflightIntentsReportStatus$inboundSchema: z.ZodMiniType<
|
|
620
|
+
PostPreflightIntentsReportStatus,
|
|
621
|
+
unknown
|
|
622
|
+
> = openEnums.inboundSchema(PostPreflightIntentsReportStatus);
|
|
623
|
+
|
|
624
|
+
/** @internal */
|
|
625
|
+
export const PostPreflightIntentsCheck$inboundSchema: z.ZodMiniType<
|
|
626
|
+
PostPreflightIntentsCheck,
|
|
627
|
+
unknown
|
|
628
|
+
> = z.catchall(
|
|
629
|
+
z.object({
|
|
630
|
+
id: types.string(),
|
|
631
|
+
label: types.string(),
|
|
632
|
+
status: PostPreflightIntentsReportStatus$inboundSchema,
|
|
633
|
+
durationMs: types.optional(types.number()),
|
|
634
|
+
detail: types.optional(types.string()),
|
|
635
|
+
rejectionCode: types.optional(types.string()),
|
|
636
|
+
}),
|
|
637
|
+
z.any(),
|
|
638
|
+
);
|
|
639
|
+
|
|
640
|
+
export function postPreflightIntentsCheckFromJSON(
|
|
641
|
+
jsonString: string,
|
|
642
|
+
): SafeParseResult<PostPreflightIntentsCheck, SDKValidationError> {
|
|
643
|
+
return safeParse(
|
|
644
|
+
jsonString,
|
|
645
|
+
(x) => PostPreflightIntentsCheck$inboundSchema.parse(JSON.parse(x)),
|
|
646
|
+
`Failed to parse 'PostPreflightIntentsCheck' from JSON`,
|
|
647
|
+
);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/** @internal */
|
|
651
|
+
export const PostPreflightIntentsReport$inboundSchema: z.ZodMiniType<
|
|
652
|
+
PostPreflightIntentsReport,
|
|
653
|
+
unknown
|
|
654
|
+
> = z.catchall(
|
|
655
|
+
z.object({
|
|
656
|
+
routeKey: types.string(),
|
|
657
|
+
scenario: types.string(),
|
|
658
|
+
engine: PostPreflightIntentsReportEngine$inboundSchema,
|
|
659
|
+
startedAt: types.string(),
|
|
660
|
+
finishedAt: types.optional(types.string()),
|
|
661
|
+
overallStatus: PostPreflightIntentsOverallStatus$inboundSchema,
|
|
662
|
+
checks: z.array(z.lazy(() => PostPreflightIntentsCheck$inboundSchema)),
|
|
663
|
+
}),
|
|
664
|
+
z.any(),
|
|
665
|
+
);
|
|
666
|
+
|
|
667
|
+
export function postPreflightIntentsReportFromJSON(
|
|
668
|
+
jsonString: string,
|
|
669
|
+
): SafeParseResult<PostPreflightIntentsReport, SDKValidationError> {
|
|
670
|
+
return safeParse(
|
|
671
|
+
jsonString,
|
|
672
|
+
(x) => PostPreflightIntentsReport$inboundSchema.parse(JSON.parse(x)),
|
|
673
|
+
`Failed to parse 'PostPreflightIntentsReport' from JSON`,
|
|
674
|
+
);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/** @internal */
|
|
678
|
+
export const PostPreflightIntentsAlgorithm$inboundSchema: z.ZodMiniEnum<
|
|
679
|
+
typeof PostPreflightIntentsAlgorithm
|
|
680
|
+
> = z.enum(PostPreflightIntentsAlgorithm);
|
|
681
|
+
|
|
682
|
+
/** @internal */
|
|
683
|
+
export const PostPreflightIntentsSignedReport$inboundSchema: z.ZodMiniType<
|
|
684
|
+
PostPreflightIntentsSignedReport,
|
|
685
|
+
unknown
|
|
686
|
+
> = z.catchall(
|
|
687
|
+
z.object({
|
|
688
|
+
report: z.lazy(() => PostPreflightIntentsReport$inboundSchema),
|
|
689
|
+
signature: types.string(),
|
|
690
|
+
keyId: types.string(),
|
|
691
|
+
algorithm: PostPreflightIntentsAlgorithm$inboundSchema,
|
|
692
|
+
}),
|
|
693
|
+
z.any(),
|
|
694
|
+
);
|
|
695
|
+
|
|
696
|
+
export function postPreflightIntentsSignedReportFromJSON(
|
|
697
|
+
jsonString: string,
|
|
698
|
+
): SafeParseResult<PostPreflightIntentsSignedReport, SDKValidationError> {
|
|
699
|
+
return safeParse(
|
|
700
|
+
jsonString,
|
|
701
|
+
(x) => PostPreflightIntentsSignedReport$inboundSchema.parse(JSON.parse(x)),
|
|
702
|
+
`Failed to parse 'PostPreflightIntentsSignedReport' from JSON`,
|
|
703
|
+
);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/** @internal */
|
|
707
|
+
export const PostPreflightIntentsResponse$inboundSchema: z.ZodMiniType<
|
|
708
|
+
PostPreflightIntentsResponse,
|
|
709
|
+
unknown
|
|
710
|
+
> = z.object({
|
|
711
|
+
intentId: types.string(),
|
|
712
|
+
resultId: types.string(),
|
|
713
|
+
result: z.lazy(() => PostPreflightIntentsResult$inboundSchema),
|
|
714
|
+
calls: z.array(z.lazy(() => PostPreflightIntentsCall$inboundSchema)),
|
|
715
|
+
signedReport: types.nullable(
|
|
716
|
+
z.lazy(() => PostPreflightIntentsSignedReport$inboundSchema),
|
|
717
|
+
),
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
export function postPreflightIntentsResponseFromJSON(
|
|
721
|
+
jsonString: string,
|
|
722
|
+
): SafeParseResult<PostPreflightIntentsResponse, SDKValidationError> {
|
|
723
|
+
return safeParse(
|
|
724
|
+
jsonString,
|
|
725
|
+
(x) => PostPreflightIntentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
726
|
+
`Failed to parse 'PostPreflightIntentsResponse' from JSON`,
|
|
727
|
+
);
|
|
728
|
+
}
|