@phala/pay-server 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/README.md +15 -10
  2. package/dist/addresses.d.ts.map +1 -0
  3. package/dist/addresses.js.map +1 -0
  4. package/dist/browser.d.ts.map +1 -0
  5. package/dist/browser.js.map +1 -0
  6. package/dist/checkout-params.d.ts.map +1 -0
  7. package/dist/checkout-params.js.map +1 -0
  8. package/dist/{js-server/src/client.d.ts → client.d.ts} +1 -1
  9. package/dist/client.d.ts.map +1 -0
  10. package/dist/{js-server/src/client.js → client.js} +1 -1
  11. package/dist/client.js.map +1 -0
  12. package/dist/{js-server/src/errors.d.ts → errors.d.ts} +5 -3
  13. package/dist/errors.d.ts.map +1 -0
  14. package/dist/{js-server/src/errors.js → errors.js} +0 -1
  15. package/dist/errors.js.map +1 -0
  16. package/dist/{js-server/src/generated → generated}/openapi.d.ts +333 -111
  17. package/dist/generated/openapi.d.ts.map +1 -0
  18. package/dist/generated/openapi.js.map +1 -0
  19. package/dist/{js-server/src/helpers.d.ts → helpers.d.ts} +1 -1
  20. package/dist/helpers.d.ts.map +1 -0
  21. package/dist/{js-server/src/helpers.js → helpers.js} +1 -1
  22. package/dist/helpers.js.map +1 -0
  23. package/dist/index.d.ts +7 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +7 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/json.d.ts.map +1 -0
  28. package/dist/json.js.map +1 -0
  29. package/dist/ledger.d.ts.map +1 -0
  30. package/dist/ledger.js.map +1 -0
  31. package/dist/pins.d.ts.map +1 -0
  32. package/dist/pins.js.map +1 -0
  33. package/dist/resource.d.ts.map +1 -0
  34. package/dist/resource.js.map +1 -0
  35. package/dist/{js-server/src/resources.d.ts → resources.d.ts} +2 -0
  36. package/dist/resources.d.ts.map +1 -0
  37. package/dist/{js-server/src/resources.js → resources.js} +6 -0
  38. package/dist/resources.js.map +1 -0
  39. package/dist/runtime.d.ts.map +1 -0
  40. package/dist/runtime.js.map +1 -0
  41. package/dist/schemas.d.ts.map +1 -0
  42. package/dist/{js-server/src/schemas.js → schemas.js} +83 -0
  43. package/dist/schemas.js.map +1 -0
  44. package/dist/sweeps.d.ts.map +1 -0
  45. package/dist/sweeps.js.map +1 -0
  46. package/dist/transport.d.ts.map +1 -0
  47. package/dist/transport.js.map +1 -0
  48. package/dist/{js-server/src/types.d.ts → types.d.ts} +8 -0
  49. package/dist/types.d.ts.map +1 -0
  50. package/dist/types.js.map +1 -0
  51. package/dist/validation.d.ts.map +1 -0
  52. package/dist/validation.js.map +1 -0
  53. package/dist/{js-server/src/webhook.d.ts → webhook.d.ts} +0 -2
  54. package/dist/webhook.d.ts.map +1 -0
  55. package/dist/{js-server/src/webhook.js → webhook.js} +12 -20
  56. package/dist/webhook.js.map +1 -0
  57. package/package.json +6 -6
  58. package/dist/js/src/shared/checkout-params.d.ts.map +0 -1
  59. package/dist/js/src/shared/checkout-params.js.map +0 -1
  60. package/dist/js-server/src/addresses.d.ts.map +0 -1
  61. package/dist/js-server/src/addresses.js.map +0 -1
  62. package/dist/js-server/src/browser.d.ts.map +0 -1
  63. package/dist/js-server/src/browser.js.map +0 -1
  64. package/dist/js-server/src/client.d.ts.map +0 -1
  65. package/dist/js-server/src/client.js.map +0 -1
  66. package/dist/js-server/src/errors.d.ts.map +0 -1
  67. package/dist/js-server/src/errors.js.map +0 -1
  68. package/dist/js-server/src/generated/openapi.d.ts.map +0 -1
  69. package/dist/js-server/src/generated/openapi.js.map +0 -1
  70. package/dist/js-server/src/helpers.d.ts.map +0 -1
  71. package/dist/js-server/src/helpers.js.map +0 -1
  72. package/dist/js-server/src/index.d.ts +0 -12
  73. package/dist/js-server/src/index.d.ts.map +0 -1
  74. package/dist/js-server/src/index.js +0 -13
  75. package/dist/js-server/src/index.js.map +0 -1
  76. package/dist/js-server/src/json.d.ts.map +0 -1
  77. package/dist/js-server/src/json.js.map +0 -1
  78. package/dist/js-server/src/ledger.d.ts.map +0 -1
  79. package/dist/js-server/src/ledger.js.map +0 -1
  80. package/dist/js-server/src/pins.d.ts.map +0 -1
  81. package/dist/js-server/src/pins.js.map +0 -1
  82. package/dist/js-server/src/resource.d.ts.map +0 -1
  83. package/dist/js-server/src/resource.js.map +0 -1
  84. package/dist/js-server/src/resources.d.ts.map +0 -1
  85. package/dist/js-server/src/resources.js.map +0 -1
  86. package/dist/js-server/src/runtime.d.ts.map +0 -1
  87. package/dist/js-server/src/runtime.js.map +0 -1
  88. package/dist/js-server/src/schemas.d.ts.map +0 -1
  89. package/dist/js-server/src/schemas.js.map +0 -1
  90. package/dist/js-server/src/sweeps.d.ts.map +0 -1
  91. package/dist/js-server/src/sweeps.js.map +0 -1
  92. package/dist/js-server/src/transport.d.ts.map +0 -1
  93. package/dist/js-server/src/transport.js.map +0 -1
  94. package/dist/js-server/src/types.d.ts.map +0 -1
  95. package/dist/js-server/src/types.js.map +0 -1
  96. package/dist/js-server/src/validation.d.ts.map +0 -1
  97. package/dist/js-server/src/validation.js.map +0 -1
  98. package/dist/js-server/src/webhook.d.ts.map +0 -1
  99. package/dist/js-server/src/webhook.js.map +0 -1
  100. /package/dist/{js-server/src/addresses.d.ts → addresses.d.ts} +0 -0
  101. /package/dist/{js-server/src/addresses.js → addresses.js} +0 -0
  102. /package/dist/{js-server/src/browser.d.ts → browser.d.ts} +0 -0
  103. /package/dist/{js-server/src/browser.js → browser.js} +0 -0
  104. /package/dist/{js/src/shared/checkout-params.d.ts → checkout-params.d.ts} +0 -0
  105. /package/dist/{js/src/shared/checkout-params.js → checkout-params.js} +0 -0
  106. /package/dist/{js-server/src/generated → generated}/openapi.js +0 -0
  107. /package/dist/{js-server/src/json.d.ts → json.d.ts} +0 -0
  108. /package/dist/{js-server/src/json.js → json.js} +0 -0
  109. /package/dist/{js-server/src/ledger.d.ts → ledger.d.ts} +0 -0
  110. /package/dist/{js-server/src/ledger.js → ledger.js} +0 -0
  111. /package/dist/{js-server/src/pins.d.ts → pins.d.ts} +0 -0
  112. /package/dist/{js-server/src/pins.js → pins.js} +0 -0
  113. /package/dist/{js-server/src/resource.d.ts → resource.d.ts} +0 -0
  114. /package/dist/{js-server/src/resource.js → resource.js} +0 -0
  115. /package/dist/{js-server/src/runtime.d.ts → runtime.d.ts} +0 -0
  116. /package/dist/{js-server/src/runtime.js → runtime.js} +0 -0
  117. /package/dist/{js-server/src/schemas.d.ts → schemas.d.ts} +0 -0
  118. /package/dist/{js-server/src/sweeps.d.ts → sweeps.d.ts} +0 -0
  119. /package/dist/{js-server/src/sweeps.js → sweeps.js} +0 -0
  120. /package/dist/{js-server/src/transport.d.ts → transport.d.ts} +0 -0
  121. /package/dist/{js-server/src/transport.js → transport.js} +0 -0
  122. /package/dist/{js-server/src/types.js → types.js} +0 -0
  123. /package/dist/{js-server/src/validation.d.ts → validation.d.ts} +0 -0
  124. /package/dist/{js-server/src/validation.js → validation.js} +0 -0
