@marcohefti/request-network-api-client 0.5.9 → 0.5.11

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 (40) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/domains/client-ids/index.js +5 -5
  3. package/dist/cjs/domains/client-ids/index.js.map +1 -1
  4. package/dist/cjs/domains/currencies/index.js +19 -17
  5. package/dist/cjs/domains/currencies/index.js.map +1 -1
  6. package/dist/cjs/domains/payee-destination/index.js +276 -0
  7. package/dist/cjs/domains/payee-destination/index.js.map +1 -0
  8. package/dist/cjs/domains/payouts/index.js +2 -2
  9. package/dist/cjs/domains/payouts/index.js.map +1 -1
  10. package/dist/cjs/domains/requests/index.js +3 -1
  11. package/dist/cjs/domains/requests/index.js.map +1 -1
  12. package/dist/cjs/index.js +342 -108
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/esm/domains/client-ids/index.d.mts +2 -2
  15. package/dist/esm/domains/client-ids/index.js +5 -5
  16. package/dist/esm/domains/client-ids/index.js.map +1 -1
  17. package/dist/esm/domains/currencies/index.d.mts +2 -2
  18. package/dist/esm/domains/currencies/index.js +19 -17
  19. package/dist/esm/domains/currencies/index.js.map +1 -1
  20. package/dist/esm/domains/payee-destination/index.d.mts +2 -0
  21. package/dist/esm/domains/payee-destination/index.js +274 -0
  22. package/dist/esm/domains/payee-destination/index.js.map +1 -0
  23. package/dist/esm/domains/payer/index.d.mts +2 -2
  24. package/dist/esm/domains/payouts/index.d.mts +2 -2
  25. package/dist/esm/domains/payouts/index.js +2 -2
  26. package/dist/esm/domains/payouts/index.js.map +1 -1
  27. package/dist/esm/domains/requests/index.d.mts +2 -2
  28. package/dist/esm/domains/requests/index.js +3 -1
  29. package/dist/esm/domains/requests/index.js.map +1 -1
  30. package/dist/esm/{index-BmWmfcnn.d.mts → index-B5uZTITr.d.mts} +1 -1
  31. package/dist/esm/index-BDVvifym.d.mts +31 -0
  32. package/dist/esm/{index-CNK36ZX5.d.mts → index-CTQxsAHa.d.mts} +1 -1
  33. package/dist/esm/{index-Q2g0D7V8.d.mts → index-CvPDycgF.d.mts} +1 -1
  34. package/dist/esm/{index-Cd7x0Hv-.d.mts → index-DzdJCXFj.d.mts} +1 -1
  35. package/dist/esm/{index-ziziGrHN.d.mts → index-y-zLkaVo.d.mts} +17 -16
  36. package/dist/esm/index.d.mts +88 -84
  37. package/dist/esm/index.js +342 -109
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/{openapi-types-CtUFCrk4.d.mts → openapi-types-D-zUdw-r.d.mts} +301 -42
  40. package/package.json +8 -3
