@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
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
8
|
+
import { SDKError } from "./sdk-error.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Response
|
|
12
|
+
*/
|
|
13
|
+
export type ServiceUnavailableErrorData = {
|
|
14
|
+
/**
|
|
15
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
16
|
+
*/
|
|
17
|
+
error: string;
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable error description
|
|
20
|
+
*/
|
|
21
|
+
errorDescription?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* URI for more information
|
|
24
|
+
*/
|
|
25
|
+
errorUri?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
28
|
+
*/
|
|
29
|
+
message?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Seconds until retry (set on 429 responses)
|
|
32
|
+
*/
|
|
33
|
+
retryAfter?: number | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Response
|
|
38
|
+
*/
|
|
39
|
+
export class ServiceUnavailableError extends SDKError {
|
|
40
|
+
/**
|
|
41
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
42
|
+
*/
|
|
43
|
+
error: string;
|
|
44
|
+
/**
|
|
45
|
+
* Human-readable error description
|
|
46
|
+
*/
|
|
47
|
+
errorDescription?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* URI for more information
|
|
50
|
+
*/
|
|
51
|
+
errorUri?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Seconds until retry (set on 429 responses)
|
|
54
|
+
*/
|
|
55
|
+
retryAfter?: number | undefined;
|
|
56
|
+
|
|
57
|
+
/** The original data that was passed to this error instance. */
|
|
58
|
+
data$: ServiceUnavailableErrorData;
|
|
59
|
+
|
|
60
|
+
constructor(
|
|
61
|
+
err: ServiceUnavailableErrorData,
|
|
62
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
63
|
+
) {
|
|
64
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
65
|
+
super(message, httpMeta);
|
|
66
|
+
this.data$ = err;
|
|
67
|
+
this.error = err.error;
|
|
68
|
+
if (err.errorDescription != null) {
|
|
69
|
+
this.errorDescription = err.errorDescription;
|
|
70
|
+
}
|
|
71
|
+
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
72
|
+
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
73
|
+
|
|
74
|
+
this.name = "ServiceUnavailableError";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Response
|
|
80
|
+
*/
|
|
81
|
+
export type PostOauthRevokeInternalServerErrorData = {
|
|
82
|
+
/**
|
|
83
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
84
|
+
*/
|
|
85
|
+
error: string;
|
|
86
|
+
/**
|
|
87
|
+
* Human-readable error description
|
|
88
|
+
*/
|
|
89
|
+
errorDescription?: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* URI for more information
|
|
92
|
+
*/
|
|
93
|
+
errorUri?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
96
|
+
*/
|
|
97
|
+
message?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Seconds until retry (set on 429 responses)
|
|
100
|
+
*/
|
|
101
|
+
retryAfter?: number | undefined;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Response
|
|
106
|
+
*/
|
|
107
|
+
export class PostOauthRevokeInternalServerError extends SDKError {
|
|
108
|
+
/**
|
|
109
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
110
|
+
*/
|
|
111
|
+
error: string;
|
|
112
|
+
/**
|
|
113
|
+
* Human-readable error description
|
|
114
|
+
*/
|
|
115
|
+
errorDescription?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* URI for more information
|
|
118
|
+
*/
|
|
119
|
+
errorUri?: string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Seconds until retry (set on 429 responses)
|
|
122
|
+
*/
|
|
123
|
+
retryAfter?: number | undefined;
|
|
124
|
+
|
|
125
|
+
/** The original data that was passed to this error instance. */
|
|
126
|
+
data$: PostOauthRevokeInternalServerErrorData;
|
|
127
|
+
|
|
128
|
+
constructor(
|
|
129
|
+
err: PostOauthRevokeInternalServerErrorData,
|
|
130
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
131
|
+
) {
|
|
132
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
133
|
+
super(message, httpMeta);
|
|
134
|
+
this.data$ = err;
|
|
135
|
+
this.error = err.error;
|
|
136
|
+
if (err.errorDescription != null) {
|
|
137
|
+
this.errorDescription = err.errorDescription;
|
|
138
|
+
}
|
|
139
|
+
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
140
|
+
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
141
|
+
|
|
142
|
+
this.name = "PostOauthRevokeInternalServerError";
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Response
|
|
148
|
+
*/
|
|
149
|
+
export type PostOauthRevokeTooManyRequestsErrorData = {
|
|
150
|
+
/**
|
|
151
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
152
|
+
*/
|
|
153
|
+
error: string;
|
|
154
|
+
/**
|
|
155
|
+
* Human-readable error description
|
|
156
|
+
*/
|
|
157
|
+
errorDescription?: string | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* URI for more information
|
|
160
|
+
*/
|
|
161
|
+
errorUri?: string | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
164
|
+
*/
|
|
165
|
+
message?: string | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Seconds until retry (set on 429 responses)
|
|
168
|
+
*/
|
|
169
|
+
retryAfter?: number | undefined;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Response
|
|
174
|
+
*/
|
|
175
|
+
export class PostOauthRevokeTooManyRequestsError extends SDKError {
|
|
176
|
+
/**
|
|
177
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
178
|
+
*/
|
|
179
|
+
error: string;
|
|
180
|
+
/**
|
|
181
|
+
* Human-readable error description
|
|
182
|
+
*/
|
|
183
|
+
errorDescription?: string | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* URI for more information
|
|
186
|
+
*/
|
|
187
|
+
errorUri?: string | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Seconds until retry (set on 429 responses)
|
|
190
|
+
*/
|
|
191
|
+
retryAfter?: number | undefined;
|
|
192
|
+
|
|
193
|
+
/** The original data that was passed to this error instance. */
|
|
194
|
+
data$: PostOauthRevokeTooManyRequestsErrorData;
|
|
195
|
+
|
|
196
|
+
constructor(
|
|
197
|
+
err: PostOauthRevokeTooManyRequestsErrorData,
|
|
198
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
199
|
+
) {
|
|
200
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
201
|
+
super(message, httpMeta);
|
|
202
|
+
this.data$ = err;
|
|
203
|
+
this.error = err.error;
|
|
204
|
+
if (err.errorDescription != null) {
|
|
205
|
+
this.errorDescription = err.errorDescription;
|
|
206
|
+
}
|
|
207
|
+
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
208
|
+
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
209
|
+
|
|
210
|
+
this.name = "PostOauthRevokeTooManyRequestsError";
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Response
|
|
216
|
+
*/
|
|
217
|
+
export type PostOauthRevokeUnauthorizedErrorData = {
|
|
218
|
+
/**
|
|
219
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
220
|
+
*/
|
|
221
|
+
error: string;
|
|
222
|
+
/**
|
|
223
|
+
* Human-readable error description
|
|
224
|
+
*/
|
|
225
|
+
errorDescription?: string | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* URI for more information
|
|
228
|
+
*/
|
|
229
|
+
errorUri?: string | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
232
|
+
*/
|
|
233
|
+
message?: string | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* Seconds until retry (set on 429 responses)
|
|
236
|
+
*/
|
|
237
|
+
retryAfter?: number | undefined;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Response
|
|
242
|
+
*/
|
|
243
|
+
export class PostOauthRevokeUnauthorizedError extends SDKError {
|
|
244
|
+
/**
|
|
245
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
246
|
+
*/
|
|
247
|
+
error: string;
|
|
248
|
+
/**
|
|
249
|
+
* Human-readable error description
|
|
250
|
+
*/
|
|
251
|
+
errorDescription?: string | undefined;
|
|
252
|
+
/**
|
|
253
|
+
* URI for more information
|
|
254
|
+
*/
|
|
255
|
+
errorUri?: string | undefined;
|
|
256
|
+
/**
|
|
257
|
+
* Seconds until retry (set on 429 responses)
|
|
258
|
+
*/
|
|
259
|
+
retryAfter?: number | undefined;
|
|
260
|
+
|
|
261
|
+
/** The original data that was passed to this error instance. */
|
|
262
|
+
data$: PostOauthRevokeUnauthorizedErrorData;
|
|
263
|
+
|
|
264
|
+
constructor(
|
|
265
|
+
err: PostOauthRevokeUnauthorizedErrorData,
|
|
266
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
267
|
+
) {
|
|
268
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
269
|
+
super(message, httpMeta);
|
|
270
|
+
this.data$ = err;
|
|
271
|
+
this.error = err.error;
|
|
272
|
+
if (err.errorDescription != null) {
|
|
273
|
+
this.errorDescription = err.errorDescription;
|
|
274
|
+
}
|
|
275
|
+
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
276
|
+
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
277
|
+
|
|
278
|
+
this.name = "PostOauthRevokeUnauthorizedError";
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Response
|
|
284
|
+
*/
|
|
285
|
+
export type PostOauthRevokeBadRequestErrorData = {
|
|
286
|
+
/**
|
|
287
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
288
|
+
*/
|
|
289
|
+
error: string;
|
|
290
|
+
/**
|
|
291
|
+
* Human-readable error description
|
|
292
|
+
*/
|
|
293
|
+
errorDescription?: string | undefined;
|
|
294
|
+
/**
|
|
295
|
+
* URI for more information
|
|
296
|
+
*/
|
|
297
|
+
errorUri?: string | undefined;
|
|
298
|
+
/**
|
|
299
|
+
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
300
|
+
*/
|
|
301
|
+
message?: string | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* Seconds until retry (set on 429 responses)
|
|
304
|
+
*/
|
|
305
|
+
retryAfter?: number | undefined;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Response
|
|
310
|
+
*/
|
|
311
|
+
export class PostOauthRevokeBadRequestError extends SDKError {
|
|
312
|
+
/**
|
|
313
|
+
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
314
|
+
*/
|
|
315
|
+
error: string;
|
|
316
|
+
/**
|
|
317
|
+
* Human-readable error description
|
|
318
|
+
*/
|
|
319
|
+
errorDescription?: string | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* URI for more information
|
|
322
|
+
*/
|
|
323
|
+
errorUri?: string | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* Seconds until retry (set on 429 responses)
|
|
326
|
+
*/
|
|
327
|
+
retryAfter?: number | undefined;
|
|
328
|
+
|
|
329
|
+
/** The original data that was passed to this error instance. */
|
|
330
|
+
data$: PostOauthRevokeBadRequestErrorData;
|
|
331
|
+
|
|
332
|
+
constructor(
|
|
333
|
+
err: PostOauthRevokeBadRequestErrorData,
|
|
334
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
335
|
+
) {
|
|
336
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
337
|
+
super(message, httpMeta);
|
|
338
|
+
this.data$ = err;
|
|
339
|
+
this.error = err.error;
|
|
340
|
+
if (err.errorDescription != null) {
|
|
341
|
+
this.errorDescription = err.errorDescription;
|
|
342
|
+
}
|
|
343
|
+
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
344
|
+
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
345
|
+
|
|
346
|
+
this.name = "PostOauthRevokeBadRequestError";
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/** @internal */
|
|
351
|
+
export const ServiceUnavailableError$inboundSchema: z.ZodMiniType<
|
|
352
|
+
ServiceUnavailableError,
|
|
353
|
+
unknown
|
|
354
|
+
> = z.pipe(
|
|
355
|
+
z.object({
|
|
356
|
+
error: types.string(),
|
|
357
|
+
error_description: types.optional(types.string()),
|
|
358
|
+
error_uri: types.optional(types.string()),
|
|
359
|
+
message: types.optional(types.string()),
|
|
360
|
+
retryAfter: types.optional(types.number()),
|
|
361
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
362
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
363
|
+
body$: z.string(),
|
|
364
|
+
}),
|
|
365
|
+
z.transform((v) => {
|
|
366
|
+
const remapped = remap$(v, {
|
|
367
|
+
"error_description": "errorDescription",
|
|
368
|
+
"error_uri": "errorUri",
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
return new ServiceUnavailableError(remapped, {
|
|
372
|
+
request: v.request$,
|
|
373
|
+
response: v.response$,
|
|
374
|
+
body: v.body$,
|
|
375
|
+
});
|
|
376
|
+
}),
|
|
377
|
+
);
|
|
378
|
+
|
|
379
|
+
/** @internal */
|
|
380
|
+
export const PostOauthRevokeInternalServerError$inboundSchema: z.ZodMiniType<
|
|
381
|
+
PostOauthRevokeInternalServerError,
|
|
382
|
+
unknown
|
|
383
|
+
> = z.pipe(
|
|
384
|
+
z.object({
|
|
385
|
+
error: types.string(),
|
|
386
|
+
error_description: types.optional(types.string()),
|
|
387
|
+
error_uri: types.optional(types.string()),
|
|
388
|
+
message: types.optional(types.string()),
|
|
389
|
+
retryAfter: types.optional(types.number()),
|
|
390
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
391
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
392
|
+
body$: z.string(),
|
|
393
|
+
}),
|
|
394
|
+
z.transform((v) => {
|
|
395
|
+
const remapped = remap$(v, {
|
|
396
|
+
"error_description": "errorDescription",
|
|
397
|
+
"error_uri": "errorUri",
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
return new PostOauthRevokeInternalServerError(remapped, {
|
|
401
|
+
request: v.request$,
|
|
402
|
+
response: v.response$,
|
|
403
|
+
body: v.body$,
|
|
404
|
+
});
|
|
405
|
+
}),
|
|
406
|
+
);
|
|
407
|
+
|
|
408
|
+
/** @internal */
|
|
409
|
+
export const PostOauthRevokeTooManyRequestsError$inboundSchema: z.ZodMiniType<
|
|
410
|
+
PostOauthRevokeTooManyRequestsError,
|
|
411
|
+
unknown
|
|
412
|
+
> = z.pipe(
|
|
413
|
+
z.object({
|
|
414
|
+
error: types.string(),
|
|
415
|
+
error_description: types.optional(types.string()),
|
|
416
|
+
error_uri: types.optional(types.string()),
|
|
417
|
+
message: types.optional(types.string()),
|
|
418
|
+
retryAfter: types.optional(types.number()),
|
|
419
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
420
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
421
|
+
body$: z.string(),
|
|
422
|
+
}),
|
|
423
|
+
z.transform((v) => {
|
|
424
|
+
const remapped = remap$(v, {
|
|
425
|
+
"error_description": "errorDescription",
|
|
426
|
+
"error_uri": "errorUri",
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
return new PostOauthRevokeTooManyRequestsError(remapped, {
|
|
430
|
+
request: v.request$,
|
|
431
|
+
response: v.response$,
|
|
432
|
+
body: v.body$,
|
|
433
|
+
});
|
|
434
|
+
}),
|
|
435
|
+
);
|
|
436
|
+
|
|
437
|
+
/** @internal */
|
|
438
|
+
export const PostOauthRevokeUnauthorizedError$inboundSchema: z.ZodMiniType<
|
|
439
|
+
PostOauthRevokeUnauthorizedError,
|
|
440
|
+
unknown
|
|
441
|
+
> = z.pipe(
|
|
442
|
+
z.object({
|
|
443
|
+
error: types.string(),
|
|
444
|
+
error_description: types.optional(types.string()),
|
|
445
|
+
error_uri: types.optional(types.string()),
|
|
446
|
+
message: types.optional(types.string()),
|
|
447
|
+
retryAfter: types.optional(types.number()),
|
|
448
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
449
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
450
|
+
body$: z.string(),
|
|
451
|
+
}),
|
|
452
|
+
z.transform((v) => {
|
|
453
|
+
const remapped = remap$(v, {
|
|
454
|
+
"error_description": "errorDescription",
|
|
455
|
+
"error_uri": "errorUri",
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
return new PostOauthRevokeUnauthorizedError(remapped, {
|
|
459
|
+
request: v.request$,
|
|
460
|
+
response: v.response$,
|
|
461
|
+
body: v.body$,
|
|
462
|
+
});
|
|
463
|
+
}),
|
|
464
|
+
);
|
|
465
|
+
|
|
466
|
+
/** @internal */
|
|
467
|
+
export const PostOauthRevokeBadRequestError$inboundSchema: z.ZodMiniType<
|
|
468
|
+
PostOauthRevokeBadRequestError,
|
|
469
|
+
unknown
|
|
470
|
+
> = z.pipe(
|
|
471
|
+
z.object({
|
|
472
|
+
error: types.string(),
|
|
473
|
+
error_description: types.optional(types.string()),
|
|
474
|
+
error_uri: types.optional(types.string()),
|
|
475
|
+
message: types.optional(types.string()),
|
|
476
|
+
retryAfter: types.optional(types.number()),
|
|
477
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
478
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
479
|
+
body$: z.string(),
|
|
480
|
+
}),
|
|
481
|
+
z.transform((v) => {
|
|
482
|
+
const remapped = remap$(v, {
|
|
483
|
+
"error_description": "errorDescription",
|
|
484
|
+
"error_uri": "errorUri",
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
return new PostOauthRevokeBadRequestError(remapped, {
|
|
488
|
+
request: v.request$,
|
|
489
|
+
response: v.response$,
|
|
490
|
+
body: v.body$,
|
|
491
|
+
});
|
|
492
|
+
}),
|
|
493
|
+
);
|
|
@@ -14,6 +14,17 @@ export type GetOrgsSecurity = {
|
|
|
14
14
|
apiKeyAuth?: string | undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
export type GetOrgsRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Page number (1-based, default: 1)
|
|
20
|
+
*/
|
|
21
|
+
page?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Items per page (default: 50, max: 200)
|
|
24
|
+
*/
|
|
25
|
+
limit?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
17
28
|
export type GetOrgsOrganization = {
|
|
18
29
|
id: string;
|
|
19
30
|
name: string;
|
|
@@ -32,11 +43,39 @@ export type GetOrgsOrganization = {
|
|
|
32
43
|
updatedAt: string;
|
|
33
44
|
};
|
|
34
45
|
|
|
46
|
+
export type GetOrgsPagination = {
|
|
47
|
+
/**
|
|
48
|
+
* Current page number
|
|
49
|
+
*/
|
|
50
|
+
page: number;
|
|
51
|
+
/**
|
|
52
|
+
* Items per page
|
|
53
|
+
*/
|
|
54
|
+
limit: number;
|
|
55
|
+
/**
|
|
56
|
+
* Total item count
|
|
57
|
+
*/
|
|
58
|
+
total: number;
|
|
59
|
+
/**
|
|
60
|
+
* Total number of pages
|
|
61
|
+
*/
|
|
62
|
+
totalPages: number;
|
|
63
|
+
/**
|
|
64
|
+
* Whether a next page exists
|
|
65
|
+
*/
|
|
66
|
+
hasNext: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether a previous page exists
|
|
69
|
+
*/
|
|
70
|
+
hasPrev: boolean;
|
|
71
|
+
};
|
|
72
|
+
|
|
35
73
|
/**
|
|
36
74
|
* Response
|
|
37
75
|
*/
|
|
38
76
|
export type GetOrgsResponse = {
|
|
39
77
|
organizations: Array<GetOrgsOrganization>;
|
|
78
|
+
pagination: GetOrgsPagination;
|
|
40
79
|
};
|
|
41
80
|
|
|
42
81
|
/** @internal */
|
|
@@ -60,6 +99,25 @@ export function getOrgsSecurityToJSON(
|
|
|
60
99
|
return JSON.stringify(GetOrgsSecurity$outboundSchema.parse(getOrgsSecurity));
|
|
61
100
|
}
|
|
62
101
|
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type GetOrgsRequest$Outbound = {
|
|
104
|
+
page?: string | undefined;
|
|
105
|
+
limit?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const GetOrgsRequest$outboundSchema: z.ZodMiniType<
|
|
110
|
+
GetOrgsRequest$Outbound,
|
|
111
|
+
GetOrgsRequest
|
|
112
|
+
> = z.object({
|
|
113
|
+
page: z.optional(z.string()),
|
|
114
|
+
limit: z.optional(z.string()),
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export function getOrgsRequestToJSON(getOrgsRequest: GetOrgsRequest): string {
|
|
118
|
+
return JSON.stringify(GetOrgsRequest$outboundSchema.parse(getOrgsRequest));
|
|
119
|
+
}
|
|
120
|
+
|
|
63
121
|
/** @internal */
|
|
64
122
|
export const GetOrgsOrganization$inboundSchema: z.ZodMiniType<
|
|
65
123
|
GetOrgsOrganization,
|
|
@@ -105,12 +163,45 @@ export function getOrgsOrganizationFromJSON(
|
|
|
105
163
|
);
|
|
106
164
|
}
|
|
107
165
|
|
|
166
|
+
/** @internal */
|
|
167
|
+
export const GetOrgsPagination$inboundSchema: z.ZodMiniType<
|
|
168
|
+
GetOrgsPagination,
|
|
169
|
+
unknown
|
|
170
|
+
> = z.pipe(
|
|
171
|
+
z.object({
|
|
172
|
+
page: types.number(),
|
|
173
|
+
limit: types.number(),
|
|
174
|
+
total: types.number(),
|
|
175
|
+
total_pages: types.number(),
|
|
176
|
+
has_next: types.boolean(),
|
|
177
|
+
has_prev: types.boolean(),
|
|
178
|
+
}),
|
|
179
|
+
z.transform((v) => {
|
|
180
|
+
return remap$(v, {
|
|
181
|
+
"total_pages": "totalPages",
|
|
182
|
+
"has_next": "hasNext",
|
|
183
|
+
"has_prev": "hasPrev",
|
|
184
|
+
});
|
|
185
|
+
}),
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
export function getOrgsPaginationFromJSON(
|
|
189
|
+
jsonString: string,
|
|
190
|
+
): SafeParseResult<GetOrgsPagination, SDKValidationError> {
|
|
191
|
+
return safeParse(
|
|
192
|
+
jsonString,
|
|
193
|
+
(x) => GetOrgsPagination$inboundSchema.parse(JSON.parse(x)),
|
|
194
|
+
`Failed to parse 'GetOrgsPagination' from JSON`,
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
108
198
|
/** @internal */
|
|
109
199
|
export const GetOrgsResponse$inboundSchema: z.ZodMiniType<
|
|
110
200
|
GetOrgsResponse,
|
|
111
201
|
unknown
|
|
112
202
|
> = z.object({
|
|
113
203
|
organizations: z.array(z.lazy(() => GetOrgsOrganization$inboundSchema)),
|
|
204
|
+
pagination: z.lazy(() => GetOrgsPagination$inboundSchema),
|
|
114
205
|
});
|
|
115
206
|
|
|
116
207
|
export function getOrgsResponseFromJSON(
|
|
@@ -161,8 +161,6 @@ export * from "./post-compliance-check.js";
|
|
|
161
161
|
export * from "./post-consent.js";
|
|
162
162
|
export * from "./post-kyc-access-token.js";
|
|
163
163
|
export * from "./post-kyc-initiate.js";
|
|
164
|
-
export * from "./post-kyc-mock-approve.js";
|
|
165
|
-
export * from "./post-kyc-mock-reject.js";
|
|
166
164
|
export * from "./post-kyc-webhook-by-provider.js";
|
|
167
165
|
export * from "./post-login.js";
|
|
168
166
|
export * from "./post-oauth-authorize-callback.js";
|
|
@@ -19,11 +19,15 @@ export type PostAttestationsRequest = {
|
|
|
19
19
|
*/
|
|
20
20
|
chainEid: number;
|
|
21
21
|
/**
|
|
22
|
-
* KYC level
|
|
22
|
+
* Ignored. The server sets the attestation's KYC level from the caller's approved, unexpired KYC verification (0 when there is none).
|
|
23
|
+
*
|
|
24
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
23
25
|
*/
|
|
24
26
|
kycLevel?: number | undefined;
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* Ignored. Jurisdiction is not self-asserted; it is set only by an organization attestation.
|
|
29
|
+
*
|
|
30
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
27
31
|
*/
|
|
28
32
|
countryCode?: string | undefined;
|
|
29
33
|
/**
|
|
@@ -18,6 +18,14 @@ export type PostOauthRevokeRequest = {
|
|
|
18
18
|
* Token type: access_token or refresh_token
|
|
19
19
|
*/
|
|
20
20
|
tokenTypeHint?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Client application ID (client_secret_post / public clients)
|
|
23
|
+
*/
|
|
24
|
+
clientId?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Client secret for confidential clients (client_secret_post)
|
|
27
|
+
*/
|
|
28
|
+
clientSecret?: string | undefined;
|
|
21
29
|
};
|
|
22
30
|
|
|
23
31
|
/**
|
|
@@ -34,6 +42,8 @@ export type PostOauthRevokeResponse = {
|
|
|
34
42
|
export type PostOauthRevokeRequest$Outbound = {
|
|
35
43
|
token: string;
|
|
36
44
|
token_type_hint?: string | undefined;
|
|
45
|
+
client_id?: string | undefined;
|
|
46
|
+
client_secret?: string | undefined;
|
|
37
47
|
};
|
|
38
48
|
|
|
39
49
|
/** @internal */
|
|
@@ -44,10 +54,14 @@ export const PostOauthRevokeRequest$outboundSchema: z.ZodMiniType<
|
|
|
44
54
|
z.object({
|
|
45
55
|
token: z.string(),
|
|
46
56
|
tokenTypeHint: z.optional(z.string()),
|
|
57
|
+
clientId: z.optional(z.string()),
|
|
58
|
+
clientSecret: z.optional(z.string()),
|
|
47
59
|
}),
|
|
48
60
|
z.transform((v) => {
|
|
49
61
|
return remap$(v, {
|
|
50
62
|
tokenTypeHint: "token_type_hint",
|
|
63
|
+
clientId: "client_id",
|
|
64
|
+
clientSecret: "client_secret",
|
|
51
65
|
});
|
|
52
66
|
}),
|
|
53
67
|
);
|