@calm-xyz/core 0.9.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/dist/index.d.ts +3159 -0
- package/dist/index.js +1198 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
type Error$1 = {
|
|
6
|
+
/**
|
|
7
|
+
* @type object
|
|
8
|
+
*/
|
|
9
|
+
error: {
|
|
10
|
+
/**
|
|
11
|
+
* @type string
|
|
12
|
+
*/
|
|
13
|
+
code: string;
|
|
14
|
+
/**
|
|
15
|
+
* @type string
|
|
16
|
+
*/
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type CheckoutStripeSessionPathParams = {
|
|
21
|
+
/**
|
|
22
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
23
|
+
* @type string
|
|
24
|
+
*/
|
|
25
|
+
address: string;
|
|
26
|
+
/**
|
|
27
|
+
* @minLength 1
|
|
28
|
+
* @type string
|
|
29
|
+
*/
|
|
30
|
+
sessionId: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @description The checked-out session\'s client secret.
|
|
34
|
+
*/
|
|
35
|
+
type CheckoutStripeSession200 = {
|
|
36
|
+
client_secret: (string | null);
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
40
|
+
*/
|
|
41
|
+
type CheckoutStripeSession400 = Error$1;
|
|
42
|
+
/**
|
|
43
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required, stripe_auth_required.
|
|
44
|
+
*/
|
|
45
|
+
type CheckoutStripeSession401 = Error$1;
|
|
46
|
+
/**
|
|
47
|
+
* @description Error — `error.code` includes: card_declined.
|
|
48
|
+
*/
|
|
49
|
+
type CheckoutStripeSession402 = Error$1;
|
|
50
|
+
/**
|
|
51
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
52
|
+
*/
|
|
53
|
+
type CheckoutStripeSession403 = Error$1;
|
|
54
|
+
/**
|
|
55
|
+
* @description Conflict — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
56
|
+
*/
|
|
57
|
+
type CheckoutStripeSession409 = Error$1;
|
|
58
|
+
/**
|
|
59
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
60
|
+
*/
|
|
61
|
+
type CheckoutStripeSession429 = Error$1;
|
|
62
|
+
/**
|
|
63
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
64
|
+
*/
|
|
65
|
+
type CheckoutStripeSession502 = Error$1;
|
|
66
|
+
type CheckoutStripeSessionMutationResponse = CheckoutStripeSession200;
|
|
67
|
+
type CheckoutStripeSessionMutation = {
|
|
68
|
+
Response: CheckoutStripeSession200;
|
|
69
|
+
PathParams: CheckoutStripeSessionPathParams;
|
|
70
|
+
Errors: CheckoutStripeSession400 | CheckoutStripeSession401 | CheckoutStripeSession402 | CheckoutStripeSession403 | CheckoutStripeSession409 | CheckoutStripeSession429 | CheckoutStripeSession502;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @description Cookies cleared.
|
|
74
|
+
*/
|
|
75
|
+
type ClearSession204 = any;
|
|
76
|
+
/**
|
|
77
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
78
|
+
*/
|
|
79
|
+
type ClearSession429 = Error$1;
|
|
80
|
+
type ClearSessionMutationResponse = ClearSession204;
|
|
81
|
+
type ClearSessionMutation = {
|
|
82
|
+
Response: ClearSession204;
|
|
83
|
+
Errors: ClearSession429;
|
|
84
|
+
};
|
|
85
|
+
declare const connectExchangePathParamsExchangeEnum: {
|
|
86
|
+
readonly coinbase: "coinbase";
|
|
87
|
+
};
|
|
88
|
+
type ConnectExchangePathParamsExchangeEnumKey = (typeof connectExchangePathParamsExchangeEnum)[keyof typeof connectExchangePathParamsExchangeEnum];
|
|
89
|
+
type ConnectExchangePathParams = {
|
|
90
|
+
/**
|
|
91
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
92
|
+
* @type string
|
|
93
|
+
*/
|
|
94
|
+
address: string;
|
|
95
|
+
/**
|
|
96
|
+
* @type string
|
|
97
|
+
*/
|
|
98
|
+
exchange: ConnectExchangePathParamsExchangeEnumKey;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* @description The authorization URL.
|
|
102
|
+
*/
|
|
103
|
+
type ConnectExchange200 = {
|
|
104
|
+
/**
|
|
105
|
+
* @type boolean
|
|
106
|
+
*/
|
|
107
|
+
is_qr_code: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @type string, uri
|
|
110
|
+
*/
|
|
111
|
+
url: string;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, unsupported_exchange.
|
|
115
|
+
*/
|
|
116
|
+
type ConnectExchange400 = Error$1;
|
|
117
|
+
/**
|
|
118
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
119
|
+
*/
|
|
120
|
+
type ConnectExchange401 = Error$1;
|
|
121
|
+
/**
|
|
122
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
123
|
+
*/
|
|
124
|
+
type ConnectExchange403 = Error$1;
|
|
125
|
+
/**
|
|
126
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
127
|
+
*/
|
|
128
|
+
type ConnectExchange404 = Error$1;
|
|
129
|
+
/**
|
|
130
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
131
|
+
*/
|
|
132
|
+
type ConnectExchange429 = Error$1;
|
|
133
|
+
/**
|
|
134
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
135
|
+
*/
|
|
136
|
+
type ConnectExchange502 = Error$1;
|
|
137
|
+
type ConnectExchangeMutationResponse = ConnectExchange200;
|
|
138
|
+
type ConnectExchangeMutation = {
|
|
139
|
+
Response: ConnectExchange200;
|
|
140
|
+
PathParams: ConnectExchangePathParams;
|
|
141
|
+
Errors: ConnectExchange400 | ConnectExchange401 | ConnectExchange403 | ConnectExchange404 | ConnectExchange429 | ConnectExchange502;
|
|
142
|
+
};
|
|
143
|
+
type CreateCardLinkPathParams = {
|
|
144
|
+
/**
|
|
145
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
146
|
+
* @type string
|
|
147
|
+
*/
|
|
148
|
+
address: string;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* @description The card-onramp URL.
|
|
152
|
+
*/
|
|
153
|
+
type CreateCardLink200 = {
|
|
154
|
+
/**
|
|
155
|
+
* @type string, uri
|
|
156
|
+
*/
|
|
157
|
+
url: string;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
161
|
+
*/
|
|
162
|
+
type CreateCardLink400 = Error$1;
|
|
163
|
+
/**
|
|
164
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
165
|
+
*/
|
|
166
|
+
type CreateCardLink401 = Error$1;
|
|
167
|
+
/**
|
|
168
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
169
|
+
*/
|
|
170
|
+
type CreateCardLink403 = Error$1;
|
|
171
|
+
/**
|
|
172
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
173
|
+
*/
|
|
174
|
+
type CreateCardLink429 = Error$1;
|
|
175
|
+
declare const createCardLinkMutationRequestCurrencyEnum: {
|
|
176
|
+
readonly usd: "usd";
|
|
177
|
+
readonly gbp: "gbp";
|
|
178
|
+
readonly eur: "eur";
|
|
179
|
+
};
|
|
180
|
+
type CreateCardLinkMutationRequestCurrencyEnumKey = (typeof createCardLinkMutationRequestCurrencyEnum)[keyof typeof createCardLinkMutationRequestCurrencyEnum];
|
|
181
|
+
type CreateCardLinkMutationRequest = {
|
|
182
|
+
/**
|
|
183
|
+
* @pattern ^\d+(\.\d{1,2})?$
|
|
184
|
+
* @type string | undefined
|
|
185
|
+
*/
|
|
186
|
+
amount_fiat_usd?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @default "usd"
|
|
189
|
+
* @type string | undefined
|
|
190
|
+
*/
|
|
191
|
+
currency?: CreateCardLinkMutationRequestCurrencyEnumKey;
|
|
192
|
+
/**
|
|
193
|
+
* @minLength 1
|
|
194
|
+
* @default "USDC"
|
|
195
|
+
* @type string | undefined
|
|
196
|
+
*/
|
|
197
|
+
destination_asset?: string;
|
|
198
|
+
destination_chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
199
|
+
};
|
|
200
|
+
type CreateCardLinkMutationResponse = CreateCardLink200;
|
|
201
|
+
type CreateCardLinkMutation = {
|
|
202
|
+
Response: CreateCardLink200;
|
|
203
|
+
Request: CreateCardLinkMutationRequest;
|
|
204
|
+
PathParams: CreateCardLinkPathParams;
|
|
205
|
+
Errors: CreateCardLink400 | CreateCardLink401 | CreateCardLink403 | CreateCardLink429;
|
|
206
|
+
};
|
|
207
|
+
type CreateCashAppOrderPathParams = {
|
|
208
|
+
/**
|
|
209
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
210
|
+
* @type string
|
|
211
|
+
*/
|
|
212
|
+
address: string;
|
|
213
|
+
};
|
|
214
|
+
declare const createCashAppOrder200StatusEnum: {
|
|
215
|
+
readonly pending: "pending";
|
|
216
|
+
readonly processing: "processing";
|
|
217
|
+
readonly confirming: "confirming";
|
|
218
|
+
readonly swapping: "swapping";
|
|
219
|
+
readonly bridging: "bridging";
|
|
220
|
+
readonly awaiting_approval: "awaiting_approval";
|
|
221
|
+
readonly delivering: "delivering";
|
|
222
|
+
readonly completed: "completed";
|
|
223
|
+
readonly failed: "failed";
|
|
224
|
+
readonly refunding: "refunding";
|
|
225
|
+
readonly refunded: "refunded";
|
|
226
|
+
readonly unfulfilled: "unfulfilled";
|
|
227
|
+
readonly expired: "expired";
|
|
228
|
+
};
|
|
229
|
+
type CreateCashAppOrder200StatusEnumKey = (typeof createCashAppOrder200StatusEnum)[keyof typeof createCashAppOrder200StatusEnum];
|
|
230
|
+
/**
|
|
231
|
+
* @description The created Cash App order.
|
|
232
|
+
*/
|
|
233
|
+
type CreateCashAppOrder200 = {
|
|
234
|
+
/**
|
|
235
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
236
|
+
* @type string
|
|
237
|
+
*/
|
|
238
|
+
address: string;
|
|
239
|
+
/**
|
|
240
|
+
* @type string
|
|
241
|
+
*/
|
|
242
|
+
amount_usd: string;
|
|
243
|
+
/**
|
|
244
|
+
* @description Chain id. Currently 1, 8453, 42161, 999, 1337 — additive; tolerate unknown values.
|
|
245
|
+
* @minLength -9007199254740991
|
|
246
|
+
* @maxLength 9007199254740991
|
|
247
|
+
* @type integer
|
|
248
|
+
*/
|
|
249
|
+
chain: number;
|
|
250
|
+
/**
|
|
251
|
+
* @type string, date-time
|
|
252
|
+
*/
|
|
253
|
+
created_at: string;
|
|
254
|
+
/**
|
|
255
|
+
* @type object
|
|
256
|
+
*/
|
|
257
|
+
fee: {
|
|
258
|
+
/**
|
|
259
|
+
* @type string
|
|
260
|
+
*/
|
|
261
|
+
amount: string;
|
|
262
|
+
/**
|
|
263
|
+
* @minLength -9007199254740991
|
|
264
|
+
* @maxLength 9007199254740991
|
|
265
|
+
* @type integer
|
|
266
|
+
*/
|
|
267
|
+
decimals: number;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* @type string, uuid
|
|
271
|
+
*/
|
|
272
|
+
id: string;
|
|
273
|
+
/**
|
|
274
|
+
* @type string
|
|
275
|
+
*/
|
|
276
|
+
link: string;
|
|
277
|
+
/**
|
|
278
|
+
* @type object
|
|
279
|
+
*/
|
|
280
|
+
out: {
|
|
281
|
+
/**
|
|
282
|
+
* @type string
|
|
283
|
+
*/
|
|
284
|
+
amount: string;
|
|
285
|
+
/**
|
|
286
|
+
* @minLength -9007199254740991
|
|
287
|
+
* @maxLength 9007199254740991
|
|
288
|
+
* @type integer
|
|
289
|
+
*/
|
|
290
|
+
decimals: number;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* @type string
|
|
294
|
+
*/
|
|
295
|
+
status: CreateCashAppOrder200StatusEnumKey;
|
|
296
|
+
/**
|
|
297
|
+
* @type string
|
|
298
|
+
*/
|
|
299
|
+
token: string;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* @description Bad Request — `error.code` includes: amount_too_large, invalid_wallet, unsupported_route, validation_error.
|
|
303
|
+
*/
|
|
304
|
+
type CreateCashAppOrder400 = Error$1;
|
|
305
|
+
/**
|
|
306
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
307
|
+
*/
|
|
308
|
+
type CreateCashAppOrder401 = Error$1;
|
|
309
|
+
/**
|
|
310
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
311
|
+
*/
|
|
312
|
+
type CreateCashAppOrder403 = Error$1;
|
|
313
|
+
/**
|
|
314
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
315
|
+
*/
|
|
316
|
+
type CreateCashAppOrder404 = Error$1;
|
|
317
|
+
/**
|
|
318
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
319
|
+
*/
|
|
320
|
+
type CreateCashAppOrder429 = Error$1;
|
|
321
|
+
/**
|
|
322
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
323
|
+
*/
|
|
324
|
+
type CreateCashAppOrder502 = Error$1;
|
|
325
|
+
type CreateCashAppOrderMutationRequest = {
|
|
326
|
+
/**
|
|
327
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
328
|
+
* @type string
|
|
329
|
+
*/
|
|
330
|
+
address: string;
|
|
331
|
+
/**
|
|
332
|
+
* @pattern ^\d+(\.\d{1,2})?$
|
|
333
|
+
* @type string
|
|
334
|
+
*/
|
|
335
|
+
amount_usd: string;
|
|
336
|
+
chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
337
|
+
/**
|
|
338
|
+
* @type string
|
|
339
|
+
*/
|
|
340
|
+
token: "USDC";
|
|
341
|
+
};
|
|
342
|
+
type CreateCashAppOrderMutationResponse = CreateCashAppOrder200;
|
|
343
|
+
type CreateCashAppOrderMutation = {
|
|
344
|
+
Response: CreateCashAppOrder200;
|
|
345
|
+
Request: CreateCashAppOrderMutationRequest;
|
|
346
|
+
PathParams: CreateCashAppOrderPathParams;
|
|
347
|
+
Errors: CreateCashAppOrder400 | CreateCashAppOrder401 | CreateCashAppOrder403 | CreateCashAppOrder404 | CreateCashAppOrder429 | CreateCashAppOrder502;
|
|
348
|
+
};
|
|
349
|
+
type CreateCashAppQuotePathParams = {
|
|
350
|
+
/**
|
|
351
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
352
|
+
* @type string
|
|
353
|
+
*/
|
|
354
|
+
address: string;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* @description The Cash App pricing preview.
|
|
358
|
+
*/
|
|
359
|
+
type CreateCashAppQuote200 = {
|
|
360
|
+
/**
|
|
361
|
+
* @type number
|
|
362
|
+
*/
|
|
363
|
+
bps: number;
|
|
364
|
+
/**
|
|
365
|
+
* @type object
|
|
366
|
+
*/
|
|
367
|
+
fee: {
|
|
368
|
+
/**
|
|
369
|
+
* @type string
|
|
370
|
+
*/
|
|
371
|
+
amount: string;
|
|
372
|
+
/**
|
|
373
|
+
* @minLength -9007199254740991
|
|
374
|
+
* @maxLength 9007199254740991
|
|
375
|
+
* @type integer
|
|
376
|
+
*/
|
|
377
|
+
decimals: number;
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* @type object
|
|
381
|
+
*/
|
|
382
|
+
out: {
|
|
383
|
+
/**
|
|
384
|
+
* @type string
|
|
385
|
+
*/
|
|
386
|
+
amount: string;
|
|
387
|
+
/**
|
|
388
|
+
* @minLength -9007199254740991
|
|
389
|
+
* @maxLength 9007199254740991
|
|
390
|
+
* @type integer
|
|
391
|
+
*/
|
|
392
|
+
decimals: number;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, unsupported_route, validation_error.
|
|
397
|
+
*/
|
|
398
|
+
type CreateCashAppQuote400 = Error$1;
|
|
399
|
+
/**
|
|
400
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
401
|
+
*/
|
|
402
|
+
type CreateCashAppQuote401 = Error$1;
|
|
403
|
+
/**
|
|
404
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
405
|
+
*/
|
|
406
|
+
type CreateCashAppQuote403 = Error$1;
|
|
407
|
+
/**
|
|
408
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
409
|
+
*/
|
|
410
|
+
type CreateCashAppQuote429 = Error$1;
|
|
411
|
+
/**
|
|
412
|
+
* @description Bad Gateway — `error.code` includes: coinbase_spot_unavailable.
|
|
413
|
+
*/
|
|
414
|
+
type CreateCashAppQuote502 = Error$1;
|
|
415
|
+
type CreateCashAppQuoteMutationRequest = {
|
|
416
|
+
/**
|
|
417
|
+
* @pattern ^\d+(\.\d{1,2})?$
|
|
418
|
+
* @type string
|
|
419
|
+
*/
|
|
420
|
+
amount_usd: string;
|
|
421
|
+
chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
422
|
+
/**
|
|
423
|
+
* @type string
|
|
424
|
+
*/
|
|
425
|
+
token: "USDC";
|
|
426
|
+
};
|
|
427
|
+
type CreateCashAppQuoteMutationResponse = CreateCashAppQuote200;
|
|
428
|
+
type CreateCashAppQuoteMutation = {
|
|
429
|
+
Response: CreateCashAppQuote200;
|
|
430
|
+
Request: CreateCashAppQuoteMutationRequest;
|
|
431
|
+
PathParams: CreateCashAppQuotePathParams;
|
|
432
|
+
Errors: CreateCashAppQuote400 | CreateCashAppQuote401 | CreateCashAppQuote403 | CreateCashAppQuote429 | CreateCashAppQuote502;
|
|
433
|
+
};
|
|
434
|
+
type CreateDepositAddressPathParams = {
|
|
435
|
+
/**
|
|
436
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
437
|
+
* @type string
|
|
438
|
+
*/
|
|
439
|
+
address: string;
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* @description The deposit address to fund.
|
|
443
|
+
*/
|
|
444
|
+
type CreateDepositAddress200 = {
|
|
445
|
+
/**
|
|
446
|
+
* @type string
|
|
447
|
+
*/
|
|
448
|
+
deposit_address: string;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
452
|
+
*/
|
|
453
|
+
type CreateDepositAddress400 = Error$1;
|
|
454
|
+
/**
|
|
455
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
456
|
+
*/
|
|
457
|
+
type CreateDepositAddress401 = Error$1;
|
|
458
|
+
/**
|
|
459
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
460
|
+
*/
|
|
461
|
+
type CreateDepositAddress403 = Error$1;
|
|
462
|
+
/**
|
|
463
|
+
* @description Not Found — `error.code` includes: customer_not_registered, token_not_supported.
|
|
464
|
+
*/
|
|
465
|
+
type CreateDepositAddress404 = Error$1;
|
|
466
|
+
/**
|
|
467
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
468
|
+
*/
|
|
469
|
+
type CreateDepositAddress429 = Error$1;
|
|
470
|
+
declare const createDepositAddressMutationRequestSourceTokenEnum: {
|
|
471
|
+
readonly eth: "eth";
|
|
472
|
+
readonly hype: "hype";
|
|
473
|
+
readonly usdc: "usdc";
|
|
474
|
+
readonly usdt: "usdt";
|
|
475
|
+
};
|
|
476
|
+
type CreateDepositAddressMutationRequestSourceTokenEnumKey = (typeof createDepositAddressMutationRequestSourceTokenEnum)[keyof typeof createDepositAddressMutationRequestSourceTokenEnum];
|
|
477
|
+
type CreateDepositAddressMutationRequest = {
|
|
478
|
+
destination_chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
479
|
+
source_chain: (1 | 8453 | 42161);
|
|
480
|
+
/**
|
|
481
|
+
* @type string
|
|
482
|
+
*/
|
|
483
|
+
source_token: CreateDepositAddressMutationRequestSourceTokenEnumKey;
|
|
484
|
+
};
|
|
485
|
+
type CreateDepositAddressMutationResponse = CreateDepositAddress200;
|
|
486
|
+
type CreateDepositAddressMutation = {
|
|
487
|
+
Response: CreateDepositAddress200;
|
|
488
|
+
Request: CreateDepositAddressMutationRequest;
|
|
489
|
+
PathParams: CreateDepositAddressPathParams;
|
|
490
|
+
Errors: CreateDepositAddress400 | CreateDepositAddress401 | CreateDepositAddress403 | CreateDepositAddress404 | CreateDepositAddress429;
|
|
491
|
+
};
|
|
492
|
+
declare const createExchangeWithdrawQuotePathParamsExchangeEnum: {
|
|
493
|
+
readonly coinbase: "coinbase";
|
|
494
|
+
};
|
|
495
|
+
type CreateExchangeWithdrawQuotePathParamsExchangeEnumKey = (typeof createExchangeWithdrawQuotePathParamsExchangeEnum)[keyof typeof createExchangeWithdrawQuotePathParamsExchangeEnum];
|
|
496
|
+
type CreateExchangeWithdrawQuotePathParams = {
|
|
497
|
+
/**
|
|
498
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
499
|
+
* @type string
|
|
500
|
+
*/
|
|
501
|
+
address: string;
|
|
502
|
+
/**
|
|
503
|
+
* @type string
|
|
504
|
+
*/
|
|
505
|
+
exchange: CreateExchangeWithdrawQuotePathParamsExchangeEnumKey;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* @description The withdrawal quote.
|
|
509
|
+
*/
|
|
510
|
+
type CreateExchangeWithdrawQuote200 = {
|
|
511
|
+
/**
|
|
512
|
+
* @type string
|
|
513
|
+
*/
|
|
514
|
+
amount: string;
|
|
515
|
+
amount_no_fee: (number | null);
|
|
516
|
+
amount_with_fee: (number | null);
|
|
517
|
+
/**
|
|
518
|
+
* @type string
|
|
519
|
+
*/
|
|
520
|
+
asset: string;
|
|
521
|
+
estimated_fee: (number | null);
|
|
522
|
+
estimated_total: (number | null);
|
|
523
|
+
/**
|
|
524
|
+
* @type string, date-time
|
|
525
|
+
*/
|
|
526
|
+
expires_at: string;
|
|
527
|
+
/**
|
|
528
|
+
* @type string, uuid
|
|
529
|
+
*/
|
|
530
|
+
id: string;
|
|
531
|
+
/**
|
|
532
|
+
* @type string
|
|
533
|
+
*/
|
|
534
|
+
network: string;
|
|
535
|
+
};
|
|
536
|
+
/**
|
|
537
|
+
* @description Bad Request — `error.code` includes: deposit_address_unavailable, invalid_wallet, unsupported_asset, unsupported_network, validation_error.
|
|
538
|
+
*/
|
|
539
|
+
type CreateExchangeWithdrawQuote400 = Error$1;
|
|
540
|
+
/**
|
|
541
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
542
|
+
*/
|
|
543
|
+
type CreateExchangeWithdrawQuote401 = Error$1;
|
|
544
|
+
/**
|
|
545
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
546
|
+
*/
|
|
547
|
+
type CreateExchangeWithdrawQuote403 = Error$1;
|
|
548
|
+
/**
|
|
549
|
+
* @description Not Found — `error.code` includes: customer_not_registered, exchange_not_connected.
|
|
550
|
+
*/
|
|
551
|
+
type CreateExchangeWithdrawQuote404 = Error$1;
|
|
552
|
+
/**
|
|
553
|
+
* @description Conflict — `error.code` includes: exchange_reconnect_required.
|
|
554
|
+
*/
|
|
555
|
+
type CreateExchangeWithdrawQuote409 = Error$1;
|
|
556
|
+
/**
|
|
557
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
558
|
+
*/
|
|
559
|
+
type CreateExchangeWithdrawQuote429 = Error$1;
|
|
560
|
+
/**
|
|
561
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
562
|
+
*/
|
|
563
|
+
type CreateExchangeWithdrawQuote502 = Error$1;
|
|
564
|
+
type CreateExchangeWithdrawQuoteMutationRequest = {
|
|
565
|
+
/**
|
|
566
|
+
* @pattern ^\d+(\.\d+)?$
|
|
567
|
+
* @type string
|
|
568
|
+
*/
|
|
569
|
+
amount: string;
|
|
570
|
+
/**
|
|
571
|
+
* @minLength 1
|
|
572
|
+
* @type string
|
|
573
|
+
*/
|
|
574
|
+
asset: string;
|
|
575
|
+
destination_chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
576
|
+
origin_chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
577
|
+
};
|
|
578
|
+
type CreateExchangeWithdrawQuoteMutationResponse = CreateExchangeWithdrawQuote200;
|
|
579
|
+
type CreateExchangeWithdrawQuoteMutation = {
|
|
580
|
+
Response: CreateExchangeWithdrawQuote200;
|
|
581
|
+
Request: CreateExchangeWithdrawQuoteMutationRequest;
|
|
582
|
+
PathParams: CreateExchangeWithdrawQuotePathParams;
|
|
583
|
+
Errors: CreateExchangeWithdrawQuote400 | CreateExchangeWithdrawQuote401 | CreateExchangeWithdrawQuote403 | CreateExchangeWithdrawQuote404 | CreateExchangeWithdrawQuote409 | CreateExchangeWithdrawQuote429 | CreateExchangeWithdrawQuote502;
|
|
584
|
+
};
|
|
585
|
+
type CreateSessionDynamicPathParams = {
|
|
586
|
+
/**
|
|
587
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
588
|
+
* @type string
|
|
589
|
+
*/
|
|
590
|
+
address: string;
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* @description Session created; cookie pair set.
|
|
594
|
+
*/
|
|
595
|
+
type CreateSessionDynamic200 = {
|
|
596
|
+
/**
|
|
597
|
+
* @type string, date-time
|
|
598
|
+
*/
|
|
599
|
+
expires_at: string;
|
|
600
|
+
/**
|
|
601
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
602
|
+
* @type string
|
|
603
|
+
*/
|
|
604
|
+
wallet: string;
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
* @description Bad Request — `error.code` includes: invalid_publishable_key, invalid_wallet, publishable_key_missing.
|
|
608
|
+
*/
|
|
609
|
+
type CreateSessionDynamic400 = Error$1;
|
|
610
|
+
/**
|
|
611
|
+
* @description Unauthorized — `error.code` includes: invalid_publishable_key, invalid_token, token_expired, token_required.
|
|
612
|
+
*/
|
|
613
|
+
type CreateSessionDynamic401 = Error$1;
|
|
614
|
+
/**
|
|
615
|
+
* @description Forbidden — `error.code` includes: idp_tenant_mismatch, origin_not_allowed, wallet_not_linked.
|
|
616
|
+
*/
|
|
617
|
+
type CreateSessionDynamic403 = Error$1;
|
|
618
|
+
/**
|
|
619
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
620
|
+
*/
|
|
621
|
+
type CreateSessionDynamic429 = Error$1;
|
|
622
|
+
type CreateSessionDynamicMutationResponse = CreateSessionDynamic200;
|
|
623
|
+
type CreateSessionDynamicMutation = {
|
|
624
|
+
Response: CreateSessionDynamic200;
|
|
625
|
+
PathParams: CreateSessionDynamicPathParams;
|
|
626
|
+
Errors: CreateSessionDynamic400 | CreateSessionDynamic401 | CreateSessionDynamic403 | CreateSessionDynamic429;
|
|
627
|
+
};
|
|
628
|
+
type CreateSessionPrivyPathParams = {
|
|
629
|
+
/**
|
|
630
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
631
|
+
* @type string
|
|
632
|
+
*/
|
|
633
|
+
address: string;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* @description Session created; cookie pair set.
|
|
637
|
+
*/
|
|
638
|
+
type CreateSessionPrivy200 = {
|
|
639
|
+
/**
|
|
640
|
+
* @type string, date-time
|
|
641
|
+
*/
|
|
642
|
+
expires_at: string;
|
|
643
|
+
/**
|
|
644
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
645
|
+
* @type string
|
|
646
|
+
*/
|
|
647
|
+
wallet: string;
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* @description Bad Request — `error.code` includes: invalid_publishable_key, invalid_wallet, publishable_key_missing.
|
|
651
|
+
*/
|
|
652
|
+
type CreateSessionPrivy400 = Error$1;
|
|
653
|
+
/**
|
|
654
|
+
* @description Unauthorized — `error.code` includes: invalid_publishable_key, invalid_token, token_expired, token_required.
|
|
655
|
+
*/
|
|
656
|
+
type CreateSessionPrivy401 = Error$1;
|
|
657
|
+
/**
|
|
658
|
+
* @description Forbidden — `error.code` includes: idp_tenant_mismatch, origin_not_allowed, wallet_not_linked.
|
|
659
|
+
*/
|
|
660
|
+
type CreateSessionPrivy403 = Error$1;
|
|
661
|
+
/**
|
|
662
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
663
|
+
*/
|
|
664
|
+
type CreateSessionPrivy429 = Error$1;
|
|
665
|
+
type CreateSessionPrivyMutationResponse = CreateSessionPrivy200;
|
|
666
|
+
type CreateSessionPrivyMutation = {
|
|
667
|
+
Response: CreateSessionPrivy200;
|
|
668
|
+
PathParams: CreateSessionPrivyPathParams;
|
|
669
|
+
Errors: CreateSessionPrivy400 | CreateSessionPrivy401 | CreateSessionPrivy403 | CreateSessionPrivy429;
|
|
670
|
+
};
|
|
671
|
+
type CreateSessionSiwePathParams = {
|
|
672
|
+
/**
|
|
673
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
674
|
+
* @type string
|
|
675
|
+
*/
|
|
676
|
+
address: string;
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* @description Session created; cookie pair set.
|
|
680
|
+
*/
|
|
681
|
+
type CreateSessionSiwe200 = {
|
|
682
|
+
/**
|
|
683
|
+
* @type string, date-time
|
|
684
|
+
*/
|
|
685
|
+
expires_at: string;
|
|
686
|
+
/**
|
|
687
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
688
|
+
* @type string
|
|
689
|
+
*/
|
|
690
|
+
wallet: string;
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* @description Bad Request — `error.code` includes: invalid_body, invalid_publishable_key, invalid_wallet, publishable_key_missing.
|
|
694
|
+
*/
|
|
695
|
+
type CreateSessionSiwe400 = Error$1;
|
|
696
|
+
/**
|
|
697
|
+
* @description Unauthorized — `error.code` includes: binding_expired, binding_invalid, invalid_publishable_key, siwe_invalid.
|
|
698
|
+
*/
|
|
699
|
+
type CreateSessionSiwe401 = Error$1;
|
|
700
|
+
/**
|
|
701
|
+
* @description Forbidden — `error.code` includes: idp_tenant_mismatch, origin_not_allowed.
|
|
702
|
+
*/
|
|
703
|
+
type CreateSessionSiwe403 = Error$1;
|
|
704
|
+
/**
|
|
705
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
706
|
+
*/
|
|
707
|
+
type CreateSessionSiwe429 = Error$1;
|
|
708
|
+
type CreateSessionSiweMutationRequest = {
|
|
709
|
+
/**
|
|
710
|
+
* @minLength 1
|
|
711
|
+
* @maxLength 1024
|
|
712
|
+
* @type string
|
|
713
|
+
*/
|
|
714
|
+
binding: string;
|
|
715
|
+
/**
|
|
716
|
+
* @minLength 1
|
|
717
|
+
* @maxLength 2048
|
|
718
|
+
* @type string
|
|
719
|
+
*/
|
|
720
|
+
message: string;
|
|
721
|
+
/**
|
|
722
|
+
* @pattern ^0x([0-9a-fA-F]{128}|[0-9a-fA-F]{130})$
|
|
723
|
+
* @type string
|
|
724
|
+
*/
|
|
725
|
+
signature: string;
|
|
726
|
+
};
|
|
727
|
+
type CreateSessionSiweMutationResponse = CreateSessionSiwe200;
|
|
728
|
+
type CreateSessionSiweMutation = {
|
|
729
|
+
Response: CreateSessionSiwe200;
|
|
730
|
+
Request: CreateSessionSiweMutationRequest;
|
|
731
|
+
PathParams: CreateSessionSiwePathParams;
|
|
732
|
+
Errors: CreateSessionSiwe400 | CreateSessionSiwe401 | CreateSessionSiwe403 | CreateSessionSiwe429;
|
|
733
|
+
};
|
|
734
|
+
type CreateSiweNoncePathParams = {
|
|
735
|
+
/**
|
|
736
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
737
|
+
* @type string
|
|
738
|
+
*/
|
|
739
|
+
address: string;
|
|
740
|
+
};
|
|
741
|
+
/**
|
|
742
|
+
* @description Nonce and binding issued.
|
|
743
|
+
*/
|
|
744
|
+
type CreateSiweNonce200 = {
|
|
745
|
+
/**
|
|
746
|
+
* @type string
|
|
747
|
+
*/
|
|
748
|
+
binding: string;
|
|
749
|
+
/**
|
|
750
|
+
* @type string, date-time
|
|
751
|
+
*/
|
|
752
|
+
expires_at: string;
|
|
753
|
+
/**
|
|
754
|
+
* @type string
|
|
755
|
+
*/
|
|
756
|
+
nonce: string;
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
760
|
+
*/
|
|
761
|
+
type CreateSiweNonce400 = Error$1;
|
|
762
|
+
/**
|
|
763
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
764
|
+
*/
|
|
765
|
+
type CreateSiweNonce429 = Error$1;
|
|
766
|
+
type CreateSiweNonceMutationResponse = CreateSiweNonce200;
|
|
767
|
+
type CreateSiweNonceMutation = {
|
|
768
|
+
Response: CreateSiweNonce200;
|
|
769
|
+
PathParams: CreateSiweNoncePathParams;
|
|
770
|
+
Errors: CreateSiweNonce400 | CreateSiweNonce429;
|
|
771
|
+
};
|
|
772
|
+
type CreateStripeAuthIntentPathParams = {
|
|
773
|
+
/**
|
|
774
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
775
|
+
* @type string
|
|
776
|
+
*/
|
|
777
|
+
address: string;
|
|
778
|
+
};
|
|
779
|
+
/**
|
|
780
|
+
* @description The opened auth intent.
|
|
781
|
+
*/
|
|
782
|
+
type CreateStripeAuthIntent200 = {
|
|
783
|
+
/**
|
|
784
|
+
* @type string
|
|
785
|
+
*/
|
|
786
|
+
auth_intent_id: string;
|
|
787
|
+
/**
|
|
788
|
+
* @type number
|
|
789
|
+
*/
|
|
790
|
+
expires_at: number;
|
|
791
|
+
};
|
|
792
|
+
/**
|
|
793
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
794
|
+
*/
|
|
795
|
+
type CreateStripeAuthIntent400 = Error$1;
|
|
796
|
+
/**
|
|
797
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
798
|
+
*/
|
|
799
|
+
type CreateStripeAuthIntent401 = Error$1;
|
|
800
|
+
/**
|
|
801
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
802
|
+
*/
|
|
803
|
+
type CreateStripeAuthIntent403 = Error$1;
|
|
804
|
+
/**
|
|
805
|
+
* @description Not Found — `error.code` includes: link_not_found.
|
|
806
|
+
*/
|
|
807
|
+
type CreateStripeAuthIntent404 = Error$1;
|
|
808
|
+
/**
|
|
809
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
810
|
+
*/
|
|
811
|
+
type CreateStripeAuthIntent429 = Error$1;
|
|
812
|
+
/**
|
|
813
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
814
|
+
*/
|
|
815
|
+
type CreateStripeAuthIntent502 = Error$1;
|
|
816
|
+
type CreateStripeAuthIntentMutationRequest = {
|
|
817
|
+
/**
|
|
818
|
+
* @type string, email
|
|
819
|
+
*/
|
|
820
|
+
email: string;
|
|
821
|
+
};
|
|
822
|
+
type CreateStripeAuthIntentMutationResponse = CreateStripeAuthIntent200;
|
|
823
|
+
type CreateStripeAuthIntentMutation = {
|
|
824
|
+
Response: CreateStripeAuthIntent200;
|
|
825
|
+
Request: CreateStripeAuthIntentMutationRequest;
|
|
826
|
+
PathParams: CreateStripeAuthIntentPathParams;
|
|
827
|
+
Errors: CreateStripeAuthIntent400 | CreateStripeAuthIntent401 | CreateStripeAuthIntent403 | CreateStripeAuthIntent404 | CreateStripeAuthIntent429 | CreateStripeAuthIntent502;
|
|
828
|
+
};
|
|
829
|
+
type CreateStripeCustomerPathParams = {
|
|
830
|
+
/**
|
|
831
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
832
|
+
* @type string
|
|
833
|
+
*/
|
|
834
|
+
address: string;
|
|
835
|
+
/**
|
|
836
|
+
* @minLength 1
|
|
837
|
+
* @type string
|
|
838
|
+
*/
|
|
839
|
+
crypto_customer_id: string;
|
|
840
|
+
};
|
|
841
|
+
/**
|
|
842
|
+
* @description Customer id persisted.
|
|
843
|
+
*/
|
|
844
|
+
type CreateStripeCustomer204 = any;
|
|
845
|
+
/**
|
|
846
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
847
|
+
*/
|
|
848
|
+
type CreateStripeCustomer400 = Error$1;
|
|
849
|
+
/**
|
|
850
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required, stripe_auth_required.
|
|
851
|
+
*/
|
|
852
|
+
type CreateStripeCustomer401 = Error$1;
|
|
853
|
+
/**
|
|
854
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
855
|
+
*/
|
|
856
|
+
type CreateStripeCustomer403 = Error$1;
|
|
857
|
+
/**
|
|
858
|
+
* @description Not Found — `error.code` includes: resource_missing.
|
|
859
|
+
*/
|
|
860
|
+
type CreateStripeCustomer404 = Error$1;
|
|
861
|
+
/**
|
|
862
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
863
|
+
*/
|
|
864
|
+
type CreateStripeCustomer429 = Error$1;
|
|
865
|
+
/**
|
|
866
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
867
|
+
*/
|
|
868
|
+
type CreateStripeCustomer502 = Error$1;
|
|
869
|
+
type CreateStripeCustomerMutationResponse = CreateStripeCustomer204;
|
|
870
|
+
type CreateStripeCustomerMutation = {
|
|
871
|
+
Response: CreateStripeCustomer204;
|
|
872
|
+
PathParams: CreateStripeCustomerPathParams;
|
|
873
|
+
Errors: CreateStripeCustomer400 | CreateStripeCustomer401 | CreateStripeCustomer403 | CreateStripeCustomer404 | CreateStripeCustomer429 | CreateStripeCustomer502;
|
|
874
|
+
};
|
|
875
|
+
type CreateStripeSessionPathParams = {
|
|
876
|
+
/**
|
|
877
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
878
|
+
* @type string
|
|
879
|
+
*/
|
|
880
|
+
address: string;
|
|
881
|
+
};
|
|
882
|
+
/**
|
|
883
|
+
* @description The opened onramp session.
|
|
884
|
+
*/
|
|
885
|
+
type CreateStripeSession200 = {
|
|
886
|
+
destination_amount: (string | null);
|
|
887
|
+
/**
|
|
888
|
+
* @type string
|
|
889
|
+
*/
|
|
890
|
+
order_id: string;
|
|
891
|
+
quote_expires_at: (number | null);
|
|
892
|
+
/**
|
|
893
|
+
* @type string
|
|
894
|
+
*/
|
|
895
|
+
session_id: string;
|
|
896
|
+
source_amount: (string | null);
|
|
897
|
+
/**
|
|
898
|
+
* @type string
|
|
899
|
+
*/
|
|
900
|
+
status: string;
|
|
901
|
+
};
|
|
902
|
+
/**
|
|
903
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
904
|
+
*/
|
|
905
|
+
type CreateStripeSession400 = Error$1;
|
|
906
|
+
/**
|
|
907
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required, stripe_auth_required.
|
|
908
|
+
*/
|
|
909
|
+
type CreateStripeSession401 = Error$1;
|
|
910
|
+
/**
|
|
911
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
912
|
+
*/
|
|
913
|
+
type CreateStripeSession403 = Error$1;
|
|
914
|
+
/**
|
|
915
|
+
* @description Not Found — `error.code` includes: resource_missing.
|
|
916
|
+
*/
|
|
917
|
+
type CreateStripeSession404 = Error$1;
|
|
918
|
+
/**
|
|
919
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
920
|
+
*/
|
|
921
|
+
type CreateStripeSession429 = Error$1;
|
|
922
|
+
/**
|
|
923
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
924
|
+
*/
|
|
925
|
+
type CreateStripeSession502 = Error$1;
|
|
926
|
+
type CreateStripeSessionMutationRequest = {
|
|
927
|
+
/**
|
|
928
|
+
* @minLength 1
|
|
929
|
+
* @type string
|
|
930
|
+
*/
|
|
931
|
+
crypto_customer_id: string;
|
|
932
|
+
/**
|
|
933
|
+
* @pattern ^\d+(\.\d+)?$
|
|
934
|
+
* @type string | undefined
|
|
935
|
+
*/
|
|
936
|
+
destination_amount?: string;
|
|
937
|
+
/**
|
|
938
|
+
* @minLength 1
|
|
939
|
+
* @default "usdc"
|
|
940
|
+
* @type string | undefined
|
|
941
|
+
*/
|
|
942
|
+
destination_currency?: string;
|
|
943
|
+
/**
|
|
944
|
+
* @minLength 1
|
|
945
|
+
* @default "base"
|
|
946
|
+
* @type string | undefined
|
|
947
|
+
*/
|
|
948
|
+
destination_network?: string;
|
|
949
|
+
/**
|
|
950
|
+
* @minLength 1
|
|
951
|
+
* @type string
|
|
952
|
+
*/
|
|
953
|
+
payment_token: string;
|
|
954
|
+
/**
|
|
955
|
+
* @pattern ^\d+(\.\d+)?$
|
|
956
|
+
* @type string | undefined
|
|
957
|
+
*/
|
|
958
|
+
source_amount?: string;
|
|
959
|
+
/**
|
|
960
|
+
* @default "usd"
|
|
961
|
+
* @type string | undefined
|
|
962
|
+
*/
|
|
963
|
+
source_currency?: "usd";
|
|
964
|
+
/**
|
|
965
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
966
|
+
* @type string | undefined
|
|
967
|
+
*/
|
|
968
|
+
wallet_address?: string;
|
|
969
|
+
};
|
|
970
|
+
type CreateStripeSessionMutationResponse = CreateStripeSession200;
|
|
971
|
+
type CreateStripeSessionMutation = {
|
|
972
|
+
Response: CreateStripeSession200;
|
|
973
|
+
Request: CreateStripeSessionMutationRequest;
|
|
974
|
+
PathParams: CreateStripeSessionPathParams;
|
|
975
|
+
Errors: CreateStripeSession400 | CreateStripeSession401 | CreateStripeSession403 | CreateStripeSession404 | CreateStripeSession429 | CreateStripeSession502;
|
|
976
|
+
};
|
|
977
|
+
type CreateStripeTokensPathParams = {
|
|
978
|
+
/**
|
|
979
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
980
|
+
* @type string
|
|
981
|
+
*/
|
|
982
|
+
address: string;
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* @description Tokens stored.
|
|
986
|
+
*/
|
|
987
|
+
type CreateStripeTokens204 = any;
|
|
988
|
+
/**
|
|
989
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
990
|
+
*/
|
|
991
|
+
type CreateStripeTokens400 = Error$1;
|
|
992
|
+
/**
|
|
993
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
994
|
+
*/
|
|
995
|
+
type CreateStripeTokens401 = Error$1;
|
|
996
|
+
/**
|
|
997
|
+
* @description Forbidden — `error.code` includes: binding_invalid, link_forbidden, wallet_token_mismatch.
|
|
998
|
+
*/
|
|
999
|
+
type CreateStripeTokens403 = Error$1;
|
|
1000
|
+
/**
|
|
1001
|
+
* @description Not Found — `error.code` includes: link_not_found.
|
|
1002
|
+
*/
|
|
1003
|
+
type CreateStripeTokens404 = Error$1;
|
|
1004
|
+
/**
|
|
1005
|
+
* @description Conflict — `error.code` includes: link_revoked.
|
|
1006
|
+
*/
|
|
1007
|
+
type CreateStripeTokens409 = Error$1;
|
|
1008
|
+
/**
|
|
1009
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1010
|
+
*/
|
|
1011
|
+
type CreateStripeTokens429 = Error$1;
|
|
1012
|
+
/**
|
|
1013
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
1014
|
+
*/
|
|
1015
|
+
type CreateStripeTokens502 = Error$1;
|
|
1016
|
+
type CreateStripeTokensMutationRequest = {
|
|
1017
|
+
/**
|
|
1018
|
+
* @minLength 1
|
|
1019
|
+
* @type string
|
|
1020
|
+
*/
|
|
1021
|
+
auth_intent_id: string;
|
|
1022
|
+
};
|
|
1023
|
+
type CreateStripeTokensMutationResponse = CreateStripeTokens204;
|
|
1024
|
+
type CreateStripeTokensMutation = {
|
|
1025
|
+
Response: CreateStripeTokens204;
|
|
1026
|
+
Request: CreateStripeTokensMutationRequest;
|
|
1027
|
+
PathParams: CreateStripeTokensPathParams;
|
|
1028
|
+
Errors: CreateStripeTokens400 | CreateStripeTokens401 | CreateStripeTokens403 | CreateStripeTokens404 | CreateStripeTokens409 | CreateStripeTokens429 | CreateStripeTokens502;
|
|
1029
|
+
};
|
|
1030
|
+
type CreateSwapQuotePathParams = {
|
|
1031
|
+
/**
|
|
1032
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1033
|
+
* @type string
|
|
1034
|
+
*/
|
|
1035
|
+
address: string;
|
|
1036
|
+
};
|
|
1037
|
+
/**
|
|
1038
|
+
* @description The executable swap quote.
|
|
1039
|
+
*/
|
|
1040
|
+
type CreateSwapQuote200 = {
|
|
1041
|
+
[key: string]: any;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, unsupported_token, validation_error.
|
|
1045
|
+
*/
|
|
1046
|
+
type CreateSwapQuote400 = Error$1;
|
|
1047
|
+
/**
|
|
1048
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1049
|
+
*/
|
|
1050
|
+
type CreateSwapQuote401 = Error$1;
|
|
1051
|
+
/**
|
|
1052
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1053
|
+
*/
|
|
1054
|
+
type CreateSwapQuote403 = Error$1;
|
|
1055
|
+
/**
|
|
1056
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1057
|
+
*/
|
|
1058
|
+
type CreateSwapQuote429 = Error$1;
|
|
1059
|
+
/**
|
|
1060
|
+
* @description Bad Gateway — `error.code` includes: bad_gateway.
|
|
1061
|
+
*/
|
|
1062
|
+
type CreateSwapQuote502 = Error$1;
|
|
1063
|
+
declare const createSwapQuoteMutationRequestSourceTokenEnum: {
|
|
1064
|
+
readonly eth: "eth";
|
|
1065
|
+
readonly hype: "hype";
|
|
1066
|
+
readonly usdc: "usdc";
|
|
1067
|
+
readonly usdt: "usdt";
|
|
1068
|
+
};
|
|
1069
|
+
type CreateSwapQuoteMutationRequestSourceTokenEnumKey = (typeof createSwapQuoteMutationRequestSourceTokenEnum)[keyof typeof createSwapQuoteMutationRequestSourceTokenEnum];
|
|
1070
|
+
declare const createSwapQuoteMutationRequestTradeTypeEnum: {
|
|
1071
|
+
readonly EXACT_INPUT: "EXACT_INPUT";
|
|
1072
|
+
readonly EXACT_OUTPUT: "EXACT_OUTPUT";
|
|
1073
|
+
readonly EXPECTED_OUTPUT: "EXPECTED_OUTPUT";
|
|
1074
|
+
};
|
|
1075
|
+
type CreateSwapQuoteMutationRequestTradeTypeEnumKey = (typeof createSwapQuoteMutationRequestTradeTypeEnum)[keyof typeof createSwapQuoteMutationRequestTradeTypeEnum];
|
|
1076
|
+
type CreateSwapQuoteMutationRequest = {
|
|
1077
|
+
/**
|
|
1078
|
+
* @pattern ^\d+$
|
|
1079
|
+
* @type string
|
|
1080
|
+
*/
|
|
1081
|
+
amount: string;
|
|
1082
|
+
destination_chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
1083
|
+
source_chain: (1 | 8453 | 42161);
|
|
1084
|
+
/**
|
|
1085
|
+
* @type string
|
|
1086
|
+
*/
|
|
1087
|
+
source_token: CreateSwapQuoteMutationRequestSourceTokenEnumKey;
|
|
1088
|
+
/**
|
|
1089
|
+
* @type string | undefined
|
|
1090
|
+
*/
|
|
1091
|
+
trade_type?: CreateSwapQuoteMutationRequestTradeTypeEnumKey;
|
|
1092
|
+
};
|
|
1093
|
+
type CreateSwapQuoteMutationResponse = CreateSwapQuote200;
|
|
1094
|
+
type CreateSwapQuoteMutation = {
|
|
1095
|
+
Response: CreateSwapQuote200;
|
|
1096
|
+
Request: CreateSwapQuoteMutationRequest;
|
|
1097
|
+
PathParams: CreateSwapQuotePathParams;
|
|
1098
|
+
Errors: CreateSwapQuote400 | CreateSwapQuote401 | CreateSwapQuote403 | CreateSwapQuote429 | CreateSwapQuote502;
|
|
1099
|
+
};
|
|
1100
|
+
type CreateVirtualAccountPathParams = {
|
|
1101
|
+
/**
|
|
1102
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1103
|
+
* @type string
|
|
1104
|
+
*/
|
|
1105
|
+
address: string;
|
|
1106
|
+
};
|
|
1107
|
+
/**
|
|
1108
|
+
* @description Virtual account provisioned.
|
|
1109
|
+
*/
|
|
1110
|
+
type CreateVirtualAccount204 = any;
|
|
1111
|
+
/**
|
|
1112
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, unsupported_chain, validation_error.
|
|
1113
|
+
*/
|
|
1114
|
+
type CreateVirtualAccount400 = Error$1;
|
|
1115
|
+
/**
|
|
1116
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1117
|
+
*/
|
|
1118
|
+
type CreateVirtualAccount401 = Error$1;
|
|
1119
|
+
/**
|
|
1120
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1121
|
+
*/
|
|
1122
|
+
type CreateVirtualAccount403 = Error$1;
|
|
1123
|
+
/**
|
|
1124
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
1125
|
+
*/
|
|
1126
|
+
type CreateVirtualAccount404 = Error$1;
|
|
1127
|
+
/**
|
|
1128
|
+
* @description Conflict — `error.code` includes: kyc_required.
|
|
1129
|
+
*/
|
|
1130
|
+
type CreateVirtualAccount409 = Error$1;
|
|
1131
|
+
/**
|
|
1132
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1133
|
+
*/
|
|
1134
|
+
type CreateVirtualAccount429 = Error$1;
|
|
1135
|
+
/**
|
|
1136
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
1137
|
+
*/
|
|
1138
|
+
type CreateVirtualAccount502 = Error$1;
|
|
1139
|
+
declare const createVirtualAccountMutationRequestCurrencyEnum: {
|
|
1140
|
+
readonly usd: "usd";
|
|
1141
|
+
readonly gbp: "gbp";
|
|
1142
|
+
readonly eur: "eur";
|
|
1143
|
+
};
|
|
1144
|
+
type CreateVirtualAccountMutationRequestCurrencyEnumKey = (typeof createVirtualAccountMutationRequestCurrencyEnum)[keyof typeof createVirtualAccountMutationRequestCurrencyEnum];
|
|
1145
|
+
type CreateVirtualAccountMutationRequest = {
|
|
1146
|
+
chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
1147
|
+
/**
|
|
1148
|
+
* @type string
|
|
1149
|
+
*/
|
|
1150
|
+
currency: CreateVirtualAccountMutationRequestCurrencyEnumKey;
|
|
1151
|
+
};
|
|
1152
|
+
type CreateVirtualAccountMutationResponse = CreateVirtualAccount204;
|
|
1153
|
+
type CreateVirtualAccountMutation = {
|
|
1154
|
+
Response: CreateVirtualAccount204;
|
|
1155
|
+
Request: CreateVirtualAccountMutationRequest;
|
|
1156
|
+
PathParams: CreateVirtualAccountPathParams;
|
|
1157
|
+
Errors: CreateVirtualAccount400 | CreateVirtualAccount401 | CreateVirtualAccount403 | CreateVirtualAccount404 | CreateVirtualAccount409 | CreateVirtualAccount429 | CreateVirtualAccount502;
|
|
1158
|
+
};
|
|
1159
|
+
declare const disconnectExchangePathParamsExchangeEnum: {
|
|
1160
|
+
readonly coinbase: "coinbase";
|
|
1161
|
+
};
|
|
1162
|
+
type DisconnectExchangePathParamsExchangeEnumKey = (typeof disconnectExchangePathParamsExchangeEnum)[keyof typeof disconnectExchangePathParamsExchangeEnum];
|
|
1163
|
+
type DisconnectExchangePathParams = {
|
|
1164
|
+
/**
|
|
1165
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1166
|
+
* @type string
|
|
1167
|
+
*/
|
|
1168
|
+
address: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* @type string
|
|
1171
|
+
*/
|
|
1172
|
+
exchange: DisconnectExchangePathParamsExchangeEnumKey;
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* @description Exchange disconnected.
|
|
1176
|
+
*/
|
|
1177
|
+
type DisconnectExchange204 = any;
|
|
1178
|
+
/**
|
|
1179
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
1180
|
+
*/
|
|
1181
|
+
type DisconnectExchange400 = Error$1;
|
|
1182
|
+
/**
|
|
1183
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1184
|
+
*/
|
|
1185
|
+
type DisconnectExchange401 = Error$1;
|
|
1186
|
+
/**
|
|
1187
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1188
|
+
*/
|
|
1189
|
+
type DisconnectExchange403 = Error$1;
|
|
1190
|
+
/**
|
|
1191
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
1192
|
+
*/
|
|
1193
|
+
type DisconnectExchange404 = Error$1;
|
|
1194
|
+
/**
|
|
1195
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1196
|
+
*/
|
|
1197
|
+
type DisconnectExchange429 = Error$1;
|
|
1198
|
+
/**
|
|
1199
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
1200
|
+
*/
|
|
1201
|
+
type DisconnectExchange502 = Error$1;
|
|
1202
|
+
type DisconnectExchangeMutationResponse = DisconnectExchange204;
|
|
1203
|
+
type DisconnectExchangeMutation = {
|
|
1204
|
+
Response: DisconnectExchange204;
|
|
1205
|
+
PathParams: DisconnectExchangePathParams;
|
|
1206
|
+
Errors: DisconnectExchange400 | DisconnectExchange401 | DisconnectExchange403 | DisconnectExchange404 | DisconnectExchange429 | DisconnectExchange502;
|
|
1207
|
+
};
|
|
1208
|
+
declare const executeExchangeWithdrawalPathParamsExchangeEnum: {
|
|
1209
|
+
readonly coinbase: "coinbase";
|
|
1210
|
+
};
|
|
1211
|
+
type ExecuteExchangeWithdrawalPathParamsExchangeEnumKey = (typeof executeExchangeWithdrawalPathParamsExchangeEnum)[keyof typeof executeExchangeWithdrawalPathParamsExchangeEnum];
|
|
1212
|
+
type ExecuteExchangeWithdrawalPathParams = {
|
|
1213
|
+
/**
|
|
1214
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1215
|
+
* @type string
|
|
1216
|
+
*/
|
|
1217
|
+
address: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* @type string
|
|
1220
|
+
*/
|
|
1221
|
+
exchange: ExecuteExchangeWithdrawalPathParamsExchangeEnumKey;
|
|
1222
|
+
};
|
|
1223
|
+
declare const executeExchangeWithdrawal200StatusEnum: {
|
|
1224
|
+
readonly quoted: "quoted";
|
|
1225
|
+
readonly pending: "pending";
|
|
1226
|
+
readonly broadcasted: "broadcasted";
|
|
1227
|
+
readonly failed: "failed";
|
|
1228
|
+
readonly delayed: "delayed";
|
|
1229
|
+
};
|
|
1230
|
+
type ExecuteExchangeWithdrawal200StatusEnumKey = (typeof executeExchangeWithdrawal200StatusEnum)[keyof typeof executeExchangeWithdrawal200StatusEnum];
|
|
1231
|
+
/**
|
|
1232
|
+
* @description The withdrawal, or a 2FA challenge.
|
|
1233
|
+
*/
|
|
1234
|
+
type ExecuteExchangeWithdrawal200 = ({
|
|
1235
|
+
/**
|
|
1236
|
+
* @type string
|
|
1237
|
+
*/
|
|
1238
|
+
amount: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* @type string
|
|
1241
|
+
*/
|
|
1242
|
+
asset: string;
|
|
1243
|
+
completed_at: (string | null);
|
|
1244
|
+
/**
|
|
1245
|
+
* @type string, date-time
|
|
1246
|
+
*/
|
|
1247
|
+
created_at: string;
|
|
1248
|
+
error_code: (string | null);
|
|
1249
|
+
error_message: (string | null);
|
|
1250
|
+
/**
|
|
1251
|
+
* @type string, uuid
|
|
1252
|
+
*/
|
|
1253
|
+
id: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* @type string
|
|
1256
|
+
*/
|
|
1257
|
+
network: string;
|
|
1258
|
+
/**
|
|
1259
|
+
* @type string
|
|
1260
|
+
*/
|
|
1261
|
+
status: ExecuteExchangeWithdrawal200StatusEnumKey;
|
|
1262
|
+
transaction_hash: (string | null);
|
|
1263
|
+
} | {
|
|
1264
|
+
/**
|
|
1265
|
+
* @type boolean
|
|
1266
|
+
*/
|
|
1267
|
+
requires_2fa: true;
|
|
1268
|
+
});
|
|
1269
|
+
/**
|
|
1270
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
1271
|
+
*/
|
|
1272
|
+
type ExecuteExchangeWithdrawal400 = Error$1;
|
|
1273
|
+
/**
|
|
1274
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1275
|
+
*/
|
|
1276
|
+
type ExecuteExchangeWithdrawal401 = Error$1;
|
|
1277
|
+
/**
|
|
1278
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1279
|
+
*/
|
|
1280
|
+
type ExecuteExchangeWithdrawal403 = Error$1;
|
|
1281
|
+
/**
|
|
1282
|
+
* @description Not Found — `error.code` includes: customer_not_registered, exchange_not_connected, withdrawal_not_found.
|
|
1283
|
+
*/
|
|
1284
|
+
type ExecuteExchangeWithdrawal404 = Error$1;
|
|
1285
|
+
/**
|
|
1286
|
+
* @description Conflict — `error.code` includes: exchange_reconnect_required, withdrawal_already_executed.
|
|
1287
|
+
*/
|
|
1288
|
+
type ExecuteExchangeWithdrawal409 = Error$1;
|
|
1289
|
+
/**
|
|
1290
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1291
|
+
*/
|
|
1292
|
+
type ExecuteExchangeWithdrawal429 = Error$1;
|
|
1293
|
+
/**
|
|
1294
|
+
* @description Bad Gateway — `error.code` includes: withdrawal_failed.
|
|
1295
|
+
*/
|
|
1296
|
+
type ExecuteExchangeWithdrawal502 = Error$1;
|
|
1297
|
+
type ExecuteExchangeWithdrawalMutationRequest = {
|
|
1298
|
+
/**
|
|
1299
|
+
* @type string, uuid
|
|
1300
|
+
*/
|
|
1301
|
+
quote_id: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* @type string | undefined
|
|
1304
|
+
*/
|
|
1305
|
+
twofa?: string;
|
|
1306
|
+
};
|
|
1307
|
+
type ExecuteExchangeWithdrawalMutationResponse = ExecuteExchangeWithdrawal200;
|
|
1308
|
+
type ExecuteExchangeWithdrawalMutation = {
|
|
1309
|
+
Response: ExecuteExchangeWithdrawal200;
|
|
1310
|
+
Request: ExecuteExchangeWithdrawalMutationRequest;
|
|
1311
|
+
PathParams: ExecuteExchangeWithdrawalPathParams;
|
|
1312
|
+
Errors: ExecuteExchangeWithdrawal400 | ExecuteExchangeWithdrawal401 | ExecuteExchangeWithdrawal403 | ExecuteExchangeWithdrawal404 | ExecuteExchangeWithdrawal409 | ExecuteExchangeWithdrawal429 | ExecuteExchangeWithdrawal502;
|
|
1313
|
+
};
|
|
1314
|
+
declare const getBalancePathParamsTokenEnum: {
|
|
1315
|
+
readonly eth: "eth";
|
|
1316
|
+
readonly hype: "hype";
|
|
1317
|
+
readonly usdc: "usdc";
|
|
1318
|
+
readonly usdt: "usdt";
|
|
1319
|
+
};
|
|
1320
|
+
type GetBalancePathParamsTokenEnumKey = (typeof getBalancePathParamsTokenEnum)[keyof typeof getBalancePathParamsTokenEnum];
|
|
1321
|
+
type GetBalancePathParams = {
|
|
1322
|
+
/**
|
|
1323
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1324
|
+
* @type string
|
|
1325
|
+
*/
|
|
1326
|
+
address: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* @pattern ^\d+$
|
|
1329
|
+
* @type string
|
|
1330
|
+
*/
|
|
1331
|
+
chain: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* @type string
|
|
1334
|
+
*/
|
|
1335
|
+
token: GetBalancePathParamsTokenEnumKey;
|
|
1336
|
+
};
|
|
1337
|
+
/**
|
|
1338
|
+
* @description The token balance.
|
|
1339
|
+
*/
|
|
1340
|
+
type GetBalance200 = {
|
|
1341
|
+
/**
|
|
1342
|
+
* @type string
|
|
1343
|
+
*/
|
|
1344
|
+
balance: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* @description Chain id. Currently 1, 8453, 42161, 999, 1337 — additive; tolerate unknown values.
|
|
1347
|
+
* @minLength -9007199254740991
|
|
1348
|
+
* @maxLength 9007199254740991
|
|
1349
|
+
* @type integer
|
|
1350
|
+
*/
|
|
1351
|
+
chain: number;
|
|
1352
|
+
token: (string | null);
|
|
1353
|
+
/**
|
|
1354
|
+
* @type number
|
|
1355
|
+
*/
|
|
1356
|
+
usd_value: number;
|
|
1357
|
+
};
|
|
1358
|
+
/**
|
|
1359
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
1360
|
+
*/
|
|
1361
|
+
type GetBalance400 = Error$1;
|
|
1362
|
+
/**
|
|
1363
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1364
|
+
*/
|
|
1365
|
+
type GetBalance401 = Error$1;
|
|
1366
|
+
/**
|
|
1367
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1368
|
+
*/
|
|
1369
|
+
type GetBalance403 = Error$1;
|
|
1370
|
+
/**
|
|
1371
|
+
* @description Not Found — `error.code` includes: balances_unavailable, token_not_supported.
|
|
1372
|
+
*/
|
|
1373
|
+
type GetBalance404 = Error$1;
|
|
1374
|
+
/**
|
|
1375
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1376
|
+
*/
|
|
1377
|
+
type GetBalance429 = Error$1;
|
|
1378
|
+
type GetBalanceQueryResponse = GetBalance200;
|
|
1379
|
+
type GetBalanceQuery = {
|
|
1380
|
+
Response: GetBalance200;
|
|
1381
|
+
PathParams: GetBalancePathParams;
|
|
1382
|
+
Errors: GetBalance400 | GetBalance401 | GetBalance403 | GetBalance404 | GetBalance429;
|
|
1383
|
+
};
|
|
1384
|
+
type GetBalancesPathParams = {
|
|
1385
|
+
/**
|
|
1386
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1387
|
+
* @type string
|
|
1388
|
+
*/
|
|
1389
|
+
address: string;
|
|
1390
|
+
};
|
|
1391
|
+
type GetBalancesQueryParams = {
|
|
1392
|
+
/**
|
|
1393
|
+
* @description Comma-separated chain ids to read (e.g. `1,8453`). Defaults to every readable chain.
|
|
1394
|
+
* @pattern ^\d+(,\d+)*$
|
|
1395
|
+
* @type string | undefined
|
|
1396
|
+
*/
|
|
1397
|
+
chains?: string;
|
|
1398
|
+
};
|
|
1399
|
+
/**
|
|
1400
|
+
* @description Balances by chain and token.
|
|
1401
|
+
*/
|
|
1402
|
+
type GetBalances200 = {
|
|
1403
|
+
/**
|
|
1404
|
+
* @minLength -9007199254740991
|
|
1405
|
+
* @maxLength 9007199254740991
|
|
1406
|
+
* @type integer
|
|
1407
|
+
*/
|
|
1408
|
+
count: number;
|
|
1409
|
+
/**
|
|
1410
|
+
* @type array
|
|
1411
|
+
*/
|
|
1412
|
+
data: {
|
|
1413
|
+
/**
|
|
1414
|
+
* @type string
|
|
1415
|
+
*/
|
|
1416
|
+
balance: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* @description Chain id. Currently 1, 8453, 42161, 999, 1337 — additive; tolerate unknown values.
|
|
1419
|
+
* @minLength -9007199254740991
|
|
1420
|
+
* @maxLength 9007199254740991
|
|
1421
|
+
* @type integer
|
|
1422
|
+
*/
|
|
1423
|
+
chain: number;
|
|
1424
|
+
token: (string | null);
|
|
1425
|
+
/**
|
|
1426
|
+
* @type number
|
|
1427
|
+
*/
|
|
1428
|
+
usd_value: number;
|
|
1429
|
+
}[];
|
|
1430
|
+
};
|
|
1431
|
+
/**
|
|
1432
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
1433
|
+
*/
|
|
1434
|
+
type GetBalances400 = Error$1;
|
|
1435
|
+
/**
|
|
1436
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1437
|
+
*/
|
|
1438
|
+
type GetBalances401 = Error$1;
|
|
1439
|
+
/**
|
|
1440
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1441
|
+
*/
|
|
1442
|
+
type GetBalances403 = Error$1;
|
|
1443
|
+
/**
|
|
1444
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1445
|
+
*/
|
|
1446
|
+
type GetBalances429 = Error$1;
|
|
1447
|
+
type GetBalancesQueryResponse = GetBalances200;
|
|
1448
|
+
type GetBalancesQuery = {
|
|
1449
|
+
Response: GetBalances200;
|
|
1450
|
+
PathParams: GetBalancesPathParams;
|
|
1451
|
+
QueryParams: GetBalancesQueryParams;
|
|
1452
|
+
Errors: GetBalances400 | GetBalances401 | GetBalances403 | GetBalances429;
|
|
1453
|
+
};
|
|
1454
|
+
type GetCashAppOrderPathParams = {
|
|
1455
|
+
/**
|
|
1456
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1457
|
+
* @type string
|
|
1458
|
+
*/
|
|
1459
|
+
address: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* @type string, uuid
|
|
1462
|
+
*/
|
|
1463
|
+
id: string;
|
|
1464
|
+
};
|
|
1465
|
+
declare const getCashAppOrder200StatusEnum: {
|
|
1466
|
+
readonly pending: "pending";
|
|
1467
|
+
readonly processing: "processing";
|
|
1468
|
+
readonly confirming: "confirming";
|
|
1469
|
+
readonly swapping: "swapping";
|
|
1470
|
+
readonly bridging: "bridging";
|
|
1471
|
+
readonly awaiting_approval: "awaiting_approval";
|
|
1472
|
+
readonly delivering: "delivering";
|
|
1473
|
+
readonly completed: "completed";
|
|
1474
|
+
readonly failed: "failed";
|
|
1475
|
+
readonly refunding: "refunding";
|
|
1476
|
+
readonly refunded: "refunded";
|
|
1477
|
+
readonly unfulfilled: "unfulfilled";
|
|
1478
|
+
readonly expired: "expired";
|
|
1479
|
+
};
|
|
1480
|
+
type GetCashAppOrder200StatusEnumKey = (typeof getCashAppOrder200StatusEnum)[keyof typeof getCashAppOrder200StatusEnum];
|
|
1481
|
+
/**
|
|
1482
|
+
* @description The Cash App order.
|
|
1483
|
+
*/
|
|
1484
|
+
type GetCashAppOrder200 = {
|
|
1485
|
+
/**
|
|
1486
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1487
|
+
* @type string
|
|
1488
|
+
*/
|
|
1489
|
+
address: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* @type string
|
|
1492
|
+
*/
|
|
1493
|
+
amount_usd: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* @description Chain id. Currently 1, 8453, 42161, 999, 1337 — additive; tolerate unknown values.
|
|
1496
|
+
* @minLength -9007199254740991
|
|
1497
|
+
* @maxLength 9007199254740991
|
|
1498
|
+
* @type integer
|
|
1499
|
+
*/
|
|
1500
|
+
chain: number;
|
|
1501
|
+
/**
|
|
1502
|
+
* @type string, date-time
|
|
1503
|
+
*/
|
|
1504
|
+
created_at: string;
|
|
1505
|
+
/**
|
|
1506
|
+
* @type object
|
|
1507
|
+
*/
|
|
1508
|
+
fee: {
|
|
1509
|
+
/**
|
|
1510
|
+
* @type string
|
|
1511
|
+
*/
|
|
1512
|
+
amount: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* @minLength -9007199254740991
|
|
1515
|
+
* @maxLength 9007199254740991
|
|
1516
|
+
* @type integer
|
|
1517
|
+
*/
|
|
1518
|
+
decimals: number;
|
|
1519
|
+
};
|
|
1520
|
+
/**
|
|
1521
|
+
* @type string, uuid
|
|
1522
|
+
*/
|
|
1523
|
+
id: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* @type string
|
|
1526
|
+
*/
|
|
1527
|
+
link: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* @type object
|
|
1530
|
+
*/
|
|
1531
|
+
out: {
|
|
1532
|
+
/**
|
|
1533
|
+
* @type string
|
|
1534
|
+
*/
|
|
1535
|
+
amount: string;
|
|
1536
|
+
/**
|
|
1537
|
+
* @minLength -9007199254740991
|
|
1538
|
+
* @maxLength 9007199254740991
|
|
1539
|
+
* @type integer
|
|
1540
|
+
*/
|
|
1541
|
+
decimals: number;
|
|
1542
|
+
};
|
|
1543
|
+
/**
|
|
1544
|
+
* @type string
|
|
1545
|
+
*/
|
|
1546
|
+
status: GetCashAppOrder200StatusEnumKey;
|
|
1547
|
+
/**
|
|
1548
|
+
* @type string
|
|
1549
|
+
*/
|
|
1550
|
+
token: string;
|
|
1551
|
+
};
|
|
1552
|
+
/**
|
|
1553
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
1554
|
+
*/
|
|
1555
|
+
type GetCashAppOrder400 = Error$1;
|
|
1556
|
+
/**
|
|
1557
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1558
|
+
*/
|
|
1559
|
+
type GetCashAppOrder401 = Error$1;
|
|
1560
|
+
/**
|
|
1561
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1562
|
+
*/
|
|
1563
|
+
type GetCashAppOrder403 = Error$1;
|
|
1564
|
+
/**
|
|
1565
|
+
* @description Not Found — `error.code` includes: cashapp_order_not_found, customer_not_registered.
|
|
1566
|
+
*/
|
|
1567
|
+
type GetCashAppOrder404 = Error$1;
|
|
1568
|
+
/**
|
|
1569
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1570
|
+
*/
|
|
1571
|
+
type GetCashAppOrder429 = Error$1;
|
|
1572
|
+
type GetCashAppOrderQueryResponse = GetCashAppOrder200;
|
|
1573
|
+
type GetCashAppOrderQuery = {
|
|
1574
|
+
Response: GetCashAppOrder200;
|
|
1575
|
+
PathParams: GetCashAppOrderPathParams;
|
|
1576
|
+
Errors: GetCashAppOrder400 | GetCashAppOrder401 | GetCashAppOrder403 | GetCashAppOrder404 | GetCashAppOrder429;
|
|
1577
|
+
};
|
|
1578
|
+
declare const getExchangePathParamsExchangeEnum: {
|
|
1579
|
+
readonly coinbase: "coinbase";
|
|
1580
|
+
};
|
|
1581
|
+
type GetExchangePathParamsExchangeEnumKey = (typeof getExchangePathParamsExchangeEnum)[keyof typeof getExchangePathParamsExchangeEnum];
|
|
1582
|
+
type GetExchangePathParams = {
|
|
1583
|
+
/**
|
|
1584
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1585
|
+
* @type string
|
|
1586
|
+
*/
|
|
1587
|
+
address: string;
|
|
1588
|
+
/**
|
|
1589
|
+
* @type string
|
|
1590
|
+
*/
|
|
1591
|
+
exchange: GetExchangePathParamsExchangeEnumKey;
|
|
1592
|
+
};
|
|
1593
|
+
/**
|
|
1594
|
+
* @description The connection status.
|
|
1595
|
+
*/
|
|
1596
|
+
type GetExchange200 = {
|
|
1597
|
+
/**
|
|
1598
|
+
* @type boolean
|
|
1599
|
+
*/
|
|
1600
|
+
connected: boolean;
|
|
1601
|
+
connected_at: (string | null);
|
|
1602
|
+
/**
|
|
1603
|
+
* @type string
|
|
1604
|
+
*/
|
|
1605
|
+
exchange: string;
|
|
1606
|
+
id: (string | null);
|
|
1607
|
+
};
|
|
1608
|
+
/**
|
|
1609
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
1610
|
+
*/
|
|
1611
|
+
type GetExchange400 = Error$1;
|
|
1612
|
+
/**
|
|
1613
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1614
|
+
*/
|
|
1615
|
+
type GetExchange401 = Error$1;
|
|
1616
|
+
/**
|
|
1617
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1618
|
+
*/
|
|
1619
|
+
type GetExchange403 = Error$1;
|
|
1620
|
+
/**
|
|
1621
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
1622
|
+
*/
|
|
1623
|
+
type GetExchange404 = Error$1;
|
|
1624
|
+
/**
|
|
1625
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1626
|
+
*/
|
|
1627
|
+
type GetExchange429 = Error$1;
|
|
1628
|
+
/**
|
|
1629
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
1630
|
+
*/
|
|
1631
|
+
type GetExchange502 = Error$1;
|
|
1632
|
+
type GetExchangeQueryResponse = GetExchange200;
|
|
1633
|
+
type GetExchangeQuery = {
|
|
1634
|
+
Response: GetExchange200;
|
|
1635
|
+
PathParams: GetExchangePathParams;
|
|
1636
|
+
Errors: GetExchange400 | GetExchange401 | GetExchange403 | GetExchange404 | GetExchange429 | GetExchange502;
|
|
1637
|
+
};
|
|
1638
|
+
declare const getExchangeAssetsPathParamsExchangeEnum: {
|
|
1639
|
+
readonly coinbase: "coinbase";
|
|
1640
|
+
};
|
|
1641
|
+
type GetExchangeAssetsPathParamsExchangeEnumKey = (typeof getExchangeAssetsPathParamsExchangeEnum)[keyof typeof getExchangeAssetsPathParamsExchangeEnum];
|
|
1642
|
+
type GetExchangeAssetsPathParams = {
|
|
1643
|
+
/**
|
|
1644
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1645
|
+
* @type string
|
|
1646
|
+
*/
|
|
1647
|
+
address: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* @type string
|
|
1650
|
+
*/
|
|
1651
|
+
exchange: GetExchangeAssetsPathParamsExchangeEnumKey;
|
|
1652
|
+
};
|
|
1653
|
+
/**
|
|
1654
|
+
* @description Withdrawable assets and networks.
|
|
1655
|
+
*/
|
|
1656
|
+
type GetExchangeAssets200 = {
|
|
1657
|
+
/**
|
|
1658
|
+
* @type array
|
|
1659
|
+
*/
|
|
1660
|
+
balances: {
|
|
1661
|
+
/**
|
|
1662
|
+
* @type number
|
|
1663
|
+
*/
|
|
1664
|
+
amount: number;
|
|
1665
|
+
amount_in_fiat: (number | null);
|
|
1666
|
+
/**
|
|
1667
|
+
* @type string
|
|
1668
|
+
*/
|
|
1669
|
+
asset: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* @type array
|
|
1672
|
+
*/
|
|
1673
|
+
networks: {
|
|
1674
|
+
chain_id: (number | null);
|
|
1675
|
+
/**
|
|
1676
|
+
* @type string
|
|
1677
|
+
*/
|
|
1678
|
+
display_name: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* @type string
|
|
1681
|
+
*/
|
|
1682
|
+
id: string;
|
|
1683
|
+
max_withdrawal: (string | null);
|
|
1684
|
+
/**
|
|
1685
|
+
* @type string
|
|
1686
|
+
*/
|
|
1687
|
+
min_withdrawal: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* @type string
|
|
1690
|
+
*/
|
|
1691
|
+
name: string;
|
|
1692
|
+
}[];
|
|
1693
|
+
}[];
|
|
1694
|
+
/**
|
|
1695
|
+
* @type string, date-time
|
|
1696
|
+
*/
|
|
1697
|
+
last_sync_at: string;
|
|
1698
|
+
};
|
|
1699
|
+
/**
|
|
1700
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
1701
|
+
*/
|
|
1702
|
+
type GetExchangeAssets400 = Error$1;
|
|
1703
|
+
/**
|
|
1704
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1705
|
+
*/
|
|
1706
|
+
type GetExchangeAssets401 = Error$1;
|
|
1707
|
+
/**
|
|
1708
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1709
|
+
*/
|
|
1710
|
+
type GetExchangeAssets403 = Error$1;
|
|
1711
|
+
/**
|
|
1712
|
+
* @description Not Found — `error.code` includes: customer_not_registered, exchange_not_connected.
|
|
1713
|
+
*/
|
|
1714
|
+
type GetExchangeAssets404 = Error$1;
|
|
1715
|
+
/**
|
|
1716
|
+
* @description Conflict — `error.code` includes: exchange_reconnect_required.
|
|
1717
|
+
*/
|
|
1718
|
+
type GetExchangeAssets409 = Error$1;
|
|
1719
|
+
/**
|
|
1720
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1721
|
+
*/
|
|
1722
|
+
type GetExchangeAssets429 = Error$1;
|
|
1723
|
+
/**
|
|
1724
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
1725
|
+
*/
|
|
1726
|
+
type GetExchangeAssets502 = Error$1;
|
|
1727
|
+
type GetExchangeAssetsQueryResponse = GetExchangeAssets200;
|
|
1728
|
+
type GetExchangeAssetsQuery = {
|
|
1729
|
+
Response: GetExchangeAssets200;
|
|
1730
|
+
PathParams: GetExchangeAssetsPathParams;
|
|
1731
|
+
Errors: GetExchangeAssets400 | GetExchangeAssets401 | GetExchangeAssets403 | GetExchangeAssets404 | GetExchangeAssets409 | GetExchangeAssets429 | GetExchangeAssets502;
|
|
1732
|
+
};
|
|
1733
|
+
declare const getExchangeWithdrawalPathParamsExchangeEnum: {
|
|
1734
|
+
readonly coinbase: "coinbase";
|
|
1735
|
+
};
|
|
1736
|
+
type GetExchangeWithdrawalPathParamsExchangeEnumKey = (typeof getExchangeWithdrawalPathParamsExchangeEnum)[keyof typeof getExchangeWithdrawalPathParamsExchangeEnum];
|
|
1737
|
+
type GetExchangeWithdrawalPathParams = {
|
|
1738
|
+
/**
|
|
1739
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1740
|
+
* @type string
|
|
1741
|
+
*/
|
|
1742
|
+
address: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* @type string
|
|
1745
|
+
*/
|
|
1746
|
+
exchange: GetExchangeWithdrawalPathParamsExchangeEnumKey;
|
|
1747
|
+
/**
|
|
1748
|
+
* @type string, uuid
|
|
1749
|
+
*/
|
|
1750
|
+
id: string;
|
|
1751
|
+
};
|
|
1752
|
+
declare const getExchangeWithdrawal200StatusEnum: {
|
|
1753
|
+
readonly quoted: "quoted";
|
|
1754
|
+
readonly pending: "pending";
|
|
1755
|
+
readonly broadcasted: "broadcasted";
|
|
1756
|
+
readonly failed: "failed";
|
|
1757
|
+
readonly delayed: "delayed";
|
|
1758
|
+
};
|
|
1759
|
+
type GetExchangeWithdrawal200StatusEnumKey = (typeof getExchangeWithdrawal200StatusEnum)[keyof typeof getExchangeWithdrawal200StatusEnum];
|
|
1760
|
+
/**
|
|
1761
|
+
* @description The withdrawal.
|
|
1762
|
+
*/
|
|
1763
|
+
type GetExchangeWithdrawal200 = {
|
|
1764
|
+
/**
|
|
1765
|
+
* @type string
|
|
1766
|
+
*/
|
|
1767
|
+
amount: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* @type string
|
|
1770
|
+
*/
|
|
1771
|
+
asset: string;
|
|
1772
|
+
completed_at: (string | null);
|
|
1773
|
+
/**
|
|
1774
|
+
* @type string, date-time
|
|
1775
|
+
*/
|
|
1776
|
+
created_at: string;
|
|
1777
|
+
error_code: (string | null);
|
|
1778
|
+
error_message: (string | null);
|
|
1779
|
+
/**
|
|
1780
|
+
* @type string, uuid
|
|
1781
|
+
*/
|
|
1782
|
+
id: string;
|
|
1783
|
+
/**
|
|
1784
|
+
* @type string
|
|
1785
|
+
*/
|
|
1786
|
+
network: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* @type string
|
|
1789
|
+
*/
|
|
1790
|
+
status: GetExchangeWithdrawal200StatusEnumKey;
|
|
1791
|
+
transaction_hash: (string | null);
|
|
1792
|
+
};
|
|
1793
|
+
/**
|
|
1794
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
1795
|
+
*/
|
|
1796
|
+
type GetExchangeWithdrawal400 = Error$1;
|
|
1797
|
+
/**
|
|
1798
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1799
|
+
*/
|
|
1800
|
+
type GetExchangeWithdrawal401 = Error$1;
|
|
1801
|
+
/**
|
|
1802
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1803
|
+
*/
|
|
1804
|
+
type GetExchangeWithdrawal403 = Error$1;
|
|
1805
|
+
/**
|
|
1806
|
+
* @description Not Found — `error.code` includes: customer_not_registered, withdrawal_not_found.
|
|
1807
|
+
*/
|
|
1808
|
+
type GetExchangeWithdrawal404 = Error$1;
|
|
1809
|
+
/**
|
|
1810
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1811
|
+
*/
|
|
1812
|
+
type GetExchangeWithdrawal429 = Error$1;
|
|
1813
|
+
type GetExchangeWithdrawalQueryResponse = GetExchangeWithdrawal200;
|
|
1814
|
+
type GetExchangeWithdrawalQuery = {
|
|
1815
|
+
Response: GetExchangeWithdrawal200;
|
|
1816
|
+
PathParams: GetExchangeWithdrawalPathParams;
|
|
1817
|
+
Errors: GetExchangeWithdrawal400 | GetExchangeWithdrawal401 | GetExchangeWithdrawal403 | GetExchangeWithdrawal404 | GetExchangeWithdrawal429;
|
|
1818
|
+
};
|
|
1819
|
+
/**
|
|
1820
|
+
* @description Current USD-based rates.
|
|
1821
|
+
*/
|
|
1822
|
+
type GetFxRates200 = {
|
|
1823
|
+
/**
|
|
1824
|
+
* @type number
|
|
1825
|
+
*/
|
|
1826
|
+
eur: number;
|
|
1827
|
+
/**
|
|
1828
|
+
* @type number
|
|
1829
|
+
*/
|
|
1830
|
+
gbp: number;
|
|
1831
|
+
/**
|
|
1832
|
+
* @type number
|
|
1833
|
+
*/
|
|
1834
|
+
usd: 1;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1838
|
+
*/
|
|
1839
|
+
type GetFxRates429 = Error$1;
|
|
1840
|
+
/**
|
|
1841
|
+
* @description Bad Gateway — `error.code` includes: fx_unavailable.
|
|
1842
|
+
*/
|
|
1843
|
+
type GetFxRates502 = Error$1;
|
|
1844
|
+
type GetFxRatesQueryResponse = GetFxRates200;
|
|
1845
|
+
type GetFxRatesQuery = {
|
|
1846
|
+
Response: GetFxRates200;
|
|
1847
|
+
Errors: GetFxRates429 | GetFxRates502;
|
|
1848
|
+
};
|
|
1849
|
+
type GetIdentityVerificationLinkPathParams = {
|
|
1850
|
+
/**
|
|
1851
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1852
|
+
* @type string
|
|
1853
|
+
*/
|
|
1854
|
+
address: string;
|
|
1855
|
+
};
|
|
1856
|
+
/**
|
|
1857
|
+
* @description The identity-verification URL.
|
|
1858
|
+
*/
|
|
1859
|
+
type GetIdentityVerificationLink200 = {
|
|
1860
|
+
/**
|
|
1861
|
+
* @type string, uri
|
|
1862
|
+
*/
|
|
1863
|
+
url: string;
|
|
1864
|
+
};
|
|
1865
|
+
/**
|
|
1866
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
1867
|
+
*/
|
|
1868
|
+
type GetIdentityVerificationLink400 = Error$1;
|
|
1869
|
+
/**
|
|
1870
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1871
|
+
*/
|
|
1872
|
+
type GetIdentityVerificationLink401 = Error$1;
|
|
1873
|
+
/**
|
|
1874
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1875
|
+
*/
|
|
1876
|
+
type GetIdentityVerificationLink403 = Error$1;
|
|
1877
|
+
/**
|
|
1878
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
1879
|
+
*/
|
|
1880
|
+
type GetIdentityVerificationLink404 = Error$1;
|
|
1881
|
+
/**
|
|
1882
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1883
|
+
*/
|
|
1884
|
+
type GetIdentityVerificationLink429 = Error$1;
|
|
1885
|
+
/**
|
|
1886
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
1887
|
+
*/
|
|
1888
|
+
type GetIdentityVerificationLink502 = Error$1;
|
|
1889
|
+
type GetIdentityVerificationLinkMutationResponse = GetIdentityVerificationLink200;
|
|
1890
|
+
type GetIdentityVerificationLinkMutation = {
|
|
1891
|
+
Response: GetIdentityVerificationLink200;
|
|
1892
|
+
PathParams: GetIdentityVerificationLinkPathParams;
|
|
1893
|
+
Errors: GetIdentityVerificationLink400 | GetIdentityVerificationLink401 | GetIdentityVerificationLink403 | GetIdentityVerificationLink404 | GetIdentityVerificationLink429 | GetIdentityVerificationLink502;
|
|
1894
|
+
};
|
|
1895
|
+
type GetStripeConfigPathParams = {
|
|
1896
|
+
/**
|
|
1897
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1898
|
+
* @type string
|
|
1899
|
+
*/
|
|
1900
|
+
address: string;
|
|
1901
|
+
};
|
|
1902
|
+
/**
|
|
1903
|
+
* @description The Stripe publishable key.
|
|
1904
|
+
*/
|
|
1905
|
+
type GetStripeConfig200 = {
|
|
1906
|
+
/**
|
|
1907
|
+
* @type string
|
|
1908
|
+
*/
|
|
1909
|
+
publishable_key: string;
|
|
1910
|
+
};
|
|
1911
|
+
/**
|
|
1912
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
1913
|
+
*/
|
|
1914
|
+
type GetStripeConfig400 = Error$1;
|
|
1915
|
+
/**
|
|
1916
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
1917
|
+
*/
|
|
1918
|
+
type GetStripeConfig401 = Error$1;
|
|
1919
|
+
/**
|
|
1920
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1921
|
+
*/
|
|
1922
|
+
type GetStripeConfig403 = Error$1;
|
|
1923
|
+
/**
|
|
1924
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1925
|
+
*/
|
|
1926
|
+
type GetStripeConfig429 = Error$1;
|
|
1927
|
+
type GetStripeConfigQueryResponse = GetStripeConfig200;
|
|
1928
|
+
type GetStripeConfigQuery = {
|
|
1929
|
+
Response: GetStripeConfig200;
|
|
1930
|
+
PathParams: GetStripeConfigPathParams;
|
|
1931
|
+
Errors: GetStripeConfig400 | GetStripeConfig401 | GetStripeConfig403 | GetStripeConfig429;
|
|
1932
|
+
};
|
|
1933
|
+
type GetStripeCustomerStatusPathParams = {
|
|
1934
|
+
/**
|
|
1935
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1936
|
+
* @type string
|
|
1937
|
+
*/
|
|
1938
|
+
address: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* @minLength 1
|
|
1941
|
+
* @type string
|
|
1942
|
+
*/
|
|
1943
|
+
crypto_customer_id: string;
|
|
1944
|
+
};
|
|
1945
|
+
/**
|
|
1946
|
+
* @description The customer\'s verification statuses.
|
|
1947
|
+
*/
|
|
1948
|
+
type GetStripeCustomerStatus200 = {
|
|
1949
|
+
/**
|
|
1950
|
+
* @type string
|
|
1951
|
+
*/
|
|
1952
|
+
id_document_status: string;
|
|
1953
|
+
/**
|
|
1954
|
+
* @type string
|
|
1955
|
+
*/
|
|
1956
|
+
kyc_status: string;
|
|
1957
|
+
/**
|
|
1958
|
+
* @type array
|
|
1959
|
+
*/
|
|
1960
|
+
provided_fields: string[];
|
|
1961
|
+
};
|
|
1962
|
+
/**
|
|
1963
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
1964
|
+
*/
|
|
1965
|
+
type GetStripeCustomerStatus400 = Error$1;
|
|
1966
|
+
/**
|
|
1967
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required, stripe_auth_required.
|
|
1968
|
+
*/
|
|
1969
|
+
type GetStripeCustomerStatus401 = Error$1;
|
|
1970
|
+
/**
|
|
1971
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
1972
|
+
*/
|
|
1973
|
+
type GetStripeCustomerStatus403 = Error$1;
|
|
1974
|
+
/**
|
|
1975
|
+
* @description Not Found — `error.code` includes: resource_missing.
|
|
1976
|
+
*/
|
|
1977
|
+
type GetStripeCustomerStatus404 = Error$1;
|
|
1978
|
+
/**
|
|
1979
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
1980
|
+
*/
|
|
1981
|
+
type GetStripeCustomerStatus429 = Error$1;
|
|
1982
|
+
/**
|
|
1983
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
1984
|
+
*/
|
|
1985
|
+
type GetStripeCustomerStatus502 = Error$1;
|
|
1986
|
+
type GetStripeCustomerStatusQueryResponse = GetStripeCustomerStatus200;
|
|
1987
|
+
type GetStripeCustomerStatusQuery = {
|
|
1988
|
+
Response: GetStripeCustomerStatus200;
|
|
1989
|
+
PathParams: GetStripeCustomerStatusPathParams;
|
|
1990
|
+
Errors: GetStripeCustomerStatus400 | GetStripeCustomerStatus401 | GetStripeCustomerStatus403 | GetStripeCustomerStatus404 | GetStripeCustomerStatus429 | GetStripeCustomerStatus502;
|
|
1991
|
+
};
|
|
1992
|
+
type GetStripeOrderPathParams = {
|
|
1993
|
+
/**
|
|
1994
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
1995
|
+
* @type string
|
|
1996
|
+
*/
|
|
1997
|
+
address: string;
|
|
1998
|
+
/**
|
|
1999
|
+
* @type string, uuid
|
|
2000
|
+
*/
|
|
2001
|
+
id: string;
|
|
2002
|
+
};
|
|
2003
|
+
declare const getStripeOrder200StatusEnum: {
|
|
2004
|
+
readonly initialized: "initialized";
|
|
2005
|
+
readonly requires_payment: "requires_payment";
|
|
2006
|
+
readonly fulfillment_processing: "fulfillment_processing";
|
|
2007
|
+
readonly fulfillment_complete: "fulfillment_complete";
|
|
2008
|
+
readonly rejected: "rejected";
|
|
2009
|
+
readonly error: "error";
|
|
2010
|
+
};
|
|
2011
|
+
type GetStripeOrder200StatusEnumKey = (typeof getStripeOrder200StatusEnum)[keyof typeof getStripeOrder200StatusEnum];
|
|
2012
|
+
/**
|
|
2013
|
+
* @description The onramp order.
|
|
2014
|
+
*/
|
|
2015
|
+
type GetStripeOrder200 = {
|
|
2016
|
+
/**
|
|
2017
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2018
|
+
* @type string
|
|
2019
|
+
*/
|
|
2020
|
+
address: string;
|
|
2021
|
+
/**
|
|
2022
|
+
* @type string, date-time
|
|
2023
|
+
*/
|
|
2024
|
+
created_at: string;
|
|
2025
|
+
destination_amount: (string | null);
|
|
2026
|
+
/**
|
|
2027
|
+
* @type string
|
|
2028
|
+
*/
|
|
2029
|
+
destination_currency: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* @type string
|
|
2032
|
+
*/
|
|
2033
|
+
destination_network: string;
|
|
2034
|
+
/**
|
|
2035
|
+
* @type string, uuid
|
|
2036
|
+
*/
|
|
2037
|
+
id: string;
|
|
2038
|
+
source_amount: (string | null);
|
|
2039
|
+
/**
|
|
2040
|
+
* @type string
|
|
2041
|
+
*/
|
|
2042
|
+
source_currency: string;
|
|
2043
|
+
/**
|
|
2044
|
+
* @type string
|
|
2045
|
+
*/
|
|
2046
|
+
status: GetStripeOrder200StatusEnumKey;
|
|
2047
|
+
};
|
|
2048
|
+
/**
|
|
2049
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
2050
|
+
*/
|
|
2051
|
+
type GetStripeOrder400 = Error$1;
|
|
2052
|
+
/**
|
|
2053
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2054
|
+
*/
|
|
2055
|
+
type GetStripeOrder401 = Error$1;
|
|
2056
|
+
/**
|
|
2057
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2058
|
+
*/
|
|
2059
|
+
type GetStripeOrder403 = Error$1;
|
|
2060
|
+
/**
|
|
2061
|
+
* @description Not Found — `error.code` includes: order_not_found.
|
|
2062
|
+
*/
|
|
2063
|
+
type GetStripeOrder404 = Error$1;
|
|
2064
|
+
/**
|
|
2065
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2066
|
+
*/
|
|
2067
|
+
type GetStripeOrder429 = Error$1;
|
|
2068
|
+
type GetStripeOrderQueryResponse = GetStripeOrder200;
|
|
2069
|
+
type GetStripeOrderQuery = {
|
|
2070
|
+
Response: GetStripeOrder200;
|
|
2071
|
+
PathParams: GetStripeOrderPathParams;
|
|
2072
|
+
Errors: GetStripeOrder400 | GetStripeOrder401 | GetStripeOrder403 | GetStripeOrder404 | GetStripeOrder429;
|
|
2073
|
+
};
|
|
2074
|
+
type GetStripeQuotePathParams = {
|
|
2075
|
+
/**
|
|
2076
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2077
|
+
* @type string
|
|
2078
|
+
*/
|
|
2079
|
+
address: string;
|
|
2080
|
+
};
|
|
2081
|
+
type GetStripeQuoteQueryParams = {
|
|
2082
|
+
/**
|
|
2083
|
+
* @pattern ^\d+(\.\d+)?$
|
|
2084
|
+
* @type string | undefined
|
|
2085
|
+
*/
|
|
2086
|
+
source_amount?: string;
|
|
2087
|
+
/**
|
|
2088
|
+
* @pattern ^\d+(\.\d+)?$
|
|
2089
|
+
* @type string | undefined
|
|
2090
|
+
*/
|
|
2091
|
+
destination_amount?: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* @default "usd"
|
|
2094
|
+
* @type string | undefined
|
|
2095
|
+
*/
|
|
2096
|
+
source_currency?: "usd";
|
|
2097
|
+
/**
|
|
2098
|
+
* @minLength 1
|
|
2099
|
+
* @default "usdc"
|
|
2100
|
+
* @type string | undefined
|
|
2101
|
+
*/
|
|
2102
|
+
destination_currency?: string;
|
|
2103
|
+
/**
|
|
2104
|
+
* @minLength 1
|
|
2105
|
+
* @default "base"
|
|
2106
|
+
* @type string | undefined
|
|
2107
|
+
*/
|
|
2108
|
+
destination_network?: string;
|
|
2109
|
+
};
|
|
2110
|
+
/**
|
|
2111
|
+
* @description The price estimate for the requested amount.
|
|
2112
|
+
*/
|
|
2113
|
+
type GetStripeQuote200 = {
|
|
2114
|
+
/**
|
|
2115
|
+
* @type string
|
|
2116
|
+
*/
|
|
2117
|
+
destination_amount: string;
|
|
2118
|
+
/**
|
|
2119
|
+
* @type string
|
|
2120
|
+
*/
|
|
2121
|
+
network_fee: string;
|
|
2122
|
+
/**
|
|
2123
|
+
* @type number
|
|
2124
|
+
*/
|
|
2125
|
+
rate_fetched_at: number;
|
|
2126
|
+
/**
|
|
2127
|
+
* @type string
|
|
2128
|
+
*/
|
|
2129
|
+
source_total_amount: string;
|
|
2130
|
+
/**
|
|
2131
|
+
* @type string
|
|
2132
|
+
*/
|
|
2133
|
+
transaction_fee: string;
|
|
2134
|
+
};
|
|
2135
|
+
/**
|
|
2136
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
2137
|
+
*/
|
|
2138
|
+
type GetStripeQuote400 = Error$1;
|
|
2139
|
+
/**
|
|
2140
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2141
|
+
*/
|
|
2142
|
+
type GetStripeQuote401 = Error$1;
|
|
2143
|
+
/**
|
|
2144
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2145
|
+
*/
|
|
2146
|
+
type GetStripeQuote403 = Error$1;
|
|
2147
|
+
/**
|
|
2148
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2149
|
+
*/
|
|
2150
|
+
type GetStripeQuote429 = Error$1;
|
|
2151
|
+
/**
|
|
2152
|
+
* @description Bad Gateway — `error.code` includes: quote_unavailable.
|
|
2153
|
+
*/
|
|
2154
|
+
type GetStripeQuote502 = Error$1;
|
|
2155
|
+
type GetStripeQuoteQueryResponse = GetStripeQuote200;
|
|
2156
|
+
type GetStripeQuoteQuery = {
|
|
2157
|
+
Response: GetStripeQuote200;
|
|
2158
|
+
PathParams: GetStripeQuotePathParams;
|
|
2159
|
+
QueryParams: GetStripeQuoteQueryParams;
|
|
2160
|
+
Errors: GetStripeQuote400 | GetStripeQuote401 | GetStripeQuote403 | GetStripeQuote429 | GetStripeQuote502;
|
|
2161
|
+
};
|
|
2162
|
+
type GetStripeStatusPathParams = {
|
|
2163
|
+
/**
|
|
2164
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2165
|
+
* @type string
|
|
2166
|
+
*/
|
|
2167
|
+
address: string;
|
|
2168
|
+
};
|
|
2169
|
+
/**
|
|
2170
|
+
* @description The session\'s Stripe login state.
|
|
2171
|
+
*/
|
|
2172
|
+
type GetStripeStatus200 = {
|
|
2173
|
+
/**
|
|
2174
|
+
* @type boolean
|
|
2175
|
+
*/
|
|
2176
|
+
authenticated: boolean;
|
|
2177
|
+
/**
|
|
2178
|
+
* @type string | undefined
|
|
2179
|
+
*/
|
|
2180
|
+
crypto_customer_id?: string;
|
|
2181
|
+
/**
|
|
2182
|
+
* @type string | undefined, email
|
|
2183
|
+
*/
|
|
2184
|
+
email?: string;
|
|
2185
|
+
};
|
|
2186
|
+
/**
|
|
2187
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
2188
|
+
*/
|
|
2189
|
+
type GetStripeStatus400 = Error$1;
|
|
2190
|
+
/**
|
|
2191
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2192
|
+
*/
|
|
2193
|
+
type GetStripeStatus401 = Error$1;
|
|
2194
|
+
/**
|
|
2195
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2196
|
+
*/
|
|
2197
|
+
type GetStripeStatus403 = Error$1;
|
|
2198
|
+
/**
|
|
2199
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2200
|
+
*/
|
|
2201
|
+
type GetStripeStatus429 = Error$1;
|
|
2202
|
+
type GetStripeStatusQueryResponse = GetStripeStatus200;
|
|
2203
|
+
type GetStripeStatusQuery = {
|
|
2204
|
+
Response: GetStripeStatus200;
|
|
2205
|
+
PathParams: GetStripeStatusPathParams;
|
|
2206
|
+
Errors: GetStripeStatus400 | GetStripeStatus401 | GetStripeStatus403 | GetStripeStatus429;
|
|
2207
|
+
};
|
|
2208
|
+
type GetTermsOfServiceLinkPathParams = {
|
|
2209
|
+
/**
|
|
2210
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2211
|
+
* @type string
|
|
2212
|
+
*/
|
|
2213
|
+
address: string;
|
|
2214
|
+
};
|
|
2215
|
+
/**
|
|
2216
|
+
* @description The terms-of-service URL.
|
|
2217
|
+
*/
|
|
2218
|
+
type GetTermsOfServiceLink200 = {
|
|
2219
|
+
/**
|
|
2220
|
+
* @type string, uri
|
|
2221
|
+
*/
|
|
2222
|
+
url: string;
|
|
2223
|
+
};
|
|
2224
|
+
/**
|
|
2225
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
2226
|
+
*/
|
|
2227
|
+
type GetTermsOfServiceLink400 = Error$1;
|
|
2228
|
+
/**
|
|
2229
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2230
|
+
*/
|
|
2231
|
+
type GetTermsOfServiceLink401 = Error$1;
|
|
2232
|
+
/**
|
|
2233
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2234
|
+
*/
|
|
2235
|
+
type GetTermsOfServiceLink403 = Error$1;
|
|
2236
|
+
/**
|
|
2237
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
2238
|
+
*/
|
|
2239
|
+
type GetTermsOfServiceLink404 = Error$1;
|
|
2240
|
+
/**
|
|
2241
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2242
|
+
*/
|
|
2243
|
+
type GetTermsOfServiceLink429 = Error$1;
|
|
2244
|
+
/**
|
|
2245
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
2246
|
+
*/
|
|
2247
|
+
type GetTermsOfServiceLink502 = Error$1;
|
|
2248
|
+
type GetTermsOfServiceLinkMutationResponse = GetTermsOfServiceLink200;
|
|
2249
|
+
type GetTermsOfServiceLinkMutation = {
|
|
2250
|
+
Response: GetTermsOfServiceLink200;
|
|
2251
|
+
PathParams: GetTermsOfServiceLinkPathParams;
|
|
2252
|
+
Errors: GetTermsOfServiceLink400 | GetTermsOfServiceLink401 | GetTermsOfServiceLink403 | GetTermsOfServiceLink404 | GetTermsOfServiceLink429 | GetTermsOfServiceLink502;
|
|
2253
|
+
};
|
|
2254
|
+
type GetWalletPathParams = {
|
|
2255
|
+
/**
|
|
2256
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2257
|
+
* @type string
|
|
2258
|
+
*/
|
|
2259
|
+
address: string;
|
|
2260
|
+
};
|
|
2261
|
+
declare const getWallet200IdentityVerificationStatusEnum: {
|
|
2262
|
+
readonly not_started: "not_started";
|
|
2263
|
+
readonly incomplete: "incomplete";
|
|
2264
|
+
readonly awaiting_questionnaire: "awaiting_questionnaire";
|
|
2265
|
+
readonly awaiting_ubo: "awaiting_ubo";
|
|
2266
|
+
readonly under_review: "under_review";
|
|
2267
|
+
readonly active: "active";
|
|
2268
|
+
readonly rejected: "rejected";
|
|
2269
|
+
readonly paused: "paused";
|
|
2270
|
+
readonly offboarded: "offboarded";
|
|
2271
|
+
};
|
|
2272
|
+
type GetWallet200IdentityVerificationStatusEnumKey = (typeof getWallet200IdentityVerificationStatusEnum)[keyof typeof getWallet200IdentityVerificationStatusEnum];
|
|
2273
|
+
/**
|
|
2274
|
+
* @description Wallet state.
|
|
2275
|
+
*/
|
|
2276
|
+
type GetWallet200 = {
|
|
2277
|
+
/**
|
|
2278
|
+
* @type string, date-time
|
|
2279
|
+
*/
|
|
2280
|
+
created_at: string;
|
|
2281
|
+
deleted_at: (string | null);
|
|
2282
|
+
form_filled_at: (string | null);
|
|
2283
|
+
/**
|
|
2284
|
+
* @type boolean
|
|
2285
|
+
*/
|
|
2286
|
+
has_accepted_terms_of_service: boolean;
|
|
2287
|
+
/**
|
|
2288
|
+
* @type string
|
|
2289
|
+
*/
|
|
2290
|
+
identity_verification_status: GetWallet200IdentityVerificationStatusEnumKey;
|
|
2291
|
+
identity_verification_submitted_at: (string | null);
|
|
2292
|
+
more_information_required_at: (string | null);
|
|
2293
|
+
terms_of_service_submitted_at: (string | null);
|
|
2294
|
+
/**
|
|
2295
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2296
|
+
* @type string
|
|
2297
|
+
*/
|
|
2298
|
+
wallet: string;
|
|
2299
|
+
};
|
|
2300
|
+
/**
|
|
2301
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
2302
|
+
*/
|
|
2303
|
+
type GetWallet400 = Error$1;
|
|
2304
|
+
/**
|
|
2305
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2306
|
+
*/
|
|
2307
|
+
type GetWallet401 = Error$1;
|
|
2308
|
+
/**
|
|
2309
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2310
|
+
*/
|
|
2311
|
+
type GetWallet403 = Error$1;
|
|
2312
|
+
/**
|
|
2313
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
2314
|
+
*/
|
|
2315
|
+
type GetWallet404 = Error$1;
|
|
2316
|
+
/**
|
|
2317
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2318
|
+
*/
|
|
2319
|
+
type GetWallet429 = Error$1;
|
|
2320
|
+
type GetWalletQueryResponse = GetWallet200;
|
|
2321
|
+
type GetWalletQuery = {
|
|
2322
|
+
Response: GetWallet200;
|
|
2323
|
+
PathParams: GetWalletPathParams;
|
|
2324
|
+
Errors: GetWallet400 | GetWallet401 | GetWallet403 | GetWallet404 | GetWallet429;
|
|
2325
|
+
};
|
|
2326
|
+
type ListStripePaymentTokensPathParams = {
|
|
2327
|
+
/**
|
|
2328
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2329
|
+
* @type string
|
|
2330
|
+
*/
|
|
2331
|
+
address: string;
|
|
2332
|
+
};
|
|
2333
|
+
type ListStripePaymentTokensQueryParams = {
|
|
2334
|
+
/**
|
|
2335
|
+
* @minLength 1
|
|
2336
|
+
* @type string | undefined
|
|
2337
|
+
*/
|
|
2338
|
+
crypto_customer_id?: string;
|
|
2339
|
+
};
|
|
2340
|
+
/**
|
|
2341
|
+
* @description The customer\'s payment methods.
|
|
2342
|
+
*/
|
|
2343
|
+
type ListStripePaymentTokens200 = {
|
|
2344
|
+
/**
|
|
2345
|
+
* @type number
|
|
2346
|
+
*/
|
|
2347
|
+
count: number;
|
|
2348
|
+
/**
|
|
2349
|
+
* @type array
|
|
2350
|
+
*/
|
|
2351
|
+
data: {
|
|
2352
|
+
/**
|
|
2353
|
+
* @type string
|
|
2354
|
+
*/
|
|
2355
|
+
id: string;
|
|
2356
|
+
/**
|
|
2357
|
+
* @type string
|
|
2358
|
+
*/
|
|
2359
|
+
object: string;
|
|
2360
|
+
}[];
|
|
2361
|
+
};
|
|
2362
|
+
/**
|
|
2363
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
2364
|
+
*/
|
|
2365
|
+
type ListStripePaymentTokens400 = Error$1;
|
|
2366
|
+
/**
|
|
2367
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required, stripe_auth_required.
|
|
2368
|
+
*/
|
|
2369
|
+
type ListStripePaymentTokens401 = Error$1;
|
|
2370
|
+
/**
|
|
2371
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2372
|
+
*/
|
|
2373
|
+
type ListStripePaymentTokens403 = Error$1;
|
|
2374
|
+
/**
|
|
2375
|
+
* @description Not Found — `error.code` includes: resource_missing.
|
|
2376
|
+
*/
|
|
2377
|
+
type ListStripePaymentTokens404 = Error$1;
|
|
2378
|
+
/**
|
|
2379
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2380
|
+
*/
|
|
2381
|
+
type ListStripePaymentTokens429 = Error$1;
|
|
2382
|
+
/**
|
|
2383
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
2384
|
+
*/
|
|
2385
|
+
type ListStripePaymentTokens502 = Error$1;
|
|
2386
|
+
type ListStripePaymentTokensQueryResponse = ListStripePaymentTokens200;
|
|
2387
|
+
type ListStripePaymentTokensQuery = {
|
|
2388
|
+
Response: ListStripePaymentTokens200;
|
|
2389
|
+
PathParams: ListStripePaymentTokensPathParams;
|
|
2390
|
+
QueryParams: ListStripePaymentTokensQueryParams;
|
|
2391
|
+
Errors: ListStripePaymentTokens400 | ListStripePaymentTokens401 | ListStripePaymentTokens403 | ListStripePaymentTokens404 | ListStripePaymentTokens429 | ListStripePaymentTokens502;
|
|
2392
|
+
};
|
|
2393
|
+
type ListStripeWalletsPathParams = {
|
|
2394
|
+
/**
|
|
2395
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2396
|
+
* @type string
|
|
2397
|
+
*/
|
|
2398
|
+
address: string;
|
|
2399
|
+
};
|
|
2400
|
+
type ListStripeWalletsQueryParams = {
|
|
2401
|
+
/**
|
|
2402
|
+
* @minLength 1
|
|
2403
|
+
* @type string | undefined
|
|
2404
|
+
*/
|
|
2405
|
+
crypto_customer_id?: string;
|
|
2406
|
+
};
|
|
2407
|
+
/**
|
|
2408
|
+
* @description The customer\'s registered wallets.
|
|
2409
|
+
*/
|
|
2410
|
+
type ListStripeWallets200 = {
|
|
2411
|
+
/**
|
|
2412
|
+
* @type number
|
|
2413
|
+
*/
|
|
2414
|
+
count: number;
|
|
2415
|
+
/**
|
|
2416
|
+
* @type array
|
|
2417
|
+
*/
|
|
2418
|
+
data: {
|
|
2419
|
+
/**
|
|
2420
|
+
* @type string
|
|
2421
|
+
*/
|
|
2422
|
+
id: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* @type string
|
|
2425
|
+
*/
|
|
2426
|
+
network: string;
|
|
2427
|
+
/**
|
|
2428
|
+
* @type string
|
|
2429
|
+
*/
|
|
2430
|
+
object: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* @type string
|
|
2433
|
+
*/
|
|
2434
|
+
wallet_address: string;
|
|
2435
|
+
}[];
|
|
2436
|
+
};
|
|
2437
|
+
/**
|
|
2438
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, validation_error.
|
|
2439
|
+
*/
|
|
2440
|
+
type ListStripeWallets400 = Error$1;
|
|
2441
|
+
/**
|
|
2442
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required, stripe_auth_required.
|
|
2443
|
+
*/
|
|
2444
|
+
type ListStripeWallets401 = Error$1;
|
|
2445
|
+
/**
|
|
2446
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2447
|
+
*/
|
|
2448
|
+
type ListStripeWallets403 = Error$1;
|
|
2449
|
+
/**
|
|
2450
|
+
* @description Not Found — `error.code` includes: resource_missing.
|
|
2451
|
+
*/
|
|
2452
|
+
type ListStripeWallets404 = Error$1;
|
|
2453
|
+
/**
|
|
2454
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2455
|
+
*/
|
|
2456
|
+
type ListStripeWallets429 = Error$1;
|
|
2457
|
+
/**
|
|
2458
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
2459
|
+
*/
|
|
2460
|
+
type ListStripeWallets502 = Error$1;
|
|
2461
|
+
type ListStripeWalletsQueryResponse = ListStripeWallets200;
|
|
2462
|
+
type ListStripeWalletsQuery = {
|
|
2463
|
+
Response: ListStripeWallets200;
|
|
2464
|
+
PathParams: ListStripeWalletsPathParams;
|
|
2465
|
+
QueryParams: ListStripeWalletsQueryParams;
|
|
2466
|
+
Errors: ListStripeWallets400 | ListStripeWallets401 | ListStripeWallets403 | ListStripeWallets404 | ListStripeWallets429 | ListStripeWallets502;
|
|
2467
|
+
};
|
|
2468
|
+
type ListVirtualAccountsPathParams = {
|
|
2469
|
+
/**
|
|
2470
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2471
|
+
* @type string
|
|
2472
|
+
*/
|
|
2473
|
+
address: string;
|
|
2474
|
+
};
|
|
2475
|
+
declare const dataCurrencyEnum: {
|
|
2476
|
+
readonly usd: "usd";
|
|
2477
|
+
readonly gbp: "gbp";
|
|
2478
|
+
readonly eur: "eur";
|
|
2479
|
+
};
|
|
2480
|
+
type DataCurrencyEnumKey = (typeof dataCurrencyEnum)[keyof typeof dataCurrencyEnum];
|
|
2481
|
+
/**
|
|
2482
|
+
* @description The wallet\'s virtual accounts.
|
|
2483
|
+
*/
|
|
2484
|
+
type ListVirtualAccounts200 = {
|
|
2485
|
+
/**
|
|
2486
|
+
* @minLength -9007199254740991
|
|
2487
|
+
* @maxLength 9007199254740991
|
|
2488
|
+
* @type integer
|
|
2489
|
+
*/
|
|
2490
|
+
count: number;
|
|
2491
|
+
/**
|
|
2492
|
+
* @type array
|
|
2493
|
+
*/
|
|
2494
|
+
data: {
|
|
2495
|
+
/**
|
|
2496
|
+
* @description Chain id. Currently 1, 8453, 42161, 999, 1337 — additive; tolerate unknown values.
|
|
2497
|
+
* @minLength -9007199254740991
|
|
2498
|
+
* @maxLength 9007199254740991
|
|
2499
|
+
* @type integer
|
|
2500
|
+
*/
|
|
2501
|
+
chain: number;
|
|
2502
|
+
/**
|
|
2503
|
+
* @type string
|
|
2504
|
+
*/
|
|
2505
|
+
currency: DataCurrencyEnumKey;
|
|
2506
|
+
/**
|
|
2507
|
+
* @type string, uuid
|
|
2508
|
+
*/
|
|
2509
|
+
id: string;
|
|
2510
|
+
/**
|
|
2511
|
+
* @type object
|
|
2512
|
+
*/
|
|
2513
|
+
source_deposit_instructions: {
|
|
2514
|
+
[key: string]: (string | string[]);
|
|
2515
|
+
};
|
|
2516
|
+
}[];
|
|
2517
|
+
};
|
|
2518
|
+
/**
|
|
2519
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
2520
|
+
*/
|
|
2521
|
+
type ListVirtualAccounts400 = Error$1;
|
|
2522
|
+
/**
|
|
2523
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2524
|
+
*/
|
|
2525
|
+
type ListVirtualAccounts401 = Error$1;
|
|
2526
|
+
/**
|
|
2527
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2528
|
+
*/
|
|
2529
|
+
type ListVirtualAccounts403 = Error$1;
|
|
2530
|
+
/**
|
|
2531
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
2532
|
+
*/
|
|
2533
|
+
type ListVirtualAccounts404 = Error$1;
|
|
2534
|
+
/**
|
|
2535
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2536
|
+
*/
|
|
2537
|
+
type ListVirtualAccounts429 = Error$1;
|
|
2538
|
+
type ListVirtualAccountsQueryResponse = ListVirtualAccounts200;
|
|
2539
|
+
type ListVirtualAccountsQuery = {
|
|
2540
|
+
Response: ListVirtualAccounts200;
|
|
2541
|
+
PathParams: ListVirtualAccountsPathParams;
|
|
2542
|
+
Errors: ListVirtualAccounts400 | ListVirtualAccounts401 | ListVirtualAccounts403 | ListVirtualAccounts404 | ListVirtualAccounts429;
|
|
2543
|
+
};
|
|
2544
|
+
type RefreshSessionPathParams = {
|
|
2545
|
+
/**
|
|
2546
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2547
|
+
* @type string
|
|
2548
|
+
*/
|
|
2549
|
+
address: string;
|
|
2550
|
+
};
|
|
2551
|
+
/**
|
|
2552
|
+
* @description Session refreshed; cookie pair set.
|
|
2553
|
+
*/
|
|
2554
|
+
type RefreshSession200 = {
|
|
2555
|
+
/**
|
|
2556
|
+
* @type string, date-time
|
|
2557
|
+
*/
|
|
2558
|
+
expires_at: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2561
|
+
* @type string
|
|
2562
|
+
*/
|
|
2563
|
+
wallet: string;
|
|
2564
|
+
};
|
|
2565
|
+
/**
|
|
2566
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
2567
|
+
*/
|
|
2568
|
+
type RefreshSession400 = Error$1;
|
|
2569
|
+
/**
|
|
2570
|
+
* @description Unauthorized — `error.code` includes: refresh_invalid.
|
|
2571
|
+
*/
|
|
2572
|
+
type RefreshSession401 = Error$1;
|
|
2573
|
+
/**
|
|
2574
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2575
|
+
*/
|
|
2576
|
+
type RefreshSession403 = Error$1;
|
|
2577
|
+
/**
|
|
2578
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2579
|
+
*/
|
|
2580
|
+
type RefreshSession429 = Error$1;
|
|
2581
|
+
type RefreshSessionMutationResponse = RefreshSession200;
|
|
2582
|
+
type RefreshSessionMutation = {
|
|
2583
|
+
Response: RefreshSession200;
|
|
2584
|
+
PathParams: RefreshSessionPathParams;
|
|
2585
|
+
Errors: RefreshSession400 | RefreshSession401 | RefreshSession403 | RefreshSession429;
|
|
2586
|
+
};
|
|
2587
|
+
type RegisterWalletPathParams = {
|
|
2588
|
+
/**
|
|
2589
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2590
|
+
* @type string
|
|
2591
|
+
*/
|
|
2592
|
+
address: string;
|
|
2593
|
+
};
|
|
2594
|
+
/**
|
|
2595
|
+
* @description Registration accepted.
|
|
2596
|
+
*/
|
|
2597
|
+
type RegisterWallet204 = any;
|
|
2598
|
+
/**
|
|
2599
|
+
* @description Bad Request — `error.code` includes: email_already_in_use, invalid_wallet, validation_error.
|
|
2600
|
+
*/
|
|
2601
|
+
type RegisterWallet400 = Error$1;
|
|
2602
|
+
/**
|
|
2603
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2604
|
+
*/
|
|
2605
|
+
type RegisterWallet401 = Error$1;
|
|
2606
|
+
/**
|
|
2607
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2608
|
+
*/
|
|
2609
|
+
type RegisterWallet403 = Error$1;
|
|
2610
|
+
/**
|
|
2611
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
2612
|
+
*/
|
|
2613
|
+
type RegisterWallet404 = Error$1;
|
|
2614
|
+
/**
|
|
2615
|
+
* @description Conflict — `error.code` includes: already_registered.
|
|
2616
|
+
*/
|
|
2617
|
+
type RegisterWallet409 = Error$1;
|
|
2618
|
+
/**
|
|
2619
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2620
|
+
*/
|
|
2621
|
+
type RegisterWallet429 = Error$1;
|
|
2622
|
+
/**
|
|
2623
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
2624
|
+
*/
|
|
2625
|
+
type RegisterWallet502 = Error$1;
|
|
2626
|
+
type RegisterWalletMutationRequest = {
|
|
2627
|
+
/**
|
|
2628
|
+
* @type string
|
|
2629
|
+
*/
|
|
2630
|
+
email: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* @minLength 2
|
|
2633
|
+
* @maxLength 256
|
|
2634
|
+
* @type string
|
|
2635
|
+
*/
|
|
2636
|
+
first_name: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* @minLength 2
|
|
2639
|
+
* @maxLength 256
|
|
2640
|
+
* @type string
|
|
2641
|
+
*/
|
|
2642
|
+
last_name: string;
|
|
2643
|
+
};
|
|
2644
|
+
type RegisterWalletMutationResponse = RegisterWallet204;
|
|
2645
|
+
type RegisterWalletMutation = {
|
|
2646
|
+
Response: RegisterWallet204;
|
|
2647
|
+
Request: RegisterWalletMutationRequest;
|
|
2648
|
+
PathParams: RegisterWalletPathParams;
|
|
2649
|
+
Errors: RegisterWallet400 | RegisterWallet401 | RegisterWallet403 | RegisterWallet404 | RegisterWallet409 | RegisterWallet429 | RegisterWallet502;
|
|
2650
|
+
};
|
|
2651
|
+
type SubmitIdentityVerificationPathParams = {
|
|
2652
|
+
/**
|
|
2653
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2654
|
+
* @type string
|
|
2655
|
+
*/
|
|
2656
|
+
address: string;
|
|
2657
|
+
};
|
|
2658
|
+
/**
|
|
2659
|
+
* @description Submission recorded.
|
|
2660
|
+
*/
|
|
2661
|
+
type SubmitIdentityVerification204 = any;
|
|
2662
|
+
/**
|
|
2663
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
2664
|
+
*/
|
|
2665
|
+
type SubmitIdentityVerification400 = Error$1;
|
|
2666
|
+
/**
|
|
2667
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2668
|
+
*/
|
|
2669
|
+
type SubmitIdentityVerification401 = Error$1;
|
|
2670
|
+
/**
|
|
2671
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2672
|
+
*/
|
|
2673
|
+
type SubmitIdentityVerification403 = Error$1;
|
|
2674
|
+
/**
|
|
2675
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
2676
|
+
*/
|
|
2677
|
+
type SubmitIdentityVerification404 = Error$1;
|
|
2678
|
+
/**
|
|
2679
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2680
|
+
*/
|
|
2681
|
+
type SubmitIdentityVerification429 = Error$1;
|
|
2682
|
+
type SubmitIdentityVerificationMutationResponse = SubmitIdentityVerification204;
|
|
2683
|
+
type SubmitIdentityVerificationMutation = {
|
|
2684
|
+
Response: SubmitIdentityVerification204;
|
|
2685
|
+
PathParams: SubmitIdentityVerificationPathParams;
|
|
2686
|
+
Errors: SubmitIdentityVerification400 | SubmitIdentityVerification401 | SubmitIdentityVerification403 | SubmitIdentityVerification404 | SubmitIdentityVerification429;
|
|
2687
|
+
};
|
|
2688
|
+
type SubmitTermsOfServicePathParams = {
|
|
2689
|
+
/**
|
|
2690
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2691
|
+
* @type string
|
|
2692
|
+
*/
|
|
2693
|
+
address: string;
|
|
2694
|
+
};
|
|
2695
|
+
/**
|
|
2696
|
+
* @description Submission recorded.
|
|
2697
|
+
*/
|
|
2698
|
+
type SubmitTermsOfService204 = any;
|
|
2699
|
+
/**
|
|
2700
|
+
* @description Bad Request — `error.code` includes: invalid_wallet.
|
|
2701
|
+
*/
|
|
2702
|
+
type SubmitTermsOfService400 = Error$1;
|
|
2703
|
+
/**
|
|
2704
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2705
|
+
*/
|
|
2706
|
+
type SubmitTermsOfService401 = Error$1;
|
|
2707
|
+
/**
|
|
2708
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2709
|
+
*/
|
|
2710
|
+
type SubmitTermsOfService403 = Error$1;
|
|
2711
|
+
/**
|
|
2712
|
+
* @description Not Found — `error.code` includes: customer_not_registered.
|
|
2713
|
+
*/
|
|
2714
|
+
type SubmitTermsOfService404 = Error$1;
|
|
2715
|
+
/**
|
|
2716
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2717
|
+
*/
|
|
2718
|
+
type SubmitTermsOfService429 = Error$1;
|
|
2719
|
+
type SubmitTermsOfServiceMutationResponse = SubmitTermsOfService204;
|
|
2720
|
+
type SubmitTermsOfServiceMutation = {
|
|
2721
|
+
Response: SubmitTermsOfService204;
|
|
2722
|
+
PathParams: SubmitTermsOfServicePathParams;
|
|
2723
|
+
Errors: SubmitTermsOfService400 | SubmitTermsOfService401 | SubmitTermsOfService403 | SubmitTermsOfService404 | SubmitTermsOfService429;
|
|
2724
|
+
};
|
|
2725
|
+
type UpdateVirtualAccountPathParams = {
|
|
2726
|
+
/**
|
|
2727
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
2728
|
+
* @type string
|
|
2729
|
+
*/
|
|
2730
|
+
address: string;
|
|
2731
|
+
/**
|
|
2732
|
+
* @type string, uuid
|
|
2733
|
+
*/
|
|
2734
|
+
"virtual-account-id": string;
|
|
2735
|
+
};
|
|
2736
|
+
/**
|
|
2737
|
+
* @description Virtual account updated.
|
|
2738
|
+
*/
|
|
2739
|
+
type UpdateVirtualAccount204 = any;
|
|
2740
|
+
/**
|
|
2741
|
+
* @description Bad Request — `error.code` includes: invalid_wallet, unsupported_chain, validation_error.
|
|
2742
|
+
*/
|
|
2743
|
+
type UpdateVirtualAccount400 = Error$1;
|
|
2744
|
+
/**
|
|
2745
|
+
* @description Unauthorized — `error.code` includes: session_invalid, session_required.
|
|
2746
|
+
*/
|
|
2747
|
+
type UpdateVirtualAccount401 = Error$1;
|
|
2748
|
+
/**
|
|
2749
|
+
* @description Forbidden — `error.code` includes: wallet_token_mismatch.
|
|
2750
|
+
*/
|
|
2751
|
+
type UpdateVirtualAccount403 = Error$1;
|
|
2752
|
+
/**
|
|
2753
|
+
* @description Not Found — `error.code` includes: customer_not_registered, virtual_account_not_found.
|
|
2754
|
+
*/
|
|
2755
|
+
type UpdateVirtualAccount404 = Error$1;
|
|
2756
|
+
/**
|
|
2757
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2758
|
+
*/
|
|
2759
|
+
type UpdateVirtualAccount429 = Error$1;
|
|
2760
|
+
/**
|
|
2761
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
2762
|
+
*/
|
|
2763
|
+
type UpdateVirtualAccount502 = Error$1;
|
|
2764
|
+
type UpdateVirtualAccountMutationRequest = {
|
|
2765
|
+
chain: (1 | 8453 | 42161 | 999 | 1337);
|
|
2766
|
+
};
|
|
2767
|
+
type UpdateVirtualAccountMutationResponse = UpdateVirtualAccount204;
|
|
2768
|
+
type UpdateVirtualAccountMutation = {
|
|
2769
|
+
Response: UpdateVirtualAccount204;
|
|
2770
|
+
Request: UpdateVirtualAccountMutationRequest;
|
|
2771
|
+
PathParams: UpdateVirtualAccountPathParams;
|
|
2772
|
+
Errors: UpdateVirtualAccount400 | UpdateVirtualAccount401 | UpdateVirtualAccount403 | UpdateVirtualAccount404 | UpdateVirtualAccount429 | UpdateVirtualAccount502;
|
|
2773
|
+
};
|
|
2774
|
+
type RequestCredentials = "omit" | "same-origin" | "include";
|
|
2775
|
+
type RequestConfig<TData = unknown> = {
|
|
2776
|
+
apiUrl?: string;
|
|
2777
|
+
url?: string;
|
|
2778
|
+
method?: "GET" | "PUT" | "PATCH" | "POST" | "DELETE" | "OPTIONS" | "HEAD";
|
|
2779
|
+
params?: unknown;
|
|
2780
|
+
data?: TData;
|
|
2781
|
+
responseType?: "arraybuffer" | "blob" | "document" | "json" | "text" | "stream";
|
|
2782
|
+
signal?: AbortSignal;
|
|
2783
|
+
headers?: [string, string][] | Record<string, string>;
|
|
2784
|
+
credentials?: RequestCredentials;
|
|
2785
|
+
};
|
|
2786
|
+
type ResponseConfig<TData = unknown> = {
|
|
2787
|
+
data: TData;
|
|
2788
|
+
status: number;
|
|
2789
|
+
statusText: string;
|
|
2790
|
+
headers: Headers;
|
|
2791
|
+
};
|
|
2792
|
+
type ResponseErrorConfig<TError = unknown> = TError;
|
|
2793
|
+
type Client = <TResponseData, _TError = unknown, TRequestData = unknown>(config: RequestConfig<TRequestData>) => Promise<ResponseConfig<TResponseData>>;
|
|
2794
|
+
/**
|
|
2795
|
+
* Typed error every operation throws on a non-2xx response; carries `code`
|
|
2796
|
+
* and `status`.
|
|
2797
|
+
*
|
|
2798
|
+
* @see https://docs.calmtreasury.xyz/sdk/errors
|
|
2799
|
+
*/
|
|
2800
|
+
declare class ApiError extends Error {
|
|
2801
|
+
readonly code: string | undefined;
|
|
2802
|
+
readonly status: number;
|
|
2803
|
+
constructor(args: {
|
|
2804
|
+
message: string;
|
|
2805
|
+
code: string | undefined;
|
|
2806
|
+
status: number;
|
|
2807
|
+
});
|
|
2808
|
+
}
|
|
2809
|
+
declare function getConfig(): Partial<RequestConfig>;
|
|
2810
|
+
declare function setConfig(config: Partial<RequestConfig>): Partial<RequestConfig>;
|
|
2811
|
+
declare const client: Client;
|
|
2812
|
+
/**
|
|
2813
|
+
* @description Checks out a session and returns its `client_secret`. Driven by the client SDK's `performCheckout` callback — never called standalone; the SDK handles required next actions (3DS) between calls.
|
|
2814
|
+
* @summary Check out a Stripe onramp session
|
|
2815
|
+
* {@link /v1/wallets/:address/stripe/session/:sessionId/checkout}
|
|
2816
|
+
*/
|
|
2817
|
+
declare function checkoutStripeSession(address: CheckoutStripeSessionPathParams["address"], sessionId: CheckoutStripeSessionPathParams["sessionId"], config?: Partial<RequestConfig> & {
|
|
2818
|
+
client?: Client;
|
|
2819
|
+
}): Promise<CheckoutStripeSession200>;
|
|
2820
|
+
/**
|
|
2821
|
+
* @description Ends the session: clears both cookies and invalidates the refresh credential. No auth required; idempotent.
|
|
2822
|
+
* @summary Clear a session
|
|
2823
|
+
* {@link /v1/session/clear}
|
|
2824
|
+
*/
|
|
2825
|
+
declare function clearSession(config?: Partial<RequestConfig> & {
|
|
2826
|
+
client?: Client;
|
|
2827
|
+
}): Promise<any>;
|
|
2828
|
+
/**
|
|
2829
|
+
* @description Starts an exchange connection and returns the URL the user authorizes at. On success, the connection turns live and can be read via `GET .../exchange/:exchange`.
|
|
2830
|
+
* @summary Connect an exchange
|
|
2831
|
+
* {@link /v1/wallets/:address/exchange/:exchange}
|
|
2832
|
+
*/
|
|
2833
|
+
declare function connectExchange(address: ConnectExchangePathParams["address"], exchange: ConnectExchangePathParams["exchange"], config?: Partial<RequestConfig> & {
|
|
2834
|
+
client?: Client;
|
|
2835
|
+
}): Promise<ConnectExchange200>;
|
|
2836
|
+
/**
|
|
2837
|
+
* @description Returns the hosted card-onramp URL for the wallet. The card provider authenticates the cardholder and settles USDC to the wallet.
|
|
2838
|
+
* @summary Get the card-onramp link
|
|
2839
|
+
* {@link /v1/wallets/:address/card}
|
|
2840
|
+
*/
|
|
2841
|
+
declare function createCardLink(address: CreateCardLinkPathParams["address"], data: CreateCardLinkMutationRequest, config?: Partial<RequestConfig<CreateCardLinkMutationRequest>> & {
|
|
2842
|
+
client?: Client;
|
|
2843
|
+
}): Promise<CreateCardLink200>;
|
|
2844
|
+
/**
|
|
2845
|
+
* @description Opens a Cash App onramp order and returns it, including the Cash App payment link. Poll `GET .../cashapp/:id` for status.
|
|
2846
|
+
* @summary Create a Cash App order
|
|
2847
|
+
* {@link /v1/wallets/:address/cashapp}
|
|
2848
|
+
*/
|
|
2849
|
+
declare function createCashAppOrder(address: CreateCashAppOrderPathParams["address"], data: CreateCashAppOrderMutationRequest, config?: Partial<RequestConfig<CreateCashAppOrderMutationRequest>> & {
|
|
2850
|
+
client?: Client;
|
|
2851
|
+
}): Promise<CreateCashAppOrder200>;
|
|
2852
|
+
/**
|
|
2853
|
+
* @description Returns a pricing preview for a Cash App order — the destination amount, the fee, and the fee in basis points.
|
|
2854
|
+
* @summary Quote a Cash App order
|
|
2855
|
+
* {@link /v1/wallets/:address/cashapp/quote}
|
|
2856
|
+
*/
|
|
2857
|
+
declare function createCashAppQuote(address: CreateCashAppQuotePathParams["address"], data: CreateCashAppQuoteMutationRequest, config?: Partial<RequestConfig<CreateCashAppQuoteMutationRequest>> & {
|
|
2858
|
+
client?: Client;
|
|
2859
|
+
}): Promise<CreateCashAppQuote200>;
|
|
2860
|
+
/**
|
|
2861
|
+
* @description Returns an intake address for a `(source chain, source token) → destination` route. Funding it delivers USDC to the destination; the same route reuses one address.
|
|
2862
|
+
* @summary Create a crypto deposit address
|
|
2863
|
+
* {@link /v1/wallets/:address/deposit-address}
|
|
2864
|
+
*/
|
|
2865
|
+
declare function createDepositAddress(address: CreateDepositAddressPathParams["address"], data: CreateDepositAddressMutationRequest, config?: Partial<RequestConfig<CreateDepositAddressMutationRequest>> & {
|
|
2866
|
+
client?: Client;
|
|
2867
|
+
}): Promise<CreateDepositAddress200>;
|
|
2868
|
+
/**
|
|
2869
|
+
* @description Quotes a USDC withdrawal from the connected exchange to a deposit address that settles to the chosen destination. The returned `id` is the handle the withdraw call executes.
|
|
2870
|
+
* @summary Quote an exchange withdrawal
|
|
2871
|
+
* {@link /v1/wallets/:address/exchange/:exchange/withdraw/quote}
|
|
2872
|
+
*/
|
|
2873
|
+
declare function createExchangeWithdrawQuote(address: CreateExchangeWithdrawQuotePathParams["address"], exchange: CreateExchangeWithdrawQuotePathParams["exchange"], data: CreateExchangeWithdrawQuoteMutationRequest, config?: Partial<RequestConfig<CreateExchangeWithdrawQuoteMutationRequest>> & {
|
|
2874
|
+
client?: Client;
|
|
2875
|
+
}): Promise<CreateExchangeWithdrawQuote200>;
|
|
2876
|
+
/**
|
|
2877
|
+
* @description Verifies a Dynamic identity-token bearer, checks the wallet is linked to the user, resolves the tenant from the publishable key, and mints the session cookie pair. Requires an `Authorization: Bearer <token>` header.
|
|
2878
|
+
* @summary Create a session (Dynamic)
|
|
2879
|
+
* {@link /v1/session/:address/dynamic}
|
|
2880
|
+
*/
|
|
2881
|
+
declare function createSessionDynamic(address: CreateSessionDynamicPathParams["address"], config?: Partial<RequestConfig> & {
|
|
2882
|
+
client?: Client;
|
|
2883
|
+
}): Promise<CreateSessionDynamic200>;
|
|
2884
|
+
/**
|
|
2885
|
+
* @description Verifies a Privy identity-token bearer, checks the wallet is linked to the user, resolves the tenant from the publishable key, and mints the session cookie pair. Requires an `Authorization: Bearer <token>` header.
|
|
2886
|
+
* @summary Create a session (Privy)
|
|
2887
|
+
* {@link /v1/session/:address/privy}
|
|
2888
|
+
*/
|
|
2889
|
+
declare function createSessionPrivy(address: CreateSessionPrivyPathParams["address"], config?: Partial<RequestConfig> & {
|
|
2890
|
+
client?: Client;
|
|
2891
|
+
}): Promise<CreateSessionPrivy200>;
|
|
2892
|
+
/**
|
|
2893
|
+
* @description Verifies a signed EIP-4361 message and its nonce binding, then mints the session cookie pair. The publishable key rides inside the signed message's `Resources` field, so the wallet attests it.
|
|
2894
|
+
* @summary Create a session (SIWE)
|
|
2895
|
+
* {@link /v1/session/:address/siwe}
|
|
2896
|
+
*/
|
|
2897
|
+
declare function createSessionSiwe(address: CreateSessionSiwePathParams["address"], data: CreateSessionSiweMutationRequest, config?: Partial<RequestConfig<CreateSessionSiweMutationRequest>> & {
|
|
2898
|
+
client?: Client;
|
|
2899
|
+
}): Promise<CreateSessionSiwe200>;
|
|
2900
|
+
/**
|
|
2901
|
+
* @description Returns a nonce to embed in an EIP-4361 message and a short-lived binding to echo back on the SIWE create. Each call issues a fresh nonce; the binding expires after a few minutes.
|
|
2902
|
+
* @summary Issue a SIWE nonce binding
|
|
2903
|
+
* {@link /v1/session/:address/siwe/nonce}
|
|
2904
|
+
*/
|
|
2905
|
+
declare function createSiweNonce(address: CreateSiweNoncePathParams["address"], config?: Partial<RequestConfig> & {
|
|
2906
|
+
client?: Client;
|
|
2907
|
+
}): Promise<CreateSiweNonce200>;
|
|
2908
|
+
/**
|
|
2909
|
+
* @description Opens a Link OAuth intent for the buyer's email and returns its id (handed to the client SDK's `authenticate(...)`) plus its expiry. Read-passthrough — nothing is persisted here.
|
|
2910
|
+
* @summary Open a Stripe Link auth intent
|
|
2911
|
+
* {@link /v1/wallets/:address/stripe/auth-intent}
|
|
2912
|
+
*/
|
|
2913
|
+
declare function createStripeAuthIntent(address: CreateStripeAuthIntentPathParams["address"], data: CreateStripeAuthIntentMutationRequest, config?: Partial<RequestConfig<CreateStripeAuthIntentMutationRequest>> & {
|
|
2914
|
+
client?: Client;
|
|
2915
|
+
}): Promise<CreateStripeAuthIntent200>;
|
|
2916
|
+
/**
|
|
2917
|
+
* @description Validates the crypto customer exists and persists the customer id onto the session so `/status` can re-derive it after a reopen.
|
|
2918
|
+
* @summary Persist a Stripe crypto customer
|
|
2919
|
+
* {@link /v1/wallets/:address/stripe/customer/:crypto_customer_id}
|
|
2920
|
+
*/
|
|
2921
|
+
declare function createStripeCustomer(address: CreateStripeCustomerPathParams["address"], crypto_customer_id: CreateStripeCustomerPathParams["crypto_customer_id"], config?: Partial<RequestConfig> & {
|
|
2922
|
+
client?: Client;
|
|
2923
|
+
}): Promise<any>;
|
|
2924
|
+
/**
|
|
2925
|
+
* @description Opens a headless onramp session and mirrors it into a local order. Returns Stripe's `session_id` (fed to the client SDK's `performCheckout`) plus our own `order_id` to poll via `GET .../stripe/order/:id`. Pass exactly one of `source_amount` / `destination_amount`.
|
|
2926
|
+
* @summary Open a Stripe onramp session
|
|
2927
|
+
* {@link /v1/wallets/:address/stripe/session}
|
|
2928
|
+
*/
|
|
2929
|
+
declare function createStripeSession(address: CreateStripeSessionPathParams["address"], data: CreateStripeSessionMutationRequest, config?: Partial<RequestConfig<CreateStripeSessionMutationRequest>> & {
|
|
2930
|
+
client?: Client;
|
|
2931
|
+
}): Promise<CreateStripeSession200>;
|
|
2932
|
+
/**
|
|
2933
|
+
* @description Exchanges a consented auth intent for the per-user OAuth tokens and stores them server-side. Returns 204; the access token never reaches the browser. The bound intent must match this session.
|
|
2934
|
+
* @summary Exchange an auth intent for tokens
|
|
2935
|
+
* {@link /v1/wallets/:address/stripe/tokens}
|
|
2936
|
+
*/
|
|
2937
|
+
declare function createStripeTokens(address: CreateStripeTokensPathParams["address"], data: CreateStripeTokensMutationRequest, config?: Partial<RequestConfig<CreateStripeTokensMutationRequest>> & {
|
|
2938
|
+
client?: Client;
|
|
2939
|
+
}): Promise<any>;
|
|
2940
|
+
/**
|
|
2941
|
+
* @description Returns an executable quote for swapping a source token into destination USDC. The response carries the steps the client executes on-chain; source and destination chains may differ.
|
|
2942
|
+
* @summary Quote a swap
|
|
2943
|
+
* {@link /v1/wallets/:address/swap/quote}
|
|
2944
|
+
*/
|
|
2945
|
+
declare function createSwapQuote(address: CreateSwapQuotePathParams["address"], data: CreateSwapQuoteMutationRequest, config?: Partial<RequestConfig<CreateSwapQuoteMutationRequest>> & {
|
|
2946
|
+
client?: Client;
|
|
2947
|
+
}): Promise<CreateSwapQuote200>;
|
|
2948
|
+
/**
|
|
2949
|
+
* @description Provisions a fiat→USDC virtual account for a `(currency, destination chain)` pair. Requires an approved identity verification. Returns 204; refetch the list to see the new account.
|
|
2950
|
+
* @summary Create a virtual account
|
|
2951
|
+
* {@link /v1/wallets/:address/virtual-accounts}
|
|
2952
|
+
*/
|
|
2953
|
+
declare function createVirtualAccount(address: CreateVirtualAccountPathParams["address"], data: CreateVirtualAccountMutationRequest, config?: Partial<RequestConfig<CreateVirtualAccountMutationRequest>> & {
|
|
2954
|
+
client?: Client;
|
|
2955
|
+
}): Promise<any>;
|
|
2956
|
+
/**
|
|
2957
|
+
* @description Disconnects an exchange and returns 204. Idempotent: disconnecting an already-disconnected exchange still returns 204.
|
|
2958
|
+
* @summary Disconnect an exchange
|
|
2959
|
+
* {@link /v1/wallets/:address/exchange/:exchange}
|
|
2960
|
+
*/
|
|
2961
|
+
declare function disconnectExchange(address: DisconnectExchangePathParams["address"], exchange: DisconnectExchangePathParams["exchange"], config?: Partial<RequestConfig> & {
|
|
2962
|
+
client?: Client;
|
|
2963
|
+
}): Promise<any>;
|
|
2964
|
+
/**
|
|
2965
|
+
* @description Executes a quoted withdrawal. Returns the withdrawal (now `pending`), or `{ requires_2fa: true }` when the exchange demands a 2FA code — re-submit with `twofa`.
|
|
2966
|
+
* @summary Execute an exchange withdrawal
|
|
2967
|
+
* {@link /v1/wallets/:address/exchange/:exchange/withdraw}
|
|
2968
|
+
*/
|
|
2969
|
+
declare function executeExchangeWithdrawal(address: ExecuteExchangeWithdrawalPathParams["address"], exchange: ExecuteExchangeWithdrawalPathParams["exchange"], data: ExecuteExchangeWithdrawalMutationRequest, config?: Partial<RequestConfig<ExecuteExchangeWithdrawalMutationRequest>> & {
|
|
2970
|
+
client?: Client;
|
|
2971
|
+
}): Promise<ExecuteExchangeWithdrawal200>;
|
|
2972
|
+
/**
|
|
2973
|
+
* @description Returns a single token's balance on one chain. `token` is a catalog symbol (`eth`, `hype`, `usdc`, `usdt`).
|
|
2974
|
+
* @summary Get one token balance
|
|
2975
|
+
* {@link /v1/wallets/:address/balances/:chain/:token}
|
|
2976
|
+
*/
|
|
2977
|
+
declare function getBalance(address: GetBalancePathParams["address"], chain: GetBalancePathParams["chain"], token: GetBalancePathParams["token"], config?: Partial<RequestConfig> & {
|
|
2978
|
+
client?: Client;
|
|
2979
|
+
}): Promise<GetBalance200>;
|
|
2980
|
+
/**
|
|
2981
|
+
* @description Returns the wallet's token balances across the supported source chains, each with its USD value. Filter with `?chains=1,8453`; the default is every readable chain.
|
|
2982
|
+
* @summary List wallet balances
|
|
2983
|
+
* {@link /v1/wallets/:address/balances}
|
|
2984
|
+
*/
|
|
2985
|
+
declare function getBalances(address: GetBalancesPathParams["address"], params?: GetBalancesQueryParams, config?: Partial<RequestConfig> & {
|
|
2986
|
+
client?: Client;
|
|
2987
|
+
}): Promise<GetBalances200>;
|
|
2988
|
+
/**
|
|
2989
|
+
* @description Returns a Cash App order by id, including its current status and payment link.
|
|
2990
|
+
* @summary Get a Cash App order
|
|
2991
|
+
* {@link /v1/wallets/:address/cashapp/:id}
|
|
2992
|
+
*/
|
|
2993
|
+
declare function getCashAppOrder(address: GetCashAppOrderPathParams["address"], id: GetCashAppOrderPathParams["id"], config?: Partial<RequestConfig> & {
|
|
2994
|
+
client?: Client;
|
|
2995
|
+
}): Promise<GetCashAppOrder200>;
|
|
2996
|
+
/**
|
|
2997
|
+
* @description Returns the connection status for an exchange. Not-connected is a 200 with `connected: false` — poll this to drive the connect UI.
|
|
2998
|
+
* @summary Get exchange connection status
|
|
2999
|
+
* {@link /v1/wallets/:address/exchange/:exchange}
|
|
3000
|
+
*/
|
|
3001
|
+
declare function getExchange(address: GetExchangePathParams["address"], exchange: GetExchangePathParams["exchange"], config?: Partial<RequestConfig> & {
|
|
3002
|
+
client?: Client;
|
|
3003
|
+
}): Promise<GetExchange200>;
|
|
3004
|
+
/**
|
|
3005
|
+
* @description Returns the assets the connected exchange can pay out and, per asset, the networks it withdraws to with their live per-network limits.
|
|
3006
|
+
* @summary List exchange withdrawable assets
|
|
3007
|
+
* {@link /v1/wallets/:address/exchange/:exchange/assets}
|
|
3008
|
+
*/
|
|
3009
|
+
declare function getExchangeAssets(address: GetExchangeAssetsPathParams["address"], exchange: GetExchangeAssetsPathParams["exchange"], config?: Partial<RequestConfig> & {
|
|
3010
|
+
client?: Client;
|
|
3011
|
+
}): Promise<GetExchangeAssets200>;
|
|
3012
|
+
/**
|
|
3013
|
+
* @description Returns a withdrawal by id, including its status and — once broadcast — its transaction hash.
|
|
3014
|
+
* @summary Get an exchange withdrawal
|
|
3015
|
+
* {@link /v1/wallets/:address/exchange/:exchange/withdraw/:id}
|
|
3016
|
+
*/
|
|
3017
|
+
declare function getExchangeWithdrawal(address: GetExchangeWithdrawalPathParams["address"], exchange: GetExchangeWithdrawalPathParams["exchange"], id: GetExchangeWithdrawalPathParams["id"], config?: Partial<RequestConfig> & {
|
|
3018
|
+
client?: Client;
|
|
3019
|
+
}): Promise<GetExchangeWithdrawal200>;
|
|
3020
|
+
/**
|
|
3021
|
+
* @description Returns USD→currency rates for showing amounts in the app's display currency. Public; rates are cached upstream.
|
|
3022
|
+
* @summary Get display-currency exchange rates
|
|
3023
|
+
* {@link /v1/fx}
|
|
3024
|
+
*/
|
|
3025
|
+
declare function getFxRates(config?: Partial<RequestConfig> & {
|
|
3026
|
+
client?: Client;
|
|
3027
|
+
}): Promise<GetFxRates200>;
|
|
3028
|
+
/**
|
|
3029
|
+
* @description Returns the hosted identity-verification URL for the wallet. Present it to the user, then poll `GET /v1/wallets/:address` for the resulting status.
|
|
3030
|
+
* @summary Get the identity-verification link
|
|
3031
|
+
* {@link /v1/wallets/:address/identity-verification}
|
|
3032
|
+
*/
|
|
3033
|
+
declare function getIdentityVerificationLink(address: GetIdentityVerificationLinkPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3034
|
+
client?: Client;
|
|
3035
|
+
}): Promise<GetIdentityVerificationLink200>;
|
|
3036
|
+
/**
|
|
3037
|
+
* @description Returns the environment's Stripe publishable key, which the SDK feeds to `loadCryptoOnrampAndInitialize(pk)` on init. `session`-gated for consistency with the rest of the onramp routes, not secrecy — a publishable key is public by design.
|
|
3038
|
+
* @summary Get the Stripe publishable key
|
|
3039
|
+
* {@link /v1/wallets/:address/stripe/config}
|
|
3040
|
+
*/
|
|
3041
|
+
declare function getStripeConfig(address: GetStripeConfigPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3042
|
+
client?: Client;
|
|
3043
|
+
}): Promise<GetStripeConfig200>;
|
|
3044
|
+
/**
|
|
3045
|
+
* @description Reads the crypto customer's KYC and document-verification statuses (the two the SDK branches on) plus its provided fields — the same projection as the customer POST, but a pure read with no persistence. The SDK polls it while the verifying step is on screen.
|
|
3046
|
+
* @summary Poll a Stripe crypto customer's status
|
|
3047
|
+
* {@link /v1/wallets/:address/stripe/customer/:crypto_customer_id}
|
|
3048
|
+
*/
|
|
3049
|
+
declare function getStripeCustomerStatus(address: GetStripeCustomerStatusPathParams["address"], crypto_customer_id: GetStripeCustomerStatusPathParams["crypto_customer_id"], config?: Partial<RequestConfig> & {
|
|
3050
|
+
client?: Client;
|
|
3051
|
+
}): Promise<GetStripeCustomerStatus200>;
|
|
3052
|
+
/**
|
|
3053
|
+
* @description Returns the settlement status of one onramp order from the local mirror, scoped to the session's wallet. The SDK polls this after checkout for the webhook-confirmed `fulfillment_complete` (or a `rejected` / `error` terminal state).
|
|
3054
|
+
* @summary Get a Stripe onramp order
|
|
3055
|
+
* {@link /v1/wallets/:address/stripe/order/:id}
|
|
3056
|
+
*/
|
|
3057
|
+
declare function getStripeOrder(address: GetStripeOrderPathParams["address"], id: GetStripeOrderPathParams["id"], config?: Partial<RequestConfig> & {
|
|
3058
|
+
client?: Client;
|
|
3059
|
+
}): Promise<GetStripeOrder200>;
|
|
3060
|
+
/**
|
|
3061
|
+
* @description Returns an informational price estimate for a source amount (fiat spend) or destination amount (target USDC) — the destination amount, the buyer's all-in source total, the fee components, and when the rate was fetched. Pin exactly one. No customer, token, or session is involved (it prices with the secret key alone), so it's `session`-gated only. Display-only: Stripe sets the final amounts at session creation.
|
|
3062
|
+
* @summary Quote a Stripe onramp amount
|
|
3063
|
+
* {@link /v1/wallets/:address/stripe/quote}
|
|
3064
|
+
*/
|
|
3065
|
+
declare function getStripeQuote(address: GetStripeQuotePathParams["address"], params?: GetStripeQuoteQueryParams, config?: Partial<RequestConfig> & {
|
|
3066
|
+
client?: Client;
|
|
3067
|
+
}): Promise<GetStripeQuote200>;
|
|
3068
|
+
/**
|
|
3069
|
+
* @description Reports whether this session is still Link-authenticated and, once the customer POST has run, the persisted crypto customer id and the Link account email. Reads Redis only, so an un-authed session is a 200 with `authenticated: false` (not a 401) — the SDK polls it to re-derive the Stripe session on a cold open.
|
|
3070
|
+
* @summary Get the session's Stripe login state
|
|
3071
|
+
* {@link /v1/wallets/:address/stripe/status}
|
|
3072
|
+
*/
|
|
3073
|
+
declare function getStripeStatus(address: GetStripeStatusPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3074
|
+
client?: Client;
|
|
3075
|
+
}): Promise<GetStripeStatus200>;
|
|
3076
|
+
/**
|
|
3077
|
+
* @description Returns the hosted terms-of-service URL for the wallet. Present it to the user, then poll `GET /v1/wallets/:address` for acceptance.
|
|
3078
|
+
* @summary Get the terms-of-service link
|
|
3079
|
+
* {@link /v1/wallets/:address/terms-of-service}
|
|
3080
|
+
*/
|
|
3081
|
+
declare function getTermsOfServiceLink(address: GetTermsOfServiceLinkPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3082
|
+
client?: Client;
|
|
3083
|
+
}): Promise<GetTermsOfServiceLink200>;
|
|
3084
|
+
/**
|
|
3085
|
+
* @description Returns the current state facts for a wallet: verification status, terms acceptance, and event timestamps. Requires a valid session cookie for the same wallet.
|
|
3086
|
+
* @summary Get wallet state
|
|
3087
|
+
* {@link /v1/wallets/:address}
|
|
3088
|
+
*/
|
|
3089
|
+
declare function getWallet(address: GetWalletPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3090
|
+
client?: Client;
|
|
3091
|
+
}): Promise<GetWallet200>;
|
|
3092
|
+
/**
|
|
3093
|
+
* @description Returns the payment methods the customer has on file. Read-passthrough — the SDK checks this before `collectPaymentMethod` to offer a saved method.
|
|
3094
|
+
* @summary List the customer's payment methods
|
|
3095
|
+
* {@link /v1/wallets/:address/stripe/payment-tokens}
|
|
3096
|
+
*/
|
|
3097
|
+
declare function listStripePaymentTokens(address: ListStripePaymentTokensPathParams["address"], params?: ListStripePaymentTokensQueryParams, config?: Partial<RequestConfig> & {
|
|
3098
|
+
client?: Client;
|
|
3099
|
+
}): Promise<ListStripePaymentTokens200>;
|
|
3100
|
+
/**
|
|
3101
|
+
* @description Returns the crypto wallets registered to the customer's Link account. Read-passthrough — the SDK checks this before `registerWalletAddress` to avoid re-registering a known address.
|
|
3102
|
+
* @summary List the customer's crypto wallets
|
|
3103
|
+
* {@link /v1/wallets/:address/stripe/wallets}
|
|
3104
|
+
*/
|
|
3105
|
+
declare function listStripeWallets(address: ListStripeWalletsPathParams["address"], params?: ListStripeWalletsQueryParams, config?: Partial<RequestConfig> & {
|
|
3106
|
+
client?: Client;
|
|
3107
|
+
}): Promise<ListStripeWallets200>;
|
|
3108
|
+
/**
|
|
3109
|
+
* @description Returns the wallet's virtual accounts, each with the bank-side deposit instructions the user needs to send fiat.
|
|
3110
|
+
* @summary List virtual accounts
|
|
3111
|
+
* {@link /v1/wallets/:address/virtual-accounts}
|
|
3112
|
+
*/
|
|
3113
|
+
declare function listVirtualAccounts(address: ListVirtualAccountsPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3114
|
+
client?: Client;
|
|
3115
|
+
}): Promise<ListVirtualAccounts200>;
|
|
3116
|
+
/**
|
|
3117
|
+
* @description Rotates the refresh cookie and mints a fresh session cookie pair. The `calm_refresh` cookie is the only credential — no body or headers required.
|
|
3118
|
+
* @summary Refresh a session
|
|
3119
|
+
* {@link /v1/session/:address/refresh}
|
|
3120
|
+
*/
|
|
3121
|
+
declare function refreshSession(address: RefreshSessionPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3122
|
+
client?: Client;
|
|
3123
|
+
}): Promise<RefreshSession200>;
|
|
3124
|
+
/**
|
|
3125
|
+
* @description Submits the registration form (name + email) for the wallet. Returns 204; the SDK refetches the wallet state to pick up the new facts.
|
|
3126
|
+
* @summary Register a wallet
|
|
3127
|
+
* {@link /v1/wallets/:address/register}
|
|
3128
|
+
*/
|
|
3129
|
+
declare function registerWallet(address: RegisterWalletPathParams["address"], data: RegisterWalletMutationRequest, config?: Partial<RequestConfig<RegisterWalletMutationRequest>> & {
|
|
3130
|
+
client?: Client;
|
|
3131
|
+
}): Promise<any>;
|
|
3132
|
+
/**
|
|
3133
|
+
* @description Records that the user finished the identity-verification flow and returns 204. Internal to the SDK's instant-submit UX — partners should create the link, then poll `GET /v1/wallets/:address` for the resulting status instead.
|
|
3134
|
+
* @summary Record identity-verification completion
|
|
3135
|
+
* {@link /v1/wallets/:address/identity-verification/submit}
|
|
3136
|
+
*/
|
|
3137
|
+
declare function submitIdentityVerification(address: SubmitIdentityVerificationPathParams["address"], config?: Partial<RequestConfig> & {
|
|
3138
|
+
client?: Client;
|
|
3139
|
+
}): Promise<any>;
|
|
3140
|
+
/**
|
|
3141
|
+
* @description Records that the user finished the terms-of-service flow and returns 204. Internal to the SDK's instant-submit UX — partners should create the link, then poll `GET /v1/wallets/:address` for acceptance instead.
|
|
3142
|
+
* @summary Record terms-of-service completion
|
|
3143
|
+
* {@link /v1/wallets/:address/terms-of-service/submit}
|
|
3144
|
+
*/
|
|
3145
|
+
declare function submitTermsOfService(address: SubmitTermsOfServicePathParams["address"], config?: Partial<RequestConfig> & {
|
|
3146
|
+
client?: Client;
|
|
3147
|
+
}): Promise<any>;
|
|
3148
|
+
/**
|
|
3149
|
+
* @description Updates a virtual account's destination chain. Returns 204; refetch the list to see the change.
|
|
3150
|
+
* @summary Update a virtual account
|
|
3151
|
+
* {@link /v1/wallets/:address/virtual-accounts/:virtual-account-id}
|
|
3152
|
+
*/
|
|
3153
|
+
declare function updateVirtualAccount(address: UpdateVirtualAccountPathParams["address"], virtualAccountId: UpdateVirtualAccountPathParams["virtual-account-id"], data: UpdateVirtualAccountMutationRequest, config?: Partial<RequestConfig<UpdateVirtualAccountMutationRequest>> & {
|
|
3154
|
+
client?: Client;
|
|
3155
|
+
}): Promise<any>;
|
|
3156
|
+
declare function configureCalm(options: {
|
|
3157
|
+
apiUrl: string;
|
|
3158
|
+
}): void;
|
|
3159
|
+
export { ApiError, type CheckoutStripeSession200, type CheckoutStripeSession400, type CheckoutStripeSession401, type CheckoutStripeSession402, type CheckoutStripeSession403, type CheckoutStripeSession409, type CheckoutStripeSession429, type CheckoutStripeSession502, type CheckoutStripeSessionMutation, type CheckoutStripeSessionMutationResponse, type CheckoutStripeSessionPathParams, type ClearSession204, type ClearSession429, type ClearSessionMutation, type ClearSessionMutationResponse, type Client, type ConnectExchange200, type ConnectExchange400, type ConnectExchange401, type ConnectExchange403, type ConnectExchange404, type ConnectExchange429, type ConnectExchange502, type ConnectExchangeMutation, type ConnectExchangeMutationResponse, type ConnectExchangePathParams, type ConnectExchangePathParamsExchangeEnumKey, type CreateCardLink200, type CreateCardLink400, type CreateCardLink401, type CreateCardLink403, type CreateCardLink429, type CreateCardLinkMutation, type CreateCardLinkMutationRequest, type CreateCardLinkMutationRequestCurrencyEnumKey, type CreateCardLinkMutationResponse, type CreateCardLinkPathParams, type CreateCashAppOrder200, type CreateCashAppOrder200StatusEnumKey, type CreateCashAppOrder400, type CreateCashAppOrder401, type CreateCashAppOrder403, type CreateCashAppOrder404, type CreateCashAppOrder429, type CreateCashAppOrder502, type CreateCashAppOrderMutation, type CreateCashAppOrderMutationRequest, type CreateCashAppOrderMutationResponse, type CreateCashAppOrderPathParams, type CreateCashAppQuote200, type CreateCashAppQuote400, type CreateCashAppQuote401, type CreateCashAppQuote403, type CreateCashAppQuote429, type CreateCashAppQuote502, type CreateCashAppQuoteMutation, type CreateCashAppQuoteMutationRequest, type CreateCashAppQuoteMutationResponse, type CreateCashAppQuotePathParams, type CreateDepositAddress200, type CreateDepositAddress400, type CreateDepositAddress401, type CreateDepositAddress403, type CreateDepositAddress404, type CreateDepositAddress429, type CreateDepositAddressMutation, type CreateDepositAddressMutationRequest, type CreateDepositAddressMutationRequestSourceTokenEnumKey, type CreateDepositAddressMutationResponse, type CreateDepositAddressPathParams, type CreateExchangeWithdrawQuote200, type CreateExchangeWithdrawQuote400, type CreateExchangeWithdrawQuote401, type CreateExchangeWithdrawQuote403, type CreateExchangeWithdrawQuote404, type CreateExchangeWithdrawQuote409, type CreateExchangeWithdrawQuote429, type CreateExchangeWithdrawQuote502, type CreateExchangeWithdrawQuoteMutation, type CreateExchangeWithdrawQuoteMutationRequest, type CreateExchangeWithdrawQuoteMutationResponse, type CreateExchangeWithdrawQuotePathParams, type CreateExchangeWithdrawQuotePathParamsExchangeEnumKey, type CreateSessionDynamic200, type CreateSessionDynamic400, type CreateSessionDynamic401, type CreateSessionDynamic403, type CreateSessionDynamic429, type CreateSessionDynamicMutation, type CreateSessionDynamicMutationResponse, type CreateSessionDynamicPathParams, type CreateSessionPrivy200, type CreateSessionPrivy400, type CreateSessionPrivy401, type CreateSessionPrivy403, type CreateSessionPrivy429, type CreateSessionPrivyMutation, type CreateSessionPrivyMutationResponse, type CreateSessionPrivyPathParams, type CreateSessionSiwe200, type CreateSessionSiwe400, type CreateSessionSiwe401, type CreateSessionSiwe403, type CreateSessionSiwe429, type CreateSessionSiweMutation, type CreateSessionSiweMutationRequest, type CreateSessionSiweMutationResponse, type CreateSessionSiwePathParams, type CreateSiweNonce200, type CreateSiweNonce400, type CreateSiweNonce429, type CreateSiweNonceMutation, type CreateSiweNonceMutationResponse, type CreateSiweNoncePathParams, type CreateStripeAuthIntent200, type CreateStripeAuthIntent400, type CreateStripeAuthIntent401, type CreateStripeAuthIntent403, type CreateStripeAuthIntent404, type CreateStripeAuthIntent429, type CreateStripeAuthIntent502, type CreateStripeAuthIntentMutation, type CreateStripeAuthIntentMutationRequest, type CreateStripeAuthIntentMutationResponse, type CreateStripeAuthIntentPathParams, type CreateStripeCustomer204, type CreateStripeCustomer400, type CreateStripeCustomer401, type CreateStripeCustomer403, type CreateStripeCustomer404, type CreateStripeCustomer429, type CreateStripeCustomer502, type CreateStripeCustomerMutation, type CreateStripeCustomerMutationResponse, type CreateStripeCustomerPathParams, type CreateStripeSession200, type CreateStripeSession400, type CreateStripeSession401, type CreateStripeSession403, type CreateStripeSession404, type CreateStripeSession429, type CreateStripeSession502, type CreateStripeSessionMutation, type CreateStripeSessionMutationRequest, type CreateStripeSessionMutationResponse, type CreateStripeSessionPathParams, type CreateStripeTokens204, type CreateStripeTokens400, type CreateStripeTokens401, type CreateStripeTokens403, type CreateStripeTokens404, type CreateStripeTokens409, type CreateStripeTokens429, type CreateStripeTokens502, type CreateStripeTokensMutation, type CreateStripeTokensMutationRequest, type CreateStripeTokensMutationResponse, type CreateStripeTokensPathParams, type CreateSwapQuote200, type CreateSwapQuote400, type CreateSwapQuote401, type CreateSwapQuote403, type CreateSwapQuote429, type CreateSwapQuote502, type CreateSwapQuoteMutation, type CreateSwapQuoteMutationRequest, type CreateSwapQuoteMutationRequestSourceTokenEnumKey, type CreateSwapQuoteMutationRequestTradeTypeEnumKey, type CreateSwapQuoteMutationResponse, type CreateSwapQuotePathParams, type CreateVirtualAccount204, type CreateVirtualAccount400, type CreateVirtualAccount401, type CreateVirtualAccount403, type CreateVirtualAccount404, type CreateVirtualAccount409, type CreateVirtualAccount429, type CreateVirtualAccount502, type CreateVirtualAccountMutation, type CreateVirtualAccountMutationRequest, type CreateVirtualAccountMutationRequestCurrencyEnumKey, type CreateVirtualAccountMutationResponse, type CreateVirtualAccountPathParams, type DataCurrencyEnumKey, type DisconnectExchange204, type DisconnectExchange400, type DisconnectExchange401, type DisconnectExchange403, type DisconnectExchange404, type DisconnectExchange429, type DisconnectExchange502, type DisconnectExchangeMutation, type DisconnectExchangeMutationResponse, type DisconnectExchangePathParams, type DisconnectExchangePathParamsExchangeEnumKey, type Error$1 as Error, type ExecuteExchangeWithdrawal200, type ExecuteExchangeWithdrawal200StatusEnumKey, type ExecuteExchangeWithdrawal400, type ExecuteExchangeWithdrawal401, type ExecuteExchangeWithdrawal403, type ExecuteExchangeWithdrawal404, type ExecuteExchangeWithdrawal409, type ExecuteExchangeWithdrawal429, type ExecuteExchangeWithdrawal502, type ExecuteExchangeWithdrawalMutation, type ExecuteExchangeWithdrawalMutationRequest, type ExecuteExchangeWithdrawalMutationResponse, type ExecuteExchangeWithdrawalPathParams, type ExecuteExchangeWithdrawalPathParamsExchangeEnumKey, type GetBalance200, type GetBalance400, type GetBalance401, type GetBalance403, type GetBalance404, type GetBalance429, type GetBalancePathParams, type GetBalancePathParamsTokenEnumKey, type GetBalanceQuery, type GetBalanceQueryResponse, type GetBalances200, type GetBalances400, type GetBalances401, type GetBalances403, type GetBalances429, type GetBalancesPathParams, type GetBalancesQuery, type GetBalancesQueryParams, type GetBalancesQueryResponse, type GetCashAppOrder200, type GetCashAppOrder200StatusEnumKey, type GetCashAppOrder400, type GetCashAppOrder401, type GetCashAppOrder403, type GetCashAppOrder404, type GetCashAppOrder429, type GetCashAppOrderPathParams, type GetCashAppOrderQuery, type GetCashAppOrderQueryResponse, type GetExchange200, type GetExchange400, type GetExchange401, type GetExchange403, type GetExchange404, type GetExchange429, type GetExchange502, type GetExchangeAssets200, type GetExchangeAssets400, type GetExchangeAssets401, type GetExchangeAssets403, type GetExchangeAssets404, type GetExchangeAssets409, type GetExchangeAssets429, type GetExchangeAssets502, type GetExchangeAssetsPathParams, type GetExchangeAssetsPathParamsExchangeEnumKey, type GetExchangeAssetsQuery, type GetExchangeAssetsQueryResponse, type GetExchangePathParams, type GetExchangePathParamsExchangeEnumKey, type GetExchangeQuery, type GetExchangeQueryResponse, type GetExchangeWithdrawal200, type GetExchangeWithdrawal200StatusEnumKey, type GetExchangeWithdrawal400, type GetExchangeWithdrawal401, type GetExchangeWithdrawal403, type GetExchangeWithdrawal404, type GetExchangeWithdrawal429, type GetExchangeWithdrawalPathParams, type GetExchangeWithdrawalPathParamsExchangeEnumKey, type GetExchangeWithdrawalQuery, type GetExchangeWithdrawalQueryResponse, type GetFxRates200, type GetFxRates429, type GetFxRates502, type GetFxRatesQuery, type GetFxRatesQueryResponse, type GetIdentityVerificationLink200, type GetIdentityVerificationLink400, type GetIdentityVerificationLink401, type GetIdentityVerificationLink403, type GetIdentityVerificationLink404, type GetIdentityVerificationLink429, type GetIdentityVerificationLink502, type GetIdentityVerificationLinkMutation, type GetIdentityVerificationLinkMutationResponse, type GetIdentityVerificationLinkPathParams, type GetStripeConfig200, type GetStripeConfig400, type GetStripeConfig401, type GetStripeConfig403, type GetStripeConfig429, type GetStripeConfigPathParams, type GetStripeConfigQuery, type GetStripeConfigQueryResponse, type GetStripeCustomerStatus200, type GetStripeCustomerStatus400, type GetStripeCustomerStatus401, type GetStripeCustomerStatus403, type GetStripeCustomerStatus404, type GetStripeCustomerStatus429, type GetStripeCustomerStatus502, type GetStripeCustomerStatusPathParams, type GetStripeCustomerStatusQuery, type GetStripeCustomerStatusQueryResponse, type GetStripeOrder200, type GetStripeOrder200StatusEnumKey, type GetStripeOrder400, type GetStripeOrder401, type GetStripeOrder403, type GetStripeOrder404, type GetStripeOrder429, type GetStripeOrderPathParams, type GetStripeOrderQuery, type GetStripeOrderQueryResponse, type GetStripeQuote200, type GetStripeQuote400, type GetStripeQuote401, type GetStripeQuote403, type GetStripeQuote429, type GetStripeQuote502, type GetStripeQuotePathParams, type GetStripeQuoteQuery, type GetStripeQuoteQueryParams, type GetStripeQuoteQueryResponse, type GetStripeStatus200, type GetStripeStatus400, type GetStripeStatus401, type GetStripeStatus403, type GetStripeStatus429, type GetStripeStatusPathParams, type GetStripeStatusQuery, type GetStripeStatusQueryResponse, type GetTermsOfServiceLink200, type GetTermsOfServiceLink400, type GetTermsOfServiceLink401, type GetTermsOfServiceLink403, type GetTermsOfServiceLink404, type GetTermsOfServiceLink429, type GetTermsOfServiceLink502, type GetTermsOfServiceLinkMutation, type GetTermsOfServiceLinkMutationResponse, type GetTermsOfServiceLinkPathParams, type GetWallet200, type GetWallet200IdentityVerificationStatusEnumKey, type GetWallet400, type GetWallet401, type GetWallet403, type GetWallet404, type GetWallet429, type GetWalletPathParams, type GetWalletQuery, type GetWalletQueryResponse, type ListStripePaymentTokens200, type ListStripePaymentTokens400, type ListStripePaymentTokens401, type ListStripePaymentTokens403, type ListStripePaymentTokens404, type ListStripePaymentTokens429, type ListStripePaymentTokens502, type ListStripePaymentTokensPathParams, type ListStripePaymentTokensQuery, type ListStripePaymentTokensQueryParams, type ListStripePaymentTokensQueryResponse, type ListStripeWallets200, type ListStripeWallets400, type ListStripeWallets401, type ListStripeWallets403, type ListStripeWallets404, type ListStripeWallets429, type ListStripeWallets502, type ListStripeWalletsPathParams, type ListStripeWalletsQuery, type ListStripeWalletsQueryParams, type ListStripeWalletsQueryResponse, type ListVirtualAccounts200, type ListVirtualAccounts400, type ListVirtualAccounts401, type ListVirtualAccounts403, type ListVirtualAccounts404, type ListVirtualAccounts429, type ListVirtualAccountsPathParams, type ListVirtualAccountsQuery, type ListVirtualAccountsQueryResponse, type RefreshSession200, type RefreshSession400, type RefreshSession401, type RefreshSession403, type RefreshSession429, type RefreshSessionMutation, type RefreshSessionMutationResponse, type RefreshSessionPathParams, type RegisterWallet204, type RegisterWallet400, type RegisterWallet401, type RegisterWallet403, type RegisterWallet404, type RegisterWallet409, type RegisterWallet429, type RegisterWallet502, type RegisterWalletMutation, type RegisterWalletMutationRequest, type RegisterWalletMutationResponse, type RegisterWalletPathParams, type RequestConfig, type RequestCredentials, type ResponseConfig, type ResponseErrorConfig, type SubmitIdentityVerification204, type SubmitIdentityVerification400, type SubmitIdentityVerification401, type SubmitIdentityVerification403, type SubmitIdentityVerification404, type SubmitIdentityVerification429, type SubmitIdentityVerificationMutation, type SubmitIdentityVerificationMutationResponse, type SubmitIdentityVerificationPathParams, type SubmitTermsOfService204, type SubmitTermsOfService400, type SubmitTermsOfService401, type SubmitTermsOfService403, type SubmitTermsOfService404, type SubmitTermsOfService429, type SubmitTermsOfServiceMutation, type SubmitTermsOfServiceMutationResponse, type SubmitTermsOfServicePathParams, type UpdateVirtualAccount204, type UpdateVirtualAccount400, type UpdateVirtualAccount401, type UpdateVirtualAccount403, type UpdateVirtualAccount404, type UpdateVirtualAccount429, type UpdateVirtualAccount502, type UpdateVirtualAccountMutation, type UpdateVirtualAccountMutationRequest, type UpdateVirtualAccountMutationResponse, type UpdateVirtualAccountPathParams, checkoutStripeSession, clearSession, client, client as default, configureCalm, connectExchange, connectExchangePathParamsExchangeEnum, createCardLink, createCardLinkMutationRequestCurrencyEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppQuote, createDepositAddress, createDepositAddressMutationRequestSourceTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuotePathParamsExchangeEnum, createSessionDynamic, createSessionPrivy, createSessionSiwe, createSiweNonce, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeTokens, createSwapQuote, createSwapQuoteMutationRequestSourceTokenEnum, createSwapQuoteMutationRequestTradeTypeEnum, createVirtualAccount, createVirtualAccountMutationRequestCurrencyEnum, dataCurrencyEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalance, getBalancePathParamsTokenEnum, getBalances, getCashAppOrder, getCashAppOrder200StatusEnum, getConfig, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationLink, getStripeConfig, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceLink, getWallet, getWallet200IdentityVerificationStatusEnum, listStripePaymentTokens, listStripeWallets, listVirtualAccounts, refreshSession, registerWallet, setConfig, submitIdentityVerification, submitTermsOfService, updateVirtualAccount };
|