package/dist/esm/index.js CHANGED
@@ -401,7 +401,7 @@ var nodeFetchAdapter = {
401
401
  let text;
402
402
  if (res.status !== 204) {
403
403
  try {
404
- if (contentType.includes("application/json")) {
404
+ if (contentType.toLowerCase().includes("json")) {
405
405
  data = await res.json();
406
406
  } else {
407
407
  text = await res.text();
@@ -639,15 +639,84 @@ function asRecord(value) {
639
639
  }
640
640
  return void 0;
641
641
  }
642
+ var REDACTED_VALUE = "<redacted>";
643
+ var REDACTED_HEADERS = /* @__PURE__ */ new Set(["x-api-key", "authorization", "cookie"]);
644
+ var RESPONSE_HEADER_ALLOWLIST = /* @__PURE__ */ new Set(["content-type", "content-length", "x-request-id", "x-correlation-id", "retry-after"]);
645
+ var LOG_TRUNCATION = {
646
+ maxDepth: 5,
647
+ maxKeys: 50,
648
+ maxArray: 50,
649
+ maxString: 2e3
650
+ };
651
+ function redactHeaders(headers) {
652
+ const out = {};
653
+ if (!headers) return out;
654
+ for (const [key, value] of Object.entries(headers)) {
655
+ const lower = key.toLowerCase();
656
+ out[lower] = REDACTED_HEADERS.has(lower) ? REDACTED_VALUE : value;
657
+ }
658
+ return out;
659
+ }
660
+ function pickResponseHeaders(headers) {
661
+ const out = {};
662
+ for (const [key, value] of Object.entries(headers)) {
663
+ const lower = key.toLowerCase();
664
+ if (RESPONSE_HEADER_ALLOWLIST.has(lower)) {
665
+ out[lower] = value;
666
+ }
667
+ }
668
+ return out;
669
+ }
670
+ function truncateStringForLogs(value) {
671
+ return value.length > LOG_TRUNCATION.maxString ? `${value.slice(0, LOG_TRUNCATION.maxString)}\u2026(truncated)` : value;
672
+ }
673
+ function truncateArrayForLogs(value, depth) {
674
+ const trimmed = value.slice(0, LOG_TRUNCATION.maxArray).map((item) => truncateForLogs(item, depth + 1));
675
+ return value.length > LOG_TRUNCATION.maxArray ? [...trimmed, "[truncated:max-array]"] : trimmed;
676
+ }
677
+ function truncateObjectForLogs(value, depth) {
678
+ const entries = Object.entries(value);
679
+ const sliced = entries.slice(0, LOG_TRUNCATION.maxKeys);
680
+ const out = {};
681
+ for (const [key, v] of sliced) {
682
+ out[key] = truncateForLogs(v, depth + 1);
683
+ }
684
+ if (entries.length > LOG_TRUNCATION.maxKeys) {
685
+ out["__truncated__"] = "max-keys";
686
+ }
687
+ return out;
688
+ }
689
+ function truncateForLogs(value, depth = 0) {
690
+ if (value == null) return value;
691
+ if (typeof value === "string") return truncateStringForLogs(value);
692
+ if (typeof value === "number" || typeof value === "boolean") return value;
693
+ if (typeof value === "bigint") return value.toString();
694
+ if (typeof value === "symbol") return value.toString();
695
+ if (typeof value === "function") return "[function]";
696
+ if (depth >= LOG_TRUNCATION.maxDepth) return "[truncated:max-depth]";
697
+ if (Array.isArray(value)) return truncateArrayForLogs(value, depth);
698
+ if (typeof value === "object") return truncateObjectForLogs(value, depth);
699
+ return "[unserializable]";
700
+ }
701
+ function resolveFallbackMessage(res) {
702
+ const raw = typeof res.text === "string" ? res.text.trim() : "";
703
+ if (!raw) {
704
+ return `HTTP ${String(res.status)}`;
705
+ }
706
+ if (raw.startsWith("<") || raw.length > 200) {
707
+ return `HTTP ${String(res.status)}`;
708
+ }
709
+ return raw;
710
+ }
642
711
  function mapToError(res, req, validation) {
643
712
  const operationId = req.meta?.operationId;
644
713
  const rawPayload = asRecord(res.data);
645
714
  let payload = rawPayload;
646
- if (validation.errors && operationId) {
715
+ if (validation.errors && operationId && rawPayload) {
647
716
  const schemaKey = { operationId, kind: "response", status: res.status };
648
717
  const parsed = parseWithRegistry({
649
718
  key: schemaKey,
650
- value: rawPayload ?? res.data,
719
+ value: rawPayload,
651
720
  description: `Error response for ${operationId}`,
652
721
  skipOnMissingSchema: true
653
722
  });
@@ -656,11 +725,25 @@ function mapToError(res, req, validation) {
656
725
  }
657
726
  payload = asRecord(parsed.data);
658
727
  }
728
+ const captureErrorContext = req.meta?.captureErrorContext === true;
659
729
  const error = buildRequestApiError({
660
730
  payload,
661
731
  status: res.status,
662
732
  headers: res.headers,
663
- fallbackMessage: res.text ?? `HTTP ${String(res.status)}`
733
+ fallbackMessage: resolveFallbackMessage(res),
734
+ meta: captureErrorContext ? {
735
+ request: {
736
+ method: req.method,
737
+ url: req.url,
738
+ headers: redactHeaders(req.headers),
739
+ hasBody: req.body != null
740
+ },
741
+ response: {
742
+ status: res.status,
743
+ headers: pickResponseHeaders(res.headers),
744
+ body: truncateForLogs(res.data ?? res.text)
745
+ }
746
+ } : void 0
664
747
  });
665
748
  throw error;
666
749
  }
@@ -746,7 +829,7 @@ var browserFetchAdapter = {
746
829
  let text;
747
830
  if (res.status !== 204) {
748
831
  try {
749
- if (contentType.includes("application/json")) {
832
+ if (contentType.toLowerCase().includes("json")) {
750
833
  data = await res.json();
751
834
  } else {
752
835
  text = await res.text();
@@ -869,14 +952,14 @@ function buildPath(template, params) {
869
952
 
870
953
  // src/domains/client-ids/client-ids.facade.ts
871
954
  function createClientIdsApi(http) {
872
- const PATH_BASE = "/v2/client-ids";
955
+ const PATH_BASE2 = "/v2/client-ids";
873
956
  return {
874
957
  async list() {
875
958
  const OP = "ClientIdV2Controller_findAll_v2";
876
959
  return requestJson(http, {
877
960
  operationId: OP,
878
961
  method: "GET",
879
- path: PATH_BASE,
962
+ path: PATH_BASE2,
880
963
  schemaKey: { operationId: OP, kind: "response", status: 200 },
881
964
  description: "List client IDs"
882
965
  });
@@ -886,7 +969,7 @@ function createClientIdsApi(http) {
886
969
  return requestJson(http, {
887
970
  operationId: OP,
888
971
  method: "POST",
889
- path: PATH_BASE,
972
+ path: PATH_BASE2,
890
973
  body,
891
974
  requestSchemaKey: { operationId: OP, kind: "request", variant: "application/json" },
892
975
  schemaKey: { operationId: OP, kind: "response", status: 201 },
@@ -894,7 +977,7 @@ function createClientIdsApi(http) {
894
977
  });
895
978
  },
896
979
  async findOne(id) {
897
- const path = buildPath(`${PATH_BASE}/{id}`, { id });
980
+ const path = buildPath(`${PATH_BASE2}/{id}`, { id });
898
981
  const OP = "ClientIdV2Controller_findOne_v2";
899
982
  return requestJson(http, {
900
983
  operationId: OP,
@@ -905,7 +988,7 @@ function createClientIdsApi(http) {
905
988
  });
906
989
  },
907
990
  async update(id, body) {
908
- const path = buildPath(`${PATH_BASE}/{id}`, { id });
991
+ const path = buildPath(`${PATH_BASE2}/{id}`, { id });
909
992
  const OP = "ClientIdV2Controller_update_v2";
910
993
  return requestJson(http, {
911
994
  operationId: OP,
@@ -918,7 +1001,7 @@ function createClientIdsApi(http) {
918
1001
  });
919
1002
  },
920
1003
  async revoke(id) {
921
- const path = buildPath(`${PATH_BASE}/{id}`, { id });
1004
+ const path = buildPath(`${PATH_BASE2}/{id}`, { id });
922
1005
  const OP = "ClientIdV2Controller_delete_v2";
923
1006
  await requestVoid(http, {
924
1007
  operationId: OP,
@@ -962,9 +1045,9 @@ var ClientIdV2Controller_findAll_v2_401 = ErrorEnvelopeSchema;
962
1045
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_findAll_v2", kind: "response", status: 401 }, schema: ClientIdV2Controller_findAll_v2_401 });
963
1046
  var ClientIdV2Controller_findAll_v2_429 = ErrorEnvelopeSchema;
964
1047
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_findAll_v2", kind: "response", status: 429 }, schema: ClientIdV2Controller_findAll_v2_429 });
965
- var ClientIdV2Controller_create_v2_Request = z.object({ "label": z.string(), "allowedDomains": z.array(z.string()), "feePercentage": z.string().optional(), "feeAddress": z.string().optional() }).passthrough();
1048
+ var ClientIdV2Controller_create_v2_Request = z.object({ "label": z.string(), "allowedDomains": z.array(z.string()), "feePercentage": z.string().optional(), "feeAddress": z.string().optional(), "operatorWalletAddress": z.string().optional(), "defaultPreApprovalExpiry": z.number().optional(), "defaultAuthorizationExpiry": z.number().optional() }).passthrough();
966
1049
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_create_v2", kind: "request", variant: "application/json" }, schema: ClientIdV2Controller_create_v2_Request });
967
- var ClientIdV2Controller_create_v2_201 = z.object({ "id": z.string().optional(), "clientId": z.string().optional(), "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "status": z.string().optional(), "createdAt": z.string().optional() }).passthrough();
1050
+ var ClientIdV2Controller_create_v2_201 = z.object({ "id": z.string().optional(), "clientId": z.string().optional(), "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "operatorWalletAddress": z.string().nullable().optional(), "defaultPreApprovalExpiry": z.number().nullable().optional(), "defaultAuthorizationExpiry": z.number().nullable().optional(), "status": z.string().optional(), "createdAt": z.string().optional() }).passthrough();
968
1051
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_create_v2", kind: "response", status: 201 }, schema: ClientIdV2Controller_create_v2_201 });
969
1052
  var ClientIdV2Controller_create_v2_400 = ErrorEnvelopeSchema;
970
1053
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_create_v2", kind: "response", status: 400 }, schema: ClientIdV2Controller_create_v2_400 });
@@ -972,7 +1055,7 @@ var ClientIdV2Controller_create_v2_401 = ErrorEnvelopeSchema;
972
1055
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_create_v2", kind: "response", status: 401 }, schema: ClientIdV2Controller_create_v2_401 });
973
1056
  var ClientIdV2Controller_create_v2_429 = ErrorEnvelopeSchema;
974
1057
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_create_v2", kind: "response", status: 429 }, schema: ClientIdV2Controller_create_v2_429 });
975
- var ClientIdV2Controller_findOne_v2_200 = z.object({ "id": z.string().optional(), "clientId": z.string().optional(), "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "status": z.string().optional(), "createdAt": z.string().optional(), "updatedAt": z.string().optional(), "lastUsedAt": z.string().nullable().optional() }).passthrough();
1058
+ var ClientIdV2Controller_findOne_v2_200 = z.object({ "id": z.string().optional(), "clientId": z.string().optional(), "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "operatorWalletAddress": z.string().nullable().optional(), "defaultPreApprovalExpiry": z.number().nullable().optional(), "defaultAuthorizationExpiry": z.number().nullable().optional(), "status": z.string().optional(), "createdAt": z.string().optional(), "updatedAt": z.string().optional(), "lastUsedAt": z.string().nullable().optional() }).passthrough();
976
1059
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_findOne_v2", kind: "response", status: 200 }, schema: ClientIdV2Controller_findOne_v2_200 });
977
1060
  var ClientIdV2Controller_findOne_v2_401 = ErrorEnvelopeSchema;
978
1061
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_findOne_v2", kind: "response", status: 401 }, schema: ClientIdV2Controller_findOne_v2_401 });
@@ -980,9 +1063,9 @@ var ClientIdV2Controller_findOne_v2_404 = ErrorEnvelopeSchema;
980
1063
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_findOne_v2", kind: "response", status: 404 }, schema: ClientIdV2Controller_findOne_v2_404 });
981
1064
  var ClientIdV2Controller_findOne_v2_429 = ErrorEnvelopeSchema;
982
1065
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_findOne_v2", kind: "response", status: 429 }, schema: ClientIdV2Controller_findOne_v2_429 });
983
- var ClientIdV2Controller_update_v2_Request = z.object({ "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "status": z.enum(["active", "inactive", "revoked"]).optional() }).passthrough();
1066
+ var ClientIdV2Controller_update_v2_Request = z.object({ "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "operatorWalletAddress": z.string().nullable().optional(), "defaultPreApprovalExpiry": z.number().nullable().optional(), "defaultAuthorizationExpiry": z.number().nullable().optional(), "status": z.enum(["active", "inactive", "revoked"]).optional() }).passthrough();
984
1067
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_update_v2", kind: "request", variant: "application/json" }, schema: ClientIdV2Controller_update_v2_Request });
985
- var ClientIdV2Controller_update_v2_200 = z.object({ "id": z.string().optional(), "clientId": z.string().optional(), "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "status": z.string().optional(), "updatedAt": z.string().optional() }).passthrough();
1068
+ var ClientIdV2Controller_update_v2_200 = z.object({ "id": z.string().optional(), "clientId": z.string().optional(), "label": z.string().optional(), "allowedDomains": z.array(z.string()).optional(), "feePercentage": z.string().nullable().optional(), "feeAddress": z.string().nullable().optional(), "operatorWalletAddress": z.string().nullable().optional(), "defaultPreApprovalExpiry": z.number().nullable().optional(), "defaultAuthorizationExpiry": z.number().nullable().optional(), "status": z.string().optional(), "updatedAt": z.string().optional() }).passthrough();
986
1069
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_update_v2", kind: "response", status: 200 }, schema: ClientIdV2Controller_update_v2_200 });
987
1070
  var ClientIdV2Controller_update_v2_400 = ErrorEnvelopeSchema;
988
1071
  schemaRegistry.register({ key: { operationId: "ClientIdV2Controller_update_v2", kind: "response", status: 400 }, schema: ClientIdV2Controller_update_v2_400 });
@@ -1069,7 +1152,7 @@ var OP_LIST = "CurrenciesV2Controller_getNetworkTokens_v2";
1069
1152
  var OP_CONVERSION_ROUTES = "CurrenciesV2Controller_getConversionRoutes_v2";
1070
1153
  var CurrencyTokenSchema = z.object({
1071
1154
  id: z.string(),
1072
- name: z.string(),
1155
+ name: z.string().optional(),
1073
1156
  symbol: z.string(),
1074
1157
  decimals: z.number(),
1075
1158
  address: z.string().optional(),
@@ -1183,7 +1266,8 @@ function createCurrenciesApi(http) {
1183
1266
  description: DESCRIPTION_LIST2,
1184
1267
  signal: options?.signal,
1185
1268
  timeoutMs: options?.timeoutMs,
1186
- validation: options?.validation
1269
+ validation: options?.validation,
1270
+ meta: options?.meta
1187
1271
  });
1188
1272
  const parsed = parseWithSchema({
1189
1273
  schema: CurrenciesListSchema,
@@ -1205,7 +1289,8 @@ function createCurrenciesApi(http) {
1205
1289
  description: DESCRIPTION_CONVERSION_ROUTES2,
1206
1290
  signal: options?.signal,
1207
1291
  timeoutMs: options?.timeoutMs,
1208
- validation: options?.validation
1292
+ validation: options?.validation,
1293
+ meta: options?.meta
1209
1294
  });
1210
1295
  const parsed = parseWithSchema({
1211
1296
  schema: ConversionRoutesSchema,
@@ -1293,7 +1378,7 @@ var PayV1Controller_payRequest_v1_404 = ErrorEnvelopeSchema3;
1293
1378
  schemaRegistry.register({ key: { operationId: "PayV1Controller_payRequest_v1", kind: "response", status: 404 }, schema: PayV1Controller_payRequest_v1_404 });
1294
1379
  var PayV1Controller_payRequest_v1_429 = ErrorEnvelopeSchema3;
1295
1380
  schemaRegistry.register({ key: { operationId: "PayV1Controller_payRequest_v1", kind: "response", status: 429 }, schema: PayV1Controller_payRequest_v1_429 });
1296
- var PayoutV2Controller_payRequest_v2_Request = z.object({ "payee": z.string(), "amount": z.string(), "invoiceCurrency": z.string(), "paymentCurrency": z.string(), "feePercentage": z.string().optional(), "feeAddress": z.string().optional(), "recurrence": z.object({ "startDate": z.string(), "frequency": z.enum(["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]), "totalPayments": z.number(), "payer": z.string() }).passthrough().optional(), "payerWallet": z.string().optional(), "customerInfo": z.object({ "firstName": z.string().optional(), "lastName": z.string().optional(), "email": z.string().optional(), "address": z.object({ "street": z.string().optional(), "city": z.string().optional(), "state": z.string().optional(), "postalCode": z.string().optional(), "country": z.string().optional() }).passthrough().optional() }).passthrough().optional(), "reference": z.string().optional() }).passthrough();
1381
+ var PayoutV2Controller_payRequest_v2_Request = z.object({ "payee": z.string(), "amount": z.string(), "invoiceCurrency": z.string(), "paymentCurrency": z.string(), "feePercentage": z.string().optional(), "feeAddress": z.string().optional(), "recurrence": z.object({ "startDate": z.string(), "frequency": z.enum(["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]), "totalPayments": z.number(), "payer": z.string() }).passthrough().optional(), "payerWallet": z.string().optional(), "payerAddress": z.string().optional(), "customerInfo": z.object({ "firstName": z.string().optional(), "lastName": z.string().optional(), "email": z.string().optional(), "address": z.object({ "street": z.string().optional(), "city": z.string().optional(), "state": z.string().optional(), "postalCode": z.string().optional(), "country": z.string().optional() }).passthrough().optional() }).passthrough().optional(), "reference": z.string().optional() }).passthrough();
1297
1382
  schemaRegistry.register({ key: { operationId: "PayoutV2Controller_payRequest_v2", kind: "request", variant: "application/json" }, schema: PayoutV2Controller_payRequest_v2_Request });
1298
1383
  var PayoutV2Controller_payRequest_v2_201 = z.object({ "requestId": z.string() }).passthrough();
1299
1384
  schemaRegistry.register({ key: { operationId: "PayoutV2Controller_payRequest_v2", kind: "response", status: 201 }, schema: PayoutV2Controller_payRequest_v2_201 });
@@ -1301,7 +1386,7 @@ var PayoutV2Controller_payRequest_v2_404 = ErrorEnvelopeSchema3;
1301
1386
  schemaRegistry.register({ key: { operationId: "PayoutV2Controller_payRequest_v2", kind: "response", status: 404 }, schema: PayoutV2Controller_payRequest_v2_404 });
1302
1387
  var PayoutV2Controller_payRequest_v2_429 = ErrorEnvelopeSchema3;
1303
1388
  schemaRegistry.register({ key: { operationId: "PayoutV2Controller_payRequest_v2", kind: "response", status: 429 }, schema: PayoutV2Controller_payRequest_v2_429 });
1304
- var PayoutV2Controller_payBatchRequest_v2_Request = z.object({ "requests": z.array(z.object({ "payee": z.string(), "amount": z.string(), "invoiceCurrency": z.string(), "paymentCurrency": z.string() }).passthrough()).optional(), "requestIds": z.array(z.string()).optional(), "payer": z.string().optional() }).passthrough();
1389
+ var PayoutV2Controller_payBatchRequest_v2_Request = z.object({ "requests": z.array(z.object({ "payee": z.string(), "amount": z.string(), "invoiceCurrency": z.string(), "paymentCurrency": z.string() }).passthrough()).optional(), "requestIds": z.array(z.string()).optional(), "payer": z.string().optional(), "feePercentage": z.string().optional(), "feeAddress": z.string().optional() }).passthrough();
1305
1390
  schemaRegistry.register({ key: { operationId: "PayoutV2Controller_payBatchRequest_v2", kind: "request", variant: "application/json" }, schema: PayoutV2Controller_payBatchRequest_v2_Request });
1306
1391
  var PayoutV2Controller_payBatchRequest_v2_201 = z.object({ "ERC20ApprovalTransactions": z.array(z.object({ "data": z.string(), "to": z.string(), "value": z.number() }).passthrough()).optional(), "ERC20BatchPaymentTransaction": z.object({ "data": z.string(), "to": z.string(), "value": z.object({ "type": z.enum(["BigNumber"]), "hex": z.string() }).passthrough() }).passthrough().optional(), "ETHBatchPaymentTransaction": z.object({ "data": z.string(), "to": z.string(), "value": z.object({ "type": z.enum(["BigNumber"]), "hex": z.string() }).passthrough() }).passthrough().optional() }).passthrough();
1307
1392
  schemaRegistry.register({ key: { operationId: "PayoutV2Controller_payBatchRequest_v2", kind: "response", status: 201 }, schema: PayoutV2Controller_payBatchRequest_v2_201 });
@@ -1345,6 +1430,151 @@ function createPayApi(http) {
1345
1430
  };
1346
1431
  }
1347
1432
 
1433
+ // src/domains/payee-destination/index.ts
1434
+ var payee_destination_exports = {};
1435
+ __export(payee_destination_exports, {
1436
+ createPayeeDestinationApi: () => createPayeeDestinationApi
1437
+ });
1438
+
1439
+ // src/domains/payee-destination/payee-destination.facade.ts
1440
+ var OP_GET_SIGNING_DATA = "PayeeDestinationController_getSigningData_v2";
1441
+ var OP_GET_ACTIVE = "PayeeDestinationController_getActivePayeeDestination_v2";
1442
+ var OP_CREATE = "PayeeDestinationController_createPayeeDestination_v2";
1443
+ var OP_GET_BY_ID = "PayeeDestinationController_getPayeeDestination_v2";
1444
+ var OP_DEACTIVATE = "PayeeDestinationController_deactivatePayeeDestination_v2";
1445
+ var PATH_BASE = "/v2/payee-destination";
1446
+ function createPayeeDestinationApi(http) {
1447
+ return {
1448
+ async getSigningData(query, options) {
1449
+ return requestJson(http, {
1450
+ operationId: OP_GET_SIGNING_DATA,
1451
+ method: "GET",
1452
+ path: `${PATH_BASE}/signing-data`,
1453
+ query,
1454
+ schemaKey: { operationId: OP_GET_SIGNING_DATA, kind: "response", status: 200 },
1455
+ description: "Get payee destination signing data",
1456
+ signal: options?.signal,
1457
+ timeoutMs: options?.timeoutMs,
1458
+ validation: options?.validation,
1459
+ meta: options?.meta
1460
+ });
1461
+ },
1462
+ async getActive(walletAddress, options) {
1463
+ return requestJson(http, {
1464
+ operationId: OP_GET_ACTIVE,
1465
+ method: "GET",
1466
+ path: PATH_BASE,
1467
+ query: { walletAddress },
1468
+ schemaKey: { operationId: OP_GET_ACTIVE, kind: "response", status: 200 },
1469
+ description: "Get active payee destination",
1470
+ signal: options?.signal,
1471
+ timeoutMs: options?.timeoutMs,
1472
+ validation: options?.validation,
1473
+ meta: options?.meta
1474
+ });
1475
+ },
1476
+ async create(body, options) {
1477
+ return requestJson(http, {
1478
+ operationId: OP_CREATE,
1479
+ method: "POST",
1480
+ path: PATH_BASE,
1481
+ body,
1482
+ requestSchemaKey: { operationId: OP_CREATE, kind: "request", variant: "application/json" },
1483
+ schemaKey: { operationId: OP_CREATE, kind: "response", status: 201 },
1484
+ description: "Create payee destination",
1485
+ signal: options?.signal,
1486
+ timeoutMs: options?.timeoutMs,
1487
+ validation: options?.validation,
1488
+ meta: options?.meta
1489
+ });
1490
+ },
1491
+ async getById(destinationId, options) {
1492
+ return requestJson(http, {
1493
+ operationId: OP_GET_BY_ID,
1494
+ method: "GET",
1495
+ path: `${PATH_BASE}/${encodeURIComponent(destinationId)}`,
1496
+ schemaKey: { operationId: OP_GET_BY_ID, kind: "response", status: 200 },
1497
+ description: "Get payee destination by ID",
1498
+ signal: options?.signal,
1499
+ timeoutMs: options?.timeoutMs,
1500
+ validation: options?.validation,
1501
+ meta: options?.meta
1502
+ });
1503
+ },
1504
+ async deactivate(destinationId, body, options) {
1505
+ return requestJson(http, {
1506
+ operationId: OP_DEACTIVATE,
1507
+ method: "DELETE",
1508
+ path: `${PATH_BASE}/${encodeURIComponent(destinationId)}`,
1509
+ body,
1510
+ requestSchemaKey: { operationId: OP_DEACTIVATE, kind: "request", variant: "application/json" },
1511
+ schemaKey: { operationId: OP_DEACTIVATE, kind: "response", status: 200 },
1512
+ description: "Deactivate payee destination",
1513
+ signal: options?.signal,
1514
+ timeoutMs: options?.timeoutMs,
1515
+ validation: options?.validation,
1516
+ meta: options?.meta
1517
+ });
1518
+ }
1519
+ };
1520
+ }
1521
+ var ErrorDetailSchema4 = z.object({
1522
+ message: z.string(),
1523
+ code: z.string().optional(),
1524
+ field: z.string().optional(),
1525
+ source: z.object({
1526
+ pointer: z.string().optional(),
1527
+ parameter: z.string().optional()
1528
+ }).passthrough().optional(),
1529
+ meta: z.record(z.unknown()).optional()
1530
+ }).passthrough();
1531
+ var ErrorEnvelopeSchema4 = z.object({
1532
+ status: z.number().optional(),
1533
+ statusCode: z.number().optional(),
1534
+ code: z.string().optional(),
1535
+ error: z.string().optional(),
1536
+ message: z.union([
1537
+ z.string(),
1538
+ z.array(z.union([z.string(), ErrorDetailSchema4])),
1539
+ ErrorDetailSchema4
1540
+ ]).optional(),
1541
+ detail: z.unknown().optional(),
1542
+ errors: z.array(ErrorDetailSchema4).optional(),
1543
+ requestId: z.string().optional(),
1544
+ correlationId: z.string().optional(),
1545
+ retryAfter: z.union([z.number(), z.string()]).optional(),
1546
+ retryAfterMs: z.number().optional(),
1547
+ meta: z.record(z.unknown()).optional()
1548
+ }).passthrough();
1549
+ var PayeeDestinationController_getSigningData_v2_200 = z.unknown();
1550
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getSigningData_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_getSigningData_v2_200 });
1551
+ var PayeeDestinationController_getSigningData_v2_429 = ErrorEnvelopeSchema4;
1552
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getSigningData_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_getSigningData_v2_429 });
1553
+ var PayeeDestinationController_getActivePayeeDestination_v2_200 = z.unknown();
1554
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getActivePayeeDestination_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_getActivePayeeDestination_v2_200 });
1555
+ var PayeeDestinationController_getActivePayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1556
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getActivePayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_getActivePayeeDestination_v2_429 });
1557
+ var PayeeDestinationController_createPayeeDestination_v2_Request = z.object({ "signature": z.string(), "nonce": z.string() }).passthrough();
1558
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_createPayeeDestination_v2", kind: "request", variant: "application/json" }, schema: PayeeDestinationController_createPayeeDestination_v2_Request });
1559
+ var PayeeDestinationController_createPayeeDestination_v2_201 = z.unknown();
1560
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_createPayeeDestination_v2", kind: "response", status: 201 }, schema: PayeeDestinationController_createPayeeDestination_v2_201 });
1561
+ var PayeeDestinationController_createPayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1562
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_createPayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_createPayeeDestination_v2_429 });
1563
+ var PayeeDestinationController_getPayeeDestination_v2_200 = z.unknown();
1564
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getPayeeDestination_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_getPayeeDestination_v2_200 });
1565
+ var PayeeDestinationController_getPayeeDestination_v2_404 = ErrorEnvelopeSchema4;
1566
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getPayeeDestination_v2", kind: "response", status: 404 }, schema: PayeeDestinationController_getPayeeDestination_v2_404 });
1567
+ var PayeeDestinationController_getPayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1568
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_getPayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_getPayeeDestination_v2_429 });
1569
+ var PayeeDestinationController_deactivatePayeeDestination_v2_Request = z.object({ "signature": z.string(), "nonce": z.string() }).passthrough();
1570
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "request", variant: "application/json" }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_Request });
1571
+ var PayeeDestinationController_deactivatePayeeDestination_v2_200 = z.unknown();
1572
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "response", status: 200 }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_200 });
1573
+ var PayeeDestinationController_deactivatePayeeDestination_v2_400 = ErrorEnvelopeSchema4;
1574
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "response", status: 400 }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_400 });
1575
+ var PayeeDestinationController_deactivatePayeeDestination_v2_429 = ErrorEnvelopeSchema4;
1576
+ schemaRegistry.register({ key: { operationId: "PayeeDestinationController_deactivatePayeeDestination_v2", kind: "response", status: 429 }, schema: PayeeDestinationController_deactivatePayeeDestination_v2_429 });
1577
+
1348
1578
  // src/domains/payer/index.ts
1349
1579
  var payer_exports = {};
1350
1580
  __export(payer_exports, {
@@ -1444,7 +1674,7 @@ function createPayerV1Api(http) {
1444
1674
  }
1445
1675
  };
1446
1676
  }
1447
- var ErrorDetailSchema4 = z.object({
1677
+ var ErrorDetailSchema5 = z.object({
1448
1678
  message: z.string(),
1449
1679
  code: z.string().optional(),
1450
1680
  field: z.string().optional(),
@@ -1454,18 +1684,18 @@ var ErrorDetailSchema4 = z.object({
1454
1684
  }).passthrough().optional(),
1455
1685
  meta: z.record(z.unknown()).optional()
1456
1686
  }).passthrough();
1457
- var ErrorEnvelopeSchema4 = z.object({
1687
+ var ErrorEnvelopeSchema5 = z.object({
1458
1688
  status: z.number().optional(),
1459
1689
  statusCode: z.number().optional(),
1460
1690
  code: z.string().optional(),
1461
1691
  error: z.string().optional(),
1462
1692
  message: z.union([
1463
1693
  z.string(),
1464
- z.array(z.union([z.string(), ErrorDetailSchema4])),
1465
- ErrorDetailSchema4
1694
+ z.array(z.union([z.string(), ErrorDetailSchema5])),
1695
+ ErrorDetailSchema5
1466
1696
  ]).optional(),
1467
1697
  detail: z.unknown().optional(),
1468
- errors: z.array(ErrorDetailSchema4).optional(),
1698
+ errors: z.array(ErrorDetailSchema5).optional(),
1469
1699
  requestId: z.string().optional(),
1470
1700
  correlationId: z.string().optional(),
1471
1701
  retryAfter: z.union([z.number(), z.string()]).optional(),
@@ -1478,19 +1708,19 @@ var PayerV1Controller_getComplianceData_v1_200 = z.object({ "agreementUrl": z.st
1478
1708
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 200 }, schema: PayerV1Controller_getComplianceData_v1_200 });
1479
1709
  var PayerV1Controller_getComplianceData_v1_400 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1480
1710
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 400 }, schema: PayerV1Controller_getComplianceData_v1_400 });
1481
- var PayerV1Controller_getComplianceData_v1_401 = ErrorEnvelopeSchema4;
1711
+ var PayerV1Controller_getComplianceData_v1_401 = ErrorEnvelopeSchema5;
1482
1712
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 401 }, schema: PayerV1Controller_getComplianceData_v1_401 });
1483
1713
  var PayerV1Controller_getComplianceData_v1_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1484
1714
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 404 }, schema: PayerV1Controller_getComplianceData_v1_404 });
1485
- var PayerV1Controller_getComplianceData_v1_429 = ErrorEnvelopeSchema4;
1715
+ var PayerV1Controller_getComplianceData_v1_429 = ErrorEnvelopeSchema5;
1486
1716
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceData_v1", kind: "response", status: 429 }, schema: PayerV1Controller_getComplianceData_v1_429 });
1487
1717
  var PayerV1Controller_getComplianceStatus_v1_200 = z.object({ "kycStatus": z.string().optional(), "agreementStatus": z.string().optional(), "isCompliant": z.boolean().optional(), "userId": z.string().optional() }).passthrough();
1488
1718
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 200 }, schema: PayerV1Controller_getComplianceStatus_v1_200 });
1489
- var PayerV1Controller_getComplianceStatus_v1_401 = ErrorEnvelopeSchema4;
1719
+ var PayerV1Controller_getComplianceStatus_v1_401 = ErrorEnvelopeSchema5;
1490
1720
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 401 }, schema: PayerV1Controller_getComplianceStatus_v1_401 });
1491
1721
  var PayerV1Controller_getComplianceStatus_v1_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1492
1722
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 404 }, schema: PayerV1Controller_getComplianceStatus_v1_404 });
1493
- var PayerV1Controller_getComplianceStatus_v1_429 = ErrorEnvelopeSchema4;
1723
+ var PayerV1Controller_getComplianceStatus_v1_429 = ErrorEnvelopeSchema5;
1494
1724
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getComplianceStatus_v1", kind: "response", status: 429 }, schema: PayerV1Controller_getComplianceStatus_v1_429 });
1495
1725
  var PayerV1Controller_updateComplianceStatus_v1_Request = z.object({ "agreementCompleted": z.boolean() }).passthrough();
1496
1726
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "request", variant: "application/json" }, schema: PayerV1Controller_updateComplianceStatus_v1_Request });
@@ -1498,19 +1728,19 @@ var PayerV1Controller_updateComplianceStatus_v1_200 = z.object({ "success": z.bo
1498
1728
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 200 }, schema: PayerV1Controller_updateComplianceStatus_v1_200 });
1499
1729
  var PayerV1Controller_updateComplianceStatus_v1_400 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1500
1730
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 400 }, schema: PayerV1Controller_updateComplianceStatus_v1_400 });
1501
- var PayerV1Controller_updateComplianceStatus_v1_401 = ErrorEnvelopeSchema4;
1731
+ var PayerV1Controller_updateComplianceStatus_v1_401 = ErrorEnvelopeSchema5;
1502
1732
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 401 }, schema: PayerV1Controller_updateComplianceStatus_v1_401 });
1503
1733
  var PayerV1Controller_updateComplianceStatus_v1_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1504
1734
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 404 }, schema: PayerV1Controller_updateComplianceStatus_v1_404 });
1505
- var PayerV1Controller_updateComplianceStatus_v1_429 = ErrorEnvelopeSchema4;
1735
+ var PayerV1Controller_updateComplianceStatus_v1_429 = ErrorEnvelopeSchema5;
1506
1736
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_updateComplianceStatus_v1", kind: "response", status: 429 }, schema: PayerV1Controller_updateComplianceStatus_v1_429 });
1507
1737
  var PayerV1Controller_getPaymentDetails_v1_200 = z.object({ "paymentDetails": z.array(z.object({ "id": z.string().optional(), "userId": z.string().optional(), "bankName": z.string().optional(), "accountName": z.string().optional(), "beneficiaryType": z.string().optional(), "accountNumber": z.string().optional(), "routingNumber": z.string().optional(), "currency": z.string().optional(), "status": z.string().optional(), "rails": z.string().optional() }).passthrough()).optional() }).passthrough();
