@marcohefti/request-network-api-client 0.5.12 → 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 +2 -2
  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 +38 -10
  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 +234 -242
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/esm/{index-DJGHELE1.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 +38 -10
  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-hYoC2ndH.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-DbnV_D6L.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-y1nxa55y.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 +234 -242
  69. package/dist/esm/index.js.map +1 -1
  70. package/dist/esm/{openapi-types-CQ1z27_K.d.mts → openapi-types-JhYQOcil.d.mts} +252 -117
  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 +6 -6
  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-DJjp2Jbk.d.mts +0 -79
  82. package/dist/esm/index-DQIf9k5x.d.mts +0 -31
package/dist/cjs/index.js CHANGED
@@ -954,14 +954,14 @@ function buildPath(template, params) {
954
954
 
955
955
  // src/domains/client-ids/client-ids.facade.ts
956
956
  function createClientIdsApi(http) {
957
- const PATH_BASE2 = "/v2/client-ids";
957
+ const PATH_BASE3 = "/v2/client-ids";
958
958
  return {
959
959
  async list() {
960
960
  const OP = "ClientIdV2Controller_findAll_v2";
961
961
  return requestJson(http, {
962
962
  operationId: OP,
963
963
  method: "GET",
964
- path: PATH_BASE2,
964
+ path: PATH_BASE3,
965
965
  schemaKey: { operationId: OP, kind: "response", status: 200 },
966
966
  description: "List client IDs"
967
967
  });
@@ -971,7 +971,7 @@ function createClientIdsApi(http) {
971
971
  return requestJson(http, {
972
972
  operationId: OP,
973
973
  method: "POST",
974
- path: PATH_BASE2,
974
+ path: PATH_BASE3,
975
975
  body,
976
976
  requestSchemaKey: { operationId: OP, kind: "request", variant: "application/json" },
977
977
  schemaKey: { operationId: OP, kind: "response", status: 201 },
@@ -979,7 +979,7 @@ function createClientIdsApi(http) {
979
979
  });
980
980
  },
981
981
  async findOne(id) {
982
- const path = buildPath(`${PATH_BASE2}/{id}`, { id });
982
+ const path = buildPath(`${PATH_BASE3}/{id}`, { id });
983
983
  const OP = "ClientIdV2Controller_findOne_v2";
984
984
  return requestJson(http, {
985
985
  operationId: OP,
@@ -990,7 +990,7 @@ function createClientIdsApi(http) {
990
990
  });
991
991
  },
992
992
  async update(id, body) {
993
- const path = buildPath(`${PATH_BASE2}/{id}`, { id });
993
+ const path = buildPath(`${PATH_BASE3}/{id}`, { id });
994
994
  const OP = "ClientIdV2Controller_update_v2";
995
995
  return requestJson(http, {
996
996
  operationId: OP,
@@ -1003,7 +1003,7 @@ function createClientIdsApi(http) {
1003
1003
  });
1004
1004
  },
1005
1005
  async revoke(id) {
1006
- const path = buildPath(`${PATH_BASE2}/{id}`, { id });
1006
+ const path = buildPath(`${PATH_BASE3}/{id}`, { id });
1007
1007
  const OP = "ClientIdV2Controller_delete_v2";
1008
1008
  await requestVoid(http, {
1009
1009
  operationId: OP,
@@ -1432,151 +1432,6 @@ function createPayApi(http) {
1432
1432
  };
1433
1433
  }
1434
1434
 
1435
- // src/domains/payee-destination/index.ts
1436
- var payee_destination_exports = {};
1437
- __export(payee_destination_exports, {
1438
- createPayeeDestinationApi: () => createPayeeDestinationApi
1439
- });
1440
-
1441
- // src/domains/payee-destination/payee-destination.facade.ts
1442
- var OP_GET_SIGNING_DATA = "PayeeDestinationController_getSigningData_v2";
1443
- var OP_GET_ACTIVE = "PayeeDestinationController_getActivePayeeDestination_v2";
1444
- var OP_CREATE = "PayeeDestinationController_createPayeeDestination_v2";
1445
- var OP_GET_BY_ID = "PayeeDestinationController_getPayeeDestination_v2";
1446
- var OP_DEACTIVATE = "PayeeDestinationController_deactivatePayeeDestination_v2";
1447
- var PATH_BASE = "/v2/payee-destination";
1448
- function createPayeeDestinationApi(http) {
1449
- return {
1450
- async getSigningData(query, options) {
1451
- return requestJson(http, {
1452
- operationId: OP_GET_SIGNING_DATA,
1453
- method: "GET",
1454
- path: `${PATH_BASE}/signing-data`,
1455
- query,
1456
- schemaKey: { operationId: OP_GET_SIGNING_DATA, kind: "response", status: 200 },
1457
- description: "Get payee destination signing data",
1458
- signal: options?.signal,
1459
- timeoutMs: options?.timeoutMs,
1460
- validation: options?.validation,
1461
- meta: options?.meta
1462
- });
1463
- },
1464
- async getActive(walletAddress, options) {
1465
- return requestJson(http, {
1466
- operationId: OP_GET_ACTIVE,
1467
- method: "GET",
1468
- path: PATH_BASE,
1469
- query: { walletAddress },
1470
- schemaKey: { operationId: OP_GET_ACTIVE, kind: "response", status: 200 },
1471
- description: "Get active payee destination",
1472
- signal: options?.signal,
1473
- timeoutMs: options?.timeoutMs,
1474
- validation: options?.validation,
1475
- meta: options?.meta
1476
- });
1477
- },
1478
- async create(body, options) {
1479
- return requestJson(http, {
1480
- operationId: OP_CREATE,
1481
- method: "POST",
1482
- path: PATH_BASE,
1483
- body,
1484
- requestSchemaKey: { operationId: OP_CREATE, kind: "request", variant: "application/json" },
1485
- schemaKey: { operationId: OP_CREATE, kind: "response", status: 201 },
1486
- description: "Create payee destination",
1487
- signal: options?.signal,
1488
- timeoutMs: options?.timeoutMs,
1489
- validation: options?.validation,
1490
- meta: options?.meta
1491
- });
1492
- },
1493
- async getById(destinationId, options) {
1494
- return requestJson(http, {
1495
- operationId: OP_GET_BY_ID,
1496
- method: "GET",
1497
- path: `${PATH_BASE}/${encodeURIComponent(destinationId)}`,
1498
- schemaKey: { operationId: OP_GET_BY_ID, kind: "response", status: 200 },
1499
- description: "Get payee destination by ID",
1500
- signal: options?.signal,
1501
- timeoutMs: options?.timeoutMs,
1502
- validation: options?.validation,
1503
- meta: options?.meta
1504
- });
1505
- },
1506
- async deactivate(destinationId, body, options) {
1507
- return requestJson(http, {
1508
- operationId: OP_DEACTIVATE,
1509
- method: "DELETE",
1510
- path: `${PATH_BASE}/${encodeURIComponent(destinationId)}`,
1511
- body,
1512
- requestSchemaKey: { operationId: OP_DEACTIVATE, kind: "request", variant: "application/json" },
1513
- schemaKey: { operationId: OP_DEACTIVATE, kind: "response", status: 200 },
1514
- description: "Deactivate payee destination",
1515
- signal: options?.signal,
1516
- timeoutMs: options?.timeoutMs,
1517
- validation: options?.validation,
1518
- meta: options?.meta
1519
- });
1520
- }
1521
- };
1522
- }
1523
- var ErrorDetailSchema4 = zod.z.object({
1524
- message: zod.z.string(),
1525
- code: zod.z.string().optional(),
1526
- field: zod.z.string().optional(),
1527
- source: zod.z.object({
1528
- pointer: zod.z.string().optional(),
1529
- parameter: zod.z.string().optional()
1530
- }).passthrough().optional(),
1531
- meta: zod.z.record(zod.z.unknown()).optional()
1532
- }).passthrough();
1533
- var ErrorEnvelopeSchema4 = zod.z.object({
1534
- status: zod.z.number().optional(),
1535
- statusCode: zod.z.number().optional(),
1536
- code: zod.z.string().optional(),
1537
- error: zod.z.string().optional(),
1538
- message: zod.z.union([
1539
- zod.z.string(),
1540
- zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema4])),
1541
- ErrorDetailSchema4
1542
- ]).optional(),
1543
- detail: zod.z.unknown().optional(),
1544
- errors: zod.z.array(ErrorDetailSchema4).optional(),
1545
- requestId: zod.z.string().optional(),
1546
- correlationId: zod.z.string().optional(),
1547
- retryAfter: zod.z.union([zod.z.number(), zod.z.string()]).optional(),
1548
- retryAfterMs: zod.z.number().optional(),
1549
- meta: zod.z.record(zod.z.unknown()).optional()
1550
- }).passthrough();
1551
- var PayeeDestinationController_getSigningData_v2_200 = zod.z.unknown();
1552
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getSigningData_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_getSigningData_v2_200 });
1553
- var PayeeDestinationController_getSigningData_v2_429 = ErrorEnvelopeSchema4;
1554
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getSigningData_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_getSigningData_v2_429 });
1555
- var PayeeDestinationController_getActivePayeeDestination_v2_200 = zod.z.unknown();
1556
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getActivePayeeDestination_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_getActivePayeeDestination_v2_200 });
1557
- var PayeeDestinationController_getActivePayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1558
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getActivePayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_getActivePayeeDestination_v2_429 });
1559
- var PayeeDestinationController_createPayeeDestination_v2_Request = zod.z.object({ "signature": zod.z.string(), "nonce": zod.z.string() }).passthrough();
1560
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_createPayeeDestination_v2", kind: "request", variant: "application/json" }, schema: PayeeDestinationController_createPayeeDestination_v2_Request });
1561
- var PayeeDestinationController_createPayeeDestination_v2_201 = zod.z.unknown();
1562
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_createPayeeDestination_v2", kind: "response", status: 201 }, schema: PayeeDestinationController_createPayeeDestination_v2_201 });
1563
- var PayeeDestinationController_createPayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1564
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_createPayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_createPayeeDestination_v2_429 });
1565
- var PayeeDestinationController_getPayeeDestination_v2_200 = zod.z.unknown();
1566
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getPayeeDestination_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_getPayeeDestination_v2_200 });
1567
- var PayeeDestinationController_getPayeeDestination_v2_404 = ErrorEnvelopeSchema4;
1568
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getPayeeDestination_v2", kind: "response", status: 404 }, schema: PayeeDestinationController_getPayeeDestination_v2_404 });
1569
- var PayeeDestinationController_getPayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1570
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getPayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_getPayeeDestination_v2_429 });
1571
- var PayeeDestinationController_deactivatePayeeDestination_v2_Request = zod.z.object({ "signature": zod.z.string(), "nonce": zod.z.string() }).passthrough();
1572
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "request", variant: "application/json" }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_Request });
1573
- var PayeeDestinationController_deactivatePayeeDestination_v2_200 = zod.z.unknown();
1574
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_200 });
1575
- var PayeeDestinationController_deactivatePayeeDestination_v2_400 = ErrorEnvelopeSchema4;
1576
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "response", status: 400 }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_400 });
1577
- var PayeeDestinationController_deactivatePayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1578
- schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_429 });
1579
-
1580
1435
  // src/domains/payer/index.ts
