@marcohefti/request-network-api-client 0.5.11 → 0.6.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 (82) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/domains/currencies/v1/index.js +288 -0
  3. package/dist/cjs/domains/currencies/v1/index.js.map +1 -0
  4. package/dist/cjs/domains/pay/index.js +251 -0
  5. package/dist/cjs/domains/pay/index.js.map +1 -0
  6. package/dist/cjs/domains/pay/v1/index.js +241 -0
  7. package/dist/cjs/domains/pay/v1/index.js.map +1 -0
  8. package/dist/cjs/domains/payer/v1/index.js +355 -0
  9. package/dist/cjs/domains/payer/v1/index.js.map +1 -0
  10. package/dist/cjs/domains/payer/v2/index.js +355 -0
  11. package/dist/cjs/domains/payer/v2/index.js.map +1 -0
  12. package/dist/cjs/domains/payments/index.js +274 -0
  13. package/dist/cjs/domains/payments/index.js.map +1 -0
  14. package/dist/cjs/domains/requests/index.js +40 -12
  15. package/dist/cjs/domains/requests/index.js.map +1 -1
  16. package/dist/cjs/domains/requests/v1/index.js +499 -0
  17. package/dist/cjs/domains/requests/v1/index.js.map +1 -0
  18. package/dist/cjs/domains/secure-payments/index.js +248 -0
  19. package/dist/cjs/domains/secure-payments/index.js.map +1 -0
  20. package/dist/cjs/index.js +238 -246
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/esm/{index-y-zLkaVo.d.mts → currencies.v1.facade-ROQlpyCp.d.mts} +2 -34
  23. package/dist/esm/domains/client-ids/index.d.mts +2 -2
  24. package/dist/esm/domains/currencies/index.d.mts +3 -2
  25. package/dist/esm/domains/currencies/v1/index.d.mts +3 -0
  26. package/dist/esm/domains/currencies/v1/index.js +286 -0
  27. package/dist/esm/domains/currencies/v1/index.js.map +1 -0
  28. package/dist/esm/domains/pay/index.d.mts +3 -0
  29. package/dist/esm/domains/pay/index.js +248 -0
  30. package/dist/esm/domains/pay/index.js.map +1 -0
  31. package/dist/esm/domains/pay/v1/index.d.mts +2 -0
  32. package/dist/esm/domains/pay/v1/index.js +239 -0
  33. package/dist/esm/domains/pay/v1/index.js.map +1 -0
  34. package/dist/esm/domains/payer/index.d.mts +4 -2
  35. package/dist/esm/domains/payer/v1/index.d.mts +2 -0
  36. package/dist/esm/domains/payer/v1/index.js +353 -0
  37. package/dist/esm/domains/payer/v1/index.js.map +1 -0
  38. package/dist/esm/domains/payer/v2/index.d.mts +2 -0
  39. package/dist/esm/domains/payer/v2/index.js +353 -0
  40. package/dist/esm/domains/payer/v2/index.js.map +1 -0
  41. package/dist/esm/domains/payments/index.d.mts +3 -0
  42. package/dist/esm/domains/payments/index.js +272 -0
  43. package/dist/esm/domains/payments/index.js.map +1 -0
  44. package/dist/esm/domains/payouts/index.d.mts +2 -2
  45. package/dist/esm/domains/requests/index.d.mts +3 -2
  46. package/dist/esm/domains/requests/index.js +40 -12
  47. package/dist/esm/domains/requests/index.js.map +1 -1
  48. package/dist/esm/domains/requests/v1/index.d.mts +3 -0
  49. package/dist/esm/domains/requests/v1/index.js +497 -0
  50. package/dist/esm/domains/requests/v1/index.js.map +1 -0
  51. package/dist/esm/domains/secure-payments/index.d.mts +2 -0
  52. package/dist/esm/domains/secure-payments/index.js +246 -0
  53. package/dist/esm/domains/secure-payments/index.js.map +1 -0
  54. package/dist/esm/index-4zmukpkJ.d.mts +12 -0
  55. package/dist/esm/index-BPikysYP.d.mts +10 -0
  56. package/dist/esm/index-BlEg0bI1.d.mts +25 -0
  57. package/dist/esm/{index-CTQxsAHa.d.mts → index-CBcZqEQp.d.mts} +1 -1
  58. package/dist/esm/index-CS9UrTd6.d.mts +10 -0
  59. package/dist/esm/index-CeMw0yOZ.d.mts +3393 -0
  60. package/dist/esm/index-DPVFRK3h.d.mts +36 -0
  61. package/dist/esm/{index-B5uZTITr.d.mts → index-DPx06HBi.d.mts} +18 -58
  62. package/dist/esm/index-DZ0iw_Xz.d.mts +10 -0
  63. package/dist/esm/index-DpFThmL3.d.mts +57 -0
  64. package/dist/esm/{index-DzdJCXFj.d.mts → index-DuMayMNI.d.mts} +1 -1
  65. package/dist/esm/index-Kx46FKbk.d.mts +38 -0
  66. package/dist/esm/index-srhKdWh7.d.mts +21 -0
  67. package/dist/esm/index.d.mts +31 -3520
  68. package/dist/esm/index.js +238 -246
  69. package/dist/esm/index.js.map +1 -1
  70. package/dist/esm/{openapi-types-D-zUdw-r.d.mts → openapi-types-JhYQOcil.d.mts} +263 -128
  71. package/dist/esm/pay.v1.facade-wxvuDX9t.d.mts +17 -0
  72. package/dist/esm/payer.v1.facade-Rcl1BBPl.d.mts +31 -0
  73. package/dist/esm/payer.v2.facade-BqcIOIBY.d.mts +31 -0
  74. package/dist/esm/request.helpers-DgzNANMt.d.mts +51 -0
  75. package/package.json +11 -10
  76. package/dist/cjs/domains/payee-destination/index.js +0 -276
  77. package/dist/cjs/domains/payee-destination/index.js.map +0 -1
  78. package/dist/esm/domains/payee-destination/index.d.mts +0 -2
  79. package/dist/esm/domains/payee-destination/index.js +0 -274
  80. package/dist/esm/domains/payee-destination/index.js.map +0 -1
  81. package/dist/esm/index-BDVvifym.d.mts +0 -31
  82. package/dist/esm/index-CvPDycgF.d.mts +0 -79