1508
1738
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 200 }, schema: PayerV1Controller_getPaymentDetails_v1_200 });
1509
- var PayerV1Controller_getPaymentDetails_v1_401 = ErrorEnvelopeSchema4;
1739
+ var PayerV1Controller_getPaymentDetails_v1_401 = ErrorEnvelopeSchema5;
1510
1740
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 401 }, schema: PayerV1Controller_getPaymentDetails_v1_401 });
1511
1741
  var PayerV1Controller_getPaymentDetails_v1_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1512
1742
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 404 }, schema: PayerV1Controller_getPaymentDetails_v1_404 });
1513
- var PayerV1Controller_getPaymentDetails_v1_429 = ErrorEnvelopeSchema4;
1743
+ var PayerV1Controller_getPaymentDetails_v1_429 = ErrorEnvelopeSchema5;
1514
1744
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_getPaymentDetails_v1", kind: "response", status: 429 }, schema: PayerV1Controller_getPaymentDetails_v1_429 });
1515
1745
  var PayerV1Controller_createPaymentDetails_v1_Request = z.object({ "bankName": z.string(), "accountName": z.string(), "accountNumber": z.string().optional(), "routingNumber": z.string().optional(), "beneficiaryType": z.enum(["individual", "business"]), "currency": z.string(), "addressLine1": z.string(), "addressLine2": z.string().optional(), "city": z.string(), "state": z.string().optional(), "country": z.string(), "dateOfBirth": z.string(), "postalCode": z.string(), "rails": z.enum(["local", "swift", "wire"]).optional(), "sortCode": z.string().optional(), "iban": z.string().optional(), "swiftBic": z.string().optional(), "documentNumber": z.string().optional(), "documentType": z.string().optional(), "accountType": z.enum(["checking", "savings"]).optional(), "ribNumber": z.string().optional(), "bsbNumber": z.string().optional(), "ncc": z.string().optional(), "branchCode": z.string().optional(), "bankCode": z.string().optional(), "ifsc": z.string().optional() }).passthrough();
