@clossir-tech/ts-sdk 0.10.1 → 0.10.3
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 +32 -19
- package/esm/funcs/{kyc-post-kyc-webhook-by-provider.d.ts → assets-get-assets-by-asset-id.d.ts} +4 -4
- package/esm/funcs/assets-get-assets-by-asset-id.d.ts.map +1 -0
- package/esm/funcs/assets-get-assets-by-asset-id.js +106 -0
- package/esm/funcs/assets-get-assets-by-asset-id.js.map +1 -0
- package/esm/funcs/assets-get-assets.d.ts +18 -0
- package/esm/funcs/assets-get-assets.d.ts.map +1 -0
- package/esm/funcs/assets-get-assets.js +109 -0
- package/esm/funcs/assets-get-assets.js.map +1 -0
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +1 -1
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js +1 -3
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.d.ts +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js +2 -2
- package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js.map +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets.js +1 -1
- package/esm/funcs/assets-post-orgs-by-org-id-assets.js.map +1 -1
- package/esm/funcs/auth-post-auth-switch-org.d.ts +20 -0
- package/esm/funcs/auth-post-auth-switch-org.d.ts.map +1 -0
- package/esm/funcs/auth-post-auth-switch-org.js +90 -0
- package/esm/funcs/auth-post-auth-switch-org.js.map +1 -0
- package/esm/funcs/auth-post-auth-verify-email.d.ts +1 -1
- package/esm/funcs/auth-post-auth-verify-email.js +1 -1
- package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.d.ts +1 -1
- package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js +2 -2
- package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js.map +1 -1
- package/esm/funcs/compliance-post-compliance-check.js +1 -3
- package/esm/funcs/compliance-post-compliance-check.js.map +1 -1
- package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -1
- package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
- package/esm/funcs/kyb-get-orgs-by-org-id-kyb-status.d.ts +20 -0
- package/esm/funcs/kyb-get-orgs-by-org-id-kyb-status.d.ts.map +1 -0
- package/esm/funcs/{kyc-post-kyc-webhook-by-provider.js → kyb-get-orgs-by-org-id-kyb-status.js} +25 -20
- package/esm/funcs/kyb-get-orgs-by-org-id-kyb-status.js.map +1 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-access-token.d.ts +20 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-access-token.d.ts.map +1 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-access-token.js +96 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-access-token.js.map +1 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-initiate.d.ts +20 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-initiate.d.ts.map +1 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-initiate.js +96 -0
- package/esm/funcs/kyb-post-orgs-by-org-id-kyb-initiate.js.map +1 -0
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.d.ts +1 -1
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js +2 -2
- package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members.d.ts +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members.js +1 -1
- package/esm/funcs/timeseries-get-orgs-by-org-id-holdings-by-user-id.js +1 -1
- package/esm/funcs/timeseries-get-orgs-by-org-id-holdings-by-user-id.js.map +1 -1
- package/esm/funcs/transfers-post-transfers.d.ts +1 -1
- package/esm/funcs/transfers-post-transfers.js +2 -2
- package/esm/funcs/transfers-post-transfers.js.map +1 -1
- package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deploy.js +3 -1
- package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deploy.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/get-assets-by-asset-id.d.ts +85 -0
- package/esm/models/operations/get-assets-by-asset-id.d.ts.map +1 -0
- package/esm/models/operations/get-assets-by-asset-id.js +119 -0
- package/esm/models/operations/get-assets-by-asset-id.js.map +1 -0
- package/esm/models/operations/get-assets.d.ts +112 -0
- package/esm/models/operations/get-assets.d.ts.map +1 -0
- package/esm/models/operations/get-assets.js +100 -0
- package/esm/models/operations/get-assets.js.map +1 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +4 -4
- 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 +4 -5
- 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-kyb-status.d.ts +33 -0
- package/esm/models/operations/get-orgs-by-org-id-kyb-status.d.ts.map +1 -0
- package/esm/models/operations/get-orgs-by-org-id-kyb-status.js +28 -0
- package/esm/models/operations/get-orgs-by-org-id-kyb-status.js.map +1 -0
- package/esm/models/operations/index.d.ts +6 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +6 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/post-auth-switch-org.d.ts +212 -0
- package/esm/models/operations/post-auth-switch-org.d.ts.map +1 -0
- package/esm/models/operations/post-auth-switch-org.js +206 -0
- package/esm/models/operations/post-auth-switch-org.js.map +1 -0
- package/esm/models/operations/post-auth-verify-email.d.ts +26 -2
- package/esm/models/operations/post-auth-verify-email.d.ts.map +1 -1
- package/esm/models/operations/post-auth-verify-email.js +18 -1
- package/esm/models/operations/post-auth-verify-email.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-vault-deploy.d.ts +2 -8
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-vault-deploy.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-vault-deploy.js +2 -6
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-vault-deploy.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets.d.ts +5 -0
- package/esm/models/operations/post-orgs-by-org-id-assets.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets.js +2 -0
- package/esm/models/operations/post-orgs-by-org-id-assets.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-kyb-access-token.d.ts +36 -0
- package/esm/models/operations/post-orgs-by-org-id-kyb-access-token.d.ts.map +1 -0
- package/esm/models/operations/post-orgs-by-org-id-kyb-access-token.js +34 -0
- package/esm/models/operations/post-orgs-by-org-id-kyb-access-token.js.map +1 -0
- package/esm/models/operations/post-orgs-by-org-id-kyb-initiate.d.ts +30 -0
- package/esm/models/operations/post-orgs-by-org-id-kyb-initiate.d.ts.map +1 -0
- package/esm/models/operations/post-orgs-by-org-id-kyb-initiate.js +25 -0
- package/esm/models/operations/post-orgs-by-org-id-kyb-initiate.js.map +1 -0
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts +5 -0
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js +1 -0
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-members.d.ts +20 -0
- package/esm/models/operations/post-orgs-by-org-id-members.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-members.js.map +1 -1
- package/esm/sdk/assets.d.ts +15 -1
- package/esm/sdk/assets.d.ts.map +1 -1
- package/esm/sdk/assets.js +21 -1
- package/esm/sdk/assets.js.map +1 -1
- package/esm/sdk/auth.d.ts +8 -1
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/auth.js +11 -1
- package/esm/sdk/auth.js.map +1 -1
- package/esm/sdk/bridge.d.ts +1 -1
- package/esm/sdk/bridge.js +1 -1
- package/esm/sdk/kyb.d.ts +26 -0
- package/esm/sdk/kyb.d.ts.map +1 -0
- package/esm/sdk/kyb.js +38 -0
- package/esm/sdk/kyb.js.map +1 -0
- package/esm/sdk/kyc.d.ts +0 -7
- package/esm/sdk/kyc.d.ts.map +1 -1
- package/esm/sdk/kyc.js +0 -10
- package/esm/sdk/kyc.js.map +1 -1
- package/esm/sdk/markets.d.ts +1 -1
- package/esm/sdk/markets.js +1 -1
- package/esm/sdk/organizations.d.ts +1 -1
- package/esm/sdk/organizations.js +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 +3 -3
- package/src/funcs/assets-get-assets-by-asset-id.ts +203 -0
- package/src/funcs/assets-get-assets.ts +205 -0
- package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +1 -1
- package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.ts +5 -3
- package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.ts +2 -2
- package/src/funcs/assets-post-orgs-by-org-id-assets.ts +1 -1
- package/src/funcs/auth-post-auth-switch-org.ts +180 -0
- package/src/funcs/auth-post-auth-verify-email.ts +1 -1
- package/src/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.ts +2 -2
- package/src/funcs/compliance-post-compliance-check.ts +5 -3
- package/src/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +1 -1
- package/src/funcs/{kyc-post-kyc-webhook-by-provider.ts → kyb-get-orgs-by-org-id-kyb-status.ts} +31 -28
- package/src/funcs/kyb-post-orgs-by-org-id-kyb-access-token.ts +194 -0
- package/src/funcs/kyb-post-orgs-by-org-id-kyb-initiate.ts +194 -0
- package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.ts +2 -2
- package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +1 -1
- package/src/funcs/organizations-post-orgs-by-org-id-members.ts +1 -1
- package/src/funcs/timeseries-get-orgs-by-org-id-holdings-by-user-id.ts +1 -1
- package/src/funcs/transfers-post-transfers.ts +2 -2
- package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deploy.ts +3 -0
- package/src/lib/config.ts +2 -2
- package/src/models/operations/get-assets-by-asset-id.ts +253 -0
- package/src/models/operations/get-assets.ts +250 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +17 -9
- package/src/models/operations/get-orgs-by-org-id-kyb-status.ts +78 -0
- package/src/models/operations/index.ts +6 -1
- package/src/models/operations/post-auth-switch-org.ts +549 -0
- package/src/models/operations/post-auth-verify-email.ts +56 -5
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-vault-deploy.ts +19 -26
- package/src/models/operations/post-orgs-by-org-id-assets.ts +7 -0
- package/src/models/operations/post-orgs-by-org-id-kyb-access-token.ts +93 -0
- package/src/models/operations/post-orgs-by-org-id-kyb-initiate.ts +73 -0
- package/src/models/operations/post-orgs-by-org-id-members-by-user-id-attest.ts +6 -0
- package/src/models/operations/post-orgs-by-org-id-members.ts +20 -0
- package/src/sdk/assets.ts +41 -1
- package/src/sdk/auth.ts +19 -1
- package/src/sdk/bridge.ts +1 -1
- package/src/sdk/kyb.ts +63 -0
- package/src/sdk/kyc.ts +0 -20
- package/src/sdk/markets.ts +1 -1
- package/src/sdk/organizations.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transfers.ts +1 -1
- package/esm/funcs/kyc-post-kyc-webhook-by-provider.d.ts.map +0 -1
- package/esm/funcs/kyc-post-kyc-webhook-by-provider.js.map +0 -1
- package/esm/models/operations/post-kyc-webhook-by-provider.d.ts +0 -93
- package/esm/models/operations/post-kyc-webhook-by-provider.d.ts.map +0 -1
- package/esm/models/operations/post-kyc-webhook-by-provider.js +0 -45
- package/esm/models/operations/post-kyc-webhook-by-provider.js.map +0 -1
- package/src/models/operations/post-kyc-webhook-by-provider.ts +0 -169
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.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 GetAssetsByAssetIdSecurity = {
|
|
13
|
+
bearerAuth?: string | undefined;
|
|
14
|
+
apiKeyAuth?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type GetAssetsByAssetIdRequest = {
|
|
18
|
+
assetId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type GetAssetsByAssetIdDeployment = {
|
|
22
|
+
chainEid: number;
|
|
23
|
+
contractAddress: string | null;
|
|
24
|
+
contractType?: string | null | undefined;
|
|
25
|
+
deployTxHash?: string | null | undefined;
|
|
26
|
+
deployedAt?: string | null | undefined;
|
|
27
|
+
status?: string | null | undefined;
|
|
28
|
+
verified?: boolean | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type Compliance = {
|
|
32
|
+
accreditedInvestorRequired?: boolean | null | undefined;
|
|
33
|
+
blockedCountries?: Array<string> | null | undefined;
|
|
34
|
+
lockupPeriodDays?: number | null | undefined;
|
|
35
|
+
transferRestricted?: boolean | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Response
|
|
40
|
+
*/
|
|
41
|
+
export type GetAssetsByAssetIdResponse = {
|
|
42
|
+
id: string;
|
|
43
|
+
organizationId: string;
|
|
44
|
+
name: string;
|
|
45
|
+
symbol?: string | null | undefined;
|
|
46
|
+
description?: string | null | undefined;
|
|
47
|
+
assetType: string;
|
|
48
|
+
assetSubtype?: string | null | undefined;
|
|
49
|
+
regulationType?: string | null | undefined;
|
|
50
|
+
totalSupply?: number | null | undefined;
|
|
51
|
+
decimals?: number | null | undefined;
|
|
52
|
+
status: string;
|
|
53
|
+
orgOnly?: boolean | null | undefined;
|
|
54
|
+
requiredKycLevel?: number | null | undefined;
|
|
55
|
+
maxHolders?: number | null | undefined;
|
|
56
|
+
deployedChains?: Array<number> | null | undefined;
|
|
57
|
+
contractAddresses?: { [k: string]: string } | null | undefined;
|
|
58
|
+
unitPriceUsd?: number | null | undefined;
|
|
59
|
+
logoUrl?: string | null | undefined;
|
|
60
|
+
bannerUrl?: string | null | undefined;
|
|
61
|
+
launchedAt?: string | null | undefined;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
orgName: string;
|
|
64
|
+
orgLogoUrl?: string | null | undefined;
|
|
65
|
+
orgBannerUrl?: string | null | undefined;
|
|
66
|
+
isOwnOrg: boolean;
|
|
67
|
+
heldBalance: number | null;
|
|
68
|
+
deployments: Array<GetAssetsByAssetIdDeployment>;
|
|
69
|
+
compliance: Compliance;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type GetAssetsByAssetIdSecurity$Outbound = {
|
|
74
|
+
bearerAuth?: string | undefined;
|
|
75
|
+
apiKeyAuth?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const GetAssetsByAssetIdSecurity$outboundSchema: z.ZodMiniType<
|
|
80
|
+
GetAssetsByAssetIdSecurity$Outbound,
|
|
81
|
+
GetAssetsByAssetIdSecurity
|
|
82
|
+
> = z.object({
|
|
83
|
+
bearerAuth: z.optional(z.string()),
|
|
84
|
+
apiKeyAuth: z.optional(z.string()),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export function getAssetsByAssetIdSecurityToJSON(
|
|
88
|
+
getAssetsByAssetIdSecurity: GetAssetsByAssetIdSecurity,
|
|
89
|
+
): string {
|
|
90
|
+
return JSON.stringify(
|
|
91
|
+
GetAssetsByAssetIdSecurity$outboundSchema.parse(getAssetsByAssetIdSecurity),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export type GetAssetsByAssetIdRequest$Outbound = {
|
|
97
|
+
assetId: string;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const GetAssetsByAssetIdRequest$outboundSchema: z.ZodMiniType<
|
|
102
|
+
GetAssetsByAssetIdRequest$Outbound,
|
|
103
|
+
GetAssetsByAssetIdRequest
|
|
104
|
+
> = z.object({
|
|
105
|
+
assetId: z.string(),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export function getAssetsByAssetIdRequestToJSON(
|
|
109
|
+
getAssetsByAssetIdRequest: GetAssetsByAssetIdRequest,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
GetAssetsByAssetIdRequest$outboundSchema.parse(getAssetsByAssetIdRequest),
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const GetAssetsByAssetIdDeployment$inboundSchema: z.ZodMiniType<
|
|
118
|
+
GetAssetsByAssetIdDeployment,
|
|
119
|
+
unknown
|
|
120
|
+
> = z.pipe(
|
|
121
|
+
z.object({
|
|
122
|
+
chain_eid: types.number(),
|
|
123
|
+
contract_address: types.nullable(types.string()),
|
|
124
|
+
contract_type: z.optional(z.nullable(types.string())),
|
|
125
|
+
deploy_tx_hash: z.optional(z.nullable(types.string())),
|
|
126
|
+
deployed_at: z.optional(z.nullable(types.string())),
|
|
127
|
+
status: z.optional(z.nullable(types.string())),
|
|
128
|
+
verified: z.optional(z.nullable(types.boolean())),
|
|
129
|
+
}),
|
|
130
|
+
z.transform((v) => {
|
|
131
|
+
return remap$(v, {
|
|
132
|
+
"chain_eid": "chainEid",
|
|
133
|
+
"contract_address": "contractAddress",
|
|
134
|
+
"contract_type": "contractType",
|
|
135
|
+
"deploy_tx_hash": "deployTxHash",
|
|
136
|
+
"deployed_at": "deployedAt",
|
|
137
|
+
});
|
|
138
|
+
}),
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
export function getAssetsByAssetIdDeploymentFromJSON(
|
|
142
|
+
jsonString: string,
|
|
143
|
+
): SafeParseResult<GetAssetsByAssetIdDeployment, SDKValidationError> {
|
|
144
|
+
return safeParse(
|
|
145
|
+
jsonString,
|
|
146
|
+
(x) => GetAssetsByAssetIdDeployment$inboundSchema.parse(JSON.parse(x)),
|
|
147
|
+
`Failed to parse 'GetAssetsByAssetIdDeployment' from JSON`,
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export const Compliance$inboundSchema: z.ZodMiniType<Compliance, unknown> = z
|
|
153
|
+
.pipe(
|
|
154
|
+
z.object({
|
|
155
|
+
accredited_investor_required: z.optional(z.nullable(types.boolean())),
|
|
156
|
+
blocked_countries: z.optional(z.nullable(z.array(types.string()))),
|
|
157
|
+
lockup_period_days: z.optional(z.nullable(types.number())),
|
|
158
|
+
transfer_restricted: z.optional(z.nullable(types.boolean())),
|
|
159
|
+
}),
|
|
160
|
+
z.transform((v) => {
|
|
161
|
+
return remap$(v, {
|
|
162
|
+
"accredited_investor_required": "accreditedInvestorRequired",
|
|
163
|
+
"blocked_countries": "blockedCountries",
|
|
164
|
+
"lockup_period_days": "lockupPeriodDays",
|
|
165
|
+
"transfer_restricted": "transferRestricted",
|
|
166
|
+
});
|
|
167
|
+
}),
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
export function complianceFromJSON(
|
|
171
|
+
jsonString: string,
|
|
172
|
+
): SafeParseResult<Compliance, SDKValidationError> {
|
|
173
|
+
return safeParse(
|
|
174
|
+
jsonString,
|
|
175
|
+
(x) => Compliance$inboundSchema.parse(JSON.parse(x)),
|
|
176
|
+
`Failed to parse 'Compliance' from JSON`,
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** @internal */
|
|
181
|
+
export const GetAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
182
|
+
GetAssetsByAssetIdResponse,
|
|
183
|
+
unknown
|
|
184
|
+
> = z.pipe(
|
|
185
|
+
z.object({
|
|
186
|
+
id: types.string(),
|
|
187
|
+
organization_id: types.string(),
|
|
188
|
+
name: types.string(),
|
|
189
|
+
symbol: z.optional(z.nullable(types.string())),
|
|
190
|
+
description: z.optional(z.nullable(types.string())),
|
|
191
|
+
asset_type: types.string(),
|
|
192
|
+
asset_subtype: z.optional(z.nullable(types.string())),
|
|
193
|
+
regulation_type: z.optional(z.nullable(types.string())),
|
|
194
|
+
total_supply: z.optional(z.nullable(types.number())),
|
|
195
|
+
decimals: z.optional(z.nullable(types.number())),
|
|
196
|
+
status: types.string(),
|
|
197
|
+
org_only: z.optional(z.nullable(types.boolean())),
|
|
198
|
+
required_kyc_level: z.optional(z.nullable(types.number())),
|
|
199
|
+
max_holders: z.optional(z.nullable(types.number())),
|
|
200
|
+
deployed_chains: z.optional(z.nullable(z.array(types.number()))),
|
|
201
|
+
contract_addresses: z.optional(
|
|
202
|
+
z.nullable(z.record(z.string(), types.string())),
|
|
203
|
+
),
|
|
204
|
+
unit_price_usd: z.optional(z.nullable(types.number())),
|
|
205
|
+
logo_url: z.optional(z.nullable(types.string())),
|
|
206
|
+
banner_url: z.optional(z.nullable(types.string())),
|
|
207
|
+
launched_at: z.optional(z.nullable(types.string())),
|
|
208
|
+
created_at: types.string(),
|
|
209
|
+
org_name: types.string(),
|
|
210
|
+
org_logo_url: z.optional(z.nullable(types.string())),
|
|
211
|
+
org_banner_url: z.optional(z.nullable(types.string())),
|
|
212
|
+
is_own_org: types.boolean(),
|
|
213
|
+
held_balance: types.nullable(types.number()),
|
|
214
|
+
deployments: z.array(
|
|
215
|
+
z.lazy(() => GetAssetsByAssetIdDeployment$inboundSchema),
|
|
216
|
+
),
|
|
217
|
+
compliance: z.lazy(() => Compliance$inboundSchema),
|
|
218
|
+
}),
|
|
219
|
+
z.transform((v) => {
|
|
220
|
+
return remap$(v, {
|
|
221
|
+
"organization_id": "organizationId",
|
|
222
|
+
"asset_type": "assetType",
|
|
223
|
+
"asset_subtype": "assetSubtype",
|
|
224
|
+
"regulation_type": "regulationType",
|
|
225
|
+
"total_supply": "totalSupply",
|
|
226
|
+
"org_only": "orgOnly",
|
|
227
|
+
"required_kyc_level": "requiredKycLevel",
|
|
228
|
+
"max_holders": "maxHolders",
|
|
229
|
+
"deployed_chains": "deployedChains",
|
|
230
|
+
"contract_addresses": "contractAddresses",
|
|
231
|
+
"unit_price_usd": "unitPriceUsd",
|
|
232
|
+
"logo_url": "logoUrl",
|
|
233
|
+
"banner_url": "bannerUrl",
|
|
234
|
+
"launched_at": "launchedAt",
|
|
235
|
+
"created_at": "createdAt",
|
|
236
|
+
"org_name": "orgName",
|
|
237
|
+
"org_logo_url": "orgLogoUrl",
|
|
238
|
+
"org_banner_url": "orgBannerUrl",
|
|
239
|
+
"is_own_org": "isOwnOrg",
|
|
240
|
+
"held_balance": "heldBalance",
|
|
241
|
+
});
|
|
242
|
+
}),
|
|
243
|
+
);
|
|
244
|
+
|
|
245
|
+
export function getAssetsByAssetIdResponseFromJSON(
|
|
246
|
+
jsonString: string,
|
|
247
|
+
): SafeParseResult<GetAssetsByAssetIdResponse, SDKValidationError> {
|
|
248
|
+
return safeParse(
|
|
249
|
+
jsonString,
|
|
250
|
+
(x) => GetAssetsByAssetIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
251
|
+
`Failed to parse 'GetAssetsByAssetIdResponse' from JSON`,
|
|
252
|
+
);
|
|
253
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.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 GetAssetsSecurity = {
|
|
13
|
+
bearerAuth?: string | undefined;
|
|
14
|
+
apiKeyAuth?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type GetAssetsRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Discovery scope (default: public)
|
|
20
|
+
*/
|
|
21
|
+
scope?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Filter by asset type (cre, equity, bond, debt, fund, commodity)
|
|
24
|
+
*/
|
|
25
|
+
type?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Filter by regulation framework (reg_d, reg_s, reg_a_plus, reg_cf, none)
|
|
28
|
+
*/
|
|
29
|
+
regulationType?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Return assets requiring at most this KYC level (1-4)
|
|
32
|
+
*/
|
|
33
|
+
maxKycLevel?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Filter by accreditation requirement (true/false)
|
|
36
|
+
*/
|
|
37
|
+
accredited?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Filter by chain (LayerZero EID) — matches deployed_chains array
|
|
40
|
+
*/
|
|
41
|
+
chainEid?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* When 'true', filter to assets the caller is eligible for based on their active attestation (KYC level, accreditation). Requires JWT auth.
|
|
44
|
+
*/
|
|
45
|
+
eligible?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Max results (default 50, max 100)
|
|
48
|
+
*/
|
|
49
|
+
limit?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Offset for pagination (default 0)
|
|
52
|
+
*/
|
|
53
|
+
offset?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type GetAssetsAsset = {
|
|
57
|
+
id: string;
|
|
58
|
+
organizationId: string;
|
|
59
|
+
name: string;
|
|
60
|
+
symbol?: string | null | undefined;
|
|
61
|
+
description?: string | null | undefined;
|
|
62
|
+
assetType: string;
|
|
63
|
+
assetSubtype?: string | null | undefined;
|
|
64
|
+
regulationType?: string | null | undefined;
|
|
65
|
+
totalSupply?: number | null | undefined;
|
|
66
|
+
decimals?: number | null | undefined;
|
|
67
|
+
status: string;
|
|
68
|
+
orgOnly?: boolean | null | undefined;
|
|
69
|
+
requiredKycLevel?: number | null | undefined;
|
|
70
|
+
maxHolders?: number | null | undefined;
|
|
71
|
+
deployedChains?: Array<number> | null | undefined;
|
|
72
|
+
contractAddresses?: { [k: string]: string } | null | undefined;
|
|
73
|
+
unitPriceUsd?: number | null | undefined;
|
|
74
|
+
logoUrl?: string | null | undefined;
|
|
75
|
+
bannerUrl?: string | null | undefined;
|
|
76
|
+
launchedAt?: string | null | undefined;
|
|
77
|
+
createdAt: string;
|
|
78
|
+
orgName: string;
|
|
79
|
+
orgLogoUrl?: string | null | undefined;
|
|
80
|
+
orgBannerUrl?: string | null | undefined;
|
|
81
|
+
isOwnOrg: boolean;
|
|
82
|
+
heldBalance: number | null;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Response
|
|
87
|
+
*/
|
|
88
|
+
export type GetAssetsResponse = {
|
|
89
|
+
assets: Array<GetAssetsAsset>;
|
|
90
|
+
total: number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export type GetAssetsSecurity$Outbound = {
|
|
95
|
+
bearerAuth?: string | undefined;
|
|
96
|
+
apiKeyAuth?: string | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const GetAssetsSecurity$outboundSchema: z.ZodMiniType<
|
|
101
|
+
GetAssetsSecurity$Outbound,
|
|
102
|
+
GetAssetsSecurity
|
|
103
|
+
> = z.object({
|
|
104
|
+
bearerAuth: z.optional(z.string()),
|
|
105
|
+
apiKeyAuth: z.optional(z.string()),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export function getAssetsSecurityToJSON(
|
|
109
|
+
getAssetsSecurity: GetAssetsSecurity,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
GetAssetsSecurity$outboundSchema.parse(getAssetsSecurity),
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type GetAssetsRequest$Outbound = {
|
|
118
|
+
scope?: string | undefined;
|
|
119
|
+
type?: string | undefined;
|
|
120
|
+
regulation_type?: string | undefined;
|
|
121
|
+
max_kyc_level?: string | undefined;
|
|
122
|
+
accredited?: string | undefined;
|
|
123
|
+
chain_eid?: string | undefined;
|
|
124
|
+
eligible?: string | undefined;
|
|
125
|
+
limit?: string | undefined;
|
|
126
|
+
offset?: string | undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const GetAssetsRequest$outboundSchema: z.ZodMiniType<
|
|
131
|
+
GetAssetsRequest$Outbound,
|
|
132
|
+
GetAssetsRequest
|
|
133
|
+
> = z.pipe(
|
|
134
|
+
z.object({
|
|
135
|
+
scope: z.optional(z.string()),
|
|
136
|
+
type: z.optional(z.string()),
|
|
137
|
+
regulationType: z.optional(z.string()),
|
|
138
|
+
maxKycLevel: z.optional(z.string()),
|
|
139
|
+
accredited: z.optional(z.string()),
|
|
140
|
+
chainEid: z.optional(z.string()),
|
|
141
|
+
eligible: z.optional(z.string()),
|
|
142
|
+
limit: z.optional(z.string()),
|
|
143
|
+
offset: z.optional(z.string()),
|
|
144
|
+
}),
|
|
145
|
+
z.transform((v) => {
|
|
146
|
+
return remap$(v, {
|
|
147
|
+
regulationType: "regulation_type",
|
|
148
|
+
maxKycLevel: "max_kyc_level",
|
|
149
|
+
chainEid: "chain_eid",
|
|
150
|
+
});
|
|
151
|
+
}),
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
export function getAssetsRequestToJSON(
|
|
155
|
+
getAssetsRequest: GetAssetsRequest,
|
|
156
|
+
): string {
|
|
157
|
+
return JSON.stringify(
|
|
158
|
+
GetAssetsRequest$outboundSchema.parse(getAssetsRequest),
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const GetAssetsAsset$inboundSchema: z.ZodMiniType<
|
|
164
|
+
GetAssetsAsset,
|
|
165
|
+
unknown
|
|
166
|
+
> = z.pipe(
|
|
167
|
+
z.object({
|
|
168
|
+
id: types.string(),
|
|
169
|
+
organization_id: types.string(),
|
|
170
|
+
name: types.string(),
|
|
171
|
+
symbol: z.optional(z.nullable(types.string())),
|
|
172
|
+
description: z.optional(z.nullable(types.string())),
|
|
173
|
+
asset_type: types.string(),
|
|
174
|
+
asset_subtype: z.optional(z.nullable(types.string())),
|
|
175
|
+
regulation_type: z.optional(z.nullable(types.string())),
|
|
176
|
+
total_supply: z.optional(z.nullable(types.number())),
|
|
177
|
+
decimals: z.optional(z.nullable(types.number())),
|
|
178
|
+
status: types.string(),
|
|
179
|
+
org_only: z.optional(z.nullable(types.boolean())),
|
|
180
|
+
required_kyc_level: z.optional(z.nullable(types.number())),
|
|
181
|
+
max_holders: z.optional(z.nullable(types.number())),
|
|
182
|
+
deployed_chains: z.optional(z.nullable(z.array(types.number()))),
|
|
183
|
+
contract_addresses: z.optional(
|
|
184
|
+
z.nullable(z.record(z.string(), types.string())),
|
|
185
|
+
),
|
|
186
|
+
unit_price_usd: z.optional(z.nullable(types.number())),
|
|
187
|
+
logo_url: z.optional(z.nullable(types.string())),
|
|
188
|
+
banner_url: z.optional(z.nullable(types.string())),
|
|
189
|
+
launched_at: z.optional(z.nullable(types.string())),
|
|
190
|
+
created_at: types.string(),
|
|
191
|
+
org_name: types.string(),
|
|
192
|
+
org_logo_url: z.optional(z.nullable(types.string())),
|
|
193
|
+
org_banner_url: z.optional(z.nullable(types.string())),
|
|
194
|
+
is_own_org: types.boolean(),
|
|
195
|
+
held_balance: types.nullable(types.number()),
|
|
196
|
+
}),
|
|
197
|
+
z.transform((v) => {
|
|
198
|
+
return remap$(v, {
|
|
199
|
+
"organization_id": "organizationId",
|
|
200
|
+
"asset_type": "assetType",
|
|
201
|
+
"asset_subtype": "assetSubtype",
|
|
202
|
+
"regulation_type": "regulationType",
|
|
203
|
+
"total_supply": "totalSupply",
|
|
204
|
+
"org_only": "orgOnly",
|
|
205
|
+
"required_kyc_level": "requiredKycLevel",
|
|
206
|
+
"max_holders": "maxHolders",
|
|
207
|
+
"deployed_chains": "deployedChains",
|
|
208
|
+
"contract_addresses": "contractAddresses",
|
|
209
|
+
"unit_price_usd": "unitPriceUsd",
|
|
210
|
+
"logo_url": "logoUrl",
|
|
211
|
+
"banner_url": "bannerUrl",
|
|
212
|
+
"launched_at": "launchedAt",
|
|
213
|
+
"created_at": "createdAt",
|
|
214
|
+
"org_name": "orgName",
|
|
215
|
+
"org_logo_url": "orgLogoUrl",
|
|
216
|
+
"org_banner_url": "orgBannerUrl",
|
|
217
|
+
"is_own_org": "isOwnOrg",
|
|
218
|
+
"held_balance": "heldBalance",
|
|
219
|
+
});
|
|
220
|
+
}),
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
export function getAssetsAssetFromJSON(
|
|
224
|
+
jsonString: string,
|
|
225
|
+
): SafeParseResult<GetAssetsAsset, SDKValidationError> {
|
|
226
|
+
return safeParse(
|
|
227
|
+
jsonString,
|
|
228
|
+
(x) => GetAssetsAsset$inboundSchema.parse(JSON.parse(x)),
|
|
229
|
+
`Failed to parse 'GetAssetsAsset' from JSON`,
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/** @internal */
|
|
234
|
+
export const GetAssetsResponse$inboundSchema: z.ZodMiniType<
|
|
235
|
+
GetAssetsResponse,
|
|
236
|
+
unknown
|
|
237
|
+
> = z.object({
|
|
238
|
+
assets: z.array(z.lazy(() => GetAssetsAsset$inboundSchema)),
|
|
239
|
+
total: types.number(),
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
export function getAssetsResponseFromJSON(
|
|
243
|
+
jsonString: string,
|
|
244
|
+
): SafeParseResult<GetAssetsResponse, SDKValidationError> {
|
|
245
|
+
return safeParse(
|
|
246
|
+
jsonString,
|
|
247
|
+
(x) => GetAssetsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
+
`Failed to parse 'GetAssetsResponse' from JSON`,
|
|
249
|
+
);
|
|
250
|
+
}
|
|
@@ -65,7 +65,7 @@ export type Metadata = {
|
|
|
65
65
|
[additionalProperties: string]: unknown;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export type
|
|
68
|
+
export type GetOrgsByOrgIdAssetsByAssetIdDeployment = {
|
|
69
69
|
id: string;
|
|
70
70
|
assetId: string;
|
|
71
71
|
chainEid: number;
|
|
@@ -114,7 +114,7 @@ export type GetOrgsByOrgIdAssetsByAssetIdResponse = {
|
|
|
114
114
|
orgName?: string | null | undefined;
|
|
115
115
|
orgLogoUrl?: string | null | undefined;
|
|
116
116
|
orgBannerUrl?: string | null | undefined;
|
|
117
|
-
deployments: Array<
|
|
117
|
+
deployments: Array<GetOrgsByOrgIdAssetsByAssetIdDeployment>;
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
/** @internal */
|
|
@@ -211,8 +211,8 @@ export function metadataFromJSON(
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
/** @internal */
|
|
214
|
-
export const
|
|
215
|
-
.pipe(
|
|
214
|
+
export const GetOrgsByOrgIdAssetsByAssetIdDeployment$inboundSchema:
|
|
215
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdDeployment, unknown> = z.pipe(
|
|
216
216
|
z.object({
|
|
217
217
|
id: types.string(),
|
|
218
218
|
asset_id: types.string(),
|
|
@@ -243,13 +243,19 @@ export const Deployment$inboundSchema: z.ZodMiniType<Deployment, unknown> = z
|
|
|
243
243
|
}),
|
|
244
244
|
);
|
|
245
245
|
|
|
246
|
-
export function
|
|
246
|
+
export function getOrgsByOrgIdAssetsByAssetIdDeploymentFromJSON(
|
|
247
247
|
jsonString: string,
|
|
248
|
-
): SafeParseResult<
|
|
248
|
+
): SafeParseResult<
|
|
249
|
+
GetOrgsByOrgIdAssetsByAssetIdDeployment,
|
|
250
|
+
SDKValidationError
|
|
251
|
+
> {
|
|
249
252
|
return safeParse(
|
|
250
253
|
jsonString,
|
|
251
|
-
(x) =>
|
|
252
|
-
|
|
254
|
+
(x) =>
|
|
255
|
+
GetOrgsByOrgIdAssetsByAssetIdDeployment$inboundSchema.parse(
|
|
256
|
+
JSON.parse(x),
|
|
257
|
+
),
|
|
258
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdDeployment' from JSON`,
|
|
253
259
|
);
|
|
254
260
|
}
|
|
255
261
|
|
|
@@ -290,7 +296,9 @@ export const GetOrgsByOrgIdAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
290
296
|
org_name: z.optional(z.nullable(types.string())),
|
|
291
297
|
org_logo_url: z.optional(z.nullable(types.string())),
|
|
292
298
|
org_banner_url: z.optional(z.nullable(types.string())),
|
|
293
|
-
deployments: z.array(
|
|
299
|
+
deployments: z.array(
|
|
300
|
+
z.lazy(() => GetOrgsByOrgIdAssetsByAssetIdDeployment$inboundSchema),
|
|
301
|
+
),
|
|
294
302
|
}),
|
|
295
303
|
z.transform((v) => {
|
|
296
304
|
return remap$(v, {
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type GetOrgsByOrgIdKybStatusRequest = {
|
|
12
|
+
orgId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Response
|
|
17
|
+
*/
|
|
18
|
+
export type GetOrgsByOrgIdKybStatusResponse = {
|
|
19
|
+
verificationId?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* KYB status: none, pending, in_progress, approved, rejected, expired
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
level: string;
|
|
25
|
+
provider: string;
|
|
26
|
+
reviewedAt?: string | undefined;
|
|
27
|
+
expiresAt?: string | undefined;
|
|
28
|
+
rejectionReason?: string | undefined;
|
|
29
|
+
reviewRejectType?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type GetOrgsByOrgIdKybStatusRequest$Outbound = {
|
|
34
|
+
orgId: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const GetOrgsByOrgIdKybStatusRequest$outboundSchema: z.ZodMiniType<
|
|
39
|
+
GetOrgsByOrgIdKybStatusRequest$Outbound,
|
|
40
|
+
GetOrgsByOrgIdKybStatusRequest
|
|
41
|
+
> = z.object({
|
|
42
|
+
orgId: z.string(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function getOrgsByOrgIdKybStatusRequestToJSON(
|
|
46
|
+
getOrgsByOrgIdKybStatusRequest: GetOrgsByOrgIdKybStatusRequest,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
GetOrgsByOrgIdKybStatusRequest$outboundSchema.parse(
|
|
50
|
+
getOrgsByOrgIdKybStatusRequest,
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const GetOrgsByOrgIdKybStatusResponse$inboundSchema: z.ZodMiniType<
|
|
57
|
+
GetOrgsByOrgIdKybStatusResponse,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
verificationId: types.optional(types.string()),
|
|
61
|
+
status: types.string(),
|
|
62
|
+
level: types.string(),
|
|
63
|
+
provider: types.string(),
|
|
64
|
+
reviewedAt: types.optional(types.string()),
|
|
65
|
+
expiresAt: types.optional(types.string()),
|
|
66
|
+
rejectionReason: types.optional(types.string()),
|
|
67
|
+
reviewRejectType: types.optional(types.string()),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function getOrgsByOrgIdKybStatusResponseFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<GetOrgsByOrgIdKybStatusResponse, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => GetOrgsByOrgIdKybStatusResponse$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'GetOrgsByOrgIdKybStatusResponse' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -27,6 +27,8 @@ export * from "./get-accounts-transfers.js";
|
|
|
27
27
|
export * from "./get-accounts-wallets-all.js";
|
|
28
28
|
export * from "./get-accounts-wallets.js";
|
|
29
29
|
export * from "./get-accounts.js";
|
|
30
|
+
export * from "./get-assets-by-asset-id.js";
|
|
31
|
+
export * from "./get-assets.js";
|
|
30
32
|
export * from "./get-attestations-by-id-anchors.js";
|
|
31
33
|
export * from "./get-attestations-by-id-events.js";
|
|
32
34
|
export * from "./get-attestations-by-id-verify.js";
|
|
@@ -98,6 +100,7 @@ export * from "./get-orgs-by-org-id-holdings-history.js";
|
|
|
98
100
|
export * from "./get-orgs-by-org-id-holdings.js";
|
|
99
101
|
export * from "./get-orgs-by-org-id-invitations.js";
|
|
100
102
|
export * from "./get-orgs-by-org-id-issuer.js";
|
|
103
|
+
export * from "./get-orgs-by-org-id-kyb-status.js";
|
|
101
104
|
export * from "./get-orgs-by-org-id-ledger-export.js";
|
|
102
105
|
export * from "./get-orgs-by-org-id-ledger.js";
|
|
103
106
|
export * from "./get-orgs-by-org-id-members-by-user-id-holdings.js";
|
|
@@ -155,13 +158,13 @@ export * from "./post-auth-refresh.js";
|
|
|
155
158
|
export * from "./post-auth-register.js";
|
|
156
159
|
export * from "./post-auth-resend-verification.js";
|
|
157
160
|
export * from "./post-auth-reset-password.js";
|
|
161
|
+
export * from "./post-auth-switch-org.js";
|
|
158
162
|
export * from "./post-auth-verify-email.js";
|
|
159
163
|
export * from "./post-chains-sync.js";
|
|
160
164
|
export * from "./post-compliance-check.js";
|
|
161
165
|
export * from "./post-consent.js";
|
|
162
166
|
export * from "./post-kyc-access-token.js";
|
|
163
167
|
export * from "./post-kyc-initiate.js";
|
|
164
|
-
export * from "./post-kyc-webhook-by-provider.js";
|
|
165
168
|
export * from "./post-login.js";
|
|
166
169
|
export * from "./post-oauth-authorize-callback.js";
|
|
167
170
|
export * from "./post-oauth-revoke.js";
|
|
@@ -191,6 +194,8 @@ export * from "./post-orgs-by-org-id-invitations-by-invitation-id-resend.js";
|
|
|
191
194
|
export * from "./post-orgs-by-org-id-invitations-by-invitation-id-revoke.js";
|
|
192
195
|
export * from "./post-orgs-by-org-id-invite-eligibility.js";
|
|
193
196
|
export * from "./post-orgs-by-org-id-issuer-register.js";
|
|
197
|
+
export * from "./post-orgs-by-org-id-kyb-access-token.js";
|
|
198
|
+
export * from "./post-orgs-by-org-id-kyb-initiate.js";
|
|
194
199
|
export * from "./post-orgs-by-org-id-members-by-user-id-attest.js";
|
|
195
200
|
export * from "./post-orgs-by-org-id-members-by-user-id-server-wallet.js";
|
|
196
201
|
export * from "./post-orgs-by-org-id-members-invite.js";
|