1581
1436
  var payer_exports = {};
1582
1437
  __export(payer_exports, {
@@ -1676,7 +1531,7 @@ function createPayerV1Api(http) {
1676
1531
  }
1677
1532
  };
1678
1533
  }
1679
- var ErrorDetailSchema5 = zod.z.object({
1534
+ var ErrorDetailSchema4 = zod.z.object({
1680
1535
  message: zod.z.string(),
1681
1536
  code: zod.z.string().optional(),
1682
1537
  field: zod.z.string().optional(),
@@ -1686,18 +1541,18 @@ var ErrorDetailSchema5 = zod.z.object({
1686
1541
  }).passthrough().optional(),
1687
1542
  meta: zod.z.record(zod.z.unknown()).optional()
1688
1543
  }).passthrough();
1689
- var ErrorEnvelopeSchema5 = zod.z.object({
1544
+ var ErrorEnvelopeSchema4 = zod.z.object({
1690
1545
  status: zod.z.number().optional(),
1691
1546
  statusCode: zod.z.number().optional(),
1692
1547
  code: zod.z.string().optional(),
1693
1548
  error: zod.z.string().optional(),
1694
1549
  message: zod.z.union([
1695
1550
  zod.z.string(),
1696
- zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema5])),
1697
- ErrorDetailSchema5
1551
+ zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema4])),
1552
+ ErrorDetailSchema4
1698
1553
  ]).optional(),
1699
1554
  detail: zod.z.unknown().optional(),
1700
- errors: zod.z.array(ErrorDetailSchema5).optional(),
1555
+ errors: zod.z.array(ErrorDetailSchema4).optional(),
1701
1556
  requestId: zod.z.string().optional(),
1702
1557
  correlationId: zod.z.string().optional(),
1703
1558
  retryAfter: zod.z.union([zod.z.number(), zod.z.string()]).optional(),
@@ -1710,19 +1565,19 @@ var PayerV1Controller_getComplianceData_v1_200 = zod.z.object({ "agreementUrl":
1710
1565
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 200 }, schema: PayerV1Controller_getComplianceData_v1_200 });
1711
1566
  var PayerV1Controller_getComplianceData_v1_400 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1712
1567
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 400 }, schema: PayerV1Controller_getComplianceData_v1_400 });
1713
- var PayerV1Controller_getComplianceData_v1_401 = ErrorEnvelopeSchema5;
1568
+ var PayerV1Controller_getComplianceData_v1_401 = ErrorEnvelopeSchema4;
1714
1569
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 401 }, schema: PayerV1Controller_getComplianceData_v1_401 });
1715
1570
  var PayerV1Controller_getComplianceData_v1_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1716
1571
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 404 }, schema: PayerV1Controller_getComplianceData_v1_404 });
1717
- var PayerV1Controller_getComplianceData_v1_429 = ErrorEnvelopeSchema5;
1572
+ var PayerV1Controller_getComplianceData_v1_429 = ErrorEnvelopeSchema4;
1718
1573
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 429 }, schema: PayerV1Controller_getComplianceData_v1_429 });
1719
1574
  var PayerV1Controller_getComplianceStatus_v1_200 = zod.z.object({ "kycStatus": zod.z.string().optional(), "agreementStatus": zod.z.string().optional(), "isCompliant": zod.z.boolean().optional(), "userId": zod.z.string().optional() }).passthrough();
1720
1575
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 200 }, schema: PayerV1Controller_getComplianceStatus_v1_200 });
1721
- var PayerV1Controller_getComplianceStatus_v1_401 = ErrorEnvelopeSchema5;
1576
+ var PayerV1Controller_getComplianceStatus_v1_401 = ErrorEnvelopeSchema4;
1722
1577
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 401 }, schema: PayerV1Controller_getComplianceStatus_v1_401 });
1723
1578
  var PayerV1Controller_getComplianceStatus_v1_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1724
1579
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 404 }, schema: PayerV1Controller_getComplianceStatus_v1_404 });
1725
- var PayerV1Controller_getComplianceStatus_v1_429 = ErrorEnvelopeSchema5;
1580
+ var PayerV1Controller_getComplianceStatus_v1_429 = ErrorEnvelopeSchema4;
1726
1581
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 429 }, schema: PayerV1Controller_getComplianceStatus_v1_429 });
1727
1582
  var PayerV1Controller_updateComplianceStatus_v1_Request = zod.z.object({ "agreementCompleted": zod.z.boolean() }).passthrough();
1728
1583
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "request", variant: "application/json" }, schema: PayerV1Controller_updateComplianceStatus_v1_Request });
@@ -1730,19 +1585,19 @@ var PayerV1Controller_updateComplianceStatus_v1_200 = zod.z.object({ "success":
1730
1585
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 200 }, schema: PayerV1Controller_updateComplianceStatus_v1_200 });
1731
1586
  var PayerV1Controller_updateComplianceStatus_v1_400 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1732
1587
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 400 }, schema: PayerV1Controller_updateComplianceStatus_v1_400 });
1733
- var PayerV1Controller_updateComplianceStatus_v1_401 = ErrorEnvelopeSchema5;
1588
+ var PayerV1Controller_updateComplianceStatus_v1_401 = ErrorEnvelopeSchema4;
1734
1589
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 401 }, schema: PayerV1Controller_updateComplianceStatus_v1_401 });
1735
1590
  var PayerV1Controller_updateComplianceStatus_v1_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1736
1591
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 404 }, schema: PayerV1Controller_updateComplianceStatus_v1_404 });
1737
- var PayerV1Controller_updateComplianceStatus_v1_429 = ErrorEnvelopeSchema5;
1592
+ var PayerV1Controller_updateComplianceStatus_v1_429 = ErrorEnvelopeSchema4;
1738
1593
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 429 }, schema: PayerV1Controller_updateComplianceStatus_v1_429 });
1739
1594
  var PayerV1Controller_getPaymentDetails_v1_200 = zod.z.object({ "paymentDetails": zod.z.array(zod.z.object({ "id": zod.z.string().optional(), "userId": zod.z.string().optional(), "bankName": zod.z.string().optional(), "accountName": zod.z.string().optional(), "beneficiaryType": zod.z.string().optional(), "accountNumber": zod.z.string().optional(), "routingNumber": zod.z.string().optional(), "currency": zod.z.string().optional(), "status": zod.z.string().optional(), "rails": zod.z.string().optional() }).passthrough()).optional() }).passthrough();
1740
1595
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 200 }, schema: PayerV1Controller_getPaymentDetails_v1_200 });
1741
- var PayerV1Controller_getPaymentDetails_v1_401 = ErrorEnvelopeSchema5;
1596
+ var PayerV1Controller_getPaymentDetails_v1_401 = ErrorEnvelopeSchema4;
1742
1597
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 401 }, schema: PayerV1Controller_getPaymentDetails_v1_401 });
1743
1598
  var PayerV1Controller_getPaymentDetails_v1_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1744
1599
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 404 }, schema: PayerV1Controller_getPaymentDetails_v1_404 });
1745
- var PayerV1Controller_getPaymentDetails_v1_429 = ErrorEnvelopeSchema5;
1600
+ var PayerV1Controller_getPaymentDetails_v1_429 = ErrorEnvelopeSchema4;
1746
1601
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 429 }, schema: PayerV1Controller_getPaymentDetails_v1_429 });
1747
1602
  var PayerV1Controller_createPaymentDetails_v1_Request = zod.z.object({ "bankName": zod.z.string(), "accountName": zod.z.string(), "accountNumber": zod.z.string().optional(), "routingNumber": zod.z.string().optional(), "beneficiaryType": zod.z.enum(["individual", "business"]), "currency": zod.z.string(), "addressLine1": zod.z.string(), "addressLine2": zod.z.string().optional(), "city": zod.z.string(), "state": zod.z.string().optional(), "country": zod.z.string(), "dateOfBirth": zod.z.string(), "postalCode": zod.z.string(), "rails": zod.z.enum(["local", "swift", "wire"]).optional(), "sortCode": zod.z.string().optional(), "iban": zod.z.string().optional(), "swiftBic": zod.z.string().optional(), "documentNumber": zod.z.string().optional(), "documentType": zod.z.string().optional(), "accountType": zod.z.enum(["checking", "savings"]).optional(), "ribNumber": zod.z.string().optional(), "bsbNumber": zod.z.string().optional(), "ncc": zod.z.string().optional(), "branchCode": zod.z.string().optional(), "bankCode": zod.z.string().optional(), "ifsc": zod.z.string().optional() }).passthrough();
1748
1603
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "request", variant: "application/json" }, schema: PayerV1Controller_createPaymentDetails_v1_Request });
@@ -1750,11 +1605,11 @@ var PayerV1Controller_createPaymentDetails_v1_201 = zod.z.object({ "payment_deta
1750
1605
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 201 }, schema: PayerV1Controller_createPaymentDetails_v1_201 });
1751
1606
  var PayerV1Controller_createPaymentDetails_v1_400 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1752