1516
1746
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "request", variant: "application/json" }, schema: PayerV1Controller_createPaymentDetails_v1_Request });
@@ -1518,11 +1748,11 @@ var PayerV1Controller_createPaymentDetails_v1_201 = z.object({ "payment_detail":
1518
1748
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 201 }, schema: PayerV1Controller_createPaymentDetails_v1_201 });
1519
1749
  var PayerV1Controller_createPaymentDetails_v1_400 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1520
1750
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 400 }, schema: PayerV1Controller_createPaymentDetails_v1_400 });
1521
- var PayerV1Controller_createPaymentDetails_v1_401 = ErrorEnvelopeSchema4;
1751
+ var PayerV1Controller_createPaymentDetails_v1_401 = ErrorEnvelopeSchema5;
1522
1752
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 401 }, schema: PayerV1Controller_createPaymentDetails_v1_401 });
1523
1753
  var PayerV1Controller_createPaymentDetails_v1_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1524
1754
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 404 }, schema: PayerV1Controller_createPaymentDetails_v1_404 });
1525
- var PayerV1Controller_createPaymentDetails_v1_429 = ErrorEnvelopeSchema4;
1755
+ var PayerV1Controller_createPaymentDetails_v1_429 = ErrorEnvelopeSchema5;
1526
1756
  schemaRegistry.register({ key: { operationId: "PayerV1Controller_createPaymentDetails_v1", kind: "response", status: 429 }, schema: PayerV1Controller_createPaymentDetails_v1_429 });
1527
1757
  var PayerV2Controller_getComplianceData_v2_Request = z.object({ "clientUserId": z.string(), "email": z.string(), "firstName": z.string(), "lastName": z.string(), "beneficiaryType": z.enum(["individual", "business"]), "companyName": z.string().optional(), "dateOfBirth": z.string(), "addressLine1": z.string(), "addressLine2": z.string().optional(), "city": z.string(), "state": z.string(), "postcode": z.string(), "country": z.string(), "nationality": z.string(), "phone": z.string(), "ssn": z.string(), "sourceOfFunds": z.string().optional(), "businessActivity": z.string().optional() }).passthrough();
