@clossir-tech/ts-sdk 0.9.6 → 0.9.7
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/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +3 -5
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -7
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets-by-market-id.d.ts +3 -5
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets-by-market-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets-by-market-id.js +1 -7
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets-by-market-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets.d.ts +3 -5
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets.js +1 -7
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +55 -19
- 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 +37 -24
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts +28 -17
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.js +19 -18
- package/esm/models/operations/get-orgs-by-org-id-assets.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-compliance-stats.d.ts +4 -2
- package/esm/models/operations/get-orgs-by-org-id-compliance-stats.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-compliance-stats.js +2 -2
- package/esm/models/operations/get-orgs-by-org-id-compliance-stats.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.d.ts +15 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.js +15 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -29
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets-by-market-id.ts +2 -31
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-markets.ts +2 -27
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +88 -97
- package/src/models/operations/get-orgs-by-org-id-assets.ts +31 -70
- package/src/models/operations/get-orgs-by-org-id-compliance-stats.ts +7 -4
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.ts +23 -2
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import * as types from "../../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
@@ -19,13 +21,49 @@ export type GetOrgsByOrgIdAssetsByAssetIdRequest = {
|
|
|
19
21
|
assetId: string;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
|
-
export
|
|
24
|
+
export const GetOrgsByOrgIdAssetsByAssetIdStatus = {
|
|
25
|
+
Draft: "draft",
|
|
26
|
+
PendingReview: "pending_review",
|
|
27
|
+
Approved: "approved",
|
|
28
|
+
Deploying: "deploying",
|
|
29
|
+
Deployed: "deployed",
|
|
30
|
+
Active: "active",
|
|
31
|
+
Paused: "paused",
|
|
32
|
+
Retired: "retired",
|
|
33
|
+
} as const;
|
|
34
|
+
export type GetOrgsByOrgIdAssetsByAssetIdStatus = OpenEnum<
|
|
35
|
+
typeof GetOrgsByOrgIdAssetsByAssetIdStatus
|
|
36
|
+
>;
|
|
23
37
|
|
|
24
|
-
export type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
38
|
+
export type Metadata = {
|
|
39
|
+
/**
|
|
40
|
+
* Raw chain-agent failure message. OPERATOR-FACING: credential-bearing, never render it to a user.
|
|
41
|
+
*/
|
|
42
|
+
error?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Classified failure reason code. Declared ahead of its writer, so it is absent until that writer ships. Open string on the wire; the closed set is enforced by the renderer.
|
|
45
|
+
*/
|
|
46
|
+
reasonCode?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Reader-safe failure reason, authored for the issuer rather than copied from the chain agent. Declared ahead of its writer, so it is absent until that writer ships.
|
|
49
|
+
*/
|
|
50
|
+
reason?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The deployment was reconciled rather than freshly observed.
|
|
53
|
+
*/
|
|
54
|
+
reconciled?: boolean | undefined;
|
|
55
|
+
reconciledReason?: string | null | undefined;
|
|
56
|
+
compliancePolicyChecked?: boolean | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Set by the bridge-failure writer, not the deploy writer.
|
|
59
|
+
*/
|
|
60
|
+
bridgeFailed?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* LayerZero EID of the bridge's source chain.
|
|
63
|
+
*/
|
|
64
|
+
srcChainEid?: number | undefined;
|
|
65
|
+
[additionalProperties: string]: unknown;
|
|
66
|
+
};
|
|
29
67
|
|
|
30
68
|
export type Deployment = {
|
|
31
69
|
id: string;
|
|
@@ -38,7 +76,7 @@ export type Deployment = {
|
|
|
38
76
|
deployerAddress?: string | null | undefined;
|
|
39
77
|
status?: string | null | undefined;
|
|
40
78
|
verified?: boolean | null | undefined;
|
|
41
|
-
metadata?:
|
|
79
|
+
metadata?: Metadata | null | undefined;
|
|
42
80
|
createdAt?: string | null | undefined;
|
|
43
81
|
updatedAt?: string | null | undefined;
|
|
44
82
|
};
|
|
@@ -59,20 +97,14 @@ export type GetOrgsByOrgIdAssetsByAssetIdResponse = {
|
|
|
59
97
|
maxSupply?: number | null | undefined;
|
|
60
98
|
decimals?: number | null | undefined;
|
|
61
99
|
unitPriceUsd?: number | null | undefined;
|
|
62
|
-
status:
|
|
100
|
+
status: GetOrgsByOrgIdAssetsByAssetIdStatus;
|
|
63
101
|
orgOnly?: boolean | null | undefined;
|
|
64
102
|
requiredKycLevel?: number | null | undefined;
|
|
65
103
|
maxHolders?: number | null | undefined;
|
|
66
|
-
complianceRules?:
|
|
67
|
-
|
|
68
|
-
| null
|
|
69
|
-
| undefined;
|
|
70
|
-
contractAddresses?:
|
|
71
|
-
| GetOrgsByOrgIdAssetsByAssetIdContractAddresses
|
|
72
|
-
| null
|
|
73
|
-
| undefined;
|
|
104
|
+
complianceRules?: { [k: string]: any } | null | undefined;
|
|
105
|
+
contractAddresses?: { [k: string]: string } | null | undefined;
|
|
74
106
|
deployedChains?: Array<number> | null | undefined;
|
|
75
|
-
metadata?:
|
|
107
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
76
108
|
createdBy?: string | null | undefined;
|
|
77
109
|
launchedAt?: string | null | undefined;
|
|
78
110
|
logoUrl?: string | null | undefined;
|
|
@@ -137,77 +169,44 @@ export function getOrgsByOrgIdAssetsByAssetIdRequestToJSON(
|
|
|
137
169
|
}
|
|
138
170
|
|
|
139
171
|
/** @internal */
|
|
140
|
-
export const
|
|
141
|
-
|
|
142
|
-
.object({});
|
|
143
|
-
|
|
144
|
-
export function getOrgsByOrgIdAssetsByAssetIdComplianceRulesFromJSON(
|
|
145
|
-
jsonString: string,
|
|
146
|
-
): SafeParseResult<
|
|
147
|
-
GetOrgsByOrgIdAssetsByAssetIdComplianceRules,
|
|
148
|
-
SDKValidationError
|
|
149
|
-
> {
|
|
150
|
-
return safeParse(
|
|
151
|
-
jsonString,
|
|
152
|
-
(x) =>
|
|
153
|
-
GetOrgsByOrgIdAssetsByAssetIdComplianceRules$inboundSchema.parse(
|
|
154
|
-
JSON.parse(x),
|
|
155
|
-
),
|
|
156
|
-
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdComplianceRules' from JSON`,
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/** @internal */
|
|
161
|
-
export const GetOrgsByOrgIdAssetsByAssetIdContractAddresses$inboundSchema:
|
|
162
|
-
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdContractAddresses, unknown> = z
|
|
163
|
-
.object({});
|
|
164
|
-
|
|
165
|
-
export function getOrgsByOrgIdAssetsByAssetIdContractAddressesFromJSON(
|
|
166
|
-
jsonString: string,
|
|
167
|
-
): SafeParseResult<
|
|
168
|
-
GetOrgsByOrgIdAssetsByAssetIdContractAddresses,
|
|
169
|
-
SDKValidationError
|
|
170
|
-
> {
|
|
171
|
-
return safeParse(
|
|
172
|
-
jsonString,
|
|
173
|
-
(x) =>
|
|
174
|
-
GetOrgsByOrgIdAssetsByAssetIdContractAddresses$inboundSchema.parse(
|
|
175
|
-
JSON.parse(x),
|
|
176
|
-
),
|
|
177
|
-
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdContractAddresses' from JSON`,
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/** @internal */
|
|
182
|
-
export const GetOrgsByOrgIdAssetsByAssetIdMetadata$inboundSchema: z.ZodMiniType<
|
|
183
|
-
GetOrgsByOrgIdAssetsByAssetIdMetadata,
|
|
172
|
+
export const GetOrgsByOrgIdAssetsByAssetIdStatus$inboundSchema: z.ZodMiniType<
|
|
173
|
+
GetOrgsByOrgIdAssetsByAssetIdStatus,
|
|
184
174
|
unknown
|
|
185
|
-
> =
|
|
186
|
-
|
|
187
|
-
export function getOrgsByOrgIdAssetsByAssetIdMetadataFromJSON(
|
|
188
|
-
jsonString: string,
|
|
189
|
-
): SafeParseResult<GetOrgsByOrgIdAssetsByAssetIdMetadata, SDKValidationError> {
|
|
190
|
-
return safeParse(
|
|
191
|
-
jsonString,
|
|
192
|
-
(x) =>
|
|
193
|
-
GetOrgsByOrgIdAssetsByAssetIdMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
194
|
-
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdMetadata' from JSON`,
|
|
195
|
-
);
|
|
196
|
-
}
|
|
175
|
+
> = openEnums.inboundSchema(GetOrgsByOrgIdAssetsByAssetIdStatus);
|
|
197
176
|
|
|
198
177
|
/** @internal */
|
|
199
|
-
export const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
178
|
+
export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
179
|
+
z.catchall(
|
|
180
|
+
z.object({
|
|
181
|
+
error: types.optional(types.string()),
|
|
182
|
+
reason_code: types.optional(types.string()),
|
|
183
|
+
reason: types.optional(types.string()),
|
|
184
|
+
reconciled: types.optional(types.boolean()),
|
|
185
|
+
reconciled_reason: z.optional(z.nullable(types.string())),
|
|
186
|
+
compliance_policy_checked: z.optional(z.nullable(types.boolean())),
|
|
187
|
+
bridge_failed: types.optional(types.boolean()),
|
|
188
|
+
src_chain_eid: types.optional(types.number()),
|
|
189
|
+
}),
|
|
190
|
+
z.any(),
|
|
191
|
+
),
|
|
192
|
+
z.transform((v) => {
|
|
193
|
+
return remap$(v, {
|
|
194
|
+
"reason_code": "reasonCode",
|
|
195
|
+
"reconciled_reason": "reconciledReason",
|
|
196
|
+
"compliance_policy_checked": "compliancePolicyChecked",
|
|
197
|
+
"bridge_failed": "bridgeFailed",
|
|
198
|
+
"src_chain_eid": "srcChainEid",
|
|
199
|
+
});
|
|
200
|
+
}),
|
|
201
|
+
);
|
|
203
202
|
|
|
204
|
-
export function
|
|
203
|
+
export function metadataFromJSON(
|
|
205
204
|
jsonString: string,
|
|
206
|
-
): SafeParseResult<
|
|
205
|
+
): SafeParseResult<Metadata, SDKValidationError> {
|
|
207
206
|
return safeParse(
|
|
208
207
|
jsonString,
|
|
209
|
-
(x) =>
|
|
210
|
-
`Failed to parse '
|
|
208
|
+
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
209
|
+
`Failed to parse 'Metadata' from JSON`,
|
|
211
210
|
);
|
|
212
211
|
}
|
|
213
212
|
|
|
@@ -225,9 +224,7 @@ export const Deployment$inboundSchema: z.ZodMiniType<Deployment, unknown> = z
|
|
|
225
224
|
deployer_address: z.optional(z.nullable(types.string())),
|
|
226
225
|
status: z.optional(z.nullable(types.string())),
|
|
227
226
|
verified: z.optional(z.nullable(types.boolean())),
|
|
228
|
-
metadata: z.optional(
|
|
229
|
-
z.nullable(z.lazy(() => DeploymentMetadata$inboundSchema)),
|
|
230
|
-
),
|
|
227
|
+
metadata: z.optional(z.nullable(z.lazy(() => Metadata$inboundSchema))),
|
|
231
228
|
created_at: z.optional(z.nullable(types.string())),
|
|
232
229
|
updated_at: z.optional(z.nullable(types.string())),
|
|
233
230
|
}),
|
|
@@ -274,20 +271,16 @@ export const GetOrgsByOrgIdAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
274
271
|
max_supply: z.optional(z.nullable(types.number())),
|
|
275
272
|
decimals: z.optional(z.nullable(types.number())),
|
|
276
273
|
unit_price_usd: z.optional(z.nullable(types.number())),
|
|
277
|
-
status:
|
|
274
|
+
status: GetOrgsByOrgIdAssetsByAssetIdStatus$inboundSchema,
|
|
278
275
|
org_only: z.optional(z.nullable(types.boolean())),
|
|
279
276
|
required_kyc_level: z.optional(z.nullable(types.number())),
|
|
280
277
|
max_holders: z.optional(z.nullable(types.number())),
|
|
281
|
-
compliance_rules: z.optional(z.nullable(z.
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
GetOrgsByOrgIdAssetsByAssetIdContractAddresses$inboundSchema
|
|
286
|
-
))),
|
|
278
|
+
compliance_rules: z.optional(z.nullable(z.record(z.string(), z.any()))),
|
|
279
|
+
contract_addresses: z.optional(
|
|
280
|
+
z.nullable(z.record(z.string(), types.string())),
|
|
281
|
+
),
|
|
287
282
|
deployed_chains: z.optional(z.nullable(z.array(types.number()))),
|
|
288
|
-
metadata: z.optional(z.nullable(z.
|
|
289
|
-
GetOrgsByOrgIdAssetsByAssetIdMetadata$inboundSchema
|
|
290
|
-
))),
|
|
283
|
+
metadata: z.optional(z.nullable(z.record(z.string(), z.any()))),
|
|
291
284
|
created_by: z.optional(z.nullable(types.string())),
|
|
292
285
|
launched_at: z.optional(z.nullable(types.string())),
|
|
293
286
|
logo_url: z.optional(z.nullable(types.string())),
|
|
@@ -297,9 +290,7 @@ export const GetOrgsByOrgIdAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
297
290
|
org_name: z.optional(z.nullable(types.string())),
|
|
298
291
|
org_logo_url: z.optional(z.nullable(types.string())),
|
|
299
292
|
org_banner_url: z.optional(z.nullable(types.string())),
|
|
300
|
-
deployments: z.array(z.lazy(() =>
|
|
301
|
-
Deployment$inboundSchema
|
|
302
|
-
)),
|
|
293
|
+
deployments: z.array(z.lazy(() => Deployment$inboundSchema)),
|
|
303
294
|
}),
|
|
304
295
|
z.transform((v) => {
|
|
305
296
|
return remap$(v, {
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import * as types from "../../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
@@ -20,14 +22,25 @@ export type GetOrgsByOrgIdAssetsRequest = {
|
|
|
20
22
|
status?: string | undefined;
|
|
21
23
|
};
|
|
22
24
|
|
|
23
|
-
export type GetOrgsByOrgIdAssetsComplianceRules = {};
|
|
24
|
-
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Lifecycle status of the asset
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
export const GetOrgsByOrgIdAssetsStatus = {
|
|
29
|
+
Draft: "draft",
|
|
30
|
+
PendingReview: "pending_review",
|
|
31
|
+
Approved: "approved",
|
|
32
|
+
Deploying: "deploying",
|
|
33
|
+
Deployed: "deployed",
|
|
34
|
+
Active: "active",
|
|
35
|
+
Paused: "paused",
|
|
36
|
+
Retired: "retired",
|
|
37
|
+
} as const;
|
|
38
|
+
/**
|
|
39
|
+
* Lifecycle status of the asset
|
|
40
|
+
*/
|
|
41
|
+
export type GetOrgsByOrgIdAssetsStatus = OpenEnum<
|
|
42
|
+
typeof GetOrgsByOrgIdAssetsStatus
|
|
43
|
+
>;
|
|
31
44
|
|
|
32
45
|
export type GetOrgsByOrgIdAssetsAsset = {
|
|
33
46
|
id: string;
|
|
@@ -46,16 +59,16 @@ export type GetOrgsByOrgIdAssetsAsset = {
|
|
|
46
59
|
decimals?: number | null | undefined;
|
|
47
60
|
unitPriceUsd?: number | null | undefined;
|
|
48
61
|
/**
|
|
49
|
-
*
|
|
62
|
+
* Lifecycle status of the asset
|
|
50
63
|
*/
|
|
51
|
-
status:
|
|
64
|
+
status: GetOrgsByOrgIdAssetsStatus;
|
|
52
65
|
orgOnly?: boolean | null | undefined;
|
|
53
66
|
requiredKycLevel?: number | null | undefined;
|
|
54
67
|
maxHolders?: number | null | undefined;
|
|
55
|
-
complianceRules?:
|
|
56
|
-
contractAddresses?:
|
|
68
|
+
complianceRules?: { [k: string]: any } | null | undefined;
|
|
69
|
+
contractAddresses?: { [k: string]: string } | null | undefined;
|
|
57
70
|
deployedChains?: Array<number> | null | undefined;
|
|
58
|
-
metadata?:
|
|
71
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
59
72
|
createdBy?: string | null | undefined;
|
|
60
73
|
launchedAt?: string | null | undefined;
|
|
61
74
|
logoUrl?: string | null | undefined;
|
|
@@ -127,54 +140,10 @@ export function getOrgsByOrgIdAssetsRequestToJSON(
|
|
|
127
140
|
}
|
|
128
141
|
|
|
129
142
|
/** @internal */
|
|
130
|
-
export const
|
|
131
|
-
|
|
132
|
-
unknown
|
|
133
|
-
> = z.object({});
|
|
134
|
-
|
|
135
|
-
export function getOrgsByOrgIdAssetsComplianceRulesFromJSON(
|
|
136
|
-
jsonString: string,
|
|
137
|
-
): SafeParseResult<GetOrgsByOrgIdAssetsComplianceRules, SDKValidationError> {
|
|
138
|
-
return safeParse(
|
|
139
|
-
jsonString,
|
|
140
|
-
(x) =>
|
|
141
|
-
GetOrgsByOrgIdAssetsComplianceRules$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
-
`Failed to parse 'GetOrgsByOrgIdAssetsComplianceRules' from JSON`,
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/** @internal */
|
|
147
|
-
export const GetOrgsByOrgIdAssetsContractAddresses$inboundSchema: z.ZodMiniType<
|
|
148
|
-
GetOrgsByOrgIdAssetsContractAddresses,
|
|
149
|
-
unknown
|
|
150
|
-
> = z.object({});
|
|
151
|
-
|
|
152
|
-
export function getOrgsByOrgIdAssetsContractAddressesFromJSON(
|
|
153
|
-
jsonString: string,
|
|
154
|
-
): SafeParseResult<GetOrgsByOrgIdAssetsContractAddresses, SDKValidationError> {
|
|
155
|
-
return safeParse(
|
|
156
|
-
jsonString,
|
|
157
|
-
(x) =>
|
|
158
|
-
GetOrgsByOrgIdAssetsContractAddresses$inboundSchema.parse(JSON.parse(x)),
|
|
159
|
-
`Failed to parse 'GetOrgsByOrgIdAssetsContractAddresses' from JSON`,
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/** @internal */
|
|
164
|
-
export const GetOrgsByOrgIdAssetsMetadata$inboundSchema: z.ZodMiniType<
|
|
165
|
-
GetOrgsByOrgIdAssetsMetadata,
|
|
143
|
+
export const GetOrgsByOrgIdAssetsStatus$inboundSchema: z.ZodMiniType<
|
|
144
|
+
GetOrgsByOrgIdAssetsStatus,
|
|
166
145
|
unknown
|
|
167
|
-
> =
|
|
168
|
-
|
|
169
|
-
export function getOrgsByOrgIdAssetsMetadataFromJSON(
|
|
170
|
-
jsonString: string,
|
|
171
|
-
): SafeParseResult<GetOrgsByOrgIdAssetsMetadata, SDKValidationError> {
|
|
172
|
-
return safeParse(
|
|
173
|
-
jsonString,
|
|
174
|
-
(x) => GetOrgsByOrgIdAssetsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
-
`Failed to parse 'GetOrgsByOrgIdAssetsMetadata' from JSON`,
|
|
176
|
-
);
|
|
177
|
-
}
|
|
146
|
+
> = openEnums.inboundSchema(GetOrgsByOrgIdAssetsStatus);
|
|
178
147
|
|
|
179
148
|
/** @internal */
|
|
180
149
|
export const GetOrgsByOrgIdAssetsAsset$inboundSchema: z.ZodMiniType<
|
|
@@ -194,24 +163,16 @@ export const GetOrgsByOrgIdAssetsAsset$inboundSchema: z.ZodMiniType<
|
|
|
194
163
|
max_supply: z.optional(z.nullable(types.number())),
|
|
195
164
|
decimals: z.optional(z.nullable(types.number())),
|
|
196
165
|
unit_price_usd: z.optional(z.nullable(types.number())),
|
|
197
|
-
status:
|
|
166
|
+
status: GetOrgsByOrgIdAssetsStatus$inboundSchema,
|
|
198
167
|
org_only: z.optional(z.nullable(types.boolean())),
|
|
199
168
|
required_kyc_level: z.optional(z.nullable(types.number())),
|
|
200
169
|
max_holders: z.optional(z.nullable(types.number())),
|
|
201
|
-
compliance_rules: z.optional(
|
|
202
|
-
z.nullable(
|
|
203
|
-
z.lazy(() => GetOrgsByOrgIdAssetsComplianceRules$inboundSchema),
|
|
204
|
-
),
|
|
205
|
-
),
|
|
170
|
+
compliance_rules: z.optional(z.nullable(z.record(z.string(), z.any()))),
|
|
206
171
|
contract_addresses: z.optional(
|
|
207
|
-
z.nullable(z.
|
|
208
|
-
GetOrgsByOrgIdAssetsContractAddresses$inboundSchema
|
|
209
|
-
)),
|
|
172
|
+
z.nullable(z.record(z.string(), types.string())),
|
|
210
173
|
),
|
|
211
174
|
deployed_chains: z.optional(z.nullable(z.array(types.number()))),
|
|
212
|
-
metadata: z.optional(
|
|
213
|
-
z.nullable(z.lazy(() => GetOrgsByOrgIdAssetsMetadata$inboundSchema)),
|
|
214
|
-
),
|
|
175
|
+
metadata: z.optional(z.nullable(z.record(z.string(), z.any()))),
|
|
215
176
|
created_by: z.optional(z.nullable(types.string())),
|
|
216
177
|
launched_at: z.optional(z.nullable(types.string())),
|
|
217
178
|
logo_url: z.optional(z.nullable(types.string())),
|
|
@@ -45,7 +45,7 @@ export type WindowDays = string | number;
|
|
|
45
45
|
|
|
46
46
|
export type TotalRejections = string | number;
|
|
47
47
|
|
|
48
|
-
export type ByReasonCode =
|
|
48
|
+
export type ByReasonCode = string | number;
|
|
49
49
|
|
|
50
50
|
export type TrendCount = string | number;
|
|
51
51
|
|
|
@@ -75,7 +75,7 @@ export type GetOrgsByOrgIdComplianceStatsResponse = {
|
|
|
75
75
|
windowDays: string | number;
|
|
76
76
|
totalRejections: string | number;
|
|
77
77
|
capped: boolean;
|
|
78
|
-
byReasonCode:
|
|
78
|
+
byReasonCode: { [k: string]: string | number };
|
|
79
79
|
trend: Array<Trend>;
|
|
80
80
|
topRejectedWallets: Array<TopRejectedWallet>;
|
|
81
81
|
topRejectedAssets: Array<TopRejectedAsset>;
|
|
@@ -174,7 +174,7 @@ export function totalRejectionsFromJSON(
|
|
|
174
174
|
|
|
175
175
|
/** @internal */
|
|
176
176
|
export const ByReasonCode$inboundSchema: z.ZodMiniType<ByReasonCode, unknown> =
|
|
177
|
-
|
|
177
|
+
smartUnion([types.string(), types.number()]);
|
|
178
178
|
|
|
179
179
|
export function byReasonCodeFromJSON(
|
|
180
180
|
jsonString: string,
|
|
@@ -294,7 +294,10 @@ export const GetOrgsByOrgIdComplianceStatsResponse$inboundSchema: z.ZodMiniType<
|
|
|
294
294
|
windowDays: smartUnion([types.string(), types.number()]),
|
|
295
295
|
totalRejections: smartUnion([types.string(), types.number()]),
|
|
296
296
|
capped: types.boolean(),
|
|
297
|
-
byReasonCode: z.
|
|
297
|
+
byReasonCode: z.record(
|
|
298
|
+
z.string(),
|
|
299
|
+
smartUnion([types.string(), types.number()]),
|
|
300
|
+
),
|
|
298
301
|
trend: z.array(z.lazy(() => Trend$inboundSchema)),
|
|
299
302
|
topRejectedWallets: z.array(z.lazy(() => TopRejectedWallet$inboundSchema)),
|
|
300
303
|
topRejectedAssets: z.array(z.lazy(() => TopRejectedAsset$inboundSchema)),
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import * as types from "../../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
@@ -27,6 +29,20 @@ export type PostOrgsByOrgIdAssetsByAssetIdDeployRequest = {
|
|
|
27
29
|
body: PostOrgsByOrgIdAssetsByAssetIdDeployRequestBody;
|
|
28
30
|
};
|
|
29
31
|
|
|
32
|
+
export const PostOrgsByOrgIdAssetsByAssetIdDeployStatus = {
|
|
33
|
+
Draft: "draft",
|
|
34
|
+
PendingReview: "pending_review",
|
|
35
|
+
Approved: "approved",
|
|
36
|
+
Deploying: "deploying",
|
|
37
|
+
Deployed: "deployed",
|
|
38
|
+
Active: "active",
|
|
39
|
+
Paused: "paused",
|
|
40
|
+
Retired: "retired",
|
|
41
|
+
} as const;
|
|
42
|
+
export type PostOrgsByOrgIdAssetsByAssetIdDeployStatus = OpenEnum<
|
|
43
|
+
typeof PostOrgsByOrgIdAssetsByAssetIdDeployStatus
|
|
44
|
+
>;
|
|
45
|
+
|
|
30
46
|
/**
|
|
31
47
|
* Response
|
|
32
48
|
*/
|
|
@@ -34,7 +50,7 @@ export type PostOrgsByOrgIdAssetsByAssetIdDeployResponse = {
|
|
|
34
50
|
accepted: boolean;
|
|
35
51
|
assetId: string;
|
|
36
52
|
chainEid: number;
|
|
37
|
-
status:
|
|
53
|
+
status: PostOrgsByOrgIdAssetsByAssetIdDeployStatus;
|
|
38
54
|
requestId: string;
|
|
39
55
|
message: string;
|
|
40
56
|
};
|
|
@@ -129,6 +145,11 @@ export function postOrgsByOrgIdAssetsByAssetIdDeployRequestToJSON(
|
|
|
129
145
|
);
|
|
130
146
|
}
|
|
131
147
|
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const PostOrgsByOrgIdAssetsByAssetIdDeployStatus$inboundSchema:
|
|
150
|
+
z.ZodMiniType<PostOrgsByOrgIdAssetsByAssetIdDeployStatus, unknown> = openEnums
|
|
151
|
+
.inboundSchema(PostOrgsByOrgIdAssetsByAssetIdDeployStatus);
|
|
152
|
+
|
|
132
153
|
/** @internal */
|
|
133
154
|
export const PostOrgsByOrgIdAssetsByAssetIdDeployResponse$inboundSchema:
|
|
134
155
|
z.ZodMiniType<PostOrgsByOrgIdAssetsByAssetIdDeployResponse, unknown> = z
|
|
@@ -136,7 +157,7 @@ export const PostOrgsByOrgIdAssetsByAssetIdDeployResponse$inboundSchema:
|
|
|
136
157
|
accepted: types.boolean(),
|
|
137
158
|
assetId: types.string(),
|
|
138
159
|
chainEid: types.number(),
|
|
139
|
-
status:
|
|
160
|
+
status: PostOrgsByOrgIdAssetsByAssetIdDeployStatus$inboundSchema,
|
|
140
161
|
requestId: types.string(),
|
|
141
162
|
message: types.string(),
|
|
142
163
|
});
|