@clossir-tech/ts-sdk 0.9.8 → 0.10.0
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 +18 -17
- package/esm/funcs/attestations-delete-attestations-by-id.js +3 -1
- package/esm/funcs/attestations-delete-attestations-by-id.js.map +1 -1
- package/esm/funcs/attestations-post-attestations.js +3 -1
- package/esm/funcs/attestations-post-attestations.js.map +1 -1
- package/esm/funcs/auth-post-auth-accept-invite.d.ts +1 -1
- package/esm/funcs/auth-post-auth-accept-invite.d.ts.map +1 -1
- package/esm/funcs/auth-post-auth-accept-invite.js +8 -3
- package/esm/funcs/auth-post-auth-accept-invite.js.map +1 -1
- package/esm/funcs/auth-post-auth-logout.d.ts +3 -2
- package/esm/funcs/auth-post-auth-logout.d.ts.map +1 -1
- package/esm/funcs/auth-post-auth-logout.js +8 -2
- package/esm/funcs/auth-post-auth-logout.js.map +1 -1
- package/esm/funcs/auth-post-auth-refresh.js +1 -1
- package/esm/funcs/auth-post-auth-refresh.js.map +1 -1
- package/esm/funcs/auth-post-auth-reset-password.js +1 -1
- package/esm/funcs/auth-post-auth-reset-password.js.map +1 -1
- package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -1
- package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -1
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts +3 -2
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts.map +1 -1
- package/esm/funcs/o-auth-post-oauth-revoke.js +6 -2
- package/esm/funcs/o-auth-post-oauth-revoke.js.map +1 -1
- package/esm/funcs/organizations-get-orgs.d.ts +2 -2
- package/esm/funcs/organizations-get-orgs.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs.js +26 -5
- package/esm/funcs/organizations-get-orgs.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-invite.js +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-invite.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members.js +2 -0
- package/esm/funcs/organizations-post-orgs-by-org-id-members.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/errors/post-oauth-revoke.d.ts +278 -0
- package/esm/models/errors/post-oauth-revoke.d.ts.map +1 -0
- package/esm/models/errors/post-oauth-revoke.js +298 -0
- package/esm/models/errors/post-oauth-revoke.js.map +1 -0
- package/esm/models/operations/get-orgs.d.ts +48 -0
- package/esm/models/operations/get-orgs.d.ts.map +1 -1
- package/esm/models/operations/get-orgs.js +27 -0
- package/esm/models/operations/get-orgs.js.map +1 -1
- package/esm/models/operations/index.d.ts +0 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +0 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/post-attestations.d.ts +6 -2
- package/esm/models/operations/post-attestations.d.ts.map +1 -1
- package/esm/models/operations/post-attestations.js.map +1 -1
- package/esm/models/operations/post-oauth-revoke.d.ts +10 -0
- package/esm/models/operations/post-oauth-revoke.d.ts.map +1 -1
- package/esm/models/operations/post-oauth-revoke.js +4 -0
- package/esm/models/operations/post-oauth-revoke.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +43 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +29 -0
- package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
- package/esm/sdk/auth.d.ts +2 -2
- package/esm/sdk/auth.js +2 -2
- package/esm/sdk/compliance.d.ts +1 -1
- package/esm/sdk/compliance.js +1 -1
- package/esm/sdk/kyc.d.ts +0 -14
- package/esm/sdk/kyc.d.ts.map +1 -1
- package/esm/sdk/kyc.js +0 -20
- package/esm/sdk/kyc.js.map +1 -1
- package/esm/sdk/o-auth.d.ts +1 -1
- package/esm/sdk/o-auth.js +1 -1
- package/esm/sdk/organizations.d.ts +2 -2
- package/esm/sdk/organizations.d.ts.map +1 -1
- package/esm/sdk/organizations.js +3 -3
- package/esm/sdk/organizations.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/attestations-delete-attestations-by-id.ts +4 -1
- package/src/funcs/attestations-post-attestations.ts +3 -0
- package/src/funcs/auth-post-auth-accept-invite.ts +9 -3
- package/src/funcs/auth-post-auth-logout.ts +13 -2
- package/src/funcs/auth-post-auth-refresh.ts +1 -1
- package/src/funcs/auth-post-auth-reset-password.ts +1 -1
- package/src/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +1 -1
- package/src/funcs/o-auth-post-oauth-revoke.ts +27 -2
- package/src/funcs/organizations-get-orgs.ts +37 -2
- package/src/funcs/organizations-post-orgs-by-org-id-members-invite.ts +1 -1
- package/src/funcs/organizations-post-orgs-by-org-id-members.ts +3 -0
- package/src/lib/config.ts +2 -2
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/post-oauth-revoke.ts +493 -0
- package/src/models/operations/get-orgs.ts +91 -0
- package/src/models/operations/index.ts +0 -2
- package/src/models/operations/post-attestations.ts +6 -2
- package/src/models/operations/post-oauth-revoke.ts +14 -0
- package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +56 -1
- package/src/sdk/auth.ts +2 -2
- package/src/sdk/compliance.ts +1 -1
- package/src/sdk/kyc.ts +0 -36
- package/src/sdk/o-auth.ts +1 -1
- package/src/sdk/organizations.ts +5 -1
- package/esm/funcs/kyc-post-kyc-mock-approve.d.ts +0 -20
- package/esm/funcs/kyc-post-kyc-mock-approve.d.ts.map +0 -1
- package/esm/funcs/kyc-post-kyc-mock-approve.js +0 -90
- package/esm/funcs/kyc-post-kyc-mock-approve.js.map +0 -1
- package/esm/funcs/kyc-post-kyc-mock-reject.d.ts +0 -20
- package/esm/funcs/kyc-post-kyc-mock-reject.d.ts.map +0 -1
- package/esm/funcs/kyc-post-kyc-mock-reject.js +0 -90
- package/esm/funcs/kyc-post-kyc-mock-reject.js.map +0 -1
- package/esm/models/operations/post-kyc-mock-approve.d.ts +0 -75
- package/esm/models/operations/post-kyc-mock-approve.d.ts.map +0 -1
- package/esm/models/operations/post-kyc-mock-approve.js +0 -60
- package/esm/models/operations/post-kyc-mock-approve.js.map +0 -1
- package/esm/models/operations/post-kyc-mock-reject.d.ts +0 -41
- package/esm/models/operations/post-kyc-mock-reject.d.ts.map +0 -1
- package/esm/models/operations/post-kyc-mock-reject.js +0 -24
- package/esm/models/operations/post-kyc-mock-reject.js.map +0 -1
- package/src/funcs/kyc-post-kyc-mock-approve.ts +0 -180
- package/src/funcs/kyc-post-kyc-mock-reject.ts +0 -180
- package/src/models/operations/post-kyc-mock-approve.ts +0 -179
- package/src/models/operations/post-kyc-mock-reject.ts +0 -80
|
@@ -5,7 +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
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
9
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
11
|
import * as types from "../../types/primitives.js";
|
|
11
12
|
import { smartUnion } from "../../types/smart-union.js";
|
|
@@ -98,6 +99,22 @@ export type PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyRequest = {
|
|
|
98
99
|
body: PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyRequestBody;
|
|
99
100
|
};
|
|
100
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Which on-chain registration path ran: queued | not_requested | chain_not_deployed | no_contract_address | no_deployer_wallet | publish_failed. onChainSync is true exactly when this is queued.
|
|
104
|
+
*/
|
|
105
|
+
export const OnChainSyncOutcome2 = {
|
|
106
|
+
Queued: "queued",
|
|
107
|
+
NotRequested: "not_requested",
|
|
108
|
+
ChainNotDeployed: "chain_not_deployed",
|
|
109
|
+
NoContractAddress: "no_contract_address",
|
|
110
|
+
NoDeployerWallet: "no_deployer_wallet",
|
|
111
|
+
PublishFailed: "publish_failed",
|
|
112
|
+
} as const;
|
|
113
|
+
/**
|
|
114
|
+
* Which on-chain registration path ran: queued | not_requested | chain_not_deployed | no_contract_address | no_deployer_wallet | publish_failed. onChainSync is true exactly when this is queued.
|
|
115
|
+
*/
|
|
116
|
+
export type OnChainSyncOutcome2 = OpenEnum<typeof OnChainSyncOutcome2>;
|
|
117
|
+
|
|
101
118
|
/**
|
|
102
119
|
* Response
|
|
103
120
|
*/
|
|
@@ -105,11 +122,31 @@ export type PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponseBody2 = {
|
|
|
105
122
|
updated: boolean;
|
|
106
123
|
assetId: string;
|
|
107
124
|
onChainSync: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Which on-chain registration path ran: queued | not_requested | chain_not_deployed | no_contract_address | no_deployer_wallet | publish_failed. onChainSync is true exactly when this is queued.
|
|
127
|
+
*/
|
|
128
|
+
onChainSyncOutcome?: OnChainSyncOutcome2 | undefined;
|
|
108
129
|
policyId?: string | undefined;
|
|
109
130
|
requestId: string;
|
|
110
131
|
message: string;
|
|
111
132
|
};
|
|
112
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Which on-chain registration path ran: queued | not_requested | chain_not_deployed | no_contract_address | no_deployer_wallet | publish_failed. onChainSync is true exactly when this is queued.
|
|
136
|
+
*/
|
|
137
|
+
export const OnChainSyncOutcome1 = {
|
|
138
|
+
Queued: "queued",
|
|
139
|
+
NotRequested: "not_requested",
|
|
140
|
+
ChainNotDeployed: "chain_not_deployed",
|
|
141
|
+
NoContractAddress: "no_contract_address",
|
|
142
|
+
NoDeployerWallet: "no_deployer_wallet",
|
|
143
|
+
PublishFailed: "publish_failed",
|
|
144
|
+
} as const;
|
|
145
|
+
/**
|
|
146
|
+
* Which on-chain registration path ran: queued | not_requested | chain_not_deployed | no_contract_address | no_deployer_wallet | publish_failed. onChainSync is true exactly when this is queued.
|
|
147
|
+
*/
|
|
148
|
+
export type OnChainSyncOutcome1 = OpenEnum<typeof OnChainSyncOutcome1>;
|
|
149
|
+
|
|
113
150
|
/**
|
|
114
151
|
* Response
|
|
115
152
|
*/
|
|
@@ -117,6 +154,10 @@ export type PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponseBody1 = {
|
|
|
117
154
|
updated: boolean;
|
|
118
155
|
assetId: string;
|
|
119
156
|
onChainSync: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Which on-chain registration path ran: queued | not_requested | chain_not_deployed | no_contract_address | no_deployer_wallet | publish_failed. onChainSync is true exactly when this is queued.
|
|
159
|
+
*/
|
|
160
|
+
onChainSyncOutcome?: OnChainSyncOutcome1 | undefined;
|
|
120
161
|
policyId?: string | undefined;
|
|
121
162
|
requestId: string;
|
|
122
163
|
message: string;
|
|
@@ -320,6 +361,12 @@ export function postOrgsByOrgIdAssetsByAssetIdCompliancePolicyRequestToJSON(
|
|
|
320
361
|
);
|
|
321
362
|
}
|
|
322
363
|
|
|
364
|
+
/** @internal */
|
|
365
|
+
export const OnChainSyncOutcome2$inboundSchema: z.ZodMiniType<
|
|
366
|
+
OnChainSyncOutcome2,
|
|
367
|
+
unknown
|
|
368
|
+
> = openEnums.inboundSchema(OnChainSyncOutcome2);
|
|
369
|
+
|
|
323
370
|
/** @internal */
|
|
324
371
|
export const PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponseBody2$inboundSchema:
|
|
325
372
|
z.ZodMiniType<
|
|
@@ -329,6 +376,7 @@ export const PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponseBody2$inbound
|
|
|
329
376
|
updated: types.boolean(),
|
|
330
377
|
assetId: types.string(),
|
|
331
378
|
onChainSync: types.boolean(),
|
|
379
|
+
onChainSyncOutcome: types.optional(OnChainSyncOutcome2$inboundSchema),
|
|
332
380
|
policyId: types.optional(types.string()),
|
|
333
381
|
requestId: types.string(),
|
|
334
382
|
message: types.string(),
|
|
@@ -349,6 +397,12 @@ export function postOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponseBody2FromJ
|
|
|
349
397
|
);
|
|
350
398
|
}
|
|
351
399
|
|
|
400
|
+
/** @internal */
|
|
401
|
+
export const OnChainSyncOutcome1$inboundSchema: z.ZodMiniType<
|
|
402
|
+
OnChainSyncOutcome1,
|
|
403
|
+
unknown
|
|
404
|
+
> = openEnums.inboundSchema(OnChainSyncOutcome1);
|
|
405
|
+
|
|
352
406
|
/** @internal */
|
|
353
407
|
export const PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponseBody1$inboundSchema:
|
|
354
408
|
z.ZodMiniType<
|
|
@@ -358,6 +412,7 @@ export const PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponseBody1$inbound
|
|
|
358
412
|
updated: types.boolean(),
|
|
359
413
|
assetId: types.string(),
|
|
360
414
|
onChainSync: types.boolean(),
|
|
415
|
+
onChainSyncOutcome: types.optional(OnChainSyncOutcome1$inboundSchema),
|
|
361
416
|
policyId: types.optional(types.string()),
|
|
362
417
|
requestId: types.string(),
|
|
363
418
|
message: types.string(),
|
package/src/sdk/auth.ts
CHANGED
|
@@ -122,7 +122,7 @@ export class Auth extends ClientSDK {
|
|
|
122
122
|
* Logout user
|
|
123
123
|
*
|
|
124
124
|
* @remarks
|
|
125
|
-
* Revoke the access token, session, and optionally the refresh token.
|
|
125
|
+
* Revoke the access token, session, and optionally the refresh token. Returns 500 when a revoke was attempted and failed; retry the logout. Returns 503 when an auth lookup fails (emitted by the root error handler).
|
|
126
126
|
*/
|
|
127
127
|
async postAuthLogout(
|
|
128
128
|
request: operations.PostAuthLogoutRequest,
|
|
@@ -190,7 +190,7 @@ export class Auth extends ClientSDK {
|
|
|
190
190
|
* Accept invitation
|
|
191
191
|
*
|
|
192
192
|
* @remarks
|
|
193
|
-
* Accepts an organization invitation.
|
|
193
|
+
* Accepts an organization invitation. The bearer token is OPTIONAL. With a valid bearer, the caller's account email must match the invitation email (otherwise 403 `email_mismatch`) and no `password` is needed. With no bearer, or an invalid/expired one, the request is treated as anonymous and `password` is required to create a new account. An SDK client configured with `bearerAuth` sends it automatically, so creating a NEW account for a different email must use a client without `bearerAuth`.
|
|
194
194
|
*/
|
|
195
195
|
async postAuthAcceptInvite(
|
|
196
196
|
request: operations.PostAuthAcceptInviteRequest,
|
package/src/sdk/compliance.ts
CHANGED
|
@@ -38,7 +38,7 @@ export class Compliance extends ClientSDK {
|
|
|
38
38
|
* Update asset compliance policy
|
|
39
39
|
*
|
|
40
40
|
* @remarks
|
|
41
|
-
* Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field.
|
|
41
|
+
* Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. The local policy update is committed in every one of them, including publish_failed.
|
|
42
42
|
*/
|
|
43
43
|
async postOrgsByOrgIdAssetsByAssetIdCompliancePolicy(
|
|
44
44
|
security: operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicySecurity,
|
package/src/sdk/kyc.ts
CHANGED
|
@@ -6,8 +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 { kycPostKYCMockApprove } from "../funcs/kyc-post-kyc-mock-approve.js";
|
|
10
|
-
import { kycPostKYCMockReject } from "../funcs/kyc-post-kyc-mock-reject.js";
|
|
11
9
|
import { kycPostKYCWebhookByProvider } from "../funcs/kyc-post-kyc-webhook-by-provider.js";
|
|
12
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
13
11
|
import * as operations from "../models/operations/index.js";
|
|
@@ -82,40 +80,6 @@ export class Kyc extends ClientSDK {
|
|
|
82
80
|
));
|
|
83
81
|
}
|
|
84
82
|
|
|
85
|
-
/**
|
|
86
|
-
* Mock approve (dev only)
|
|
87
|
-
*
|
|
88
|
-
* @remarks
|
|
89
|
-
* Manually approve KYC verification in mock mode. Only available when KYC_PROVIDER=mock.
|
|
90
|
-
*/
|
|
91
|
-
async postKycMockApprove(
|
|
92
|
-
request: operations.PostKycMockApproveRequest,
|
|
93
|
-
options?: RequestOptions,
|
|
94
|
-
): Promise<operations.PostKycMockApproveResponse> {
|
|
95
|
-
return unwrapAsync(kycPostKYCMockApprove(
|
|
96
|
-
this,
|
|
97
|
-
request,
|
|
98
|
-
options,
|
|
99
|
-
));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Mock reject (dev only)
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* Manually reject KYC verification in mock mode. Only available when KYC_PROVIDER=mock.
|
|
107
|
-
*/
|
|
108
|
-
async postKycMockReject(
|
|
109
|
-
request: operations.PostKycMockRejectRequest,
|
|
110
|
-
options?: RequestOptions,
|
|
111
|
-
): Promise<operations.PostKycMockRejectResponse> {
|
|
112
|
-
return unwrapAsync(kycPostKYCMockReject(
|
|
113
|
-
this,
|
|
114
|
-
request,
|
|
115
|
-
options,
|
|
116
|
-
));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
83
|
/**
|
|
120
84
|
* Get provider info
|
|
121
85
|
*
|
package/src/sdk/o-auth.ts
CHANGED
|
@@ -67,7 +67,7 @@ export class OAuth extends ClientSDK {
|
|
|
67
67
|
* Revoke token
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* Revoke an access or refresh token.
|
|
70
|
+
* Revoke an access or refresh token. Requires client authentication (client_secret_basic, client_secret_post, or client_id for public clients). A refresh token is revoked only for the client it was issued to. Unknown tokens, and tokens of another client, return 200 per RFC 7009 §2.2; 503 temporarily_unavailable (retryable) when the revocation could not be recorded.
|
|
71
71
|
*/
|
|
72
72
|
async postOauthRevoke(
|
|
73
73
|
request: operations.PostOauthRevokeRequest,
|
package/src/sdk/organizations.ts
CHANGED
|
@@ -64,15 +64,19 @@ export class Organizations extends ClientSDK {
|
|
|
64
64
|
* List organizations
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
|
-
* Returns
|
|
67
|
+
* Returns a paginated list of organizations the caller may see. With a user JWT: every root organization in which the user holds an active membership. With an API key (requires the `orgs:read` permission): only the organization the key belongs to. Unauthenticated requests are rejected with 401; there is no public listing. Use `page` (1-based) and `limit` (default 50, max 200).
|
|
68
68
|
*/
|
|
69
69
|
async getOrgs(
|
|
70
70
|
security: operations.GetOrgsSecurity,
|
|
71
|
+
page?: string | undefined,
|
|
72
|
+
limit?: string | undefined,
|
|
71
73
|
options?: RequestOptions,
|
|
72
74
|
): Promise<operations.GetOrgsResponse> {
|
|
73
75
|
return unwrapAsync(organizationsGetOrgs(
|
|
74
76
|
this,
|
|
75
77
|
security,
|
|
78
|
+
page,
|
|
79
|
+
limit,
|
|
76
80
|
options,
|
|
77
81
|
));
|
|
78
82
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ClossirCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
6
|
-
import { SDKError } from "../models/errors/sdk-error.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Mock approve (dev only)
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Manually approve KYC verification in mock mode. Only available when KYC_PROVIDER=mock.
|
|
16
|
-
*
|
|
17
|
-
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
18
|
-
*/
|
|
19
|
-
export declare function kycPostKYCMockApprove(client: ClossirCore, request: operations.PostKycMockApproveRequest, options?: RequestOptions): APIPromise<Result<operations.PostKycMockApproveResponse, errors.ProblemDetailsError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
-
//# sourceMappingURL=kyc-post-kyc-mock-approve.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kyc-post-kyc-mock-approve.d.ts","sourceRoot":"","sources":["../../src/funcs/kyc-post-kyc-mock-approve.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
-
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import * as errors from "../models/errors/index.js";
|
|
13
|
-
import * as operations from "../models/operations/index.js";
|
|
14
|
-
import { APIPromise } from "../types/async.js";
|
|
15
|
-
/**
|
|
16
|
-
* Mock approve (dev only)
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* Manually approve KYC verification in mock mode. Only available when KYC_PROVIDER=mock.
|
|
20
|
-
*
|
|
21
|
-
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
22
|
-
*/
|
|
23
|
-
export function kycPostKYCMockApprove(client, request, options) {
|
|
24
|
-
return new APIPromise($do(client, request, options));
|
|
25
|
-
}
|
|
26
|
-
async function $do(client, request, options) {
|
|
27
|
-
const parsed = safeParse(request, (value) => z.parse(operations.PostKycMockApproveRequest$outboundSchema, value), "Input validation failed");
|
|
28
|
-
if (!parsed.ok) {
|
|
29
|
-
return [parsed, { status: "invalid" }];
|
|
30
|
-
}
|
|
31
|
-
const payload = parsed.value;
|
|
32
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
33
|
-
const path = pathToFunc("/kyc/mock/approve")();
|
|
34
|
-
const headers = new Headers(compactMap({
|
|
35
|
-
"Content-Type": "application/json",
|
|
36
|
-
Accept: "application/json",
|
|
37
|
-
}));
|
|
38
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
39
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
40
|
-
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
41
|
-
const context = {
|
|
42
|
-
options: client._options,
|
|
43
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44
|
-
operationID: "postKycMockApprove",
|
|
45
|
-
oAuth2Scopes: null,
|
|
46
|
-
resolvedSecurity: requestSecurity,
|
|
47
|
-
securitySource: client._options.bearerAuth,
|
|
48
|
-
retryConfig: options?.retries
|
|
49
|
-
|| client._options.retryConfig
|
|
50
|
-
|| { strategy: "none" },
|
|
51
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
52
|
-
};
|
|
53
|
-
const requestRes = client._createRequest(context, {
|
|
54
|
-
security: requestSecurity,
|
|
55
|
-
method: "POST",
|
|
56
|
-
baseURL: options?.serverURL,
|
|
57
|
-
path: path,
|
|
58
|
-
headers: headers,
|
|
59
|
-
body: body,
|
|
60
|
-
userAgent: client._options.userAgent,
|
|
61
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
62
|
-
}, options);
|
|
63
|
-
if (!requestRes.ok) {
|
|
64
|
-
return [requestRes, { status: "invalid" }];
|
|
65
|
-
}
|
|
66
|
-
const req = requestRes.value;
|
|
67
|
-
const doResult = await client._do(req, {
|
|
68
|
-
context,
|
|
69
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
70
|
-
retryConfig: context.retryConfig,
|
|
71
|
-
retryCodes: context.retryCodes,
|
|
72
|
-
});
|
|
73
|
-
if (!doResult.ok) {
|
|
74
|
-
return [doResult, { status: "request-error", request: req }];
|
|
75
|
-
}
|
|
76
|
-
const response = doResult.value;
|
|
77
|
-
const responseFields = {
|
|
78
|
-
HttpMeta: { Response: response, Request: req },
|
|
79
|
-
};
|
|
80
|
-
const [result] = await M.match(M.json(200, operations.PostKycMockApproveResponse$inboundSchema), M.jsonErr([400, 401, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
81
|
-
ctype: "application/problem+json",
|
|
82
|
-
}), M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
83
|
-
ctype: "application/problem+json",
|
|
84
|
-
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
85
|
-
if (!result.ok) {
|
|
86
|
-
return [result, { status: "complete", request: req, response }];
|
|
87
|
-
}
|
|
88
|
-
return [result, { status: "complete", request: req, response }];
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=kyc-post-kyc-mock-approve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kyc-post-kyc-mock-approve.js","sourceRoot":"","sources":["../../src/funcs/kyc-post-kyc-mock-approve.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MA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,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,EAAE;QACvD,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ClossirCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
6
|
-
import { SDKError } from "../models/errors/sdk-error.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Mock reject (dev only)
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Manually reject KYC verification in mock mode. Only available when KYC_PROVIDER=mock.
|
|
16
|
-
*
|
|
17
|
-
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
18
|
-
*/
|
|
19
|
-
export declare function kycPostKYCMockReject(client: ClossirCore, request: operations.PostKycMockRejectRequest, options?: RequestOptions): APIPromise<Result<operations.PostKycMockRejectResponse, errors.ProblemDetailsError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
-
//# sourceMappingURL=kyc-post-kyc-mock-reject.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kyc-post-kyc-mock-reject.d.ts","sourceRoot":"","sources":["../../src/funcs/kyc-post-kyc-mock-reject.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
-
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import * as errors from "../models/errors/index.js";
|
|
13
|
-
import * as operations from "../models/operations/index.js";
|
|
14
|
-
import { APIPromise } from "../types/async.js";
|
|
15
|
-
/**
|
|
16
|
-
* Mock reject (dev only)
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* Manually reject KYC verification in mock mode. Only available when KYC_PROVIDER=mock.
|
|
20
|
-
*
|
|
21
|
-
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
22
|
-
*/
|
|
23
|
-
export function kycPostKYCMockReject(client, request, options) {
|
|
24
|
-
return new APIPromise($do(client, request, options));
|
|
25
|
-
}
|
|
26
|
-
async function $do(client, request, options) {
|
|
27
|
-
const parsed = safeParse(request, (value) => z.parse(operations.PostKycMockRejectRequest$outboundSchema, value), "Input validation failed");
|
|
28
|
-
if (!parsed.ok) {
|
|
29
|
-
return [parsed, { status: "invalid" }];
|
|
30
|
-
}
|
|
31
|
-
const payload = parsed.value;
|
|
32
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
33
|
-
const path = pathToFunc("/kyc/mock/reject")();
|
|
34
|
-
const headers = new Headers(compactMap({
|
|
35
|
-
"Content-Type": "application/json",
|
|
36
|
-
Accept: "application/json",
|
|
37
|
-
}));
|
|
38
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
39
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
40
|
-
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
41
|
-
const context = {
|
|
42
|
-
options: client._options,
|
|
43
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44
|
-
operationID: "postKycMockReject",
|
|
45
|
-
oAuth2Scopes: null,
|
|
46
|
-
resolvedSecurity: requestSecurity,
|
|
47
|
-
securitySource: client._options.bearerAuth,
|
|
48
|
-
retryConfig: options?.retries
|
|
49
|
-
|| client._options.retryConfig
|
|
50
|
-
|| { strategy: "none" },
|
|
51
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
52
|
-
};
|
|
53
|
-
const requestRes = client._createRequest(context, {
|
|
54
|
-
security: requestSecurity,
|
|
55
|
-
method: "POST",
|
|
56
|
-
baseURL: options?.serverURL,
|
|
57
|
-
path: path,
|
|
58
|
-
headers: headers,
|
|
59
|
-
body: body,
|
|
60
|
-
userAgent: client._options.userAgent,
|
|
61
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
62
|
-
}, options);
|
|
63
|
-
if (!requestRes.ok) {
|
|
64
|
-
return [requestRes, { status: "invalid" }];
|
|
65
|
-
}
|
|
66
|
-
const req = requestRes.value;
|
|
67
|
-
const doResult = await client._do(req, {
|
|
68
|
-
context,
|
|
69
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
70
|
-
retryConfig: context.retryConfig,
|
|
71
|
-
retryCodes: context.retryCodes,
|
|
72
|
-
});
|
|
73
|
-
if (!doResult.ok) {
|
|
74
|
-
return [doResult, { status: "request-error", request: req }];
|
|
75
|
-
}
|
|
76
|
-
const response = doResult.value;
|
|
77
|
-
const responseFields = {
|
|
78
|
-
HttpMeta: { Response: response, Request: req },
|
|
79
|
-
};
|
|
80
|
-
const [result] = await M.match(M.json(200, operations.PostKycMockRejectResponse$inboundSchema), M.jsonErr([400, 401, 404, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
81
|
-
ctype: "application/problem+json",
|
|
82
|
-
}), M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
|
|
83
|
-
ctype: "application/problem+json",
|
|
84
|
-
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
85
|
-
if (!result.ok) {
|
|
86
|
-
return [result, { status: "complete", request: req, response }];
|
|
87
|
-
}
|
|
88
|
-
return [result, { status: "complete", request: req, response }];
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=kyc-post-kyc-mock-reject.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kyc-post-kyc-mock-reject.js","sourceRoot":"","sources":["../../src/funcs/kyc-post-kyc-mock-reject.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAmB,EACnB,OAA4C,EAC5C,OAAwB,EAcxB;IACA,OAAO,IAAI,U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} from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
5
|
-
export declare const PostKycMockApproveLevelInstitutional: {
|
|
6
|
-
readonly Institutional: "institutional";
|
|
7
|
-
};
|
|
8
|
-
export type PostKycMockApproveLevelInstitutional = ClosedEnum<typeof PostKycMockApproveLevelInstitutional>;
|
|
9
|
-
export declare const PostKycMockApproveLevelEnhanced: {
|
|
10
|
-
readonly Enhanced: "enhanced";
|
|
11
|
-
};
|
|
12
|
-
export type PostKycMockApproveLevelEnhanced = ClosedEnum<typeof PostKycMockApproveLevelEnhanced>;
|
|
13
|
-
export declare const PostKycMockApproveLevelStandard: {
|
|
14
|
-
readonly Standard: "standard";
|
|
15
|
-
};
|
|
16
|
-
export type PostKycMockApproveLevelStandard = ClosedEnum<typeof PostKycMockApproveLevelStandard>;
|
|
17
|
-
export declare const PostKycMockApproveLevelBasic: {
|
|
18
|
-
readonly Basic: "basic";
|
|
19
|
-
};
|
|
20
|
-
export type PostKycMockApproveLevelBasic = ClosedEnum<typeof PostKycMockApproveLevelBasic>;
|
|
21
|
-
/**
|
|
22
|
-
* Verification level
|
|
23
|
-
*/
|
|
24
|
-
export type PostKycMockApproveLevelUnion = PostKycMockApproveLevelBasic | PostKycMockApproveLevelStandard | PostKycMockApproveLevelEnhanced | PostKycMockApproveLevelInstitutional;
|
|
25
|
-
export type PostKycMockApproveRequest = {
|
|
26
|
-
/**
|
|
27
|
-
* Verification level
|
|
28
|
-
*/
|
|
29
|
-
level?: PostKycMockApproveLevelBasic | PostKycMockApproveLevelStandard | PostKycMockApproveLevelEnhanced | PostKycMockApproveLevelInstitutional | undefined;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Response
|
|
33
|
-
*/
|
|
34
|
-
export type PostKycMockApproveResponse = {
|
|
35
|
-
/**
|
|
36
|
-
* User ID
|
|
37
|
-
*/
|
|
38
|
-
userId: string;
|
|
39
|
-
/**
|
|
40
|
-
* Updated status
|
|
41
|
-
*/
|
|
42
|
-
status: string;
|
|
43
|
-
/**
|
|
44
|
-
* Verification level
|
|
45
|
-
*/
|
|
46
|
-
level: string;
|
|
47
|
-
/**
|
|
48
|
-
* Rejection reason
|
|
49
|
-
*/
|
|
50
|
-
rejectionReason?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const PostKycMockApproveLevelInstitutional$outboundSchema: z.ZodMiniEnum<typeof PostKycMockApproveLevelInstitutional>;
|
|
54
|
-
/** @internal */
|
|
55
|
-
export declare const PostKycMockApproveLevelEnhanced$outboundSchema: z.ZodMiniEnum<typeof PostKycMockApproveLevelEnhanced>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const PostKycMockApproveLevelStandard$outboundSchema: z.ZodMiniEnum<typeof PostKycMockApproveLevelStandard>;
|
|
58
|
-
/** @internal */
|
|
59
|
-
export declare const PostKycMockApproveLevelBasic$outboundSchema: z.ZodMiniEnum<typeof PostKycMockApproveLevelBasic>;
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type PostKycMockApproveLevelUnion$Outbound = string | string | string | string;
|
|
62
|
-
/** @internal */
|
|
63
|
-
export declare const PostKycMockApproveLevelUnion$outboundSchema: z.ZodMiniType<PostKycMockApproveLevelUnion$Outbound, PostKycMockApproveLevelUnion>;
|
|
64
|
-
export declare function postKycMockApproveLevelUnionToJSON(postKycMockApproveLevelUnion: PostKycMockApproveLevelUnion): string;
|
|
65
|
-
/** @internal */
|
|
66
|
-
export type PostKycMockApproveRequest$Outbound = {
|
|
67
|
-
level?: string | string | string | string | undefined;
|
|
68
|
-
};
|
|
69
|
-
/** @internal */
|
|
70
|
-
export declare const PostKycMockApproveRequest$outboundSchema: z.ZodMiniType<PostKycMockApproveRequest$Outbound, PostKycMockApproveRequest>;
|
|
71
|
-
export declare function postKycMockApproveRequestToJSON(postKycMockApproveRequest: PostKycMockApproveRequest): string;
|
|
72
|
-
/** @internal */
|
|
73
|
-
export declare const PostKycMockApproveResponse$inboundSchema: z.ZodMiniType<PostKycMockApproveResponse, unknown>;
|
|
74
|
-
export declare function postKycMockApproveResponseFromJSON(jsonString: string): SafeParseResult<PostKycMockApproveResponse, SDKValidationError>;
|
|
75
|
-
//# sourceMappingURL=post-kyc-mock-approve.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-kyc-mock-approve.d.ts","sourceRoot":"","sources":["../../../src/models/operations/post-kyc-mock-approve.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,eAAO,MAAM,oCAAoC;;CAEvC,CAAC;AACX,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,oCAAoC,CAC5C,CAAC;AAEF,eAAO,MAAM,+BAA+B;;CAElC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;CAElC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;CAE/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,4BAA4B,CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,4BAA4B,GAC5B,+BAA+B,GAC/B,+BAA+B,GAC/B,oCAAoC,CAAC;AAEzC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,KAAK,CAAC,EACF,4BAA4B,GAC5B,+BAA+B,GAC/B,+BAA+B,GAC/B,oCA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AyB,GACnD,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAMP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as types from "../../types/primitives.js";
|
|
7
|
-
import { smartUnion } from "../../types/smart-union.js";
|
|
8
|
-
export const PostKycMockApproveLevelInstitutional = {
|
|
9
|
-
Institutional: "institutional",
|
|
10
|
-
};
|
|
11
|
-
export const PostKycMockApproveLevelEnhanced = {
|
|
12
|
-
Enhanced: "enhanced",
|
|
13
|
-
};
|
|
14
|
-
export const PostKycMockApproveLevelStandard = {
|
|
15
|
-
Standard: "standard",
|
|
16
|
-
};
|
|
17
|
-
export const PostKycMockApproveLevelBasic = {
|
|
18
|
-
Basic: "basic",
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const PostKycMockApproveLevelInstitutional$outboundSchema = z.enum(PostKycMockApproveLevelInstitutional);
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const PostKycMockApproveLevelEnhanced$outboundSchema = z.enum(PostKycMockApproveLevelEnhanced);
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const PostKycMockApproveLevelStandard$outboundSchema = z.enum(PostKycMockApproveLevelStandard);
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const PostKycMockApproveLevelBasic$outboundSchema = z.enum(PostKycMockApproveLevelBasic);
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const PostKycMockApproveLevelUnion$outboundSchema = smartUnion([
|
|
30
|
-
PostKycMockApproveLevelBasic$outboundSchema,
|
|
31
|
-
PostKycMockApproveLevelStandard$outboundSchema,
|
|
32
|
-
PostKycMockApproveLevelEnhanced$outboundSchema,
|
|
33
|
-
PostKycMockApproveLevelInstitutional$outboundSchema,
|
|
34
|
-
]);
|
|
35
|
-
export function postKycMockApproveLevelUnionToJSON(postKycMockApproveLevelUnion) {
|
|
36
|
-
return JSON.stringify(PostKycMockApproveLevelUnion$outboundSchema.parse(postKycMockApproveLevelUnion));
|
|
37
|
-
}
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const PostKycMockApproveRequest$outboundSchema = z.object({
|
|
40
|
-
level: z.optional(smartUnion([
|
|
41
|
-
PostKycMockApproveLevelBasic$outboundSchema,
|
|
42
|
-
PostKycMockApproveLevelStandard$outboundSchema,
|
|
43
|
-
PostKycMockApproveLevelEnhanced$outboundSchema,
|
|
44
|
-
PostKycMockApproveLevelInstitutional$outboundSchema,
|
|
45
|
-
])),
|
|
46
|
-
});
|
|
47
|
-
export function postKycMockApproveRequestToJSON(postKycMockApproveRequest) {
|
|
48
|
-
return JSON.stringify(PostKycMockApproveRequest$outboundSchema.parse(postKycMockApproveRequest));
|
|
49
|
-
}
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const PostKycMockApproveResponse$inboundSchema = z.object({
|
|
52
|
-
userId: types.string(),
|
|
53
|
-
status: types.string(),
|
|
54
|
-
level: types.string(),
|
|
55
|
-
rejectionReason: types.optional(types.string()),
|
|
56
|
-
});
|
|
57
|
-
export function postKycMockApproveResponseFromJSON(jsonString) {
|
|
58
|
-
return safeParse(jsonString, (x) => PostKycMockApproveResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostKycMockApproveResponse' from JSON`);
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=post-kyc-mock-approve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-kyc-mock-approve.js","sourceRoot":"","sources":["../../../src/models/operations/post-kyc-mock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