1528
1758
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "request", variant: "application/json" }, schema: PayerV2Controller_getComplianceData_v2_Request });
@@ -1530,19 +1760,19 @@ var PayerV2Controller_getComplianceData_v2_200 = z.object({ "agreementUrl": z.st
1530
1760
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 200 }, schema: PayerV2Controller_getComplianceData_v2_200 });
1531
1761
  var PayerV2Controller_getComplianceData_v2_400 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1532
1762
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 400 }, schema: PayerV2Controller_getComplianceData_v2_400 });
1533
- var PayerV2Controller_getComplianceData_v2_401 = ErrorEnvelopeSchema4;
1763
+ var PayerV2Controller_getComplianceData_v2_401 = ErrorEnvelopeSchema5;
1534
1764
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 401 }, schema: PayerV2Controller_getComplianceData_v2_401 });
1535
1765
  var PayerV2Controller_getComplianceData_v2_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1536
1766
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 404 }, schema: PayerV2Controller_getComplianceData_v2_404 });
1537
- var PayerV2Controller_getComplianceData_v2_429 = ErrorEnvelopeSchema4;
1767
+ var PayerV2Controller_getComplianceData_v2_429 = ErrorEnvelopeSchema5;
1538
1768
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceData_v2", kind: "response", status: 429 }, schema: PayerV2Controller_getComplianceData_v2_429 });
1539
1769
  var PayerV2Controller_getComplianceStatus_v2_200 = z.object({ "kycStatus": z.string().optional(), "agreementStatus": z.string().optional(), "isCompliant": z.boolean().optional(), "userId": z.string().optional() }).passthrough();
1540
1770
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 200 }, schema: PayerV2Controller_getComplianceStatus_v2_200 });
1541
- var PayerV2Controller_getComplianceStatus_v2_401 = ErrorEnvelopeSchema4;
1771
+ var PayerV2Controller_getComplianceStatus_v2_401 = ErrorEnvelopeSchema5;
1542
1772
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 401 }, schema: PayerV2Controller_getComplianceStatus_v2_401 });
1543
1773
  var PayerV2Controller_getComplianceStatus_v2_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1544
1774
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 404 }, schema: PayerV2Controller_getComplianceStatus_v2_404 });
1545
- var PayerV2Controller_getComplianceStatus_v2_429 = ErrorEnvelopeSchema4;
1775
+ var PayerV2Controller_getComplianceStatus_v2_429 = ErrorEnvelopeSchema5;
1546
1776
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getComplianceStatus_v2", kind: "response", status: 429 }, schema: PayerV2Controller_getComplianceStatus_v2_429 });
1547
1777
  var PayerV2Controller_updateComplianceStatus_v2_Request = z.object({ "agreementCompleted": z.boolean() }).passthrough();
1548
1778
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "request", variant: "application/json" }, schema: PayerV2Controller_updateComplianceStatus_v2_Request });
@@ -1550,19 +1780,19 @@ var PayerV2Controller_updateComplianceStatus_v2_200 = z.object({ "success": z.bo
1550
1780
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 200 }, schema: PayerV2Controller_updateComplianceStatus_v2_200 });
1551
1781
  var PayerV2Controller_updateComplianceStatus_v2_400 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1552
1782
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 400 }, schema: PayerV2Controller_updateComplianceStatus_v2_400 });
1553
- var PayerV2Controller_updateComplianceStatus_v2_401 = ErrorEnvelopeSchema4;
1783
+ var PayerV2Controller_updateComplianceStatus_v2_401 = ErrorEnvelopeSchema5;
1554
1784
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 401 }, schema: PayerV2Controller_updateComplianceStatus_v2_401 });
1555
1785
  var PayerV2Controller_updateComplianceStatus_v2_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1556
1786
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 404 }, schema: PayerV2Controller_updateComplianceStatus_v2_404 });
1557
- var PayerV2Controller_updateComplianceStatus_v2_429 = ErrorEnvelopeSchema4;
1787
+ var PayerV2Controller_updateComplianceStatus_v2_429 = ErrorEnvelopeSchema5;
1558
1788
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_updateComplianceStatus_v2", kind: "response", status: 429 }, schema: PayerV2Controller_updateComplianceStatus_v2_429 });
1559
1789
  var PayerV2Controller_getPaymentDetails_v2_200 = z.object({ "paymentDetails": z.array(z.object({ "id": z.string().optional(), "userId": z.string().optional(), "bankName": z.string().optional(), "accountName": z.string().optional(), "beneficiaryType": z.string().optional(), "accountNumber": z.string().optional(), "routingNumber": z.string().optional(), "currency": z.string().optional(), "status": z.string().optional(), "rails": z.string().optional() }).passthrough()).optional() }).passthrough();
1560
1790
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 200 }, schema: PayerV2Controller_getPaymentDetails_v2_200 });
1561
- var PayerV2Controller_getPaymentDetails_v2_401 = ErrorEnvelopeSchema4;
1791
+ var PayerV2Controller_getPaymentDetails_v2_401 = ErrorEnvelopeSchema5;
1562
1792
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 401 }, schema: PayerV2Controller_getPaymentDetails_v2_401 });
1563
1793
  var PayerV2Controller_getPaymentDetails_v2_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1564
1794
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 404 }, schema: PayerV2Controller_getPaymentDetails_v2_404 });
1565
- var PayerV2Controller_getPaymentDetails_v2_429 = ErrorEnvelopeSchema4;
1795
+ var PayerV2Controller_getPaymentDetails_v2_429 = ErrorEnvelopeSchema5;
1566
1796
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_getPaymentDetails_v2", kind: "response", status: 429 }, schema: PayerV2Controller_getPaymentDetails_v2_429 });
1567
1797
  var PayerV2Controller_createPaymentDetails_v2_Request = z.object({ "bankName": z.string(), "accountName": z.string(), "accountNumber": z.string().optional(), "routingNumber": z.string().optional(), "beneficiaryType": z.enum(["individual", "business"]), "currency": z.string(), "addressLine1": z.string(), "addressLine2": z.string().optional(), "city": z.string(), "state": z.string().optional(), "country": z.string(), "dateOfBirth": z.string(), "postalCode": z.string(), "rails": z.enum(["local", "swift", "wire"]).optional(), "sortCode": z.string().optional(), "iban": z.string().optional(), "swiftBic": z.string().optional(), "documentNumber": z.string().optional(), "documentType": z.string().optional(), "accountType": z.enum(["checking", "savings"]).optional(), "ribNumber": z.string().optional(), "bsbNumber": z.string().optional(), "ncc": z.string().optional(), "branchCode": z.string().optional(), "bankCode": z.string().optional(), "ifsc": z.string().optional() }).passthrough();
1568
1798
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "request", variant: "application/json" }, schema: PayerV2Controller_createPaymentDetails_v2_Request });
@@ -1570,11 +1800,11 @@ var PayerV2Controller_createPaymentDetails_v2_201 = z.object({ "payment_detail":
1570
1800
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 201 }, schema: PayerV2Controller_createPaymentDetails_v2_201 });
1571
1801
  var PayerV2Controller_createPaymentDetails_v2_400 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1572
1802
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 400 }, schema: PayerV2Controller_createPaymentDetails_v2_400 });
1573
- var PayerV2Controller_createPaymentDetails_v2_401 = ErrorEnvelopeSchema4;
1803
+ var PayerV2Controller_createPaymentDetails_v2_401 = ErrorEnvelopeSchema5;
1574
1804
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 401 }, schema: PayerV2Controller_createPaymentDetails_v2_401 });
1575
1805
  var PayerV2Controller_createPaymentDetails_v2_404 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1576
1806
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 404 }, schema: PayerV2Controller_createPaymentDetails_v2_404 });
1577
- var PayerV2Controller_createPaymentDetails_v2_429 = ErrorEnvelopeSchema4;
1807
+ var PayerV2Controller_createPaymentDetails_v2_429 = ErrorEnvelopeSchema5;
1578
1808
  schemaRegistry.register({ key: { operationId: "PayerV2Controller_createPaymentDetails_v2", kind: "response", status: 429 }, schema: PayerV2Controller_createPaymentDetails_v2_429 });
1579
1809
 
1580
1810
  // src/domains/payer/v2/index.ts
@@ -1681,7 +1911,7 @@ var payments_exports = {};
1681
1911
  __export(payments_exports, {
1682
1912
  createPaymentsApi: () => createPaymentsApi
1683
1913
  });
