@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
|
@@ -13,18 +13,15 @@ export type PostOrgsByOrgIdAssetsByAssetIdVaultDeployRequestBody = {
|
|
|
13
13
|
shareTokenAddress: string;
|
|
14
14
|
depositAssetAddress: string;
|
|
15
15
|
complianceContractAddress?: string | undefined;
|
|
16
|
-
navConsumerAddress: string;
|
|
17
16
|
feeModuleAddress?: string | undefined;
|
|
18
|
-
vaultFactoryAddress?: string | undefined;
|
|
19
17
|
epochDuration: number;
|
|
20
18
|
redeemGateBps?: number | undefined;
|
|
21
19
|
lockUpPeriod?: number | undefined;
|
|
22
20
|
noticePeriod?: number | undefined;
|
|
23
|
-
platformWallet: string;
|
|
24
21
|
parentOrgWallet?: string | undefined;
|
|
25
22
|
subOrgWallet: string;
|
|
26
|
-
platformShareBps?: number | undefined;
|
|
27
23
|
parentShareBps?: number | undefined;
|
|
24
|
+
[additionalProperties: string]: unknown;
|
|
28
25
|
};
|
|
29
26
|
|
|
30
27
|
export type PostOrgsByOrgIdAssetsByAssetIdVaultDeployRequest = {
|
|
@@ -47,18 +44,15 @@ export type PostOrgsByOrgIdAssetsByAssetIdVaultDeployRequestBody$Outbound = {
|
|
|
47
44
|
shareTokenAddress: string;
|
|
48
45
|
depositAssetAddress: string;
|
|
49
46
|
complianceContractAddress?: string | undefined;
|
|
50
|
-
navConsumerAddress: string;
|
|
51
47
|
feeModuleAddress?: string | undefined;
|
|
52
|
-
vaultFactoryAddress?: string | undefined;
|
|
53
48
|
epochDuration: number;
|
|
54
49
|
redeemGateBps?: number | undefined;
|
|
55
50
|
lockUpPeriod?: number | undefined;
|
|
56
51
|
noticePeriod?: number | undefined;
|
|
57
|
-
platformWallet: string;
|
|
58
52
|
parentOrgWallet?: string | undefined;
|
|
59
53
|
subOrgWallet: string;
|
|
60
|
-
platformShareBps?: number | undefined;
|
|
61
54
|
parentShareBps?: number | undefined;
|
|
55
|
+
[additionalProperties: string]: unknown;
|
|
62
56
|
};
|
|
63
57
|
|
|
64
58
|
/** @internal */
|
|
@@ -66,24 +60,23 @@ export const PostOrgsByOrgIdAssetsByAssetIdVaultDeployRequestBody$outboundSchema
|
|
|
66
60
|
z.ZodMiniType<
|
|
67
61
|
PostOrgsByOrgIdAssetsByAssetIdVaultDeployRequestBody$Outbound,
|
|
68
62
|
PostOrgsByOrgIdAssetsByAssetIdVaultDeployRequestBody
|
|
69
|
-
> = z.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
});
|
|
63
|
+
> = z.catchall(
|
|
64
|
+
z.object({
|
|
65
|
+
chainEid: z.number(),
|
|
66
|
+
shareTokenAddress: z.string(),
|
|
67
|
+
depositAssetAddress: z.string(),
|
|
68
|
+
complianceContractAddress: z.optional(z.string()),
|
|
69
|
+
feeModuleAddress: z.optional(z.string()),
|
|
70
|
+
epochDuration: z.number(),
|
|
71
|
+
redeemGateBps: z.optional(z.number()),
|
|
72
|
+
lockUpPeriod: z.optional(z.number()),
|
|
73
|
+
noticePeriod: z.optional(z.number()),
|
|
74
|
+
parentOrgWallet: z.optional(z.string()),
|
|
75
|
+
subOrgWallet: z.string(),
|
|
76
|
+
parentShareBps: z.optional(z.number()),
|
|
77
|
+
}),
|
|
78
|
+
z.any(),
|
|
79
|
+
);
|
|
87
80
|
|
|
88
81
|
export function postOrgsByOrgIdAssetsByAssetIdVaultDeployRequestBodyToJSON(
|
|
89
82
|
postOrgsByOrgIdAssetsByAssetIdVaultDeployRequestBody:
|
|
@@ -138,6 +138,10 @@ export type PostOrgsByOrgIdAssetsRequestBody = {
|
|
|
138
138
|
orgOnly?: boolean | undefined;
|
|
139
139
|
requiredKycLevel?: number | undefined;
|
|
140
140
|
maxHolders?: number | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* ISO 3166-1 alpha-2 target market jurisdictions
|
|
143
|
+
*/
|
|
144
|
+
targetMarkets: Array<string>;
|
|
141
145
|
complianceRules?: PostOrgsByOrgIdAssetsComplianceRules | undefined;
|
|
142
146
|
createdBy?: string | undefined;
|
|
143
147
|
};
|
|
@@ -368,6 +372,7 @@ export type PostOrgsByOrgIdAssetsRequestBody$Outbound = {
|
|
|
368
372
|
org_only?: boolean | undefined;
|
|
369
373
|
required_kyc_level?: number | undefined;
|
|
370
374
|
max_holders?: number | undefined;
|
|
375
|
+
target_markets: Array<string>;
|
|
371
376
|
compliance_rules?: PostOrgsByOrgIdAssetsComplianceRules$Outbound | undefined;
|
|
372
377
|
created_by?: string | undefined;
|
|
373
378
|
};
|
|
@@ -405,6 +410,7 @@ export const PostOrgsByOrgIdAssetsRequestBody$outboundSchema: z.ZodMiniType<
|
|
|
405
410
|
orgOnly: z.optional(z.boolean()),
|
|
406
411
|
requiredKycLevel: z.optional(z.number()),
|
|
407
412
|
maxHolders: z.optional(z.number()),
|
|
413
|
+
targetMarkets: z.array(z.string()),
|
|
408
414
|
complianceRules: z.optional(
|
|
409
415
|
z.lazy(() => PostOrgsByOrgIdAssetsComplianceRules$outboundSchema),
|
|
410
416
|
),
|
|
@@ -419,6 +425,7 @@ export const PostOrgsByOrgIdAssetsRequestBody$outboundSchema: z.ZodMiniType<
|
|
|
419
425
|
orgOnly: "org_only",
|
|
420
426
|
requiredKycLevel: "required_kyc_level",
|
|
421
427
|
maxHolders: "max_holders",
|
|
428
|
+
targetMarkets: "target_markets",
|
|
422
429
|
complianceRules: "compliance_rules",
|
|
423
430
|
createdBy: "created_by",
|
|
424
431
|
});
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
12
|
+
|
|
13
|
+
export type PostOrgsByOrgIdKybAccessTokenRequest = {
|
|
14
|
+
orgId: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const ApplicantType = {
|
|
18
|
+
Company: "company",
|
|
19
|
+
} as const;
|
|
20
|
+
export type ApplicantType = ClosedEnum<typeof ApplicantType>;
|
|
21
|
+
|
|
22
|
+
export type TtlSeconds = string | number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response
|
|
26
|
+
*/
|
|
27
|
+
export type PostOrgsByOrgIdKybAccessTokenResponse = {
|
|
28
|
+
accessToken: string;
|
|
29
|
+
applicantType: ApplicantType;
|
|
30
|
+
ttlSeconds: string | number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type PostOrgsByOrgIdKybAccessTokenRequest$Outbound = {
|
|
35
|
+
orgId: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const PostOrgsByOrgIdKybAccessTokenRequest$outboundSchema: z.ZodMiniType<
|
|
40
|
+
PostOrgsByOrgIdKybAccessTokenRequest$Outbound,
|
|
41
|
+
PostOrgsByOrgIdKybAccessTokenRequest
|
|
42
|
+
> = z.object({
|
|
43
|
+
orgId: z.string(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function postOrgsByOrgIdKybAccessTokenRequestToJSON(
|
|
47
|
+
postOrgsByOrgIdKybAccessTokenRequest: PostOrgsByOrgIdKybAccessTokenRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
PostOrgsByOrgIdKybAccessTokenRequest$outboundSchema.parse(
|
|
51
|
+
postOrgsByOrgIdKybAccessTokenRequest,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const ApplicantType$inboundSchema: z.ZodMiniEnum<typeof ApplicantType> =
|
|
58
|
+
z.enum(ApplicantType);
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const TtlSeconds$inboundSchema: z.ZodMiniType<TtlSeconds, unknown> =
|
|
62
|
+
smartUnion([types.string(), types.number()]);
|
|
63
|
+
|
|
64
|
+
export function ttlSecondsFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<TtlSeconds, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => TtlSeconds$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'TtlSeconds' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const PostOrgsByOrgIdKybAccessTokenResponse$inboundSchema: z.ZodMiniType<
|
|
76
|
+
PostOrgsByOrgIdKybAccessTokenResponse,
|
|
77
|
+
unknown
|
|
78
|
+
> = z.object({
|
|
79
|
+
accessToken: types.string(),
|
|
80
|
+
applicantType: ApplicantType$inboundSchema,
|
|
81
|
+
ttlSeconds: smartUnion([types.string(), types.number()]),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export function postOrgsByOrgIdKybAccessTokenResponseFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<PostOrgsByOrgIdKybAccessTokenResponse, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) =>
|
|
90
|
+
PostOrgsByOrgIdKybAccessTokenResponse$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'PostOrgsByOrgIdKybAccessTokenResponse' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 PostOrgsByOrgIdKybInitiateRequest = {
|
|
12
|
+
orgId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Response
|
|
17
|
+
*/
|
|
18
|
+
export type PostOrgsByOrgIdKybInitiateResponse = {
|
|
19
|
+
verificationId: string;
|
|
20
|
+
/**
|
|
21
|
+
* KYB status: none, pending, in_progress, approved, rejected, expired
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
level: string;
|
|
25
|
+
provider: string;
|
|
26
|
+
created: boolean;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type PostOrgsByOrgIdKybInitiateRequest$Outbound = {
|
|
31
|
+
orgId: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const PostOrgsByOrgIdKybInitiateRequest$outboundSchema: z.ZodMiniType<
|
|
36
|
+
PostOrgsByOrgIdKybInitiateRequest$Outbound,
|
|
37
|
+
PostOrgsByOrgIdKybInitiateRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
orgId: z.string(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function postOrgsByOrgIdKybInitiateRequestToJSON(
|
|
43
|
+
postOrgsByOrgIdKybInitiateRequest: PostOrgsByOrgIdKybInitiateRequest,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
PostOrgsByOrgIdKybInitiateRequest$outboundSchema.parse(
|
|
47
|
+
postOrgsByOrgIdKybInitiateRequest,
|
|
48
|
+
),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const PostOrgsByOrgIdKybInitiateResponse$inboundSchema: z.ZodMiniType<
|
|
54
|
+
PostOrgsByOrgIdKybInitiateResponse,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({
|
|
57
|
+
verificationId: types.string(),
|
|
58
|
+
status: types.string(),
|
|
59
|
+
level: types.string(),
|
|
60
|
+
provider: types.string(),
|
|
61
|
+
created: types.boolean(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function postOrgsByOrgIdKybInitiateResponseFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<PostOrgsByOrgIdKybInitiateResponse, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) =>
|
|
70
|
+
PostOrgsByOrgIdKybInitiateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PostOrgsByOrgIdKybInitiateResponse' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -35,6 +35,10 @@ export type PostOrgsByOrgIdMembersByUserIdAttestRequestBody = {
|
|
|
35
35
|
* Attestation expiry, an ISO 8601 date-time strictly in the future (400 otherwise). Also sent to the chain.
|
|
36
36
|
*/
|
|
37
37
|
expiresAt?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Accredited investor flag
|
|
40
|
+
*/
|
|
41
|
+
isAccredited?: boolean | undefined;
|
|
38
42
|
/**
|
|
39
43
|
* Audit trail reason (e.g., 'Bank onboarding KYC complete'). Recorded in audit logs.
|
|
40
44
|
*/
|
|
@@ -104,6 +108,7 @@ export type PostOrgsByOrgIdMembersByUserIdAttestRequestBody$Outbound = {
|
|
|
104
108
|
kycLevel: number;
|
|
105
109
|
countryCode?: string | undefined;
|
|
106
110
|
expiresAt?: string | undefined;
|
|
111
|
+
isAccredited?: boolean | undefined;
|
|
107
112
|
reason?: string | undefined;
|
|
108
113
|
};
|
|
109
114
|
|
|
@@ -118,6 +123,7 @@ export const PostOrgsByOrgIdMembersByUserIdAttestRequestBody$outboundSchema:
|
|
|
118
123
|
kycLevel: z.number(),
|
|
119
124
|
countryCode: z.optional(z.string()),
|
|
120
125
|
expiresAt: z.optional(z.string()),
|
|
126
|
+
isAccredited: z.optional(z.boolean()),
|
|
121
127
|
reason: z.optional(z.string()),
|
|
122
128
|
});
|
|
123
129
|
|
|
@@ -18,9 +18,29 @@ export type PostOrgsByOrgIdMembersSecurity = {
|
|
|
18
18
|
|
|
19
19
|
export type PostOrgsByOrgIdMembersRequestBody = {
|
|
20
20
|
userId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Deprecated: no longer adds members. A wallet linked to an existing co-member returns 409; any other wallet returns 400 `wallet_not_linked`. Use user_id, or invite by email.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
25
|
+
*/
|
|
21
26
|
walletAddress?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Deprecated and ignored.
|
|
29
|
+
*
|
|
30
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
|
+
*/
|
|
22
32
|
chainEid?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Deprecated and ignored. To add someone by email, use the invite endpoint.
|
|
35
|
+
*
|
|
36
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
37
|
+
*/
|
|
23
38
|
email?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Deprecated and ignored.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
43
|
+
*/
|
|
24
44
|
displayName?: string | undefined;
|
|
25
45
|
role?: string | undefined;
|
|
26
46
|
};
|
package/src/sdk/assets.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { assetsDeleteOrgsByOrgIdAssetsByAssetId } from "../funcs/assets-delete-orgs-by-org-id-assets-by-asset-id.js";
|
|
6
|
+
import { assetsGetAssetsByAssetId } from "../funcs/assets-get-assets-by-asset-id.js";
|
|
7
|
+
import { assetsGetAssets } from "../funcs/assets-get-assets.js";
|
|
6
8
|
import { assetsGetOrgsByOrgIdAssetsByAssetIdCollateral } from "../funcs/assets-get-orgs-by-org-id-assets-by-asset-id-collateral.js";
|
|
7
9
|
import { assetsGetOrgsByOrgIdAssetsByAssetIdDocuments } from "../funcs/assets-get-orgs-by-org-id-assets-by-asset-id-documents.js";
|
|
8
10
|
import { assetsGetOrgsByOrgIdAssetsByAssetIdEscrows } from "../funcs/assets-get-orgs-by-org-id-assets-by-asset-id-escrows.js";
|
|
@@ -283,7 +285,7 @@ export class Assets extends ClientSDK {
|
|
|
283
285
|
* Deploy asset to chain
|
|
284
286
|
*
|
|
285
287
|
* @remarks
|
|
286
|
-
* Triggers on-chain deployment of the asset as a compliance-gated OFT (Omnichain Fungible Token). The deployment is processed asynchronously via CQRS — returns 202 Accepted immediately.
|
|
288
|
+
* Triggers on-chain deployment of the asset as a compliance-gated OFT (Omnichain Fungible Token). The deployment is processed asynchronously via CQRS — returns 202 Accepted immediately. Two paths: (1) first-chain deploy from status draft, pending_review or approved — mints the full supply and transitions the asset to deploying; (2) additional-chain deploy from status deployed — deploys a zero-mint spoke clone and wires SET_PEER mesh with all existing chains, without changing the asset status. The org must have server wallets provisioned. Returns 409 if the asset is already deployed on the target chain, if a deployment to that chain is already in progress, if the asset is active/paused/retired (add a chain through POST /orgs/:orgId/assets/:assetId/markets), or if its status changed while the request was in flight. Returns 409 with title chain_frozen if the target chain is frozen. Poll the asset detail endpoint for deployment status updates.
|
|
287
289
|
*/
|
|
288
290
|
async postOrgsByOrgIdAssetsByAssetIdDeploy(
|
|
289
291
|
security: operations.PostOrgsByOrgIdAssetsByAssetIdDeploySecurity,
|
|
@@ -324,4 +326,42 @@ export class Assets extends ClientSDK {
|
|
|
324
326
|
options,
|
|
325
327
|
));
|
|
326
328
|
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Discover public assets
|
|
332
|
+
*
|
|
333
|
+
* @remarks
|
|
334
|
+
* Returns all publicly available assets across all organizations. Only includes assets where org_only = false and status is deployed or active, plus the caller's own org's assets in the same statuses. Requires authentication but does NOT require org membership. Supports filtering by type, regulation, KYC level, accreditation, and chain.
|
|
335
|
+
*/
|
|
336
|
+
async getAssets(
|
|
337
|
+
security: operations.GetAssetsSecurity,
|
|
338
|
+
request: operations.GetAssetsRequest,
|
|
339
|
+
options?: RequestOptions,
|
|
340
|
+
): Promise<operations.GetAssetsResponse> {
|
|
341
|
+
return unwrapAsync(assetsGetAssets(
|
|
342
|
+
this,
|
|
343
|
+
security,
|
|
344
|
+
request,
|
|
345
|
+
options,
|
|
346
|
+
));
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Get public asset detail
|
|
351
|
+
*
|
|
352
|
+
* @remarks
|
|
353
|
+
* Returns detail for a single publicly available asset including per-chain deployments and a compliance subset. Requires authentication but does NOT require org membership.
|
|
354
|
+
*/
|
|
355
|
+
async getAssetsByAssetId(
|
|
356
|
+
security: operations.GetAssetsByAssetIdSecurity,
|
|
357
|
+
assetId: string,
|
|
358
|
+
options?: RequestOptions,
|
|
359
|
+
): Promise<operations.GetAssetsByAssetIdResponse> {
|
|
360
|
+
return unwrapAsync(assetsGetAssetsByAssetId(
|
|
361
|
+
this,
|
|
362
|
+
security,
|
|
363
|
+
assetId,
|
|
364
|
+
options,
|
|
365
|
+
));
|
|
366
|
+
}
|
|
327
367
|
}
|
package/src/sdk/auth.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { authPostAuthRefresh } from "../funcs/auth-post-auth-refresh.js";
|
|
|
14
14
|
import { authPostAuthRegister } from "../funcs/auth-post-auth-register.js";
|
|
15
15
|
import { authPostAuthResendVerification } from "../funcs/auth-post-auth-resend-verification.js";
|
|
16
16
|
import { authPostAuthResetPassword } from "../funcs/auth-post-auth-reset-password.js";
|
|
17
|
+
import { authPostAuthSwitchOrg } from "../funcs/auth-post-auth-switch-org.js";
|
|
17
18
|
import { authPostAuthVerifyEmail } from "../funcs/auth-post-auth-verify-email.js";
|
|
18
19
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
19
20
|
import * as operations from "../models/operations/index.js";
|
|
@@ -71,6 +72,23 @@ export class Auth extends ClientSDK {
|
|
|
71
72
|
));
|
|
72
73
|
}
|
|
73
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Switch active organization
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* Switch the authenticated user's active organization context. Rotates the refresh token, revokes the old access token, and returns a new token pair scoped to the target organization. Requires direct active membership in the target org.
|
|
80
|
+
*/
|
|
81
|
+
async postAuthSwitchOrg(
|
|
82
|
+
request: operations.PostAuthSwitchOrgRequest,
|
|
83
|
+
options?: RequestOptions,
|
|
84
|
+
): Promise<operations.PostAuthSwitchOrgResponse> {
|
|
85
|
+
return unwrapAsync(authPostAuthSwitchOrg(
|
|
86
|
+
this,
|
|
87
|
+
request,
|
|
88
|
+
options,
|
|
89
|
+
));
|
|
90
|
+
}
|
|
91
|
+
|
|
74
92
|
/**
|
|
75
93
|
* Get current user
|
|
76
94
|
*
|
|
@@ -207,7 +225,7 @@ export class Auth extends ClientSDK {
|
|
|
207
225
|
* Verify email address
|
|
208
226
|
*
|
|
209
227
|
* @remarks
|
|
210
|
-
* Validates
|
|
228
|
+
* Validates an email verification token (from a link) or a 6-digit code (with email) and activates the account, but only while it is awaiting email verification. Accepts either { token } for link verification or { code, email } for code verification. If the account is already active the token is spent and the response is 200 with an "already verified" message. For any other account state (suspended, invited, pending, or no longer present) the token is spent and the response is 400 `invalid_token`; a verification link never re-activates a suspended account.
|
|
211
229
|
*/
|
|
212
230
|
async postAuthVerifyEmail(
|
|
213
231
|
request: operations.PostAuthVerifyEmailRequest,
|
package/src/sdk/bridge.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Bridge extends ClientSDK {
|
|
|
14
14
|
* Initiate cross-chain bridge (CQRS)
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Queues a cross-chain OFT bridge for an asset via LayerZero. The asset must be deployed on at least one chain. Tokens are sent from the org server wallet on the source chain to the recipient address on the destination chain. Optionally include a compose message for SEND_AND_CALL (e.g., attestation sync). Returns 202 Accepted immediately.
|
|
17
|
+
* Queues a cross-chain OFT bridge for an asset via LayerZero. The asset must be deployed on at least one chain. Tokens are sent from the org server wallet on the source chain to the recipient address on the destination chain. Optionally include a compose message for SEND_AND_CALL (e.g., attestation sync). Returns 409 with title chain_frozen if the destination or the source chain is frozen. Returns 202 Accepted immediately.
|
|
18
18
|
*/
|
|
19
19
|
async postOrgsByOrgIdAssetsByAssetIdBridge(
|
|
20
20
|
security: operations.PostOrgsByOrgIdAssetsByAssetIdBridgeSecurity,
|
package/src/sdk/kyb.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { kybGetOrgsByOrgIdKYBStatus } from "../funcs/kyb-get-orgs-by-org-id-kyb-status.js";
|
|
6
|
+
import { kybPostOrgsByOrgIdKYBAccessToken } from "../funcs/kyb-post-orgs-by-org-id-kyb-access-token.js";
|
|
7
|
+
import { kybPostOrgsByOrgIdKYBInitiate } from "../funcs/kyb-post-orgs-by-org-id-kyb-initiate.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class Kyb extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Initiate org KYB verification
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Create the org's Sumsub company applicant and org_verifications row. Idempotent: returns existing row if already initiated. Requires direct admin membership. JWT only.
|
|
18
|
+
*/
|
|
19
|
+
async postOrgsByOrgIdKybInitiate(
|
|
20
|
+
orgId: string,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<operations.PostOrgsByOrgIdKybInitiateResponse> {
|
|
23
|
+
return unwrapAsync(kybPostOrgsByOrgIdKYBInitiate(
|
|
24
|
+
this,
|
|
25
|
+
orgId,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get KYB SDK access token
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Generate a Sumsub WebSDK access token for the org's company applicant. Response includes Cache-Control: no-store. Requires direct admin membership. JWT only.
|
|
35
|
+
*/
|
|
36
|
+
async postOrgsByOrgIdKybAccessToken(
|
|
37
|
+
orgId: string,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): Promise<operations.PostOrgsByOrgIdKybAccessTokenResponse> {
|
|
40
|
+
return unwrapAsync(kybPostOrgsByOrgIdKYBAccessToken(
|
|
41
|
+
this,
|
|
42
|
+
orgId,
|
|
43
|
+
options,
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get org KYB verification status
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Returns the KYB verification status from org_verifications. Reads through RLS-scoped client. Requires admin or compliance_officer role. JWT only.
|
|
52
|
+
*/
|
|
53
|
+
async getOrgsByOrgIdKybStatus(
|
|
54
|
+
orgId: string,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<operations.GetOrgsByOrgIdKybStatusResponse> {
|
|
57
|
+
return unwrapAsync(kybGetOrgsByOrgIdKYBStatus(
|
|
58
|
+
this,
|
|
59
|
+
orgId,
|
|
60
|
+
options,
|
|
61
|
+
));
|
|
62
|
+
}
|
|
63
|
+
}
|
package/src/sdk/kyc.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { kycGetKYCProvider } from "../funcs/kyc-get-kyc-provider.js";
|
|
|
6
6
|
import { kycGetKYCStatus } from "../funcs/kyc-get-kyc-status.js";
|
|
7
7
|
import { kycPostKYCAccessToken } from "../funcs/kyc-post-kyc-access-token.js";
|
|
8
8
|
import { kycPostKYCInitiate } from "../funcs/kyc-post-kyc-initiate.js";
|
|
9
|
-
import { kycPostKYCWebhookByProvider } from "../funcs/kyc-post-kyc-webhook-by-provider.js";
|
|
10
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
10
|
import * as operations from "../models/operations/index.js";
|
|
12
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -61,25 +60,6 @@ export class Kyc extends ClientSDK {
|
|
|
61
60
|
));
|
|
62
61
|
}
|
|
63
62
|
|
|
64
|
-
/**
|
|
65
|
-
* KYC webhook
|
|
66
|
-
*
|
|
67
|
-
* @remarks
|
|
68
|
-
* Webhook endpoint for KYC provider callbacks. The digest is verified against the raw request bytes; every rejection returns the same opaque 400.
|
|
69
|
-
*/
|
|
70
|
-
async postKycWebhookByProvider(
|
|
71
|
-
provider: string,
|
|
72
|
-
body: operations.PostKycWebhookByProviderRequestBody,
|
|
73
|
-
options?: RequestOptions,
|
|
74
|
-
): Promise<operations.PostKycWebhookByProviderResponse> {
|
|
75
|
-
return unwrapAsync(kycPostKYCWebhookByProvider(
|
|
76
|
-
this,
|
|
77
|
-
provider,
|
|
78
|
-
body,
|
|
79
|
-
options,
|
|
80
|
-
));
|
|
81
|
-
}
|
|
82
|
-
|
|
83
63
|
/**
|
|
84
64
|
* Get provider info
|
|
85
65
|
*
|
package/src/sdk/markets.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class Markets extends ClientSDK {
|
|
|
21
21
|
* Deploy a market for an asset
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* Triggers on-chain deployment of a compliance-gated secondary market for a deployed asset. If the asset is not yet deployed on the target chain, the system will auto-bridge the asset first, then automatically deploy the market once the bridge completes — no extra user interaction needed. The deployment is processed asynchronously via CQRS — returns 202 Accepted immediately. Fee collection is configured with the org wallet as fee collector and Signum protocol wallet for protocol fees. Poll the market detail endpoint for deployment status updates.
|
|
24
|
+
* Triggers on-chain deployment of a compliance-gated secondary market for a deployed asset. If the asset is not yet deployed on the target chain, the system will auto-bridge the asset first, then automatically deploy the market once the bridge completes — no extra user interaction needed. Returns 409 with title chain_frozen if the target chain is frozen (it takes no new markets). The deployment is processed asynchronously via CQRS — returns 202 Accepted immediately. Fee collection is configured with the org wallet as fee collector and Signum protocol wallet for protocol fees. Poll the market detail endpoint for deployment status updates.
|
|
25
25
|
*/
|
|
26
26
|
async postOrgsByOrgIdAssetsByAssetIdMarkets(
|
|
27
27
|
security: operations.PostOrgsByOrgIdAssetsByAssetIdMarketsSecurity,
|
package/src/sdk/organizations.ts
CHANGED
|
@@ -161,7 +161,7 @@ export class Organizations extends ClientSDK {
|
|
|
161
161
|
* Add member to organization
|
|
162
162
|
*
|
|
163
163
|
* @remarks
|
|
164
|
-
* Adds an existing user to the organization with the specified role.
|
|
164
|
+
* Adds an existing user to the organization with the specified role. Identify the user by user_id; to add someone without an account, invite them by email (POST /orgs/{orgId}/members/invite). wallet_address is deprecated and no longer adds members: a wallet linked to an existing co-member returns 409, and any other wallet returns 400 `wallet_not_linked`. No user or wallet link is ever created by this endpoint. Default role is 'client'. For client/investor users, use role 'client' — these users will not have API access. Requires org membership (JWT) or API key with write:org permission.
|
|
165
165
|
*/
|
|
166
166
|
async postOrgsByOrgIdMembers(
|
|
167
167
|
security: operations.PostOrgsByOrgIdMembersSecurity,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { Distributions } from "./distributions.js";
|
|
|
18
18
|
import { Fees } from "./fees.js";
|
|
19
19
|
import { Health } from "./health.js";
|
|
20
20
|
import { Jurisdictions } from "./jurisdictions.js";
|
|
21
|
+
import { Kyb } from "./kyb.js";
|
|
21
22
|
import { Kyc } from "./kyc.js";
|
|
22
23
|
import { Markets } from "./markets.js";
|
|
23
24
|
import { Mfa } from "./mfa.js";
|
|
@@ -134,6 +135,11 @@ export class Clossir extends ClientSDK {
|
|
|
134
135
|
return (this._chainEvents ??= new ChainEvents(this._options));
|
|
135
136
|
}
|
|
136
137
|
|
|
138
|
+
private _kyb?: Kyb;
|
|
139
|
+
get kyb(): Kyb {
|
|
140
|
+
return (this._kyb ??= new Kyb(this._options));
|
|
141
|
+
}
|
|
142
|
+
|
|
137
143
|
private _preflight?: Preflight;
|
|
138
144
|
get preflight(): Preflight {
|
|
139
145
|
return (this._preflight ??= new Preflight(this._options));
|
package/src/sdk/transfers.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class Transfers extends ClientSDK {
|
|
|
33
33
|
* Create transfer (async)
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* Queues a token transfer via LayerZero (CQRS pattern). Runs the full 8-rule compliance check (transfer_restricted, allow_pep, max_risk_score, blocked_countries, accredited_investor_required, lockup_period_days, max_transaction_amount, cooling_off_period_hours) against the asset's compliance_rules before accepting. Creates a pending record in transfer_queue and publishes a command to Kafka. Returns 202 Accepted immediately. Returns 403 Forbidden with a reason and rejection code if any rule fails.
|
|
36
|
+
* Queues a token transfer via LayerZero (CQRS pattern). Runs the full 8-rule compliance check (transfer_restricted, allow_pep, max_risk_score, blocked_countries, accredited_investor_required, lockup_period_days, max_transaction_amount, cooling_off_period_hours) against the asset's compliance_rules before accepting. Creates a pending record in transfer_queue and publishes a command to Kafka. Returns 202 Accepted immediately. Returns 403 Forbidden with a reason and rejection code if any rule fails. Returns 422 self_custody_unsupported when the sender wallet has no server-side signer (self-custody).
|
|
37
37
|
*/
|
|
38
38
|
async postTransfers(
|
|
39
39
|
request: operations.PostTransfersRequest,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kyc-post-kyc-webhook-by-provider.d.ts","sourceRoot":"","sources":["../../src/funcs/kyc-post-kyc-webhook-by-provider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,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,OAA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