@clossir-tech/ts-sdk 0.11.1 → 0.11.2

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.
Files changed (43) hide show
  1. package/README.md +36 -34
  2. package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts +20 -0
  3. package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts.map +1 -0
  4. package/esm/funcs/accounts-get-accounts-deposit-addresses.js +94 -0
  5. package/esm/funcs/accounts-get-accounts-deposit-addresses.js.map +1 -0
  6. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.d.ts +1 -1
  7. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +2 -2
  8. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  9. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.d.ts +1 -1
  10. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js +1 -1
  11. package/esm/lib/config.d.ts +2 -2
  12. package/esm/lib/config.js +2 -2
  13. package/esm/models/operations/get-accounts-deposit-addresses.d.ts +146 -0
  14. package/esm/models/operations/get-accounts-deposit-addresses.d.ts.map +1 -0
  15. package/esm/models/operations/get-accounts-deposit-addresses.js +117 -0
  16. package/esm/models/operations/get-accounts-deposit-addresses.js.map +1 -0
  17. package/esm/models/operations/index.d.ts +1 -0
  18. package/esm/models/operations/index.d.ts.map +1 -1
  19. package/esm/models/operations/index.js +1 -0
  20. package/esm/models/operations/index.js.map +1 -1
  21. package/esm/models/operations/post-attestations.d.ts +1 -1
  22. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts +9 -5
  23. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts.map +1 -1
  24. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js +1 -1
  25. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  26. package/esm/sdk/accounts.d.ts +7 -0
  27. package/esm/sdk/accounts.d.ts.map +1 -1
  28. package/esm/sdk/accounts.js +10 -0
  29. package/esm/sdk/accounts.js.map +1 -1
  30. package/esm/sdk/organizations.d.ts +2 -2
  31. package/esm/sdk/organizations.js +2 -2
  32. package/jsr.json +1 -1
  33. package/package.json +3 -3
  34. package/src/funcs/accounts-get-accounts-deposit-addresses.ts +193 -0
  35. package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +2 -2
  36. package/src/funcs/organizations-put-orgs-by-org-id-compliance.ts +1 -1
  37. package/src/lib/config.ts +2 -2
  38. package/src/models/operations/get-accounts-deposit-addresses.ts +346 -0
  39. package/src/models/operations/index.ts +1 -0
  40. package/src/models/operations/post-attestations.ts +1 -1
  41. package/src/models/operations/post-orgs-by-org-id-members-by-user-id-attest.ts +10 -6
  42. package/src/sdk/accounts.ts +18 -0
  43. package/src/sdk/organizations.ts +2 -2