1684
- var ErrorDetailSchema5 = z.object({
1914
+ var ErrorDetailSchema6 = z.object({
1685
1915
  message: z.string(),
1686
1916
  code: z.string().optional(),
1687
1917
  field: z.string().optional(),
@@ -1691,18 +1921,18 @@ var ErrorDetailSchema5 = z.object({
1691
1921
  }).passthrough().optional(),
1692
1922
  meta: z.record(z.unknown()).optional()
1693
1923
  }).passthrough();
1694
- var ErrorEnvelopeSchema5 = z.object({
1924
+ var ErrorEnvelopeSchema6 = z.object({
1695
1925
  status: z.number().optional(),
1696
1926
  statusCode: z.number().optional(),
1697
1927
  code: z.string().optional(),
1698
1928
  error: z.string().optional(),
1699
1929
  message: z.union([
1700
1930
  z.string(),
1701
- z.array(z.union([z.string(), ErrorDetailSchema5])),
1702
- ErrorDetailSchema5
1931
+ z.array(z.union([z.string(), ErrorDetailSchema6])),
1932
+ ErrorDetailSchema6
1703
1933
  ]).optional(),
1704
1934
  detail: z.unknown().optional(),
1705
- errors: z.array(ErrorDetailSchema5).optional(),
1935
+ errors: z.array(ErrorDetailSchema6).optional(),
1706
1936
  requestId: z.string().optional(),
1707
1937
  correlationId: z.string().optional(),
1708
1938
  retryAfter: z.union([z.number(), z.string()]).optional(),
@@ -1715,7 +1945,7 @@ var PaymentV2Controller_searchPayments_v2_400 = z.object({ "statusCode": z.numbe
1715
1945
  schemaRegistry.register({ key: { operationId: "PaymentV2Controller_searchPayments_v2", kind: "response", status: 400 }, schema: PaymentV2Controller_searchPayments_v2_400 });
1716
1946
  var PaymentV2Controller_searchPayments_v2_401 = z.object({ "statusCode": z.number().optional(), "message": z.string().optional(), "error": z.string().optional() }).passthrough();
1717
1947
  schemaRegistry.register({ key: { operationId: "PaymentV2Controller_searchPayments_v2", kind: "response", status: 401 }, schema: PaymentV2Controller_searchPayments_v2_401 });
1718
- var PaymentV2Controller_searchPayments_v2_429 = ErrorEnvelopeSchema5;
1948
+ var PaymentV2Controller_searchPayments_v2_429 = ErrorEnvelopeSchema6;
1719
1949
  schemaRegistry.register({ key: { operationId: "PaymentV2Controller_searchPayments_v2", kind: "response", status: 429 }, schema: PaymentV2Controller_searchPayments_v2_429 });
1720
1950
 
1721
1951
  // src/domains/payments/payments.schemas.ts
@@ -1737,8 +1967,8 @@ var FeeSchema = z.object({
1737
1967
  type: z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp"]).optional(),
1738
1968
  stage: z.enum(["sending", "receiving", "proxying", "refunding"]).optional(),
1739
1969
  provider: z.string().optional(),
1740
- amount: z.string().optional(),
1741
- amountInUSD: z.string().optional(),
1970
+ amount: z.string().nullable().optional(),
1971
+ amountInUSD: z.string().nullable().optional(),
1742
1972
  currency: z.string().optional(),
1743
1973
  receiverAddress: z.string().optional(),
1744
1974
  network: z.string().optional(),
@@ -1913,7 +2143,7 @@ __export(payouts_exports, {
1913
2143
  });
1914
2144
 
1915
2145
  // src/domains/payouts/payouts.facade.ts
1916
- var OP_CREATE = "PayoutV2Controller_payRequest_v2";
2146
+ var OP_CREATE2 = "PayoutV2Controller_payRequest_v2";
1917
2147
  var OP_CREATE_BATCH = "PayoutV2Controller_payBatchRequest_v2";
1918
2148
  var OP_RECURRING_STATUS = "PayoutV2Controller_getRecurringPaymentStatus_v2";
1919
2149
  var OP_SUBMIT_SIGNATURE = "PayoutV2Controller_submitRecurringPaymentSignature_v2";
@@ -1922,12 +2152,12 @@ function createPayoutsApi(http) {
1922
2152
  return {
1923
2153
  async create(body, options) {
1924
2154
  return requestJson(http, {
1925
- operationId: OP_CREATE,
2155
+ operationId: OP_CREATE2,
1926
2156
  method: "POST",
1927
2157
  path: "/v2/payouts",
1928
2158
  body,
1929
- requestSchemaKey: { operationId: OP_CREATE, kind: "request", variant: "application/json" },
1930
- schemaKey: { operationId: OP_CREATE, kind: "response", status: 201 },
2159
+ requestSchemaKey: { operationId: OP_CREATE2, kind: "request", variant: "application/json" },
2160
+ schemaKey: { operationId: OP_CREATE2, kind: "response", status: 201 },
1931
2161
  description: "Create payout",
1932
2162
  signal: options?.signal,
1933
2163
  timeoutMs: options?.timeoutMs,
@@ -2006,7 +2236,7 @@ __export(requests_exports, {
2006
2236
  });
2007
2237
 
2008
2238
  // src/domains/requests/requests.facade.ts
2009
- var OP_CREATE2 = "RequestControllerV2_createRequest_v2";
2239
+ var OP_CREATE3 = "RequestControllerV2_createRequest_v2";
2010
2240
  var OP_PAYMENT_ROUTES = "RequestControllerV2_getRequestPaymentRoutes_v2";
2011
2241
  var OP_PAYMENT_CALLDATA = "RequestControllerV2_getPaymentCalldata_v2";
2012
2242
  var OP_UPDATE = "RequestControllerV2_updateRequest_v2";
@@ -2024,12 +2254,12 @@ function createRequestsApi(http) {
2024
2254
  return {
2025
2255
  async create(body, options) {
2026
2256
  return requestJson(http, {
2027
- operationId: OP_CREATE2,
2257
+ operationId: OP_CREATE3,
2028
2258
  method: "POST",
2029
2259
  path: "/v2/request",
2030
2260
  body,
2031
- requestSchemaKey: { operationId: OP_CREATE2, kind: "request", variant: "application/json" },
2032
- schemaKey: { operationId: OP_CREATE2, kind: "response", status: 201 },
2261
+ requestSchemaKey: { operationId: OP_CREATE3, kind: "request", variant: "application/json" },
2262
+ schemaKey: { operationId: OP_CREATE3, kind: "response", status: 201 },
2033
2263
  description: "Create request",
2034
2264
  signal: options?.signal,
2035
2265
  timeoutMs: options?.timeoutMs,
@@ -2132,7 +2362,7 @@ function createRequestsApi(http) {
2132
2362
  }
2133
2363
  };
2134
2364
  }
2135
- var ErrorDetailSchema6 = z.object({
2365
+ var ErrorDetailSchema7 = z.object({
2136
2366
  message: z.string(),
2137
2367
  code: z.string().optional(),
2138
2368
  field: z.string().optional(),
@@ -2142,18 +2372,18 @@ var ErrorDetailSchema6 = z.object({
2142
2372
  }).passthrough().optional(),
2143
2373
  meta: z.record(z.unknown()).optional()
2144
2374
  }).passthrough();
2145
- var ErrorEnvelopeSchema6 = z.object({
2375
+ var ErrorEnvelopeSchema7 = z.object({
2146
2376
  status: z.number().optional(),
2147
2377
  statusCode: z.number().optional(),
2148
2378
  code: z.string().optional(),
2149
2379
  error: z.string().optional(),
2150
2380
  message: z.union([
2151
2381
  z.string(),
2152
- z.array(z.union([z.string(), ErrorDetailSchema6])),
2153
- ErrorDetailSchema6
2382
+ z.array(z.union([z.string(), ErrorDetailSchema7])),
2383
+ ErrorDetailSchema7
2154
2384
  ]).optional(),
2155
2385
  detail: z.unknown().optional(),
2156
- errors: z.array(ErrorDetailSchema6).optional(),
2386
+ errors: z.array(ErrorDetailSchema7).optional(),
2157
2387
  requestId: z.string().optional(),
2158
2388
  correlationId: z.string().optional(),
2159
2389
  retryAfter: z.union([z.number(), z.string()]).optional(),
@@ -2164,103 +2394,105 @@ var RequestControllerV1_createRequest_v1_Request = z.object({ "payer": z.string(
2164
2394
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "request", variant: "application/json" }, schema: RequestControllerV1_createRequest_v1_Request });
2165
2395
  var RequestControllerV1_createRequest_v1_201 = z.object({ "paymentReference": z.string().optional(), "requestID": z.string().optional() }).passthrough();
2166
2396
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 201 }, schema: RequestControllerV1_createRequest_v1_201 });
2167
- var RequestControllerV1_createRequest_v1_400 = ErrorEnvelopeSchema6;
2397
+ var RequestControllerV1_createRequest_v1_400 = ErrorEnvelopeSchema7;
2168
2398
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 400 }, schema: RequestControllerV1_createRequest_v1_400 });
2169
- var RequestControllerV1_createRequest_v1_401 = ErrorEnvelopeSchema6;
2399
+ var RequestControllerV1_createRequest_v1_401 = ErrorEnvelopeSchema7;
2170
2400
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 401 }, schema: RequestControllerV1_createRequest_v1_401 });
2171
- var RequestControllerV1_createRequest_v1_404 = ErrorEnvelopeSchema6;
2401
+ var RequestControllerV1_createRequest_v1_404 = ErrorEnvelopeSchema7;
2172
2402
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 404 }, schema: RequestControllerV1_createRequest_v1_404 });
2173
- var RequestControllerV1_createRequest_v1_429 = ErrorEnvelopeSchema6;
2403
+ var RequestControllerV1_createRequest_v1_429 = ErrorEnvelopeSchema7;
2174
2404
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_createRequest_v1", kind: "response", status: 429 }, schema: RequestControllerV1_createRequest_v1_429 });
2175
2405
  var RequestControllerV1_getRequestStatus_v1_200 = z.object({ "hasBeenPaid": z.boolean().optional(), "paymentReference": z.string().optional(), "requestId": z.string().optional(), "isListening": z.boolean().optional(), "txHash": z.string().nullable().optional() }).passthrough();
2176
2406
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 200 }, schema: RequestControllerV1_getRequestStatus_v1_200 });
2177
- var RequestControllerV1_getRequestStatus_v1_401 = ErrorEnvelopeSchema6;
2407
+ var RequestControllerV1_getRequestStatus_v1_401 = ErrorEnvelopeSchema7;
2178
2408
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 401 }, schema: RequestControllerV1_getRequestStatus_v1_401 });
2179
- var RequestControllerV1_getRequestStatus_v1_404 = ErrorEnvelopeSchema6;
2409
+ var RequestControllerV1_getRequestStatus_v1_404 = ErrorEnvelopeSchema7;
2180
2410
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 404 }, schema: RequestControllerV1_getRequestStatus_v1_404 });
2181
- var RequestControllerV1_getRequestStatus_v1_429 = ErrorEnvelopeSchema6;
2411
+ var RequestControllerV1_getRequestStatus_v1_429 = ErrorEnvelopeSchema7;
2182
2412
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestStatus_v1", kind: "response", status: 429 }, schema: RequestControllerV1_getRequestStatus_v1_429 });
2183
2413
  var RequestControllerV1_stopRecurrenceRequest_v1_200 = z.unknown();
2184
2414
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 200 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_200 });
2185
- var RequestControllerV1_stopRecurrenceRequest_v1_401 = ErrorEnvelopeSchema6;
2415
+ var RequestControllerV1_stopRecurrenceRequest_v1_401 = ErrorEnvelopeSchema7;
2186
2416
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 401 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_401 });
2187
- var RequestControllerV1_stopRecurrenceRequest_v1_404 = ErrorEnvelopeSchema6;
2417
+ var RequestControllerV1_stopRecurrenceRequest_v1_404 = ErrorEnvelopeSchema7;
2188
2418
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 404 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_404 });
2189
- var RequestControllerV1_stopRecurrenceRequest_v1_429 = ErrorEnvelopeSchema6;
2419
+ var RequestControllerV1_stopRecurrenceRequest_v1_429 = ErrorEnvelopeSchema7;
2190
2420
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 429 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_429 });
2191
2421
  var RequestControllerV1_getPaymentCalldata_v1_200 = z.union([z.object({ "transactions": z.array(z.object({ "data": z.string(), "to": z.string(), "value": z.object({ "type": z.enum(["BigNumber"]).optional(), "hex": z.string().optional() }).passthrough() }).passthrough()), "metadata": z.object({ "stepsRequired": z.number(), "needsApproval": z.boolean(), "approvalTransactionIndex": z.number().nullable().optional(), "hasEnoughBalance": z.boolean(), "hasEnoughGas": z.boolean() }).passthrough() }).passthrough(), z.object({ "paymentIntentId": z.string(), "paymentIntent": z.string(), "approvalPermitPayload": z.string().nullable().optional(), "approvalCalldata": z.object({ "to": z.string().optional(), "data": z.string().optional(), "value": z.string().optional() }).passthrough().nullable().optional(), "metadata": z.object({ "supportsEIP2612": z.boolean() }).passthrough() }).passthrough()]);