1607
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 400 }, schema: PayerV1Controller_createPaymentDetails_v1_400 });
1753
- var PayerV1Controller_createPaymentDetails_v1_401 = ErrorEnvelopeSchema5;
1608
+ var PayerV1Controller_createPaymentDetails_v1_401 = ErrorEnvelopeSchema4;
1754
1609
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 401 }, schema: PayerV1Controller_createPaymentDetails_v1_401 });
1755
1610
  var PayerV1Controller_createPaymentDetails_v1_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1756
1611
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 404 }, schema: PayerV1Controller_createPaymentDetails_v1_404 });
1757
- var PayerV1Controller_createPaymentDetails_v1_429 = ErrorEnvelopeSchema5;
1612
+ var PayerV1Controller_createPaymentDetails_v1_429 = ErrorEnvelopeSchema4;
1758
1613
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 429 }, schema: PayerV1Controller_createPaymentDetails_v1_429 });
1759
1614
  var PayerV2Controller_getComplianceData_v2_Request = zod.z.object({ "clientUserId": zod.z.string(), "email": zod.z.string(), "firstName": zod.z.string(), "lastName": zod.z.string(), "beneficiaryType": zod.z.enum(["individual", "business"]), "companyName": zod.z.string().optional(), "dateOfBirth": zod.z.string(), "addressLine1": zod.z.string(), "addressLine2": zod.z.string().optional(), "city": zod.z.string(), "state": zod.z.string(), "postcode": zod.z.string(), "country": zod.z.string(), "nationality": zod.z.string(), "phone": zod.z.string(), "ssn": zod.z.string(), "sourceOfFunds": zod.z.string().optional(), "businessActivity": zod.z.string().optional() }).passthrough();
1760
1615
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "request", variant: "application/json" }, schema: PayerV2Controller_getComplianceData_v2_Request });
@@ -1762,19 +1617,19 @@ var PayerV2Controller_getComplianceData_v2_200 = zod.z.object({ "agreementUrl":
1762
1617
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 200 }, schema: PayerV2Controller_getComplianceData_v2_200 });
1763
1618
  var PayerV2Controller_getComplianceData_v2_400 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1764
1619
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 400 }, schema: PayerV2Controller_getComplianceData_v2_400 });
1765
- var PayerV2Controller_getComplianceData_v2_401 = ErrorEnvelopeSchema5;
1620
+ var PayerV2Controller_getComplianceData_v2_401 = ErrorEnvelopeSchema4;
1766
1621
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 401 }, schema: PayerV2Controller_getComplianceData_v2_401 });
1767
1622
  var PayerV2Controller_getComplianceData_v2_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1768
1623
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 404 }, schema: PayerV2Controller_getComplianceData_v2_404 });
1769
- var PayerV2Controller_getComplianceData_v2_429 = ErrorEnvelopeSchema5;
1624
+ var PayerV2Controller_getComplianceData_v2_429 = ErrorEnvelopeSchema4;
1770
1625
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 429 }, schema: PayerV2Controller_getComplianceData_v2_429 });
1771
1626
  var PayerV2Controller_getComplianceStatus_v2_200 = zod.z.object({ "kycStatus": zod.z.string().optional(), "agreementStatus": zod.z.string().optional(), "isCompliant": zod.z.boolean().optional(), "userId": zod.z.string().optional() }).passthrough();
1772
1627
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 200 }, schema: PayerV2Controller_getComplianceStatus_v2_200 });
1773
- var PayerV2Controller_getComplianceStatus_v2_401 = ErrorEnvelopeSchema5;
1628
+ var PayerV2Controller_getComplianceStatus_v2_401 = ErrorEnvelopeSchema4;
1774
1629
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 401 }, schema: PayerV2Controller_getComplianceStatus_v2_401 });
1775
1630
  var PayerV2Controller_getComplianceStatus_v2_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1776
1631
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 404 }, schema: PayerV2Controller_getComplianceStatus_v2_404 });
1777
- var PayerV2Controller_getComplianceStatus_v2_429 = ErrorEnvelopeSchema5;
1632
+ var PayerV2Controller_getComplianceStatus_v2_429 = ErrorEnvelopeSchema4;
1778
1633
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 429 }, schema: PayerV2Controller_getComplianceStatus_v2_429 });
1779
1634
  var PayerV2Controller_updateComplianceStatus_v2_Request = zod.z.object({ "agreementCompleted": zod.z.boolean() }).passthrough();
1780
1635
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "request", variant: "application/json" }, schema: PayerV2Controller_updateComplianceStatus_v2_Request });
@@ -1782,19 +1637,19 @@ var PayerV2Controller_updateComplianceStatus_v2_200 = zod.z.object({ "success":
1782
1637
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 200 }, schema: PayerV2Controller_updateComplianceStatus_v2_200 });
1783
1638
  var PayerV2Controller_updateComplianceStatus_v2_400 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1784
1639
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 400 }, schema: PayerV2Controller_updateComplianceStatus_v2_400 });
1785
- var PayerV2Controller_updateComplianceStatus_v2_401 = ErrorEnvelopeSchema5;
1640
+ var PayerV2Controller_updateComplianceStatus_v2_401 = ErrorEnvelopeSchema4;
1786
1641
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 401 }, schema: PayerV2Controller_updateComplianceStatus_v2_401 });
1787
1642
  var PayerV2Controller_updateComplianceStatus_v2_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1788
1643
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 404 }, schema: PayerV2Controller_updateComplianceStatus_v2_404 });
1789
- var PayerV2Controller_updateComplianceStatus_v2_429 = ErrorEnvelopeSchema5;
1644
+ var PayerV2Controller_updateComplianceStatus_v2_429 = ErrorEnvelopeSchema4;
1790
1645
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 429 }, schema: PayerV2Controller_updateComplianceStatus_v2_429 });
1791
1646
  var PayerV2Controller_getPaymentDetails_v2_200 = zod.z.object({ "paymentDetails": zod.z.array(zod.z.object({ "id": zod.z.string().optional(), "userId": zod.z.string().optional(), "bankName": zod.z.string().optional(), "accountName": zod.z.string().optional(), "beneficiaryType": zod.z.string().optional(), "accountNumber": zod.z.string().optional(), "routingNumber": zod.z.string().optional(), "currency": zod.z.string().optional(), "status": zod.z.string().optional(), "rails": zod.z.string().optional() }).passthrough()).optional() }).passthrough();
1792
1647
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 200 }, schema: PayerV2Controller_getPaymentDetails_v2_200 });
1793
- var PayerV2Controller_getPaymentDetails_v2_401 = ErrorEnvelopeSchema5;
1648
+ var PayerV2Controller_getPaymentDetails_v2_401 = ErrorEnvelopeSchema4;
1794
1649
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 401 }, schema: PayerV2Controller_getPaymentDetails_v2_401 });
1795
1650
  var PayerV2Controller_getPaymentDetails_v2_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1796
1651
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 404 }, schema: PayerV2Controller_getPaymentDetails_v2_404 });
1797
- var PayerV2Controller_getPaymentDetails_v2_429 = ErrorEnvelopeSchema5;
1652
+ var PayerV2Controller_getPaymentDetails_v2_429 = ErrorEnvelopeSchema4;
1798
1653
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 429 }, schema: PayerV2Controller_getPaymentDetails_v2_429 });
1799
1654
  var PayerV2Controller_createPaymentDetails_v2_Request = zod.z.object({ "bankName": zod.z.string(), "accountName": zod.z.string(), "accountNumber": zod.z.string().optional(), "routingNumber": zod.z.string().optional(), "beneficiaryType": zod.z.enum(["individual", "business"]), "currency": zod.z.string(), "addressLine1": zod.z.string(), "addressLine2": zod.z.string().optional(), "city": zod.z.string(), "state": zod.z.string().optional(), "country": zod.z.string(), "dateOfBirth": zod.z.string(), "postalCode": zod.z.string(), "rails": zod.z.enum(["local", "swift", "wire"]).optional(), "sortCode": zod.z.string().optional(), "iban": zod.z.string().optional(), "swiftBic": zod.z.string().optional(), "documentNumber": zod.z.string().optional(), "documentType": zod.z.string().optional(), "accountType": zod.z.enum(["checking", "savings"]).optional(), "ribNumber": zod.z.string().optional(), "bsbNumber": zod.z.string().optional(), "ncc": zod.z.string().optional(), "branchCode": zod.z.string().optional(), "bankCode": zod.z.string().optional(), "ifsc": zod.z.string().optional() }).passthrough();
1800
1655
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "request", variant: "application/json" }, schema: PayerV2Controller_createPaymentDetails_v2_Request });
@@ -1802,11 +1657,11 @@ var PayerV2Controller_createPaymentDetails_v2_201 = zod.z.object({ "payment_deta
1802
1657
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 201 }, schema: PayerV2Controller_createPaymentDetails_v2_201 });
1803
1658
  var PayerV2Controller_createPaymentDetails_v2_400 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1804
1659
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 400 }, schema: PayerV2Controller_createPaymentDetails_v2_400 });
1805
- var PayerV2Controller_createPaymentDetails_v2_401 = ErrorEnvelopeSchema5;
1660
+ var PayerV2Controller_createPaymentDetails_v2_401 = ErrorEnvelopeSchema4;
1806
1661
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 401 }, schema: PayerV2Controller_createPaymentDetails_v2_401 });
1807
1662
  var PayerV2Controller_createPaymentDetails_v2_404 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1808
1663
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 404 }, schema: PayerV2Controller_createPaymentDetails_v2_404 });
1809
- var PayerV2Controller_createPaymentDetails_v2_429 = ErrorEnvelopeSchema5;
1664
+ var PayerV2Controller_createPaymentDetails_v2_429 = ErrorEnvelopeSchema4;
1810
1665
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 429 }, schema: PayerV2Controller_createPaymentDetails_v2_429 });
1811
1666
 
1812
1667
  // src/domains/payer/v2/index.ts
