@phala/pay-server 0.0.0 → 0.9.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.
Files changed (84) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +213 -1
  3. package/THIRD_PARTY_NOTICES +25 -0
  4. package/dist/js/src/shared/checkout-params.d.ts +7 -0
  5. package/dist/js/src/shared/checkout-params.d.ts.map +1 -0
  6. package/dist/js/src/shared/checkout-params.js +2 -0
  7. package/dist/js/src/shared/checkout-params.js.map +1 -0
  8. package/dist/js-server/src/addresses.d.ts +76 -0
  9. package/dist/js-server/src/addresses.d.ts.map +1 -0
  10. package/dist/js-server/src/addresses.js +117 -0
  11. package/dist/js-server/src/addresses.js.map +1 -0
  12. package/dist/js-server/src/browser.d.ts +2 -0
  13. package/dist/js-server/src/browser.d.ts.map +1 -0
  14. package/dist/js-server/src/browser.js +3 -0
  15. package/dist/js-server/src/browser.js.map +1 -0
  16. package/dist/js-server/src/client.d.ts +54 -0
  17. package/dist/js-server/src/client.d.ts.map +1 -0
  18. package/dist/js-server/src/client.js +183 -0
  19. package/dist/js-server/src/client.js.map +1 -0
  20. package/dist/js-server/src/errors.d.ts +35 -0
  21. package/dist/js-server/src/errors.d.ts.map +1 -0
  22. package/dist/js-server/src/errors.js +56 -0
  23. package/dist/js-server/src/errors.js.map +1 -0
  24. package/dist/js-server/src/generated/openapi.d.ts +9482 -0
  25. package/dist/js-server/src/generated/openapi.d.ts.map +1 -0
  26. package/dist/js-server/src/generated/openapi.js +6 -0
  27. package/dist/js-server/src/generated/openapi.js.map +1 -0
  28. package/dist/js-server/src/helpers.d.ts +15 -0
  29. package/dist/js-server/src/helpers.d.ts.map +1 -0
  30. package/dist/js-server/src/helpers.js +15 -0
  31. package/dist/js-server/src/helpers.js.map +1 -0
  32. package/dist/js-server/src/index.d.ts +12 -0
  33. package/dist/js-server/src/index.d.ts.map +1 -0
  34. package/dist/js-server/src/index.js +13 -0
  35. package/dist/js-server/src/index.js.map +1 -0
  36. package/dist/js-server/src/json.d.ts +5 -0
  37. package/dist/js-server/src/json.d.ts.map +1 -0
  38. package/dist/js-server/src/json.js +114 -0
  39. package/dist/js-server/src/json.js.map +1 -0
  40. package/dist/js-server/src/ledger.d.ts +9 -0
  41. package/dist/js-server/src/ledger.d.ts.map +1 -0
  42. package/dist/js-server/src/ledger.js +83 -0
  43. package/dist/js-server/src/ledger.js.map +1 -0
  44. package/dist/js-server/src/pins.d.ts +19 -0
  45. package/dist/js-server/src/pins.d.ts.map +1 -0
  46. package/dist/js-server/src/pins.js +165 -0
  47. package/dist/js-server/src/pins.js.map +1 -0
  48. package/dist/js-server/src/resource.d.ts +14 -0
  49. package/dist/js-server/src/resource.d.ts.map +1 -0
  50. package/dist/js-server/src/resource.js +32 -0
  51. package/dist/js-server/src/resource.js.map +1 -0
  52. package/dist/js-server/src/resources.d.ts +120 -0
  53. package/dist/js-server/src/resources.d.ts.map +1 -0
  54. package/dist/js-server/src/resources.js +266 -0
  55. package/dist/js-server/src/resources.js.map +1 -0
  56. package/dist/js-server/src/runtime.d.ts +4 -0
  57. package/dist/js-server/src/runtime.d.ts.map +1 -0
  58. package/dist/js-server/src/runtime.js +48 -0
  59. package/dist/js-server/src/runtime.js.map +1 -0
  60. package/dist/js-server/src/schemas.d.ts +4 -0
  61. package/dist/js-server/src/schemas.d.ts.map +1 -0
  62. package/dist/js-server/src/schemas.js +3091 -0
  63. package/dist/js-server/src/schemas.js.map +1 -0
  64. package/dist/js-server/src/sweeps.d.ts +78 -0
  65. package/dist/js-server/src/sweeps.d.ts.map +1 -0
  66. package/dist/js-server/src/sweeps.js +117 -0
  67. package/dist/js-server/src/sweeps.js.map +1 -0
  68. package/dist/js-server/src/transport.d.ts +26 -0
  69. package/dist/js-server/src/transport.d.ts.map +1 -0
  70. package/dist/js-server/src/transport.js +248 -0
  71. package/dist/js-server/src/transport.js.map +1 -0
  72. package/dist/js-server/src/types.d.ts +111 -0
  73. package/dist/js-server/src/types.d.ts.map +1 -0
  74. package/dist/js-server/src/types.js +2 -0
  75. package/dist/js-server/src/types.js.map +1 -0
  76. package/dist/js-server/src/validation.d.ts +20 -0
  77. package/dist/js-server/src/validation.d.ts.map +1 -0
  78. package/dist/js-server/src/validation.js +43 -0
  79. package/dist/js-server/src/validation.js.map +1 -0
  80. package/dist/js-server/src/webhook.d.ts +59 -0
  81. package/dist/js-server/src/webhook.d.ts.map +1 -0
  82. package/dist/js-server/src/webhook.js +164 -0
  83. package/dist/js-server/src/webhook.js.map +1 -0
  84. package/package.json +55 -4