package/README.md CHANGED
@@ -225,6 +225,7 @@ run();
225
225
  * [getAccountsSummary](docs/sdks/accounts/README.md#getaccountssummary) - Get accounts summary
226
226
  * [getAccountsCashAssets](docs/sdks/accounts/README.md#getaccountscashassets) - Cash assets the platform supports
227
227
  * [getAccountsMovableWallets](docs/sdks/accounts/README.md#getaccountsmovablewallets) - Wallets the caller may move an asset from
228
+ * [getAccountsDepositAddresses](docs/sdks/accounts/README.md#getaccountsdepositaddresses) - Where the caller can receive an asset
228
229
 
229
230
  ### [Approvals](docs/sdks/approvals/README.md)
230
231
 
@@ -550,6 +551,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
550
551
  - [`accountsDeleteAccountsSolanaByAddress`](docs/sdks/accounts/README.md#deleteaccountssolanabyaddress) - Unlink Solana wallet
551
552
  - [`accountsGetAccounts`](docs/sdks/accounts/README.md#getaccounts) - Get all chain accounts
552
553
  - [`accountsGetAccountsCashAssets`](docs/sdks/accounts/README.md#getaccountscashassets) - Cash assets the platform supports
554
+ - [`accountsGetAccountsDepositAddresses`](docs/sdks/accounts/README.md#getaccountsdepositaddresses) - Where the caller can receive an asset
553
555
  - [`accountsGetAccountsEvm`](docs/sdks/accounts/README.md#getaccountsevm) - Get EVM wallets
554
556
  - [`accountsGetAccountsMovableWallets`](docs/sdks/accounts/README.md#getaccountsmovablewallets) - Wallets the caller may move an asset from
555
557
  - [`accountsGetAccountsSolana`](docs/sdks/accounts/README.md#getaccountssolana) - Get Solana wallets
@@ -912,40 +914,40 @@ run();
912
914
 
913
915
 
914
916
  **Inherit from [`SDKError`](./src/models/errors/sdk-error.ts)**:
915
- * [`OAuthErrorResponse`](./src/models/errors/o-auth-error-response.ts): Applicable to 11 of 235 methods.*
916
- * [`GetOauthAuthorizeBadRequestError`](./src/models/errors/get-oauth-authorize-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 235 methods.*
917
- * [`PostOauthParBadRequestError`](./src/models/errors/post-oauth-par-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 235 methods.*
918
- * [`PostOauthTokenBadRequestError`](./src/models/errors/post-oauth-token-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 235 methods.*
919
- * [`PostOauthRevokeBadRequestError`](./src/models/errors/post-oauth-revoke-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 235 methods.*
920
- * [`GetOauthUserinfoBadRequestError`](./src/models/errors/get-oauth-userinfo-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 235 methods.*
921
- * [`PostOauthParUnauthorizedError`](./src/models/errors/post-oauth-par-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 235 methods.*
922
- * [`PostOauthTokenUnauthorizedError`](./src/models/errors/post-oauth-token-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 235 methods.*
923
- * [`PostOauthRevokeUnauthorizedError`](./src/models/errors/post-oauth-revoke-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 235 methods.*
924
- * [`GetOauthUserinfoUnauthorizedError`](./src/models/errors/get-oauth-userinfo-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 235 methods.*
925
- * [`GetPassportHomeUnauthorizedError`](./src/models/errors/get-passport-home-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 235 methods.*
926
- * [`GetPassportSignInUnauthorizedError`](./src/models/errors/get-passport-sign-in-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 235 methods.*
927
- * [`PostPassportSignInDecisionUnauthorizedError`](./src/models/errors/post-passport-sign-in-decision-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 235 methods.*
928
- * [`PostOauthTokenUpdateRequiredError`](./src/models/errors/post-oauth-token-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
929
- * [`GetOauthUserinfoUpdateRequiredError`](./src/models/errors/get-oauth-userinfo-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
930
- * [`GetPassportHomeUpdateRequiredError`](./src/models/errors/get-passport-home-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
931
- * [`GetPassportSignInUpdateRequiredError`](./src/models/errors/get-passport-sign-in-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
932
- * [`PostPassportSignInDecisionUpdateRequiredError`](./src/models/errors/post-passport-sign-in-decision-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
933
- * [`GetApprovalsByApprovalIdUpdateRequiredError`](./src/models/errors/get-approvals-by-approval-id-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
934
- * [`PostApprovalsByApprovalIdApproveUpdateRequiredError`](./src/models/errors/post-approvals-by-approval-id-approve-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
935
- * [`PostApprovalsByApprovalIdRejectUpdateRequiredError`](./src/models/errors/post-approvals-by-approval-id-reject-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 235 methods.*
936
- * [`GetOauthAuthorizeTooManyRequestsError`](./src/models/errors/get-oauth-authorize-too-many-requests-error.ts): Response. Status code `429`. Applicable to 1 of 235 methods.*
937
- * [`PostOauthParTooManyRequestsError`](./src/models/errors/post-oauth-par-too-many-requests-error.ts): Response. Status code `429`. Applicable to 1 of 235 methods.*
938
- * [`PostOauthRevokeTooManyRequestsError`](./src/models/errors/post-oauth-revoke-too-many-requests-error.ts): Response. Status code `429`. Applicable to 1 of 235 methods.*
939
- * [`GetOauthAuthorizeInternalServerError`](./src/models/errors/get-oauth-authorize-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 235 methods.*
940
- * [`PostOauthParInternalServerError`](./src/models/errors/post-oauth-par-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 235 methods.*
941
- * [`PostOauthTokenInternalServerError`](./src/models/errors/post-oauth-token-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 235 methods.*
942
- * [`PostOauthRevokeInternalServerError`](./src/models/errors/post-oauth-revoke-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 235 methods.*
943
- * [`GetOauthUserinfoInternalServerError`](./src/models/errors/get-oauth-userinfo-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 235 methods.*
944
- * [`PostOauthParServiceUnavailableError`](./src/models/errors/post-oauth-par-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 235 methods.*
945
- * [`PostOauthTokenServiceUnavailableError`](./src/models/errors/post-oauth-token-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 235 methods.*
946
- * [`PostOauthRevokeServiceUnavailableError`](./src/models/errors/post-oauth-revoke-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 235 methods.*
947
- * [`GetOauthUserinfoServiceUnavailableError`](./src/models/errors/get-oauth-userinfo-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 235 methods.*
948
- * [`PostEligibilityCheckServiceUnavailableError`](./src/models/errors/post-eligibility-check-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 235 methods.*
917
+ * [`OAuthErrorResponse`](./src/models/errors/o-auth-error-response.ts): Applicable to 11 of 236 methods.*
918
+ * [`GetOauthAuthorizeBadRequestError`](./src/models/errors/get-oauth-authorize-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 236 methods.*
919
+ * [`PostOauthParBadRequestError`](./src/models/errors/post-oauth-par-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 236 methods.*
920
+ * [`PostOauthTokenBadRequestError`](./src/models/errors/post-oauth-token-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 236 methods.*
921
+ * [`PostOauthRevokeBadRequestError`](./src/models/errors/post-oauth-revoke-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 236 methods.*
922
+ * [`GetOauthUserinfoBadRequestError`](./src/models/errors/get-oauth-userinfo-bad-request-error.ts): Response. Status code `400`. Applicable to 1 of 236 methods.*
923
+ * [`PostOauthParUnauthorizedError`](./src/models/errors/post-oauth-par-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 236 methods.*
924
+ * [`PostOauthTokenUnauthorizedError`](./src/models/errors/post-oauth-token-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 236 methods.*
925
+ * [`PostOauthRevokeUnauthorizedError`](./src/models/errors/post-oauth-revoke-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 236 methods.*
926
+ * [`GetOauthUserinfoUnauthorizedError`](./src/models/errors/get-oauth-userinfo-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 236 methods.*
927
+ * [`GetPassportHomeUnauthorizedError`](./src/models/errors/get-passport-home-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 236 methods.*
928
+ * [`GetPassportSignInUnauthorizedError`](./src/models/errors/get-passport-sign-in-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 236 methods.*
929
+ * [`PostPassportSignInDecisionUnauthorizedError`](./src/models/errors/post-passport-sign-in-decision-unauthorized-error.ts): Response. Status code `401`. Applicable to 1 of 236 methods.*
930
+ * [`PostOauthTokenUpdateRequiredError`](./src/models/errors/post-oauth-token-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
931
+ * [`GetOauthUserinfoUpdateRequiredError`](./src/models/errors/get-oauth-userinfo-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
932
+ * [`GetPassportHomeUpdateRequiredError`](./src/models/errors/get-passport-home-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
933
+ * [`GetPassportSignInUpdateRequiredError`](./src/models/errors/get-passport-sign-in-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
934
+ * [`PostPassportSignInDecisionUpdateRequiredError`](./src/models/errors/post-passport-sign-in-decision-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
935
+ * [`GetApprovalsByApprovalIdUpdateRequiredError`](./src/models/errors/get-approvals-by-approval-id-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
936
+ * [`PostApprovalsByApprovalIdApproveUpdateRequiredError`](./src/models/errors/post-approvals-by-approval-id-approve-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
937
+ * [`PostApprovalsByApprovalIdRejectUpdateRequiredError`](./src/models/errors/post-approvals-by-approval-id-reject-update-required-error.ts): Response. Status code `426`. Applicable to 1 of 236 methods.*
938
+ * [`GetOauthAuthorizeTooManyRequestsError`](./src/models/errors/get-oauth-authorize-too-many-requests-error.ts): Response. Status code `429`. Applicable to 1 of 236 methods.*
939
+ * [`PostOauthParTooManyRequestsError`](./src/models/errors/post-oauth-par-too-many-requests-error.ts): Response. Status code `429`. Applicable to 1 of 236 methods.*
940
+ * [`PostOauthRevokeTooManyRequestsError`](./src/models/errors/post-oauth-revoke-too-many-requests-error.ts): Response. Status code `429`. Applicable to 1 of 236 methods.*
941
+ * [`GetOauthAuthorizeInternalServerError`](./src/models/errors/get-oauth-authorize-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 236 methods.*
942
+ * [`PostOauthParInternalServerError`](./src/models/errors/post-oauth-par-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 236 methods.*
943
+ * [`PostOauthTokenInternalServerError`](./src/models/errors/post-oauth-token-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 236 methods.*
944
+ * [`PostOauthRevokeInternalServerError`](./src/models/errors/post-oauth-revoke-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 236 methods.*
945
+ * [`GetOauthUserinfoInternalServerError`](./src/models/errors/get-oauth-userinfo-internal-server-error.ts): Response. Status code `500`. Applicable to 1 of 236 methods.*
946
+ * [`PostOauthParServiceUnavailableError`](./src/models/errors/post-oauth-par-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 236 methods.*
947
+ * [`PostOauthTokenServiceUnavailableError`](./src/models/errors/post-oauth-token-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 236 methods.*
948
+ * [`PostOauthRevokeServiceUnavailableError`](./src/models/errors/post-oauth-revoke-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 236 methods.*
949
+ * [`GetOauthUserinfoServiceUnavailableError`](./src/models/errors/get-oauth-userinfo-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 236 methods.*
950
+ * [`PostEligibilityCheckServiceUnavailableError`](./src/models/errors/post-eligibility-check-service-unavailable-error.ts): Response. Status code `503`. Applicable to 1 of 236 methods.*
949
951
  * [`ResponseValidationError`](./src/models/errors/response-validation-error.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
950
952
 
951
953
  </details>
@@ -0,0 +1,20 @@
1
+ import { ClossirCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
+ import { SDKError } from "../models/errors/sdk-error.js";
7
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Where the caller can receive an asset
13
+ *
14
+ * @remarks
15
+ * One row per own wallet per chain of the asset; an organization's wallets are never listed. 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. A chain the asset is not deployed on yet is a row with `deployed: false` and no address. A deployed row carries the wallet's checksummed address and `receivable`: whether the chain will accept a transfer of the asset to that wallet, read from the chain on every request. `receivable` is null when it could not be read, never true. `notReceivableReason` is given only when `receivable` is false. `inboundBridgePaused` says whether the token is paused on that chain: while it is, deposits bridged from another chain are queued, and after the token is unpaused they must be replayed; one the token refuses at replay, or that the owner drops, is not delivered. A pause does not affect a deposit sent on the chain itself and never changes `receivable`. `finalityBlocks` is null when no confirmation depth is stated for the chain. `inbound` lists up to 5 recent transfers in, newest first; when `historyStale` is true the lists may be missing transfers, and an empty list is not a statement that nothing arrived. For a cash asset every row is receivable, `inbound` is empty and `historyStale` is true. Rate limited per user (429 with Retry-After). API keys are refused.
16
+ *
17
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
18
+ */
19
+ export declare function accountsGetAccountsDepositAddresses(client: ClossirCore, assetId: string, options?: RequestOptions): APIPromise<Result<operations.GetAccountsDepositAddressesResponse, errors.ProblemDetailsError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
20
+ //# sourceMappingURL=accounts-get-accounts-deposit-addresses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-get-accounts-deposit-addresses.d.ts","sourceRoot":"","sources":["../../src/funcs/accounts-get-accounts-deposit-addresses.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,94 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { encodeFormQuery } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as errors from "../models/errors/index.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { APIPromise } from "../types/async.js";
15
+ /**
16
+ * Where the caller can receive an asset
17
+ *
18
+ * @remarks
19
+ * One row per own wallet per chain of the asset; an organization's wallets are never listed. 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. A chain the asset is not deployed on yet is a row with `deployed: false` and no address. A deployed row carries the wallet's checksummed address and `receivable`: whether the chain will accept a transfer of the asset to that wallet, read from the chain on every request. `receivable` is null when it could not be read, never true. `notReceivableReason` is given only when `receivable` is false. `inboundBridgePaused` says whether the token is paused on that chain: while it is, deposits bridged from another chain are queued, and after the token is unpaused they must be replayed; one the token refuses at replay, or that the owner drops, is not delivered. A pause does not affect a deposit sent on the chain itself and never changes `receivable`. `finalityBlocks` is null when no confirmation depth is stated for the chain. `inbound` lists up to 5 recent transfers in, newest first; when `historyStale` is true the lists may be missing transfers, and an empty list is not a statement that nothing arrived. For a cash asset every row is receivable, `inbound` is empty and `historyStale` is true. Rate limited per user (429 with Retry-After). API keys are refused.
20
+ *
21
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
22
+ */
23
+ export function accountsGetAccountsDepositAddresses(client, assetId, options) {
24
+ return new APIPromise($do(client, assetId, options));
25
+ }
26
+ async function $do(client, assetId, options) {
27
+ const input = {
28
+ assetId: assetId,
29
+ };
30
+ const parsed = safeParse(input, (value) => z.parse(operations.GetAccountsDepositAddressesRequest$outboundSchema, value), "Input validation failed");
31
+ if (!parsed.ok) {
32
+ return [parsed, { status: "invalid" }];
33
+ }
34
+ const payload = parsed.value;
35
+ const body = null;
36
+ const path = pathToFunc("/accounts/deposit-addresses")();
37
+ const query = encodeFormQuery({
38
+ "assetId": payload.assetId,
39
+ });
40
+ const headers = new Headers(compactMap({
41
+ Accept: "application/json",
42
+ }));
43
+ const secConfig = await extractSecurity(client._options.bearerAuth);
44
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
45
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
46
+ const context = {
47
+ options: client._options,
48
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
49
+ operationID: "getAccountsDeposit-addresses",
50
+ oAuth2Scopes: null,
51
+ resolvedSecurity: requestSecurity,
52
+ securitySource: client._options.bearerAuth,
53
+ retryConfig: options?.retries
54
+ || client._options.retryConfig
55
+ || { strategy: "none" },
56
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
57
+ };
58
+ const requestRes = client._createRequest(context, {
59
+ security: requestSecurity,
60
+ method: "GET",
61
+ baseURL: options?.serverURL,
62
+ path: path,
63
+ headers: headers,
64
+ query: query,
65
+ body: body,
66
+ userAgent: client._options.userAgent,
67
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
68
+ }, options);
69
+ if (!requestRes.ok) {
70
+ return [requestRes, { status: "invalid" }];
71
+ }
72
+ const req = requestRes.value;
73
+ const doResult = await client._do(req, {
74
+ context,
75
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
76
+ retryConfig: context.retryConfig,
77
+ retryCodes: context.retryCodes,
78
+ });
79
+ if (!doResult.ok) {
80
+ return [doResult, { status: "request-error", request: req }];
81
+ }
82
+ const response = doResult.value;
83
+ const responseFields = {
84
+ HttpMeta: { Response: response, Request: req },
85
+ };
86
+ const [result] = await M.match(M.json(200, operations.GetAccountsDepositAddressesResponse$inboundSchema), M.jsonErr([401, 404, 422, 428, 429], errors.ProblemDetailsError$inboundSchema, { ctype: "application/problem+json" }), M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
87
+ ctype: "application/problem+json",
88
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
89
+ if (!result.ok) {
90
+ return [result, { status: "complete", request: req, response }];
91
+ }
92
+ return [result, { status: "complete", request: req, response }];
93
+ }
94
+ //# sourceMappingURL=accounts-get-accounts-deposit-addresses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-get-accounts-deposit-addresses.js","sourceRoot":"","sources":["../../src/funcs/accounts-get-accounts-deposit-addresses.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,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AAE,CACtC,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,EAAE;QACvD,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Attest member wallets on behalf of org
13
13
  *
14
14
  * @remarks
15
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
15
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
16
16
  */
17
17
  export declare function organizationsPostOrgsByOrgIdMembersByUserIdAttest(client: ClossirCore, security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity, orgId: string, userId: string, body: operations.PostOrgsByOrgIdMembersByUserIdAttestRequestBody, options?: RequestOptions): APIPromise<Result<operations.PostOrgsByOrgIdMembersByUserIdAttestResponse, errors.ProblemDetailsError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=organizations-post-orgs-by-org-id-members-by-user-id-attest.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Attest member wallets on behalf of org
17
17
  *
18
18
  * @remarks
19
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
19
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
20
20
  */
21
21
  export function organizationsPostOrgsByOrgIdMembersByUserIdAttest(client, security, orgId, userId, body, options) {
22
22
  return new APIPromise($do(client, security, orgId, userId, body, options));
@@ -100,7 +100,7 @@ async function $do(client, security, orgId, userId, body, options) {
100
100
  const responseFields = {
101
101
  HttpMeta: { Response: response, Request: req },
102
102
  };
103
- const [result] = await M.match(M.json(202, operations.PostOrgsByOrgIdMembersByUserIdAttestResponse$inboundSchema), M.jsonErr([400, 401, 403, 404, 409, 422, 428], errors.ProblemDetailsError$inboundSchema, { ctype: "application/problem+json" }), M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
103
+ const [result] = await M.match(M.json(202, operations.PostOrgsByOrgIdMembersByUserIdAttestResponse$inboundSchema), M.jsonErr([400, 401, 403, 404, 409, 422, 428], errors.ProblemDetailsError$inboundSchema, { ctype: "application/problem+json" }), M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
104
104
  ctype: "application/problem+json",
105
105
  }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
106
106
  if (!result.ok) {
@@ -1 +1 @@
1
- {"version":3,"file":"organizations-post-orgs-by-org-id-members-by-user-id-attest.js","sourceRoot":"","sources":["../../src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,U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AC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,0DAA0D,CACtE,EACD,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACnC,MAAM,CAAC,iCAAiC,EACxC,EAAE,KAAK,EAAE,0BAA0B,EAAE,CACtC,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,EAAE;QACvD,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
1
+ {"version":3,"file":"organizations-post-orgs-by-org-id-members-by-user-id-attest.js","sourceRoot":"","sources":["../../src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,M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AAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,0DAA0D,CACtE,EACD,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACnC,MAAM,CAAC,iCAAiC,EACxC,EAAE,KAAK,EAAE,0BAA0B,EAAE,CACtC,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,iCAAiC,EAAE;QAC9D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Update organization compliance config
13
13
  *
14
14
  * @remarks
15
- * 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.
15
+ * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — 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.
16
16
  *
17
17
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
18
18
  */
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Update organization compliance config
17
17
  *
18
18
  * @remarks
19
- * 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.
19
+ * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — 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.
20
20
  *
21
21
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
22
22
  */
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "2.0.0";
34
- readonly sdkVersion: "0.11.1";
34
+ readonly sdkVersion: "0.11.2";
35
35
  readonly genVersion: "2.916.4";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.11.1 2.916.4 2.0.0 @clossir-tech/ts-sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.11.2 2.916.4 2.0.0 @clossir-tech/ts-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "2.0.0",
34
- sdkVersion: "0.11.1",
34
+ sdkVersion: "0.11.2",
35
35
  genVersion: "2.916.4",
36
- userAgent: "speakeasy-sdk/typescript 0.11.1 2.916.4 2.0.0 @clossir-tech/ts-sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.11.2 2.916.4 2.0.0 @clossir-tech/ts-sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,146 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
5
+ export type GetAccountsDepositAddressesRequest = {
6
+ assetId: string;
7
+ };
8
+ export type Address2 = {
9
+ /**
10
+ * Wallet row id
11
+ */
12
+ walletId: string;
13
+ /**
14
+ * LayerZero endpoint id, as a decimal string
15
+ */
16
+ chainEid: string;
17
+ deployed: false;
18
+ };
19
+ export type FinalityBlocks = string | number;
20
+ export declare const NotReceivableReasonOther: {
21
+ readonly Other: "other";
22
+ };
23
+ export type NotReceivableReasonOther = ClosedEnum<typeof NotReceivableReasonOther>;
24
+ export declare const NotReceivableReasonJurisdiction: {
25
+ readonly Jurisdiction: "jurisdiction";
26
+ };
27
+ export type NotReceivableReasonJurisdiction = ClosedEnum<typeof NotReceivableReasonJurisdiction>;
28
+ export declare const NotReceivableReasonLevelTooLow: {
29
+ readonly LevelTooLow: "level-too-low";
30
+ };
31
+ export type NotReceivableReasonLevelTooLow = ClosedEnum<typeof NotReceivableReasonLevelTooLow>;
32
+ export declare const NotReceivableReasonAttestationExpired: {
33
+ readonly AttestationExpired: "attestation-expired";
34
+ };
35
+ export type NotReceivableReasonAttestationExpired = ClosedEnum<typeof NotReceivableReasonAttestationExpired>;
36
+ export declare const NotReceivableReasonNoAttestation: {
37
+ readonly NoAttestation: "no-attestation";
38
+ };
39
+ export type NotReceivableReasonNoAttestation = ClosedEnum<typeof NotReceivableReasonNoAttestation>;
40
+ export type NotReceivableReason = NotReceivableReasonNoAttestation | NotReceivableReasonAttestationExpired | NotReceivableReasonLevelTooLow | NotReceivableReasonJurisdiction | NotReceivableReasonOther;
41
+ export type Inbound = {
42
+ /**
43
+ * Transaction hash, lowercase 0x hex
44
+ */
45
+ txHash: string;
46
+ /**
47
+ * Amount in whole units, as a decimal string
48
+ */
49
+ amount: string;
50
+ /**
51
+ * The block's timestamp, as an ISO 8601 instant
52
+ */
53
+ at: string;
54
+ };
55
+ export type Address1 = {
56
+ /**
57
+ * Wallet row id
58
+ */
59
+ walletId: string;
60
+ /**
61
+ * LayerZero endpoint id, as a decimal string
62
+ */
63
+ chainEid: string;
64
+ deployed: true;
65
+ /**
66
+ * EIP-55 checksummed address
67
+ */
68
+ address: string;
69
+ /**
70
+ * The level of the wallet's active attestation on this chain, or null when none
71
+ */
72
+ attestedLevel: string | null;
73
+ /**
74
+ * Blocks after which a deposit on this chain is treated as final. Null when no depth is stated for the chain; never a default.
75
+ */
76
+ finalityBlocks: string | number | null;
77
+ /**
78
+ * Deposits bridged from another chain are queued while this is true. After the token is unpaused they must be replayed; a queued deposit that the token refuses at replay, or that the owner drops, is not delivered. Deposits sent on this chain are not affected. A paused token also cannot send to another chain. `null` means not read or not applicable.
79
+ */
80
+ inboundBridgePaused: boolean | null;
81
+ /**
82
+ * Whether the chain will accept a transfer of this asset to this wallet. Null when it could not be read: unknown, never true.
83
+ */
84
+ receivable: boolean | null;
85
+ /**
86
+ * Why not, when receivable is false. Null otherwise.
87
+ */
88
+ notReceivableReason: NotReceivableReasonNoAttestation | NotReceivableReasonAttestationExpired | NotReceivableReasonLevelTooLow | NotReceivableReasonJurisdiction | NotReceivableReasonOther | null;
89
+ /**
90
+ * The most recent transfers in, newest first, at most 5
91
+ */
92
+ inbound: Array<Inbound>;
93
+ };
94
+ export type AddressUnion = Address1 | Address2;
95
+ /**
96
+ * Response
97
+ */
98
+ export type GetAccountsDepositAddressesResponse = {
99
+ /**
100
+ * One row per own wallet per chain of the asset
101
+ */
102
+ addresses: Array<Address1 | Address2>;
103
+ /**
104
+ * True when the inbound lists may be missing transfers. An empty inbound list beside true is not 'no deposits'.
105
+ */
106
+ historyStale: boolean;
107
+ };
108
+ /** @internal */
109
+ export type GetAccountsDepositAddressesRequest$Outbound = {
110
+ assetId: string;
111
+ };
112
+ /** @internal */
113
+ export declare const GetAccountsDepositAddressesRequest$outboundSchema: z.ZodMiniType<GetAccountsDepositAddressesRequest$Outbound, GetAccountsDepositAddressesRequest>;
114
+ export declare function getAccountsDepositAddressesRequestToJSON(getAccountsDepositAddressesRequest: GetAccountsDepositAddressesRequest): string;
115
+ /** @internal */
116
+ export declare const Address2$inboundSchema: z.ZodMiniType<Address2, unknown>;
117
+ export declare function address2FromJSON(jsonString: string): SafeParseResult<Address2, SDKValidationError>;
118
+ /** @internal */
119
+ export declare const FinalityBlocks$inboundSchema: z.ZodMiniType<FinalityBlocks, unknown>;
120
+ export declare function finalityBlocksFromJSON(jsonString: string): SafeParseResult<FinalityBlocks, SDKValidationError>;
121
+ /** @internal */
122
+ export declare const NotReceivableReasonOther$inboundSchema: z.ZodMiniEnum<typeof NotReceivableReasonOther>;
123
+ /** @internal */
124
+ export declare const NotReceivableReasonJurisdiction$inboundSchema: z.ZodMiniEnum<typeof NotReceivableReasonJurisdiction>;
125
+ /** @internal */
126
+ export declare const NotReceivableReasonLevelTooLow$inboundSchema: z.ZodMiniEnum<typeof NotReceivableReasonLevelTooLow>;
127
+ /** @internal */
128
+ export declare const NotReceivableReasonAttestationExpired$inboundSchema: z.ZodMiniEnum<typeof NotReceivableReasonAttestationExpired>;
129
+ /** @internal */
130
+ export declare const NotReceivableReasonNoAttestation$inboundSchema: z.ZodMiniEnum<typeof NotReceivableReasonNoAttestation>;
131
+ /** @internal */
132
+ export declare const NotReceivableReason$inboundSchema: z.ZodMiniType<NotReceivableReason, unknown>;
133
+ export declare function notReceivableReasonFromJSON(jsonString: string): SafeParseResult<NotReceivableReason, SDKValidationError>;
134
+ /** @internal */
135
+ export declare const Inbound$inboundSchema: z.ZodMiniType<Inbound, unknown>;
136
+ export declare function inboundFromJSON(jsonString: string): SafeParseResult<Inbound, SDKValidationError>;
137
+ /** @internal */
138
+ export declare const Address1$inboundSchema: z.ZodMiniType<Address1, unknown>;
139
+ export declare function address1FromJSON(jsonString: string): SafeParseResult<Address1, SDKValidationError>;
140
+ /** @internal */
141
+ export declare const AddressUnion$inboundSchema: z.ZodMiniType<AddressUnion, unknown>;
142
+ export declare function addressUnionFromJSON(jsonString: string): SafeParseResult<AddressUnion, SDKValidationError>;
143
+ /** @internal */
144
+ export declare const GetAccountsDepositAddressesResponse$inboundSchema: z.ZodMiniType<GetAccountsDepositAddressesResponse, unknown>;
145
+ export declare function getAccountsDepositAddressesResponseFromJSON(jsonString: string): SafeParseResult<GetAccountsDepositAddressesResponse, SDKValidationError>;
146
+ //# sourceMappingURL=get-accounts-deposit-addresses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-accounts-deposit-addresses.d.ts","sourceRoot":"","sources":["../../../src/models/operations/get-accounts-deposit-addresses.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM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B,CAAC,CAO1E"}
@@ -0,0 +1,117 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ import * as types from "../../types/primitives.js";
7
+ import { smartUnion } from "../../types/smart-union.js";
8
+ export const NotReceivableReasonOther = {
9
+ Other: "other",
10
+ };
11
+ export const NotReceivableReasonJurisdiction = {
12
+ Jurisdiction: "jurisdiction",
13
+ };
14
+ export const NotReceivableReasonLevelTooLow = {
15
+ LevelTooLow: "level-too-low",
16
+ };
17
+ export const NotReceivableReasonAttestationExpired = {
18
+ AttestationExpired: "attestation-expired",
19
+ };
20
+ export const NotReceivableReasonNoAttestation = {
21
+ NoAttestation: "no-attestation",
22
+ };
23
+ /** @internal */
24
+ export const GetAccountsDepositAddressesRequest$outboundSchema = z.object({
25
+ assetId: z.string(),
26
+ });
27
+ export function getAccountsDepositAddressesRequestToJSON(getAccountsDepositAddressesRequest) {
28
+ return JSON.stringify(GetAccountsDepositAddressesRequest$outboundSchema.parse(getAccountsDepositAddressesRequest));
29
+ }
30
+ /** @internal */
31
+ export const Address2$inboundSchema = z
32
+ .object({
33
+ walletId: types.string(),
34
+ chainEid: types.string(),
35
+ deployed: types.literal(false),
36
+ });
37
+ export function address2FromJSON(jsonString) {
38
+ return safeParse(jsonString, (x) => Address2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Address2' from JSON`);
39
+ }
40
+ /** @internal */
41
+ export const FinalityBlocks$inboundSchema = smartUnion([types.string(), types.number()]);
42
+ export function finalityBlocksFromJSON(jsonString) {
43
+ return safeParse(jsonString, (x) => FinalityBlocks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FinalityBlocks' from JSON`);
44
+ }
45
+ /** @internal */
46
+ export const NotReceivableReasonOther$inboundSchema = z.enum(NotReceivableReasonOther);
47
+ /** @internal */
48
+ export const NotReceivableReasonJurisdiction$inboundSchema = z.enum(NotReceivableReasonJurisdiction);
49
+ /** @internal */
50
+ export const NotReceivableReasonLevelTooLow$inboundSchema = z.enum(NotReceivableReasonLevelTooLow);
51
+ /** @internal */
52
+ export const NotReceivableReasonAttestationExpired$inboundSchema = z.enum(NotReceivableReasonAttestationExpired);
53
+ /** @internal */
54
+ export const NotReceivableReasonNoAttestation$inboundSchema = z.enum(NotReceivableReasonNoAttestation);
55
+ /** @internal */
56
+ export const NotReceivableReason$inboundSchema = smartUnion([
57
+ NotReceivableReasonNoAttestation$inboundSchema,
58
+ NotReceivableReasonAttestationExpired$inboundSchema,
59
+ NotReceivableReasonLevelTooLow$inboundSchema,
60
+ NotReceivableReasonJurisdiction$inboundSchema,
61
+ NotReceivableReasonOther$inboundSchema,
62
+ ]);
63
+ export function notReceivableReasonFromJSON(jsonString) {
64
+ return safeParse(jsonString, (x) => NotReceivableReason$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotReceivableReason' from JSON`);
65
+ }
66
+ /** @internal */
67
+ export const Inbound$inboundSchema = z.object({
68
+ txHash: types.string(),
69
+ amount: types.string(),
70
+ at: types.string(),
71
+ });
72
+ export function inboundFromJSON(jsonString) {
73
+ return safeParse(jsonString, (x) => Inbound$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Inbound' from JSON`);
74
+ }
75
+ /** @internal */
76
+ export const Address1$inboundSchema = z
77
+ .object({
78
+ walletId: types.string(),
79
+ chainEid: types.string(),
80
+ deployed: types.literal(true),
81
+ address: types.string(),
82
+ attestedLevel: types.nullable(types.string()),
83
+ finalityBlocks: types.nullable(smartUnion([types.string(), types.number()])),
84
+ inboundBridgePaused: types.nullable(types.boolean()),
85
+ receivable: types.nullable(types.boolean()),
86
+ notReceivableReason: types.nullable(smartUnion([
87
+ NotReceivableReasonNoAttestation$inboundSchema,
88
+ NotReceivableReasonAttestationExpired$inboundSchema,
89
+ NotReceivableReasonLevelTooLow$inboundSchema,
90
+ NotReceivableReasonJurisdiction$inboundSchema,
91
+ NotReceivableReasonOther$inboundSchema,
92
+ ])),
93
+ inbound: z.array(z.lazy(() => Inbound$inboundSchema)),
94
+ });
95
+ export function address1FromJSON(jsonString) {
96
+ return safeParse(jsonString, (x) => Address1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Address1' from JSON`);
97
+ }
98
+ /** @internal */
99
+ export const AddressUnion$inboundSchema = smartUnion([
100
+ z.lazy(() => Address1$inboundSchema),
101
+ z.lazy(() => Address2$inboundSchema),
102
+ ]);
103
+ export function addressUnionFromJSON(jsonString) {
104
+ return safeParse(jsonString, (x) => AddressUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddressUnion' from JSON`);
105
+ }
106
+ /** @internal */
107
+ export const GetAccountsDepositAddressesResponse$inboundSchema = z.object({
108
+ addresses: z.array(smartUnion([
109
+ z.lazy(() => Address1$inboundSchema),
110
+ z.lazy(() => Address2$inboundSchema),
111
+ ])),
112
+ historyStale: types.boolean(),
113
+ });
114
+ export function getAccountsDepositAddressesResponseFromJSON(jsonString) {
115
+ return safeParse(jsonString, (x) => GetAccountsDepositAddressesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAccountsDepositAddressesResponse' from JSON`);
116
+ }
117
+ //# sourceMappingURL=get-accounts-deposit-addresses.js.map