@@ -297,6 +297,23 @@ export interface paths {
297
297
  readonly patch?: never;
298
298
  readonly trace?: never;
299
299
  };
300
+ readonly "/v1/deposit_addresses/{id}/transactions": {
301
+ readonly parameters: {
302
+ readonly query?: never;
303
+ readonly header?: never;
304
+ readonly path?: never;
305
+ readonly cookie?: never;
306
+ };
307
+ readonly get?: never;
308
+ readonly put?: never;
309
+ /** Submit a deposit-address transaction hint on one of its issued networks. */
310
+ readonly post: operations["submit_deposit_address_transaction"];
311
+ readonly delete?: never;
312
+ readonly options?: never;
313
+ readonly head?: never;
314
+ readonly patch?: never;
315
+ readonly trace?: never;
316
+ };
300
317
  readonly "/v1/deposits": {
301
318
  readonly parameters: {
302
319
  readonly query?: never;
@@ -514,6 +531,23 @@ export interface paths {
514
531
  readonly patch?: never;
515
532
  readonly trace?: never;
516
533
  };
534
+ readonly "/v1/quotes/{id}/transactions": {
535
+ readonly parameters: {
536
+ readonly query?: never;
537
+ readonly header?: never;
538
+ readonly path?: never;
539
+ readonly cookie?: never;
540
+ };
541
+ readonly get?: never;
542
+ readonly put?: never;
543
+ /** Submit a quote transaction hint. The stored quote selects the chain and recipient. */
544
+ readonly post: operations["submit_quote_transaction"];
545
+ readonly delete?: never;
546
+ readonly options?: never;
547
+ readonly head?: never;
548
+ readonly patch?: never;
549
+ readonly trace?: never;
550
+ };
517
551
  readonly "/v1/refunds": {
518
552
  readonly parameters: {
519
553
  readonly query?: never;
@@ -569,9 +603,9 @@ export interface paths {
569
603
  * Cancels a pending refund that has no transaction attached and releases its reservation of the
570
604
  * deposit; canceling a canceled refund returns it. Once `mark_paid` attached a transaction, the
571
605
  * refund cannot be canceled, so that the deposit is never paid back twice: it stays reserved
572
- * until verification ends it, `succeeded`, or `failed` when the transaction does not pay it,
573
- * was dropped (its nonce consumed by another transaction at finality), or was never seen by the
574
- * service's providers within 24 hours. Then request a new refund.
606
+ * until dual-source finalized verification ends it, `succeeded`, or `failed` when the transaction
607
+ * does not pay it. A transaction never seen for 24 hours raises an alert and remains pending;
608
+ * contact the operator before taking any further refund action.
575
609
  */
576
610
  readonly post: operations["cancel_refund"];
577
611
  readonly delete?: never;
@@ -597,6 +631,10 @@ export interface paths {
597
631
  * `deposit.refunded` is sent; otherwise it is `failed` with a `failure_reason`. Repeating the same
598
632
  * transaction returns the refund. From here on the refund cannot be canceled: it is `failed`
599
633
  * only when its transaction is proven not to pay it.
634
+ * Each environment has a configured attached-pending refund limit (production 2, staging 1),
635
+ * and permits one new attachment per
636
+ * rolling 24 hours across all accounts and modes. Repeating the same attachment consumes no
637
+ * quota. A limit refusal preserves the reservation; contact the operator before another payout.
600
638
  */
601
639
  readonly post: operations["mark_refund_paid"];
602
640
  readonly delete?: never;
@@ -1130,11 +1168,11 @@ export interface components {
1130
1168
  * "object": "balance",
1131
1169
  * "unswept": [
1132
1170
  * {
1133
- * "amount_atomic": "202510000000000000000",
1134
- * "asset": "PHA",
1171
+ * "amount_atomic": "25000000",
1172
+ * "asset": "usdc",
1135
1173
  * "chain_id": 1,
1136
- * "final_amount_atomic": "202510000000000000000",
1137
- * "token": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e"
1174
+ * "final_amount_atomic": "25000000",
1175
+ * "token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
1138
1176
  * }
1139
1177
  * ]
1140
1178
  * }
@@ -1283,19 +1321,19 @@ export interface components {
1283
1321
  * @example {
1284
1322
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
1285
1323
  * "amount": 2500,
1286
- * "amount_atomic": "202510000000000000000",
1324
+ * "amount_atomic": "25000000",
1287
1325
  * "amount_credited": null,
1288
- * "asset": "PHA",
1326
+ * "asset": "usdc",
1289
1327
  * "chain_id": 1,
1290
1328
  * "confirmations": 1,
1291
1329
  * "currency": "usd",
1292
- * "decimals": 18,
1330
+ * "decimals": 6,
1293
1331
  * "expires_at": 1790554500,
1294
1332
  * "id": "qt_5f1c0b6a2d9e4f3a8b7c6d5e4f3a2b10",
1295
1333
  * "livemode": false,
1296
1334
  * "object": "quote",
1297
1335
  * "payment_status": "seen",
1298
- * "payment_uri": "ethereum:0x6c5ba91642f10282b576d91922ae6448c9d52f4e@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=202510000000000000000",
1336
+ * "payment_uri": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=25000000",
1299
1337
  * "status": "open",
1300
1338
  * "typical_credit_seconds": 30
1301
1339
  * }
@@ -1319,6 +1357,11 @@ export interface components {
1319
1357
  readonly amount_credited: number | null;
1320
1358
  /** @description Asset code. */
1321
1359
  readonly asset: string;
1360
+ /**
1361
+ * Format: int64
1362
+ * @description Deferred cancellation request time, Unix seconds.
1363
+ */
1364
+ readonly cancel_requested_at?: number | null;
1322
1365
  /**
1323
1366
  * Format: int64
1324
1367
  * @description EVM chain identifier.
@@ -1378,18 +1421,18 @@ export interface components {
1378
1421
  * @example {
1379
1422
  * "assets": [
1380
1423
  * {
1381
- * "asset": "PHA",
1424
+ * "asset": "usdc",
1382
1425
  * "chain_id": 1,
1383
1426
  * "confirmations": "12",
1384
- * "contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
1385
- * "decimals": 18,
1386
- * "max_deposit_atomic": "1000000000000000000000000",
1427
+ * "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
1428
+ * "decimals": 6,
1429
+ * "max_deposit_atomic": "10000000000",
1387
1430
  * "min_amount": 100,
1388
1431
  * "min_deposit_atomic": "0",
1389
- * "min_refund_atomic": "1000000000000000000",
1390
- * "pricing": "spot",
1432
+ * "min_refund_atomic": "1000000",
1433
+ * "pricing": "stablecoin",
1391
1434
  * "quote_amount_decimals": 4,
1392
- * "quote_spread_bps": 100,
1435
+ * "quote_spread_bps": 0,
1393
1436
  * "quote_tolerance_bps": 100,
1394
1437
  * "quote_ttl_seconds": 900,
1395
1438
  * "typical_credit_seconds": 150,
@@ -1569,7 +1612,7 @@ export interface components {
1569
1612
  * @description `POST /v1/quotes` body.
1570
1613
  * @example {
1571
1614
  * "amount": 2500,
1572
- * "asset": "PHA",
1615
+ * "asset": "usdc",
1573
1616
  * "chain_id": 1,
1574
1617
  * "client_reference_id": "team-42",
1575
1618
  * "currency": "usd",
@@ -1584,7 +1627,7 @@ export interface components {
1584
1627
  * @description The credit to quote, a positive integer in the currency's minor unit (US cents).
1585
1628
  */
1586
1629
  readonly amount: number;
1587
- /** @description Asset code of the payment on that chain, such as `pha`. */
1630
+ /** @description Asset code of the payment on that chain, such as `usdc`. */
1588
1631
  readonly asset: string;
1589
1632
  /**
1590
1633
  * Format: int64
@@ -1610,7 +1653,7 @@ export interface components {
1610
1653
  /**
1611
1654
  * @description `POST /v1/refunds` body.
1612
1655
  * @example {
1613
- * "amount_atomic": "202510000000000000000",
1656
+ * "amount_atomic": "25000000",
1614
1657
  * "deposit": "dep_8a1f4e2b6c3d49e0a7b5c1d2e3f40516",
1615
1658
  * "destination_address": "0x1775c1326aa633546b0b5634ae2bef0ba7cbfc9a",
1616
1659
  * "metadata": {
@@ -1752,12 +1795,12 @@ export interface components {
1752
1795
  * @example {
1753
1796
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
1754
1797
  * "amount": 2500,
1755
- * "amount_atomic": "202510000000000000000",
1798
+ * "amount_atomic": "25000000",
1756
1799
  * "amount_refunded": 0,
1757
1800
  * "amount_refunded_atomic": "0",
1758
1801
  * "amount_reversed": 0,
1759
- * "asset": "PHA",
1760
- * "asset_contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
1802
+ * "asset": "usdc",
1803
+ * "asset_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
1761
1804
  * "block_hash": "0x9a1c3e5b7d0f2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c",
1762
1805
  * "block_number": 21000000,
1763
1806
  * "block_time": 1790553612,
@@ -1766,7 +1809,7 @@ export interface components {
1766
1809
  * "created": 1790553624,
1767
1810
  * "currency": "usd",
1768
1811
  * "deposit_address": null,
1769
- * "exchange_rate": "0.12345679",
1812
+ * "exchange_rate": "1.00000000",
1770
1813
  * "final": true,
1771
1814
  * "final_at": 1790554572,
1772
1815
  * "from_address": "0x1775c1326aa633546b0b5634ae2bef0ba7cbfc9a",
@@ -1974,10 +2017,10 @@ export interface components {
1974
2017
  * "address": "0x0f45147a02e4c9d91aff20024e22095536fd5053",
1975
2018
  * "assets": [
1976
2019
  * {
1977
- * "asset": "PHA",
1978
- * "contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
1979
- * "decimals": 18,
1980
- * "payment_uri": "ethereum:0x6c5ba91642f10282b576d91922ae6448c9d52f4e@1/transfer?address=0x0f45147a02e4c9d91aff20024e22095536fd5053"
2020
+ * "asset": "usdc",
2021
+ * "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
2022
+ * "decimals": 6,
2023
+ * "payment_uri": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48@1/transfer?address=0x0f45147a02e4c9d91aff20024e22095536fd5053"
1981
2024
  * }
1982
2025
  * ],
1983
2026
  * "chain_id": 1,
@@ -2062,7 +2105,7 @@ export interface components {
2062
2105
  };
2063
2106
  /** @description A token a deposit address takes on one network. */
2064
2107
  readonly DepositAddressAsset: {
2065
- /** @description Asset code, such as `pha`. */
2108
+ /** @description Asset code, such as `usdc`. */
2066
2109
  readonly asset: string;
2067
2110
  /** @description ERC-20 contract address. */
2068
2111
  readonly contract: string;
@@ -2096,10 +2139,10 @@ export interface components {
2096
2139
  * "address": "0x0f45147a02e4c9d91aff20024e22095536fd5053",
2097
2140
  * "assets": [
2098
2141
  * {
2099
- * "asset": "PHA",
2100
- * "contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
2101
- * "decimals": 18,
2102
- * "payment_uri": "ethereum:0x6c5ba91642f10282b576d91922ae6448c9d52f4e@1/transfer?address=0x0f45147a02e4c9d91aff20024e22095536fd5053"
2142
+ * "asset": "usdc",
2143
+ * "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
2144
+ * "decimals": 6,
2145
+ * "payment_uri": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48@1/transfer?address=0x0f45147a02e4c9d91aff20024e22095536fd5053"
2103
2146
  * }
2104
2147
  * ],
2105
2148
  * "chain_id": 1,
@@ -2170,10 +2213,10 @@ export interface components {
2170
2213
  * "address": "0x0f45147a02e4c9d91aff20024e22095536fd5053",
2171
2214
  * "assets": [
2172
2215
  * {
2173
- * "asset": "PHA",
2174
- * "contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
2175
- * "decimals": 18,
2176
- * "payment_uri": "ethereum:0x6c5ba91642f10282b576d91922ae6448c9d52f4e@1/transfer?address=0x0f45147a02e4c9d91aff20024e22095536fd5053"
2216
+ * "asset": "usdc",
2217
+ * "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
2218
+ * "decimals": 6,
2219
+ * "payment_uri": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48@1/transfer?address=0x0f45147a02e4c9d91aff20024e22095536fd5053"
2177
2220
  * }
2178
2221
  * ],
2179
2222
  * "chain_id": 1,
@@ -2272,12 +2315,12 @@ export interface components {
2272
2315
  * {
2273
2316
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
2274
2317
  * "amount": 2500,
2275
- * "amount_atomic": "202510000000000000000",
2318
+ * "amount_atomic": "25000000",
2276
2319
  * "amount_refunded": 0,
2277
2320
  * "amount_refunded_atomic": "0",
2278
2321
  * "amount_reversed": 0,
2279
- * "asset": "PHA",
2280
- * "asset_contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
2322
+ * "asset": "usdc",
2323
+ * "asset_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
2281
2324
  * "block_hash": "0x9a1c3e5b7d0f2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c",
2282
2325
  * "block_number": 21000000,
2283
2326
  * "block_time": 1790553612,
@@ -2286,7 +2329,7 @@ export interface components {
2286
2329
  * "created": 1790553624,
2287
2330
  * "currency": "usd",
2288
2331
  * "deposit_address": null,
2289
- * "exchange_rate": "0.12345679",
2332
+ * "exchange_rate": "1.00000000",
2290
2333
  * "final": true,
2291
2334
  * "final_at": 1790554572,
2292
2335
  * "from_address": "0x1775c1326aa633546b0b5634ae2bef0ba7cbfc9a",
@@ -2355,7 +2398,7 @@ export interface components {
2355
2398
  };
2356
2399
  /** @description Stable error fields safe to expose to callers. */
2357
2400
  readonly ErrorDetail: {
2358
- /** @description Stable machine-readable code. */
2401
+ /** @description Stable machine-readable error code; clients accept future codes. */
2359
2402
  readonly code: string;
2360
2403
  /**
2361
2404
  * @description The documentation of `code` in the API reference. Every error of this service carries it;
@@ -2420,12 +2463,12 @@ export interface components {
2420
2463
  * "object": {
2421
2464
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
2422
2465
  * "amount": 2500,
2423
- * "amount_atomic": "202510000000000000000",
2466
+ * "amount_atomic": "25000000",
2424
2467
  * "amount_refunded": 0,
2425
2468
  * "amount_refunded_atomic": "0",
2426
2469
  * "amount_reversed": 0,
2427
- * "asset": "PHA",
2428
- * "asset_contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
2470
+ * "asset": "usdc",
2471
+ * "asset_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
2429
2472
  * "block_hash": "0x9a1c3e5b7d0f2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c",
2430
2473
  * "block_number": 21000000,
2431
2474
  * "block_time": 1790553612,
@@ -2434,7 +2477,7 @@ export interface components {
2434
2477
  * "created": 1790553624,
2435
2478
  * "currency": "usd",
2436
2479
  * "deposit_address": null,
2437
- * "exchange_rate": "0.12345679",
2480
+ * "exchange_rate": "1.00000000",
2438
2481
  * "final": false,
2439
2482
  * "final_at": 1790554572,
2440
2483
  * "from_address": "0x1775c1326aa633546b0b5634ae2bef0ba7cbfc9a",
@@ -2497,12 +2540,12 @@ export interface components {
2497
2540
  * "object": {
2498
2541
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
2499
2542
  * "amount": 2500,
2500
- * "amount_atomic": "202510000000000000000",
2543
+ * "amount_atomic": "25000000",
2501
2544
  * "amount_refunded": 0,
2502
2545
  * "amount_refunded_atomic": "0",
2503
2546
  * "amount_reversed": 0,
2504
- * "asset": "PHA",
2505
- * "asset_contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
2547
+ * "asset": "usdc",
2548
+ * "asset_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
2506
2549
  * "block_hash": "0x9a1c3e5b7d0f2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c",
2507
2550
  * "block_number": 21000000,
2508
2551
  * "block_time": 1790553612,
@@ -2511,7 +2554,7 @@ export interface components {
2511
2554
  * "created": 1790553624,
2512
2555
  * "currency": "usd",
2513
2556
  * "deposit_address": null,
2514
- * "exchange_rate": "0.12345679",
2557
+ * "exchange_rate": "1.00000000",
2515
2558
  * "final": false,
2516
2559
  * "final_at": 1790554572,
2517
2560
  * "from_address": "0x1775c1326aa633546b0b5634ae2bef0ba7cbfc9a",
@@ -2665,6 +2708,8 @@ export interface components {
2665
2708
  /** @description The list's path, `/v1/forwarders`. */
2666
2709
  readonly url: string;
2667
2710
  };
2711
+ /** @enum {string} */
2712
+ readonly KnownErrorCode: "refund_attachment_limit_exceeded" | "address_capacity_reached" | "chain_unavailable" | "price_unavailable" | "parameter_invalid" | "parameter_missing" | "parameter_unknown" | "amount_too_small" | "amount_too_large" | "exposure_cap_exceeded" | "paused" | "chain_frozen" | "asset_not_accepted" | "payment_settings_unconfirmed" | "treasury_not_set" | "treasury_proof_invalid" | "treasury_challenge_expired" | "treasury_challenge_used" | "treasury_not_deployed" | "treasury_sanctioned" | "treasury_change_pending" | "treasury_unchanged" | "treasury_unexpected_state" | "quote_payment_received" | "quote_window_closed" | "quote_unexpected_state" | "deposit_unexpected_state" | "deposit_not_refundable" | "deposit_not_final" | "destination_sanctioned" | "transfer_already_used" | "refund_unexpected_state" | "api_key_inactive" | "last_api_key" | "deposit_address_cap_exceeded" | "deposit_address_retired" | "webhook_endpoint_cap_exceeded" | "webhook_endpoint_disabled" | "idempotency_key_reused" | "signature_invalid" | "signature_replayed" | "api_key_missing" | "api_key_invalid" | "api_key_expired" | "permission_denied" | "testmode_charges_only" | "resource_missing" | "idempotency_key_in_use" | "rate_limit" | "customer_rate_limit" | "internal_error" | "unavailable" | "service_maintenance" | "service_restoring" | "restore_not_frozen" | "restore_rescan_incomplete";
2668
2713
  /**
2669
2714
  * @description `POST /v1/refunds/{id}/mark_paid` body: the merchant's refund transaction.
2670
2715
  * @example {
@@ -2793,13 +2838,13 @@ export interface components {
2793
2838
  * "assets": [
2794
2839
  * {
2795
2840
  * "accepted": true,
2796
- * "asset": "PHA",
2797
- * "contract": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
2798
- * "decimals": 18,
2841
+ * "asset": "usdc",
2842
+ * "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
2843
+ * "decimals": 6,
2799
2844
  * "enabled": true,
2800
2845
  * "max_deposit_atomic": {
2801
- * "default": "1000000000000000000000000",
2802
- * "max": "1000000000000000000000000",
2846
+ * "default": "10000000000",
2847
+ * "max": "10000000000",
2803
2848
  * "min": "0"
2804
2849
  * },
2805
2850
  * "min_amount": {
@@ -2813,14 +2858,14 @@ export interface components {
2813
2858
  * "min": "0"
2814
2859
  * },
2815
2860
  * "min_refund_atomic": {
2816
- * "default": "1000000000000000000",
2817
- * "max": "1000000000000000000",
2818
- * "min": "1000000000000000000"
2861
+ * "default": "1000000",
2862
+ * "max": "1000000",
2863
+ * "min": "1000000"
2819
2864
  * },
2820
- * "pricing": "spot",
2865
+ * "pricing": "stablecoin",
2821
2866
  * "quote_amount_decimals": 4,
2822
2867
  * "quote_spread_bps": {
2823
- * "default": 50,
2868
+ * "default": 0,
2824
2869
  * "max": 500,
2825
2870
  * "min": 0
2826
2871
  * },
@@ -2837,13 +2882,13 @@ export interface components {
2837
2882
  * },
2838
2883
  * {
2839
2884
  * "accepted": true,
2840
- * "asset": "USDT",
2885
+ * "asset": "usdt",
2841
2886
  * "contract": "0xdac17f958d2ee523a2206206994597c13d831ec7",
2842
2887
  * "decimals": 6,
2843
2888
  * "enabled": true,
2844
2889
  * "max_deposit_atomic": {
2845
- * "default": "1000000000000000000000000",
2846
- * "max": "1000000000000000000000000",
2890
+ * "default": "10000000000",
2891
+ * "max": "10000000000",
2847
2892
  * "min": "0"
2848
2893
  * },
2849
2894
  * "min_amount": {
@@ -2857,14 +2902,14 @@ export interface components {
2857
2902
  * "min": "0"
2858
2903
  * },
2859
2904
  * "min_refund_atomic": {
2860
- * "default": "1000000000000000000",
2861
- * "max": "1000000000000000000",
2862
- * "min": "1000000000000000000"
2905
+ * "default": "1000000",
2906
+ * "max": "1000000",
2907
+ * "min": "1000000"
2863
2908
  * },
2864
2909
  * "pricing": "stablecoin",
2865
2910
  * "quote_amount_decimals": 4,
2866
2911
  * "quote_spread_bps": {
2867
- * "default": 50,
2912
+ * "default": 0,
2868
2913
  * "max": 500,
2869
2914
  * "min": 0
2870
2915
  * },
@@ -2892,11 +2937,11 @@ export interface components {
2892
2937
  * {
2893
2938
  * "assets": [
2894
2939
  * {
2895
- * "asset": "PHA",
2896
- * "quote_spread_bps": 100
2940
+ * "asset": "usdc",
2941
+ * "quote_spread_bps": 0
2897
2942
  * },
2898
2943
  * {
2899
- * "asset": "USDT"
2944
+ * "asset": "usdt"
2900
2945
  * }
2901
2946
  * ],
2902
2947
  * "chain_id": 1,
@@ -2953,15 +2998,15 @@ export interface components {
2953
2998
  * @example {
2954
2999
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
2955
3000
  * "amount": 2500,
2956
- * "amount_atomic": "202510000000000000000",
2957
- * "asset": "PHA",
3001
+ * "amount_atomic": "25000000",
3002
+ * "asset": "usdc",
2958
3003
  * "chain_id": 1,
2959
3004
  * "client_reference_id": "team-42",
2960
3005
  * "client_secret": "qt_5f1c0b6a2d9e4f3a8b7c6d5e4f3a2b10_secret_9f8e7d6c5b4a39281706f5e4d3c2b1a0f9e8d7c6b5a4938271605f4e3d2c1b0a",
2961
3006
  * "created": 1790553600,
2962
3007
  * "currency": "usd",
2963
3008
  * "deposit": null,
2964
- * "exchange_rate": "0.12345679",
3009
+ * "exchange_rate": "1.00000000",
2965
3010
  * "expires_at": 1790554500,
2966
3011
  * "id": "qt_5f1c0b6a2d9e4f3a8b7c6d5e4f3a2b10",
2967
3012
  * "livemode": false,
@@ -2970,8 +3015,8 @@ export interface components {
2970
3015
  * },
2971
3016
  * "object": "quote",
2972
3017
  * "payment": {
2973
- * "amount_atomic": "202510000000000000000",
2974
- * "asset": "PHA",
3018
+ * "amount_atomic": "25000000",
3019
+ * "asset": "usdc",
2975
3020
  * "chain_id": 1,
2976
3021
  * "confirmations": 1,
2977
3022
  * "deposit": "dep_8a1f4e2b6c3d49e0a7b5c1d2e3f40516",
@@ -2980,16 +3025,16 @@ export interface components {
2980
3025
  * "status": "seen",
2981
3026
  * "tx_hash": "0x7d3c1e5a9b2f4d6c8e0a1b3d5f7c9e2a4b6d8f0c1e3a5b7d9f1c3e5a7b9d1f3e"
2982
3027
  * },
2983
- * "payment_uri": "ethereum:0x6c5ba91642f10282b576d91922ae6448c9d52f4e@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=202510000000000000000",
3028
+ * "payment_uri": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=25000000",
2984
3029
  * "status": "open",
2985
3030
  * "terms": {
2986
3031
  * "confirmations": "12",
2987
- * "max_deposit_atomic": "1000000000000000000000000",
3032
+ * "max_deposit_atomic": "10000000000",
2988
3033
  * "min_amount": 100,
2989
3034
  * "min_deposit_atomic": "0",
2990
- * "min_refund_atomic": "1000000000000000000",
3035
+ * "min_refund_atomic": "1000000",
2991
3036
  * "quote_amount_decimals": 4,
2992
- * "quote_spread_bps": 100,
3037
+ * "quote_spread_bps": 0,
2993
3038
  * "quote_tolerance_bps": 100,
2994
3039
  * "quote_ttl_seconds": 900
2995
3040
  * },
@@ -3008,6 +3053,11 @@ export interface components {
3008
3053
  readonly amount_atomic: string;
3009
3054
  /** @description Asset code. */
3010
3055
  readonly asset: string;
3056
+ /**
3057
+ * Format: int64
3058
+ * @description Deferred cancellation request time, Unix seconds; null before a request.
3059
+ */
3060
+ readonly cancel_requested_at?: number | null;
3011
3061
  /**
3012
3062
  * Format: int64
3013
3063
  * @description EVM chain identifier.
@@ -3082,15 +3132,15 @@ export interface components {
3082
3132
  * {
3083
3133
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
3084
3134
  * "amount": 2500,
3085
- * "amount_atomic": "202510000000000000000",
3086
- * "asset": "PHA",
3135
+ * "amount_atomic": "25000000",
3136
+ * "asset": "usdc",
3087
3137
  * "chain_id": 1,
3088
3138
  * "client_reference_id": "team-42",
3089
3139
  * "client_secret": "qt_5f1c0b6a2d9e4f3a8b7c6d5e4f3a2b10_secret_9f8e7d6c5b4a39281706f5e4d3c2b1a0f9e8d7c6b5a4938271605f4e3d2c1b0a",
3090
3140
  * "created": 1790553600,
3091
3141
  * "currency": "usd",
3092
3142
  * "deposit": null,
3093
- * "exchange_rate": "0.12345679",
3143
+ * "exchange_rate": "1.00000000",
3094
3144
  * "expires_at": 1790554500,
3095
3145
  * "id": "qt_5f1c0b6a2d9e4f3a8b7c6d5e4f3a2b10",
3096
3146
  * "livemode": false,
@@ -3099,8 +3149,8 @@ export interface components {
3099
3149
  * },
3100
3150
  * "object": "quote",
3101
3151
  * "payment": {
3102
- * "amount_atomic": "202510000000000000000",
3103
- * "asset": "PHA",
3152
+ * "amount_atomic": "25000000",
3153
+ * "asset": "usdc",
3104
3154
  * "chain_id": 1,
3105
3155
  * "confirmations": 1,
3106
3156
  * "deposit": "dep_8a1f4e2b6c3d49e0a7b5c1d2e3f40516",
@@ -3109,16 +3159,16 @@ export interface components {
3109
3159
  * "status": "seen",
3110
3160
  * "tx_hash": "0x7d3c1e5a9b2f4d6c8e0a1b3d5f7c9e2a4b6d8f0c1e3a5b7d9f1c3e5a7b9d1f3e"
3111
3161
  * },
3112
- * "payment_uri": "ethereum:0x6c5ba91642f10282b576d91922ae6448c9d52f4e@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=202510000000000000000",
3162
+ * "payment_uri": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=25000000",
3113
3163
  * "status": "open",
3114
3164
  * "terms": {
3115
3165
  * "confirmations": "12",
3116
- * "max_deposit_atomic": "1000000000000000000000000",
3166
+ * "max_deposit_atomic": "10000000000",
3117
3167
  * "min_amount": 100,
3118
3168
  * "min_deposit_atomic": "0",
3119
- * "min_refund_atomic": "1000000000000000000",
3169
+ * "min_refund_atomic": "1000000",
3120
3170
  * "quote_amount_decimals": 4,
3121
- * "quote_spread_bps": 100,
3171
+ * "quote_spread_bps": 0,
3122
3172
  * "quote_tolerance_bps": 100,
3123
3173
  * "quote_ttl_seconds": 900
3124
3174
  * },
@@ -3189,15 +3239,15 @@ export interface components {
3189
3239
  * @example {
3190
3240
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
3191
3241
  * "amount": 2500,
3192
- * "amount_atomic": "202510000000000000000",
3193
- * "asset": "PHA",
3242
+ * "amount_atomic": "25000000",
3243
+ * "asset": "usdc",
3194
3244
  * "chain_id": 1,
3195
3245
  * "client_reference_id": "team-42",
3196
3246
  * "client_secret": "qt_5f1c0b6a2d9e4f3a8b7c6d5e4f3a2b10_secret_9f8e7d6c5b4a39281706f5e4d3c2b1a0f9e8d7c6b5a4938271605f4e3d2c1b0a",
3197
3247
  * "created": 1790553600,
3198
3248
  * "currency": "usd",
3199
3249
  * "deposit": null,
3200
- * "exchange_rate": "0.12345679",
3250
+ * "exchange_rate": "1.00000000",
3201
3251
  * "expires_at": 1790554500,
3202
3252
  * "id": "qt_5f1c0b6a2d9e4f3a8b7c6d5e4f3a2b10",
3203
3253
  * "livemode": false,
@@ -3206,8 +3256,8 @@ export interface components {
3206
3256
  * },
3207
3257
  * "object": "quote",
3208
3258
  * "payment": {
3209
- * "amount_atomic": "202510000000000000000",
3210
- * "asset": "PHA",
3259
+ * "amount_atomic": "25000000",
3260
+ * "asset": "usdc",
3211
3261
  * "chain_id": 1,
3212
3262
  * "confirmations": 1,
3213
3263
  * "deposit": "dep_8a1f4e2b6c3d49e0a7b5c1d2e3f40516",
@@ -3216,16 +3266,16 @@ export interface components {
3216
3266
  * "status": "seen",
3217
3267
  * "tx_hash": "0x7d3c1e5a9b2f4d6c8e0a1b3d5f7c9e2a4b6d8f0c1e3a5b7d9f1c3e5a7b9d1f3e"
3218
3268
  * },
3219
- * "payment_uri": "ethereum:0x6c5ba91642f10282b576d91922ae6448c9d52f4e@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=202510000000000000000",
3269
+ * "payment_uri": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48@1/transfer?address=0x2f3e91325b2288bce392711f85f5359661062a91&uint256=25000000",
3220
3270
  * "status": "open",
3221
3271
  * "terms": {
3222
3272
  * "confirmations": "12",
3223
- * "max_deposit_atomic": "1000000000000000000000000",
3273
+ * "max_deposit_atomic": "10000000000",
3224
3274
  * "min_amount": 100,
3225
3275
  * "min_deposit_atomic": "0",
3226
- * "min_refund_atomic": "1000000000000000000",
3276
+ * "min_refund_atomic": "1000000",
3227
3277
  * "quote_amount_decimals": 4,
3228
- * "quote_spread_bps": 100,
3278
+ * "quote_spread_bps": 0,
3229
3279
  * "quote_tolerance_bps": 100,
3230
3280
  * "quote_ttl_seconds": 900
3231
3281
  * },
@@ -3237,7 +3287,7 @@ export interface components {
3237
3287
  * @description A refund of (part of) a deposit to the customer, which the merchant pays from the treasury of
3238
3288
  * the deposit's address and attaches with `mark_paid` (design D5).
3239
3289
  * @example {
3240
- * "amount_atomic": "202510000000000000000",
3290
+ * "amount_atomic": "25000000",
3241
3291
  * "created": 1790557200,
3242
3292
  * "deposit": "dep_8a1f4e2b6c3d49e0a7b5c1d2e3f40516",
3243
3293
  * "destination_address": "0x1775c1326aa633546b0b5634ae2bef0ba7cbfc9a",
@@ -3268,10 +3318,10 @@ export interface components {
3268
3318
  readonly destination_address: string;
3269
3319
  /**
3270
3320
  * @description Why the refund failed: `transaction_failed`, `transfer_not_found`, `sender_mismatch`,
3271
- * `destination_mismatch`, `amount_mismatch`, `transfer_already_used`,
3272
- * `transaction_dropped` (in no block while, at `finalized` on both providers, its sender's
3273
- * nonce was used by another transaction), or `transaction_not_found` (no provider returned
3274
- * it within 24 hours of `mark_paid`). New values may be added.
3321
+ * `destination_mismatch`, `amount_mismatch`, or `transfer_already_used`.
3322
+ * Historical refunds may retain `transaction_dropped` or `transaction_not_found`; missing
3323
+ * transactions now remain pending with their reservation and alert after 24 hours.
3324
+ * New values may be added.
3275
3325
  */
3276
3326
  readonly failure_reason?: string | null;
3277
3327
  /** @description `re_` id. */
@@ -3314,7 +3364,7 @@ export interface components {
3314
3364
  * @example {
3315
3365
  * "data": [
3316
3366
  * {
3317
- * "amount_atomic": "202510000000000000000",
3367
+ * "amount_atomic": "25000000",
3318
3368
  * "created": 1790557200,
3319
3369
  * "deposit": "dep_8a1f4e2b6c3d49e0a7b5c1d2e3f40516",
3320
3370
  * "destination_address": "0x1775c1326aa633546b0b5634ae2bef0ba7cbfc9a",
@@ -3388,6 +3438,32 @@ export interface components {
3388
3438
  */
3389
3439
  readonly expires_in?: number;
3390
3440
  };
3441
+ /**
3442
+ * @description The deposit address must already have a network for this chain.
3443
+ * @example {
3444
+ * "chain_id": 84532,
3445
+ * "transaction_hash": "0x7d3c1e5a9b2f4d6c8e0a1b3d5f7c9e2a4b6d8f0c1e3a5b7d9f1c3e5a7b9d1f3e"
3446
+ * }
3447
+ */
3448
+ readonly SubmitDepositAddressTransactionRequest: {
3449
+ /**
3450
+ * Format: int64
3451
+ * @description One of this object's issued network identifiers.
3452
+ */
3453
+ readonly chain_id: number;
3454
+ /** @description Transaction hash, exactly 32 hexadecimal bytes prefixed by `0x`. */
3455
+ readonly transaction_hash: string;
3456
+ };
3457
+ /**
3458
+ * @description A quote's chain is derived from its stored terms.
3459
+ * @example {
3460
+ * "transaction_hash": "0x7d3c1e5a9b2f4d6c8e0a1b3d5f7c9e2a4b6d8f0c1e3a5b7d9f1c3e5a7b9d1f3e"
3461
+ * }
3462
+ */
3463
+ readonly SubmitQuoteTransactionRequest: {
3464
+ /** @description Transaction hash, exactly 32 hexadecimal bytes prefixed by `0x`. */
3465
+ readonly transaction_hash: string;
3466
+ };
3391
3467
  /**
3392
3468
  * @description A sweep: one finalized `Flushed` event of the factory, which moved a forwarder's whole balance
3393
3469
  * of a token to its treasury (Stripe's Payout). Anyone can send the `flush`; the merchant usually
@@ -3444,8 +3520,8 @@ export interface components {
3444
3520
  * "data": [
3445
3521
  * {
3446
3522
  * "address": "0x2f3e91325b2288bce392711f85f5359661062a91",
3447
- * "amount_atomic": "202510000000000000000",
3448
- * "asset": "PHA",
3523
+ * "amount_atomic": "25000000",
3524
+ * "asset": "usdc",
3449
3525
  * "block_number": 21000420,
3450
3526
  * "chain_id": 1,
3451
3527
  * "created": 1790560800,
@@ -3454,7 +3530,7 @@ export interface components {
3454
3530
  * "livemode": false,
3455
3531
  * "log_index": 7,
3456
3532
  * "object": "sweep",
3457
- * "token": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e",
3533
+ * "token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
3458
3534
  * "treasury": "0x936c1991f8da9a919fa11b557a3514719f5a4504",
3459
3535
  * "tx_hash": "0x4b6d8f0a2c4e6a8c0e2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a4c6e8b0d2f4a6c"
3460
3536
  * }
@@ -3477,6 +3553,32 @@ export interface components {
3477
3553
  /** @description The list's path, `/v1/sweeps`. */
3478
3554
  readonly url: string;
3479
3555
  };
3556
+ /**
3557
+ * @description A quiet acknowledgement, including for ignored hints.
3558
+ * @example {
3559
+ * "object": "transaction_submission",
3560
+ * "status": "received",
3561
+ * "transaction_hash": "0x7d3c1e5a9b2f4d6c8e0a1b3d5f7c9e2a4b6d8f0c1e3a5b7d9f1c3e5a7b9d1f3e"
3562
+ * }
3563
+ */
3564
+ readonly TransactionSubmission: {
3565
+ /** @description Object discriminator. */
3566
+ readonly object: components["schemas"]["TransactionSubmissionObject"];
3567
+ /** @description Acknowledgement only; poll the original object for payment status. */
3568
+ readonly status: components["schemas"]["TransactionSubmissionStatus"];
3569
+ /** @description Hash echoed from the submission. */
3570
+ readonly transaction_hash: string;
3571
+ };
3572
+ /**
3573
+ * @description Constant submission object discriminator.
3574
+ * @enum {string}
3575
+ */
3576
+ readonly TransactionSubmissionObject: "transaction_submission";
3577
+ /**
3578
+ * @description Received acknowledges submission only, never detection or verification.
3579
+ * @enum {string}
3580
+ */
3581
+ readonly TransactionSubmissionStatus: "received";
3480
3582
  /**
3481
3583
  * @description An account's treasury of one chain and mode (design D10): the only address the forwarders
3482
3584
  * issued over it can pay.
@@ -3674,11 +3776,11 @@ export interface components {
3674
3776
  * {
3675
3777
  * "assets": [
3676
3778
  * {
3677
- * "asset": "PHA",
3678
- * "quote_spread_bps": 100
3779
+ * "asset": "usdc",
3780
+ * "quote_spread_bps": 0
3679
3781
  * },
3680
3782
  * {
3681
- * "asset": "USDT"
3783
+ * "asset": "usdt"
3682
3784
  * }
3683
3785
  * ],
3684
3786
  * "chain_id": 1,
@@ -5307,6 +5409,19 @@ export interface operations {
5307
5409
  readonly "application/json": components["schemas"]["ErrorResponse"];
5308
5410
  };
5309
5411
  };
5412
+ /** @description Permanent chain `address_capacity_reached`; not retryable */
5413
+ readonly 422: {
5414
+ headers: {
5415
+ /** @description Tenant data and credentials must never be stored, including errors */
5416
+ readonly "Cache-Control": "no-store";
5417
+ /** @description The request's id, `req_…` (https://docs.stripe.com/api/request_ids) */
5418
+ readonly "Request-Id"?: string;
5419
+ readonly [name: string]: unknown;
5420
+ };
5421
+ content: {
5422
+ readonly "application/json": components["schemas"]["ErrorResponse"];
5423
+ };
5424
+ };
5310
5425
  /** @description `rate_limit`: retry after `Retry-After` seconds */
5311
5426
  readonly 429: {
5312
5427
  headers: {
@@ -5660,6 +5775,19 @@ export interface operations {
5660
5775
  readonly "application/json": components["schemas"]["ErrorResponse"];
5661
5776
  };
5662
5777
  };
5778
+ /** @description Permanent chain `address_capacity_reached`; not retryable */
5779
+ readonly 422: {
5780
+ headers: {
5781
+ /** @description Tenant data and credentials must never be stored, including errors */
5782
+ readonly "Cache-Control": "no-store";
5783
+ /** @description The request's id, `req_…` (https://docs.stripe.com/api/request_ids) */
5784
+ readonly "Request-Id"?: string;
5785
+ readonly [name: string]: unknown;
5786
+ };
5787
+ content: {
5788
+ readonly "application/json": components["schemas"]["ErrorResponse"];
5789
+ };
5790
+ };
5663
5791
  /** @description `rate_limit`, or `customer_rate_limit`: the customer's rotations per hour; retry after `Retry-After` seconds */
5664
5792
  readonly 429: {
5665
5793
  headers: {
@@ -5692,6 +5820,40 @@ export interface operations {
5692
5820
  };
5693
5821
  };
5694
5822
  };
5823
+ readonly submit_deposit_address_transaction: {
5824
+ readonly parameters: {
5825
+ readonly query?: {
5826
+ /** @description Object's browser client secret; omit with a merchant key */
5827
+ readonly client_secret?: string;
5828
+ };
5829
+ readonly header?: never;
5830
+ readonly path: {
5831
+ /** @description Deposit-address identifier */
5832
+ readonly id: string;
5833
+ };
5834
+ readonly cookie?: never;
5835
+ };
5836
+ readonly requestBody: {
5837
+ readonly content: {
5838
+ readonly "application/json": components["schemas"]["SubmitDepositAddressTransactionRequest"];
5839
+ };
5840
+ };
5841
+ readonly responses: {
5842
+ /** @description Received, including ignored hints. No payment result is disclosed. */
5843
+ readonly 202: {
5844
+ headers: {
5845
+ /** @description Tenant data and credentials must never be stored, including errors */
5846
+ readonly "Cache-Control": "no-store";
5847
+ /** @description The request's id, `req_…` (https://docs.stripe.com/api/request_ids) */
5848
+ readonly "Request-Id"?: string;
5849
+ readonly [name: string]: unknown;
5850
+ };
5851
+ content: {
5852
+ readonly "application/json": components["schemas"]["TransactionSubmission"];
5853
+ };
5854
+ };
5855
+ };
5856
+ };
5695
5857
  readonly list_deposits: {
5696
5858
  readonly parameters: {
5697
5859
  readonly query?: {
@@ -6865,6 +7027,19 @@ export interface operations {
6865
7027
  readonly "application/json": components["schemas"]["ErrorResponse"];
6866
7028
  };
6867
7029
  };
7030
+ /** @description Permanent chain `address_capacity_reached`; not retryable */
7031
+ readonly 422: {
7032
+ headers: {
7033
+ /** @description Tenant data and credentials must never be stored, including errors */
7034
+ readonly "Cache-Control": "no-store";
7035
+ /** @description The request's id, `req_…` (https://docs.stripe.com/api/request_ids) */
7036
+ readonly "Request-Id"?: string;
7037
+ readonly [name: string]: unknown;
7038
+ };
7039
+ content: {
7040
+ readonly "application/json": components["schemas"]["ErrorResponse"];
7041
+ };
7042
+ };
6868
7043
  /** @description `rate_limit`, or `customer_rate_limit`: the customer's quotes per minute; retry after `Retry-After` seconds */
6869
7044
  readonly 429: {
6870
7045
  headers: {
@@ -6880,7 +7055,7 @@ export interface operations {
6880
7055
  readonly "application/json": components["schemas"]["ErrorResponse"];
6881
7056
  };
6882
7057
  };
6883
- /** @description Service Unavailable */
7058
+ /** @description `chain_unavailable`, `price_unavailable` or Service Unavailable */
6884
7059
  readonly 503: {
6885
7060
  headers: {
6886
7061
  /** @description Tenant data and credentials must never be stored, including errors */
@@ -7252,6 +7427,40 @@ export interface operations {
7252
7427
  };
7253
7428
  };
7254
7429
  };
7430
+ readonly submit_quote_transaction: {
7431
+ readonly parameters: {
7432
+ readonly query?: {
7433
+ /** @description Object's browser client secret; omit with a merchant key */
7434
+ readonly client_secret?: string;
7435
+ };
7436
+ readonly header?: never;
7437
+ readonly path: {
7438
+ /** @description Quote identifier */
7439
+ readonly id: string;
7440
+ };
7441
+ readonly cookie?: never;
7442
+ };
7443
+ readonly requestBody: {
7444
+ readonly content: {
7445
+ readonly "application/json": components["schemas"]["SubmitQuoteTransactionRequest"];
7446
+ };
7447
+ };
7448
+ readonly responses: {
7449
+ /** @description Received, including ignored hints. No payment result is disclosed. */
7450
+ readonly 202: {
7451
+ headers: {
7452
+ /** @description Tenant data and credentials must never be stored, including errors */
7453
+ readonly "Cache-Control": "no-store";
7454
+ /** @description The request's id, `req_…` (https://docs.stripe.com/api/request_ids) */
7455
+ readonly "Request-Id"?: string;
7456
+ readonly [name: string]: unknown;
7457
+ };
7458
+ content: {
7459
+ readonly "application/json": components["schemas"]["TransactionSubmission"];
7460
+ };
7461
+ };
7462
+ };
7463
+ };
7255
7464
  readonly list_refunds: {
7256
7465
  readonly parameters: {
7257
7466
  readonly query?: {
@@ -7919,6 +8128,19 @@ export interface operations {
7919
8128
  readonly "application/json": components["schemas"]["ErrorResponse"];
7920
8129
  };
7921
8130
  };
8131
+ /** @description Non-retryable `refund_attachment_limit_exceeded`; contact the operator. The reservation is preserved. */
8132
+ readonly 422: {
8133
+ headers: {
8134
+ /** @description Tenant data and credentials must never be stored, including errors */
8135
+ readonly "Cache-Control": "no-store";
8136
+ /** @description The request's id, `req_…` (https://docs.stripe.com/api/request_ids) */
8137
+ readonly "Request-Id"?: string;
8138
+ readonly [name: string]: unknown;
8139
+ };
8140
+ content: {
8141
+ readonly "application/json": components["schemas"]["ErrorResponse"];
8142
+ };
8143
+ };
7922
8144
  /** @description `rate_limit`: retry after `Retry-After` seconds */
7923
8145
  readonly 429: {
7924
8146
  headers: {