@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
|
@@ -0,0 +1,207 @@
|
|
|
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 { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
12
|
+
|
|
13
|
+
export type PostApprovalsByApprovalIdRejectRequestBody = {};
|
|
14
|
+
|
|
15
|
+
export type PostApprovalsByApprovalIdRejectRequest = {
|
|
16
|
+
approvalId: string;
|
|
17
|
+
body?: PostApprovalsByApprovalIdRejectRequestBody | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const PostApprovalsByApprovalIdRejectError = {
|
|
21
|
+
UpdateRequired: "update_required",
|
|
22
|
+
} as const;
|
|
23
|
+
export type PostApprovalsByApprovalIdRejectError = ClosedEnum<
|
|
24
|
+
typeof PostApprovalsByApprovalIdRejectError
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* How the approval is to be decided.
|
|
29
|
+
*/
|
|
30
|
+
export const PostApprovalsByApprovalIdRejectMethod = {
|
|
31
|
+
Session: "session",
|
|
32
|
+
Passkey: "passkey",
|
|
33
|
+
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* How the approval is to be decided.
|
|
36
|
+
*/
|
|
37
|
+
export type PostApprovalsByApprovalIdRejectMethod = OpenEnum<
|
|
38
|
+
typeof PostApprovalsByApprovalIdRejectMethod
|
|
39
|
+
>;
|
|
40
|
+
|
|
41
|
+
export const PostApprovalsByApprovalIdRejectStatus = {
|
|
42
|
+
Requested: "requested",
|
|
43
|
+
Approved: "approved",
|
|
44
|
+
Consumed: "consumed",
|
|
45
|
+
Rejected: "rejected",
|
|
46
|
+
Expired: "expired",
|
|
47
|
+
Withdrawn: "withdrawn",
|
|
48
|
+
} as const;
|
|
49
|
+
export type PostApprovalsByApprovalIdRejectStatus = OpenEnum<
|
|
50
|
+
typeof PostApprovalsByApprovalIdRejectStatus
|
|
51
|
+
>;
|
|
52
|
+
|
|
53
|
+
export const PostApprovalsByApprovalIdRejectFeePayer = {
|
|
54
|
+
User: "user",
|
|
55
|
+
Org: "org",
|
|
56
|
+
Platform: "platform",
|
|
57
|
+
} as const;
|
|
58
|
+
export type PostApprovalsByApprovalIdRejectFeePayer = OpenEnum<
|
|
59
|
+
typeof PostApprovalsByApprovalIdRejectFeePayer
|
|
60
|
+
>;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* ApprovalResponse. Validated server-side against ApprovalResponseSchema from @signum-tech/contracts before it is sent.
|
|
64
|
+
*/
|
|
65
|
+
export type PostApprovalsByApprovalIdRejectResponse = {
|
|
66
|
+
id: string;
|
|
67
|
+
intentId: string;
|
|
68
|
+
/**
|
|
69
|
+
* The organization the approval belongs to; null for a personal approval.
|
|
70
|
+
*/
|
|
71
|
+
orgId: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* How the approval is to be decided.
|
|
74
|
+
*/
|
|
75
|
+
method: PostApprovalsByApprovalIdRejectMethod;
|
|
76
|
+
status: PostApprovalsByApprovalIdRejectStatus;
|
|
77
|
+
/**
|
|
78
|
+
* The requester's stated purpose, as plain text.
|
|
79
|
+
*/
|
|
80
|
+
purpose: string;
|
|
81
|
+
/**
|
|
82
|
+
* The origin the request came from, when the requester sent one.
|
|
83
|
+
*/
|
|
84
|
+
sourceOrigin: string | null;
|
|
85
|
+
feePayer: PostApprovalsByApprovalIdRejectFeePayer;
|
|
86
|
+
/**
|
|
87
|
+
* ISO 8601 UTC time, millisecond precision.
|
|
88
|
+
*/
|
|
89
|
+
createdAt: string;
|
|
90
|
+
/**
|
|
91
|
+
* ISO 8601 UTC time, millisecond precision.
|
|
92
|
+
*/
|
|
93
|
+
expiresAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* ISO 8601 UTC time, millisecond precision. Null until the approval is decided.
|
|
96
|
+
*/
|
|
97
|
+
decidedAt: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* ISO 8601 UTC time, millisecond precision. Null until the approval is consumed.
|
|
100
|
+
*/
|
|
101
|
+
consumedAt: string | null;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type PostApprovalsByApprovalIdRejectRequestBody$Outbound = {};
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const PostApprovalsByApprovalIdRejectRequestBody$outboundSchema:
|
|
109
|
+
z.ZodMiniType<
|
|
110
|
+
PostApprovalsByApprovalIdRejectRequestBody$Outbound,
|
|
111
|
+
PostApprovalsByApprovalIdRejectRequestBody
|
|
112
|
+
> = z.object({});
|
|
113
|
+
|
|
114
|
+
export function postApprovalsByApprovalIdRejectRequestBodyToJSON(
|
|
115
|
+
postApprovalsByApprovalIdRejectRequestBody:
|
|
116
|
+
PostApprovalsByApprovalIdRejectRequestBody,
|
|
117
|
+
): string {
|
|
118
|
+
return JSON.stringify(
|
|
119
|
+
PostApprovalsByApprovalIdRejectRequestBody$outboundSchema.parse(
|
|
120
|
+
postApprovalsByApprovalIdRejectRequestBody,
|
|
121
|
+
),
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export type PostApprovalsByApprovalIdRejectRequest$Outbound = {
|
|
127
|
+
approvalId: string;
|
|
128
|
+
body?: PostApprovalsByApprovalIdRejectRequestBody$Outbound | undefined;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const PostApprovalsByApprovalIdRejectRequest$outboundSchema:
|
|
133
|
+
z.ZodMiniType<
|
|
134
|
+
PostApprovalsByApprovalIdRejectRequest$Outbound,
|
|
135
|
+
PostApprovalsByApprovalIdRejectRequest
|
|
136
|
+
> = z.object({
|
|
137
|
+
approvalId: z.string(),
|
|
138
|
+
body: z.optional(
|
|
139
|
+
z.lazy(() => PostApprovalsByApprovalIdRejectRequestBody$outboundSchema),
|
|
140
|
+
),
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export function postApprovalsByApprovalIdRejectRequestToJSON(
|
|
144
|
+
postApprovalsByApprovalIdRejectRequest:
|
|
145
|
+
PostApprovalsByApprovalIdRejectRequest,
|
|
146
|
+
): string {
|
|
147
|
+
return JSON.stringify(
|
|
148
|
+
PostApprovalsByApprovalIdRejectRequest$outboundSchema.parse(
|
|
149
|
+
postApprovalsByApprovalIdRejectRequest,
|
|
150
|
+
),
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const PostApprovalsByApprovalIdRejectError$inboundSchema: z.ZodMiniEnum<
|
|
156
|
+
typeof PostApprovalsByApprovalIdRejectError
|
|
157
|
+
> = z.enum(PostApprovalsByApprovalIdRejectError);
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const PostApprovalsByApprovalIdRejectMethod$inboundSchema: z.ZodMiniType<
|
|
161
|
+
PostApprovalsByApprovalIdRejectMethod,
|
|
162
|
+
unknown
|
|
163
|
+
> = openEnums.inboundSchema(PostApprovalsByApprovalIdRejectMethod);
|
|
164
|
+
|
|
165
|
+
/** @internal */
|
|
166
|
+
export const PostApprovalsByApprovalIdRejectStatus$inboundSchema: z.ZodMiniType<
|
|
167
|
+
PostApprovalsByApprovalIdRejectStatus,
|
|
168
|
+
unknown
|
|
169
|
+
> = openEnums.inboundSchema(PostApprovalsByApprovalIdRejectStatus);
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const PostApprovalsByApprovalIdRejectFeePayer$inboundSchema:
|
|
173
|
+
z.ZodMiniType<PostApprovalsByApprovalIdRejectFeePayer, unknown> = openEnums
|
|
174
|
+
.inboundSchema(PostApprovalsByApprovalIdRejectFeePayer);
|
|
175
|
+
|
|
176
|
+
/** @internal */
|
|
177
|
+
export const PostApprovalsByApprovalIdRejectResponse$inboundSchema:
|
|
178
|
+
z.ZodMiniType<PostApprovalsByApprovalIdRejectResponse, unknown> = z.object({
|
|
179
|
+
id: types.string(),
|
|
180
|
+
intentId: types.string(),
|
|
181
|
+
orgId: types.nullable(types.string()),
|
|
182
|
+
method: PostApprovalsByApprovalIdRejectMethod$inboundSchema,
|
|
183
|
+
status: PostApprovalsByApprovalIdRejectStatus$inboundSchema,
|
|
184
|
+
purpose: types.string(),
|
|
185
|
+
sourceOrigin: types.nullable(types.string()),
|
|
186
|
+
feePayer: PostApprovalsByApprovalIdRejectFeePayer$inboundSchema,
|
|
187
|
+
createdAt: types.string(),
|
|
188
|
+
expiresAt: types.string(),
|
|
189
|
+
decidedAt: types.nullable(types.string()),
|
|
190
|
+
consumedAt: types.nullable(types.string()),
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export function postApprovalsByApprovalIdRejectResponseFromJSON(
|
|
194
|
+
jsonString: string,
|
|
195
|
+
): SafeParseResult<
|
|
196
|
+
PostApprovalsByApprovalIdRejectResponse,
|
|
197
|
+
SDKValidationError
|
|
198
|
+
> {
|
|
199
|
+
return safeParse(
|
|
200
|
+
jsonString,
|
|
201
|
+
(x) =>
|
|
202
|
+
PostApprovalsByApprovalIdRejectResponse$inboundSchema.parse(
|
|
203
|
+
JSON.parse(x),
|
|
204
|
+
),
|
|
205
|
+
`Failed to parse 'PostApprovalsByApprovalIdRejectResponse' from JSON`,
|
|
206
|
+
);
|
|
207
|
+
}
|
|
@@ -14,7 +14,7 @@ export type PostEligibilityCheckRequest = {
|
|
|
14
14
|
partnerClientId?: string | undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export type
|
|
17
|
+
export type PostEligibilityCheckReason = {
|
|
18
18
|
gate: string;
|
|
19
19
|
status: string;
|
|
20
20
|
code?: string | undefined;
|
|
@@ -25,7 +25,7 @@ export type PostEligibilityCheckResult = {
|
|
|
25
25
|
eligible: boolean | null;
|
|
26
26
|
requiredLevel: string | null;
|
|
27
27
|
currentLevel: string | null;
|
|
28
|
-
reasons: Array<
|
|
28
|
+
reasons: Array<PostEligibilityCheckReason>;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -63,19 +63,22 @@ export function postEligibilityCheckRequestToJSON(
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/** @internal */
|
|
66
|
-
export const
|
|
66
|
+
export const PostEligibilityCheckReason$inboundSchema: z.ZodMiniType<
|
|
67
|
+
PostEligibilityCheckReason,
|
|
68
|
+
unknown
|
|
69
|
+
> = z.object({
|
|
67
70
|
gate: types.string(),
|
|
68
71
|
status: types.string(),
|
|
69
72
|
code: types.optional(types.string()),
|
|
70
73
|
});
|
|
71
74
|
|
|
72
|
-
export function
|
|
75
|
+
export function postEligibilityCheckReasonFromJSON(
|
|
73
76
|
jsonString: string,
|
|
74
|
-
): SafeParseResult<
|
|
77
|
+
): SafeParseResult<PostEligibilityCheckReason, SDKValidationError> {
|
|
75
78
|
return safeParse(
|
|
76
79
|
jsonString,
|
|
77
|
-
(x) =>
|
|
78
|
-
`Failed to parse '
|
|
80
|
+
(x) => PostEligibilityCheckReason$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'PostEligibilityCheckReason' from JSON`,
|
|
79
82
|
);
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -88,7 +91,7 @@ export const PostEligibilityCheckResult$inboundSchema: z.ZodMiniType<
|
|
|
88
91
|
eligible: types.nullable(types.boolean()),
|
|
89
92
|
requiredLevel: types.nullable(types.string()),
|
|
90
93
|
currentLevel: types.nullable(types.string()),
|
|
91
|
-
reasons: z.array(z.lazy(() =>
|
|
94
|
+
reasons: z.array(z.lazy(() => PostEligibilityCheckReason$inboundSchema)),
|
|
92
95
|
});
|
|
93
96
|
|
|
94
97
|
export function postEligibilityCheckResultFromJSON(
|
package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type PostOrgsByOrgIdAssetsByAssetIdMarketsByMarketIdOrdersRequestBody = {
|
|
|
55
55
|
*/
|
|
56
56
|
size: string;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Your own wallet or the organisation's wallet. Defaults to the organisation's wallet if omitted.
|
|
59
59
|
*/
|
|
60
60
|
makerAddress?: string | undefined;
|
|
61
61
|
};
|
|
@@ -323,6 +323,25 @@ export type PostPreflightIntentsSignedReport = {
|
|
|
323
323
|
[additionalProperties: string]: unknown;
|
|
324
324
|
};
|
|
325
325
|
|
|
326
|
+
export type PostPreflightIntentsIntentEcho = {
|
|
327
|
+
/**
|
|
328
|
+
* The chain the calls run on, an integer, as hashed.
|
|
329
|
+
*/
|
|
330
|
+
chainId: number;
|
|
331
|
+
/**
|
|
332
|
+
* The sender, a lowercase 0x address, as hashed.
|
|
333
|
+
*/
|
|
334
|
+
from: string;
|
|
335
|
+
/**
|
|
336
|
+
* The stored intent's asset id, as asserted by the server, null exactly when result.assetKind is cash, outside the hash.
|
|
337
|
+
*/
|
|
338
|
+
assetId: string | null;
|
|
339
|
+
/**
|
|
340
|
+
* The intent nonce, plain text, as hashed.
|
|
341
|
+
*/
|
|
342
|
+
intentNonce: string;
|
|
343
|
+
};
|
|
344
|
+
|
|
326
345
|
/**
|
|
327
346
|
* Response
|
|
328
347
|
*/
|
|
@@ -338,6 +357,10 @@ export type PostPreflightIntentsResponse = {
|
|
|
338
357
|
* The gateway's signed report, or null when no simulation ran.
|
|
339
358
|
*/
|
|
340
359
|
signedReport: PostPreflightIntentsSignedReport | null;
|
|
360
|
+
/**
|
|
361
|
+
* The chain, sender and nonce this answer is for. Null: not verified or not disclosed, do not sign. On the result read a first-party null comes with empty calls. Recompute result.intentHash from this body alone: the sha256 of the canonical JSON of {v: 1, chainId, from, calls: [{to, data, value}], typedData: [], intentNonce}, with v: 1 and typedData: [] constant. assetId and result.action are asserted by the server and outside the hash. Always null for a partner. Not null is necessary, not sufficient: also compare intentId, resultId, chainId, from, assetId and the decoded calls with the request, require result.status pass and an unexpired result.expiresAt, and treat a consumed intent as unsignable (the result read does not check that).
|
|
362
|
+
*/
|
|
363
|
+
intentEcho: PostPreflightIntentsIntentEcho | null;
|
|
341
364
|
};
|
|
342
365
|
|
|
343
366
|
/** @internal */
|
|
@@ -703,6 +726,27 @@ export function postPreflightIntentsSignedReportFromJSON(
|
|
|
703
726
|
);
|
|
704
727
|
}
|
|
705
728
|
|
|
729
|
+
/** @internal */
|
|
730
|
+
export const PostPreflightIntentsIntentEcho$inboundSchema: z.ZodMiniType<
|
|
731
|
+
PostPreflightIntentsIntentEcho,
|
|
732
|
+
unknown
|
|
733
|
+
> = z.object({
|
|
734
|
+
chainId: types.number(),
|
|
735
|
+
from: types.string(),
|
|
736
|
+
assetId: types.nullable(types.string()),
|
|
737
|
+
intentNonce: types.string(),
|
|
738
|
+
});
|
|
739
|
+
|
|
740
|
+
export function postPreflightIntentsIntentEchoFromJSON(
|
|
741
|
+
jsonString: string,
|
|
742
|
+
): SafeParseResult<PostPreflightIntentsIntentEcho, SDKValidationError> {
|
|
743
|
+
return safeParse(
|
|
744
|
+
jsonString,
|
|
745
|
+
(x) => PostPreflightIntentsIntentEcho$inboundSchema.parse(JSON.parse(x)),
|
|
746
|
+
`Failed to parse 'PostPreflightIntentsIntentEcho' from JSON`,
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
|
|
706
750
|
/** @internal */
|
|
707
751
|
export const PostPreflightIntentsResponse$inboundSchema: z.ZodMiniType<
|
|
708
752
|
PostPreflightIntentsResponse,
|
|
@@ -715,6 +759,9 @@ export const PostPreflightIntentsResponse$inboundSchema: z.ZodMiniType<
|
|
|
715
759
|
signedReport: types.nullable(
|
|
716
760
|
z.lazy(() => PostPreflightIntentsSignedReport$inboundSchema),
|
|
717
761
|
),
|
|
762
|
+
intentEcho: types.nullable(
|
|
763
|
+
z.lazy(() => PostPreflightIntentsIntentEcho$inboundSchema),
|
|
764
|
+
),
|
|
718
765
|
});
|
|
719
766
|
|
|
720
767
|
export function postPreflightIntentsResponseFromJSON(
|
package/src/sdk/accounts.ts
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import { accountsDeleteAccountsEvmByAddress } from "../funcs/accounts-delete-accounts-evm-by-address.js";
|
|
6
6
|
import { accountsDeleteAccountsSolanaByAddress } from "../funcs/accounts-delete-accounts-solana-by-address.js";
|
|
7
|
+
import { accountsGetAccountsCashAssets } from "../funcs/accounts-get-accounts-cash-assets.js";
|
|
7
8
|
import { accountsGetAccountsEvm } from "../funcs/accounts-get-accounts-evm.js";
|
|
9
|
+
import { accountsGetAccountsMovableWallets } from "../funcs/accounts-get-accounts-movable-wallets.js";
|
|
8
10
|
import { accountsGetAccountsSolana } from "../funcs/accounts-get-accounts-solana.js";
|
|
9
11
|
import { accountsGetAccountsSummary } from "../funcs/accounts-get-accounts-summary.js";
|
|
10
12
|
import { accountsGetAccountsWalletsAll } from "../funcs/accounts-get-accounts-wallets-all.js";
|
|
@@ -260,4 +262,36 @@ export class Accounts extends ClientSDK {
|
|
|
260
262
|
options,
|
|
261
263
|
));
|
|
262
264
|
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Cash assets the platform supports
|
|
268
|
+
*
|
|
269
|
+
* @remarks
|
|
270
|
+
* The cash assets (stablecoins) the platform supports, with the token address on each chain. The same for every caller. API keys are refused.
|
|
271
|
+
*/
|
|
272
|
+
async getAccountsCashAssets(
|
|
273
|
+
options?: RequestOptions,
|
|
274
|
+
): Promise<operations.GetAccountsCashAssetsResponse> {
|
|
275
|
+
return unwrapAsync(accountsGetAccountsCashAssets(
|
|
276
|
+
this,
|
|
277
|
+
options,
|
|
278
|
+
));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Wallets the caller may move an asset from
|
|
283
|
+
*
|
|
284
|
+
* @remarks
|
|
285
|
+
* The caller's own wallets, plus the active organization's server wallets when the caller is its admin or operator and the asset is that organization's own issued asset, with each wallet's on-chain balance per chain. An issued asset is found for a member of its organization and for a caller who holds it; for anyone else it is not found. Each wallet has one balance row per chain the asset is deployed on; an issued asset with no deployed chain answers an empty `balances` for every wallet. A balance that could not be read is null with a reason, never zero: an unreadable chain, a token address that is not valid, a failed read, or more wallets and chains than one request reads. `locked` is the part of a read balance under the asset's lockup. An absent `locked` means no lockup, not applicable (cash, organization wallets) or unknown; it is for display only, and the preflight check enforces the lockup. `visibleCount` of `totalCount` says how many of the wallets the asset could be moved from are returned. Rate limited per user (429 with Retry-After). API keys are refused.
|
|
286
|
+
*/
|
|
287
|
+
async getAccountsMovableWallets(
|
|
288
|
+
assetId: string,
|
|
289
|
+
options?: RequestOptions,
|
|
290
|
+
): Promise<operations.GetAccountsMovableWalletsResponse> {
|
|
291
|
+
return unwrapAsync(accountsGetAccountsMovableWallets(
|
|
292
|
+
this,
|
|
293
|
+
assetId,
|
|
294
|
+
options,
|
|
295
|
+
));
|
|
296
|
+
}
|
|
263
297
|
}
|
package/src/sdk/approvals.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { approvalsGetApprovalsByApprovalIdStatus } from "../funcs/approvals-get-approvals-by-approval-id-status.js";
|
|
6
6
|
import { approvalsGetApprovalsByApprovalId } from "../funcs/approvals-get-approvals-by-approval-id.js";
|
|
7
|
+
import { approvalsPostApprovalsByApprovalIdApprove } from "../funcs/approvals-post-approvals-by-approval-id-approve.js";
|
|
8
|
+
import { approvalsPostApprovalsByApprovalIdReject } from "../funcs/approvals-post-approvals-by-approval-id-reject.js";
|
|
7
9
|
import { approvalsPostApprovals } from "../funcs/approvals-post-approvals.js";
|
|
8
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
11
|
import * as operations from "../models/operations/index.js";
|
|
@@ -60,4 +62,42 @@ export class Approvals extends ClientSDK {
|
|
|
60
62
|
options,
|
|
61
63
|
));
|
|
62
64
|
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Approve an approval as its designated approver
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* Consumes the approval and its intent and queues the transfer command in one transaction, then publishes it. Answers 202 {approvalId, status, commandId} as soon as the transaction commits, whether or not the publish succeeded: the body has no published flag, and GET /commands/:commandId is the outcome source. Body: {stepUpChallengeId?} (strict; empty is {}). A verified step-up challenge bound to this approval and this approver is required (409 stepup_required otherwise). A repeat is 409 approval_consumed. 503 approval_contention carries Retry-After and nothing committed; 500 approval_outcome_unknown means the approval may have been consumed: do not retry, read the approval. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
|
|
71
|
+
*/
|
|
72
|
+
async postApprovalsByApprovalIdApprove(
|
|
73
|
+
approvalId: string,
|
|
74
|
+
body?: operations.PostApprovalsByApprovalIdApproveRequestBody | undefined,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<operations.PostApprovalsByApprovalIdApproveResponse> {
|
|
77
|
+
return unwrapAsync(approvalsPostApprovalsByApprovalIdApprove(
|
|
78
|
+
this,
|
|
79
|
+
approvalId,
|
|
80
|
+
body,
|
|
81
|
+
options,
|
|
82
|
+
));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Reject an approval as its designated approver
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Declines a requested approval; its intent can no longer be executed through it. Synchronous 200 with the approval (status rejected). No Kafka. Body: {} (strict; empty is {}). A consumed approval is 409 approval_consumed, a rejected or withdrawn one 409 illegal_transition, an expired one 409 approval_expired. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
|
|
90
|
+
*/
|
|
91
|
+
async postApprovalsByApprovalIdReject(
|
|
92
|
+
approvalId: string,
|
|
93
|
+
body?: operations.PostApprovalsByApprovalIdRejectRequestBody | undefined,
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): Promise<operations.PostApprovalsByApprovalIdRejectResponse> {
|
|
96
|
+
return unwrapAsync(approvalsPostApprovalsByApprovalIdReject(
|
|
97
|
+
this,
|
|
98
|
+
approvalId,
|
|
99
|
+
body,
|
|
100
|
+
options,
|
|
101
|
+
));
|
|
102
|
+
}
|
|
63
103
|
}
|
package/src/sdk/assets.ts
CHANGED
|
@@ -50,7 +50,7 @@ export class Assets extends ClientSDK {
|
|
|
50
50
|
* Create a new asset
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals.
|
|
53
|
+
* Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed.
|
|
54
54
|
*/
|
|
55
55
|
async postOrgsByOrgIdAssets(
|
|
56
56
|
security: operations.PostOrgsByOrgIdAssetsSecurity,
|
|
@@ -92,7 +92,7 @@ export class Assets extends ClientSDK {
|
|
|
92
92
|
* Update asset
|
|
93
93
|
*
|
|
94
94
|
* @remarks
|
|
95
|
-
* Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
|
|
95
|
+
* Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
|
|
96
96
|
*/
|
|
97
97
|
async patchOrgsByOrgIdAssetsByAssetId(
|
|
98
98
|
security: operations.PatchOrgsByOrgIdAssetsByAssetIdSecurity,
|
package/src/sdk/attestations.ts
CHANGED
|
@@ -67,7 +67,7 @@ export class Attestations extends ClientSDK {
|
|
|
67
67
|
* Revoke attestation (async)
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted
|
|
70
|
+
* Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted. Poll GET /attestations/:id to track the revocation status. 503 with Retry-After: the signing organisation could not be read and nothing was written; retry after that many seconds. 503 without Retry-After: the revocation is recorded but its command was not confirmed sent; do not retry (a retry answers 400).
|
|
71
71
|
*/
|
|
72
72
|
async deleteAttestationsById(
|
|
73
73
|
id: string,
|
package/src/sdk/commands.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class Commands extends ClientSDK {
|
|
|
12
12
|
* Get command lifecycle
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source")
|
|
15
|
+
* Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source"). For a final, whole cross-chain transfer to a tracked dstChainEid, delivery reports the destination leg: state is pending | delivered | needs_attention | undeliverable. delivered = the destination credit booked from a finalized block for the same guid, quantity and recipient; dstTxHash is set if and only if state is delivered. delivered can read pending again if the destination cursor is reset, so a client that treats delivered as final must keep the first delivered answer. delivery is null for every other command, including an untracked destination. unconfirmed is a non-terminal flag (no_broadcast_seen | dropped | stuck_unmined) and is null once the command is terminal. partial = final with another tx of the command reverted or failed.
|
|
16
16
|
*/
|
|
17
17
|
async getCommandsByCommandId(
|
|
18
18
|
commandId: string,
|
package/src/sdk/compliance.ts
CHANGED
|
@@ -38,7 +38,7 @@ export class Compliance extends ClientSDK {
|
|
|
38
38
|
* Update asset compliance policy
|
|
39
39
|
*
|
|
40
40
|
* @remarks
|
|
41
|
-
* Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart.
|
|
41
|
+
* Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. On an edit the local policy update is committed in every one of them, including publish_failed. A body with only chain_eid publishes the stored policy, writes nothing and answers updated: false. The caller must also have access to the organization that owns the asset. A blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
|
|
42
42
|
*/
|
|
43
43
|
async postOrgsByOrgIdAssetsByAssetIdCompliancePolicy(
|
|
44
44
|
security: operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicySecurity,
|
package/src/sdk/organizations.ts
CHANGED
|
@@ -1086,7 +1086,7 @@ export class Organizations extends ClientSDK {
|
|
|
1086
1086
|
* Update organization compliance config
|
|
1087
1087
|
*
|
|
1088
1088
|
* @remarks
|
|
1089
|
-
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role.
|
|
1089
|
+
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
|
|
1090
1090
|
*/
|
|
1091
1091
|
async putOrgsByOrgIdCompliance(
|
|
1092
1092
|
orgId: string,
|