@@ -174,9 +174,9 @@ interface operations {
174
174
  id?: string;
175
175
  };
176
176
  header?: {
177
- /** @description API key for authentication (optional if using Client ID) */
177
+ /** @description API key for authentication (optional if using Client ID or session) */
178
178
  "x-api-key"?: string;
179
- /** @description Client ID for frontend authentication (optional if using API key) */
179
+ /** @description Client ID for frontend authentication (optional if using API key or session) */
180
180
  "x-client-id"?: string;
181
181
  /** @description Origin header (required for Client ID auth, automatically set by browser) */
182
182
  Origin?: string;
@@ -231,9 +231,9 @@ interface operations {
231
231
  networks?: string;
232
232
  };
233
233
  header?: {
234
- /** @description API key for authentication (optional if using Client ID) */
234
+ /** @description API key for authentication (optional if using Client ID or session) */
235
235
  "x-api-key"?: string;
236
- /** @description Client ID for frontend authentication (optional if using API key) */
236
+ /** @description Client ID for frontend authentication (optional if using API key or session) */
237
237
  "x-client-id"?: string;
238
238
  /** @description Origin header (required for Client ID auth, automatically set by browser) */
239
239
  Origin?: string;
@@ -285,9 +285,9 @@ interface operations {
285
285
  id?: string;
286
286
  };
287
287
  header?: {
288
- /** @description API key for authentication (optional if using Client ID) */
288
+ /** @description API key for authentication (optional if using Client ID or session) */
289
289
  "x-api-key"?: string;
290
- /** @description Client ID for frontend authentication (optional if using API key) */
290
+ /** @description Client ID for frontend authentication (optional if using API key or session) */
291
291
  "x-client-id"?: string;
292
292
  /** @description Origin header (required for Client ID auth, automatically set by browser) */
293
293
  Origin?: string;
@@ -342,9 +342,9 @@ interface operations {
342
342
  networks?: string;
343
343
  };
344
344
  header?: {
345
- /** @description API key for authentication (optional if using Client ID) */
345
+ /** @description API key for authentication (optional if using Client ID or session) */
346
346
  "x-api-key"?: string;
347
- /** @description Client ID for frontend authentication (optional if using API key) */
347
+ /** @description Client ID for frontend authentication (optional if using API key or session) */
348
348
  "x-client-id"?: string;
349
349
  /** @description Origin header (required for Client ID auth, automatically set by browser) */
350
350
  Origin?: string;
@@ -1047,7 +1047,7 @@ interface operations {
1047
1047
  * @description Type of fee
1048
1048
  * @enum {string}
1049
1049
  */
1050
- type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp";
1050
+ type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp" | "protocol";
1051
1051
  /**
1052
1052
  * @description Stage when the fee is applied
1053
1053
  * @enum {string}
@@ -1056,9 +1056,9 @@ interface operations {
1056
1056
  /** @description Provider that charged the fee */
1057
1057
  provider?: string;
1058
1058
  /** @description Fee amount in human-readable format (formatted with token decimals) */
1059
- amount?: string;
1059
+ amount?: string | null;
1060
1060
  /** @description Fee amount in USD */
1061
- amountInUSD?: string;
1061
+ amountInUSD?: string | null;
1062
1062
  /** @description Fee currency */
1063
1063
  currency?: string;
1064
1064
  /** @description Address that received the fee */
@@ -1171,6 +1171,94 @@ interface operations {
1171
1171
  };
1172
1172
  };
1173
1173
  };
1174
+ RequestControllerV2_listRequests_v2: {
1175
+ parameters: {
1176
+ query: {
1177
+ /** @description Payee wallet address to filter requests by */
1178
+ walletAddress: string;
1179
+ /** @description Number of results per page (max 100) */
1180
+ limit?: string;
1181
+ /** @description Pagination offset */
1182
+ offset?: string;
1183
+ };
1184
+ header?: {
1185
+ /** @description API key for authentication (optional if using Client ID or session) */
1186
+ "x-api-key"?: string;
1187
+ /** @description Client ID for frontend authentication (optional if using API key or session) */
1188
+ "x-client-id"?: string;
1189
+ /** @description Origin header (required for Client ID auth, automatically set by browser) */
1190
+ Origin?: string;
1191
+ };
1192
+ path?: never;
1193
+ cookie?: never;
1194
+ };
1195
+ requestBody?: never;
1196
+ responses: {
1197
+ /** @description Requests listed successfully */
1198
+ 200: {
1199
+ headers: {
1200
+ [name: string]: unknown;
1201
+ };
1202
+ content: {
1203
+ "application/json": {
1204
+ /** @description List of requests */
1205
+ requests: {
1206
+ /** @description Unique identifier of the request */
1207
+ requestId?: string;
1208
+ /** @description Unique payment reference */
1209
+ paymentReference?: string;
1210
+ /** @description Request amount in human-readable format */
1211
+ amount?: string | null;
1212
+ /** @description Invoice currency symbol (e.g. USD) */
1213
+ invoiceCurrency?: string;
1214
+ /** @description Payment currency ID */
1215
+ paymentCurrency?: string;
1216
+ /** @description Whether the request has been paid */
1217
+ hasBeenPaid?: boolean;
1218
+ /** @description Current status of the request */
1219
+ status?: string | null;
1220
+ /** @description Merchant reference */
1221
+ reference?: string | null;
1222
+ /**
1223
+ * Format: date-time
1224
+ * @description When the request was created
1225
+ */
1226
+ createdAt?: string | null;
1227
+ /** @description Transaction hash of the payment, null if not yet paid */
1228
+ txHash?: string | null;
1229
+ /** @description Payee wallet address */
1230
+ payee?: string | null;
1231
+ /** @description Payer wallet address */
1232
+ payer?: string | null;
1233
+ }[];
1234
+ /** @description Pagination metadata */
1235
+ pagination: {
1236
+ /** @description Total number of matching requests */
1237
+ total?: number;
1238
+ /** @description Number of results per page */
1239
+ limit?: number;
1240
+ /** @description Current pagination offset */
1241
+ offset?: number;
1242
+ };
1243
+ };
1244
+ };
1245
+ };
1246
+ /** @description Validation failed */
1247
+ 400: {
1248
+ headers: {
1249
+ [name: string]: unknown;
1250
+ };
1251
+ content?: never;
1252
+ };
1253
+ /** @description Too Many Requests */
1254
+ 429: {
1255
+ headers: {
1256
+ [name: string]: unknown;
1257
+ };
1258
+ content?: never;
1259
+ };
1260
+ };
1261
+ };
1174
1262
  RequestControllerV2_createRequest_v2: {
1175
1263
  parameters: {
1176
1264
  query?: never;
@@ -1190,7 +1278,7 @@ interface operations {
1190
1278
  "application/json": {
1191
1279
  /** @description The wallet address of the payer */
1192
1280
  payer?: string;
1193
- /** @description The wallet address of the payee (Ethereum 0x... or TRON T...). Required for all requests except crypto-to-fiat */
1281
+ /** @description The wallet address of the payee (Ethereum 0x... or TRON T...). Optional when using client ID authentication with a configured payee destination. */
1194
1282
  payee?: string;
1195
1283
  /** @description The payable amount of the invoice, in human readable format */
1196
1284
  amount: string;
@@ -1265,15 +1353,15 @@ interface operations {
1265
1353
  };
1266
1354
  };
1267
1355
  };
1268
- /** @description Validation failed */
1356
+ /** @description Validation failed or no active payee destination for client ID */
1269
1357
  400: {
1270
1358
  headers: {
1271
1359
  [name: string]: unknown;
1272
1360
  };
1273
1361
  content?: never;
1274
1362
  };
1275
- /** @description Wallet not found */
1276
- 404: {
1363
+ /** @description Client ID has been revoked */
1364
+ 403: {
1277
1365
  headers: {
1278
1366
  [name: string]: unknown;
1279
1367
  };
@@ -1292,9 +1380,9 @@ interface operations {
1292
1380
  parameters: {
1293
1381
  query?: never;
1294
1382
  header?: {
1295
- /** @description API key for authentication (optional if using Client ID) */
1383
+ /** @description API key for authentication (optional if using Client ID or session) */
1296
1384
  "x-api-key"?: string;
1297
- /** @description Client ID for frontend authentication (optional if using API key) */
1385
+ /** @description Client ID for frontend authentication (optional if using API key or session) */
1298
1386
  "x-client-id"?: string;
1299
1387
  /** @description Origin header (required for Client ID auth, automatically set by browser) */
1300
1388
  Origin?: string;
@@ -1320,6 +1408,8 @@ interface operations {
1320
1408
  paymentReference?: string;
1321
1409
  /** @description Unique identifier of the request */
1322
1410
  requestId?: string;
1411
+ /** @description The payee wallet address for this request */
1412
+ payee?: string | null;
1323
1413
  /** @description Whether the system is actively listening for payments on this request */
1324
1414
  isListening?: boolean;
1325
1415
  /** @description Transaction hash of the payment, null if not yet paid */
@@ -1395,11 +1485,11 @@ interface operations {
1395
1485
  * @description Type of fee
1396
1486
  * @enum {string}
1397
1487
  */
1398
- type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp";
1488
+ type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp" | "protocol";
1399
1489
  /** @description Fee provider */
1400
1490
  provider?: string;
1401
1491
  /** @description Fee amount in human-readable format (formatted with token decimals) */
1402
- amount?: string;
1492
+ amount?: string | null;
1403
1493
  /** @description Fee currency */
1404
1494
  currency?: string;
1405
1495
  }[] | null;
@@ -1637,7 +1727,7 @@ interface operations {
1637
1727
  * @description Type of fee
1638
1728
  * @enum {string}
1639
1729
  */
1640
- type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp";
1730
+ type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp" | "protocol";
1641
1731
  /**
1642
1732
  * @description Stage when the fee is applied
1643
1733
  * @enum {string}
@@ -1646,9 +1736,9 @@ interface operations {
1646
1736
  /** @description Provider that charged the fee */
1647
1737
  provider?: string;
1648
1738
  /** @description Fee amount in human-readable format (formatted with token decimals) */
1649
- amount?: string;
1739
+ amount?: string | null;
1650
1740
  /** @description Fee amount in USD */
1651
- amountInUSD?: string;
1741
+ amountInUSD?: string | null;
1652
1742
  /** @description Fee currency */
1653
1743
  currency?: string;
1654
1744
  /** @description Address that received the fee */
@@ -2927,7 +3017,7 @@ interface operations {
2927
3017
  * @description Type of fee
2928
3018
  * @enum {string}
2929
3019
  */
2930
- type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp";
3020
+ type?: "gas" | "platform" | "crosschain" | "crypto-to-fiat" | "offramp" | "protocol";
2931
3021
  /**
2932
3022
  * @description Stage when the fee is applied
2933
3023
  * @enum {string}
@@ -2936,9 +3026,9 @@ interface operations {
2936
3026
  /** @description Provider that charged the fee */
2937
3027
  provider?: string;
2938
3028
  /** @description Fee amount in human-readable format (formatted with token decimals) */
2939
- amount?: string;
3029
+ amount?: string | null;
2940
3030
  /** @description Fee amount in USD */
2941
- amountInUSD?: string;
3031
+ amountInUSD?: string | null;
2942
3032
  /** @description Fee currency */
2943
3033
  currency?: string;
2944
3034
  /** @description Address that received the fee */
@@ -3428,64 +3518,60 @@ interface operations {
3428
3518
  };
3429
3519
  };
3430
3520
  };
3431
- PayeeDestinationController_getSigningData_v2: {
3521
+ SecurePaymentController_findSecurePayment_v2: {
3432
3522
  parameters: {
3433
3523
  query: {
3434
- /** @description The wallet address that will sign the message */
3435
- walletAddress: string;
3436
- /** @description The action to perform (add or deactivate) */
3437
- action: "add" | "deactivate";
3438
- /** @description The ERC20 token address for the payee destination */
3439
- tokenAddress: string;
3440
- /** @description The chain ID where the token is deployed */
3441
- chainId: string;
3524
+ /** @description Request ID to look up the associated secure payment */
3525
+ requestId: string;
3442
3526
  };
3443
3527
  header: {
3444
- /** @description Client ID for frontend authentication */
3445
- "x-client-id": string;
3446
- /** @description Origin header (automatically set by browser) */
3447
- Origin: string;
3528
+ /** @description Bearer token for session authentication (or use session_token cookie) */
3529
+ Authorization: string;
3448
3530
  };
3449
3531
  path?: never;
3450
3532
  cookie?: never;
3451
3533
  };
3452
3534
  requestBody?: never;
3453
3535
  responses: {
3454
- /** @description EIP-712 signing data with nonce */
3536
+ /** @description Secure payment found */
3455
3537
  200: {
3456
3538
  headers: {
3457
3539
  [name: string]: unknown;
3458
3540
  };
3459
- content?: never;
3460
- };
3461
- /** @description Too Many Requests */
3462
- 429: {
3463
- headers: {
3464
- [name: string]: unknown;
3541
+ content: {
3542
+ "application/json": {
3543
+ /** @description Secure payment token */
3544
+ token: string;
3545
+ /**
3546
+ * Format: uri
3547
+ * @description URL to the secure payment page
3548
+ */
3549
+ securePaymentUrl: string;
3550
+ /**
3551
+ * @description Current status of the secure payment
3552
+ * @enum {string}
3553
+ */
3554
+ status: "pending" | "completed" | "expired" | "invalidated";
3555
+ /**
3556
+ * @description Type of payment: single or batch
3557
+ * @enum {string}
3558
+ */
3559
+ paymentType: "single" | "batch";
3560
+ /**
3561
+ * Format: date-time
3562
+ * @description When the secure payment was created
3563
+ */
3564
+ createdAt: string | null;
3565
+ /**
3566
+ * Format: date-time
3567
+ * @description When the secure payment token expires
3568
+ */
3569
+ expiresAt: string;
3570
+ };
3465
3571
  };
3466
- content?: never;
3467
3572
  };
3468
- };
3469
- };
3470
- PayeeDestinationController_getActivePayeeDestination_v2: {
3471
- parameters: {
3472
- query: {
3473
- /** @description The wallet address to filter payee destinations */
3474
- walletAddress: string;
3475
- };
3476
- header: {
3477
- /** @description Client ID for frontend authentication */
3478
- "x-client-id": string;
3479
- /** @description Origin header (automatically set by browser) */
3480
- Origin: string;
3481
- };
3482
- path?: never;
3483
- cookie?: never;
3484
- };
3485
- requestBody?: never;
3486
- responses: {
3487
- /** @description Active payee destination retrieved successfully (or null if none exists) */
3488
- 200: {
3573
+ /** @description No secure payment found for this request ID */
3574
+ 404: {
3489
3575
  headers: {
3490
3576
  [name: string]: unknown;
3491
3577
  };
@@ -3500,14 +3586,16 @@ interface operations {
3500
3586
  };
3501
3587
  };
3502
3588
  };
3503
- PayeeDestinationController_createPayeeDestination_v2: {
3589
+ SecurePaymentController_createSecurePayment_v2: {
3504
3590
  parameters: {
3505
3591
  query?: never;
3506
- header: {
3507
- /** @description Client ID for frontend authentication */
3508
- "x-client-id": string;
3509
- /** @description Origin header (automatically set by browser) */
3510
- Origin: string;
3592
+ header?: {
3593
+ /** @description API key for authentication (optional if using Client ID or session) */
3594
+ "x-api-key"?: string;
3595
+ /** @description Client ID for frontend authentication (optional if using API key or session) */
3596
+ "x-client-id"?: string;
3597
+ /** @description Origin header (required for Client ID auth, automatically set by browser) */
3598
+ Origin?: string;
3511
3599
  };
3512
3600
  path?: never;
3513
3601
  cookie?: never;
@@ -3515,20 +3603,39 @@ interface operations {
3515
3603
  requestBody: {
3516
3604
  content: {
3517
3605
  "application/json": {
3518
- /** @description The EIP-712 signature from the payee */
3519
- signature: string;
3520
- /** @description The signing session nonce from /signing-data endpoint */
3521
- nonce: string;
3606
+ /** @description Array of payment requests. Single item = single payment, multiple items = batch payment. All requests must resolve to the same network. */
3607
+ requests: {
3608
+ /** @description Destination ID in composite format: ERC-7828 payee address + token address, separated by ':' (e.g., '0x742d...bEb0@eip155:11155111#80B12379:0x370D...623C') */
3609
+ destinationId: string;
3610
+ /** @description The payable amount, in human readable format */
3611
+ amount: string;
3612
+ }[];
3613
+ /** @description Fee percentage to apply at payment time (e.g., '2.5' for 2.5%) */
3614
+ feePercentage?: string;
3615
+ /** @description Address to receive the fee (Ethereum 0x... or TRON T...) */
3616
+ feeAddress?: string;
3522
3617
  };
3523
3618
  };
3524
3619
  };
3525
3620
  responses: {
3526
- /** @description Payee destination created successfully */
3621
+ /** @description Secure payment entry created successfully */
3527
3622
  201: {
3528
3623
  headers: {
3529
3624
  [name: string]: unknown;
3530
3625
  };
3531
- content?: never;
3626
+ content: {
3627
+ "application/json": {
3628
+ /** @description Array of request IDs created for this secure payment */
3629
+ requestIds: string[];
3630
+ /**
3631
+ * Format: uri
3632
+ * @description URL to the secure payment page
3633
+ */
3634
+ securePaymentUrl: string;
3635
+ /** @description Secure payment token */
3636
+ token: string;
3637
+ };
3638
+ };
3532
3639
  };
3533
3640
  /** @description Too Many Requests */
3534
3641
  429: {
@@ -3539,79 +3646,107 @@ interface operations {
3539
3646
  };
3540
3647
  };
3541
3648
  };
3542
- PayeeDestinationController_getPayeeDestination_v2: {
3649
+ SecurePaymentController_getSecurePaymentByToken_v2: {
3543
3650
  parameters: {
3544
- query?: never;
3545
- header: {
3546
- /** @description Client ID for frontend authentication */
3547
- "x-client-id": string;
3548
- /** @description Origin header (automatically set by browser) */
3549
- Origin: string;
3651
+ query?: {
3652
+ /** @description The wallet address of the payer (optional, used to check existing approvals) */
3653
+ wallet?: string;
3654
+ };
3655
+ header?: {
3656
+ /** @description API key for authentication (optional if using Client ID) */
3657
+ "x-api-key"?: string;
3658
+ /** @description Client ID for frontend authentication (optional if using API key) */
3659
+ "x-client-id"?: string;
3660
+ /** @description Origin header (required for Client ID auth, automatically set by browser) */
3661
+ Origin?: string;
3662
+ };
3663
+ path: {
3664
+ token: string;
3550
3665
  };
3551
- path?: never;
3552
3666
  cookie?: never;
3553
3667
  };
3554
3668
  requestBody?: never;
3555
3669
  responses: {
3556
- /** @description Payee destination retrieved successfully */
3670
+ /** @description Secure payment data retrieved successfully */
3557
3671
  200: {
3558
3672
  headers: {
3559
3673
  [name: string]: unknown;
3560
3674
  };
3561
- content?: never;
3562
- };
3563
- /** @description Payee destination not found */
3564
- 404: {
3565
- headers: {
3566
- [name: string]: unknown;
3675
+ content: {
3676
+ "application/json": {
3677
+ /**
3678
+ * @description Type of payment: single or batch
3679
+ * @enum {string}
3680
+ */
3681
+ paymentType: "single";
3682
+ /** @description Payee wallet address */
3683
+ payee: string;
3684
+ /** @description Blockchain network */
3685
+ network: string;
3686
+ /** @description Payment amount */
3687
+ amount: string;
3688
+ /** @description Payment currency ID */
3689
+ paymentCurrency: string;
3690
+ /** @description Whether the payment currency is the native currency (e.g., ETH) */
3691
+ isNativeCurrency: boolean;
3692
+ /**
3693
+ * @description Current status of the secure payment
3694
+ * @enum {string}
3695
+ */
3696
+ status: "pending" | "completed" | "expired" | "invalidated";
3697
+ /** @description Resolved destination for this payment */
3698
+ destination: {
3699
+ /** @description Composite destination ID: ERC-7828 payee address + token address (e.g., '0x742d...bEb0@eip155:11155111#80B12379:0x370D...623C') */
3700
+ destinationId: string;
3701
+ /** @description Payee address in ERC-7828 human-readable format */
3702
+ payeeAddress: string;
3703
+ /** @description ERC20 token contract address */
3704
+ tokenAddress: string;
3705
+ /** @description Raw wallet address */
3706
+ walletAddress: string;
3707
+ /** @description Blockchain network name */
3708
+ network: string;
3709
+ };
3710
+ /** @description Array of prepared transactions (includes approval and payment transactions) */
3711
+ transactions: unknown[];
3712
+ /** @description Payment metadata */
3713
+ metadata?: {
3714
+ stepsRequired: number;
3715
+ needsApproval: boolean;
3716
+ approvalTransactionIndex?: number;
3717
+ paymentTransactionIndex: number;
3718
+ hasEnoughBalance?: boolean;
3719
+ hasEnoughGas?: boolean;
3720
+ platformFee?: {
3721
+ percentage: string;
3722
+ address: string;
3723
+ };
3724
+ };
3725
+ };
3567
3726
  };
3568
- content?: never;
3569
3727
  };
3570
- /** @description Too Many Requests */
3571
- 429: {
3728
+ /** @description Secure payment token expired or invalid status */
3729
+ 403: {
3572
3730
  headers: {
3573
3731
  [name: string]: unknown;
3574
3732
  };
3575
3733
  content?: never;
3576
3734
  };
3577
- };
3578
- };
3579
- PayeeDestinationController_deactivatePayeeDestination_v2: {
3580
- parameters: {
3581
- query?: never;
3582
- header: {
3583
- /** @description Client ID for frontend authentication */
3584
- "x-client-id": string;
3585
- /** @description Origin header (automatically set by browser) */
3586
- Origin: string;
3587
- };
3588
- path?: never;
3589
- cookie?: never;
3590
- };
3591
- requestBody: {
3592
- content: {
3593
- "application/json": {
3594
- /** @description The EIP-712 signature from the payee */
3595
- signature: string;
3596
- /** @description The signing session nonce from /signing-data endpoint */
3597
- nonce: string;
3598
- };
3599
- };
3600
- };
3601
- responses: {
3602
- /** @description Payee destination deactivated successfully */
3603
- 200: {
3735
+ /** @description Secure payment not found */
3736
+ 404: {
3604
3737
  headers: {
3605
3738
  [name: string]: unknown;
3606
3739
  };
3607
3740
  content?: never;
3608
3741
  };
3609
- /** @description Destination not found or validation failed */
3610
- 400: {
3742
+ /** @description Secure payment has already been completed */
3743
+ 409: {
3611
3744
  headers: {
3612
3745
  [name: string]: unknown;
3613
3746
  };
3614
- content?: never;
3747
+ content: {
3748
+ "application/json": unknown;
3749
+ };
3615
3750
  };
3616
3751
  /** @description Too Many Requests */
3617
3752
  429: {
@@ -3624,4 +3759,4 @@ interface operations {
3624
3759
  };
3625
3760
  }
3626
3761
 
3627
- export { DEFAULT_RETRY_CONFIG as D, type HttpAdapter as H, type Interceptor as I, type LogLevel as L, type QuerySerializer as Q, type RetryConfig as R, type RuntimeValidationOption as a, type HttpClient as b, type RequestOptions as c, type RetryDecision as d, type RetryDecisionInput as e, type RetryResponseLike as f, type RetryJitter as g, computeRetryDelay as h, type HttpMethod as i, type RuntimeValidationConfig as j, type operations as o, shouldRetryRequest as s };
3762
+ export { DEFAULT_RETRY_CONFIG as D, type HttpAdapter as H, type Interceptor as I, type LogLevel as L, type QuerySerializer as Q, type RetryConfig as R, type RuntimeValidationOption as a, type HttpClient as b, type RetryDecision as c, type RetryDecisionInput as d, type RetryResponseLike as e, type RetryJitter as f, computeRetryDelay as g, type HttpMethod as h, type RequestOptions as i, type RuntimeValidationConfig as j, type operations as o, shouldRetryRequest as s };
@@ -0,0 +1,17 @@
1
+ import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
2
+
3
+ declare const OP_PAY_REQUEST: "PayV1Controller_payRequest_v1";
4
+ type PayRequestBody = operations[typeof OP_PAY_REQUEST]["requestBody"]["content"]["application/json"];
5
+ type PayRequestResponse = operations[typeof OP_PAY_REQUEST]["responses"][201]["content"]["application/json"];
6
+ interface PayV1OperationOptions {
7
+ signal?: AbortSignal;
8
+ timeoutMs?: number;
9
+ validation?: RuntimeValidationOption;
10
+ meta?: RequestOptions["meta"];
11
+ }
12
+ interface PayV1Api {
13
+ payRequest(body: PayRequestBody, options?: PayV1OperationOptions): Promise<PayRequestResponse>;
14
+ }
15
+ declare function createPayV1Api(http: HttpClient): PayV1Api;
16
+
17
+ export { type PayV1Api as P, type PayV1OperationOptions as a, createPayV1Api as c };
@@ -0,0 +1,31 @@
1
+ import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
2
+
3
+ declare const OP_CREATE_COMPLIANCE: "PayerV1Controller_getComplianceData_v1";
4
+ declare const OP_GET_STATUS: "PayerV1Controller_getComplianceStatus_v1";
5
+ declare const OP_UPDATE_STATUS: "PayerV1Controller_updateComplianceStatus_v1";
6
+ declare const OP_CREATE_PAYMENT_DETAILS: "PayerV1Controller_createPaymentDetails_v1";
7
+ declare const OP_GET_PAYMENT_DETAILS: "PayerV1Controller_getPaymentDetails_v1";
8
+ type CreateComplianceBody = operations[typeof OP_CREATE_COMPLIANCE]["requestBody"]["content"]["application/json"];
9
+ type CreateComplianceResponse = operations[typeof OP_CREATE_COMPLIANCE]["responses"][200]["content"]["application/json"];
10
+ type ComplianceStatusResponse = operations[typeof OP_GET_STATUS]["responses"][200]["content"]["application/json"];
11
+ type UpdateComplianceBody = operations[typeof OP_UPDATE_STATUS]["requestBody"]["content"]["application/json"];
12
+ type UpdateComplianceResponse = operations[typeof OP_UPDATE_STATUS]["responses"][200]["content"]["application/json"];
13
+ type CreatePaymentDetailsBody = operations[typeof OP_CREATE_PAYMENT_DETAILS]["requestBody"]["content"]["application/json"];
14
+ type CreatePaymentDetailsResponse = operations[typeof OP_CREATE_PAYMENT_DETAILS]["responses"][201]["content"]["application/json"];
15
+ type GetPaymentDetailsResponse = operations[typeof OP_GET_PAYMENT_DETAILS]["responses"][200]["content"]["application/json"];
16
+ interface PayerV1OperationOptions {
17
+ signal?: AbortSignal;
18
+ timeoutMs?: number;
19
+ validation?: RuntimeValidationOption;
20
+ meta?: RequestOptions["meta"];
21
+ }
22
+ interface PayerV1Api {
23
+ createComplianceData(body: CreateComplianceBody, options?: PayerV1OperationOptions): Promise<CreateComplianceResponse>;
24
+ getComplianceStatus(clientUserId: string, options?: PayerV1OperationOptions): Promise<ComplianceStatusResponse>;
25
+ updateComplianceStatus(clientUserId: string, body: UpdateComplianceBody, options?: PayerV1OperationOptions): Promise<UpdateComplianceResponse>;
26
+ createPaymentDetails(clientUserId: string, body: CreatePaymentDetailsBody, options?: PayerV1OperationOptions): Promise<CreatePaymentDetailsResponse>;
27
+ getPaymentDetails(clientUserId: string, options?: PayerV1OperationOptions): Promise<GetPaymentDetailsResponse>;
28
+ }
29
+ declare function createPayerV1Api(http: HttpClient): PayerV1Api;
30
+
31
+ export { type PayerV1Api as P, type PayerV1OperationOptions as a, createPayerV1Api as c };