@@ -1913,7 +1768,7 @@ var payments_exports = {};
1913
1768
  __export(payments_exports, {
1914
1769
  createPaymentsApi: () => createPaymentsApi
1915
1770
  });
1916
- var ErrorDetailSchema6 = zod.z.object({
1771
+ var ErrorDetailSchema5 = zod.z.object({
1917
1772
  message: zod.z.string(),
1918
1773
  code: zod.z.string().optional(),
1919
1774
  field: zod.z.string().optional(),
@@ -1923,18 +1778,18 @@ var ErrorDetailSchema6 = zod.z.object({
1923
1778
  }).passthrough().optional(),
1924
1779
  meta: zod.z.record(zod.z.unknown()).optional()
1925
1780
  }).passthrough();
1926
- var ErrorEnvelopeSchema6 = zod.z.object({
1781
+ var ErrorEnvelopeSchema5 = zod.z.object({
1927
1782
  status: zod.z.number().optional(),
1928
1783
  statusCode: zod.z.number().optional(),
1929
1784
  code: zod.z.string().optional(),
1930
1785
  error: zod.z.string().optional(),
1931
1786
  message: zod.z.union([
1932
1787
  zod.z.string(),
1933
- zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema6])),
1934
- ErrorDetailSchema6
1788
+ zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema5])),
1789
+ ErrorDetailSchema5
1935
1790
  ]).optional(),
1936
1791
  detail: zod.z.unknown().optional(),
1937
- errors: zod.z.array(ErrorDetailSchema6).optional(),
1792
+ errors: zod.z.array(ErrorDetailSchema5).optional(),
1938
1793
  requestId: zod.z.string().optional(),
1939
1794
  correlationId: zod.z.string().optional(),
1940
1795
  retryAfter: zod.z.union([zod.z.number(), zod.z.string()]).optional(),
@@ -1947,7 +1802,7 @@ var PaymentV2Controller_searchPayments_v2_400 = zod.z.object({ "statusCode": zod
1947
1802
  schemaRegistry.register({ key: { operationId: "PaymentV2Controller_searchPayments_v2", kind: "response", status: 400 }, schema: PaymentV2Controller_searchPayments_v2_400 });
1948
1803
  var PaymentV2Controller_searchPayments_v2_401 = zod.z.object({ "statusCode": zod.z.number().optional(), "message": zod.z.string().optional(), "error": zod.z.string().optional() }).passthrough();
1949
1804
  schemaRegistry.register({ key: { operationId: "PaymentV2Controller_searchPayments_v2", kind: "response", status: 401 }, schema: PaymentV2Controller_searchPayments_v2_401 });
1950
- var PaymentV2Controller_searchPayments_v2_429 = ErrorEnvelopeSchema6;
1805
+ var PaymentV2Controller_searchPayments_v2_429 = ErrorEnvelopeSchema5;
1951
1806
  schemaRegistry.register({ key: { operationId: "PaymentV2Controller_searchPayments_v2", kind: "response", status: 429 }, schema: PaymentV2Controller_searchPayments_v2_429 });
1952
1807
 
1953
1808
  // src/domains/payments/payments.schemas.ts
@@ -2145,7 +2000,7 @@ __export(payouts_exports, {
2145
2000
  });
2146
2001
 
2147
2002
  // src/domains/payouts/payouts.facade.ts
2148
- var OP_CREATE2 = "PayoutV2Controller_payRequest_v2";
2003
+ var OP_CREATE = "PayoutV2Controller_payRequest_v2";
2149
2004
  var OP_CREATE_BATCH = "PayoutV2Controller_payBatchRequest_v2";
2150
2005
  var OP_RECURRING_STATUS = "PayoutV2Controller_getRecurringPaymentStatus_v2";
2151
2006
  var OP_SUBMIT_SIGNATURE = "PayoutV2Controller_submitRecurringPaymentSignature_v2";
@@ -2154,12 +2009,12 @@ function createPayoutsApi(http) {
2154
2009
  return {
2155
2010
  async create(body, options) {
2156
2011
  return requestJson(http, {
2157
- operationId: OP_CREATE2,
2012
+ operationId: OP_CREATE,
2158
2013
  method: "POST",
2159
2014
  path: "/v2/payouts",
2160
2015
  body,
2161
- requestSchemaKey: { operationId: OP_CREATE2, kind: "request", variant: "application/json" },
2162
- schemaKey: { operationId: OP_CREATE2, kind: "response", status: 201 },
2016
+ requestSchemaKey: { operationId: OP_CREATE, kind: "request", variant: "application/json" },
2017
+ schemaKey: { operationId: OP_CREATE, kind: "response", status: 201 },
2163
2018
  description: "Create payout",
2164
2019
  signal: options?.signal,
2165
2020
  timeoutMs: options?.timeoutMs,
@@ -2238,12 +2093,14 @@ __export(requests_exports, {
2238
2093
  });
2239
2094
 
2240
2095
  // src/domains/requests/requests.facade.ts
2241
- var OP_CREATE3 = "RequestControllerV2_createRequest_v2";
2096
+ var OP_CREATE2 = "RequestControllerV2_createRequest_v2";
2097
+ var OP_LIST2 = "RequestControllerV2_listRequests_v2";
2242
2098
  var OP_PAYMENT_ROUTES = "RequestControllerV2_getRequestPaymentRoutes_v2";
2243
2099
  var OP_PAYMENT_CALLDATA = "RequestControllerV2_getPaymentCalldata_v2";
2244
2100
  var OP_UPDATE = "RequestControllerV2_updateRequest_v2";
2245
2101
  var OP_SEND_PAYMENT_INTENT = "RequestControllerV2_sendPaymentIntent_v2";
2246
2102
  var OP_REQUEST_STATUS = "RequestControllerV2_getRequestStatus_v2";
2103
+ var PATH_BASE = "/v2/request";
2247
2104
  var KIND_CALLDATA = "calldata";
2248
2105
  var KIND_PAYMENT_INTENT = "paymentIntent";
2249
2106
  function isPaymentIntentPayload(payload) {
@@ -2254,14 +2111,32 @@ function isCalldataPayload(payload) {
2254
2111
  }
2255
2112
  function createRequestsApi(http) {
2256
2113
  return {
2114
+ async list(options) {
2115
+ return requestJson(http, {
2116
+ operationId: OP_LIST2,
2117
+ method: "GET",
2118
+ path: PATH_BASE,
2119
+ query: buildRequestQuery({
2120
+ walletAddress: options.walletAddress,
2121
+ limit: options.limit,
2122
+ offset: options.offset
2123
+ }),
2124
+ schemaKey: { operationId: OP_LIST2, kind: "response", status: 200 },
2125
+ description: "List requests",
2126
+ signal: options.signal,
2127
+ timeoutMs: options.timeoutMs,
2128
+ validation: options.validation,
2129
+ meta: options.meta
2130
+ });
2131
+ },
2257
2132
  async create(body, options) {
2258
2133
  return requestJson(http, {
2259
- operationId: OP_CREATE3,
2134
+ operationId: OP_CREATE2,
2260
2135
  method: "POST",
2261
- path: "/v2/request",
2136
+ path: PATH_BASE,
2262
2137
  body,
2263
- requestSchemaKey: { operationId: OP_CREATE3, kind: "request", variant: "application/json" },
2264
- schemaKey: { operationId: OP_CREATE3, kind: "response", status: 201 },
2138
+ requestSchemaKey: { operationId: OP_CREATE2, kind: "request", variant: "application/json" },
2139
+ schemaKey: { operationId: OP_CREATE2, kind: "response", status: 201 },
2265
2140
  description: "Create request",
2266
2141
  signal: options?.signal,
2267
2142
  timeoutMs: options?.timeoutMs,
@@ -2270,7 +2145,7 @@ function createRequestsApi(http) {
2270
2145
  });
2271
2146
  },
2272
2147
  async getRequestStatus(requestId, options) {
2273
- const path = `/v2/request/${encodeURIComponent(requestId)}`;
2148
+ const path = `${PATH_BASE}/${encodeURIComponent(requestId)}`;
2274
2149
  const raw = await requestJson(http, {
2275
2150
  operationId: OP_REQUEST_STATUS,
2276
2151
  method: "GET",
@@ -2285,7 +2160,7 @@ function createRequestsApi(http) {
2285
2160
  return normalizeRequestStatusResponse(raw);
2286
2161
  },
2287
2162
  async getPaymentRoutes(requestId, options) {
2288
- const path = `/v2/request/${encodeURIComponent(requestId)}/routes`;
2163
+ const path = `${PATH_BASE}/${encodeURIComponent(requestId)}/routes`;
2289
2164
  return requestJson(http, {
2290
2165
  operationId: OP_PAYMENT_ROUTES,
2291
2166
  method: "GET",
@@ -2305,7 +2180,7 @@ function createRequestsApi(http) {
2305
2180
  });
2306
2181
  },
2307
2182
  async getPaymentCalldata(requestId, options) {
2308
- const path = `/v2/request/${encodeURIComponent(requestId)}/pay`;
2183
+ const path = `${PATH_BASE}/${encodeURIComponent(requestId)}/pay`;
2309
2184
  const queryInput = {
2310
2185
  wallet: options?.wallet,
2311
2186
  chain: options?.chain,
@@ -2336,12 +2211,14 @@ function createRequestsApi(http) {
2336
2211
  }
2337
2212
  throw new ValidationError("Unexpected payment calldata response", raw);
2338
2213
  },
2339
- async update(requestId, options) {
2340
- const path = `/v2/request/${encodeURIComponent(requestId)}`;
2214
+ async update(requestId, body, options) {
2215
+ const path = `${PATH_BASE}/${encodeURIComponent(requestId)}`;
2341
2216
  await requestVoid(http, {
2342
2217
  operationId: OP_UPDATE,
2343
2218
  method: "PATCH",
2344
2219
  path,
2220
+ body,
2221
+ requestSchemaKey: { operationId: OP_UPDATE, kind: "request", variant: "application/json" },
2345
2222
  signal: options?.signal,
2346
2223
  timeoutMs: options?.timeoutMs,
2347
2224
  validation: options?.validation,
@@ -2349,7 +2226,7 @@ function createRequestsApi(http) {
2349
2226
  });
2350
2227
  },
2351
2228
  async sendPaymentIntent(paymentIntentId, body, options) {
2352
- const path = `/v2/request/payment-intents/${encodeURIComponent(paymentIntentId)}`;
2229
+ const path = `${PATH_BASE}/payment-intents/${encodeURIComponent(paymentIntentId)}`;
2353
2230
  await requestVoid(http, {
2354
2231
  operationId: OP_SEND_PAYMENT_INTENT,
2355
2232
  method: "POST",
@@ -2364,7 +2241,7 @@ function createRequestsApi(http) {
2364
2241
  }
2365
2242
  };
2366
2243
  }
2367
- var ErrorDetailSchema7 = zod.z.object({
2244
+ var ErrorDetailSchema6 = zod.z.object({
2368
2245
  message: zod.z.string(),
2369
2246
  code: zod.z.string().optional(),
2370
2247
  field: zod.z.string().optional(),
@@ -2374,18 +2251,18 @@ var ErrorDetailSchema7 = zod.z.object({
2374
2251
  }).passthrough().optional(),
2375
2252
  meta: zod.z.record(zod.z.unknown()).optional()
2376
2253
  }).passthrough();
2377
- var ErrorEnvelopeSchema7 = zod.z.object({
2254
+ var ErrorEnvelopeSchema6 = zod.z.object({
2378
2255
  status: zod.z.number().optional(),
2379
2256
  statusCode: zod.z.number().optional(),
2380
2257
  code: zod.z.string().optional(),
2381
2258
  error: zod.z.string().optional(),
2382
2259
  message: zod.z.union([
2383
2260
  zod.z.string(),
2384
- zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema7])),
2385
- ErrorDetailSchema7
2261
+ zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema6])),
2262
+ ErrorDetailSchema6
2386
2263
  ]).optional(),
2387
2264
  detail: zod.z.unknown().optional(),
2388
- errors: zod.z.array(ErrorDetailSchema7).optional(),
2265
+ errors: zod.z.array(ErrorDetailSchema6).optional(),
2389
2266
  requestId: zod.z.string().optional(),
2390
2267
  correlationId: zod.z.string().optional(),
2391
2268
  retryAfter: zod.z.union([zod.z.number(), zod.z.string()]).optional(),
@@ -2396,105 +2273,111 @@ var RequestControllerV1_createRequest_v1_Request = zod.z.object({ "payer": zod.z
2396
2273
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "request", variant: "application/json" }, schema: RequestControllerV1_createRequest_v1_Request });
2397
2274
  var RequestControllerV1_createRequest_v1_201 = zod.z.object({ "paymentReference": zod.z.string().optional(), "requestID": zod.z.string().optional() }).passthrough();
2398
2275
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 201 }, schema: RequestControllerV1_createRequest_v1_201 });
2399
- var RequestControllerV1_createRequest_v1_400 = ErrorEnvelopeSchema7;
2276
+ var RequestControllerV1_createRequest_v1_400 = ErrorEnvelopeSchema6;
2400
2277
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 400 }, schema: RequestControllerV1_createRequest_v1_400 });
2401
- var RequestControllerV1_createRequest_v1_401 = ErrorEnvelopeSchema7;
2278
+ var RequestControllerV1_createRequest_v1_401 = ErrorEnvelopeSchema6;
2402
2279
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 401 }, schema: RequestControllerV1_createRequest_v1_401 });
2403
- var RequestControllerV1_createRequest_v1_404 = ErrorEnvelopeSchema7;
2280
+ var RequestControllerV1_createRequest_v1_404 = ErrorEnvelopeSchema6;
2404
2281
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 404 }, schema: RequestControllerV1_createRequest_v1_404 });
2405
- var RequestControllerV1_createRequest_v1_429 = ErrorEnvelopeSchema7;
2282
+ var RequestControllerV1_createRequest_v1_429 = ErrorEnvelopeSchema6;
2406
2283
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 429 }, schema: RequestControllerV1_createRequest_v1_429 });
2407
2284
  var RequestControllerV1_getRequestStatus_v1_200 = zod.z.object({ "hasBeenPaid": zod.z.boolean().optional(), "paymentReference": zod.z.string().optional(), "requestId": zod.z.string().optional(), "isListening": zod.z.boolean().optional(), "txHash": zod.z.string().nullable().optional() }).passthrough();
2408
2285
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 200 }, schema: RequestControllerV1_getRequestStatus_v1_200 });
2409
- var RequestControllerV1_getRequestStatus_v1_401 = ErrorEnvelopeSchema7;
2286
+ var RequestControllerV1_getRequestStatus_v1_401 = ErrorEnvelopeSchema6;
2410
2287
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 401 }, schema: RequestControllerV1_getRequestStatus_v1_401 });
2411
- var RequestControllerV1_getRequestStatus_v1_404 = ErrorEnvelopeSchema7;
2288
+ var RequestControllerV1_getRequestStatus_v1_404 = ErrorEnvelopeSchema6;
2412
2289
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 404 }, schema: RequestControllerV1_getRequestStatus_v1_404 });
2413
- var RequestControllerV1_getRequestStatus_v1_429 = ErrorEnvelopeSchema7;
2290
+ var RequestControllerV1_getRequestStatus_v1_429 = ErrorEnvelopeSchema6;
2414
2291
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 429 }, schema: RequestControllerV1_getRequestStatus_v1_429 });
2415
2292
  var RequestControllerV1_stopRecurrenceRequest_v1_200 = zod.z.unknown();