2192
2422
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 200 }, schema: RequestControllerV1_getPaymentCalldata_v1_200 });
2193
- var RequestControllerV1_getPaymentCalldata_v1_400 = ErrorEnvelopeSchema6;
2423
+ var RequestControllerV1_getPaymentCalldata_v1_400 = ErrorEnvelopeSchema7;
2194
2424
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 400 }, schema: RequestControllerV1_getPaymentCalldata_v1_400 });
2195
- var RequestControllerV1_getPaymentCalldata_v1_401 = ErrorEnvelopeSchema6;
2425
+ var RequestControllerV1_getPaymentCalldata_v1_401 = ErrorEnvelopeSchema7;
2196
2426
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 401 }, schema: RequestControllerV1_getPaymentCalldata_v1_401 });
2197
- var RequestControllerV1_getPaymentCalldata_v1_404 = ErrorEnvelopeSchema6;
2427
+ var RequestControllerV1_getPaymentCalldata_v1_404 = ErrorEnvelopeSchema7;
2198
2428
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 404 }, schema: RequestControllerV1_getPaymentCalldata_v1_404 });
2199
- var RequestControllerV1_getPaymentCalldata_v1_429 = ErrorEnvelopeSchema6;
2429
+ var RequestControllerV1_getPaymentCalldata_v1_429 = ErrorEnvelopeSchema7;
2200
2430
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 429 }, schema: RequestControllerV1_getPaymentCalldata_v1_429 });
2201
2431
  var RequestControllerV1_getRequestPaymentRoutes_v1_200 = z.object({ "routes": z.array(z.object({ "id": z.string(), "fee": z.number(), "feeBreakdown": z.array(z.object({ "type": z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp"]).optional(), "stage": z.enum(["sending", "receiving", "proxying", "refunding", "overall"]).optional(), "provider": z.string().optional(), "amount": z.string().optional(), "amountInUSD": z.string().optional(), "currency": z.string().optional(), "receiverAddress": z.string().optional(), "network": z.string().optional(), "rateProvider": z.string().optional() }).passthrough()).optional(), "speed": z.union([z.string(), z.number()]), "price_impact": z.number().optional(), "chain": z.string(), "token": z.string() }).passthrough()) }).passthrough();
2202
2432
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 200 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_200 });
2203
- var RequestControllerV1_getRequestPaymentRoutes_v1_400 = ErrorEnvelopeSchema6;
2433
+ var RequestControllerV1_getRequestPaymentRoutes_v1_400 = ErrorEnvelopeSchema7;
2204
2434
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 400 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_400 });
2205
- var RequestControllerV1_getRequestPaymentRoutes_v1_401 = ErrorEnvelopeSchema6;
2435
+ var RequestControllerV1_getRequestPaymentRoutes_v1_401 = ErrorEnvelopeSchema7;
2206
2436
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 401 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_401 });
2207
- var RequestControllerV1_getRequestPaymentRoutes_v1_404 = ErrorEnvelopeSchema6;
2437
+ var RequestControllerV1_getRequestPaymentRoutes_v1_404 = ErrorEnvelopeSchema7;
2208
2438
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 404 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_404 });
2209
- var RequestControllerV1_getRequestPaymentRoutes_v1_429 = ErrorEnvelopeSchema6;
2439
+ var RequestControllerV1_getRequestPaymentRoutes_v1_429 = ErrorEnvelopeSchema7;
2210
2440
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_getRequestPaymentRoutes_v1", kind: "response", status: 429 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_429 });
2211
2441
  var RequestControllerV1_sendPaymentIntent_v1_Request = z.object({ "signedPaymentIntent": z.object({ "signature": z.string(), "nonce": z.string(), "deadline": z.string() }).passthrough(), "signedApprovalPermit": z.object({ "signature": z.string(), "nonce": z.string(), "deadline": z.string() }).passthrough().optional() }).passthrough();
2212
2442
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "request", variant: "application/json" }, schema: RequestControllerV1_sendPaymentIntent_v1_Request });
2213
- var RequestControllerV1_sendPaymentIntent_v1_401 = ErrorEnvelopeSchema6;
2443
+ var RequestControllerV1_sendPaymentIntent_v1_401 = ErrorEnvelopeSchema7;
2214
2444
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "response", status: 401 }, schema: RequestControllerV1_sendPaymentIntent_v1_401 });
2215
- var RequestControllerV1_sendPaymentIntent_v1_404 = ErrorEnvelopeSchema6;
2445
+ var RequestControllerV1_sendPaymentIntent_v1_404 = ErrorEnvelopeSchema7;
2216
2446
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "response", status: 404 }, schema: RequestControllerV1_sendPaymentIntent_v1_404 });
2217
- var RequestControllerV1_sendPaymentIntent_v1_429 = ErrorEnvelopeSchema6;
2447
+ var RequestControllerV1_sendPaymentIntent_v1_429 = ErrorEnvelopeSchema7;
2218
2448
  schemaRegistry.register({ key: { operationId: "RequestControllerV1_sendPaymentIntent_v1", kind: "response", status: 429 }, schema: RequestControllerV1_sendPaymentIntent_v1_429 });
2219
2449
  var RequestControllerV2_createRequest_v2_Request = z.object({ "payer": z.string().optional(), "payee": z.string().optional(), "amount": z.string(), "invoiceCurrency": z.string(), "paymentCurrency": z.string(), "recurrence": z.object({ "startDate": z.string(), "frequency": z.enum(["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]) }).passthrough().optional(), "isCryptoToFiatAvailable": z.boolean().optional(), "customerInfo": z.object({ "firstName": z.string().optional(), "lastName": z.string().optional(), "email": z.string().optional(), "address": z.object({ "street": z.string().optional(), "city": z.string().optional(), "state": z.string().optional(), "postalCode": z.string().optional(), "country": z.string().optional() }).passthrough().optional() }).passthrough().optional(), "reference": z.string().optional(), "originalRequestId": z.string().optional(), "originalRequestPaymentReference": z.string().optional() }).passthrough();
2220
2450
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "request", variant: "application/json" }, schema: RequestControllerV2_createRequest_v2_Request });
2221
2451
  var RequestControllerV2_createRequest_v2_201 = z.object({ "paymentReference": z.string().optional(), "requestId": z.string().optional() }).passthrough();
2222
2452
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 201 }, schema: RequestControllerV2_createRequest_v2_201 });
2223
- var RequestControllerV2_createRequest_v2_400 = ErrorEnvelopeSchema6;
2453
+ var RequestControllerV2_createRequest_v2_400 = ErrorEnvelopeSchema7;
2224
2454
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 400 }, schema: RequestControllerV2_createRequest_v2_400 });
2225
- var RequestControllerV2_createRequest_v2_404 = ErrorEnvelopeSchema6;
2455
+ var RequestControllerV2_createRequest_v2_404 = ErrorEnvelopeSchema7;
2226
2456
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 404 }, schema: RequestControllerV2_createRequest_v2_404 });
2227
- var RequestControllerV2_createRequest_v2_429 = ErrorEnvelopeSchema6;
2457
+ var RequestControllerV2_createRequest_v2_429 = ErrorEnvelopeSchema7;
2228
2458
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_createRequest_v2", kind: "response", status: 429 }, schema: RequestControllerV2_createRequest_v2_429 });
2229
- var RequestControllerV2_getRequestStatus_v2_200 = z.object({ "hasBeenPaid": z.boolean().optional(), "paymentReference": z.string().optional(), "requestId": z.string().optional(), "isListening": z.boolean().optional(), "txHash": z.string().nullable().optional(), "recurrence": z.object({}).passthrough().optional(), "originalRequestId": z.string().optional(), "status": z.string().optional(), "isCryptoToFiatAvailable": z.boolean().optional(), "originalRequestPaymentReference": z.string().optional(), "payments": z.array(z.object({}).passthrough()).optional(), "isRecurrenceStopped": z.boolean().optional(), "customerInfo": z.object({ "firstName": z.string().optional(), "lastName": z.string().optional(), "email": z.string().optional(), "address": z.object({ "street": z.string().optional(), "city": z.string().optional(), "state": z.string().optional(), "postalCode": z.string().optional(), "country": z.string().optional() }).passthrough().optional() }).passthrough().nullable().optional(), "reference": z.string().nullable().optional() }).passthrough();
2459
+ var RequestControllerV2_getRequestStatus_v2_200 = z.object({ "hasBeenPaid": z.boolean().optional(), "paymentReference": z.string().optional(), "requestId": z.string().optional(), "isListening": z.boolean().optional(), "txHash": z.string().nullable().optional(), "recurrence": z.object({}).passthrough().optional(), "originalRequestId": z.string().optional(), "status": z.string().optional(), "isCryptoToFiatAvailable": z.boolean().optional(), "originalRequestPaymentReference": z.string().optional(), "payments": z.array(z.object({}).passthrough()).optional(), "isRecurrenceStopped": z.boolean().optional(), "customerInfo": z.object({ "firstName": z.string().optional(), "lastName": z.string().optional(), "email": z.string().optional(), "address": z.object({ "street": z.string().optional(), "city": z.string().optional(), "state": z.string().optional(), "postalCode": z.string().optional(), "country": z.string().optional() }).passthrough().optional() }).passthrough().nullable().optional(), "reference": z.string().nullable().optional(), "amountInUsd": z.string().nullable().optional(), "conversionRate": z.string().nullable().optional(), "rateSource": z.enum(["lifi", "chainlink", "coingecko", "unknown", "mixed"]).optional(), "conversionBreakdown": z.object({ "paidAmount": z.string().optional(), "paidAmountInUsd": z.string().optional(), "remainingAmount": z.string().optional(), "remainingAmountInUsd": z.string().optional(), "currentMarketRate": z.string().nullable().optional(), "currentMarketRateSource": z.enum(["lifi", "chainlink", "coingecko", "unknown"]).optional(), "payments": z.array(z.object({ "amount": z.string().optional(), "amountInUsd": z.string().optional(), "conversionRate": z.string().optional(), "rateSource": z.enum(["lifi", "chainlink", "coingecko", "unknown"]).optional(), "timestamp": z.string().optional() }).passthrough()).optional() }).passthrough().nullable().optional(), "fees": z.array(z.object({ "type": z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp"]).optional(), "provider": z.string().optional(), "amount": z.string().optional(), "currency": z.string().optional() }).passthrough()).nullable().optional() }).passthrough();
2230
2460
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestStatus_v2", kind: "response", status: 200 }, schema: RequestControllerV2_getRequestStatus_v2_200 });
2231
- var RequestControllerV2_getRequestStatus_v2_404 = ErrorEnvelopeSchema6;
2461
+ var RequestControllerV2_getRequestStatus_v2_404 = ErrorEnvelopeSchema7;
2232
2462
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestStatus_v2", kind: "response", status: 404 }, schema: RequestControllerV2_getRequestStatus_v2_404 });
2233
- var RequestControllerV2_getRequestStatus_v2_429 = ErrorEnvelopeSchema6;
2463
+ var RequestControllerV2_getRequestStatus_v2_429 = ErrorEnvelopeSchema7;
2234
2464
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestStatus_v2", kind: "response", status: 429 }, schema: RequestControllerV2_getRequestStatus_v2_429 });
2465
+ var RequestControllerV2_updateRequest_v2_Request = z.object({ "isRecurrenceStopped": z.boolean() }).passthrough();
2466
+ schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "request", variant: "application/json" }, schema: RequestControllerV2_updateRequest_v2_Request });
2235
2467
  var RequestControllerV2_updateRequest_v2_200 = z.unknown();
2236
2468
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 200 }, schema: RequestControllerV2_updateRequest_v2_200 });
2237
- var RequestControllerV2_updateRequest_v2_404 = ErrorEnvelopeSchema6;
2469
+ var RequestControllerV2_updateRequest_v2_404 = ErrorEnvelopeSchema7;
2238
2470
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 404 }, schema: RequestControllerV2_updateRequest_v2_404 });
2239
- var RequestControllerV2_updateRequest_v2_429 = ErrorEnvelopeSchema6;
2471
+ var RequestControllerV2_updateRequest_v2_429 = ErrorEnvelopeSchema7;
2240
2472
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 429 }, schema: RequestControllerV2_updateRequest_v2_429 });
2241
2473
  var RequestControllerV2_getPaymentCalldata_v2_200 = z.union([z.object({ "transactions": z.array(z.object({ "data": z.string(), "to": z.string(), "value": z.object({ "type": z.enum(["BigNumber"]).optional(), "hex": z.string().optional() }).passthrough() }).passthrough()), "metadata": z.object({ "stepsRequired": z.number(), "needsApproval": z.boolean(), "approvalTransactionIndex": z.number().nullable().optional(), "hasEnoughBalance": z.boolean(), "hasEnoughGas": z.boolean() }).passthrough() }).passthrough(), z.object({ "paymentIntentId": z.string(), "paymentIntent": z.string(), "approvalPermitPayload": z.string().nullable().optional(), "approvalCalldata": z.object({ "to": z.string().optional(), "data": z.string().optional(), "value": z.string().optional() }).passthrough().nullable().optional(), "metadata": z.object({ "supportsEIP2612": z.boolean() }).passthrough() }).passthrough()]);
