@b3dotfun/sdk 0.0.69 → 0.0.70-alpha.1
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/cjs/anyspend/index.d.ts +1 -0
- package/dist/cjs/anyspend/index.js +1 -0
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +6 -0
- package/dist/cjs/anyspend/react/components/AnySpend.js +13 -1
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +3 -1
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +1 -0
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +6 -2
- package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.d.ts +1 -0
- package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.js +3 -1
- package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpside.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpside.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +2 -0
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +1 -1
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +2 -2
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +2 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +2 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +16 -0
- package/dist/cjs/anyspend/services/anyspend.d.ts +2 -1
- package/dist/cjs/anyspend/services/anyspend.js +2 -1
- package/dist/cjs/anyspend/types/api.d.ts +295 -0
- package/dist/cjs/anyspend/utils/validation.d.ts +67 -0
- package/dist/cjs/anyspend/utils/validation.js +157 -0
- package/dist/cjs/global-account/react/components/ProfileEditor/ProfileEditor.js +14 -4
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +4 -0
- package/dist/esm/anyspend/index.d.ts +1 -0
- package/dist/esm/anyspend/index.js +1 -0
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +6 -0
- package/dist/esm/anyspend/react/components/AnySpend.js +13 -1
- package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +3 -1
- package/dist/esm/anyspend/react/components/AnySpendBondKit.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +1 -0
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +6 -2
- package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.d.ts +1 -0
- package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.js +3 -1
- package/dist/esm/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnySpendDepositUpside.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeUpside.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeUpside.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +2 -0
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +1 -1
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +2 -2
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +2 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +2 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +16 -0
- package/dist/esm/anyspend/services/anyspend.d.ts +2 -1
- package/dist/esm/anyspend/services/anyspend.js +2 -1
- package/dist/esm/anyspend/types/api.d.ts +295 -0
- package/dist/esm/anyspend/utils/validation.d.ts +67 -0
- package/dist/esm/anyspend/utils/validation.js +153 -0
- package/dist/esm/global-account/react/components/ProfileEditor/ProfileEditor.js +14 -4
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +4 -0
- package/dist/types/anyspend/index.d.ts +1 -0
- package/dist/types/anyspend/react/components/AnySpend.d.ts +6 -0
- package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +3 -1
- package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +1 -0
- package/dist/types/anyspend/react/components/AnySpendCustomExactIn.d.ts +1 -0
- package/dist/types/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnySpendStakeUpside.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +2 -0
- package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
- package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +16 -0
- package/dist/types/anyspend/services/anyspend.d.ts +2 -1
- package/dist/types/anyspend/types/api.d.ts +295 -0
- package/dist/types/anyspend/utils/validation.d.ts +67 -0
- package/dist/types/global-account/react/stores/useModalStore.d.ts +4 -0
- package/package.json +3 -2
- package/src/anyspend/index.ts +1 -0
- package/src/anyspend/react/components/AnySpend.tsx +23 -0
- package/src/anyspend/react/components/AnySpendBondKit.tsx +3 -1
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +3 -0
- package/src/anyspend/react/components/AnySpendCustom.tsx +8 -1
- package/src/anyspend/react/components/AnySpendCustomExactIn.tsx +4 -0
- package/src/anyspend/react/components/AnySpendDepositUpside.tsx +3 -0
- package/src/anyspend/react/components/AnySpendNFT.tsx +3 -0
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +3 -0
- package/src/anyspend/react/components/AnySpendStakeB3ExactIn.tsx +3 -0
- package/src/anyspend/react/components/AnySpendStakeUpside.tsx +3 -0
- package/src/anyspend/react/components/AnySpendStakeUpsideExactIn.tsx +3 -0
- package/src/anyspend/react/components/AnySpendTournament.tsx +3 -0
- package/src/anyspend/react/components/AnyspendDepositHype.tsx +3 -0
- package/src/anyspend/react/components/AnyspendSignatureMint.tsx +3 -0
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +2 -0
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +13 -1
- package/src/anyspend/services/anyspend.ts +3 -0
- package/src/anyspend/types/api.ts +295 -0
- package/src/anyspend/utils/validation.ts +209 -0
- package/src/global-account/react/components/ProfileEditor/ProfileEditor.tsx +20 -6
- package/src/global-account/react/stores/useModalStore.ts +4 -0
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
7
|
"/chains/{chainId}/tokens": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
8
14
|
/**
|
|
9
15
|
* Get tokens for a chain
|
|
10
16
|
* @description Retrieves available tokens for a specific blockchain
|
|
@@ -20,6 +26,7 @@ export interface paths {
|
|
|
20
26
|
/** @description Maximum number of tokens to return */
|
|
21
27
|
limit?: number;
|
|
22
28
|
};
|
|
29
|
+
header?: never;
|
|
23
30
|
path: {
|
|
24
31
|
/**
|
|
25
32
|
* @description Blockchain chain ID
|
|
@@ -27,10 +34,15 @@ export interface paths {
|
|
|
27
34
|
*/
|
|
28
35
|
chainId: number;
|
|
29
36
|
};
|
|
37
|
+
cookie?: never;
|
|
30
38
|
};
|
|
39
|
+
requestBody?: never;
|
|
31
40
|
responses: {
|
|
32
41
|
/** @description Tokens retrieved successfully */
|
|
33
42
|
200: {
|
|
43
|
+
headers: {
|
|
44
|
+
[name: string]: unknown;
|
|
45
|
+
};
|
|
34
46
|
content: {
|
|
35
47
|
"application/json": {
|
|
36
48
|
/** @example true */
|
|
@@ -61,6 +73,9 @@ export interface paths {
|
|
|
61
73
|
};
|
|
62
74
|
/** @description Bad request */
|
|
63
75
|
400: {
|
|
76
|
+
headers: {
|
|
77
|
+
[name: string]: unknown;
|
|
78
|
+
};
|
|
64
79
|
content: {
|
|
65
80
|
"application/json": {
|
|
66
81
|
/** @example false */
|
|
@@ -74,8 +89,21 @@ export interface paths {
|
|
|
74
89
|
};
|
|
75
90
|
};
|
|
76
91
|
};
|
|
92
|
+
put?: never;
|
|
93
|
+
post?: never;
|
|
94
|
+
delete?: never;
|
|
95
|
+
options?: never;
|
|
96
|
+
head?: never;
|
|
97
|
+
patch?: never;
|
|
98
|
+
trace?: never;
|
|
77
99
|
};
|
|
78
100
|
"/onramp/coinbase/options": {
|
|
101
|
+
parameters: {
|
|
102
|
+
query?: never;
|
|
103
|
+
header?: never;
|
|
104
|
+
path?: never;
|
|
105
|
+
cookie?: never;
|
|
106
|
+
};
|
|
79
107
|
/**
|
|
80
108
|
* Get Coinbase onramp options
|
|
81
109
|
* @description Retrieves available Coinbase onramp configuration options.
|
|
@@ -112,10 +140,17 @@ export interface paths {
|
|
|
112
140
|
*/
|
|
113
141
|
chainIds?: string[];
|
|
114
142
|
};
|
|
143
|
+
header?: never;
|
|
144
|
+
path?: never;
|
|
145
|
+
cookie?: never;
|
|
115
146
|
};
|
|
147
|
+
requestBody?: never;
|
|
116
148
|
responses: {
|
|
117
149
|
/** @description Coinbase options retrieved successfully */
|
|
118
150
|
200: {
|
|
151
|
+
headers: {
|
|
152
|
+
[name: string]: unknown;
|
|
153
|
+
};
|
|
119
154
|
content: {
|
|
120
155
|
"application/json": {
|
|
121
156
|
/** @example true */
|
|
@@ -218,6 +253,9 @@ export interface paths {
|
|
|
218
253
|
};
|
|
219
254
|
/** @description Bad request */
|
|
220
255
|
400: {
|
|
256
|
+
headers: {
|
|
257
|
+
[name: string]: unknown;
|
|
258
|
+
};
|
|
221
259
|
content: {
|
|
222
260
|
"application/json": {
|
|
223
261
|
/** @example false */
|
|
@@ -231,13 +269,34 @@ export interface paths {
|
|
|
231
269
|
};
|
|
232
270
|
};
|
|
233
271
|
};
|
|
272
|
+
put?: never;
|
|
273
|
+
post?: never;
|
|
274
|
+
delete?: never;
|
|
275
|
+
options?: never;
|
|
276
|
+
head?: never;
|
|
277
|
+
patch?: never;
|
|
278
|
+
trace?: never;
|
|
234
279
|
};
|
|
235
280
|
"/onramp/coinbase/session-token": {
|
|
281
|
+
parameters: {
|
|
282
|
+
query?: never;
|
|
283
|
+
header?: never;
|
|
284
|
+
path?: never;
|
|
285
|
+
cookie?: never;
|
|
286
|
+
};
|
|
287
|
+
get?: never;
|
|
288
|
+
put?: never;
|
|
236
289
|
/**
|
|
237
290
|
* Create Coinbase session token
|
|
238
291
|
* @description Generates a Coinbase Onramp session token that can be reused when constructing buy URLs.
|
|
239
292
|
*/
|
|
240
293
|
post: {
|
|
294
|
+
parameters: {
|
|
295
|
+
query?: never;
|
|
296
|
+
header?: never;
|
|
297
|
+
path?: never;
|
|
298
|
+
cookie?: never;
|
|
299
|
+
};
|
|
241
300
|
requestBody: {
|
|
242
301
|
content: {
|
|
243
302
|
"application/json": components["schemas"]["CoinbaseSessionTokenRequest"];
|
|
@@ -246,12 +305,18 @@ export interface paths {
|
|
|
246
305
|
responses: {
|
|
247
306
|
/** @description Session token created successfully */
|
|
248
307
|
200: {
|
|
308
|
+
headers: {
|
|
309
|
+
[name: string]: unknown;
|
|
310
|
+
};
|
|
249
311
|
content: {
|
|
250
312
|
"application/json": components["schemas"]["CoinbaseSessionTokenResponse"];
|
|
251
313
|
};
|
|
252
314
|
};
|
|
253
315
|
/** @description Bad request */
|
|
254
316
|
400: {
|
|
317
|
+
headers: {
|
|
318
|
+
[name: string]: unknown;
|
|
319
|
+
};
|
|
255
320
|
content: {
|
|
256
321
|
"application/json": {
|
|
257
322
|
/** @example false */
|
|
@@ -265,13 +330,32 @@ export interface paths {
|
|
|
265
330
|
};
|
|
266
331
|
};
|
|
267
332
|
};
|
|
333
|
+
delete?: never;
|
|
334
|
+
options?: never;
|
|
335
|
+
head?: never;
|
|
336
|
+
patch?: never;
|
|
337
|
+
trace?: never;
|
|
268
338
|
};
|
|
269
339
|
"/onramp/coinbase/onramp-url": {
|
|
340
|
+
parameters: {
|
|
341
|
+
query?: never;
|
|
342
|
+
header?: never;
|
|
343
|
+
path?: never;
|
|
344
|
+
cookie?: never;
|
|
345
|
+
};
|
|
346
|
+
get?: never;
|
|
347
|
+
put?: never;
|
|
270
348
|
/**
|
|
271
349
|
* Create Coinbase onramp URL
|
|
272
350
|
* @description Creates a Coinbase Onramp buy URL and optionally returns a session token for reuse.
|
|
273
351
|
*/
|
|
274
352
|
post: {
|
|
353
|
+
parameters: {
|
|
354
|
+
query?: never;
|
|
355
|
+
header?: never;
|
|
356
|
+
path?: never;
|
|
357
|
+
cookie?: never;
|
|
358
|
+
};
|
|
275
359
|
requestBody: {
|
|
276
360
|
content: {
|
|
277
361
|
"application/json": components["schemas"]["CoinbaseOnrampUrlRequest"];
|
|
@@ -280,12 +364,18 @@ export interface paths {
|
|
|
280
364
|
responses: {
|
|
281
365
|
/** @description Onramp URL created successfully */
|
|
282
366
|
200: {
|
|
367
|
+
headers: {
|
|
368
|
+
[name: string]: unknown;
|
|
369
|
+
};
|
|
283
370
|
content: {
|
|
284
371
|
"application/json": components["schemas"]["CoinbaseOnrampUrlResponse"];
|
|
285
372
|
};
|
|
286
373
|
};
|
|
287
374
|
/** @description Bad request */
|
|
288
375
|
400: {
|
|
376
|
+
headers: {
|
|
377
|
+
[name: string]: unknown;
|
|
378
|
+
};
|
|
289
379
|
content: {
|
|
290
380
|
"application/json": {
|
|
291
381
|
/** @example false */
|
|
@@ -299,13 +389,32 @@ export interface paths {
|
|
|
299
389
|
};
|
|
300
390
|
};
|
|
301
391
|
};
|
|
392
|
+
delete?: never;
|
|
393
|
+
options?: never;
|
|
394
|
+
head?: never;
|
|
395
|
+
patch?: never;
|
|
396
|
+
trace?: never;
|
|
302
397
|
};
|
|
303
398
|
"/onramp/coinbase/direct-url": {
|
|
399
|
+
parameters: {
|
|
400
|
+
query?: never;
|
|
401
|
+
header?: never;
|
|
402
|
+
path?: never;
|
|
403
|
+
cookie?: never;
|
|
404
|
+
};
|
|
405
|
+
get?: never;
|
|
406
|
+
put?: never;
|
|
304
407
|
/**
|
|
305
408
|
* Generate direct Coinbase onramp URL
|
|
306
409
|
* @description Generates a direct Coinbase Onramp URL along with the session token backing it.
|
|
307
410
|
*/
|
|
308
411
|
post: {
|
|
412
|
+
parameters: {
|
|
413
|
+
query?: never;
|
|
414
|
+
header?: never;
|
|
415
|
+
path?: never;
|
|
416
|
+
cookie?: never;
|
|
417
|
+
};
|
|
309
418
|
requestBody: {
|
|
310
419
|
content: {
|
|
311
420
|
"application/json": components["schemas"]["CoinbaseDirectOnrampRequest"];
|
|
@@ -314,12 +423,18 @@ export interface paths {
|
|
|
314
423
|
responses: {
|
|
315
424
|
/** @description Direct onramp URL generated successfully */
|
|
316
425
|
200: {
|
|
426
|
+
headers: {
|
|
427
|
+
[name: string]: unknown;
|
|
428
|
+
};
|
|
317
429
|
content: {
|
|
318
430
|
"application/json": components["schemas"]["CoinbaseDirectOnrampResponse"];
|
|
319
431
|
};
|
|
320
432
|
};
|
|
321
433
|
/** @description Bad request */
|
|
322
434
|
400: {
|
|
435
|
+
headers: {
|
|
436
|
+
[name: string]: unknown;
|
|
437
|
+
};
|
|
323
438
|
content: {
|
|
324
439
|
"application/json": {
|
|
325
440
|
/** @example false */
|
|
@@ -333,8 +448,19 @@ export interface paths {
|
|
|
333
448
|
};
|
|
334
449
|
};
|
|
335
450
|
};
|
|
451
|
+
delete?: never;
|
|
452
|
+
options?: never;
|
|
453
|
+
head?: never;
|
|
454
|
+
patch?: never;
|
|
455
|
+
trace?: never;
|
|
336
456
|
};
|
|
337
457
|
"/onramp/stripe/supported": {
|
|
458
|
+
parameters: {
|
|
459
|
+
query?: never;
|
|
460
|
+
header?: never;
|
|
461
|
+
path?: never;
|
|
462
|
+
cookie?: never;
|
|
463
|
+
};
|
|
338
464
|
/**
|
|
339
465
|
* Check Stripe support
|
|
340
466
|
* @description Checks if Stripe onramp and Stripe Web2 are supported based on IP address location and optional transaction amount
|
|
@@ -348,10 +474,17 @@ export interface paths {
|
|
|
348
474
|
*/
|
|
349
475
|
usdAmount?: string;
|
|
350
476
|
};
|
|
477
|
+
header?: never;
|
|
478
|
+
path?: never;
|
|
479
|
+
cookie?: never;
|
|
351
480
|
};
|
|
481
|
+
requestBody?: never;
|
|
352
482
|
responses: {
|
|
353
483
|
/** @description Stripe support status retrieved successfully */
|
|
354
484
|
200: {
|
|
485
|
+
headers: {
|
|
486
|
+
[name: string]: unknown;
|
|
487
|
+
};
|
|
355
488
|
content: {
|
|
356
489
|
"application/json": {
|
|
357
490
|
/** @example true */
|
|
@@ -374,6 +507,9 @@ export interface paths {
|
|
|
374
507
|
};
|
|
375
508
|
/** @description Bad request */
|
|
376
509
|
400: {
|
|
510
|
+
headers: {
|
|
511
|
+
[name: string]: unknown;
|
|
512
|
+
};
|
|
377
513
|
content: {
|
|
378
514
|
"application/json": {
|
|
379
515
|
/** @example false */
|
|
@@ -387,8 +523,21 @@ export interface paths {
|
|
|
387
523
|
};
|
|
388
524
|
};
|
|
389
525
|
};
|
|
526
|
+
put?: never;
|
|
527
|
+
post?: never;
|
|
528
|
+
delete?: never;
|
|
529
|
+
options?: never;
|
|
530
|
+
head?: never;
|
|
531
|
+
patch?: never;
|
|
532
|
+
trace?: never;
|
|
390
533
|
};
|
|
391
534
|
"/orders": {
|
|
535
|
+
parameters: {
|
|
536
|
+
query?: never;
|
|
537
|
+
header?: never;
|
|
538
|
+
path?: never;
|
|
539
|
+
cookie?: never;
|
|
540
|
+
};
|
|
392
541
|
/**
|
|
393
542
|
* Get orders by creator
|
|
394
543
|
* @description Retrieves all orders created by a specific address
|
|
@@ -412,10 +561,17 @@ export interface paths {
|
|
|
412
561
|
*/
|
|
413
562
|
offset?: string;
|
|
414
563
|
};
|
|
564
|
+
header?: never;
|
|
565
|
+
path?: never;
|
|
566
|
+
cookie?: never;
|
|
415
567
|
};
|
|
568
|
+
requestBody?: never;
|
|
416
569
|
responses: {
|
|
417
570
|
/** @description Orders retrieved successfully */
|
|
418
571
|
200: {
|
|
572
|
+
headers: {
|
|
573
|
+
[name: string]: unknown;
|
|
574
|
+
};
|
|
419
575
|
content: {
|
|
420
576
|
"application/json": {
|
|
421
577
|
/** @example true */
|
|
@@ -431,6 +587,9 @@ export interface paths {
|
|
|
431
587
|
};
|
|
432
588
|
/** @description Bad request */
|
|
433
589
|
400: {
|
|
590
|
+
headers: {
|
|
591
|
+
[name: string]: unknown;
|
|
592
|
+
};
|
|
434
593
|
content: {
|
|
435
594
|
"application/json": {
|
|
436
595
|
/** @example false */
|
|
@@ -444,11 +603,18 @@ export interface paths {
|
|
|
444
603
|
};
|
|
445
604
|
};
|
|
446
605
|
};
|
|
606
|
+
put?: never;
|
|
447
607
|
/**
|
|
448
608
|
* Create a new order
|
|
449
609
|
* @description Creates a new order for token transactions across chains
|
|
450
610
|
*/
|
|
451
611
|
post: {
|
|
612
|
+
parameters: {
|
|
613
|
+
query?: never;
|
|
614
|
+
header?: never;
|
|
615
|
+
path?: never;
|
|
616
|
+
cookie?: never;
|
|
617
|
+
};
|
|
452
618
|
requestBody: {
|
|
453
619
|
content: {
|
|
454
620
|
"application/json": components["schemas"]["OrderRequest"];
|
|
@@ -457,6 +623,9 @@ export interface paths {
|
|
|
457
623
|
responses: {
|
|
458
624
|
/** @description Order created successfully */
|
|
459
625
|
200: {
|
|
626
|
+
headers: {
|
|
627
|
+
[name: string]: unknown;
|
|
628
|
+
};
|
|
460
629
|
content: {
|
|
461
630
|
"application/json": {
|
|
462
631
|
/** @example true */
|
|
@@ -471,6 +640,9 @@ export interface paths {
|
|
|
471
640
|
};
|
|
472
641
|
/** @description Bad request */
|
|
473
642
|
400: {
|
|
643
|
+
headers: {
|
|
644
|
+
[name: string]: unknown;
|
|
645
|
+
};
|
|
474
646
|
content: {
|
|
475
647
|
"application/json": {
|
|
476
648
|
/** @example false */
|
|
@@ -484,14 +656,27 @@ export interface paths {
|
|
|
484
656
|
};
|
|
485
657
|
};
|
|
486
658
|
};
|
|
659
|
+
delete?: never;
|
|
660
|
+
options?: never;
|
|
661
|
+
head?: never;
|
|
662
|
+
patch?: never;
|
|
663
|
+
trace?: never;
|
|
487
664
|
};
|
|
488
665
|
"/orders/{orderId}": {
|
|
666
|
+
parameters: {
|
|
667
|
+
query?: never;
|
|
668
|
+
header?: never;
|
|
669
|
+
path?: never;
|
|
670
|
+
cookie?: never;
|
|
671
|
+
};
|
|
489
672
|
/**
|
|
490
673
|
* Get order and transactions
|
|
491
674
|
* @description Retrieves order details along with associated transactions
|
|
492
675
|
*/
|
|
493
676
|
get: {
|
|
494
677
|
parameters: {
|
|
678
|
+
query?: never;
|
|
679
|
+
header?: never;
|
|
495
680
|
path: {
|
|
496
681
|
/**
|
|
497
682
|
* @description Unique order identifier
|
|
@@ -499,10 +684,15 @@ export interface paths {
|
|
|
499
684
|
*/
|
|
500
685
|
orderId: string;
|
|
501
686
|
};
|
|
687
|
+
cookie?: never;
|
|
502
688
|
};
|
|
689
|
+
requestBody?: never;
|
|
503
690
|
responses: {
|
|
504
691
|
/** @description Order and transactions retrieved successfully */
|
|
505
692
|
200: {
|
|
693
|
+
headers: {
|
|
694
|
+
[name: string]: unknown;
|
|
695
|
+
};
|
|
506
696
|
content: {
|
|
507
697
|
"application/json": {
|
|
508
698
|
/** @example true */
|
|
@@ -554,6 +744,9 @@ export interface paths {
|
|
|
554
744
|
};
|
|
555
745
|
/** @description Bad request */
|
|
556
746
|
400: {
|
|
747
|
+
headers: {
|
|
748
|
+
[name: string]: unknown;
|
|
749
|
+
};
|
|
557
750
|
content: {
|
|
558
751
|
"application/json": {
|
|
559
752
|
/** @example false */
|
|
@@ -567,6 +760,9 @@ export interface paths {
|
|
|
567
760
|
};
|
|
568
761
|
/** @description Order not found */
|
|
569
762
|
404: {
|
|
763
|
+
headers: {
|
|
764
|
+
[name: string]: unknown;
|
|
765
|
+
};
|
|
570
766
|
content: {
|
|
571
767
|
"application/json": {
|
|
572
768
|
/** @example false */
|
|
@@ -580,14 +776,29 @@ export interface paths {
|
|
|
580
776
|
};
|
|
581
777
|
};
|
|
582
778
|
};
|
|
779
|
+
put?: never;
|
|
780
|
+
post?: never;
|
|
781
|
+
delete?: never;
|
|
782
|
+
options?: never;
|
|
783
|
+
head?: never;
|
|
784
|
+
patch?: never;
|
|
785
|
+
trace?: never;
|
|
583
786
|
};
|
|
584
787
|
"/orders/{orderId}/comprehensive": {
|
|
788
|
+
parameters: {
|
|
789
|
+
query?: never;
|
|
790
|
+
header?: never;
|
|
791
|
+
path?: never;
|
|
792
|
+
cookie?: never;
|
|
793
|
+
};
|
|
585
794
|
/**
|
|
586
795
|
* Get comprehensive order detail
|
|
587
796
|
* @description Retrieves an order with associated transactions, settlement data, and awarded points without sanitization.
|
|
588
797
|
*/
|
|
589
798
|
get: {
|
|
590
799
|
parameters: {
|
|
800
|
+
query?: never;
|
|
801
|
+
header?: never;
|
|
591
802
|
path: {
|
|
592
803
|
/**
|
|
593
804
|
* @description Unique order identifier
|
|
@@ -595,16 +806,24 @@ export interface paths {
|
|
|
595
806
|
*/
|
|
596
807
|
orderId: string;
|
|
597
808
|
};
|
|
809
|
+
cookie?: never;
|
|
598
810
|
};
|
|
811
|
+
requestBody?: never;
|
|
599
812
|
responses: {
|
|
600
813
|
/** @description Comprehensive order retrieved successfully */
|
|
601
814
|
200: {
|
|
815
|
+
headers: {
|
|
816
|
+
[name: string]: unknown;
|
|
817
|
+
};
|
|
602
818
|
content: {
|
|
603
819
|
"application/json": components["schemas"]["ComprehensiveOrderResponse"];
|
|
604
820
|
};
|
|
605
821
|
};
|
|
606
822
|
/** @description Bad request */
|
|
607
823
|
400: {
|
|
824
|
+
headers: {
|
|
825
|
+
[name: string]: unknown;
|
|
826
|
+
};
|
|
608
827
|
content: {
|
|
609
828
|
"application/json": {
|
|
610
829
|
/** @example false */
|
|
@@ -618,6 +837,9 @@ export interface paths {
|
|
|
618
837
|
};
|
|
619
838
|
/** @description Order not found */
|
|
620
839
|
404: {
|
|
840
|
+
headers: {
|
|
841
|
+
[name: string]: unknown;
|
|
842
|
+
};
|
|
621
843
|
content: {
|
|
622
844
|
"application/json": {
|
|
623
845
|
/** @example false */
|
|
@@ -631,13 +853,34 @@ export interface paths {
|
|
|
631
853
|
};
|
|
632
854
|
};
|
|
633
855
|
};
|
|
856
|
+
put?: never;
|
|
857
|
+
post?: never;
|
|
858
|
+
delete?: never;
|
|
859
|
+
options?: never;
|
|
860
|
+
head?: never;
|
|
861
|
+
patch?: never;
|
|
862
|
+
trace?: never;
|
|
634
863
|
};
|
|
635
864
|
"/orders/quote": {
|
|
865
|
+
parameters: {
|
|
866
|
+
query?: never;
|
|
867
|
+
header?: never;
|
|
868
|
+
path?: never;
|
|
869
|
+
cookie?: never;
|
|
870
|
+
};
|
|
871
|
+
get?: never;
|
|
872
|
+
put?: never;
|
|
636
873
|
/**
|
|
637
874
|
* Get anyspend quote
|
|
638
875
|
* @description Retrieves a quote to swap, execute contract, or participate in HypeDuel
|
|
639
876
|
*/
|
|
640
877
|
post: {
|
|
878
|
+
parameters: {
|
|
879
|
+
query?: never;
|
|
880
|
+
header?: never;
|
|
881
|
+
path?: never;
|
|
882
|
+
cookie?: never;
|
|
883
|
+
};
|
|
641
884
|
requestBody: {
|
|
642
885
|
content: {
|
|
643
886
|
"application/json":
|
|
@@ -921,6 +1164,9 @@ export interface paths {
|
|
|
921
1164
|
responses: {
|
|
922
1165
|
/** @description Quote retrieved successfully */
|
|
923
1166
|
200: {
|
|
1167
|
+
headers: {
|
|
1168
|
+
[name: string]: unknown;
|
|
1169
|
+
};
|
|
924
1170
|
content: {
|
|
925
1171
|
"application/json": {
|
|
926
1172
|
/** @example true */
|
|
@@ -1101,6 +1347,9 @@ export interface paths {
|
|
|
1101
1347
|
};
|
|
1102
1348
|
/** @description Bad request */
|
|
1103
1349
|
400: {
|
|
1350
|
+
headers: {
|
|
1351
|
+
[name: string]: unknown;
|
|
1352
|
+
};
|
|
1104
1353
|
content: {
|
|
1105
1354
|
"application/json": {
|
|
1106
1355
|
/** @example false */
|
|
@@ -1114,8 +1363,19 @@ export interface paths {
|
|
|
1114
1363
|
};
|
|
1115
1364
|
};
|
|
1116
1365
|
};
|
|
1366
|
+
delete?: never;
|
|
1367
|
+
options?: never;
|
|
1368
|
+
head?: never;
|
|
1369
|
+
patch?: never;
|
|
1370
|
+
trace?: never;
|
|
1117
1371
|
};
|
|
1118
1372
|
"/stripe/clientSecret": {
|
|
1373
|
+
parameters: {
|
|
1374
|
+
query?: never;
|
|
1375
|
+
header?: never;
|
|
1376
|
+
path?: never;
|
|
1377
|
+
cookie?: never;
|
|
1378
|
+
};
|
|
1119
1379
|
/**
|
|
1120
1380
|
* Get Stripe client secret
|
|
1121
1381
|
* @description Retrieves a Stripe client secret for payment processing using a payment intent ID
|
|
@@ -1129,10 +1389,17 @@ export interface paths {
|
|
|
1129
1389
|
*/
|
|
1130
1390
|
paymentIntentId: string;
|
|
1131
1391
|
};
|
|
1392
|
+
header?: never;
|
|
1393
|
+
path?: never;
|
|
1394
|
+
cookie?: never;
|
|
1132
1395
|
};
|
|
1396
|
+
requestBody?: never;
|
|
1133
1397
|
responses: {
|
|
1134
1398
|
/** @description Client secret retrieved successfully */
|
|
1135
1399
|
200: {
|
|
1400
|
+
headers: {
|
|
1401
|
+
[name: string]: unknown;
|
|
1402
|
+
};
|
|
1136
1403
|
content: {
|
|
1137
1404
|
"application/json": {
|
|
1138
1405
|
/** @example true */
|
|
@@ -1151,6 +1418,9 @@ export interface paths {
|
|
|
1151
1418
|
};
|
|
1152
1419
|
/** @description Bad request - PaymentIntentId is required or invalid */
|
|
1153
1420
|
400: {
|
|
1421
|
+
headers: {
|
|
1422
|
+
[name: string]: unknown;
|
|
1423
|
+
};
|
|
1154
1424
|
content: {
|
|
1155
1425
|
"application/json": {
|
|
1156
1426
|
/** @example false */
|
|
@@ -1164,6 +1434,13 @@ export interface paths {
|
|
|
1164
1434
|
};
|
|
1165
1435
|
};
|
|
1166
1436
|
};
|
|
1437
|
+
put?: never;
|
|
1438
|
+
post?: never;
|
|
1439
|
+
delete?: never;
|
|
1440
|
+
options?: never;
|
|
1441
|
+
head?: never;
|
|
1442
|
+
patch?: never;
|
|
1443
|
+
trace?: never;
|
|
1167
1444
|
};
|
|
1168
1445
|
}
|
|
1169
1446
|
export type webhooks = Record<string, never>;
|
|
@@ -1803,6 +2080,8 @@ export interface components {
|
|
|
1803
2080
|
creatorAddress: string | null;
|
|
1804
2081
|
/** @description Optional partner identifier */
|
|
1805
2082
|
partnerId: string | null;
|
|
2083
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2084
|
+
clientReferenceId?: string | null;
|
|
1806
2085
|
/** @description Onramp configuration if used */
|
|
1807
2086
|
onrampMetadata: components["schemas"]["OnrampMetadata"] | null;
|
|
1808
2087
|
/** @description Quick purchase URL if available */
|
|
@@ -1957,6 +2236,8 @@ export interface components {
|
|
|
1957
2236
|
metadata: components["schemas"]["SwapMetadata"];
|
|
1958
2237
|
/** @description Optional partner identifier */
|
|
1959
2238
|
partnerId?: string;
|
|
2239
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2240
|
+
clientReferenceId?: string;
|
|
1960
2241
|
onramp?: components["schemas"]["Onramp"];
|
|
1961
2242
|
/**
|
|
1962
2243
|
* @description Optional address of the order creator
|
|
@@ -2005,6 +2286,8 @@ export interface components {
|
|
|
2005
2286
|
metadata: components["schemas"]["SwapMetadata"];
|
|
2006
2287
|
/** @description Optional partner identifier */
|
|
2007
2288
|
partnerId?: string;
|
|
2289
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2290
|
+
clientReferenceId?: string;
|
|
2008
2291
|
onramp?: components["schemas"]["Onramp"];
|
|
2009
2292
|
/**
|
|
2010
2293
|
* @description Optional address of the order creator
|
|
@@ -2053,6 +2336,8 @@ export interface components {
|
|
|
2053
2336
|
metadata: components["schemas"]["HypeDuelMetadata"];
|
|
2054
2337
|
/** @description Optional partner identifier */
|
|
2055
2338
|
partnerId?: string;
|
|
2339
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2340
|
+
clientReferenceId?: string;
|
|
2056
2341
|
onramp?: components["schemas"]["Onramp"];
|
|
2057
2342
|
/**
|
|
2058
2343
|
* @description Optional address of the order creator
|
|
@@ -2101,6 +2386,8 @@ export interface components {
|
|
|
2101
2386
|
metadata: components["schemas"]["CustomMetadata"];
|
|
2102
2387
|
/** @description Optional partner identifier */
|
|
2103
2388
|
partnerId?: string;
|
|
2389
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2390
|
+
clientReferenceId?: string;
|
|
2104
2391
|
onramp?: components["schemas"]["Onramp"];
|
|
2105
2392
|
/**
|
|
2106
2393
|
* @description Optional address of the order creator
|
|
@@ -2149,6 +2436,8 @@ export interface components {
|
|
|
2149
2436
|
metadata: components["schemas"]["CustomMetadata"];
|
|
2150
2437
|
/** @description Optional partner identifier */
|
|
2151
2438
|
partnerId?: string;
|
|
2439
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2440
|
+
clientReferenceId?: string;
|
|
2152
2441
|
onramp?: components["schemas"]["Onramp"];
|
|
2153
2442
|
/**
|
|
2154
2443
|
* @description Optional address of the order creator
|
|
@@ -2197,6 +2486,8 @@ export interface components {
|
|
|
2197
2486
|
metadata: components["schemas"]["MintNftMetadata"];
|
|
2198
2487
|
/** @description Optional partner identifier */
|
|
2199
2488
|
partnerId?: string;
|
|
2489
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2490
|
+
clientReferenceId?: string;
|
|
2200
2491
|
onramp?: components["schemas"]["Onramp"];
|
|
2201
2492
|
/**
|
|
2202
2493
|
* @description Optional address of the order creator
|
|
@@ -2245,6 +2536,8 @@ export interface components {
|
|
|
2245
2536
|
metadata: components["schemas"]["TournamentMetadata"];
|
|
2246
2537
|
/** @description Optional partner identifier */
|
|
2247
2538
|
partnerId?: string;
|
|
2539
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2540
|
+
clientReferenceId?: string;
|
|
2248
2541
|
onramp?: components["schemas"]["Onramp"];
|
|
2249
2542
|
/**
|
|
2250
2543
|
* @description Optional address of the order creator
|
|
@@ -2293,6 +2586,8 @@ export interface components {
|
|
|
2293
2586
|
metadata: components["schemas"]["TournamentMetadata"];
|
|
2294
2587
|
/** @description Optional partner identifier */
|
|
2295
2588
|
partnerId?: string;
|
|
2589
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2590
|
+
clientReferenceId?: string;
|
|
2296
2591
|
onramp?: components["schemas"]["Onramp"];
|
|
2297
2592
|
/**
|
|
2298
2593
|
* @description Optional address of the order creator
|