2416
2293
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 200 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_200 });
2417
- var RequestControllerV1_stopRecurrenceRequest_v1_401 = ErrorEnvelopeSchema7;
2294
+ var RequestControllerV1_stopRecurrenceRequest_v1_401 = ErrorEnvelopeSchema6;
2418
2295
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 401 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_401 });
2419
- var RequestControllerV1_stopRecurrenceRequest_v1_404 = ErrorEnvelopeSchema7;
2296
+ var RequestControllerV1_stopRecurrenceRequest_v1_404 = ErrorEnvelopeSchema6;
2420
2297
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 404 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_404 });
2421
- var RequestControllerV1_stopRecurrenceRequest_v1_429 = ErrorEnvelopeSchema7;
2298
+ var RequestControllerV1_stopRecurrenceRequest_v1_429 = ErrorEnvelopeSchema6;
2422
2299
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 429 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_429 });
2423
2300
  var RequestControllerV1_getPaymentCalldata_v1_200 = zod.z.union([zod.z.object({ "transactions": zod.z.array(zod.z.object({ "data": zod.z.string(), "to": zod.z.string(), "value": zod.z.object({ "type": zod.z.enum(["BigNumber"]).optional(), "hex": zod.z.string().optional() }).passthrough() }).passthrough()), "metadata": zod.z.object({ "stepsRequired": zod.z.number(), "needsApproval": zod.z.boolean(), "approvalTransactionIndex": zod.z.number().nullable().optional(), "hasEnoughBalance": zod.z.boolean(), "hasEnoughGas": zod.z.boolean() }).passthrough() }).passthrough(), zod.z.object({ "paymentIntentId": zod.z.string(), "paymentIntent": zod.z.string(), "approvalPermitPayload": zod.z.string().nullable().optional(), "approvalCalldata": zod.z.object({ "to": zod.z.string().optional(), "data": zod.z.string().optional(), "value": zod.z.string().optional() }).passthrough().nullable().optional(), "metadata": zod.z.object({ "supportsEIP2612": zod.z.boolean() }).passthrough() }).passthrough()]);
2424
2301
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 200 }, schema: RequestControllerV1_getPaymentCalldata_v1_200 });
2425
- var RequestControllerV1_getPaymentCalldata_v1_400 = ErrorEnvelopeSchema7;
2302
+ var RequestControllerV1_getPaymentCalldata_v1_400 = ErrorEnvelopeSchema6;
2426
2303
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 400 }, schema: RequestControllerV1_getPaymentCalldata_v1_400 });
2427
- var RequestControllerV1_getPaymentCalldata_v1_401 = ErrorEnvelopeSchema7;
2304
+ var RequestControllerV1_getPaymentCalldata_v1_401 = ErrorEnvelopeSchema6;
2428
2305
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 401 }, schema: RequestControllerV1_getPaymentCalldata_v1_401 });
2429
- var RequestControllerV1_getPaymentCalldata_v1_404 = ErrorEnvelopeSchema7;
2306
+ var RequestControllerV1_getPaymentCalldata_v1_404 = ErrorEnvelopeSchema6;
2430
2307
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 404 }, schema: RequestControllerV1_getPaymentCalldata_v1_404 });
2431
- var RequestControllerV1_getPaymentCalldata_v1_429 = ErrorEnvelopeSchema7;
2308
+ var RequestControllerV1_getPaymentCalldata_v1_429 = ErrorEnvelopeSchema6;
2432
2309
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 429 }, schema: RequestControllerV1_getPaymentCalldata_v1_429 });
2433
2310
  var RequestControllerV1_getRequestPaymentRoutes_v1_200 = zod.z.object({ "routes": zod.z.array(zod.z.object({ "id": zod.z.string(), "fee": zod.z.number(), "feeBreakdown": zod.z.array(zod.z.object({ "type": zod.z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp", "protocol"]).optional(), "stage": zod.z.enum(["sending", "receiving", "proxying", "refunding", "overall"]).optional(), "provider": zod.z.string().optional(), "amount": zod.z.string().nullable().optional(), "amountInUSD": zod.z.string().nullable().optional(), "currency": zod.z.string().optional(), "receiverAddress": zod.z.string().optional(), "network": zod.z.string().optional(), "rateProvider": zod.z.string().optional() }).passthrough()).optional(), "speed": zod.z.union([zod.z.string(), zod.z.number()]), "price_impact": zod.z.number().optional(), "chain": zod.z.string(), "token": zod.z.string() }).passthrough()) }).passthrough();
2434
2311
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 200 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_200 });
2435
- var RequestControllerV1_getRequestPaymentRoutes_v1_400 = ErrorEnvelopeSchema7;
2312
+ var RequestControllerV1_getRequestPaymentRoutes_v1_400 = ErrorEnvelopeSchema6;
2436
2313
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 400 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_400 });
2437
- var RequestControllerV1_getRequestPaymentRoutes_v1_401 = ErrorEnvelopeSchema7;
2314
+ var RequestControllerV1_getRequestPaymentRoutes_v1_401 = ErrorEnvelopeSchema6;
2438
2315
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 401 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_401 });
2439
- var RequestControllerV1_getRequestPaymentRoutes_v1_404 = ErrorEnvelopeSchema7;
2316
+ var RequestControllerV1_getRequestPaymentRoutes_v1_404 = ErrorEnvelopeSchema6;
2440
2317
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 404 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_404 });
2441
- var RequestControllerV1_getRequestPaymentRoutes_v1_429 = ErrorEnvelopeSchema7;
2318
+ var RequestControllerV1_getRequestPaymentRoutes_v1_429 = ErrorEnvelopeSchema6;
2442
2319
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 429 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_429 });
2443
2320
  var RequestControllerV1_sendPaymentIntent_v1_Request = zod.z.object({ "signedPaymentIntent": zod.z.object({ "signature": zod.z.string(), "nonce": zod.z.string(), "deadline": zod.z.string() }).passthrough(), "signedApprovalPermit": zod.z.object({ "signature": zod.z.string(), "nonce": zod.z.string(), "deadline": zod.z.string() }).passthrough().optional() }).passthrough();