2242
2474
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 200 }, schema: RequestControllerV2_getPaymentCalldata_v2_200 });
2243
- var RequestControllerV2_getPaymentCalldata_v2_400 = ErrorEnvelopeSchema6;
2475
+ var RequestControllerV2_getPaymentCalldata_v2_400 = ErrorEnvelopeSchema7;
2244
2476
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 400 }, schema: RequestControllerV2_getPaymentCalldata_v2_400 });
2245
- var RequestControllerV2_getPaymentCalldata_v2_404 = ErrorEnvelopeSchema6;
2477
+ var RequestControllerV2_getPaymentCalldata_v2_404 = ErrorEnvelopeSchema7;
2246
2478
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 404 }, schema: RequestControllerV2_getPaymentCalldata_v2_404 });
2247
- var RequestControllerV2_getPaymentCalldata_v2_429 = ErrorEnvelopeSchema6;
2479
+ var RequestControllerV2_getPaymentCalldata_v2_429 = ErrorEnvelopeSchema7;
2248
2480
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 429 }, schema: RequestControllerV2_getPaymentCalldata_v2_429 });
2249
2481
  var RequestControllerV2_getRequestPaymentRoutes_v2_200 = z.object({ "routes": z.array(z.object({ "id": z.string(), "fee": z.number(), "feeBreakdown": z.array(z.object({ "type": z.enum(["gas", "platform", "crosschain", "crypto-to-fiat", "offramp"]).optional(), "stage": z.enum(["sending", "receiving", "proxying", "refunding", "overall"]).optional(), "provider": z.string().optional(), "amount": z.string().optional(), "amountInUSD": z.string().optional(), "currency": z.string().optional(), "receiverAddress": z.string().optional(), "network": z.string().optional(), "rateProvider": z.string().optional() }).passthrough()).optional(), "speed": z.union([z.string(), z.number()]), "price_impact": z.number().optional(), "chain": z.string(), "token": z.string() }).passthrough()) }).passthrough();
2250
2482
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 200 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_200 });
2251
- var RequestControllerV2_getRequestPaymentRoutes_v2_400 = ErrorEnvelopeSchema6;
2483
+ var RequestControllerV2_getRequestPaymentRoutes_v2_400 = ErrorEnvelopeSchema7;
2252
2484
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 400 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_400 });
2253
- var RequestControllerV2_getRequestPaymentRoutes_v2_404 = ErrorEnvelopeSchema6;
2485
+ var RequestControllerV2_getRequestPaymentRoutes_v2_404 = ErrorEnvelopeSchema7;
2254
2486
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 404 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_404 });
2255
- var RequestControllerV2_getRequestPaymentRoutes_v2_429 = ErrorEnvelopeSchema6;
2487
+ var RequestControllerV2_getRequestPaymentRoutes_v2_429 = ErrorEnvelopeSchema7;
2256
2488
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_getRequestPaymentRoutes_v2", kind: "response", status: 429 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_429 });
2257
2489
  var RequestControllerV2_sendPaymentIntent_v2_Request = z.object({ "signedPaymentIntent": z.object({ "signature": z.string(), "nonce": z.string(), "deadline": z.string() }).passthrough(), "signedApprovalPermit": z.object({ "signature": z.string(), "nonce": z.string(), "deadline": z.string() }).passthrough().optional() }).passthrough();
2258
2490
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "request", variant: "application/json" }, schema: RequestControllerV2_sendPaymentIntent_v2_Request });
2259
2491
  var RequestControllerV2_sendPaymentIntent_v2_200 = z.unknown();
2260
2492
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "response", status: 200 }, schema: RequestControllerV2_sendPaymentIntent_v2_200 });
2261
- var RequestControllerV2_sendPaymentIntent_v2_404 = ErrorEnvelopeSchema6;
2493
+ var RequestControllerV2_sendPaymentIntent_v2_404 = ErrorEnvelopeSchema7;
2262
2494
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "response", status: 404 }, schema: RequestControllerV2_sendPaymentIntent_v2_404 });
2263
- var RequestControllerV2_sendPaymentIntent_v2_429 = ErrorEnvelopeSchema6;
2495
+ var RequestControllerV2_sendPaymentIntent_v2_429 = ErrorEnvelopeSchema7;
2264
2496
  schemaRegistry.register({ key: { operationId: "RequestControllerV2_sendPaymentIntent_v2", kind: "response", status: 429 }, schema: RequestControllerV2_sendPaymentIntent_v2_429 });
2265
2497
  var NullableRequestStatusSchema = z.preprocess((value) => {
2266
2498
  if (!value || typeof value !== "object") {
@@ -2305,6 +2537,7 @@ function createRequestClient(options) {
2305
2537
  payouts: createPayoutsApi(http),
2306
2538
  payments: createPaymentsApi(http),
2307
2539
  payer: createPayerApi(http),
2540
+ payeeDestination: createPayeeDestinationApi(http),
2308
2541
  pay: createPayApi(http)
2309
2542
  };
2310
2543
  }
@@ -2316,7 +2549,7 @@ __export(v1_exports4, {
2316
2549
  });
2317
2550
 
2318
2551
  // src/domains/requests/v1/requests.v1.facade.ts
2319
- var OP_CREATE3 = "RequestControllerV1_createRequest_v1";
2552
+ var OP_CREATE4 = "RequestControllerV1_createRequest_v1";
2320
2553
  var OP_PAYMENT_ROUTES2 = "RequestControllerV1_getRequestPaymentRoutes_v1";
2321
2554
  var OP_PAYMENT_CALLDATA2 = "RequestControllerV1_getPaymentCalldata_v1";
2322
2555
  var OP_REQUEST_STATUS2 = "RequestControllerV1_getRequestStatus_v1";
@@ -2334,12 +2567,12 @@ function createRequestsV1Api(http) {
2334
2567
  return {
2335
2568
  async create(body, options) {
2336
2569
  return requestJson(http, {
2337
- operationId: OP_CREATE3,
2570
+ operationId: OP_CREATE4,
2338
2571
  method: "POST",
2339
2572
  path: "/v1/request",
2340
2573
  body,
2341
- requestSchemaKey: { operationId: OP_CREATE3, kind: "request", variant: "application/json" },
2342
- schemaKey: { operationId: OP_CREATE3, kind: "response", status: 201 },
2574
+ requestSchemaKey: { operationId: OP_CREATE4, kind: "request", variant: "application/json" },
2575
+ schemaKey: { operationId: OP_CREATE4, kind: "response", status: 201 },
2343
2576
  description: "Create legacy request",
2344
2577
  signal: options?.signal,
2345
2578
  timeoutMs: options?.timeoutMs,
@@ -3415,6 +3648,6 @@ function assertRequestRecurringEvent(event) {
3415
3648
  }
3416
3649
  }
3417
3650
 
3418
- export { DEFAULT_RETRY_CONFIG, RequestApiError, SchemaRegistry, ValidationError, browserFetchAdapter, buildRequestApiError, client_ids_exports as clientIds, computeRetryDelay, createHttpClient, createRequestClient, currencies_exports as currencies, v1_exports as currenciesV1, isRequestApiError, nodeFetchAdapter, parseWithRegistry, parseWithSchema, pay_exports as pay, v1_exports2 as payV1, payer_exports as payer, v1_exports3 as payerV1, v2_exports as payerV2, payments_exports as payments, payouts_exports as payouts, requests_exports as requests, v1_exports4 as requestsV1, schemaRegistry, shouldRetryRequest, webhooks_exports as webhooks };
3651
+ export { DEFAULT_RETRY_CONFIG, RequestApiError, SchemaRegistry, ValidationError, browserFetchAdapter, buildRequestApiError, client_ids_exports as clientIds, computeRetryDelay, createHttpClient, createRequestClient, currencies_exports as currencies, v1_exports as currenciesV1, isRequestApiError, nodeFetchAdapter, parseWithRegistry, parseWithSchema, pay_exports as pay, v1_exports2 as payV1, payee_destination_exports as payeeDestination, payer_exports as payer, v1_exports3 as payerV1, v2_exports as payerV2, payments_exports as payments, payouts_exports as payouts, requests_exports as requests, v1_exports4 as requestsV1, schemaRegistry, shouldRetryRequest, webhooks_exports as webhooks };
3419
3652
  //# sourceMappingURL=index.js.map
3420
3653
  //# sourceMappingURL=index.js.map