@clossir-tech/ts-sdk 0.10.4 → 0.10.6
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 +30 -24
- package/esm/funcs/assets-get-assets-by-asset-id.d.ts +2 -2
- package/esm/funcs/assets-get-assets-by-asset-id.js +3 -3
- package/esm/funcs/assets-get-assets-by-asset-id.js.map +1 -1
- package/esm/funcs/assets-get-assets.d.ts +2 -2
- package/esm/funcs/assets-get-assets.js +3 -3
- package/esm/funcs/assets-get-assets.js.map +1 -1
- 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 +2 -4
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.d.ts +1 -1
- package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.js +1 -1
- package/esm/funcs/commands-get-commands-by-command-id.d.ts +20 -0
- package/esm/funcs/commands-get-commands-by-command-id.d.ts.map +1 -0
- package/esm/funcs/commands-get-commands-by-command-id.js +98 -0
- package/esm/funcs/commands-get-commands-by-command-id.js.map +1 -0
- package/esm/funcs/o-auth-get-oauth-authorize.d.ts +1 -1
- package/esm/funcs/o-auth-get-oauth-authorize.js +2 -1
- package/esm/funcs/o-auth-get-oauth-authorize.js.map +1 -1
- package/esm/funcs/o-auth-post-oauth-par.d.ts +18 -0
- package/esm/funcs/o-auth-post-oauth-par.d.ts.map +1 -0
- package/esm/funcs/{o-auth-post-oauth-authorize-callback.js → o-auth-post-oauth-par.js} +15 -11
- package/esm/funcs/o-auth-post-oauth-par.js.map +1 -0
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts +2 -2
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts.map +1 -1
- package/esm/funcs/o-auth-post-oauth-revoke.js +4 -2
- package/esm/funcs/o-auth-post-oauth-revoke.js.map +1 -1
- package/esm/funcs/o-auth-post-oauth-token.d.ts +1 -1
- package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
- package/esm/funcs/o-auth-post-oauth-token.js +3 -1
- package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-attestations.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-attestations.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members-by-user-id-holdings.js +3 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members-by-user-id-holdings.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-summary.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-summary.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-balance-summary.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-balance-summary.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-holdings.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-holdings.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js +4 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users.js +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users.js.map +1 -1
- package/esm/funcs/transfers-get-transfers.d.ts +1 -1
- package/esm/funcs/transfers-get-transfers.js +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 +4 -4
- package/esm/models/errors/get-oauth-userinfo.js +2 -2
- package/esm/models/errors/index.d.ts +1 -1
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -1
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/errors/{post-oauth-authorize-callback.d.ts → post-oauth-par.d.ts} +84 -29
- package/esm/models/errors/post-oauth-par.d.ts.map +1 -0
- package/esm/models/errors/{post-oauth-authorize-callback.js → post-oauth-par.js} +79 -23
- package/esm/models/errors/post-oauth-par.js.map +1 -0
- package/esm/models/errors/post-oauth-revoke.d.ts +15 -15
- package/esm/models/errors/post-oauth-revoke.d.ts.map +1 -1
- package/esm/models/errors/post-oauth-revoke.js +9 -9
- package/esm/models/errors/post-oauth-revoke.js.map +1 -1
- package/esm/models/errors/post-oauth-token.d.ts +6 -6
- package/esm/models/errors/post-oauth-token.js +3 -3
- package/esm/models/operations/get-assets-by-asset-id.d.ts +53 -0
- package/esm/models/operations/get-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/get-assets-by-asset-id.js +35 -0
- package/esm/models/operations/get-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/get-assets.d.ts +55 -2
- package/esm/models/operations/get-assets.d.ts.map +1 -1
- package/esm/models/operations/get-assets.js +35 -0
- package/esm/models/operations/get-assets.js.map +1 -1
- package/esm/models/operations/get-commands-by-command-id.d.ts +91 -0
- package/esm/models/operations/get-commands-by-command-id.d.ts.map +1 -0
- package/esm/models/operations/get-commands-by-command-id.js +73 -0
- package/esm/models/operations/get-commands-by-command-id.js.map +1 -0
- package/esm/models/operations/get-oauth-authorize.d.ts +6 -1
- package/esm/models/operations/get-oauth-authorize.d.ts.map +1 -1
- package/esm/models/operations/get-oauth-authorize.js +2 -0
- package/esm/models/operations/get-oauth-authorize.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +17 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js +11 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts +17 -0
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.js +10 -0
- package/esm/models/operations/get-orgs-by-org-id-assets.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts +1 -0
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.js +8 -2
- package/esm/models/operations/get-orgs-by-org-id-issuer.js.map +1 -1
- package/esm/models/operations/get-orgs-permission-scopes.d.ts +21 -1
- package/esm/models/operations/get-orgs-permission-scopes.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-permission-scopes.js +3 -1
- package/esm/models/operations/get-orgs-permission-scopes.js.map +1 -1
- package/esm/models/operations/index.d.ts +2 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +2 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts +18 -0
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js +10 -0
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/post-oauth-par.d.ts +98 -0
- package/esm/models/operations/post-oauth-par.d.ts.map +1 -0
- package/esm/models/operations/post-oauth-par.js +53 -0
- package/esm/models/operations/post-oauth-par.js.map +1 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts +1 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js +1 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.d.ts +1 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.js +1 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.d.ts +1 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.js +1 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.d.ts +11 -0
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.js +9 -0
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.js.map +1 -1
- package/esm/models/operations/post-transfers.d.ts +1 -0
- package/esm/models/operations/post-transfers.d.ts.map +1 -1
- package/esm/models/operations/post-transfers.js +1 -0
- package/esm/models/operations/post-transfers.js.map +1 -1
- package/esm/sdk/assets.d.ts +5 -5
- package/esm/sdk/assets.js +5 -5
- package/esm/sdk/bridge.d.ts +1 -1
- package/esm/sdk/bridge.js +1 -1
- package/esm/sdk/commands.d.ts +12 -0
- package/esm/sdk/commands.d.ts.map +1 -0
- package/esm/sdk/commands.js +18 -0
- package/esm/sdk/commands.js.map +1 -0
- package/esm/sdk/o-auth.d.ts +5 -5
- package/esm/sdk/o-auth.d.ts.map +1 -1
- package/esm/sdk/o-auth.js +7 -7
- package/esm/sdk/o-auth.js.map +1 -1
- package/esm/sdk/organizations.d.ts +13 -4
- package/esm/sdk/organizations.d.ts.map +1 -1
- package/esm/sdk/organizations.js +13 -4
- package/esm/sdk/organizations.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/transfers.d.ts +1 -1
- package/esm/sdk/transfers.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/assets-get-assets-by-asset-id.ts +3 -3
- package/src/funcs/assets-get-assets.ts +3 -3
- package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +6 -4
- package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
- package/src/funcs/{o-auth-post-oauth-authorize-callback.ts → commands-get-commands-by-command-id.ts} +46 -51
- package/src/funcs/o-auth-get-oauth-authorize.ts +2 -1
- package/src/funcs/o-auth-post-oauth-par.ts +191 -0
- package/src/funcs/o-auth-post-oauth-revoke.ts +11 -5
- package/src/funcs/o-auth-post-oauth-token.ts +6 -0
- package/src/funcs/organizations-get-orgs-by-org-id-attestations.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-audit-logs.ts +3 -0
- package/src/funcs/organizations-get-orgs-by-org-id-issuer.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-members-by-user-id-holdings.ts +4 -1
- package/src/funcs/organizations-get-orgs-by-org-id-members.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-summary.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-balance-summary.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-holdings.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.ts +4 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users.ts +3 -0
- package/src/funcs/transfers-get-transfers.ts +1 -1
- 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 +4 -4
- package/src/models/errors/index.ts +1 -1
- package/src/models/errors/post-oauth-par.ts +493 -0
- package/src/models/errors/post-oauth-revoke.ts +40 -42
- package/src/models/errors/post-oauth-token.ts +6 -6
- package/src/models/operations/get-assets-by-asset-id.ts +95 -0
- package/src/models/operations/get-assets.ts +93 -2
- package/src/models/operations/get-commands-by-command-id.ts +199 -0
- package/src/models/operations/get-oauth-authorize.ts +8 -1
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +26 -0
- package/src/models/operations/get-orgs-by-org-id-assets.ts +25 -0
- package/src/models/operations/get-orgs-by-org-id-issuer.ts +14 -4
- package/src/models/operations/get-orgs-permission-scopes.ts +24 -2
- package/src/models/operations/index.ts +2 -1
- package/src/models/operations/patch-orgs-by-org-id-assets-by-asset-id.ts +28 -0
- package/src/models/operations/post-oauth-par.ts +172 -0
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.ts +2 -0
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.ts +2 -0
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.ts +2 -0
- package/src/models/operations/post-orgs-by-org-id-issuer-register.ts +26 -0
- package/src/models/operations/post-transfers.ts +2 -0
- package/src/sdk/assets.ts +5 -5
- package/src/sdk/bridge.ts +1 -1
- package/src/sdk/commands.ts +27 -0
- package/src/sdk/o-auth.ts +9 -9
- package/src/sdk/organizations.ts +13 -4
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transfers.ts +1 -1
- package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts +0 -18
- package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/funcs/o-auth-post-oauth-authorize-callback.js.map +0 -1
- package/esm/models/errors/post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/models/errors/post-oauth-authorize-callback.js.map +0 -1
- package/esm/models/operations/post-oauth-authorize-callback.d.ts +0 -50
- package/esm/models/operations/post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/models/operations/post-oauth-authorize-callback.js +0 -39
- package/esm/models/operations/post-oauth-authorize-callback.js.map +0 -1
- package/src/models/errors/post-oauth-authorize-callback.ts +0 -390
- package/src/models/operations/post-oauth-authorize-callback.ts +0 -113
|
@@ -12,7 +12,7 @@ import { SDKError } from "./sdk-error.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type PostOauthTokenInternalServerErrorData = {
|
|
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, 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, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
16
16
|
*/
|
|
17
17
|
error: string;
|
|
18
18
|
/**
|
|
@@ -38,7 +38,7 @@ export type PostOauthTokenInternalServerErrorData = {
|
|
|
38
38
|
*/
|
|
39
39
|
export class PostOauthTokenInternalServerError 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, 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, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
42
42
|
*/
|
|
43
43
|
error: string;
|
|
44
44
|
/**
|
|
@@ -80,7 +80,7 @@ export class PostOauthTokenInternalServerError extends SDKError {
|
|
|
80
80
|
*/
|
|
81
81
|
export type PostOauthTokenUnauthorizedErrorData = {
|
|
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, 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, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
84
84
|
*/
|
|
85
85
|
error: string;
|
|
86
86
|
/**
|
|
@@ -106,7 +106,7 @@ export type PostOauthTokenUnauthorizedErrorData = {
|
|
|
106
106
|
*/
|
|
107
107
|
export class PostOauthTokenUnauthorizedError 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, 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, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
110
110
|
*/
|
|
111
111
|
error: string;
|
|
112
112
|
/**
|
|
@@ -148,7 +148,7 @@ export class PostOauthTokenUnauthorizedError extends SDKError {
|
|
|
148
148
|
*/
|
|
149
149
|
export type PostOauthTokenBadRequestErrorData = {
|
|
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, 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, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
152
152
|
*/
|
|
153
153
|
error: string;
|
|
154
154
|
/**
|
|
@@ -174,7 +174,7 @@ export type PostOauthTokenBadRequestErrorData = {
|
|
|
174
174
|
*/
|
|
175
175
|
export class PostOauthTokenBadRequestError 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, 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, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
178
178
|
*/
|
|
179
179
|
error: string;
|
|
180
180
|
/**
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import * as types from "../../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
@@ -18,6 +20,20 @@ export type GetAssetsByAssetIdRequest = {
|
|
|
18
20
|
assetId: string;
|
|
19
21
|
};
|
|
20
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
|
|
25
|
+
*/
|
|
26
|
+
export const GetAssetsByAssetIdVisibility = {
|
|
27
|
+
Private: "private",
|
|
28
|
+
Public: "public",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
|
|
32
|
+
*/
|
|
33
|
+
export type GetAssetsByAssetIdVisibility = OpenEnum<
|
|
34
|
+
typeof GetAssetsByAssetIdVisibility
|
|
35
|
+
>;
|
|
36
|
+
|
|
21
37
|
export type GetAssetsByAssetIdDeployment = {
|
|
22
38
|
chainEid: number;
|
|
23
39
|
contractAddress: string | null;
|
|
@@ -35,6 +51,33 @@ export type Compliance = {
|
|
|
35
51
|
transferRestricted?: boolean | null | undefined;
|
|
36
52
|
};
|
|
37
53
|
|
|
54
|
+
/**
|
|
55
|
+
* applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
|
|
56
|
+
*/
|
|
57
|
+
export const GetAssetsByAssetIdStatus = {
|
|
58
|
+
Applied: "applied",
|
|
59
|
+
NoActiveAttestation: "no_active_attestation",
|
|
60
|
+
NotApplicable: "not_applicable",
|
|
61
|
+
} as const;
|
|
62
|
+
/**
|
|
63
|
+
* applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
|
|
64
|
+
*/
|
|
65
|
+
export type GetAssetsByAssetIdStatus = OpenEnum<
|
|
66
|
+
typeof GetAssetsByAssetIdStatus
|
|
67
|
+
>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* How the caller's eligibility narrowed the result
|
|
71
|
+
*/
|
|
72
|
+
export type GetAssetsByAssetIdEligibility = {
|
|
73
|
+
/**
|
|
74
|
+
* applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
|
|
75
|
+
*/
|
|
76
|
+
status: GetAssetsByAssetIdStatus;
|
|
77
|
+
kycLevel: number | null;
|
|
78
|
+
accredited: boolean | null;
|
|
79
|
+
};
|
|
80
|
+
|
|
38
81
|
/**
|
|
39
82
|
* Response
|
|
40
83
|
*/
|
|
@@ -51,6 +94,10 @@ export type GetAssetsByAssetIdResponse = {
|
|
|
51
94
|
decimals?: number | null | undefined;
|
|
52
95
|
status: string;
|
|
53
96
|
orgOnly?: boolean | null | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
|
|
99
|
+
*/
|
|
100
|
+
visibility: GetAssetsByAssetIdVisibility;
|
|
54
101
|
requiredKycLevel?: number | null | undefined;
|
|
55
102
|
maxHolders?: number | null | undefined;
|
|
56
103
|
deployedChains?: Array<number> | null | undefined;
|
|
@@ -63,10 +110,17 @@ export type GetAssetsByAssetIdResponse = {
|
|
|
63
110
|
orgName: string;
|
|
64
111
|
orgLogoUrl?: string | null | undefined;
|
|
65
112
|
orgBannerUrl?: string | null | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* True when the asset belongs to one of the caller's own organizations (a JWT caller's active memberships; an API key's organization)
|
|
115
|
+
*/
|
|
66
116
|
isOwnOrg: boolean;
|
|
67
117
|
heldBalance: string | null;
|
|
68
118
|
deployments: Array<GetAssetsByAssetIdDeployment>;
|
|
69
119
|
compliance: Compliance;
|
|
120
|
+
/**
|
|
121
|
+
* How the caller's eligibility narrowed the result
|
|
122
|
+
*/
|
|
123
|
+
eligibility: GetAssetsByAssetIdEligibility;
|
|
70
124
|
};
|
|
71
125
|
|
|
72
126
|
/** @internal */
|
|
@@ -113,6 +167,12 @@ export function getAssetsByAssetIdRequestToJSON(
|
|
|
113
167
|
);
|
|
114
168
|
}
|
|
115
169
|
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const GetAssetsByAssetIdVisibility$inboundSchema: z.ZodMiniType<
|
|
172
|
+
GetAssetsByAssetIdVisibility,
|
|
173
|
+
unknown
|
|
174
|
+
> = openEnums.inboundSchema(GetAssetsByAssetIdVisibility);
|
|
175
|
+
|
|
116
176
|
/** @internal */
|
|
117
177
|
export const GetAssetsByAssetIdDeployment$inboundSchema: z.ZodMiniType<
|
|
118
178
|
GetAssetsByAssetIdDeployment,
|
|
@@ -177,6 +237,39 @@ export function complianceFromJSON(
|
|
|
177
237
|
);
|
|
178
238
|
}
|
|
179
239
|
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const GetAssetsByAssetIdStatus$inboundSchema: z.ZodMiniType<
|
|
242
|
+
GetAssetsByAssetIdStatus,
|
|
243
|
+
unknown
|
|
244
|
+
> = openEnums.inboundSchema(GetAssetsByAssetIdStatus);
|
|
245
|
+
|
|
246
|
+
/** @internal */
|
|
247
|
+
export const GetAssetsByAssetIdEligibility$inboundSchema: z.ZodMiniType<
|
|
248
|
+
GetAssetsByAssetIdEligibility,
|
|
249
|
+
unknown
|
|
250
|
+
> = z.pipe(
|
|
251
|
+
z.object({
|
|
252
|
+
status: GetAssetsByAssetIdStatus$inboundSchema,
|
|
253
|
+
kyc_level: types.nullable(types.number()),
|
|
254
|
+
accredited: types.nullable(types.boolean()),
|
|
255
|
+
}),
|
|
256
|
+
z.transform((v) => {
|
|
257
|
+
return remap$(v, {
|
|
258
|
+
"kyc_level": "kycLevel",
|
|
259
|
+
});
|
|
260
|
+
}),
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
export function getAssetsByAssetIdEligibilityFromJSON(
|
|
264
|
+
jsonString: string,
|
|
265
|
+
): SafeParseResult<GetAssetsByAssetIdEligibility, SDKValidationError> {
|
|
266
|
+
return safeParse(
|
|
267
|
+
jsonString,
|
|
268
|
+
(x) => GetAssetsByAssetIdEligibility$inboundSchema.parse(JSON.parse(x)),
|
|
269
|
+
`Failed to parse 'GetAssetsByAssetIdEligibility' from JSON`,
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
180
273
|
/** @internal */
|
|
181
274
|
export const GetAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
182
275
|
GetAssetsByAssetIdResponse,
|
|
@@ -195,6 +288,7 @@ export const GetAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
195
288
|
decimals: z.optional(z.nullable(types.number())),
|
|
196
289
|
status: types.string(),
|
|
197
290
|
org_only: z.optional(z.nullable(types.boolean())),
|
|
291
|
+
visibility: GetAssetsByAssetIdVisibility$inboundSchema,
|
|
198
292
|
required_kyc_level: z.optional(z.nullable(types.number())),
|
|
199
293
|
max_holders: z.optional(z.nullable(types.number())),
|
|
200
294
|
deployed_chains: z.optional(z.nullable(z.array(types.number()))),
|
|
@@ -215,6 +309,7 @@ export const GetAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
215
309
|
z.lazy(() => GetAssetsByAssetIdDeployment$inboundSchema),
|
|
216
310
|
),
|
|
217
311
|
compliance: z.lazy(() => Compliance$inboundSchema),
|
|
312
|
+
eligibility: z.lazy(() => GetAssetsByAssetIdEligibility$inboundSchema),
|
|
218
313
|
}),
|
|
219
314
|
z.transform((v) => {
|
|
220
315
|
return remap$(v, {
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import * as types from "../../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
@@ -32,7 +34,7 @@ export type GetAssetsRequest = {
|
|
|
32
34
|
*/
|
|
33
35
|
maxKycLevel?: string | undefined;
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
37
|
+
* When 'false', return only assets that do not require an accredited investor
|
|
36
38
|
*/
|
|
37
39
|
accredited?: string | undefined;
|
|
38
40
|
/**
|
|
@@ -40,7 +42,7 @@ export type GetAssetsRequest = {
|
|
|
40
42
|
*/
|
|
41
43
|
chainEid?: string | undefined;
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
45
|
+
* Deprecated and ignored. Eligibility is always applied to a JWT caller and never to an API key; the response's `eligibility` block says which.
|
|
44
46
|
*/
|
|
45
47
|
eligible?: string | undefined;
|
|
46
48
|
/**
|
|
@@ -53,6 +55,18 @@ export type GetAssetsRequest = {
|
|
|
53
55
|
offset?: string | undefined;
|
|
54
56
|
};
|
|
55
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
|
|
60
|
+
*/
|
|
61
|
+
export const GetAssetsVisibility = {
|
|
62
|
+
Private: "private",
|
|
63
|
+
Public: "public",
|
|
64
|
+
} as const;
|
|
65
|
+
/**
|
|
66
|
+
* Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
|
|
67
|
+
*/
|
|
68
|
+
export type GetAssetsVisibility = OpenEnum<typeof GetAssetsVisibility>;
|
|
69
|
+
|
|
56
70
|
export type GetAssetsAsset = {
|
|
57
71
|
id: string;
|
|
58
72
|
organizationId: string;
|
|
@@ -66,6 +80,10 @@ export type GetAssetsAsset = {
|
|
|
66
80
|
decimals?: number | null | undefined;
|
|
67
81
|
status: string;
|
|
68
82
|
orgOnly?: boolean | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
|
|
85
|
+
*/
|
|
86
|
+
visibility: GetAssetsVisibility;
|
|
69
87
|
requiredKycLevel?: number | null | undefined;
|
|
70
88
|
maxHolders?: number | null | undefined;
|
|
71
89
|
deployedChains?: Array<number> | null | undefined;
|
|
@@ -78,16 +96,48 @@ export type GetAssetsAsset = {
|
|
|
78
96
|
orgName: string;
|
|
79
97
|
orgLogoUrl?: string | null | undefined;
|
|
80
98
|
orgBannerUrl?: string | null | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* True when the asset belongs to one of the caller's own organizations (a JWT caller's active memberships; an API key's organization)
|
|
101
|
+
*/
|
|
81
102
|
isOwnOrg: boolean;
|
|
82
103
|
heldBalance: string | null;
|
|
83
104
|
};
|
|
84
105
|
|
|
106
|
+
/**
|
|
107
|
+
* applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
|
|
108
|
+
*/
|
|
109
|
+
export const GetAssetsStatus = {
|
|
110
|
+
Applied: "applied",
|
|
111
|
+
NoActiveAttestation: "no_active_attestation",
|
|
112
|
+
NotApplicable: "not_applicable",
|
|
113
|
+
} as const;
|
|
114
|
+
/**
|
|
115
|
+
* applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
|
|
116
|
+
*/
|
|
117
|
+
export type GetAssetsStatus = OpenEnum<typeof GetAssetsStatus>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* How the caller's eligibility narrowed the result
|
|
121
|
+
*/
|
|
122
|
+
export type GetAssetsEligibility = {
|
|
123
|
+
/**
|
|
124
|
+
* applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
|
|
125
|
+
*/
|
|
126
|
+
status: GetAssetsStatus;
|
|
127
|
+
kycLevel: number | null;
|
|
128
|
+
accredited: boolean | null;
|
|
129
|
+
};
|
|
130
|
+
|
|
85
131
|
/**
|
|
86
132
|
* Response
|
|
87
133
|
*/
|
|
88
134
|
export type GetAssetsResponse = {
|
|
89
135
|
assets: Array<GetAssetsAsset>;
|
|
90
136
|
total: number;
|
|
137
|
+
/**
|
|
138
|
+
* How the caller's eligibility narrowed the result
|
|
139
|
+
*/
|
|
140
|
+
eligibility: GetAssetsEligibility;
|
|
91
141
|
};
|
|
92
142
|
|
|
93
143
|
/** @internal */
|
|
@@ -159,6 +209,12 @@ export function getAssetsRequestToJSON(
|
|
|
159
209
|
);
|
|
160
210
|
}
|
|
161
211
|
|
|
212
|
+
/** @internal */
|
|
213
|
+
export const GetAssetsVisibility$inboundSchema: z.ZodMiniType<
|
|
214
|
+
GetAssetsVisibility,
|
|
215
|
+
unknown
|
|
216
|
+
> = openEnums.inboundSchema(GetAssetsVisibility);
|
|
217
|
+
|
|
162
218
|
/** @internal */
|
|
163
219
|
export const GetAssetsAsset$inboundSchema: z.ZodMiniType<
|
|
164
220
|
GetAssetsAsset,
|
|
@@ -177,6 +233,7 @@ export const GetAssetsAsset$inboundSchema: z.ZodMiniType<
|
|
|
177
233
|
decimals: z.optional(z.nullable(types.number())),
|
|
178
234
|
status: types.string(),
|
|
179
235
|
org_only: z.optional(z.nullable(types.boolean())),
|
|
236
|
+
visibility: GetAssetsVisibility$inboundSchema,
|
|
180
237
|
required_kyc_level: z.optional(z.nullable(types.number())),
|
|
181
238
|
max_holders: z.optional(z.nullable(types.number())),
|
|
182
239
|
deployed_chains: z.optional(z.nullable(z.array(types.number()))),
|
|
@@ -230,6 +287,39 @@ export function getAssetsAssetFromJSON(
|
|
|
230
287
|
);
|
|
231
288
|
}
|
|
232
289
|
|
|
290
|
+
/** @internal */
|
|
291
|
+
export const GetAssetsStatus$inboundSchema: z.ZodMiniType<
|
|
292
|
+
GetAssetsStatus,
|
|
293
|
+
unknown
|
|
294
|
+
> = openEnums.inboundSchema(GetAssetsStatus);
|
|
295
|
+
|
|
296
|
+
/** @internal */
|
|
297
|
+
export const GetAssetsEligibility$inboundSchema: z.ZodMiniType<
|
|
298
|
+
GetAssetsEligibility,
|
|
299
|
+
unknown
|
|
300
|
+
> = z.pipe(
|
|
301
|
+
z.object({
|
|
302
|
+
status: GetAssetsStatus$inboundSchema,
|
|
303
|
+
kyc_level: types.nullable(types.number()),
|
|
304
|
+
accredited: types.nullable(types.boolean()),
|
|
305
|
+
}),
|
|
306
|
+
z.transform((v) => {
|
|
307
|
+
return remap$(v, {
|
|
308
|
+
"kyc_level": "kycLevel",
|
|
309
|
+
});
|
|
310
|
+
}),
|
|
311
|
+
);
|
|
312
|
+
|
|
313
|
+
export function getAssetsEligibilityFromJSON(
|
|
314
|
+
jsonString: string,
|
|
315
|
+
): SafeParseResult<GetAssetsEligibility, SDKValidationError> {
|
|
316
|
+
return safeParse(
|
|
317
|
+
jsonString,
|
|
318
|
+
(x) => GetAssetsEligibility$inboundSchema.parse(JSON.parse(x)),
|
|
319
|
+
`Failed to parse 'GetAssetsEligibility' from JSON`,
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
|
|
233
323
|
/** @internal */
|
|
234
324
|
export const GetAssetsResponse$inboundSchema: z.ZodMiniType<
|
|
235
325
|
GetAssetsResponse,
|
|
@@ -237,6 +327,7 @@ export const GetAssetsResponse$inboundSchema: z.ZodMiniType<
|
|
|
237
327
|
> = z.object({
|
|
238
328
|
assets: z.array(z.lazy(() => GetAssetsAsset$inboundSchema)),
|
|
239
329
|
total: types.number(),
|
|
330
|
+
eligibility: z.lazy(() => GetAssetsEligibility$inboundSchema),
|
|
240
331
|
});
|
|
241
332
|
|
|
242
333
|
export function getAssetsResponseFromJSON(
|
|
@@ -0,0 +1,199 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
|
|
12
|
+
export type GetCommandsByCommandIdRequest = {
|
|
13
|
+
commandId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type Unconfirmed = {
|
|
17
|
+
/**
|
|
18
|
+
* no_broadcast_seen | dropped | stuck_unmined
|
|
19
|
+
*/
|
|
20
|
+
reason: string;
|
|
21
|
+
since: Date;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const Leg = {
|
|
25
|
+
Source: "source",
|
|
26
|
+
} as const;
|
|
27
|
+
export type Leg = ClosedEnum<typeof Leg>;
|
|
28
|
+
|
|
29
|
+
export type TxUnconfirmed = {
|
|
30
|
+
/**
|
|
31
|
+
* no_broadcast_seen | dropped | stuck_unmined
|
|
32
|
+
*/
|
|
33
|
+
reason: string;
|
|
34
|
+
since: Date;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type Tx = {
|
|
38
|
+
hash: string;
|
|
39
|
+
/**
|
|
40
|
+
* submitted | mined | final | reverted | failed | superseded
|
|
41
|
+
*/
|
|
42
|
+
stage: string;
|
|
43
|
+
receiptStatus: string | null;
|
|
44
|
+
blockNumber: number | null;
|
|
45
|
+
blockHash: string | null;
|
|
46
|
+
reason: string | null;
|
|
47
|
+
unconfirmed: TxUnconfirmed | null;
|
|
48
|
+
submittedAt: Date;
|
|
49
|
+
minedAt: Date | null;
|
|
50
|
+
terminalAt: Date | null;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Response
|
|
55
|
+
*/
|
|
56
|
+
export type GetCommandsByCommandIdResponse = {
|
|
57
|
+
commandId: string;
|
|
58
|
+
/**
|
|
59
|
+
* TRANSFER | DEPLOY_ASSET | REGISTER_ISSUER
|
|
60
|
+
*/
|
|
61
|
+
commandType: string;
|
|
62
|
+
/**
|
|
63
|
+
* accepted | submitted | mined | final | reverted | failed
|
|
64
|
+
*/
|
|
65
|
+
stage: string;
|
|
66
|
+
reason: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* final, with another tx of the command reverted or failed
|
|
69
|
+
*/
|
|
70
|
+
partial: boolean;
|
|
71
|
+
unconfirmed: Unconfirmed | null;
|
|
72
|
+
leg: Leg;
|
|
73
|
+
chainEid: number;
|
|
74
|
+
dstChainEid: number | null;
|
|
75
|
+
acceptedAt: Date;
|
|
76
|
+
submittedAt: Date | null;
|
|
77
|
+
minedAt: Date | null;
|
|
78
|
+
terminalAt: Date | null;
|
|
79
|
+
updatedAt: Date;
|
|
80
|
+
txs: Array<Tx>;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type GetCommandsByCommandIdRequest$Outbound = {
|
|
85
|
+
commandId: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const GetCommandsByCommandIdRequest$outboundSchema: z.ZodMiniType<
|
|
90
|
+
GetCommandsByCommandIdRequest$Outbound,
|
|
91
|
+
GetCommandsByCommandIdRequest
|
|
92
|
+
> = z.object({
|
|
93
|
+
commandId: z.string(),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function getCommandsByCommandIdRequestToJSON(
|
|
97
|
+
getCommandsByCommandIdRequest: GetCommandsByCommandIdRequest,
|
|
98
|
+
): string {
|
|
99
|
+
return JSON.stringify(
|
|
100
|
+
GetCommandsByCommandIdRequest$outboundSchema.parse(
|
|
101
|
+
getCommandsByCommandIdRequest,
|
|
102
|
+
),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const Unconfirmed$inboundSchema: z.ZodMiniType<Unconfirmed, unknown> = z
|
|
108
|
+
.object({
|
|
109
|
+
reason: types.string(),
|
|
110
|
+
since: types.date(),
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
export function unconfirmedFromJSON(
|
|
114
|
+
jsonString: string,
|
|
115
|
+
): SafeParseResult<Unconfirmed, SDKValidationError> {
|
|
116
|
+
return safeParse(
|
|
117
|
+
jsonString,
|
|
118
|
+
(x) => Unconfirmed$inboundSchema.parse(JSON.parse(x)),
|
|
119
|
+
`Failed to parse 'Unconfirmed' from JSON`,
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const Leg$inboundSchema: z.ZodMiniEnum<typeof Leg> = z.enum(Leg);
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const TxUnconfirmed$inboundSchema: z.ZodMiniType<
|
|
128
|
+
TxUnconfirmed,
|
|
129
|
+
unknown
|
|
130
|
+
> = z.object({
|
|
131
|
+
reason: types.string(),
|
|
132
|
+
since: types.date(),
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
export function txUnconfirmedFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<TxUnconfirmed, SDKValidationError> {
|
|
138
|
+
return safeParse(
|
|
139
|
+
jsonString,
|
|
140
|
+
(x) => TxUnconfirmed$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
+
`Failed to parse 'TxUnconfirmed' from JSON`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const Tx$inboundSchema: z.ZodMiniType<Tx, unknown> = z.object({
|
|
147
|
+
hash: types.string(),
|
|
148
|
+
stage: types.string(),
|
|
149
|
+
receiptStatus: types.nullable(types.string()),
|
|
150
|
+
blockNumber: types.nullable(types.number()),
|
|
151
|
+
blockHash: types.nullable(types.string()),
|
|
152
|
+
reason: types.nullable(types.string()),
|
|
153
|
+
unconfirmed: types.nullable(z.lazy(() => TxUnconfirmed$inboundSchema)),
|
|
154
|
+
submittedAt: types.date(),
|
|
155
|
+
minedAt: types.nullable(types.date()),
|
|
156
|
+
terminalAt: types.nullable(types.date()),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export function txFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<Tx, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => Tx$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'Tx' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** @internal */
|
|
170
|
+
export const GetCommandsByCommandIdResponse$inboundSchema: z.ZodMiniType<
|
|
171
|
+
GetCommandsByCommandIdResponse,
|
|
172
|
+
unknown
|
|
173
|
+
> = z.object({
|
|
174
|
+
commandId: types.string(),
|
|
175
|
+
commandType: types.string(),
|
|
176
|
+
stage: types.string(),
|
|
177
|
+
reason: types.nullable(types.string()),
|
|
178
|
+
partial: types.boolean(),
|
|
179
|
+
unconfirmed: types.nullable(z.lazy(() => Unconfirmed$inboundSchema)),
|
|
180
|
+
leg: Leg$inboundSchema,
|
|
181
|
+
chainEid: types.number(),
|
|
182
|
+
dstChainEid: types.nullable(types.number()),
|
|
183
|
+
acceptedAt: types.date(),
|
|
184
|
+
submittedAt: types.nullable(types.date()),
|
|
185
|
+
minedAt: types.nullable(types.date()),
|
|
186
|
+
terminalAt: types.nullable(types.date()),
|
|
187
|
+
updatedAt: types.date(),
|
|
188
|
+
txs: z.array(z.lazy(() => Tx$inboundSchema)),
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
export function getCommandsByCommandIdResponseFromJSON(
|
|
192
|
+
jsonString: string,
|
|
193
|
+
): SafeParseResult<GetCommandsByCommandIdResponse, SDKValidationError> {
|
|
194
|
+
return safeParse(
|
|
195
|
+
jsonString,
|
|
196
|
+
(x) => GetCommandsByCommandIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
197
|
+
`Failed to parse 'GetCommandsByCommandIdResponse' from JSON`,
|
|
198
|
+
);
|
|
199
|
+
}
|
|
@@ -27,7 +27,7 @@ export type GetOauthAuthorizeRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
state?: string | undefined;
|
|
29
29
|
/**
|
|
30
|
-
* PKCE code challenge (
|
|
30
|
+
* PKCE code challenge, REQUIRED for every client (public, confidential and first-party). S256 only: BASE64URL(SHA-256(code_verifier)), 43..128 unreserved characters (RFC 7636 §4.2).
|
|
31
31
|
*/
|
|
32
32
|
codeChallenge?: string | undefined;
|
|
33
33
|
/**
|
|
@@ -38,6 +38,10 @@ export type GetOauthAuthorizeRequest = {
|
|
|
38
38
|
* OIDC nonce
|
|
39
39
|
*/
|
|
40
40
|
nonce?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Reference returned by POST /oauth/par (RFC 9126 §4). When present, only the pushed parameters are used (client_id must match); every other query parameter is ignored. Single use, 60 s.
|
|
43
|
+
*/
|
|
44
|
+
requestUri?: string | undefined;
|
|
41
45
|
};
|
|
42
46
|
|
|
43
47
|
/** @internal */
|
|
@@ -50,6 +54,7 @@ export type GetOauthAuthorizeRequest$Outbound = {
|
|
|
50
54
|
code_challenge?: string | undefined;
|
|
51
55
|
code_challenge_method?: string | undefined;
|
|
52
56
|
nonce?: string | undefined;
|
|
57
|
+
request_uri?: string | undefined;
|
|
53
58
|
};
|
|
54
59
|
|
|
55
60
|
/** @internal */
|
|
@@ -66,6 +71,7 @@ export const GetOauthAuthorizeRequest$outboundSchema: z.ZodMiniType<
|
|
|
66
71
|
codeChallenge: z.optional(z.string()),
|
|
67
72
|
codeChallengeMethod: z.optional(z.string()),
|
|
68
73
|
nonce: z.optional(z.string()),
|
|
74
|
+
requestUri: z.optional(z.string()),
|
|
69
75
|
}),
|
|
70
76
|
z.transform((v) => {
|
|
71
77
|
return remap$(v, {
|
|
@@ -74,6 +80,7 @@ export const GetOauthAuthorizeRequest$outboundSchema: z.ZodMiniType<
|
|
|
74
80
|
redirectUri: "redirect_uri",
|
|
75
81
|
codeChallenge: "code_challenge",
|
|
76
82
|
codeChallengeMethod: "code_challenge_method",
|
|
83
|
+
requestUri: "request_uri",
|
|
77
84
|
});
|
|
78
85
|
}),
|
|
79
86
|
);
|
|
@@ -35,6 +35,20 @@ export type GetOrgsByOrgIdAssetsByAssetIdStatus = OpenEnum<
|
|
|
35
35
|
typeof GetOrgsByOrgIdAssetsByAssetIdStatus
|
|
36
36
|
>;
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
|
|
40
|
+
*/
|
|
41
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVisibility = {
|
|
42
|
+
Private: "private",
|
|
43
|
+
Public: "public",
|
|
44
|
+
} as const;
|
|
45
|
+
/**
|
|
46
|
+
* Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
|
|
47
|
+
*/
|
|
48
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVisibility = OpenEnum<
|
|
49
|
+
typeof GetOrgsByOrgIdAssetsByAssetIdVisibility
|
|
50
|
+
>;
|
|
51
|
+
|
|
38
52
|
export type Metadata = {
|
|
39
53
|
/**
|
|
40
54
|
* Raw chain-agent failure message. OPERATOR-FACING: credential-bearing, never render it to a user.
|
|
@@ -99,6 +113,10 @@ export type GetOrgsByOrgIdAssetsByAssetIdResponse = {
|
|
|
99
113
|
unitPriceUsd?: number | null | undefined;
|
|
100
114
|
status: GetOrgsByOrgIdAssetsByAssetIdStatus;
|
|
101
115
|
orgOnly?: boolean | null | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
|
|
118
|
+
*/
|
|
119
|
+
visibility?: GetOrgsByOrgIdAssetsByAssetIdVisibility | undefined;
|
|
102
120
|
requiredKycLevel?: number | null | undefined;
|
|
103
121
|
maxHolders?: number | null | undefined;
|
|
104
122
|
complianceRules?: { [k: string]: any } | null | undefined;
|
|
@@ -174,6 +192,11 @@ export const GetOrgsByOrgIdAssetsByAssetIdStatus$inboundSchema: z.ZodMiniType<
|
|
|
174
192
|
unknown
|
|
175
193
|
> = openEnums.inboundSchema(GetOrgsByOrgIdAssetsByAssetIdStatus);
|
|
176
194
|
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVisibility$inboundSchema:
|
|
197
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVisibility, unknown> = openEnums
|
|
198
|
+
.inboundSchema(GetOrgsByOrgIdAssetsByAssetIdVisibility);
|
|
199
|
+
|
|
177
200
|
/** @internal */
|
|
178
201
|
export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
179
202
|
z.catchall(
|
|
@@ -279,6 +302,9 @@ export const GetOrgsByOrgIdAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
279
302
|
unit_price_usd: z.optional(z.nullable(types.number())),
|
|
280
303
|
status: GetOrgsByOrgIdAssetsByAssetIdStatus$inboundSchema,
|
|
281
304
|
org_only: z.optional(z.nullable(types.boolean())),
|
|
305
|
+
visibility: types.optional(
|
|
306
|
+
GetOrgsByOrgIdAssetsByAssetIdVisibility$inboundSchema,
|
|
307
|
+
),
|
|
282
308
|
required_kyc_level: z.optional(z.nullable(types.number())),
|
|
283
309
|
max_holders: z.optional(z.nullable(types.number())),
|
|
284
310
|
compliance_rules: z.optional(z.nullable(z.record(z.string(), z.any()))),
|