2444
2321
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "request", variant: "application/json" }, schema: RequestControllerV1_sendPaymentIntent_v1_Request });
2445
- var RequestControllerV1_sendPaymentIntent_v1_401 = ErrorEnvelopeSchema7;
2322
+ var RequestControllerV1_sendPaymentIntent_v1_401 = ErrorEnvelopeSchema6;
2446
2323
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "response", status: 401 }, schema: RequestControllerV1_sendPaymentIntent_v1_401 });
2447
- var RequestControllerV1_sendPaymentIntent_v1_404 = ErrorEnvelopeSchema7;
2324
+ var RequestControllerV1_sendPaymentIntent_v1_404 = ErrorEnvelopeSchema6;
2448
2325
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "response", status: 404 }, schema: RequestControllerV1_sendPaymentIntent_v1_404 });
2449
- var RequestControllerV1_sendPaymentIntent_v1_429 = ErrorEnvelopeSchema7;
2326
+ var RequestControllerV1_sendPaymentIntent_v1_429 = ErrorEnvelopeSchema6;
2450
2327
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "response", status: 429 }, schema: RequestControllerV1_sendPaymentIntent_v1_429 });
2328
+ var RequestControllerV2_listRequests_v2_200 = zod.z.object({ "requests": zod.z.array(zod.z.object({ "requestId": zod.z.string().optional(), "paymentReference": zod.z.string().optional(), "amount": zod.z.string().nullable().optional(), "invoiceCurrency": zod.z.string().optional(), "paymentCurrency": zod.z.string().optional(), "hasBeenPaid": zod.z.boolean().optional(), "status": zod.z.string().nullable().optional(), "reference": zod.z.string().nullable().optional(), "createdAt": zod.z.string().nullable().optional(), "txHash": zod.z.string().nullable().optional(), "payee": zod.z.string().nullable().optional(), "payer": zod.z.string().nullable().optional() }).passthrough()), "pagination": zod.z.object({ "total": zod.z.number().optional(), "limit": zod.z.number().optional(), "offset": zod.z.number().optional() }).passthrough() }).passthrough();
2329
+ schemaRegistry.register({ key: { operationId: "RequestControllerV2_listRequests_v2", kind: "response", status: 200 }, schema: RequestControllerV2_listRequests_v2_200 });
2330
+ var RequestControllerV2_listRequests_v2_400 = ErrorEnvelopeSchema6;
2331
+ schemaRegistry.register({ key: { operationId: "RequestControllerV2_listRequests_v2", kind: "response", status: 400 }, schema: RequestControllerV2_listRequests_v2_400 });
2332
+ var RequestControllerV2_listRequests_v2_429 = ErrorEnvelopeSchema6;
2333
+ schemaRegistry.register({ key: { operationId: "RequestControllerV2_listRequests_v2", kind: "response", status: 429 }, schema: RequestControllerV2_listRequests_v2_429 });
2451
2334
  var RequestControllerV2_createRequest_v2_Request = zod.z.object({ "payer": zod.z.string().optional(), "payee": zod.z.string().optional(), "amount": zod.z.string(), "invoiceCurrency": zod.z.string(), "paymentCurrency": zod.z.string(), "recurrence": zod.z.object({ "startDate": zod.z.string(), "frequency": zod.z.enum(["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]) }).passthrough().optional(), "isCryptoToFiatAvailable": zod.z.boolean().optional(), "customerInfo": zod.z.object({ "firstName": zod.z.string().optional(), "lastName": zod.z.string().optional(), "email": zod.z.string().optional(), "address": zod.z.object({ "street": zod.z.string().optional(), "city": zod.z.string().optional(), "state": zod.z.string().optional(), "postalCode": zod.z.string().optional(), "country": zod.z.string().optional() }).passthrough().optional() }).passthrough().optional(), "reference": zod.z.string().optional(), "originalRequestId": zod.z.string().optional(), "originalRequestPaymentReference": zod.z.string().optional() }).passthrough();
2452
2335
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "request", variant: "application/json" }, schema: RequestControllerV2_createRequest_v2_Request });
2453
2336
  var RequestControllerV2_createRequest_v2_201 = zod.z.object({ "paymentReference": zod.z.string().optional(), "requestId": zod.z.string().optional() }).passthrough();
2454
2337
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 201 }, schema: RequestControllerV2_createRequest_v2_201 });
2455
- var RequestControllerV2_createRequest_v2_400 = ErrorEnvelopeSchema7;
2338
+ var RequestControllerV2_createRequest_v2_400 = ErrorEnvelopeSchema6;
2456
2339
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 400 }, schema: RequestControllerV2_createRequest_v2_400 });
2457
- var RequestControllerV2_createRequest_v2_404 = ErrorEnvelopeSchema7;
2458
- schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 404 }, schema: RequestControllerV2_createRequest_v2_404 });
2459
- var RequestControllerV2_createRequest_v2_429 = ErrorEnvelopeSchema7;
2340
+ var RequestControllerV2_createRequest_v2_403 = ErrorEnvelopeSchema6;
2341
+ schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 403 }, schema: RequestControllerV2_createRequest_v2_403 });
2342
+ var RequestControllerV2_createRequest_v2_429 = ErrorEnvelopeSchema6;
2460
2343
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 429 }, schema: RequestControllerV2_createRequest_v2_429 });
2461
- var RequestControllerV2_getRequestStatus_v2_200 = zod.z.object({ "hasBeenPaid": zod.z.boolean().optional(), "paymentReference": zod.z.string().optional(), "requestId": zod.z.string().optional(), "isListening": zod.z.boolean().optional(), "txHash": zod.z.string().nullable().optional(), "recurrence": zod.z.object({}).passthrough().optional(), "originalRequestId": zod.z.string().optional(), "status": zod.z.string().optional(), "isCryptoToFiatAvailable": zod.z.boolean().optional(), "originalRequestPaymentReference": zod.z.string().optional(), "payments": zod.z.array(zod.z.object({}).passthrough()).optional(), "isRecurrenceStopped": zod.z.boolean().optional(), "customerInfo": zod.z.object({ "firstName": zod.z.string().optional(), "lastName": zod.z.string().optional(), "email": zod.z.string().optional(), "address": zod.z.object({ "street": zod.z.string().optional(), "city": zod.z.string().optional(), "state": zod.z.string().optional(), "postalCode": zod.z.string().optional(), "country": zod.z.string().optional() }).passthrough().optional() }).passthrough().nullable().optional(), "reference": zod.z.string().nullable().optional(), "amountInUsd": zod.z.string().nullable().optional(), "conversionRate": zod.z.string().nullable().optional(), "rateSource": zod.z.enum(["lifi", "chainlink", "coingecko", "unknown", "mixed"]).optional(), "conversionBreakdown": zod.z.object({ "paidAmount": zod.z.string().optional(), "paidAmountInUsd": zod.z.string().optional(), "remainingAmount": zod.z.string().optional(), "remainingAmountInUsd": zod.z.string().optional(), "currentMarketRate": zod.z.string().nullable().optional(), "currentMarketRateSource": zod.z.enum(["lifi", "chainlink", "coingecko", "unknown"]).optional(), "payments": zod.z.array(zod.z.object({ "amount": zod.z.string().optional(), "amountInUsd": zod.z.string().optional(), "conversionRate": zod.z.string().optional(), "rateSource": zod.z.enum(["lifi", "chainlink", "coingecko", "unknown"]).optional(), "timestamp": zod.z.string().optional() }).passthrough()).optional() }).passthrough().nullable().optional(), "fees": zod.z.array(zod.z.object({ "type": zod.z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp", "protocol"]).optional(), "provider": zod.z.string().optional(), "amount": zod.z.string().nullable().optional(), "currency": zod.z.string().optional() }).passthrough()).nullable().optional() }).passthrough();
2344
+ var RequestControllerV2_getRequestStatus_v2_200 = zod.z.object({ "hasBeenPaid": zod.z.boolean().optional(), "paymentReference": zod.z.string().optional(), "requestId": zod.z.string().optional(), "payee": zod.z.string().nullable().optional(), "isListening": zod.z.boolean().optional(), "txHash": zod.z.string().nullable().optional(), "recurrence": zod.z.object({}).passthrough().optional(), "originalRequestId": zod.z.string().optional(), "status": zod.z.string().optional(), "isCryptoToFiatAvailable": zod.z.boolean().optional(), "originalRequestPaymentReference": zod.z.string().optional(), "payments": zod.z.array(zod.z.object({}).passthrough()).optional(), "isRecurrenceStopped": zod.z.boolean().optional(), "customerInfo": zod.z.object({ "firstName": zod.z.string().optional(), "lastName": zod.z.string().optional(), "email": zod.z.string().optional(), "address": zod.z.object({ "street": zod.z.string().optional(), "city": zod.z.string().optional(), "state": zod.z.string().optional(), "postalCode": zod.z.string().optional(), "country": zod.z.string().optional() }).passthrough().optional() }).passthrough().nullable().optional(), "reference": zod.z.string().nullable().optional(), "amountInUsd": zod.z.string().nullable().optional(), "conversionRate": zod.z.string().nullable().optional(), "rateSource": zod.z.enum(["lifi", "chainlink", "coingecko", "unknown", "mixed"]).optional(), "conversionBreakdown": zod.z.object({ "paidAmount": zod.z.string().optional(), "paidAmountInUsd": zod.z.string().optional(), "remainingAmount": zod.z.string().optional(), "remainingAmountInUsd": zod.z.string().optional(), "currentMarketRate": zod.z.string().nullable().optional(), "currentMarketRateSource": zod.z.enum(["lifi", "chainlink", "coingecko", "unknown"]).optional(), "payments": zod.z.array(zod.z.object({ "amount": zod.z.string().optional(), "amountInUsd": zod.z.string().optional(), "conversionRate": zod.z.string().optional(), "rateSource": zod.z.enum(["lifi", "chainlink", "coingecko", "unknown"]).optional(), "timestamp": zod.z.string().optional() }).passthrough()).optional() }).passthrough().nullable().optional(), "fees": zod.z.array(zod.z.object({ "type": zod.z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp", "protocol"]).optional(), "provider": zod.z.string().optional(), "amount": zod.z.string().nullable().optional(), "currency": zod.z.string().optional() }).passthrough()).nullable().optional() }).passthrough();
2462
2345
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestStatus_v2", kind: "response", status: 200 }, schema: RequestControllerV2_getRequestStatus_v2_200 });
2463
- var RequestControllerV2_getRequestStatus_v2_404 = ErrorEnvelopeSchema7;
2346
+ var RequestControllerV2_getRequestStatus_v2_404 = ErrorEnvelopeSchema6;
2464
2347
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestStatus_v2", kind: "response", status: 404 }, schema: RequestControllerV2_getRequestStatus_v2_404 });
2465
- var RequestControllerV2_getRequestStatus_v2_429 = ErrorEnvelopeSchema7;
2348
+ var RequestControllerV2_getRequestStatus_v2_429 = ErrorEnvelopeSchema6;
2466
2349
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestStatus_v2", kind: "response", status: 429 }, schema: RequestControllerV2_getRequestStatus_v2_429 });
2467
2350
  var RequestControllerV2_updateRequest_v2_Request = zod.z.object({ "isRecurrenceStopped": zod.z.boolean() }).passthrough();
2468
2351
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "request", variant: "application/json" }, schema: RequestControllerV2_updateRequest_v2_Request });
2469
2352
  var RequestControllerV2_updateRequest_v2_200 = zod.z.unknown();
2470
2353
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 200 }, schema: RequestControllerV2_updateRequest_v2_200 });
2471
- var RequestControllerV2_updateRequest_v2_404 = ErrorEnvelopeSchema7;
2354
+ var RequestControllerV2_updateRequest_v2_404 = ErrorEnvelopeSchema6;
2472
2355
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 404 }, schema: RequestControllerV2_updateRequest_v2_404 });
2473
- var RequestControllerV2_updateRequest_v2_429 = ErrorEnvelopeSchema7;
2356
+ var RequestControllerV2_updateRequest_v2_429 = ErrorEnvelopeSchema6;
2474
2357
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 429 }, schema: RequestControllerV2_updateRequest_v2_429 });
2475
2358
  var RequestControllerV2_getPaymentCalldata_v2_200 = zod.z.union([zod.z.object({ "transactions": zod.z.array(zod.z.object({ "data": zod.z.string(), "to": zod.z.string(), "value": zod.z.object({ "type": zod.z.enum(["BigNumber"]).optional(), "hex": zod.z.string().optional() }).passthrough() }).passthrough()), "metadata": zod.z.object({ "stepsRequired": zod.z.number(), "needsApproval": zod.z.boolean(), "approvalTransactionIndex": zod.z.number().nullable().optional(), "hasEnoughBalance": zod.z.boolean(), "hasEnoughGas": zod.z.boolean() }).passthrough() }).passthrough(), zod.z.object({ "paymentIntentId": zod.z.string(), "paymentIntent": zod.z.string(), "approvalPermitPayload": zod.z.string().nullable().optional(), "approvalCalldata": zod.z.object({ "to": zod.z.string().optional(), "data": zod.z.string().optional(), "value": zod.z.string().optional() }).passthrough().nullable().optional(), "metadata": zod.z.object({ "supportsEIP2612": zod.z.boolean() }).passthrough() }).passthrough()]);
