@clossir-tech/ts-sdk 0.11.0 → 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 +43 -33
- 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-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/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 +1 -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.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.js +1 -1
- package/esm/funcs/attestations-post-attestations.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/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/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/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/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/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-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 +8 -8
- package/esm/models/errors/get-oauth-userinfo.js +4 -4
- package/esm/models/errors/get-passport-home.d.ts +2 -2
- package/esm/models/errors/get-passport-home.js +1 -1
- package/esm/models/errors/get-passport-sign-in.d.ts +2 -2
- package/esm/models/errors/get-passport-sign-in.js +1 -1
- package/esm/models/errors/index.d.ts +2 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +2 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/errors/o-auth-error-response.d.ts +2 -2
- package/esm/models/errors/o-auth-error-response.js +1 -1
- 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 +2 -2
- package/esm/models/errors/post-eligibility-check.js +1 -1
- 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 +8 -8
- package/esm/models/errors/post-oauth-token.js +4 -4
- package/esm/models/errors/post-passport-sign-in-decision.d.ts +2 -2
- package/esm/models/errors/post-passport-sign-in-decision.js +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-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-login-passport-status.d.ts +3 -3
- package/esm/models/operations/get-login-passport-status.d.ts.map +1 -1
- package/esm/models/operations/get-login-passport-status.js +3 -3
- package/esm/models/operations/get-login-passport-status.js.map +1 -1
- package/esm/models/operations/get-preflight-results-by-result-id.d.ts +25 -0
- package/esm/models/operations/get-preflight-results-by-result-id.d.ts.map +1 -1
- package/esm/models/operations/get-preflight-results-by-result-id.js +11 -0
- package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -1
- package/esm/models/operations/index.d.ts +4 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +4 -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-eligibility-check.d.ts +4 -4
- package/esm/models/operations/post-eligibility-check.d.ts.map +1 -1
- package/esm/models/operations/post-eligibility-check.js +4 -4
- package/esm/models/operations/post-eligibility-check.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-preflight-intents.d.ts +25 -0
- package/esm/models/operations/post-preflight-intents.d.ts.map +1 -1
- package/esm/models/operations/post-preflight-intents.js +11 -0
- package/esm/models/operations/post-preflight-intents.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 +14 -0
- package/esm/sdk/approvals.d.ts.map +1 -1
- package/esm/sdk/approvals.js +20 -0
- package/esm/sdk/approvals.js.map +1 -1
- package/esm/sdk/assets.d.ts +2 -2
- package/esm/sdk/assets.js +2 -2
- package/esm/sdk/attestations.d.ts +1 -1
- package/esm/sdk/attestations.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/organizations.d.ts +1 -1
- package/esm/sdk/organizations.js +1 -1
- 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-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/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 +1 -1
- 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.ts +1 -1
- package/src/funcs/attestations-delete-attestations-by-id.ts +2 -2
- package/src/funcs/attestations-post-attestations.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/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.ts +3 -0
- 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/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/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/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-oauth-authorize.ts +6 -6
- package/src/models/errors/get-oauth-userinfo.ts +8 -8
- package/src/models/errors/get-passport-home.ts +2 -2
- package/src/models/errors/get-passport-sign-in.ts +2 -2
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/o-auth-error-response.ts +2 -2
- 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 +2 -2
- 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 +8 -8
- package/src/models/errors/post-passport-sign-in-decision.ts +2 -2
- 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-commands-by-command-id.ts +267 -0
- package/src/models/operations/get-login-passport-status.ts +12 -6
- package/src/models/operations/get-preflight-results-by-result-id.ts +51 -0
- package/src/models/operations/index.ts +4 -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-eligibility-check.ts +11 -8
- 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-preflight-intents.ts +47 -0
- package/src/sdk/accounts.ts +34 -0
- package/src/sdk/approvals.ts +40 -0
- package/src/sdk/assets.ts +2 -2
- package/src/sdk/attestations.ts +1 -1
- package/src/sdk/commands.ts +1 -1
- package/src/sdk/compliance.ts +1 -1
- package/src/sdk/organizations.ts +1 -1
|
@@ -168,7 +168,7 @@ async function $do(
|
|
|
168
168
|
errors.ProblemDetailsError$inboundSchema,
|
|
169
169
|
{ ctype: "application/problem+json" },
|
|
170
170
|
),
|
|
171
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
171
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
172
172
|
ctype: "application/problem+json",
|
|
173
173
|
}),
|
|
174
174
|
M.fail("4XX"),
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Get command lifecycle
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* 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")
|
|
34
|
+
* 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.
|
|
35
35
|
*
|
|
36
36
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
37
37
|
*/
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Update asset compliance policy
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* 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.
|
|
34
|
+
* 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.
|
|
35
35
|
*/
|
|
36
36
|
export function compliancePostOrgsByOrgIdAssetsByAssetIdCompliancePolicy(
|
|
37
37
|
client: ClossirCore,
|
|
@@ -218,7 +218,7 @@ async function $do(
|
|
|
218
218
|
M.jsonErr([403, 404, 422, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
219
219
|
ctype: "application/problem+json",
|
|
220
220
|
}),
|
|
221
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
221
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
222
222
|
ctype: "application/problem+json",
|
|
223
223
|
}),
|
|
224
224
|
M.fail("4XX"),
|
|
@@ -202,6 +202,9 @@ async function $do(
|
|
|
202
202
|
M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
203
203
|
ctype: "application/problem+json",
|
|
204
204
|
}),
|
|
205
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
206
|
+
ctype: "application/problem+json",
|
|
207
|
+
}),
|
|
205
208
|
M.fail("4XX"),
|
|
206
209
|
M.fail("5XX"),
|
|
207
210
|
)(response, req, { extraFields: responseFields });
|
|
@@ -190,6 +190,9 @@ async function $do(
|
|
|
190
190
|
M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
191
191
|
ctype: "application/problem+json",
|
|
192
192
|
}),
|
|
193
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
194
|
+
ctype: "application/problem+json",
|
|
195
|
+
}),
|
|
193
196
|
M.fail("4XX"),
|
|
194
197
|
M.fail("5XX"),
|
|
195
198
|
)(response, req, { extraFields: responseFields });
|
|
@@ -193,6 +193,9 @@ async function $do(
|
|
|
193
193
|
errors.ProblemDetailsError$inboundSchema,
|
|
194
194
|
{ ctype: "application/problem+json" },
|
|
195
195
|
),
|
|
196
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
197
|
+
ctype: "application/problem+json",
|
|
198
|
+
}),
|
|
196
199
|
M.fail("4XX"),
|
|
197
200
|
M.fail("5XX"),
|
|
198
201
|
)(response, req, { extraFields: responseFields });
|
|
@@ -228,6 +228,9 @@ async function $do(
|
|
|
228
228
|
M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
229
229
|
ctype: "application/problem+json",
|
|
230
230
|
}),
|
|
231
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
232
|
+
ctype: "application/problem+json",
|
|
233
|
+
}),
|
|
231
234
|
M.fail("4XX"),
|
|
232
235
|
M.fail("5XX"),
|
|
233
236
|
)(response, req, { extraFields: responseFields });
|
|
@@ -227,7 +227,7 @@ async function $do(
|
|
|
227
227
|
M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
228
228
|
ctype: "application/problem+json",
|
|
229
229
|
}),
|
|
230
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
230
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
231
231
|
ctype: "application/problem+json",
|
|
232
232
|
}),
|
|
233
233
|
M.fail("4XX"),
|
package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts
CHANGED
|
@@ -227,6 +227,9 @@ async function $do(
|
|
|
227
227
|
errors.ProblemDetailsError$inboundSchema,
|
|
228
228
|
{ ctype: "application/problem+json" },
|
|
229
229
|
),
|
|
230
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
231
|
+
ctype: "application/problem+json",
|
|
232
|
+
}),
|
|
230
233
|
M.fail("4XX"),
|
|
231
234
|
M.fail("5XX"),
|
|
232
235
|
)(response, req, { extraFields: responseFields });
|
|
@@ -210,7 +210,7 @@ async function $do(
|
|
|
210
210
|
errors.ProblemDetailsError$inboundSchema,
|
|
211
211
|
{ ctype: "application/problem+json" },
|
|
212
212
|
),
|
|
213
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
213
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
214
214
|
ctype: "application/problem+json",
|
|
215
215
|
}),
|
|
216
216
|
M.fail("4XX"),
|
|
@@ -190,6 +190,9 @@ async function $do(
|
|
|
190
190
|
M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
191
191
|
ctype: "application/problem+json",
|
|
192
192
|
}),
|
|
193
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
194
|
+
ctype: "application/problem+json",
|
|
195
|
+
}),
|
|
193
196
|
M.fail("4XX"),
|
|
194
197
|
M.fail("5XX"),
|
|
195
198
|
)(response, req, { extraFields: responseFields });
|
|
@@ -189,6 +189,9 @@ async function $do(
|
|
|
189
189
|
M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
190
190
|
ctype: "application/problem+json",
|
|
191
191
|
}),
|
|
192
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
193
|
+
ctype: "application/problem+json",
|
|
194
|
+
}),
|
|
192
195
|
M.fail("4XX"),
|
|
193
196
|
M.fail("5XX"),
|
|
194
197
|
)(response, req, { extraFields: responseFields });
|
|
@@ -192,6 +192,9 @@ async function $do(
|
|
|
192
192
|
M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
193
193
|
ctype: "application/problem+json",
|
|
194
194
|
}),
|
|
195
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
196
|
+
ctype: "application/problem+json",
|
|
197
|
+
}),
|
|
195
198
|
M.fail("4XX"),
|
|
196
199
|
M.fail("5XX"),
|
|
197
200
|
)(response, req, { extraFields: responseFields });
|
|
@@ -197,7 +197,7 @@ async function $do(
|
|
|
197
197
|
M.jsonErr([400, 403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
198
198
|
ctype: "application/problem+json",
|
|
199
199
|
}),
|
|
200
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
200
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
201
201
|
ctype: "application/problem+json",
|
|
202
202
|
}),
|
|
203
203
|
M.fail("4XX"),
|
|
@@ -210,6 +210,9 @@ async function $do(
|
|
|
210
210
|
errors.ProblemDetailsError$inboundSchema,
|
|
211
211
|
{ ctype: "application/problem+json" },
|
|
212
212
|
),
|
|
213
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
214
|
+
ctype: "application/problem+json",
|
|
215
|
+
}),
|
|
213
216
|
M.fail("4XX"),
|
|
214
217
|
M.fail("5XX"),
|
|
215
218
|
)(response, req, { extraFields: responseFields });
|
|
@@ -192,7 +192,7 @@ async function $do(
|
|
|
192
192
|
M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
193
193
|
ctype: "application/problem+json",
|
|
194
194
|
}),
|
|
195
|
-
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
195
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
196
196
|
ctype: "application/problem+json",
|
|
197
197
|
}),
|
|
198
198
|
M.fail("4XX"),
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Update organization compliance config
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role.
|
|
34
|
+
* 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.
|
|
35
35
|
*
|
|
36
36
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
37
37
|
*/
|
|
@@ -177,9 +177,11 @@ async function $do(
|
|
|
177
177
|
| SDKValidationError
|
|
178
178
|
>(
|
|
179
179
|
M.json(200, operations.PutOrgsByOrgIdComplianceResponse$inboundSchema),
|
|
180
|
-
M.jsonErr(
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
M.jsonErr(
|
|
181
|
+
[400, 401, 403, 422, 428],
|
|
182
|
+
errors.ProblemDetailsError$inboundSchema,
|
|
183
|
+
{ ctype: "application/problem+json" },
|
|
184
|
+
),
|
|
183
185
|
M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
184
186
|
ctype: "application/problem+json",
|
|
185
187
|
}),
|
|
@@ -193,6 +193,9 @@ async function $do(
|
|
|
193
193
|
errors.ProblemDetailsError$inboundSchema,
|
|
194
194
|
{ ctype: "application/problem+json" },
|
|
195
195
|
),
|
|
196
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
197
|
+
ctype: "application/problem+json",
|
|
198
|
+
}),
|
|
196
199
|
M.fail("4XX"),
|
|
197
200
|
M.fail("5XX"),
|
|
198
201
|
)(response, req, { extraFields: responseFields });
|
|
@@ -191,6 +191,9 @@ async function $do(
|
|
|
191
191
|
errors.ProblemDetailsError$inboundSchema,
|
|
192
192
|
{ ctype: "application/problem+json" },
|
|
193
193
|
),
|
|
194
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
195
|
+
ctype: "application/problem+json",
|
|
196
|
+
}),
|
|
194
197
|
M.fail("4XX"),
|
|
195
198
|
M.fail("5XX"),
|
|
196
199
|
)(response, req, { extraFields: responseFields });
|
|
@@ -192,6 +192,9 @@ async function $do(
|
|
|
192
192
|
errors.ProblemDetailsError$inboundSchema,
|
|
193
193
|
{ ctype: "application/problem+json" },
|
|
194
194
|
),
|
|
195
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
196
|
+
ctype: "application/problem+json",
|
|
197
|
+
}),
|
|
195
198
|
M.fail("4XX"),
|
|
196
199
|
M.fail("5XX"),
|
|
197
200
|
)(response, req, { extraFields: responseFields });
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "2.0.0",
|
|
68
|
-
sdkVersion: "0.11.
|
|
68
|
+
sdkVersion: "0.11.1",
|
|
69
69
|
genVersion: "2.916.4",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 0.11.
|
|
71
|
+
"speakeasy-sdk/typescript 0.11.1 2.916.4 2.0.0 @clossir-tech/ts-sdk",
|
|
72
72
|
} as const;
|
|
@@ -12,7 +12,7 @@ import { SDKError } from "./sdk-error.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type GetOauthAuthorizeInternalServerErrorData = {
|
|
14
14
|
/**
|
|
15
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
15
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
16
16
|
*/
|
|
17
17
|
error: string;
|
|
18
18
|
/**
|
|
@@ -38,7 +38,7 @@ export type GetOauthAuthorizeInternalServerErrorData = {
|
|
|
38
38
|
*/
|
|
39
39
|
export class GetOauthAuthorizeInternalServerError extends SDKError {
|
|
40
40
|
/**
|
|
41
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
41
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
42
42
|
*/
|
|
43
43
|
error: string;
|
|
44
44
|
/**
|
|
@@ -80,7 +80,7 @@ export class GetOauthAuthorizeInternalServerError extends SDKError {
|
|
|
80
80
|
*/
|
|
81
81
|
export type GetOauthAuthorizeTooManyRequestsErrorData = {
|
|
82
82
|
/**
|
|
83
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
83
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
84
84
|
*/
|
|
85
85
|
error: string;
|
|
86
86
|
/**
|
|
@@ -106,7 +106,7 @@ export type GetOauthAuthorizeTooManyRequestsErrorData = {
|
|
|
106
106
|
*/
|
|
107
107
|
export class GetOauthAuthorizeTooManyRequestsError extends SDKError {
|
|
108
108
|
/**
|
|
109
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
109
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
110
110
|
*/
|
|
111
111
|
error: string;
|
|
112
112
|
/**
|
|
@@ -148,7 +148,7 @@ export class GetOauthAuthorizeTooManyRequestsError extends SDKError {
|
|
|
148
148
|
*/
|
|
149
149
|
export type GetOauthAuthorizeBadRequestErrorData = {
|
|
150
150
|
/**
|
|
151
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
151
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
152
152
|
*/
|
|
153
153
|
error: string;
|
|
154
154
|
/**
|
|
@@ -174,7 +174,7 @@ export type GetOauthAuthorizeBadRequestErrorData = {
|
|
|
174
174
|
*/
|
|
175
175
|
export class GetOauthAuthorizeBadRequestError extends SDKError {
|
|
176
176
|
/**
|
|
177
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
177
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
178
178
|
*/
|
|
179
179
|
error: string;
|
|
180
180
|
/**
|
|
@@ -13,7 +13,7 @@ import { SDKError } from "./sdk-error.js";
|
|
|
13
13
|
*/
|
|
14
14
|
export type GetOauthUserinfoServiceUnavailableErrorData = {
|
|
15
15
|
/**
|
|
16
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
16
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
17
17
|
*/
|
|
18
18
|
error: string;
|
|
19
19
|
/**
|
|
@@ -39,7 +39,7 @@ export type GetOauthUserinfoServiceUnavailableErrorData = {
|
|
|
39
39
|
*/
|
|
40
40
|
export class GetOauthUserinfoServiceUnavailableError extends SDKError {
|
|
41
41
|
/**
|
|
42
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
42
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
43
43
|
*/
|
|
44
44
|
error: string;
|
|
45
45
|
/**
|
|
@@ -81,7 +81,7 @@ export class GetOauthUserinfoServiceUnavailableError extends SDKError {
|
|
|
81
81
|
*/
|
|
82
82
|
export type GetOauthUserinfoInternalServerErrorData = {
|
|
83
83
|
/**
|
|
84
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
84
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
85
85
|
*/
|
|
86
86
|
error: string;
|
|
87
87
|
/**
|
|
@@ -107,7 +107,7 @@ export type GetOauthUserinfoInternalServerErrorData = {
|
|
|
107
107
|
*/
|
|
108
108
|
export class GetOauthUserinfoInternalServerError extends SDKError {
|
|
109
109
|
/**
|
|
110
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
110
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
111
111
|
*/
|
|
112
112
|
error: string;
|
|
113
113
|
/**
|
|
@@ -198,7 +198,7 @@ export class GetOauthUserinfoUpdateRequiredError extends SDKError {
|
|
|
198
198
|
*/
|
|
199
199
|
export type GetOauthUserinfoUnauthorizedErrorData = {
|
|
200
200
|
/**
|
|
201
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
201
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
202
202
|
*/
|
|
203
203
|
error: string;
|
|
204
204
|
/**
|
|
@@ -224,7 +224,7 @@ export type GetOauthUserinfoUnauthorizedErrorData = {
|
|
|
224
224
|
*/
|
|
225
225
|
export class GetOauthUserinfoUnauthorizedError extends SDKError {
|
|
226
226
|
/**
|
|
227
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
227
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
228
228
|
*/
|
|
229
229
|
error: string;
|
|
230
230
|
/**
|
|
@@ -266,7 +266,7 @@ export class GetOauthUserinfoUnauthorizedError extends SDKError {
|
|
|
266
266
|
*/
|
|
267
267
|
export type GetOauthUserinfoBadRequestErrorData = {
|
|
268
268
|
/**
|
|
269
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
269
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
270
270
|
*/
|
|
271
271
|
error: string;
|
|
272
272
|
/**
|
|
@@ -292,7 +292,7 @@ export type GetOauthUserinfoBadRequestErrorData = {
|
|
|
292
292
|
*/
|
|
293
293
|
export class GetOauthUserinfoBadRequestError extends SDKError {
|
|
294
294
|
/**
|
|
295
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
295
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
296
296
|
*/
|
|
297
297
|
error: string;
|
|
298
298
|
/**
|
|
@@ -62,7 +62,7 @@ export class GetPassportHomeUpdateRequiredError extends SDKError {
|
|
|
62
62
|
*/
|
|
63
63
|
export type GetPassportHomeUnauthorizedErrorData = {
|
|
64
64
|
/**
|
|
65
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
65
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
66
66
|
*/
|
|
67
67
|
error: string;
|
|
68
68
|
/**
|
|
@@ -88,7 +88,7 @@ export type GetPassportHomeUnauthorizedErrorData = {
|
|
|
88
88
|
*/
|
|
89
89
|
export class GetPassportHomeUnauthorizedError extends SDKError {
|
|
90
90
|
/**
|
|
91
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
91
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
92
92
|
*/
|
|
93
93
|
error: string;
|
|
94
94
|
/**
|
|
@@ -62,7 +62,7 @@ export class GetPassportSignInUpdateRequiredError extends SDKError {
|
|
|
62
62
|
*/
|
|
63
63
|
export type GetPassportSignInUnauthorizedErrorData = {
|
|
64
64
|
/**
|
|
65
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
65
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
66
66
|
*/
|
|
67
67
|
error: string;
|
|
68
68
|
/**
|
|
@@ -88,7 +88,7 @@ export type GetPassportSignInUnauthorizedErrorData = {
|
|
|
88
88
|
*/
|
|
89
89
|
export class GetPassportSignInUnauthorizedError extends SDKError {
|
|
90
90
|
/**
|
|
91
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
91
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
92
92
|
*/
|
|
93
93
|
error: string;
|
|
94
94
|
/**
|
|
@@ -10,6 +10,8 @@ export * from "./get-passport-home.js";
|
|
|
10
10
|
export * from "./get-passport-sign-in.js";
|
|
11
11
|
export * from "./http-client-errors.js";
|
|
12
12
|
export * from "./o-auth-error-response.js";
|
|
13
|
+
export * from "./post-approvals-by-approval-id-approve.js";
|
|
14
|
+
export * from "./post-approvals-by-approval-id-reject.js";
|
|
13
15
|
export * from "./post-eligibility-check.js";
|
|
14
16
|
export * from "./post-oauth-par.js";
|
|
15
17
|
export * from "./post-oauth-revoke.js";
|
|
@@ -9,7 +9,7 @@ import { SDKError } from "./sdk-error.js";
|
|
|
9
9
|
|
|
10
10
|
export type OAuthErrorResponseData = {
|
|
11
11
|
/**
|
|
12
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
12
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
13
13
|
*/
|
|
14
14
|
error: string;
|
|
15
15
|
/**
|
|
@@ -32,7 +32,7 @@ export type OAuthErrorResponseData = {
|
|
|
32
32
|
|
|
33
33
|
export class OAuthErrorResponse extends SDKError {
|
|
34
34
|
/**
|
|
35
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
35
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
36
36
|
*/
|
|
37
37
|
error: string;
|
|
38
38
|
/**
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
8
|
+
import * as operations from "../operations/index.js";
|
|
9
|
+
import { SDKError } from "./sdk-error.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Response
|
|
13
|
+
*/
|
|
14
|
+
export type PostApprovalsByApprovalIdApproveUpdateRequiredErrorData = {
|
|
15
|
+
error: operations.PostApprovalsByApprovalIdApproveError;
|
|
16
|
+
/**
|
|
17
|
+
* Human-readable error description
|
|
18
|
+
*/
|
|
19
|
+
errorDescription: string;
|
|
20
|
+
/**
|
|
21
|
+
* Minimum extension version this server accepts. Present only when the presented version was below it.
|
|
22
|
+
*/
|
|
23
|
+
minimumVersion?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Response
|
|
28
|
+
*/
|
|
29
|
+
export class PostApprovalsByApprovalIdApproveUpdateRequiredError
|
|
30
|
+
extends SDKError
|
|
31
|
+
{
|
|
32
|
+
error: operations.PostApprovalsByApprovalIdApproveError;
|
|
33
|
+
/**
|
|
34
|
+
* Human-readable error description
|
|
35
|
+
*/
|
|
36
|
+
errorDescription: string;
|
|
37
|
+
/**
|
|
38
|
+
* Minimum extension version this server accepts. Present only when the presented version was below it.
|
|
39
|
+
*/
|
|
40
|
+
minimumVersion?: string | undefined;
|
|
41
|
+
|
|
42
|
+
/** The original data that was passed to this error instance. */
|
|
43
|
+
data$: PostApprovalsByApprovalIdApproveUpdateRequiredErrorData;
|
|
44
|
+
|
|
45
|
+
constructor(
|
|
46
|
+
err: PostApprovalsByApprovalIdApproveUpdateRequiredErrorData,
|
|
47
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
48
|
+
) {
|
|
49
|
+
const message = "message" in err && typeof err.message === "string"
|
|
50
|
+
? err.message
|
|
51
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
52
|
+
super(message, httpMeta);
|
|
53
|
+
this.data$ = err;
|
|
54
|
+
this.error = err.error;
|
|
55
|
+
this.errorDescription = err.errorDescription;
|
|
56
|
+
if (err.minimumVersion != null) this.minimumVersion = err.minimumVersion;
|
|
57
|
+
|
|
58
|
+
this.name = "PostApprovalsByApprovalIdApproveUpdateRequiredError";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const PostApprovalsByApprovalIdApproveUpdateRequiredError$inboundSchema:
|
|
64
|
+
z.ZodMiniType<PostApprovalsByApprovalIdApproveUpdateRequiredError, unknown> =
|
|
65
|
+
z.pipe(
|
|
66
|
+
z.object({
|
|
67
|
+
error: operations.PostApprovalsByApprovalIdApproveError$inboundSchema,
|
|
68
|
+
error_description: types.string(),
|
|
69
|
+
minimum_version: types.optional(types.string()),
|
|
70
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
71
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
72
|
+
body$: z.string(),
|
|
73
|
+
}),
|
|
74
|
+
z.transform((v) => {
|
|
75
|
+
const remapped = remap$(v, {
|
|
76
|
+
"error_description": "errorDescription",
|
|
77
|
+
"minimum_version": "minimumVersion",
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
return new PostApprovalsByApprovalIdApproveUpdateRequiredError(
|
|
81
|
+
remapped,
|
|
82
|
+
{ request: v.request$, response: v.response$, body: v.body$ },
|
|
83
|
+
);
|
|
84
|
+
}),
|
|
85
|
+
);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
8
|
+
import * as operations from "../operations/index.js";
|
|
9
|
+
import { SDKError } from "./sdk-error.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Response
|
|
13
|
+
*/
|
|
14
|
+
export type PostApprovalsByApprovalIdRejectUpdateRequiredErrorData = {
|
|
15
|
+
error: operations.PostApprovalsByApprovalIdRejectError;
|
|
16
|
+
/**
|
|
17
|
+
* Human-readable error description
|
|
18
|
+
*/
|
|
19
|
+
errorDescription: string;
|
|
20
|
+
/**
|
|
21
|
+
* Minimum extension version this server accepts. Present only when the presented version was below it.
|
|
22
|
+
*/
|
|
23
|
+
minimumVersion?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Response
|
|
28
|
+
*/
|
|
29
|
+
export class PostApprovalsByApprovalIdRejectUpdateRequiredError
|
|
30
|
+
extends SDKError
|
|
31
|
+
{
|
|
32
|
+
error: operations.PostApprovalsByApprovalIdRejectError;
|
|
33
|
+
/**
|
|
34
|
+
* Human-readable error description
|
|
35
|
+
*/
|
|
36
|
+
errorDescription: string;
|
|
37
|
+
/**
|
|
38
|
+
* Minimum extension version this server accepts. Present only when the presented version was below it.
|
|
39
|
+
*/
|
|
40
|
+
minimumVersion?: string | undefined;
|
|
41
|
+
|
|
42
|
+
/** The original data that was passed to this error instance. */
|
|
43
|
+
data$: PostApprovalsByApprovalIdRejectUpdateRequiredErrorData;
|
|
44
|
+
|
|
45
|
+
constructor(
|
|
46
|
+
err: PostApprovalsByApprovalIdRejectUpdateRequiredErrorData,
|
|
47
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
48
|
+
) {
|
|
49
|
+
const message = "message" in err && typeof err.message === "string"
|
|
50
|
+
? err.message
|
|
51
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
52
|
+
super(message, httpMeta);
|
|
53
|
+
this.data$ = err;
|
|
54
|
+
this.error = err.error;
|
|
55
|
+
this.errorDescription = err.errorDescription;
|
|
56
|
+
if (err.minimumVersion != null) this.minimumVersion = err.minimumVersion;
|
|
57
|
+
|
|
58
|
+
this.name = "PostApprovalsByApprovalIdRejectUpdateRequiredError";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const PostApprovalsByApprovalIdRejectUpdateRequiredError$inboundSchema:
|
|
64
|
+
z.ZodMiniType<PostApprovalsByApprovalIdRejectUpdateRequiredError, unknown> = z
|
|
65
|
+
.pipe(
|
|
66
|
+
z.object({
|
|
67
|
+
error: operations.PostApprovalsByApprovalIdRejectError$inboundSchema,
|
|
68
|
+
error_description: types.string(),
|
|
69
|
+
minimum_version: types.optional(types.string()),
|
|
70
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
71
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
72
|
+
body$: z.string(),
|
|
73
|
+
}),
|
|
74
|
+
z.transform((v) => {
|
|
75
|
+
const remapped = remap$(v, {
|
|
76
|
+
"error_description": "errorDescription",
|
|
77
|
+
"minimum_version": "minimumVersion",
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
return new PostApprovalsByApprovalIdRejectUpdateRequiredError(
|
|
81
|
+
remapped,
|
|
82
|
+
{ request: v.request$, response: v.response$, body: v.body$ },
|
|
83
|
+
);
|
|
84
|
+
}),
|
|
85
|
+
);
|