@@ -0,0 +1,3091 @@
1
+ export const schemas = {
2
+ "AccountObject": {
3
+ "properties": {
4
+ "charges_enabled": {
5
+ "type": "boolean"
6
+ },
7
+ "created": {
8
+ "type": "integer"
9
+ },
10
+ "id": {
11
+ "type": "string"
12
+ },
13
+ "livemode": {
14
+ "type": "boolean"
15
+ },
16
+ "name": {
17
+ "type": "string"
18
+ },
19
+ "object": {
20
+ "type": "string",
21
+ "enum": [
22
+ "account"
23
+ ]
24
+ },
25
+ "paused_scopes": {
26
+ "items": {
27
+ "type": "string"
28
+ },
29
+ "type": "array"
30
+ },
31
+ "webhook_keys": {
32
+ "items": {
33
+ "$ref": "#/components/schemas/WebhookKeyVersion"
34
+ },
35
+ "type": "array"
36
+ }
37
+ },
38
+ "required": [
39
+ "id",
40
+ "object",
41
+ "livemode",
42
+ "name",
43
+ "charges_enabled",
44
+ "paused_scopes",
45
+ "webhook_keys",
46
+ "created"
47
+ ],
48
+ "type": "object"
49
+ },
50
+ "AccountSelfPauseRequest": {
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "scopes": {
54
+ "items": {
55
+ "type": "string"
56
+ },
57
+ "type": "array"
58
+ }
59
+ },
60
+ "required": [
61
+ "scopes"
62
+ ],
63
+ "type": "object"
64
+ },
65
+ "ApiKeyList": {
66
+ "properties": {
67
+ "data": {
68
+ "items": {
69
+ "$ref": "#/components/schemas/ApiKeyObject"
70
+ },
71
+ "type": "array"
72
+ },
73
+ "has_more": {
74
+ "type": "boolean"
75
+ },
76
+ "object": {
77
+ "type": "string",
78
+ "enum": [
79
+ "list"
80
+ ]
81
+ },
82
+ "url": {
83
+ "type": "string"
84
+ }
85
+ },
86
+ "required": [
87
+ "object",
88
+ "url",
89
+ "has_more",
90
+ "data"
91
+ ],
92
+ "type": "object"
93
+ },
94
+ "ApiKeyObject": {
95
+ "properties": {
96
+ "created": {
97
+ "type": "integer"
98
+ },
99
+ "expires_at": {
100
+ "type": [
101
+ "integer",
102
+ "null"
103
+ ]
104
+ },
105
+ "id": {
106
+ "type": "string"
107
+ },
108
+ "last_used": {
109
+ "type": [
110
+ "integer",
111
+ "null"
112
+ ]
113
+ },
114
+ "livemode": {
115
+ "type": "boolean"
116
+ },
117
+ "name": {
118
+ "type": "string"
119
+ },
120
+ "object": {
121
+ "type": "string",
122
+ "enum": [
123
+ "api_key"
124
+ ]
125
+ },
126
+ "permissions": {
127
+ "items": {
128
+ "type": "string"
129
+ },
130
+ "type": [
131
+ "array",
132
+ "null"
133
+ ]
134
+ },
135
+ "redacted": {
136
+ "type": "string"
137
+ },
138
+ "secret": {
139
+ "type": [
140
+ "string",
141
+ "null"
142
+ ]
143
+ },
144
+ "status": {
145
+ "type": "string"
146
+ },
147
+ "type": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ "required": [
152
+ "id",
153
+ "object",
154
+ "livemode",
155
+ "type",
156
+ "name",
157
+ "redacted",
158
+ "status",
159
+ "created"
160
+ ],
161
+ "type": "object"
162
+ },
163
+ "AttestationResponse": {
164
+ "properties": {
165
+ "account": {
166
+ "type": "string"
167
+ },
168
+ "livemode": {
169
+ "type": "boolean"
170
+ },
171
+ "object": {
172
+ "type": "string",
173
+ "enum": [
174
+ "attestation"
175
+ ]
176
+ },
177
+ "report_data": {
178
+ "type": "string"
179
+ },
180
+ "tdx_quote": {
181
+ "type": "string"
182
+ },
183
+ "webhook_keys": {
184
+ "items": {
185
+ "$ref": "#/components/schemas/WebhookKeyObject"
186
+ },
187
+ "type": "array"
188
+ }
189
+ },
190
+ "required": [
191
+ "object",
192
+ "account",
193
+ "livemode",
194
+ "webhook_keys",
195
+ "report_data",
196
+ "tdx_quote"
197
+ ],
198
+ "type": "object"
199
+ },
200
+ "AvailableAsset": {
201
+ "properties": {
202
+ "accepted": {
203
+ "type": "boolean"
204
+ },
205
+ "asset": {
206
+ "type": "string"
207
+ },
208
+ "contract": {
209
+ "type": "string"
210
+ },
211
+ "decimals": {
212
+ "minimum": 0,
213
+ "type": "integer"
214
+ },
215
+ "enabled": {
216
+ "type": "boolean"
217
+ },
218
+ "max_deposit_atomic": {
219
+ "$ref": "#/components/schemas/BoundsAtomic"
220
+ },
221
+ "min_amount": {
222
+ "$ref": "#/components/schemas/BoundsU64"
223
+ },
224
+ "min_deposit_atomic": {
225
+ "$ref": "#/components/schemas/BoundsAtomic"
226
+ },
227
+ "min_refund_atomic": {
228
+ "$ref": "#/components/schemas/BoundsAtomic"
229
+ },
230
+ "pricing": {
231
+ "type": "string"
232
+ },
233
+ "quote_amount_decimals": {
234
+ "minimum": 0,
235
+ "type": "integer"
236
+ },
237
+ "quote_spread_bps": {
238
+ "$ref": "#/components/schemas/BoundsU64"
239
+ },
240
+ "quote_tolerance_bps": {
241
+ "$ref": "#/components/schemas/BoundsU64"
242
+ },
243
+ "quote_ttl_seconds": {
244
+ "$ref": "#/components/schemas/BoundsU64"
245
+ }
246
+ },
247
+ "required": [
248
+ "asset",
249
+ "contract",
250
+ "decimals",
251
+ "pricing",
252
+ "quote_amount_decimals",
253
+ "accepted",
254
+ "enabled",
255
+ "quote_ttl_seconds",
256
+ "quote_spread_bps",
257
+ "quote_tolerance_bps",
258
+ "min_amount",
259
+ "min_deposit_atomic",
260
+ "max_deposit_atomic",
261
+ "min_refund_atomic"
262
+ ],
263
+ "type": "object"
264
+ },
265
+ "AvailableChain": {
266
+ "properties": {
267
+ "assets": {
268
+ "items": {
269
+ "$ref": "#/components/schemas/AvailableAsset"
270
+ },
271
+ "type": "array"
272
+ },
273
+ "chain_id": {
274
+ "minimum": 0,
275
+ "type": "integer"
276
+ },
277
+ "confirmations": {
278
+ "$ref": "#/components/schemas/AvailableConfirmations"
279
+ },
280
+ "status": {
281
+ "type": "string"
282
+ }
283
+ },
284
+ "required": [
285
+ "chain_id",
286
+ "status",
287
+ "confirmations",
288
+ "assets"
289
+ ],
290
+ "type": "object"
291
+ },
292
+ "AvailableConfirmations": {
293
+ "properties": {
294
+ "default": {
295
+ "type": "string"
296
+ },
297
+ "floor": {
298
+ "type": "string"
299
+ }
300
+ },
301
+ "required": [
302
+ "floor",
303
+ "default"
304
+ ],
305
+ "type": "object"
306
+ },
307
+ "Balance": {
308
+ "properties": {
309
+ "livemode": {
310
+ "type": "boolean"
311
+ },
312
+ "object": {
313
+ "type": "string",
314
+ "enum": [
315
+ "balance"
316
+ ]
317
+ },
318
+ "unswept": {
319
+ "items": {
320
+ "$ref": "#/components/schemas/BalanceAmount"
321
+ },
322
+ "type": "array"
323
+ }
324
+ },
325
+ "required": [
326
+ "object",
327
+ "livemode",
328
+ "unswept"
329
+ ],
330
+ "type": "object"
331
+ },
332
+ "BalanceAmount": {
333
+ "properties": {
334
+ "amount_atomic": {
335
+ "type": "string"
336
+ },
337
+ "asset": {
338
+ "type": [
339
+ "string",
340
+ "null"
341
+ ]
342
+ },
343
+ "chain_id": {
344
+ "minimum": 0,
345
+ "type": "integer"
346
+ },
347
+ "final_amount_atomic": {
348
+ "type": "string"
349
+ },
350
+ "token": {
351
+ "type": "string"
352
+ }
353
+ },
354
+ "required": [
355
+ "chain_id",
356
+ "token",
357
+ "amount_atomic",
358
+ "final_amount_atomic"
359
+ ],
360
+ "type": "object"
361
+ },
362
+ "BoundsAtomic": {
363
+ "properties": {
364
+ "default": {
365
+ "type": "string"
366
+ },
367
+ "max": {
368
+ "type": "string"
369
+ },
370
+ "min": {
371
+ "type": "string"
372
+ }
373
+ },
374
+ "required": [
375
+ "default",
376
+ "min",
377
+ "max"
378
+ ],
379
+ "type": "object"
380
+ },
381
+ "BoundsU64": {
382
+ "properties": {
383
+ "default": {
384
+ "minimum": 0,
385
+ "type": "integer"
386
+ },
387
+ "max": {
388
+ "minimum": 0,
389
+ "type": "integer"
390
+ },
391
+ "min": {
392
+ "minimum": 0,
393
+ "type": "integer"
394
+ }
395
+ },
396
+ "required": [
397
+ "default",
398
+ "min",
399
+ "max"
400
+ ],
401
+ "type": "object"
402
+ },
403
+ "ClientDepositAddress": {
404
+ "properties": {
405
+ "address": {
406
+ "type": [
407
+ "string",
408
+ "null"
409
+ ]
410
+ },
411
+ "id": {
412
+ "type": "string"
413
+ },
414
+ "livemode": {
415
+ "type": "boolean"
416
+ },
417
+ "networks": {
418
+ "items": {
419
+ "$ref": "#/components/schemas/ClientDepositAddressNetwork"
420
+ },
421
+ "type": "array"
422
+ },
423
+ "object": {
424
+ "type": "string",
425
+ "enum": [
426
+ "deposit_address"
427
+ ]
428
+ },
429
+ "payments": {
430
+ "items": {
431
+ "$ref": "#/components/schemas/ClientDepositAddressPayment"
432
+ },
433
+ "type": "array"
434
+ },
435
+ "status": {
436
+ "type": "string"
437
+ }
438
+ },
439
+ "required": [
440
+ "id",
441
+ "object",
442
+ "livemode",
443
+ "status",
444
+ "networks",
445
+ "payments"
446
+ ],
447
+ "type": "object"
448
+ },
449
+ "ClientDepositAddressNetwork": {
450
+ "properties": {
451
+ "address": {
452
+ "type": "string"
453
+ },
454
+ "assets": {
455
+ "items": {
456
+ "$ref": "#/components/schemas/DepositAddressAsset"
457
+ },
458
+ "type": "array"
459
+ },
460
+ "chain_id": {
461
+ "minimum": 0,
462
+ "type": "integer"
463
+ },
464
+ "typical_credit_seconds": {
465
+ "minimum": 0,
466
+ "type": "integer"
467
+ }
468
+ },
469
+ "required": [
470
+ "chain_id",
471
+ "address",
472
+ "assets",
473
+ "typical_credit_seconds"
474
+ ],
475
+ "type": "object"
476
+ },
477
+ "ClientDepositAddressPayment": {
478
+ "properties": {
479
+ "amount_atomic": {
480
+ "type": "string"
481
+ },
482
+ "asset": {
483
+ "type": [
484
+ "string",
485
+ "null"
486
+ ]
487
+ },
488
+ "chain_id": {
489
+ "minimum": 0,
490
+ "type": "integer"
491
+ },
492
+ "confirmations": {
493
+ "minimum": 0,
494
+ "type": [
495
+ "integer",
496
+ "null"
497
+ ]
498
+ },
499
+ "created": {
500
+ "type": "integer"
501
+ },
502
+ "decimals": {
503
+ "minimum": 0,
504
+ "type": [
505
+ "integer",
506
+ "null"
507
+ ]
508
+ },
509
+ "status": {
510
+ "type": "string"
511
+ },
512
+ "tx_hash": {
513
+ "type": "string"
514
+ }
515
+ },
516
+ "required": [
517
+ "status",
518
+ "chain_id",
519
+ "amount_atomic",
520
+ "tx_hash",
521
+ "confirmations",
522
+ "created"
523
+ ],
524
+ "type": "object"
525
+ },
526
+ "ClientQuote": {
527
+ "properties": {
528
+ "address": {
529
+ "type": "string"
530
+ },
531
+ "amount": {
532
+ "minimum": 0,
533
+ "type": "integer"
534
+ },
535
+ "amount_atomic": {
536
+ "type": "string"
537
+ },
538
+ "amount_credited": {
539
+ "minimum": 0,
540
+ "type": [
541
+ "integer",
542
+ "null"
543
+ ]
544
+ },
545
+ "asset": {
546
+ "type": "string"
547
+ },
548
+ "chain_id": {
549
+ "minimum": 0,
550
+ "type": "integer"
551
+ },
552
+ "confirmations": {
553
+ "minimum": 0,
554
+ "type": [
555
+ "integer",
556
+ "null"
557
+ ]
558
+ },
559
+ "currency": {
560
+ "type": "string"
561
+ },
562
+ "decimals": {
563
+ "minimum": 0,
564
+ "type": "integer"
565
+ },
566
+ "expires_at": {
567
+ "type": "integer"
568
+ },
569
+ "id": {
570
+ "type": "string"
571
+ },
572
+ "livemode": {
573
+ "type": "boolean"
574
+ },
575
+ "object": {
576
+ "type": "string",
577
+ "enum": [
578
+ "quote"
579
+ ]
580
+ },
581
+ "payment_status": {
582
+ "type": "string"
583
+ },
584
+ "payment_uri": {
585
+ "type": "string"
586
+ },
587
+ "status": {
588
+ "type": "string"
589
+ },
590
+ "typical_credit_seconds": {
591
+ "minimum": 0,
592
+ "type": "integer"
593
+ }
594
+ },
595
+ "required": [
596
+ "id",
597
+ "object",
598
+ "livemode",
599
+ "status",
600
+ "amount",
601
+ "currency",
602
+ "asset",
603
+ "decimals",
604
+ "chain_id",
605
+ "amount_atomic",
606
+ "address",
607
+ "payment_uri",
608
+ "expires_at",
609
+ "payment_status",
610
+ "confirmations",
611
+ "amount_credited",
612
+ "typical_credit_seconds"
613
+ ],
614
+ "type": "object"
615
+ },
616
+ "Config": {
617
+ "properties": {
618
+ "assets": {
619
+ "items": {
620
+ "$ref": "#/components/schemas/ConfigAsset"
621
+ },
622
+ "type": "array"
623
+ },
624
+ "currency": {
625
+ "type": "string"
626
+ },
627
+ "livemode": {
628
+ "type": "boolean"
629
+ },
630
+ "max_open_amount_per_account": {
631
+ "minimum": 0,
632
+ "type": "integer"
633
+ },
634
+ "max_open_amount_per_customer": {
635
+ "minimum": 0,
636
+ "type": "integer"
637
+ },
638
+ "max_open_quotes": {
639
+ "minimum": 0,
640
+ "type": "integer"
641
+ },
642
+ "object": {
643
+ "type": "string",
644
+ "enum": [
645
+ "config"
646
+ ]
647
+ },
648
+ "quote_creations_per_customer_per_minute": {
649
+ "minimum": 0,
650
+ "type": "integer"
651
+ }
652
+ },
653
+ "required": [
654
+ "object",
655
+ "livemode",
656
+ "currency",
657
+ "max_open_quotes",
658
+ "max_open_amount_per_account",
659
+ "max_open_amount_per_customer",
660
+ "quote_creations_per_customer_per_minute",
661
+ "assets"
662
+ ],
663
+ "type": "object"
664
+ },
665
+ "ConfigAsset": {
666
+ "properties": {
667
+ "asset": {
668
+ "type": "string"
669
+ },
670
+ "chain_id": {
671
+ "minimum": 0,
672
+ "type": "integer"
673
+ },
674
+ "confirmations": {
675
+ "type": "string"
676
+ },
677
+ "contract": {
678
+ "type": "string"
679
+ },
680
+ "decimals": {
681
+ "minimum": 0,
682
+ "type": "integer"
683
+ },
684
+ "max_deposit_atomic": {
685
+ "type": "string"
686
+ },
687
+ "min_amount": {
688
+ "minimum": 0,
689
+ "type": "integer"
690
+ },
691
+ "min_deposit_atomic": {
692
+ "type": "string"
693
+ },
694
+ "min_refund_atomic": {
695
+ "type": "string"
696
+ },
697
+ "pricing": {
698
+ "type": "string"
699
+ },
700
+ "quote_amount_decimals": {
701
+ "minimum": 0,
702
+ "type": "integer"
703
+ },
704
+ "quote_spread_bps": {
705
+ "minimum": 0,
706
+ "type": "integer"
707
+ },
708
+ "quote_tolerance_bps": {
709
+ "minimum": 0,
710
+ "type": "integer"
711
+ },
712
+ "quote_ttl_seconds": {
713
+ "minimum": 0,
714
+ "type": "integer"
715
+ },
716
+ "typical_credit_seconds": {
717
+ "minimum": 0,
718
+ "type": "integer"
719
+ },
720
+ "typical_finality_seconds": {
721
+ "minimum": 0,
722
+ "type": "integer"
723
+ }
724
+ },
725
+ "required": [
726
+ "chain_id",
727
+ "asset",
728
+ "contract",
729
+ "decimals",
730
+ "pricing",
731
+ "min_amount",
732
+ "min_deposit_atomic",
733
+ "max_deposit_atomic",
734
+ "min_refund_atomic",
735
+ "quote_ttl_seconds",
736
+ "quote_spread_bps",
737
+ "quote_tolerance_bps",
738
+ "quote_amount_decimals",
739
+ "confirmations",
740
+ "typical_credit_seconds",
741
+ "typical_finality_seconds"
742
+ ],
743
+ "type": "object"
744
+ },
745
+ "CreateApiKeyRequest": {
746
+ "additionalProperties": false,
747
+ "properties": {
748
+ "name": {
749
+ "type": "string"
750
+ },
751
+ "permissions": {
752
+ "items": {
753
+ "type": "string"
754
+ },
755
+ "type": [
756
+ "array",
757
+ "null"
758
+ ]
759
+ },
760
+ "type": {
761
+ "type": [
762
+ "string",
763
+ "null"
764
+ ]
765
+ }
766
+ },
767
+ "type": "object"
768
+ },
769
+ "CreateDepositAddressRequest": {
770
+ "additionalProperties": false,
771
+ "properties": {
772
+ "client_reference_id": {
773
+ "type": "string"
774
+ },
775
+ "metadata": {
776
+ "$ref": "#/components/schemas/MetadataParam"
777
+ }
778
+ },
779
+ "required": [
780
+ "client_reference_id"
781
+ ],
782
+ "type": "object"
783
+ },
784
+ "CreateQuoteRequest": {
785
+ "additionalProperties": false,
786
+ "properties": {
787
+ "amount": {
788
+ "minimum": 0,
789
+ "type": "integer"
790
+ },
791
+ "asset": {
792
+ "type": "string"
793
+ },
794
+ "chain_id": {
795
+ "minimum": 0,
796
+ "type": "integer"
797
+ },
798
+ "client_reference_id": {
799
+ "type": "string"
800
+ },
801
+ "currency": {
802
+ "type": "string"
803
+ },
804
+ "metadata": {
805
+ "$ref": "#/components/schemas/MetadataParam"
806
+ }
807
+ },
808
+ "required": [
809
+ "client_reference_id",
810
+ "amount",
811
+ "currency",
812
+ "chain_id",
813
+ "asset"
814
+ ],
815
+ "type": "object"
816
+ },
817
+ "CreateRefundRequest": {
818
+ "additionalProperties": false,
819
+ "properties": {
820
+ "amount_atomic": {
821
+ "type": [
822
+ "string",
823
+ "null"
824
+ ]
825
+ },
826
+ "deposit": {
827
+ "type": "string"
828
+ },
829
+ "destination_address": {
830
+ "type": "string"
831
+ },
832
+ "metadata": {
833
+ "$ref": "#/components/schemas/MetadataParam"
834
+ }
835
+ },
836
+ "required": [
837
+ "deposit",
838
+ "destination_address"
839
+ ],
840
+ "type": "object"
841
+ },
842
+ "CreateTreasuryChallengeRequest": {
843
+ "additionalProperties": false,
844
+ "properties": {
845
+ "address": {
846
+ "type": "string"
847
+ },
848
+ "chain_id": {
849
+ "minimum": 0,
850
+ "type": "integer"
851
+ }
852
+ },
853
+ "required": [
854
+ "chain_id",
855
+ "address"
856
+ ],
857
+ "type": "object"
858
+ },
859
+ "CreateTreasuryRequest": {
860
+ "additionalProperties": false,
861
+ "properties": {
862
+ "chain_id": {
863
+ "minimum": 0,
864
+ "type": "integer"
865
+ },
866
+ "message": {
867
+ "type": "string"
868
+ },
869
+ "signature": {
870
+ "type": "string"
871
+ }
872
+ },
873
+ "required": [
874
+ "chain_id",
875
+ "message",
876
+ "signature"
877
+ ],
878
+ "type": "object"
879
+ },
880
+ "CreateWebhookEndpointRequest": {
881
+ "additionalProperties": false,
882
+ "properties": {
883
+ "description": {
884
+ "type": [
885
+ "string",
886
+ "null"
887
+ ]
888
+ },
889
+ "enabled_events": {
890
+ "items": {
891
+ "type": "string"
892
+ },
893
+ "type": "array"
894
+ },
895
+ "metadata": {
896
+ "$ref": "#/components/schemas/MetadataParam"
897
+ },
898
+ "url": {
899
+ "type": "string"
900
+ }
901
+ },
902
+ "required": [
903
+ "url",
904
+ "enabled_events"
905
+ ],
906
+ "type": "object"
907
+ },
908
+ "DeletedWebhookEndpoint": {
909
+ "properties": {
910
+ "deleted": {
911
+ "type": "boolean"
912
+ },
913
+ "id": {
914
+ "type": "string"
915
+ },
916
+ "object": {
917
+ "type": "string",
918
+ "enum": [
919
+ "webhook_endpoint"
920
+ ]
921
+ }
922
+ },
923
+ "required": [
924
+ "id",
925
+ "object",
926
+ "deleted"
927
+ ],
928
+ "type": "object"
929
+ },
930
+ "DeliveryAttempt": {
931
+ "properties": {
932
+ "at": {
933
+ "type": "integer"
934
+ },
935
+ "status_code": {
936
+ "minimum": 0,
937
+ "type": [
938
+ "integer",
939
+ "null"
940
+ ]
941
+ }
942
+ },
943
+ "required": [
944
+ "at"
945
+ ],
946
+ "type": "object"
947
+ },
948
+ "Deposit": {
949
+ "properties": {
950
+ "address": {
951
+ "type": "string"
952
+ },
953
+ "admin": {
954
+ "oneOf": [
955
+ {
956
+ "$ref": "#/components/schemas/DepositAdmin"
957
+ },
958
+ {
959
+ "type": "null"
960
+ }
961
+ ]
962
+ },
963
+ "amount": {
964
+ "minimum": 0,
965
+ "type": [
966
+ "integer",
967
+ "null"
968
+ ]
969
+ },
970
+ "amount_atomic": {
971
+ "type": "string"
972
+ },
973
+ "amount_refunded": {
974
+ "minimum": 0,
975
+ "type": "integer"
976
+ },
977
+ "amount_refunded_atomic": {
978
+ "type": "string"
979
+ },
980
+ "amount_reversed": {
981
+ "minimum": 0,
982
+ "type": "integer"
983
+ },
984
+ "asset": {
985
+ "type": [
986
+ "string",
987
+ "null"
988
+ ]
989
+ },
990
+ "asset_contract": {
991
+ "type": "string"
992
+ },
993
+ "block_hash": {
994
+ "type": "string"
995
+ },
996
+ "block_number": {
997
+ "minimum": 0,
998
+ "type": "integer"
999
+ },
1000
+ "block_time": {
1001
+ "type": "integer"
1002
+ },
1003
+ "chain_id": {
1004
+ "minimum": 0,
1005
+ "type": "integer"
1006
+ },
1007
+ "client_reference_id": {
1008
+ "type": "string"
1009
+ },
1010
+ "created": {
1011
+ "type": "integer"
1012
+ },
1013
+ "currency": {
1014
+ "type": "string"
1015
+ },
1016
+ "deposit_address": {
1017
+ "type": [
1018
+ "string",
1019
+ "null"
1020
+ ]
1021
+ },
1022
+ "exchange_rate": {
1023
+ "type": [
1024
+ "string",
1025
+ "null"
1026
+ ]
1027
+ },
1028
+ "final": {
1029
+ "type": "boolean"
1030
+ },
1031
+ "final_at": {
1032
+ "type": [
1033
+ "integer",
1034
+ "null"
1035
+ ]
1036
+ },
1037
+ "from_address": {
1038
+ "type": "string"
1039
+ },
1040
+ "id": {
1041
+ "type": "string"
1042
+ },
1043
+ "livemode": {
1044
+ "type": "boolean"
1045
+ },
1046
+ "log_index": {
1047
+ "minimum": 0,
1048
+ "type": "integer"
1049
+ },
1050
+ "metadata": {
1051
+ "additionalProperties": {
1052
+ "type": "string"
1053
+ },
1054
+ "type": "object"
1055
+ },
1056
+ "object": {
1057
+ "type": "string",
1058
+ "enum": [
1059
+ "deposit"
1060
+ ]
1061
+ },
1062
+ "price_source": {
1063
+ "type": [
1064
+ "string",
1065
+ "null"
1066
+ ]
1067
+ },
1068
+ "quote": {
1069
+ "oneOf": [
1070
+ {
1071
+ "$ref": "#/components/schemas/ExpandableQuote"
1072
+ },
1073
+ {
1074
+ "type": "null"
1075
+ }
1076
+ ]
1077
+ },
1078
+ "receipt_log_index": {
1079
+ "minimum": 0,
1080
+ "type": "integer"
1081
+ },
1082
+ "refunded": {
1083
+ "type": "boolean"
1084
+ },
1085
+ "rejection_reason": {
1086
+ "type": [
1087
+ "string",
1088
+ "null"
1089
+ ]
1090
+ },
1091
+ "replaced_by": {
1092
+ "type": [
1093
+ "string",
1094
+ "null"
1095
+ ]
1096
+ },
1097
+ "replaces": {
1098
+ "type": [
1099
+ "string",
1100
+ "null"
1101
+ ]
1102
+ },
1103
+ "revision": {
1104
+ "minimum": 0,
1105
+ "type": "integer"
1106
+ },
1107
+ "status": {
1108
+ "type": "string"
1109
+ },
1110
+ "swept": {
1111
+ "type": "boolean"
1112
+ },
1113
+ "tx_hash": {
1114
+ "type": "string"
1115
+ },
1116
+ "valued_at": {
1117
+ "type": [
1118
+ "integer",
1119
+ "null"
1120
+ ]
1121
+ }
1122
+ },
1123
+ "required": [
1124
+ "id",
1125
+ "object",
1126
+ "livemode",
1127
+ "client_reference_id",
1128
+ "status",
1129
+ "final",
1130
+ "swept",
1131
+ "chain_id",
1132
+ "asset_contract",
1133
+ "amount_atomic",
1134
+ "currency",
1135
+ "address",
1136
+ "from_address",
1137
+ "tx_hash",
1138
+ "receipt_log_index",
1139
+ "revision",
1140
+ "log_index",
1141
+ "block_number",
1142
+ "block_hash",
1143
+ "block_time",
1144
+ "amount_refunded_atomic",
1145
+ "refunded",
1146
+ "amount_refunded",
1147
+ "amount_reversed",
1148
+ "created",
1149
+ "metadata"
1150
+ ],
1151
+ "type": "object"
1152
+ },
1153
+ "DepositAddress": {
1154
+ "properties": {
1155
+ "address": {
1156
+ "type": [
1157
+ "string",
1158
+ "null"
1159
+ ]
1160
+ },
1161
+ "client_reference_id": {
1162
+ "type": "string"
1163
+ },
1164
+ "client_secret": {
1165
+ "type": [
1166
+ "string",
1167
+ "null"
1168
+ ]
1169
+ },
1170
+ "created": {
1171
+ "type": "integer"
1172
+ },
1173
+ "id": {
1174
+ "type": "string"
1175
+ },
1176
+ "livemode": {
1177
+ "type": "boolean"
1178
+ },
1179
+ "metadata": {
1180
+ "additionalProperties": {
1181
+ "type": "string"
1182
+ },
1183
+ "type": "object"
1184
+ },
1185
+ "networks": {
1186
+ "items": {
1187
+ "$ref": "#/components/schemas/DepositAddressNetwork"
1188
+ },
1189
+ "type": "array"
1190
+ },
1191
+ "object": {
1192
+ "type": "string",
1193
+ "enum": [
1194
+ "deposit_address"
1195
+ ]
1196
+ },
1197
+ "payments": {
1198
+ "items": {
1199
+ "$ref": "#/components/schemas/Payment"
1200
+ },
1201
+ "type": "array"
1202
+ },
1203
+ "retired_at": {
1204
+ "type": [
1205
+ "integer",
1206
+ "null"
1207
+ ]
1208
+ },
1209
+ "salt": {
1210
+ "type": "string"
1211
+ },
1212
+ "status": {
1213
+ "type": "string"
1214
+ },
1215
+ "version": {
1216
+ "minimum": 0,
1217
+ "type": "integer"
1218
+ }
1219
+ },
1220
+ "required": [
1221
+ "id",
1222
+ "object",
1223
+ "livemode",
1224
+ "client_reference_id",
1225
+ "version",
1226
+ "salt",
1227
+ "status",
1228
+ "created",
1229
+ "metadata",
1230
+ "networks",
1231
+ "payments"
1232
+ ],
1233
+ "type": "object"
1234
+ },
1235
+ "DepositAddressAsset": {
1236
+ "properties": {
1237
+ "asset": {
1238
+ "type": "string"
1239
+ },
1240
+ "contract": {
1241
+ "type": "string"
1242
+ },
1243
+ "decimals": {
1244
+ "minimum": 0,
1245
+ "type": "integer"
1246
+ },
1247
+ "payment_uri": {
1248
+ "type": "string"
1249
+ }
1250
+ },
1251
+ "required": [
1252
+ "asset",
1253
+ "contract",
1254
+ "decimals",
1255
+ "payment_uri"
1256
+ ],
1257
+ "type": "object"
1258
+ },
1259
+ "DepositAddressList": {
1260
+ "properties": {
1261
+ "data": {
1262
+ "items": {
1263
+ "$ref": "#/components/schemas/DepositAddress"
1264
+ },
1265
+ "type": "array"
1266
+ },
1267
+ "has_more": {
1268
+ "type": "boolean"
1269
+ },
1270
+ "object": {
1271
+ "type": "string",
1272
+ "enum": [
1273
+ "list"
1274
+ ]
1275
+ },
1276
+ "url": {
1277
+ "type": "string"
1278
+ }
1279
+ },
1280
+ "required": [
1281
+ "object",
1282
+ "url",
1283
+ "has_more",
1284
+ "data"
1285
+ ],
1286
+ "type": "object"
1287
+ },
1288
+ "DepositAddressNetwork": {
1289
+ "properties": {
1290
+ "address": {
1291
+ "type": "string"
1292
+ },
1293
+ "assets": {
1294
+ "items": {
1295
+ "$ref": "#/components/schemas/DepositAddressAsset"
1296
+ },
1297
+ "type": "array"
1298
+ },
1299
+ "chain_id": {
1300
+ "minimum": 0,
1301
+ "type": "integer"
1302
+ },
1303
+ "treasury": {
1304
+ "type": "string"
1305
+ }
1306
+ },
1307
+ "required": [
1308
+ "chain_id",
1309
+ "address",
1310
+ "treasury",
1311
+ "assets"
1312
+ ],
1313
+ "type": "object"
1314
+ },
1315
+ "DepositAddressView": {
1316
+ "oneOf": [
1317
+ {
1318
+ "$ref": "#/components/schemas/DepositAddress"
1319
+ },
1320
+ {
1321
+ "$ref": "#/components/schemas/ClientDepositAddress"
1322
+ }
1323
+ ]
1324
+ },
1325
+ "DepositAdmin": {
1326
+ "properties": {
1327
+ "account": {
1328
+ "type": "string"
1329
+ },
1330
+ "block_time": {
1331
+ "type": "string"
1332
+ },
1333
+ "events": {
1334
+ "items": {
1335
+ "$ref": "#/components/schemas/DepositEventDelivery"
1336
+ },
1337
+ "type": "array"
1338
+ },
1339
+ "final_at": {
1340
+ "type": [
1341
+ "string",
1342
+ "null"
1343
+ ]
1344
+ },
1345
+ "price_scaled": {
1346
+ "type": [
1347
+ "string",
1348
+ "null"
1349
+ ]
1350
+ },
1351
+ "receipt_log_index": {
1352
+ "minimum": 0,
1353
+ "type": "integer"
1354
+ },
1355
+ "route": {
1356
+ "type": [
1357
+ "string",
1358
+ "null"
1359
+ ]
1360
+ },
1361
+ "route_version": {
1362
+ "minimum": 0,
1363
+ "type": [
1364
+ "integer",
1365
+ "null"
1366
+ ]
1367
+ },
1368
+ "settings_hold": {
1369
+ "type": [
1370
+ "string",
1371
+ "null"
1372
+ ]
1373
+ },
1374
+ "settings_revision": {
1375
+ "type": [
1376
+ "string",
1377
+ "null"
1378
+ ]
1379
+ },
1380
+ "state": {
1381
+ "type": "string"
1382
+ },
1383
+ "transitions": {
1384
+ "items": {
1385
+ "$ref": "#/components/schemas/DepositTransition"
1386
+ },
1387
+ "type": "array"
1388
+ },
1389
+ "updated_at": {
1390
+ "type": "string"
1391
+ }
1392
+ },
1393
+ "required": [
1394
+ "account",
1395
+ "state",
1396
+ "receipt_log_index",
1397
+ "block_time",
1398
+ "updated_at",
1399
+ "transitions",
1400
+ "events"
1401
+ ],
1402
+ "type": "object"
1403
+ },
1404
+ "DepositEventDelivery": {
1405
+ "properties": {
1406
+ "created_at": {
1407
+ "type": "string"
1408
+ },
1409
+ "delivered_at": {
1410
+ "type": [
1411
+ "string",
1412
+ "null"
1413
+ ]
1414
+ },
1415
+ "id": {
1416
+ "type": "string"
1417
+ },
1418
+ "type": {
1419
+ "type": "string"
1420
+ }
1421
+ },
1422
+ "required": [
1423
+ "id",
1424
+ "type",
1425
+ "created_at"
1426
+ ],
1427
+ "type": "object"
1428
+ },
1429
+ "DepositList": {
1430
+ "properties": {
1431
+ "data": {
1432
+ "items": {
1433
+ "$ref": "#/components/schemas/Deposit"
1434
+ },
1435
+ "type": "array"
1436
+ },
1437
+ "has_more": {
1438
+ "type": "boolean"
1439
+ },
1440
+ "object": {
1441
+ "type": "string",
1442
+ "enum": [
1443
+ "list"
1444
+ ]
1445
+ },
1446
+ "url": {
1447
+ "type": "string"
1448
+ }
1449
+ },
1450
+ "required": [
1451
+ "object",
1452
+ "url",
1453
+ "has_more",
1454
+ "data"
1455
+ ],
1456
+ "type": "object"
1457
+ },
1458
+ "DepositTransition": {
1459
+ "properties": {
1460
+ "attempt": {
1461
+ "type": "integer"
1462
+ },
1463
+ "created_at": {
1464
+ "type": "string"
1465
+ },
1466
+ "evidence": {},
1467
+ "from_state": {
1468
+ "type": "string"
1469
+ },
1470
+ "id": {
1471
+ "type": "string"
1472
+ },
1473
+ "to_state": {
1474
+ "type": "string"
1475
+ }
1476
+ },
1477
+ "required": [
1478
+ "id",
1479
+ "from_state",
1480
+ "to_state",
1481
+ "attempt",
1482
+ "evidence",
1483
+ "created_at"
1484
+ ],
1485
+ "type": "object"
1486
+ },
1487
+ "ErrorDetail": {
1488
+ "properties": {
1489
+ "code": {
1490
+ "type": "string"
1491
+ },
1492
+ "doc_url": {
1493
+ "type": "string"
1494
+ },
1495
+ "message": {
1496
+ "type": "string"
1497
+ },
1498
+ "param": {
1499
+ "type": [
1500
+ "string",
1501
+ "null"
1502
+ ]
1503
+ },
1504
+ "type": {
1505
+ "$ref": "#/components/schemas/ErrorType"
1506
+ }
1507
+ },
1508
+ "required": [
1509
+ "type",
1510
+ "code",
1511
+ "message"
1512
+ ],
1513
+ "type": "object"
1514
+ },
1515
+ "ErrorResponse": {
1516
+ "properties": {
1517
+ "error": {
1518
+ "$ref": "#/components/schemas/ErrorDetail"
1519
+ }
1520
+ },
1521
+ "required": [
1522
+ "error"
1523
+ ],
1524
+ "type": "object"
1525
+ },
1526
+ "ErrorType": {
1527
+ "type": "string"
1528
+ },
1529
+ "EventData": {
1530
+ "properties": {
1531
+ "object": {
1532
+ "type": "object"
1533
+ },
1534
+ "previous_attributes": {
1535
+ "type": [
1536
+ "object",
1537
+ "null"
1538
+ ]
1539
+ }
1540
+ },
1541
+ "required": [
1542
+ "object"
1543
+ ],
1544
+ "type": "object"
1545
+ },
1546
+ "EventList": {
1547
+ "properties": {
1548
+ "data": {
1549
+ "items": {
1550
+ "$ref": "#/components/schemas/EventObjectResponse"
1551
+ },
1552
+ "type": "array"
1553
+ },
1554
+ "has_more": {
1555
+ "type": "boolean"
1556
+ },
1557
+ "object": {
1558
+ "type": "string",
1559
+ "enum": [
1560
+ "list"
1561
+ ]
1562
+ },
1563
+ "url": {
1564
+ "type": "string"
1565
+ }
1566
+ },
1567
+ "required": [
1568
+ "object",
1569
+ "url",
1570
+ "has_more",
1571
+ "data"
1572
+ ],
1573
+ "type": "object"
1574
+ },
1575
+ "EventObjectResponse": {
1576
+ "properties": {
1577
+ "account": {
1578
+ "type": "string"
1579
+ },
1580
+ "actor": {
1581
+ "type": "string"
1582
+ },
1583
+ "created": {
1584
+ "type": "integer"
1585
+ },
1586
+ "data": {
1587
+ "$ref": "#/components/schemas/EventData"
1588
+ },
1589
+ "id": {
1590
+ "type": "string"
1591
+ },
1592
+ "livemode": {
1593
+ "type": "boolean"
1594
+ },
1595
+ "object": {
1596
+ "type": "string",
1597
+ "enum": [
1598
+ "event"
1599
+ ]
1600
+ },
1601
+ "pending_webhooks": {
1602
+ "type": "integer"
1603
+ },
1604
+ "request": {
1605
+ "oneOf": [
1606
+ {
1607
+ "$ref": "#/components/schemas/EventRequest"
1608
+ },
1609
+ {
1610
+ "type": "null"
1611
+ }
1612
+ ]
1613
+ },
1614
+ "type": {
1615
+ "type": "string"
1616
+ }
1617
+ },
1618
+ "required": [
1619
+ "id",
1620
+ "object",
1621
+ "account",
1622
+ "livemode",
1623
+ "type",
1624
+ "created",
1625
+ "actor",
1626
+ "data",
1627
+ "pending_webhooks"
1628
+ ],
1629
+ "type": "object"
1630
+ },
1631
+ "EventRequest": {
1632
+ "properties": {
1633
+ "id": {
1634
+ "type": "string"
1635
+ },
1636
+ "idempotency_key": {
1637
+ "type": [
1638
+ "string",
1639
+ "null"
1640
+ ]
1641
+ }
1642
+ },
1643
+ "required": [
1644
+ "id"
1645
+ ],
1646
+ "type": "object"
1647
+ },
1648
+ "ExpandableDeposit": {
1649
+ "oneOf": [
1650
+ {
1651
+ "type": "string"
1652
+ },
1653
+ {
1654
+ "$ref": "#/components/schemas/Deposit"
1655
+ }
1656
+ ]
1657
+ },
1658
+ "ExpandableQuote": {
1659
+ "oneOf": [
1660
+ {
1661
+ "type": "string"
1662
+ },
1663
+ {
1664
+ "$ref": "#/components/schemas/Quote"
1665
+ }
1666
+ ]
1667
+ },
1668
+ "Forwarder": {
1669
+ "properties": {
1670
+ "address": {
1671
+ "type": "string"
1672
+ },
1673
+ "chain_id": {
1674
+ "minimum": 0,
1675
+ "type": "integer"
1676
+ },
1677
+ "deposit_address": {
1678
+ "type": [
1679
+ "string",
1680
+ "null"
1681
+ ]
1682
+ },
1683
+ "factory": {
1684
+ "type": "string"
1685
+ },
1686
+ "id": {
1687
+ "type": "string"
1688
+ },
1689
+ "livemode": {
1690
+ "type": "boolean"
1691
+ },
1692
+ "object": {
1693
+ "type": "string",
1694
+ "enum": [
1695
+ "forwarder"
1696
+ ]
1697
+ },
1698
+ "quote": {
1699
+ "type": [
1700
+ "string",
1701
+ "null"
1702
+ ]
1703
+ },
1704
+ "salt": {
1705
+ "type": "string"
1706
+ },
1707
+ "superseded_at": {
1708
+ "type": [
1709
+ "integer",
1710
+ "null"
1711
+ ]
1712
+ },
1713
+ "treasury": {
1714
+ "type": "string"
1715
+ }
1716
+ },
1717
+ "required": [
1718
+ "id",
1719
+ "object",
1720
+ "livemode",
1721
+ "chain_id",
1722
+ "address",
1723
+ "factory",
1724
+ "salt",
1725
+ "treasury"
1726
+ ],
1727
+ "type": "object"
1728
+ },
1729
+ "ForwarderList": {
1730
+ "properties": {
1731
+ "data": {
1732
+ "items": {
1733
+ "$ref": "#/components/schemas/Forwarder"
1734
+ },
1735
+ "type": "array"
1736
+ },
1737
+ "has_more": {
1738
+ "type": "boolean"
1739
+ },
1740
+ "object": {
1741
+ "type": "string",
1742
+ "enum": [
1743
+ "list"
1744
+ ]
1745
+ },
1746
+ "url": {
1747
+ "type": "string"
1748
+ }
1749
+ },
1750
+ "required": [
1751
+ "object",
1752
+ "url",
1753
+ "has_more",
1754
+ "data"
1755
+ ],
1756
+ "type": "object"
1757
+ },
1758
+ "MarkRefundPaidRequest": {
1759
+ "additionalProperties": false,
1760
+ "properties": {
1761
+ "receipt_log_index": {
1762
+ "minimum": 0,
1763
+ "type": [
1764
+ "integer",
1765
+ "null"
1766
+ ]
1767
+ },
1768
+ "transaction_hash": {
1769
+ "type": "string"
1770
+ }
1771
+ },
1772
+ "required": [
1773
+ "transaction_hash"
1774
+ ],
1775
+ "type": "object"
1776
+ },
1777
+ "MetadataClear": {
1778
+ "type": "string"
1779
+ },
1780
+ "MetadataParam": {
1781
+ "oneOf": [
1782
+ {
1783
+ "additionalProperties": {
1784
+ "type": "string"
1785
+ },
1786
+ "type": "object"
1787
+ },
1788
+ {
1789
+ "$ref": "#/components/schemas/MetadataClear"
1790
+ }
1791
+ ]
1792
+ },
1793
+ "Payment": {
1794
+ "properties": {
1795
+ "amount_atomic": {
1796
+ "type": "string"
1797
+ },
1798
+ "asset": {
1799
+ "type": [
1800
+ "string",
1801
+ "null"
1802
+ ]
1803
+ },
1804
+ "chain_id": {
1805
+ "minimum": 0,
1806
+ "type": "integer"
1807
+ },
1808
+ "confirmations": {
1809
+ "minimum": 0,
1810
+ "type": [
1811
+ "integer",
1812
+ "null"
1813
+ ]
1814
+ },
1815
+ "deposit": {
1816
+ "type": "string"
1817
+ },
1818
+ "estimated_final_at": {
1819
+ "type": [
1820
+ "integer",
1821
+ "null"
1822
+ ]
1823
+ },
1824
+ "matches_quote": {
1825
+ "type": [
1826
+ "boolean",
1827
+ "null"
1828
+ ]
1829
+ },
1830
+ "status": {
1831
+ "type": "string"
1832
+ },
1833
+ "tx_hash": {
1834
+ "type": "string"
1835
+ }
1836
+ },
1837
+ "required": [
1838
+ "status",
1839
+ "chain_id",
1840
+ "tx_hash",
1841
+ "amount_atomic",
1842
+ "deposit"
1843
+ ],
1844
+ "type": "object"
1845
+ },
1846
+ "PaymentSettingsAsset": {
1847
+ "additionalProperties": false,
1848
+ "properties": {
1849
+ "asset": {
1850
+ "type": "string"
1851
+ },
1852
+ "max_deposit_atomic": {
1853
+ "type": [
1854
+ "string",
1855
+ "null"
1856
+ ]
1857
+ },
1858
+ "min_amount": {
1859
+ "minimum": 0,
1860
+ "type": [
1861
+ "integer",
1862
+ "null"
1863
+ ]
1864
+ },
1865
+ "min_deposit_atomic": {
1866
+ "type": [
1867
+ "string",
1868
+ "null"
1869
+ ]
1870
+ },
1871
+ "min_refund_atomic": {
1872
+ "type": [
1873
+ "string",
1874
+ "null"
1875
+ ]
1876
+ },
1877
+ "quote_spread_bps": {
1878
+ "minimum": 0,
1879
+ "type": [
1880
+ "integer",
1881
+ "null"
1882
+ ]
1883
+ },
1884
+ "quote_tolerance_bps": {
1885
+ "minimum": 0,
1886
+ "type": [
1887
+ "integer",
1888
+ "null"
1889
+ ]
1890
+ },
1891
+ "quote_ttl_seconds": {
1892
+ "minimum": 0,
1893
+ "type": [
1894
+ "integer",
1895
+ "null"
1896
+ ]
1897
+ }
1898
+ },
1899
+ "required": [
1900
+ "asset"
1901
+ ],
1902
+ "type": "object"
1903
+ },
1904
+ "PaymentSettingsChain": {
1905
+ "additionalProperties": false,
1906
+ "properties": {
1907
+ "assets": {
1908
+ "items": {
1909
+ "$ref": "#/components/schemas/PaymentSettingsAsset"
1910
+ },
1911
+ "type": "array"
1912
+ },
1913
+ "chain_id": {
1914
+ "minimum": 0,
1915
+ "type": "integer"
1916
+ },
1917
+ "confirmations": {
1918
+ "type": [
1919
+ "string",
1920
+ "null"
1921
+ ]
1922
+ }
1923
+ },
1924
+ "required": [
1925
+ "chain_id",
1926
+ "assets"
1927
+ ],
1928
+ "type": "object"
1929
+ },
1930
+ "PaymentSettingsObject": {
1931
+ "properties": {
1932
+ "available": {
1933
+ "items": {
1934
+ "$ref": "#/components/schemas/AvailableChain"
1935
+ },
1936
+ "type": "array"
1937
+ },
1938
+ "chains": {
1939
+ "items": {
1940
+ "$ref": "#/components/schemas/PaymentSettingsChain"
1941
+ },
1942
+ "type": "array"
1943
+ },
1944
+ "livemode": {
1945
+ "type": "boolean"
1946
+ },
1947
+ "object": {
1948
+ "type": "string",
1949
+ "enum": [
1950
+ "payment_settings"
1951
+ ]
1952
+ },
1953
+ "quote_creations_per_customer_per_minute": {
1954
+ "minimum": 0,
1955
+ "type": [
1956
+ "integer",
1957
+ "null"
1958
+ ]
1959
+ },
1960
+ "revision": {
1961
+ "type": "string"
1962
+ },
1963
+ "status": {
1964
+ "type": "string"
1965
+ },
1966
+ "updated": {
1967
+ "type": "integer"
1968
+ }
1969
+ },
1970
+ "required": [
1971
+ "object",
1972
+ "livemode",
1973
+ "status",
1974
+ "revision",
1975
+ "updated",
1976
+ "quote_creations_per_customer_per_minute",
1977
+ "chains",
1978
+ "available"
1979
+ ],
1980
+ "type": "object"
1981
+ },
1982
+ "Quote": {
1983
+ "properties": {
1984
+ "address": {
1985
+ "type": "string"
1986
+ },
1987
+ "amount": {
1988
+ "minimum": 0,
1989
+ "type": "integer"
1990
+ },
1991
+ "amount_atomic": {
1992
+ "type": "string"
1993
+ },
1994
+ "asset": {
1995
+ "type": "string"
1996
+ },
1997
+ "chain_id": {
1998
+ "minimum": 0,
1999
+ "type": "integer"
2000
+ },
2001
+ "client_reference_id": {
2002
+ "type": "string"
2003
+ },
2004
+ "client_secret": {
2005
+ "type": [
2006
+ "string",
2007
+ "null"
2008
+ ]
2009
+ },
2010
+ "created": {
2011
+ "type": "integer"
2012
+ },
2013
+ "currency": {
2014
+ "type": "string"
2015
+ },
2016
+ "deposit": {
2017
+ "oneOf": [
2018
+ {
2019
+ "$ref": "#/components/schemas/ExpandableDeposit"
2020
+ },
2021
+ {
2022
+ "type": "null"
2023
+ }
2024
+ ]
2025
+ },
2026
+ "exchange_rate": {
2027
+ "type": "string"
2028
+ },
2029
+ "expires_at": {
2030
+ "type": "integer"
2031
+ },
2032
+ "id": {
2033
+ "type": "string"
2034
+ },
2035
+ "livemode": {
2036
+ "type": "boolean"
2037
+ },
2038
+ "metadata": {
2039
+ "additionalProperties": {
2040
+ "type": "string"
2041
+ },
2042
+ "type": "object"
2043
+ },
2044
+ "object": {
2045
+ "type": "string",
2046
+ "enum": [
2047
+ "quote"
2048
+ ]
2049
+ },
2050
+ "payment": {
2051
+ "oneOf": [
2052
+ {
2053
+ "$ref": "#/components/schemas/Payment"
2054
+ },
2055
+ {
2056
+ "type": "null"
2057
+ }
2058
+ ]
2059
+ },
2060
+ "payment_uri": {
2061
+ "type": "string"
2062
+ },
2063
+ "status": {
2064
+ "type": "string"
2065
+ },
2066
+ "terms": {
2067
+ "$ref": "#/components/schemas/QuoteTerms"
2068
+ },
2069
+ "treasury": {
2070
+ "type": "string"
2071
+ }
2072
+ },
2073
+ "required": [
2074
+ "id",
2075
+ "object",
2076
+ "livemode",
2077
+ "client_reference_id",
2078
+ "amount",
2079
+ "currency",
2080
+ "chain_id",
2081
+ "asset",
2082
+ "amount_atomic",
2083
+ "exchange_rate",
2084
+ "address",
2085
+ "treasury",
2086
+ "payment_uri",
2087
+ "status",
2088
+ "expires_at",
2089
+ "created",
2090
+ "terms",
2091
+ "metadata"
2092
+ ],
2093
+ "type": "object"
2094
+ },
2095
+ "QuoteList": {
2096
+ "properties": {
2097
+ "data": {
2098
+ "items": {
2099
+ "$ref": "#/components/schemas/Quote"
2100
+ },
2101
+ "type": "array"
2102
+ },
2103
+ "has_more": {
2104
+ "type": "boolean"
2105
+ },
2106
+ "object": {
2107
+ "type": "string",
2108
+ "enum": [
2109
+ "list"
2110
+ ]
2111
+ },
2112
+ "url": {
2113
+ "type": "string"
2114
+ }
2115
+ },
2116
+ "required": [
2117
+ "object",
2118
+ "url",
2119
+ "has_more",
2120
+ "data"
2121
+ ],
2122
+ "type": "object"
2123
+ },
2124
+ "QuoteTerms": {
2125
+ "properties": {
2126
+ "confirmations": {
2127
+ "type": "string"
2128
+ },
2129
+ "max_deposit_atomic": {
2130
+ "type": "string"
2131
+ },
2132
+ "min_amount": {
2133
+ "minimum": 0,
2134
+ "type": "integer"
2135
+ },
2136
+ "min_deposit_atomic": {
2137
+ "type": "string"
2138
+ },
2139
+ "min_refund_atomic": {
2140
+ "type": "string"
2141
+ },
2142
+ "quote_amount_decimals": {
2143
+ "minimum": 0,
2144
+ "type": "integer"
2145
+ },
2146
+ "quote_spread_bps": {
2147
+ "minimum": 0,
2148
+ "type": "integer"
2149
+ },
2150
+ "quote_tolerance_bps": {
2151
+ "minimum": 0,
2152
+ "type": "integer"
2153
+ },
2154
+ "quote_ttl_seconds": {
2155
+ "minimum": 0,
2156
+ "type": "integer"
2157
+ }
2158
+ },
2159
+ "required": [
2160
+ "quote_ttl_seconds",
2161
+ "quote_spread_bps",
2162
+ "quote_tolerance_bps",
2163
+ "quote_amount_decimals",
2164
+ "min_amount",
2165
+ "min_deposit_atomic",
2166
+ "max_deposit_atomic",
2167
+ "min_refund_atomic",
2168
+ "confirmations"
2169
+ ],
2170
+ "type": "object"
2171
+ },
2172
+ "QuoteView": {
2173
+ "oneOf": [
2174
+ {
2175
+ "$ref": "#/components/schemas/Quote"
2176
+ },
2177
+ {
2178
+ "$ref": "#/components/schemas/ClientQuote"
2179
+ }
2180
+ ]
2181
+ },
2182
+ "Refund": {
2183
+ "properties": {
2184
+ "amount_atomic": {
2185
+ "type": "string"
2186
+ },
2187
+ "created": {
2188
+ "type": "integer"
2189
+ },
2190
+ "deposit": {
2191
+ "$ref": "#/components/schemas/ExpandableDeposit"
2192
+ },
2193
+ "destination_address": {
2194
+ "type": "string"
2195
+ },
2196
+ "failure_reason": {
2197
+ "type": [
2198
+ "string",
2199
+ "null"
2200
+ ]
2201
+ },
2202
+ "id": {
2203
+ "type": "string"
2204
+ },
2205
+ "livemode": {
2206
+ "type": "boolean"
2207
+ },
2208
+ "metadata": {
2209
+ "additionalProperties": {
2210
+ "type": "string"
2211
+ },
2212
+ "type": "object"
2213
+ },
2214
+ "object": {
2215
+ "type": "string",
2216
+ "enum": [
2217
+ "refund"
2218
+ ]
2219
+ },
2220
+ "receipt_log_index": {
2221
+ "minimum": 0,
2222
+ "type": [
2223
+ "integer",
2224
+ "null"
2225
+ ]
2226
+ },
2227
+ "status": {
2228
+ "type": "string"
2229
+ },
2230
+ "transaction_hash": {
2231
+ "type": [
2232
+ "string",
2233
+ "null"
2234
+ ]
2235
+ },
2236
+ "treasury": {
2237
+ "type": "string"
2238
+ }
2239
+ },
2240
+ "required": [
2241
+ "id",
2242
+ "object",
2243
+ "livemode",
2244
+ "deposit",
2245
+ "amount_atomic",
2246
+ "destination_address",
2247
+ "treasury",
2248
+ "status",
2249
+ "created",
2250
+ "metadata"
2251
+ ],
2252
+ "type": "object"
2253
+ },
2254
+ "RefundList": {
2255
+ "properties": {
2256
+ "data": {
2257
+ "items": {
2258
+ "$ref": "#/components/schemas/Refund"
2259
+ },
2260
+ "type": "array"
2261
+ },
2262
+ "has_more": {
2263
+ "type": "boolean"
2264
+ },
2265
+ "object": {
2266
+ "type": "string",
2267
+ "enum": [
2268
+ "list"
2269
+ ]
2270
+ },
2271
+ "url": {
2272
+ "type": "string"
2273
+ }
2274
+ },
2275
+ "required": [
2276
+ "object",
2277
+ "url",
2278
+ "has_more",
2279
+ "data"
2280
+ ],
2281
+ "type": "object"
2282
+ },
2283
+ "ResendEventRequest": {
2284
+ "additionalProperties": false,
2285
+ "properties": {
2286
+ "webhook_endpoint": {
2287
+ "type": "string"
2288
+ }
2289
+ },
2290
+ "required": [
2291
+ "webhook_endpoint"
2292
+ ],
2293
+ "type": "object"
2294
+ },
2295
+ "RollApiKeyRequest": {
2296
+ "additionalProperties": false,
2297
+ "properties": {
2298
+ "expires_in": {
2299
+ "minimum": 0,
2300
+ "type": "integer"
2301
+ }
2302
+ },
2303
+ "type": "object"
2304
+ },
2305
+ "RollWebhookKeyRequest": {
2306
+ "additionalProperties": false,
2307
+ "properties": {
2308
+ "expires_in": {
2309
+ "minimum": 0,
2310
+ "type": "integer"
2311
+ }
2312
+ },
2313
+ "type": "object"
2314
+ },
2315
+ "Sweep": {
2316
+ "properties": {
2317
+ "address": {
2318
+ "type": "string"
2319
+ },
2320
+ "amount_atomic": {
2321
+ "type": "string"
2322
+ },
2323
+ "asset": {
2324
+ "type": [
2325
+ "string",
2326
+ "null"
2327
+ ]
2328
+ },
2329
+ "block_number": {
2330
+ "minimum": 0,
2331
+ "type": "integer"
2332
+ },
2333
+ "chain_id": {
2334
+ "minimum": 0,
2335
+ "type": "integer"
2336
+ },
2337
+ "created": {
2338
+ "type": "integer"
2339
+ },
2340
+ "forwarder": {
2341
+ "type": "string"
2342
+ },
2343
+ "id": {
2344
+ "type": "string"
2345
+ },
2346
+ "livemode": {
2347
+ "type": "boolean"
2348
+ },
2349
+ "log_index": {
2350
+ "minimum": 0,
2351
+ "type": "integer"
2352
+ },
2353
+ "object": {
2354
+ "type": "string",
2355
+ "enum": [
2356
+ "sweep"
2357
+ ]
2358
+ },
2359
+ "token": {
2360
+ "type": "string"
2361
+ },
2362
+ "treasury": {
2363
+ "type": "string"
2364
+ },
2365
+ "tx_hash": {
2366
+ "type": "string"
2367
+ }
2368
+ },
2369
+ "required": [
2370
+ "id",
2371
+ "object",
2372
+ "livemode",
2373
+ "chain_id",
2374
+ "forwarder",
2375
+ "address",
2376
+ "token",
2377
+ "treasury",
2378
+ "amount_atomic",
2379
+ "tx_hash",
2380
+ "log_index",
2381
+ "block_number",
2382
+ "created"
2383
+ ],
2384
+ "type": "object"
2385
+ },
2386
+ "SweepList": {
2387
+ "properties": {
2388
+ "data": {
2389
+ "items": {
2390
+ "$ref": "#/components/schemas/Sweep"
2391
+ },
2392
+ "type": "array"
2393
+ },
2394
+ "has_more": {
2395
+ "type": "boolean"
2396
+ },
2397
+ "object": {
2398
+ "type": "string",
2399
+ "enum": [
2400
+ "list"
2401
+ ]
2402
+ },
2403
+ "url": {
2404
+ "type": "string"
2405
+ }
2406
+ },
2407
+ "required": [
2408
+ "object",
2409
+ "url",
2410
+ "has_more",
2411
+ "data"
2412
+ ],
2413
+ "type": "object"
2414
+ },
2415
+ "Treasury": {
2416
+ "properties": {
2417
+ "address": {
2418
+ "type": "string"
2419
+ },
2420
+ "canceled_at": {
2421
+ "type": [
2422
+ "integer",
2423
+ "null"
2424
+ ]
2425
+ },
2426
+ "cancellation_reason": {
2427
+ "type": [
2428
+ "string",
2429
+ "null"
2430
+ ]
2431
+ },
2432
+ "chain_id": {
2433
+ "minimum": 0,
2434
+ "type": "integer"
2435
+ },
2436
+ "created": {
2437
+ "type": "integer"
2438
+ },
2439
+ "crediting_paused": {
2440
+ "type": "boolean"
2441
+ },
2442
+ "crediting_paused_by": {
2443
+ "items": {
2444
+ "type": "string"
2445
+ },
2446
+ "type": "array"
2447
+ },
2448
+ "effective_at": {
2449
+ "type": "integer"
2450
+ },
2451
+ "id": {
2452
+ "type": "string"
2453
+ },
2454
+ "kind": {
2455
+ "type": "string"
2456
+ },
2457
+ "livemode": {
2458
+ "type": "boolean"
2459
+ },
2460
+ "object": {
2461
+ "type": "string",
2462
+ "enum": [
2463
+ "treasury"
2464
+ ]
2465
+ },
2466
+ "replaced_at": {
2467
+ "type": [
2468
+ "integer",
2469
+ "null"
2470
+ ]
2471
+ },
2472
+ "status": {
2473
+ "type": "string"
2474
+ }
2475
+ },
2476
+ "required": [
2477
+ "id",
2478
+ "object",
2479
+ "livemode",
2480
+ "chain_id",
2481
+ "address",
2482
+ "kind",
2483
+ "status",
2484
+ "effective_at",
2485
+ "created",
2486
+ "crediting_paused",
2487
+ "crediting_paused_by"
2488
+ ],
2489
+ "type": "object"
2490
+ },
2491
+ "TreasuryChallenge": {
2492
+ "properties": {
2493
+ "address": {
2494
+ "type": "string"
2495
+ },
2496
+ "chain_id": {
2497
+ "minimum": 0,
2498
+ "type": "integer"
2499
+ },
2500
+ "expires_at": {
2501
+ "type": "integer"
2502
+ },
2503
+ "livemode": {
2504
+ "type": "boolean"
2505
+ },
2506
+ "message": {
2507
+ "type": "string"
2508
+ },
2509
+ "nonce": {
2510
+ "type": "string"
2511
+ },
2512
+ "object": {
2513
+ "type": "string",
2514
+ "enum": [
2515
+ "treasury_challenge"
2516
+ ]
2517
+ }
2518
+ },
2519
+ "required": [
2520
+ "object",
2521
+ "livemode",
2522
+ "chain_id",
2523
+ "address",
2524
+ "nonce",
2525
+ "message",
2526
+ "expires_at"
2527
+ ],
2528
+ "type": "object"
2529
+ },
2530
+ "TreasuryList": {
2531
+ "properties": {
2532
+ "data": {
2533
+ "items": {
2534
+ "$ref": "#/components/schemas/Treasury"
2535
+ },
2536
+ "type": "array"
2537
+ },
2538
+ "has_more": {
2539
+ "type": "boolean"
2540
+ },
2541
+ "object": {
2542
+ "type": "string",
2543
+ "enum": [
2544
+ "list"
2545
+ ]
2546
+ },
2547
+ "url": {
2548
+ "type": "string"
2549
+ }
2550
+ },
2551
+ "required": [
2552
+ "object",
2553
+ "url",
2554
+ "has_more",
2555
+ "data"
2556
+ ],
2557
+ "type": "object"
2558
+ },
2559
+ "UpdateMetadataRequest": {
2560
+ "additionalProperties": false,
2561
+ "properties": {
2562
+ "metadata": {
2563
+ "$ref": "#/components/schemas/MetadataParam"
2564
+ }
2565
+ },
2566
+ "type": "object"
2567
+ },
2568
+ "UpdatePaymentSettingsRequest": {
2569
+ "additionalProperties": false,
2570
+ "properties": {
2571
+ "chains": {
2572
+ "items": {
2573
+ "$ref": "#/components/schemas/PaymentSettingsChain"
2574
+ },
2575
+ "type": [
2576
+ "array",
2577
+ "null"
2578
+ ]
2579
+ },
2580
+ "quote_creations_per_customer_per_minute": {
2581
+ "minimum": 0,
2582
+ "type": [
2583
+ "integer",
2584
+ "null"
2585
+ ]
2586
+ }
2587
+ },
2588
+ "type": "object"
2589
+ },
2590
+ "UpdateWebhookEndpointRequest": {
2591
+ "additionalProperties": false,
2592
+ "properties": {
2593
+ "description": {
2594
+ "type": [
2595
+ "string",
2596
+ "null"
2597
+ ]
2598
+ },
2599
+ "disabled": {
2600
+ "type": [
2601
+ "boolean",
2602
+ "null"
2603
+ ]
2604
+ },
2605
+ "enabled_events": {
2606
+ "items": {
2607
+ "type": "string"
2608
+ },
2609
+ "type": [
2610
+ "array",
2611
+ "null"
2612
+ ]
2613
+ },
2614
+ "metadata": {
2615
+ "$ref": "#/components/schemas/MetadataParam"
2616
+ },
2617
+ "url": {
2618
+ "type": [
2619
+ "string",
2620
+ "null"
2621
+ ]
2622
+ }
2623
+ },
2624
+ "type": "object"
2625
+ },
2626
+ "WebhookEndpointList": {
2627
+ "properties": {
2628
+ "data": {
2629
+ "items": {
2630
+ "$ref": "#/components/schemas/WebhookEndpointObject"
2631
+ },
2632
+ "type": "array"
2633
+ },
2634
+ "has_more": {
2635
+ "type": "boolean"
2636
+ },
2637
+ "object": {
2638
+ "type": "string",
2639
+ "enum": [
2640
+ "list"
2641
+ ]
2642
+ },
2643
+ "url": {
2644
+ "type": "string"
2645
+ }
2646
+ },
2647
+ "required": [
2648
+ "object",
2649
+ "url",
2650
+ "has_more",
2651
+ "data"
2652
+ ],
2653
+ "type": "object"
2654
+ },
2655
+ "WebhookEndpointObject": {
2656
+ "properties": {
2657
+ "created": {
2658
+ "type": "integer"
2659
+ },
2660
+ "deleted": {
2661
+ "type": [
2662
+ "boolean",
2663
+ "null"
2664
+ ]
2665
+ },
2666
+ "description": {
2667
+ "type": [
2668
+ "string",
2669
+ "null"
2670
+ ]
2671
+ },
2672
+ "disabled_reason": {
2673
+ "type": [
2674
+ "string",
2675
+ "null"
2676
+ ]
2677
+ },
2678
+ "enabled_events": {
2679
+ "items": {
2680
+ "type": "string"
2681
+ },
2682
+ "type": "array"
2683
+ },
2684
+ "id": {
2685
+ "type": "string"
2686
+ },
2687
+ "last_attempt": {
2688
+ "oneOf": [
2689
+ {
2690
+ "$ref": "#/components/schemas/DeliveryAttempt"
2691
+ },
2692
+ {
2693
+ "type": "null"
2694
+ }
2695
+ ]
2696
+ },
2697
+ "livemode": {
2698
+ "type": "boolean"
2699
+ },
2700
+ "metadata": {
2701
+ "additionalProperties": {
2702
+ "type": "string"
2703
+ },
2704
+ "type": "object"
2705
+ },
2706
+ "object": {
2707
+ "type": "string",
2708
+ "enum": [
2709
+ "webhook_endpoint"
2710
+ ]
2711
+ },
2712
+ "oldest_pending_at": {
2713
+ "type": [
2714
+ "integer",
2715
+ "null"
2716
+ ]
2717
+ },
2718
+ "pending_deliveries": {
2719
+ "type": "integer"
2720
+ },
2721
+ "status": {
2722
+ "type": "string"
2723
+ },
2724
+ "url": {
2725
+ "type": "string"
2726
+ }
2727
+ },
2728
+ "required": [
2729
+ "id",
2730
+ "object",
2731
+ "livemode",
2732
+ "url",
2733
+ "enabled_events",
2734
+ "status",
2735
+ "metadata",
2736
+ "created",
2737
+ "pending_deliveries"
2738
+ ],
2739
+ "type": "object"
2740
+ },
2741
+ "WebhookKeyObject": {
2742
+ "properties": {
2743
+ "expires_at": {
2744
+ "type": [
2745
+ "integer",
2746
+ "null"
2747
+ ]
2748
+ },
2749
+ "public_key": {
2750
+ "type": "string"
2751
+ },
2752
+ "version": {
2753
+ "minimum": 0,
2754
+ "type": "integer"
2755
+ }
2756
+ },
2757
+ "required": [
2758
+ "version",
2759
+ "public_key"
2760
+ ],
2761
+ "type": "object"
2762
+ },
2763
+ "WebhookKeyVersion": {
2764
+ "properties": {
2765
+ "expires_at": {
2766
+ "type": [
2767
+ "integer",
2768
+ "null"
2769
+ ]
2770
+ },
2771
+ "version": {
2772
+ "minimum": 0,
2773
+ "type": "integer"
2774
+ }
2775
+ },
2776
+ "required": [
2777
+ "version"
2778
+ ],
2779
+ "type": "object"
2780
+ }
2781
+ };
2782
+ export const contracts = {
2783
+ "get_account": {
2784
+ "response": {
2785
+ "$ref": "#/components/schemas/AccountObject"
2786
+ }
2787
+ },
2788
+ "pause_account": {
2789
+ "response": {
2790
+ "$ref": "#/components/schemas/AccountObject"
2791
+ },
2792
+ "body": {
2793
+ "$ref": "#/components/schemas/AccountSelfPauseRequest"
2794
+ }
2795
+ },
2796
+ "resume_account": {
2797
+ "response": {
2798
+ "$ref": "#/components/schemas/AccountObject"
2799
+ },
2800
+ "body": {
2801
+ "$ref": "#/components/schemas/AccountSelfPauseRequest"
2802
+ }
2803
+ },
2804
+ "roll_webhook_key": {
2805
+ "response": {
2806
+ "$ref": "#/components/schemas/AccountObject"
2807
+ },
2808
+ "body": {
2809
+ "$ref": "#/components/schemas/RollWebhookKeyRequest"
2810
+ }
2811
+ },
2812
+ "list_api_keys": {
2813
+ "response": {
2814
+ "$ref": "#/components/schemas/ApiKeyList"
2815
+ }
2816
+ },
2817
+ "create_api_key": {
2818
+ "response": {
2819
+ "$ref": "#/components/schemas/ApiKeyObject"
2820
+ },
2821
+ "body": {
2822
+ "$ref": "#/components/schemas/CreateApiKeyRequest"
2823
+ }
2824
+ },
2825
+ "revoke_api_key": {
2826
+ "response": {
2827
+ "$ref": "#/components/schemas/ApiKeyObject"
2828
+ }
2829
+ },
2830
+ "get_api_key": {
2831
+ "response": {
2832
+ "$ref": "#/components/schemas/ApiKeyObject"
2833
+ }
2834
+ },
2835
+ "roll_api_key": {
2836
+ "response": {
2837
+ "$ref": "#/components/schemas/ApiKeyObject"
2838
+ },
2839
+ "body": {
2840
+ "$ref": "#/components/schemas/RollApiKeyRequest"
2841
+ }
2842
+ },
2843
+ "get_balance": {
2844
+ "response": {
2845
+ "$ref": "#/components/schemas/Balance"
2846
+ }
2847
+ },
2848
+ "get_config": {
2849
+ "response": {
2850
+ "$ref": "#/components/schemas/Config"
2851
+ }
2852
+ },
2853
+ "list_deposit_addresses": {
2854
+ "response": {
2855
+ "$ref": "#/components/schemas/DepositAddressList"
2856
+ }
2857
+ },
2858
+ "create_deposit_address": {
2859
+ "response": {
2860
+ "$ref": "#/components/schemas/DepositAddress"
2861
+ },
2862
+ "body": {
2863
+ "$ref": "#/components/schemas/CreateDepositAddressRequest"
2864
+ }
2865
+ },
2866
+ "get_deposit_address": {
2867
+ "response": {
2868
+ "$ref": "#/components/schemas/DepositAddressView"
2869
+ }
2870
+ },
2871
+ "update_deposit_address": {
2872
+ "response": {
2873
+ "$ref": "#/components/schemas/DepositAddress"
2874
+ },
2875
+ "body": {
2876
+ "$ref": "#/components/schemas/UpdateMetadataRequest"
2877
+ }
2878
+ },
2879
+ "rotate_deposit_address": {
2880
+ "response": {
2881
+ "$ref": "#/components/schemas/DepositAddress"
2882
+ }
2883
+ },
2884
+ "list_deposits": {
2885
+ "response": {
2886
+ "$ref": "#/components/schemas/DepositList"
2887
+ }
2888
+ },
2889
+ "get_deposit": {
2890
+ "response": {
2891
+ "$ref": "#/components/schemas/Deposit"
2892
+ }
2893
+ },
2894
+ "update_deposit": {
2895
+ "response": {
2896
+ "$ref": "#/components/schemas/Deposit"
2897
+ },
2898
+ "body": {
2899
+ "$ref": "#/components/schemas/UpdateMetadataRequest"
2900
+ }
2901
+ },
2902
+ "list_events": {
2903
+ "response": {
2904
+ "$ref": "#/components/schemas/EventList"
2905
+ }
2906
+ },
2907
+ "get_event": {
2908
+ "response": {
2909
+ "$ref": "#/components/schemas/EventObjectResponse"
2910
+ }
2911
+ },
2912
+ "resend_event": {
2913
+ "response": {
2914
+ "$ref": "#/components/schemas/EventObjectResponse"
2915
+ },
2916
+ "body": {
2917
+ "$ref": "#/components/schemas/ResendEventRequest"
2918
+ }
2919
+ },
2920
+ "list_forwarders": {
2921
+ "response": {
2922
+ "$ref": "#/components/schemas/ForwarderList"
2923
+ }
2924
+ },
2925
+ "get_payment_settings": {
2926
+ "response": {
2927
+ "$ref": "#/components/schemas/PaymentSettingsObject"
2928
+ }
2929
+ },
2930
+ "update_payment_settings": {
2931
+ "response": {
2932
+ "$ref": "#/components/schemas/PaymentSettingsObject"
2933
+ },
2934
+ "body": {
2935
+ "$ref": "#/components/schemas/UpdatePaymentSettingsRequest"
2936
+ }
2937
+ },
2938
+ "list_quotes": {
2939
+ "response": {
2940
+ "$ref": "#/components/schemas/QuoteList"
2941
+ }
2942
+ },
2943
+ "create_quote": {
2944
+ "response": {
2945
+ "$ref": "#/components/schemas/Quote"
2946
+ },
2947
+ "body": {
2948
+ "$ref": "#/components/schemas/CreateQuoteRequest"
2949
+ }
2950
+ },
2951
+ "get_quote": {
2952
+ "response": {
2953
+ "$ref": "#/components/schemas/QuoteView"
2954
+ }
2955
+ },
2956
+ "update_quote": {
2957
+ "response": {
2958
+ "$ref": "#/components/schemas/Quote"
2959
+ },
2960
+ "body": {
2961
+ "$ref": "#/components/schemas/UpdateMetadataRequest"
2962
+ }
2963
+ },
2964
+ "cancel_quote": {
2965
+ "response": {
2966
+ "$ref": "#/components/schemas/Quote"
2967
+ }
2968
+ },
2969
+ "list_refunds": {
2970
+ "response": {
2971
+ "$ref": "#/components/schemas/RefundList"
2972
+ }
2973
+ },
2974
+ "create_refund": {
2975
+ "response": {
2976
+ "$ref": "#/components/schemas/Refund"
2977
+ },
2978
+ "body": {
2979
+ "$ref": "#/components/schemas/CreateRefundRequest"
2980
+ }
2981
+ },
2982
+ "get_refund": {
2983
+ "response": {
2984
+ "$ref": "#/components/schemas/Refund"
2985
+ }
2986
+ },
2987
+ "update_refund": {
2988
+ "response": {
2989
+ "$ref": "#/components/schemas/Refund"
2990
+ },
2991
+ "body": {
2992
+ "$ref": "#/components/schemas/UpdateMetadataRequest"
2993
+ }
2994
+ },
2995
+ "cancel_refund": {
2996
+ "response": {
2997
+ "$ref": "#/components/schemas/Refund"
2998
+ }
2999
+ },
3000
+ "mark_refund_paid": {
3001
+ "response": {
3002
+ "$ref": "#/components/schemas/Refund"
3003
+ },
3004
+ "body": {
3005
+ "$ref": "#/components/schemas/MarkRefundPaidRequest"
3006
+ }
3007
+ },
3008
+ "list_sweeps": {
3009
+ "response": {
3010
+ "$ref": "#/components/schemas/SweepList"
3011
+ }
3012
+ },
3013
+ "list_treasuries": {
3014
+ "response": {
3015
+ "$ref": "#/components/schemas/TreasuryList"
3016
+ }
3017
+ },
3018
+ "create_treasury": {
3019
+ "response": {
3020
+ "$ref": "#/components/schemas/Treasury"
3021
+ },
3022
+ "body": {
3023
+ "$ref": "#/components/schemas/CreateTreasuryRequest"
3024
+ }
3025
+ },
3026
+ "create_treasury_challenge": {
3027
+ "response": {
3028
+ "$ref": "#/components/schemas/TreasuryChallenge"
3029
+ },
3030
+ "body": {
3031
+ "$ref": "#/components/schemas/CreateTreasuryChallengeRequest"
3032
+ }
3033
+ },
3034
+ "get_treasury": {
3035
+ "response": {
3036
+ "$ref": "#/components/schemas/Treasury"
3037
+ }
3038
+ },
3039
+ "cancel_treasury": {
3040
+ "response": {
3041
+ "$ref": "#/components/schemas/Treasury"
3042
+ }
3043
+ },
3044
+ "pause_treasury": {
3045
+ "response": {
3046
+ "$ref": "#/components/schemas/Treasury"
3047
+ }
3048
+ },
3049
+ "resume_treasury": {
3050
+ "response": {
3051
+ "$ref": "#/components/schemas/Treasury"
3052
+ }
3053
+ },
3054
+ "list_webhook_endpoints": {
3055
+ "response": {
3056
+ "$ref": "#/components/schemas/WebhookEndpointList"
3057
+ }
3058
+ },
3059
+ "create_webhook_endpoint": {
3060
+ "response": {
3061
+ "$ref": "#/components/schemas/WebhookEndpointObject"
3062
+ },
3063
+ "body": {
3064
+ "$ref": "#/components/schemas/CreateWebhookEndpointRequest"
3065
+ }
3066
+ },
3067
+ "delete_webhook_endpoint": {
3068
+ "response": {
3069
+ "$ref": "#/components/schemas/DeletedWebhookEndpoint"
3070
+ }
3071
+ },
3072
+ "get_webhook_endpoint": {
3073
+ "response": {
3074
+ "$ref": "#/components/schemas/WebhookEndpointObject"
3075
+ }
3076
+ },
3077
+ "update_webhook_endpoint": {
3078
+ "response": {
3079
+ "$ref": "#/components/schemas/WebhookEndpointObject"
3080
+ },
3081
+ "body": {
3082
+ "$ref": "#/components/schemas/UpdateWebhookEndpointRequest"
3083
+ }
3084
+ },
3085
+ "test_webhook_endpoint": {
3086
+ "response": {
3087
+ "$ref": "#/components/schemas/EventObjectResponse"
3088
+ }
3089
+ }
3090
+ };
3091
+ //# sourceMappingURL=schemas.js.map