2476
2359
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 200 }, schema: RequestControllerV2_getPaymentCalldata_v2_200 });
2477
- var RequestControllerV2_getPaymentCalldata_v2_400 = ErrorEnvelopeSchema7;
2360
+ var RequestControllerV2_getPaymentCalldata_v2_400 = ErrorEnvelopeSchema6;
2478
2361
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 400 }, schema: RequestControllerV2_getPaymentCalldata_v2_400 });
2479
- var RequestControllerV2_getPaymentCalldata_v2_404 = ErrorEnvelopeSchema7;
2362
+ var RequestControllerV2_getPaymentCalldata_v2_404 = ErrorEnvelopeSchema6;
2480
2363
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 404 }, schema: RequestControllerV2_getPaymentCalldata_v2_404 });
2481
- var RequestControllerV2_getPaymentCalldata_v2_429 = ErrorEnvelopeSchema7;
2364
+ var RequestControllerV2_getPaymentCalldata_v2_429 = ErrorEnvelopeSchema6;
2482
2365
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 429 }, schema: RequestControllerV2_getPaymentCalldata_v2_429 });
2483
2366
  var RequestControllerV2_getRequestPaymentRoutes_v2_200 = zod.z.object({ "routes": zod.z.array(zod.z.object({ "id": zod.z.string(), "fee": zod.z.number(), "feeBreakdown": zod.z.array(zod.z.object({ "type": zod.z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp", "protocol"]).optional(), "stage": zod.z.enum(["sending", "receiving", "proxying", "refunding", "overall"]).optional(), "provider": zod.z.string().optional(), "amount": zod.z.string().nullable().optional(), "amountInUSD": zod.z.string().nullable().optional(), "currency": zod.z.string().optional(), "receiverAddress": zod.z.string().optional(), "network": zod.z.string().optional(), "rateProvider": zod.z.string().optional() }).passthrough()).optional(), "speed": zod.z.union([zod.z.string(), zod.z.number()]), "price_impact": zod.z.number().optional(), "chain": zod.z.string(), "token": zod.z.string() }).passthrough()) }).passthrough();
2484
2367
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 200 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_200 });
2485
- var RequestControllerV2_getRequestPaymentRoutes_v2_400 = ErrorEnvelopeSchema7;
2368
+ var RequestControllerV2_getRequestPaymentRoutes_v2_400 = ErrorEnvelopeSchema6;
2486
2369
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 400 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_400 });
2487
- var RequestControllerV2_getRequestPaymentRoutes_v2_404 = ErrorEnvelopeSchema7;
2370
+ var RequestControllerV2_getRequestPaymentRoutes_v2_404 = ErrorEnvelopeSchema6;
2488
2371
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 404 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_404 });
2489
- var RequestControllerV2_getRequestPaymentRoutes_v2_429 = ErrorEnvelopeSchema7;
2372
+ var RequestControllerV2_getRequestPaymentRoutes_v2_429 = ErrorEnvelopeSchema6;
2490
2373
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 429 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_429 });
2491
2374
  var RequestControllerV2_sendPaymentIntent_v2_Request = zod.z.object({ "signedPaymentIntent": zod.z.object({ "signature": zod.z.string(), "nonce": zod.z.string(), "deadline": zod.z.string() }).passthrough(), "signedApprovalPermit": zod.z.object({ "signature": zod.z.string(), "nonce": zod.z.string(), "deadline": zod.z.string() }).passthrough().optional() }).passthrough();
2492
2375
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "request", variant: "application/json" }, schema: RequestControllerV2_sendPaymentIntent_v2_Request });
2493
2376
  var RequestControllerV2_sendPaymentIntent_v2_200 = zod.z.unknown();
2494
2377
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "response", status: 200 }, schema: RequestControllerV2_sendPaymentIntent_v2_200 });
2495
- var RequestControllerV2_sendPaymentIntent_v2_404 = ErrorEnvelopeSchema7;
2378
+ var RequestControllerV2_sendPaymentIntent_v2_404 = ErrorEnvelopeSchema6;
2496
2379
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "response", status: 404 }, schema: RequestControllerV2_sendPaymentIntent_v2_404 });
2497
- var RequestControllerV2_sendPaymentIntent_v2_429 = ErrorEnvelopeSchema7;
2380
+ var RequestControllerV2_sendPaymentIntent_v2_429 = ErrorEnvelopeSchema6;
2498
2381
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "response", status: 429 }, schema: RequestControllerV2_sendPaymentIntent_v2_429 });
2499
2382
  var NullableRequestStatusSchema = zod.z.preprocess((value) => {
2500
2383
  if (!value || typeof value !== "object") {
@@ -2528,6 +2411,115 @@ schemaRegistry.register({
2528
2411
  schema: FlexibleRoutesSchema
2529
2412
  });
2530
2413
 
2414
+ // src/domains/secure-payments/index.ts
2415
+ var secure_payments_exports = {};
2416
+ __export(secure_payments_exports, {
2417
+ createSecurePaymentsApi: () => createSecurePaymentsApi
2418
+ });
2419
+
2420
+ // src/domains/secure-payments/secure-payments.facade.ts
2421
+ var OP_FIND_BY_REQUEST_ID = "SecurePaymentController_findSecurePayment_v2";
2422
+ var OP_CREATE3 = "SecurePaymentController_createSecurePayment_v2";
2423
+ var OP_GET_BY_TOKEN = "SecurePaymentController_getSecurePaymentByToken_v2";
2424
+ var PATH_BASE2 = "/v2/secure-payments";
2425
+ function createSecurePaymentsApi(http) {
2426
+ return {
2427
+ async create(body, options) {
2428
+ return requestJson(http, {
2429
+ operationId: OP_CREATE3,
2430
+ method: "POST",
2431
+ path: PATH_BASE2,
2432
+ body,
2433
+ requestSchemaKey: { operationId: OP_CREATE3, kind: "request", variant: "application/json" },
2434
+ schemaKey: { operationId: OP_CREATE3, kind: "response", status: 201 },
2435
+ description: "Create secure payment",
2436
+ signal: options?.signal,
2437
+ timeoutMs: options?.timeoutMs,
2438
+ validation: options?.validation,
2439
+ meta: options?.meta
2440
+ });
2441
+ },
2442
+ async findByRequestId(requestId, options) {
2443
+ return requestJson(http, {
2444
+ operationId: OP_FIND_BY_REQUEST_ID,
2445
+ method: "GET",
2446
+ path: PATH_BASE2,
2447
+ query: { requestId },
2448
+ schemaKey: { operationId: OP_FIND_BY_REQUEST_ID, kind: "response", status: 200 },
2449
+ description: "Find secure payment by request ID",
2450
+ signal: options?.signal,
2451
+ timeoutMs: options?.timeoutMs,
2452
+ validation: options?.validation,
2453
+ meta: options?.meta
2454
+ });
2455
+ },
2456
+ async getByToken(token, options) {
2457
+ return requestJson(http, {
2458
+ operationId: OP_GET_BY_TOKEN,
2459
+ method: "GET",
2460
+ path: `${PATH_BASE2}/${encodeURIComponent(token)}`,
2461
+ query: buildRequestQuery({ wallet: options?.wallet }),
2462
+ schemaKey: { operationId: OP_GET_BY_TOKEN, kind: "response", status: 200 },
2463
+ description: "Get secure payment by token",
2464
+ signal: options?.signal,
2465
+ timeoutMs: options?.timeoutMs,
2466
+ validation: options?.validation,
2467
+ meta: options?.meta
2468
+ });
2469
+ }
2470
+ };
2471
+ }
2472
+ var ErrorDetailSchema7 = zod.z.object({
2473
+ message: zod.z.string(),
2474
+ code: zod.z.string().optional(),
2475
+ field: zod.z.string().optional(),
2476
+ source: zod.z.object({
2477
+ pointer: zod.z.string().optional(),
2478
+ parameter: zod.z.string().optional()
2479
+ }).passthrough().optional(),
2480
+ meta: zod.z.record(zod.z.unknown()).optional()
2481
+ }).passthrough();
2482
+ var ErrorEnvelopeSchema7 = zod.z.object({
2483
+ status: zod.z.number().optional(),
2484
+ statusCode: zod.z.number().optional(),
2485
+ code: zod.z.string().optional(),
2486
+ error: zod.z.string().optional(),
2487
+ message: zod.z.union([
2488
+ zod.z.string(),
2489
+ zod.z.array(zod.z.union([zod.z.string(), ErrorDetailSchema7])),
2490
+ ErrorDetailSchema7
2491
+ ]).optional(),
2492
+ detail: zod.z.unknown().optional(),
2493
+ errors: zod.z.array(ErrorDetailSchema7).optional(),
2494
+ requestId: zod.z.string().optional(),
2495
+ correlationId: zod.z.string().optional(),
2496
+ retryAfter: zod.z.union([zod.z.number(), zod.z.string()]).optional(),
2497
+ retryAfterMs: zod.z.number().optional(),
2498
+ meta: zod.z.record(zod.z.unknown()).optional()
2499
+ }).passthrough();
2500
+ var SecurePaymentController_findSecurePayment_v2_200 = zod.z.object({ "token": zod.z.string(), "securePaymentUrl": zod.z.string(), "status": zod.z.enum(["pending", "completed", "expired", "invalidated"]), "paymentType": zod.z.enum(["single", "batch"]), "createdAt": zod.z.string().nullable(), "expiresAt": zod.z.string() }).passthrough();
2501
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_findSecurePayment_v2", kind: "response", status: 200 }, schema: SecurePaymentController_findSecurePayment_v2_200 });
2502
+ var SecurePaymentController_findSecurePayment_v2_404 = ErrorEnvelopeSchema7;
2503
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_findSecurePayment_v2", kind: "response", status: 404 }, schema: SecurePaymentController_findSecurePayment_v2_404 });
2504
+ var SecurePaymentController_findSecurePayment_v2_429 = ErrorEnvelopeSchema7;
2505
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_findSecurePayment_v2", kind: "response", status: 429 }, schema: SecurePaymentController_findSecurePayment_v2_429 });
2506
+ var SecurePaymentController_createSecurePayment_v2_Request = zod.z.object({ "requests": zod.z.array(zod.z.object({ "destinationId": zod.z.string(), "amount": zod.z.string() }).passthrough()), "feePercentage": zod.z.string().optional(), "feeAddress": zod.z.string().optional() }).passthrough();
2507
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_createSecurePayment_v2", kind: "request", variant: "application/json" }, schema: SecurePaymentController_createSecurePayment_v2_Request });
2508
+ var SecurePaymentController_createSecurePayment_v2_201 = zod.z.object({ "requestIds": zod.z.array(zod.z.string()), "securePaymentUrl": zod.z.string(), "token": zod.z.string() }).passthrough();
2509
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_createSecurePayment_v2", kind: "response", status: 201 }, schema: SecurePaymentController_createSecurePayment_v2_201 });
2510
+ var SecurePaymentController_createSecurePayment_v2_429 = ErrorEnvelopeSchema7;
2511
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_createSecurePayment_v2", kind: "response", status: 429 }, schema: SecurePaymentController_createSecurePayment_v2_429 });
2512
+ var SecurePaymentController_getSecurePaymentByToken_v2_200 = zod.z.object({ "paymentType": zod.z.enum(["single"]), "payee": zod.z.string(), "network": zod.z.string(), "amount": zod.z.string(), "paymentCurrency": zod.z.string(), "isNativeCurrency": zod.z.boolean(), "status": zod.z.enum(["pending", "completed", "expired", "invalidated"]), "destination": zod.z.object({ "destinationId": zod.z.string(), "payeeAddress": zod.z.string(), "tokenAddress": zod.z.string(), "walletAddress": zod.z.string(), "network": zod.z.string() }).passthrough(), "transactions": zod.z.array(zod.z.unknown()), "metadata": zod.z.object({ "stepsRequired": zod.z.number(), "needsApproval": zod.z.boolean(), "approvalTransactionIndex": zod.z.number().optional(), "paymentTransactionIndex": zod.z.number(), "hasEnoughBalance": zod.z.boolean().optional(), "hasEnoughGas": zod.z.boolean().optional(), "platformFee": zod.z.object({ "percentage": zod.z.string(), "address": zod.z.string() }).passthrough().optional() }).passthrough().optional() }).passthrough();
2513
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_getSecurePaymentByToken_v2", kind: "response", status: 200 }, schema: SecurePaymentController_getSecurePaymentByToken_v2_200 });
2514
+ var SecurePaymentController_getSecurePaymentByToken_v2_403 = ErrorEnvelopeSchema7;
2515
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_getSecurePaymentByToken_v2", kind: "response", status: 403 }, schema: SecurePaymentController_getSecurePaymentByToken_v2_403 });
2516
+ var SecurePaymentController_getSecurePaymentByToken_v2_404 = ErrorEnvelopeSchema7;
2517
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_getSecurePaymentByToken_v2", kind: "response", status: 404 }, schema: SecurePaymentController_getSecurePaymentByToken_v2_404 });
2518
+ var SecurePaymentController_getSecurePaymentByToken_v2_409 = ErrorEnvelopeSchema7;
2519
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_getSecurePaymentByToken_v2", kind: "response", status: 409 }, schema: SecurePaymentController_getSecurePaymentByToken_v2_409 });
2520
+ var SecurePaymentController_getSecurePaymentByToken_v2_429 = ErrorEnvelopeSchema7;
2521
+ schemaRegistry.register({ key: { operationId: "SecurePaymentController_getSecurePaymentByToken_v2", kind: "response", status: 429 }, schema: SecurePaymentController_getSecurePaymentByToken_v2_429 });
2522
+
2531
2523
  // src/request.client.ts
2532
2524
  function createRequestClient(options) {
2533
2525
  const http = createHttpClient(options);
@@ -2539,7 +2531,7 @@ function createRequestClient(options) {
2539
2531
  payouts: createPayoutsApi(http),
2540
2532
  payments: createPaymentsApi(http),
2541
2533
  payer: createPayerApi(http),
2542
- payeeDestination: createPayeeDestinationApi(http),
2534
+ securePayments: createSecurePaymentsApi(http),
2543
2535
  pay: createPayApi(http)
2544
2536
  };
2545
2537
  }
@@ -3668,7 +3660,6 @@ exports.parseWithRegistry = parseWithRegistry;
3668
3660
  exports.parseWithSchema = parseWithSchema;
3669
3661
  exports.pay = pay_exports;
3670
3662
  exports.payV1 = v1_exports2;
3671
- exports.payeeDestination = payee_destination_exports;
3672
3663
  exports.payer = payer_exports;
3673
3664
  exports.payerV1 = v1_exports3;
3674
3665
  exports.payerV2 = v2_exports;
@@ -3677,6 +3668,7 @@ exports.payouts = payouts_exports;
3677
3668
  exports.requests = requests_exports;
3678
3669
  exports.requestsV1 = v1_exports4;
3679
3670
  exports.schemaRegistry = schemaRegistry;
3671
+ exports.securePayments = secure_payments_exports;
3680
3672
  exports.shouldRetryRequest = shouldRetryRequest;
3681
3673
  exports.webhooks = webhooks_exports;
3682
3674
  //# sourceMappingURL=index.js.map