@marcohefti/request-network-api-client 0.5.9 → 0.5.10
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.
- package/README.md +2 -2
- package/dist/cjs/domains/currencies/index.js +4 -2
- package/dist/cjs/domains/currencies/index.js.map +1 -1
- package/dist/cjs/domains/requests/index.js +2 -2
- package/dist/cjs/domains/requests/index.js.map +1 -1
- package/dist/cjs/index.js +80 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/domains/currencies/index.d.mts +1 -1
- package/dist/esm/domains/currencies/index.js +4 -2
- package/dist/esm/domains/currencies/index.js.map +1 -1
- package/dist/esm/domains/requests/index.js +2 -2
- package/dist/esm/domains/requests/index.js.map +1 -1
- package/dist/esm/{index-ziziGrHN.d.mts → index-Bum0bfZQ.d.mts} +2 -1
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.js +80 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/domains/requests/request.helpers.ts","../../../../src/core/http/validation.config.ts","../../../../src/validation/schema.registry.ts","../../../../src/validation/zod.helpers.ts","../../../../src/core/http/operation.helper.ts","../../../../src/domains/requests/requests.facade.ts","../../../../src/validation/generated/groups/request.schemas.generated.ts","../../../../src/validation/overrides/request-status.schema.ts","../../../../src/validation/overrides/request-payment-routes.schema.ts"],"names":["z"],"mappings":";;;AASO,SAAS,kBAAkB,KAAA,EAAsE;AACtG,EAAA,IAAI,CAAC,OAAO,OAAO,MAAA;AACnB,EAAA,MAAM,OAAA,GAAU,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAA,CAAE,MAAA,CAAO,CAAC,GAAG,KAAK,CAAA,KAAM,KAAA,KAAU,MAAS,CAAA;AAC/E,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AACjC,EAAA,OAAO,MAAA,CAAO,YAAY,OAAO,CAA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AAoC,IAAA,EAAM;AACjD,IAAA,IAAA,CAAK,+BAAA,GAAkC,MAAA;AAAA,EACzC;AAEA,EAAA,OAAO,IAAA;AACT,CAAA,EAAG,2CAAuB,CAAA;AAE1B,cAAA,CAAe,QAAA,CAAS;AAAA,EACtB,KAAK,EAAE,WAAA,EAAa,2CAA2C,IAAA,EAAM,UAAA,EAAY,QAAQ,GAAA,EAAI;AAAA,EAC7F,MAAA,EAAQ;AACV,CAAC,CAAA;AC1BD,IAAM,oBAAA,GAAuBA,EAC1B,MAAA,CAAO;AAAA,EACN,QAAQA,CAAAA,CAAE,KAAA;AAAA,IACRA,EACG,MAAA,CAAO;AAAA,MACN,GAAA,EAAKA,CAAAA,CAAE,KAAA,CAAM,CAACA,CAAAA,CAAE,MAAA,EAAO,EAAGA,CAAAA,CAAE,MAAA,EAAQ,CAAC,CAAA,CAAE,QAAA;AAAS,KACjD,EACA,WAAA;AAAY;AAEnB,CAAC,EACA,WAAA,EAAY;AAEf,cAAA,CAAe,QAAA,CAAS;AAAA,EACtB,KAAK,EAAE,WAAA,EAAa,kDAAkD,IAAA,EAAM,UAAA,EAAY,QAAQ,GAAA,EAAI;AAAA,EACpG,MAAA,EAAQ;AACV,CAAC,CAAA","file":"index.js","sourcesContent":["import type { RequestOptions } from \"../../core/http/http.types\";\nimport type { operations } from \"../../generated/openapi-types\";\n\ntype QueryValue = string | number | boolean | (string | number | boolean)[];\n\n/**\n * Builds a query object while stripping out undefined entries so the HTTP helper\n * does not emit spurious `param=undefined` pairs.\n */\nexport function buildRequestQuery(input?: Record<string, unknown>): RequestOptions[\"query\"] | undefined {\n if (!input) return undefined;\n const entries = Object.entries(input).filter(([, value]) => value !== undefined);\n if (entries.length === 0) return undefined;\n return Object.fromEntries(entries) as Record<string, QueryValue | undefined>;\n}\n\ntype LegacyStatusApiResponse =\n operations[\"RequestControllerV1_getRequestStatus_v1\"][\"responses\"][200][\"content\"][\"application/json\"];\ntype StatusApiResponseV2 =\n operations[\"RequestControllerV2_getRequestStatus_v2\"][\"responses\"][200][\"content\"][\"application/json\"];\n\nexport interface RequestStatusAddress {\n street?: string;\n city?: string;\n state?: string;\n postalCode?: string;\n country?: string;\n}\n\nexport interface RequestStatusCustomerInfo {\n firstName?: string;\n lastName?: string;\n email?: string;\n address?: RequestStatusAddress;\n}\n\nexport type RequestStatusKind = \"paid\" | \"pending\" | \"cancelled\" | \"overdue\" | \"unknown\";\n\ninterface RequestStatusBase {\n paymentReference?: string;\n requestId?: string;\n isListening?: boolean;\n txHash: string | null;\n status?: string;\n recurrence?: Record<string, unknown>;\n originalRequestId?: string;\n originalRequestPaymentReference?: string;\n isRecurrenceStopped?: boolean;\n isCryptoToFiatAvailable?: boolean;\n payments?: Array<Record<string, unknown>>;\n customerInfo?: RequestStatusCustomerInfo | null;\n reference?: string | null;\n hasBeenPaid?: boolean;\n}\n\nexport type RequestStatusResult =\n | (RequestStatusBase & { kind: \"paid\"; hasBeenPaid: true })\n | (RequestStatusBase & { kind: \"pending\"; hasBeenPaid?: boolean })\n | (RequestStatusBase & { kind: \"cancelled\"; hasBeenPaid?: boolean })\n | (RequestStatusBase & { kind: \"overdue\"; hasBeenPaid?: boolean })\n | (RequestStatusBase & { kind: \"unknown\"; hasBeenPaid?: boolean });\n\nexport type LegacyRequestStatusResult = Extract<RequestStatusResult, { kind: \"paid\" | \"pending\" }>;\n\nconst STATUS_KIND_MAP: Record<string, RequestStatusKind> = {\n paid: \"paid\",\n completed: \"paid\",\n settled: \"paid\",\n pending: \"pending\",\n processing: \"pending\",\n open: \"pending\",\n awaitingpayment: \"pending\",\n awaiting_payment: \"pending\",\n cancelled: \"cancelled\",\n canceled: \"cancelled\",\n voided: \"cancelled\",\n overdue: \"overdue\",\n expired: \"overdue\",\n};\n\nfunction normalizeReference(value: string | null | undefined): string | null | undefined {\n if (value === undefined) return undefined;\n return value;\n}\n\nfunction normalizeCustomerInfo(value: RequestStatusCustomerInfo | null | undefined): RequestStatusCustomerInfo | null | undefined {\n if (value === undefined) return undefined;\n if (value === null) return null;\n return {\n firstName: value.firstName ?? undefined,\n lastName: value.lastName ?? undefined,\n email: value.email ?? undefined,\n address: value.address\n ? {\n street: value.address.street ?? undefined,\n city: value.address.city ?? undefined,\n state: value.address.state ?? undefined,\n postalCode: value.address.postalCode ?? undefined,\n country: value.address.country ?? undefined,\n }\n : undefined,\n };\n}\n\nfunction normalizePayments(payments: StatusApiResponseV2[\"payments\"]): Array<Record<string, unknown>> | undefined {\n if (!payments) return undefined;\n return payments.map((payment) => ({ ...payment })) as Array<Record<string, unknown>>;\n}\n\nfunction buildStatusBase(\n raw: LegacyStatusApiResponse | StatusApiResponseV2,\n overrides?: Partial<RequestStatusBase>,\n): RequestStatusBase {\n return {\n paymentReference: raw.paymentReference ?? undefined,\n requestId: raw.requestId ?? undefined,\n isListening: \"isListening\" in raw ? raw.isListening ?? undefined : undefined,\n txHash: raw.txHash ?? null,\n hasBeenPaid: raw.hasBeenPaid ?? false,\n status: \"status\" in raw ? (raw).status ?? undefined : undefined,\n recurrence:\n \"recurrence\" in raw ? ((raw).recurrence as Record<string, unknown> | undefined) : undefined,\n originalRequestId: \"originalRequestId\" in raw ? (raw).originalRequestId ?? undefined : undefined,\n originalRequestPaymentReference:\n \"originalRequestPaymentReference\" in raw\n ? (raw).originalRequestPaymentReference ?? undefined\n : undefined,\n isRecurrenceStopped:\n \"isRecurrenceStopped\" in raw ? (raw).isRecurrenceStopped ?? undefined : undefined,\n isCryptoToFiatAvailable:\n \"isCryptoToFiatAvailable\" in raw\n ? (raw).isCryptoToFiatAvailable ?? undefined\n : undefined,\n payments: \"payments\" in raw ? normalizePayments((raw).payments) : undefined,\n customerInfo:\n \"customerInfo\" in raw\n ? normalizeCustomerInfo(\n (raw).customerInfo as RequestStatusCustomerInfo | null | undefined,\n )\n : undefined,\n reference:\n \"reference\" in raw ? normalizeReference((raw).reference ?? null) : undefined,\n ...overrides,\n };\n}\n\nexport function normalizeLegacyStatusResponse(raw: LegacyStatusApiResponse): LegacyRequestStatusResult {\n if (raw.hasBeenPaid) {\n return {\n kind: \"paid\",\n ...buildStatusBase(raw, { hasBeenPaid: true }),\n hasBeenPaid: true,\n };\n }\n\n return {\n kind: \"pending\",\n ...buildStatusBase(raw, { hasBeenPaid: false }),\n hasBeenPaid: false,\n };\n}\n\nexport function normalizeRequestStatusResponse(raw: StatusApiResponseV2): RequestStatusResult {\n const statusKey = raw.status?.trim().toLowerCase();\n const mapped = statusKey ? STATUS_KIND_MAP[statusKey] : undefined;\n const kind: RequestStatusKind = raw.hasBeenPaid\n ? \"paid\"\n : mapped ?? (statusKey ? \"unknown\" : \"pending\");\n\n if (kind === \"paid\") {\n return {\n kind,\n ...buildStatusBase(raw, { hasBeenPaid: true }),\n hasBeenPaid: true,\n };\n }\n\n return {\n kind,\n ...buildStatusBase(raw, { hasBeenPaid: false }),\n hasBeenPaid: false,\n };\n}\n","import type { RuntimeValidationConfig, RuntimeValidationOption } from \"./http.types\";\n\nconst DEFAULT_RUNTIME_VALIDATION: RuntimeValidationConfig = {\n requests: true,\n responses: true,\n errors: true,\n};\n\nfunction normaliseBoolean(flag: boolean | undefined, fallback: boolean): boolean {\n return typeof flag === \"boolean\" ? flag : fallback;\n}\n\nexport function normaliseRuntimeValidation(option?: RuntimeValidationOption): RuntimeValidationConfig {\n if (typeof option === \"boolean\") {\n return {\n requests: option,\n responses: option,\n errors: option,\n } satisfies RuntimeValidationConfig;\n }\n\n return {\n requests: normaliseBoolean(option?.requests, DEFAULT_RUNTIME_VALIDATION.requests),\n responses: normaliseBoolean(option?.responses, DEFAULT_RUNTIME_VALIDATION.responses),\n errors: normaliseBoolean(option?.errors, DEFAULT_RUNTIME_VALIDATION.errors),\n } satisfies RuntimeValidationConfig;\n}\n\nexport function mergeRuntimeValidation(base: RuntimeValidationConfig, override?: RuntimeValidationOption): RuntimeValidationConfig {\n if (override === undefined) {\n return base;\n }\n\n if (typeof override === \"boolean\") {\n return {\n requests: override,\n responses: override,\n errors: override,\n } satisfies RuntimeValidationConfig;\n }\n\n return {\n requests: normaliseBoolean(override.requests, base.requests),\n responses: normaliseBoolean(override.responses, base.responses),\n errors: normaliseBoolean(override.errors, base.errors),\n } satisfies RuntimeValidationConfig;\n}\n\nexport function cloneRuntimeValidation(config: RuntimeValidationConfig): RuntimeValidationConfig {\n return { ...config };\n}\n","import type { ZodTypeAny } from \"zod\";\n\nexport type SchemaKind = \"request\" | \"response\" | \"webhook\";\n\nexport interface SchemaKey {\n operationId: string;\n kind: SchemaKind;\n variant?: string;\n status?: number;\n}\n\nexport interface SchemaEntry<TSchema extends ZodTypeAny = ZodTypeAny> {\n key: SchemaKey;\n schema: TSchema;\n}\n\nfunction serialiseKey(key: SchemaKey): string {\n const variant = key.variant ?? \"default\";\n const status = key.status?.toString() ?? \"any\";\n return `${key.operationId}|${key.kind}|${variant}|${status}`;\n}\n\n/**\n * Lightweight registry that associates OpenAPI operation IDs with validation schemas.\n * Generators can populate this map while domain modules retrieve the schemas at runtime.\n */\nexport class SchemaRegistry {\n private readonly store = new Map<string, SchemaEntry>();\n\n register(entry: SchemaEntry): void {\n const id = serialiseKey(entry.key);\n this.store.set(id, entry);\n }\n\n get(key: SchemaKey): ZodTypeAny | undefined {\n const id = serialiseKey(key);\n return this.store.get(id)?.schema;\n }\n\n /**\n * Removes every registered schema — primarily useful in tests.\n */\n clear(): void {\n this.store.clear();\n }\n}\n\nexport const schemaRegistry = new SchemaRegistry();\n","import { type SafeParseReturnType, type ZodTypeAny } from \"zod\";\n\nimport type { SchemaKey } from \"./schema.registry\";\nimport { schemaRegistry } from \"./schema.registry\";\n\nexport type SchemaOutput<TSchema extends ZodTypeAny> = TSchema[\"_output\"];\n\nexport interface ParseWithSchemaOptions<TSchema extends ZodTypeAny> {\n schema: TSchema;\n value: unknown;\n description?: string;\n}\n\nexport interface ParseRegistryOptions {\n key: SchemaKey;\n value: unknown;\n description?: string;\n skipOnMissingSchema?: boolean;\n}\n\nexport interface ParseResult<T> {\n success: boolean;\n data?: T;\n error?: unknown;\n}\n\nexport class ValidationError extends Error {\n constructor(message: string, readonly cause?: unknown) {\n super(message, { cause });\n this.name = \"ClientValidationError\";\n }\n}\n\nexport function parseWithSchema<TSchema extends ZodTypeAny>(\n options: ParseWithSchemaOptions<TSchema>,\n): ParseResult<SchemaOutput<TSchema>> {\n const { schema, value, description } = options;\n const outcome: SafeParseReturnType<unknown, SchemaOutput<TSchema>> = schema.safeParse(value);\n if (outcome.success) {\n return { success: true, data: outcome.data };\n }\n\n const error = new ValidationError(description ?? \"Validation failed\", outcome.error);\n return { success: false, error };\n}\n\nexport function parseWithRegistry<TSchema extends ZodTypeAny>(options: ParseRegistryOptions): ParseResult<SchemaOutput<TSchema>> {\n const schema = schemaRegistry.get(options.key) as TSchema | undefined;\n if (!schema) {\n if (options.skipOnMissingSchema) {\n return { success: true, data: options.value as SchemaOutput<TSchema> };\n }\n return { success: false, error: new ValidationError(`No schema registered for ${options.key.operationId}`) };\n }\n\n return parseWithSchema({ schema, value: options.value, description: options.description });\n}\n","import type { HttpClient, HttpMethod, RequestOptions, RuntimeValidationOption } from \"./http.types\";\nimport { mergeRuntimeValidation } from \"./validation.config\";\nimport type { SchemaKey } from \"../../validation/schema.registry\";\nimport { parseWithRegistry } from \"../../validation/zod.helpers\";\n\ntype Query = NonNullable<RequestOptions[\"query\"]>;\n\nexport interface RequestJsonParams {\n operationId: string;\n method: HttpMethod;\n path: string;\n query?: Query;\n body?: unknown;\n schemaKey: SchemaKey;\n requestSchemaKey?: SchemaKey;\n description?: string;\n querySerializer?: RequestOptions[\"querySerializer\"];\n signal?: RequestOptions[\"signal\"];\n timeoutMs?: RequestOptions[\"timeoutMs\"];\n validation?: RuntimeValidationOption;\n meta?: RequestOptions[\"meta\"];\n}\n\nexport async function requestJson<T>(http: HttpClient, params: RequestJsonParams): Promise<T> {\n const {\n operationId,\n method,\n path,\n query,\n body,\n schemaKey,\n requestSchemaKey,\n description,\n querySerializer,\n signal,\n timeoutMs,\n validation,\n meta,\n } = params;\n\n const runtimeValidation = mergeRuntimeValidation(http.getRuntimeValidationConfig(), validation);\n\n let requestBody = body;\n if (runtimeValidation.requests && requestSchemaKey && body !== undefined) {\n const parsedRequest = parseWithRegistry({\n key: requestSchemaKey,\n value: body,\n description: `${description ?? operationId} request`,\n skipOnMissingSchema: true,\n });\n if (!parsedRequest.success) {\n throw parsedRequest.error;\n }\n requestBody = parsedRequest.data;\n }\n\n const metaValidation = validation ?? meta?.validation;\n const requestMeta: RequestOptions[\"meta\"] = {\n ...(meta ?? {}),\n operationId,\n validation: metaValidation,\n };\n\n const res = await http.request({\n method,\n path,\n query,\n body: requestBody,\n querySerializer,\n signal,\n timeoutMs,\n meta: requestMeta,\n });\n\n if (!runtimeValidation.responses) {\n return res.data as T;\n }\n\n const parsedResponse = parseWithRegistry({ key: schemaKey, value: res.data, description });\n if (!parsedResponse.success) throw parsedResponse.error;\n return parsedResponse.data as T;\n}\n\nexport interface RequestVoidParams {\n operationId: string;\n method: HttpMethod;\n path: string;\n query?: Query;\n body?: unknown;\n querySerializer?: RequestOptions[\"querySerializer\"];\n signal?: RequestOptions[\"signal\"];\n timeoutMs?: RequestOptions[\"timeoutMs\"];\n requestSchemaKey?: SchemaKey;\n validation?: RuntimeValidationOption;\n meta?: RequestOptions[\"meta\"];\n}\n\nexport async function requestVoid(http: HttpClient, params: RequestVoidParams): Promise<void> {\n const { operationId, method, path, query, body, querySerializer, signal, timeoutMs, requestSchemaKey, validation, meta } = params;\n\n const runtimeValidation = mergeRuntimeValidation(http.getRuntimeValidationConfig(), validation);\n\n let requestBody = body;\n if (runtimeValidation.requests && requestSchemaKey && body !== undefined) {\n const parsedRequest = parseWithRegistry({\n key: requestSchemaKey,\n value: body,\n description: `${operationId} request`,\n skipOnMissingSchema: true,\n });\n if (!parsedRequest.success) {\n throw parsedRequest.error;\n }\n requestBody = parsedRequest.data;\n }\n\n const metaValidation = validation ?? meta?.validation;\n const requestMeta: RequestOptions[\"meta\"] = {\n ...(meta ?? {}),\n operationId,\n validation: metaValidation,\n };\n\n await http.request({\n method,\n path,\n query,\n body: requestBody,\n querySerializer,\n signal,\n timeoutMs,\n meta: requestMeta,\n });\n}\n","import { buildRequestQuery, normalizeRequestStatusResponse, type RequestStatusResult } from \"./request.helpers\";\nimport type { HttpClient, RequestOptions, RuntimeValidationOption } from \"../../core/http/http.types\";\nimport { requestJson, requestVoid } from \"../../core/http/operation.helper\";\nimport type { operations } from \"../../generated/openapi-types\";\nimport { ValidationError } from \"../../validation/zod.helpers\";\n\nconst OP_CREATE = \"RequestControllerV2_createRequest_v2\" as const;\nconst OP_PAYMENT_ROUTES = \"RequestControllerV2_getRequestPaymentRoutes_v2\" as const;\nconst OP_PAYMENT_CALLDATA = \"RequestControllerV2_getPaymentCalldata_v2\" as const;\nconst OP_UPDATE = \"RequestControllerV2_updateRequest_v2\" as const;\nconst OP_SEND_PAYMENT_INTENT = \"RequestControllerV2_sendPaymentIntent_v2\" as const;\nconst OP_REQUEST_STATUS = \"RequestControllerV2_getRequestStatus_v2\" as const;\n\ntype CreateRequestBody = operations[typeof OP_CREATE][\"requestBody\"][\"content\"][\"application/json\"];\ntype CreateRequestResponse = operations[typeof OP_CREATE][\"responses\"][201][\"content\"][\"application/json\"];\n\nexport type PaymentRoutesResponse = operations[typeof OP_PAYMENT_ROUTES][\"responses\"][200][\"content\"][\"application/json\"];\nexport type PaymentRoute = PaymentRoutesResponse[\"routes\"][number];\ntype PaymentRoutesQuery = NonNullable<operations[typeof OP_PAYMENT_ROUTES][\"parameters\"][\"query\"]>;\n\ntype PaymentCalldataQuery = NonNullable<operations[typeof OP_PAYMENT_CALLDATA][\"parameters\"][\"query\"]>;\ntype RawPaymentCalldata = operations[typeof OP_PAYMENT_CALLDATA][\"responses\"][200][\"content\"][\"application/json\"];\ntype RequestStatusResponse = operations[typeof OP_REQUEST_STATUS][\"responses\"][200][\"content\"][\"application/json\"];\n\ntype PaymentIntentPayload = Extract<RawPaymentCalldata, { paymentIntentId: string }>;\ntype CalldataPayload = Extract<RawPaymentCalldata, { transactions: unknown }>;\n\nconst KIND_CALLDATA = \"calldata\" as const;\nconst KIND_PAYMENT_INTENT = \"paymentIntent\" as const;\n\nfunction isPaymentIntentPayload(payload: RawPaymentCalldata): payload is PaymentIntentPayload {\n return \"paymentIntentId\" in payload;\n}\n\nfunction isCalldataPayload(payload: RawPaymentCalldata): payload is CalldataPayload {\n return \"transactions\" in payload;\n}\n\ntype SendPaymentIntentBody = operations[typeof OP_SEND_PAYMENT_INTENT][\"requestBody\"][\"content\"][\"application/json\"];\n\nexport interface RequestOperationOptions {\n signal?: AbortSignal;\n timeoutMs?: number;\n validation?: RuntimeValidationOption;\n meta?: RequestOptions[\"meta\"];\n}\n\nexport type GetPaymentRoutesOptions = RequestOperationOptions & {\n wallet: PaymentRoutesQuery[\"wallet\"];\n} & Partial<Omit<PaymentRoutesQuery, \"wallet\">>;\n\nexport type GetPaymentCalldataOptions = RequestOperationOptions & Partial<PaymentCalldataQuery>;\n\nexport type PaymentCalldataResult =\n | ({ kind: \"calldata\" } & CalldataPayload)\n | ({ kind: \"paymentIntent\" } & PaymentIntentPayload);\nexport type { RequestStatusResult };\n\nexport interface RequestsApi {\n create(body: CreateRequestBody, options?: RequestOperationOptions): Promise<CreateRequestResponse>;\n getPaymentRoutes(requestId: string, options: GetPaymentRoutesOptions): Promise<PaymentRoutesResponse>;\n getPaymentCalldata(requestId: string, options?: GetPaymentCalldataOptions): Promise<PaymentCalldataResult>;\n getRequestStatus(requestId: string, options?: RequestOperationOptions): Promise<RequestStatusResult>;\n update(requestId: string, options?: RequestOperationOptions): Promise<void>;\n sendPaymentIntent(paymentIntentId: string, body: SendPaymentIntentBody, options?: RequestOperationOptions): Promise<void>;\n}\n\nexport function createRequestsApi(http: HttpClient): RequestsApi {\n return {\n async create(body: CreateRequestBody, options?: RequestOperationOptions) {\n return requestJson<CreateRequestResponse>(http, {\n operationId: OP_CREATE,\n method: \"POST\",\n path: \"/v2/request\",\n body,\n requestSchemaKey: { operationId: OP_CREATE, kind: \"request\", variant: \"application/json\" },\n schemaKey: { operationId: OP_CREATE, kind: \"response\", status: 201 },\n description: \"Create request\",\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n },\n\n async getRequestStatus(requestId: string, options?: RequestOperationOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}`;\n const raw = await requestJson<RequestStatusResponse>(http, {\n operationId: OP_REQUEST_STATUS,\n method: \"GET\",\n path,\n schemaKey: { operationId: OP_REQUEST_STATUS, kind: \"response\", status: 200 },\n description: \"Request status\",\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n\n return normalizeRequestStatusResponse(raw);\n },\n\n async getPaymentRoutes(requestId: string, options: GetPaymentRoutesOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}/routes`;\n return requestJson<PaymentRoutesResponse>(http, {\n operationId: OP_PAYMENT_ROUTES,\n method: \"GET\",\n path,\n query: buildRequestQuery({\n wallet: options.wallet,\n amount: options.amount,\n feePercentage: options.feePercentage,\n feeAddress: options.feeAddress,\n }),\n schemaKey: { operationId: OP_PAYMENT_ROUTES, kind: \"response\", status: 200 },\n description: \"Payment routes\",\n signal: options.signal,\n timeoutMs: options.timeoutMs,\n validation: options.validation,\n meta: options.meta,\n });\n },\n\n async getPaymentCalldata(requestId: string, options?: GetPaymentCalldataOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}/pay`;\n const queryInput: Record<string, unknown> = {\n wallet: options?.wallet,\n chain: options?.chain,\n token: options?.token,\n amount: options?.amount,\n clientUserId: options?.clientUserId,\n paymentDetailsId: options?.paymentDetailsId,\n feePercentage: options?.feePercentage,\n feeAddress: options?.feeAddress,\n };\n const raw = await requestJson<RawPaymentCalldata>(http, {\n operationId: OP_PAYMENT_CALLDATA,\n method: \"GET\",\n path,\n query: buildRequestQuery(queryInput),\n schemaKey: { operationId: OP_PAYMENT_CALLDATA, kind: \"response\", status: 200 },\n description: \"Payment calldata\",\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n\n if (isCalldataPayload(raw)) {\n return { kind: KIND_CALLDATA, ...raw };\n }\n if (isPaymentIntentPayload(raw)) {\n return { kind: KIND_PAYMENT_INTENT, ...raw };\n }\n\n throw new ValidationError(\"Unexpected payment calldata response\", raw);\n },\n\n async update(requestId: string, options?: RequestOperationOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}`;\n await requestVoid(http, {\n operationId: OP_UPDATE,\n method: \"PATCH\",\n path,\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n },\n\n async sendPaymentIntent(paymentIntentId: string, body: SendPaymentIntentBody, options?: RequestOperationOptions) {\n const path = `/v2/request/payment-intents/${encodeURIComponent(paymentIntentId)}`;\n await requestVoid(http, {\n operationId: OP_SEND_PAYMENT_INTENT,\n method: \"POST\",\n path,\n body,\n requestSchemaKey: { operationId: OP_SEND_PAYMENT_INTENT, kind: \"request\", variant: \"application/json\" },\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n },\n };\n}\n","// Auto-generated by scripts/generate-zod.mjs. Do not edit.\nimport { z } from 'zod';\n\nimport { schemaRegistry } from '../../schema.registry';\n\nconst ErrorDetailSchema = z\n .object({\n message: z.string(),\n code: z.string().optional(),\n field: z.string().optional(),\n source: z\n .object({\n pointer: z.string().optional(),\n parameter: z.string().optional(),\n })\n .passthrough()\n .optional(),\n meta: z.record(z.unknown()).optional(),\n })\n .passthrough();\n\nconst ErrorEnvelopeSchema = z\n .object({\n status: z.number().optional(),\n statusCode: z.number().optional(),\n code: z.string().optional(),\n error: z.string().optional(),\n message: z\n .union([\n z.string(),\n z.array(z.union([z.string(), ErrorDetailSchema])),\n ErrorDetailSchema,\n ])\n .optional(),\n detail: z.unknown().optional(),\n errors: z.array(ErrorDetailSchema).optional(),\n requestId: z.string().optional(),\n correlationId: z.string().optional(),\n retryAfter: z.union([z.number(), z.string()]).optional(),\n retryAfterMs: z.number().optional(),\n meta: z.record(z.unknown()).optional(),\n })\n .passthrough();\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 request (application/json)\nexport const RequestControllerV1_createRequest_v1_Request = z.object({ \"payer\": (z.string()).optional(), \"payee\": z.string(), \"amount\": z.string(), \"invoiceCurrency\": z.string(), \"paymentCurrency\": z.string(), \"recurrence\": (z.object({ \"startDate\": z.string(), \"frequency\": z.enum(['DAILY', 'WEEKLY', 'MONTHLY', 'YEARLY']) }).passthrough()).optional() }).passthrough();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'request', variant: 'application/json' }, schema: RequestControllerV1_createRequest_v1_Request });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (201)\nexport const RequestControllerV1_createRequest_v1_201 = z.object({ \"paymentReference\": (z.string()).optional(), \"requestID\": (z.string()).optional() }).passthrough();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 201 }, schema: RequestControllerV1_createRequest_v1_201 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (400)\nexport const RequestControllerV1_createRequest_v1_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 400 }, schema: RequestControllerV1_createRequest_v1_400 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (401)\nexport const RequestControllerV1_createRequest_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_createRequest_v1_401 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (404)\nexport const RequestControllerV1_createRequest_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_createRequest_v1_404 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (429)\nexport const RequestControllerV1_createRequest_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_createRequest_v1_429 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_getRequestStatus_v1_200 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (401)\nexport const RequestControllerV1_getRequestStatus_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_getRequestStatus_v1_401 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (404)\nexport const RequestControllerV1_getRequestStatus_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_getRequestStatus_v1_404 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (429)\nexport const RequestControllerV1_getRequestStatus_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_getRequestStatus_v1_429 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (200)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_200 = z.unknown();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_200 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (401)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_401 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (404)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_404 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (429)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_429 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (200)\nexport const 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()]);\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_getPaymentCalldata_v1_200 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (400)\nexport const RequestControllerV1_getPaymentCalldata_v1_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 400 }, schema: RequestControllerV1_getPaymentCalldata_v1_400 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (401)\nexport const RequestControllerV1_getPaymentCalldata_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_getPaymentCalldata_v1_401 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (404)\nexport const RequestControllerV1_getPaymentCalldata_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_getPaymentCalldata_v1_404 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (429)\nexport const RequestControllerV1_getPaymentCalldata_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_getPaymentCalldata_v1_429 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_200 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (400)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 400 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_400 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (401)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_401 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (404)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_404 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (429)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_429 });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 request (application/json)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'request', variant: 'application/json' }, schema: RequestControllerV1_sendPaymentIntent_v1_Request });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 (401)\nexport const RequestControllerV1_sendPaymentIntent_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_sendPaymentIntent_v1_401 });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 (404)\nexport const RequestControllerV1_sendPaymentIntent_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_sendPaymentIntent_v1_404 });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 (429)\nexport const RequestControllerV1_sendPaymentIntent_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_sendPaymentIntent_v1_429 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 request (application/json)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'request', variant: 'application/json' }, schema: RequestControllerV2_createRequest_v2_Request });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (201)\nexport const RequestControllerV2_createRequest_v2_201 = z.object({ \"paymentReference\": (z.string()).optional(), \"requestId\": (z.string()).optional() }).passthrough();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 201 }, schema: RequestControllerV2_createRequest_v2_201 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (400)\nexport const RequestControllerV2_createRequest_v2_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 400 }, schema: RequestControllerV2_createRequest_v2_400 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (404)\nexport const RequestControllerV2_createRequest_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_createRequest_v2_404 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (429)\nexport const RequestControllerV2_createRequest_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_createRequest_v2_429 });\n\n// GET /v2/request/{requestId} -> RequestControllerV2_getRequestStatus_v2 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestStatus_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_getRequestStatus_v2_200 });\n\n// GET /v2/request/{requestId} -> RequestControllerV2_getRequestStatus_v2 (404)\nexport const RequestControllerV2_getRequestStatus_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestStatus_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_getRequestStatus_v2_404 });\n\n// GET /v2/request/{requestId} -> RequestControllerV2_getRequestStatus_v2 (429)\nexport const RequestControllerV2_getRequestStatus_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestStatus_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_getRequestStatus_v2_429 });\n\n// PATCH /v2/request/{requestId} -> RequestControllerV2_updateRequest_v2 (200)\nexport const RequestControllerV2_updateRequest_v2_200 = z.unknown();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_updateRequest_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_updateRequest_v2_200 });\n\n// PATCH /v2/request/{requestId} -> RequestControllerV2_updateRequest_v2 (404)\nexport const RequestControllerV2_updateRequest_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_updateRequest_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_updateRequest_v2_404 });\n\n// PATCH /v2/request/{requestId} -> RequestControllerV2_updateRequest_v2 (429)\nexport const RequestControllerV2_updateRequest_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_updateRequest_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_updateRequest_v2_429 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (200)\nexport const 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()]);\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_getPaymentCalldata_v2_200 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (400)\nexport const RequestControllerV2_getPaymentCalldata_v2_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 400 }, schema: RequestControllerV2_getPaymentCalldata_v2_400 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (404)\nexport const RequestControllerV2_getPaymentCalldata_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_getPaymentCalldata_v2_404 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (429)\nexport const RequestControllerV2_getPaymentCalldata_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_getPaymentCalldata_v2_429 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_200 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (400)\nexport const RequestControllerV2_getRequestPaymentRoutes_v2_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 400 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_400 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (404)\nexport const RequestControllerV2_getRequestPaymentRoutes_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_404 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (429)\nexport const RequestControllerV2_getRequestPaymentRoutes_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_429 });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 request (application/json)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'request', variant: 'application/json' }, schema: RequestControllerV2_sendPaymentIntent_v2_Request });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 (200)\nexport const RequestControllerV2_sendPaymentIntent_v2_200 = z.unknown();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_sendPaymentIntent_v2_200 });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 (404)\nexport const RequestControllerV2_sendPaymentIntent_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_sendPaymentIntent_v2_404 });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 (429)\nexport const RequestControllerV2_sendPaymentIntent_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_sendPaymentIntent_v2_429 });\n","import { z } from \"zod\";\n\nimport { RequestControllerV2_getRequestStatus_v2_200 as BaseRequestStatusSchema } from \"../generated/groups/request.schemas.generated\";\nimport { schemaRegistry } from \"../schema.registry\";\n\nconst NullableRequestStatusSchema = z.preprocess((value) => {\n if (!value || typeof value !== \"object\") {\n return value;\n }\n\n const next = { ...value } as Record<string, unknown>;\n\n if (next.recurrence === null) {\n delete next.recurrence;\n }\n\n if (next.originalRequestId === null) {\n next.originalRequestId = undefined;\n }\n\n if (next.originalRequestPaymentReference === null) {\n next.originalRequestPaymentReference = undefined;\n }\n\n return next;\n}, BaseRequestStatusSchema);\n\nschemaRegistry.register({\n key: { operationId: \"RequestControllerV2_getRequestStatus_v2\", kind: \"response\", status: 200 },\n schema: NullableRequestStatusSchema,\n});\n","import { z } from \"zod\";\n\nimport { schemaRegistry } from \"../schema.registry\";\n\nconst FlexibleRoutesSchema = z\n .object({\n routes: z.array(\n z\n .object({\n fee: z.union([z.number(), z.string()]).optional(),\n })\n .passthrough(),\n ),\n })\n .passthrough();\n\nschemaRegistry.register({\n key: { operationId: \"RequestControllerV2_getRequestPaymentRoutes_v2\", kind: \"response\", status: 200 },\n schema: FlexibleRoutesSchema,\n});\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/domains/requests/request.helpers.ts","../../../../src/core/http/validation.config.ts","../../../../src/validation/schema.registry.ts","../../../../src/validation/zod.helpers.ts","../../../../src/core/http/operation.helper.ts","../../../../src/domains/requests/requests.facade.ts","../../../../src/validation/generated/groups/request.schemas.generated.ts","../../../../src/validation/overrides/request-status.schema.ts","../../../../src/validation/overrides/request-payment-routes.schema.ts"],"names":["z"],"mappings":";;;AASO,SAAS,kBAAkB,KAAA,EAAsE;AACtG,EAAA,IAAI,CAAC,OAAO,OAAO,MAAA;AACnB,EAAA,MAAM,OAAA,GAAU,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAA,CAAE,MAAA,CAAO,CAAC,GAAG,KAAK,CAAA,KAAM,KAAA,KAAU,MAAS,CAAA;AAC/E,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AACjC,EAAA,OAAO,MAAA,CAAO,YAAY,OAAO,CAAA;AACnC;AAkDA,IAAM,eAAA,GAAqD;AAAA,EACzD,IAAA,EAAM,MAAA;AAAA,EACN,SAAA,EAAW,MAAA;AAAA,EACX,OAAA,EAAS,MAAA;AAAA,EACT,OAAA,EAAS,SAAA;AAAA,EACT,UAAA,EAAY,SAAA;AAAA,EACZ,IAAA,EAAM,SAAA;AAAA,EACN,eAAA,EAAiB,SAAA;AAAA,EACjB,gBAAA,EAAkB,SA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KAAK,EAAE,WAAA,EAAa,2CAA2C,IAAA,EAAM,UAAA,EAAY,QAAQ,GAAA,EAAI;AAAA,EAC7F,MAAA,EAAQ;AACV,CAAC,CAAA;AC1BD,IAAM,oBAAA,GAAuBA,EAC1B,MAAA,CAAO;AAAA,EACN,QAAQA,CAAAA,CAAE,KAAA;AAAA,IACRA,EACG,MAAA,CAAO;AAAA,MACN,GAAA,EAAKA,CAAAA,CAAE,KAAA,CAAM,CAACA,CAAAA,CAAE,MAAA,EAAO,EAAGA,CAAAA,CAAE,MAAA,EAAQ,CAAC,CAAA,CAAE,QAAA;AAAS,KACjD,EACA,WAAA;AAAY;AAEnB,CAAC,EACA,WAAA,EAAY;AAEf,cAAA,CAAe,QAAA,CAAS;AAAA,EACtB,KAAK,EAAE,WAAA,EAAa,kDAAkD,IAAA,EAAM,UAAA,EAAY,QAAQ,GAAA,EAAI;AAAA,EACpG,MAAA,EAAQ;AACV,CAAC,CAAA","file":"index.js","sourcesContent":["import type { RequestOptions } from \"../../core/http/http.types\";\nimport type { operations } from \"../../generated/openapi-types\";\n\ntype QueryValue = string | number | boolean | (string | number | boolean)[];\n\n/**\n * Builds a query object while stripping out undefined entries so the HTTP helper\n * does not emit spurious `param=undefined` pairs.\n */\nexport function buildRequestQuery(input?: Record<string, unknown>): RequestOptions[\"query\"] | undefined {\n if (!input) return undefined;\n const entries = Object.entries(input).filter(([, value]) => value !== undefined);\n if (entries.length === 0) return undefined;\n return Object.fromEntries(entries) as Record<string, QueryValue | undefined>;\n}\n\ntype LegacyStatusApiResponse =\n operations[\"RequestControllerV1_getRequestStatus_v1\"][\"responses\"][200][\"content\"][\"application/json\"];\ntype StatusApiResponseV2 =\n operations[\"RequestControllerV2_getRequestStatus_v2\"][\"responses\"][200][\"content\"][\"application/json\"];\n\nexport interface RequestStatusAddress {\n street?: string;\n city?: string;\n state?: string;\n postalCode?: string;\n country?: string;\n}\n\nexport interface RequestStatusCustomerInfo {\n firstName?: string;\n lastName?: string;\n email?: string;\n address?: RequestStatusAddress;\n}\n\nexport type RequestStatusKind = \"paid\" | \"pending\" | \"cancelled\" | \"overdue\" | \"unknown\";\n\ninterface RequestStatusBase {\n paymentReference?: string;\n requestId?: string;\n isListening?: boolean;\n txHash: string | null;\n status?: string;\n recurrence?: Record<string, unknown>;\n originalRequestId?: string;\n originalRequestPaymentReference?: string;\n isRecurrenceStopped?: boolean;\n isCryptoToFiatAvailable?: boolean;\n payments?: Array<Record<string, unknown>>;\n customerInfo?: RequestStatusCustomerInfo | null;\n reference?: string | null;\n hasBeenPaid?: boolean;\n}\n\nexport type RequestStatusResult =\n | (RequestStatusBase & { kind: \"paid\"; hasBeenPaid: true })\n | (RequestStatusBase & { kind: \"pending\"; hasBeenPaid?: boolean })\n | (RequestStatusBase & { kind: \"cancelled\"; hasBeenPaid?: boolean })\n | (RequestStatusBase & { kind: \"overdue\"; hasBeenPaid?: boolean })\n | (RequestStatusBase & { kind: \"unknown\"; hasBeenPaid?: boolean });\n\nexport type LegacyRequestStatusResult = Extract<RequestStatusResult, { kind: \"paid\" | \"pending\" }>;\n\nconst STATUS_KIND_MAP: Record<string, RequestStatusKind> = {\n paid: \"paid\",\n completed: \"paid\",\n settled: \"paid\",\n pending: \"pending\",\n processing: \"pending\",\n open: \"pending\",\n awaitingpayment: \"pending\",\n awaiting_payment: \"pending\",\n cancelled: \"cancelled\",\n canceled: \"cancelled\",\n voided: \"cancelled\",\n overdue: \"overdue\",\n expired: \"overdue\",\n};\n\nfunction normalizeReference(value: string | null | undefined): string | null | undefined {\n if (value === undefined) return undefined;\n return value;\n}\n\nfunction normalizeCustomerInfo(value: RequestStatusCustomerInfo | null | undefined): RequestStatusCustomerInfo | null | undefined {\n if (value === undefined) return undefined;\n if (value === null) return null;\n return {\n firstName: value.firstName ?? undefined,\n lastName: value.lastName ?? undefined,\n email: value.email ?? undefined,\n address: value.address\n ? {\n street: value.address.street ?? undefined,\n city: value.address.city ?? undefined,\n state: value.address.state ?? undefined,\n postalCode: value.address.postalCode ?? undefined,\n country: value.address.country ?? undefined,\n }\n : undefined,\n };\n}\n\nfunction normalizePayments(payments: StatusApiResponseV2[\"payments\"]): Array<Record<string, unknown>> | undefined {\n if (!payments) return undefined;\n return payments.map((payment) => ({ ...payment })) as Array<Record<string, unknown>>;\n}\n\nfunction buildStatusBase(\n raw: LegacyStatusApiResponse | StatusApiResponseV2,\n overrides?: Partial<RequestStatusBase>,\n): RequestStatusBase {\n return {\n paymentReference: raw.paymentReference ?? undefined,\n requestId: raw.requestId ?? undefined,\n isListening: \"isListening\" in raw ? raw.isListening ?? undefined : undefined,\n txHash: raw.txHash ?? null,\n hasBeenPaid: raw.hasBeenPaid ?? false,\n status: \"status\" in raw ? (raw).status ?? undefined : undefined,\n recurrence:\n \"recurrence\" in raw ? ((raw).recurrence as Record<string, unknown> | undefined) : undefined,\n originalRequestId: \"originalRequestId\" in raw ? (raw).originalRequestId ?? undefined : undefined,\n originalRequestPaymentReference:\n \"originalRequestPaymentReference\" in raw\n ? (raw).originalRequestPaymentReference ?? undefined\n : undefined,\n isRecurrenceStopped:\n \"isRecurrenceStopped\" in raw ? (raw).isRecurrenceStopped ?? undefined : undefined,\n isCryptoToFiatAvailable:\n \"isCryptoToFiatAvailable\" in raw\n ? (raw).isCryptoToFiatAvailable ?? undefined\n : undefined,\n payments: \"payments\" in raw ? normalizePayments((raw).payments) : undefined,\n customerInfo:\n \"customerInfo\" in raw\n ? normalizeCustomerInfo(\n (raw).customerInfo as RequestStatusCustomerInfo | null | undefined,\n )\n : undefined,\n reference:\n \"reference\" in raw ? normalizeReference((raw).reference ?? null) : undefined,\n ...overrides,\n };\n}\n\nexport function normalizeLegacyStatusResponse(raw: LegacyStatusApiResponse): LegacyRequestStatusResult {\n if (raw.hasBeenPaid) {\n return {\n kind: \"paid\",\n ...buildStatusBase(raw, { hasBeenPaid: true }),\n hasBeenPaid: true,\n };\n }\n\n return {\n kind: \"pending\",\n ...buildStatusBase(raw, { hasBeenPaid: false }),\n hasBeenPaid: false,\n };\n}\n\nexport function normalizeRequestStatusResponse(raw: StatusApiResponseV2): RequestStatusResult {\n const statusKey = raw.status?.trim().toLowerCase();\n const mapped = statusKey ? STATUS_KIND_MAP[statusKey] : undefined;\n const kind: RequestStatusKind = raw.hasBeenPaid\n ? \"paid\"\n : mapped ?? (statusKey ? \"unknown\" : \"pending\");\n\n if (kind === \"paid\") {\n return {\n kind,\n ...buildStatusBase(raw, { hasBeenPaid: true }),\n hasBeenPaid: true,\n };\n }\n\n return {\n kind,\n ...buildStatusBase(raw, { hasBeenPaid: false }),\n hasBeenPaid: false,\n };\n}\n","import type { RuntimeValidationConfig, RuntimeValidationOption } from \"./http.types\";\n\nconst DEFAULT_RUNTIME_VALIDATION: RuntimeValidationConfig = {\n requests: true,\n responses: true,\n errors: true,\n};\n\nfunction normaliseBoolean(flag: boolean | undefined, fallback: boolean): boolean {\n return typeof flag === \"boolean\" ? flag : fallback;\n}\n\nexport function normaliseRuntimeValidation(option?: RuntimeValidationOption): RuntimeValidationConfig {\n if (typeof option === \"boolean\") {\n return {\n requests: option,\n responses: option,\n errors: option,\n } satisfies RuntimeValidationConfig;\n }\n\n return {\n requests: normaliseBoolean(option?.requests, DEFAULT_RUNTIME_VALIDATION.requests),\n responses: normaliseBoolean(option?.responses, DEFAULT_RUNTIME_VALIDATION.responses),\n errors: normaliseBoolean(option?.errors, DEFAULT_RUNTIME_VALIDATION.errors),\n } satisfies RuntimeValidationConfig;\n}\n\nexport function mergeRuntimeValidation(base: RuntimeValidationConfig, override?: RuntimeValidationOption): RuntimeValidationConfig {\n if (override === undefined) {\n return base;\n }\n\n if (typeof override === \"boolean\") {\n return {\n requests: override,\n responses: override,\n errors: override,\n } satisfies RuntimeValidationConfig;\n }\n\n return {\n requests: normaliseBoolean(override.requests, base.requests),\n responses: normaliseBoolean(override.responses, base.responses),\n errors: normaliseBoolean(override.errors, base.errors),\n } satisfies RuntimeValidationConfig;\n}\n\nexport function cloneRuntimeValidation(config: RuntimeValidationConfig): RuntimeValidationConfig {\n return { ...config };\n}\n","import type { ZodTypeAny } from \"zod\";\n\nexport type SchemaKind = \"request\" | \"response\" | \"webhook\";\n\nexport interface SchemaKey {\n operationId: string;\n kind: SchemaKind;\n variant?: string;\n status?: number;\n}\n\nexport interface SchemaEntry<TSchema extends ZodTypeAny = ZodTypeAny> {\n key: SchemaKey;\n schema: TSchema;\n}\n\nfunction serialiseKey(key: SchemaKey): string {\n const variant = key.variant ?? \"default\";\n const status = key.status?.toString() ?? \"any\";\n return `${key.operationId}|${key.kind}|${variant}|${status}`;\n}\n\n/**\n * Lightweight registry that associates OpenAPI operation IDs with validation schemas.\n * Generators can populate this map while domain modules retrieve the schemas at runtime.\n */\nexport class SchemaRegistry {\n private readonly store = new Map<string, SchemaEntry>();\n\n register(entry: SchemaEntry): void {\n const id = serialiseKey(entry.key);\n this.store.set(id, entry);\n }\n\n get(key: SchemaKey): ZodTypeAny | undefined {\n const id = serialiseKey(key);\n return this.store.get(id)?.schema;\n }\n\n /**\n * Removes every registered schema — primarily useful in tests.\n */\n clear(): void {\n this.store.clear();\n }\n}\n\nexport const schemaRegistry = new SchemaRegistry();\n","import { type SafeParseReturnType, type ZodTypeAny } from \"zod\";\n\nimport type { SchemaKey } from \"./schema.registry\";\nimport { schemaRegistry } from \"./schema.registry\";\n\nexport type SchemaOutput<TSchema extends ZodTypeAny> = TSchema[\"_output\"];\n\nexport interface ParseWithSchemaOptions<TSchema extends ZodTypeAny> {\n schema: TSchema;\n value: unknown;\n description?: string;\n}\n\nexport interface ParseRegistryOptions {\n key: SchemaKey;\n value: unknown;\n description?: string;\n skipOnMissingSchema?: boolean;\n}\n\nexport interface ParseResult<T> {\n success: boolean;\n data?: T;\n error?: unknown;\n}\n\nexport class ValidationError extends Error {\n constructor(message: string, readonly cause?: unknown) {\n super(message, { cause });\n this.name = \"ClientValidationError\";\n }\n}\n\nexport function parseWithSchema<TSchema extends ZodTypeAny>(\n options: ParseWithSchemaOptions<TSchema>,\n): ParseResult<SchemaOutput<TSchema>> {\n const { schema, value, description } = options;\n const outcome: SafeParseReturnType<unknown, SchemaOutput<TSchema>> = schema.safeParse(value);\n if (outcome.success) {\n return { success: true, data: outcome.data };\n }\n\n const error = new ValidationError(description ?? \"Validation failed\", outcome.error);\n return { success: false, error };\n}\n\nexport function parseWithRegistry<TSchema extends ZodTypeAny>(options: ParseRegistryOptions): ParseResult<SchemaOutput<TSchema>> {\n const schema = schemaRegistry.get(options.key) as TSchema | undefined;\n if (!schema) {\n if (options.skipOnMissingSchema) {\n return { success: true, data: options.value as SchemaOutput<TSchema> };\n }\n return { success: false, error: new ValidationError(`No schema registered for ${options.key.operationId}`) };\n }\n\n return parseWithSchema({ schema, value: options.value, description: options.description });\n}\n","import type { HttpClient, HttpMethod, RequestOptions, RuntimeValidationOption } from \"./http.types\";\nimport { mergeRuntimeValidation } from \"./validation.config\";\nimport type { SchemaKey } from \"../../validation/schema.registry\";\nimport { parseWithRegistry } from \"../../validation/zod.helpers\";\n\ntype Query = NonNullable<RequestOptions[\"query\"]>;\n\nexport interface RequestJsonParams {\n operationId: string;\n method: HttpMethod;\n path: string;\n query?: Query;\n body?: unknown;\n schemaKey: SchemaKey;\n requestSchemaKey?: SchemaKey;\n description?: string;\n querySerializer?: RequestOptions[\"querySerializer\"];\n signal?: RequestOptions[\"signal\"];\n timeoutMs?: RequestOptions[\"timeoutMs\"];\n validation?: RuntimeValidationOption;\n meta?: RequestOptions[\"meta\"];\n}\n\nexport async function requestJson<T>(http: HttpClient, params: RequestJsonParams): Promise<T> {\n const {\n operationId,\n method,\n path,\n query,\n body,\n schemaKey,\n requestSchemaKey,\n description,\n querySerializer,\n signal,\n timeoutMs,\n validation,\n meta,\n } = params;\n\n const runtimeValidation = mergeRuntimeValidation(http.getRuntimeValidationConfig(), validation);\n\n let requestBody = body;\n if (runtimeValidation.requests && requestSchemaKey && body !== undefined) {\n const parsedRequest = parseWithRegistry({\n key: requestSchemaKey,\n value: body,\n description: `${description ?? operationId} request`,\n skipOnMissingSchema: true,\n });\n if (!parsedRequest.success) {\n throw parsedRequest.error;\n }\n requestBody = parsedRequest.data;\n }\n\n const metaValidation = validation ?? meta?.validation;\n const requestMeta: RequestOptions[\"meta\"] = {\n ...(meta ?? {}),\n operationId,\n validation: metaValidation,\n };\n\n const res = await http.request({\n method,\n path,\n query,\n body: requestBody,\n querySerializer,\n signal,\n timeoutMs,\n meta: requestMeta,\n });\n\n if (!runtimeValidation.responses) {\n return res.data as T;\n }\n\n const parsedResponse = parseWithRegistry({ key: schemaKey, value: res.data, description });\n if (!parsedResponse.success) throw parsedResponse.error;\n return parsedResponse.data as T;\n}\n\nexport interface RequestVoidParams {\n operationId: string;\n method: HttpMethod;\n path: string;\n query?: Query;\n body?: unknown;\n querySerializer?: RequestOptions[\"querySerializer\"];\n signal?: RequestOptions[\"signal\"];\n timeoutMs?: RequestOptions[\"timeoutMs\"];\n requestSchemaKey?: SchemaKey;\n validation?: RuntimeValidationOption;\n meta?: RequestOptions[\"meta\"];\n}\n\nexport async function requestVoid(http: HttpClient, params: RequestVoidParams): Promise<void> {\n const { operationId, method, path, query, body, querySerializer, signal, timeoutMs, requestSchemaKey, validation, meta } = params;\n\n const runtimeValidation = mergeRuntimeValidation(http.getRuntimeValidationConfig(), validation);\n\n let requestBody = body;\n if (runtimeValidation.requests && requestSchemaKey && body !== undefined) {\n const parsedRequest = parseWithRegistry({\n key: requestSchemaKey,\n value: body,\n description: `${operationId} request`,\n skipOnMissingSchema: true,\n });\n if (!parsedRequest.success) {\n throw parsedRequest.error;\n }\n requestBody = parsedRequest.data;\n }\n\n const metaValidation = validation ?? meta?.validation;\n const requestMeta: RequestOptions[\"meta\"] = {\n ...(meta ?? {}),\n operationId,\n validation: metaValidation,\n };\n\n await http.request({\n method,\n path,\n query,\n body: requestBody,\n querySerializer,\n signal,\n timeoutMs,\n meta: requestMeta,\n });\n}\n","import { buildRequestQuery, normalizeRequestStatusResponse, type RequestStatusResult } from \"./request.helpers\";\nimport type { HttpClient, RequestOptions, RuntimeValidationOption } from \"../../core/http/http.types\";\nimport { requestJson, requestVoid } from \"../../core/http/operation.helper\";\nimport type { operations } from \"../../generated/openapi-types\";\nimport { ValidationError } from \"../../validation/zod.helpers\";\n\nconst OP_CREATE = \"RequestControllerV2_createRequest_v2\" as const;\nconst OP_PAYMENT_ROUTES = \"RequestControllerV2_getRequestPaymentRoutes_v2\" as const;\nconst OP_PAYMENT_CALLDATA = \"RequestControllerV2_getPaymentCalldata_v2\" as const;\nconst OP_UPDATE = \"RequestControllerV2_updateRequest_v2\" as const;\nconst OP_SEND_PAYMENT_INTENT = \"RequestControllerV2_sendPaymentIntent_v2\" as const;\nconst OP_REQUEST_STATUS = \"RequestControllerV2_getRequestStatus_v2\" as const;\n\ntype CreateRequestBody = operations[typeof OP_CREATE][\"requestBody\"][\"content\"][\"application/json\"];\ntype CreateRequestResponse = operations[typeof OP_CREATE][\"responses\"][201][\"content\"][\"application/json\"];\n\nexport type PaymentRoutesResponse = operations[typeof OP_PAYMENT_ROUTES][\"responses\"][200][\"content\"][\"application/json\"];\nexport type PaymentRoute = PaymentRoutesResponse[\"routes\"][number];\ntype PaymentRoutesQuery = NonNullable<operations[typeof OP_PAYMENT_ROUTES][\"parameters\"][\"query\"]>;\n\ntype PaymentCalldataQuery = NonNullable<operations[typeof OP_PAYMENT_CALLDATA][\"parameters\"][\"query\"]>;\ntype RawPaymentCalldata = operations[typeof OP_PAYMENT_CALLDATA][\"responses\"][200][\"content\"][\"application/json\"];\ntype RequestStatusResponse = operations[typeof OP_REQUEST_STATUS][\"responses\"][200][\"content\"][\"application/json\"];\n\ntype PaymentIntentPayload = Extract<RawPaymentCalldata, { paymentIntentId: string }>;\ntype CalldataPayload = Extract<RawPaymentCalldata, { transactions: unknown }>;\n\nconst KIND_CALLDATA = \"calldata\" as const;\nconst KIND_PAYMENT_INTENT = \"paymentIntent\" as const;\n\nfunction isPaymentIntentPayload(payload: RawPaymentCalldata): payload is PaymentIntentPayload {\n return \"paymentIntentId\" in payload;\n}\n\nfunction isCalldataPayload(payload: RawPaymentCalldata): payload is CalldataPayload {\n return \"transactions\" in payload;\n}\n\ntype SendPaymentIntentBody = operations[typeof OP_SEND_PAYMENT_INTENT][\"requestBody\"][\"content\"][\"application/json\"];\n\nexport interface RequestOperationOptions {\n signal?: AbortSignal;\n timeoutMs?: number;\n validation?: RuntimeValidationOption;\n meta?: RequestOptions[\"meta\"];\n}\n\nexport type GetPaymentRoutesOptions = RequestOperationOptions & {\n wallet: PaymentRoutesQuery[\"wallet\"];\n} & Partial<Omit<PaymentRoutesQuery, \"wallet\">>;\n\nexport type GetPaymentCalldataOptions = RequestOperationOptions & Partial<PaymentCalldataQuery>;\n\nexport type PaymentCalldataResult =\n | ({ kind: \"calldata\" } & CalldataPayload)\n | ({ kind: \"paymentIntent\" } & PaymentIntentPayload);\nexport type { RequestStatusResult };\n\nexport interface RequestsApi {\n create(body: CreateRequestBody, options?: RequestOperationOptions): Promise<CreateRequestResponse>;\n getPaymentRoutes(requestId: string, options: GetPaymentRoutesOptions): Promise<PaymentRoutesResponse>;\n getPaymentCalldata(requestId: string, options?: GetPaymentCalldataOptions): Promise<PaymentCalldataResult>;\n getRequestStatus(requestId: string, options?: RequestOperationOptions): Promise<RequestStatusResult>;\n update(requestId: string, options?: RequestOperationOptions): Promise<void>;\n sendPaymentIntent(paymentIntentId: string, body: SendPaymentIntentBody, options?: RequestOperationOptions): Promise<void>;\n}\n\nexport function createRequestsApi(http: HttpClient): RequestsApi {\n return {\n async create(body: CreateRequestBody, options?: RequestOperationOptions) {\n return requestJson<CreateRequestResponse>(http, {\n operationId: OP_CREATE,\n method: \"POST\",\n path: \"/v2/request\",\n body,\n requestSchemaKey: { operationId: OP_CREATE, kind: \"request\", variant: \"application/json\" },\n schemaKey: { operationId: OP_CREATE, kind: \"response\", status: 201 },\n description: \"Create request\",\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n },\n\n async getRequestStatus(requestId: string, options?: RequestOperationOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}`;\n const raw = await requestJson<RequestStatusResponse>(http, {\n operationId: OP_REQUEST_STATUS,\n method: \"GET\",\n path,\n schemaKey: { operationId: OP_REQUEST_STATUS, kind: \"response\", status: 200 },\n description: \"Request status\",\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n\n return normalizeRequestStatusResponse(raw);\n },\n\n async getPaymentRoutes(requestId: string, options: GetPaymentRoutesOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}/routes`;\n return requestJson<PaymentRoutesResponse>(http, {\n operationId: OP_PAYMENT_ROUTES,\n method: \"GET\",\n path,\n query: buildRequestQuery({\n wallet: options.wallet,\n amount: options.amount,\n feePercentage: options.feePercentage,\n feeAddress: options.feeAddress,\n }),\n schemaKey: { operationId: OP_PAYMENT_ROUTES, kind: \"response\", status: 200 },\n description: \"Payment routes\",\n signal: options.signal,\n timeoutMs: options.timeoutMs,\n validation: options.validation,\n meta: options.meta,\n });\n },\n\n async getPaymentCalldata(requestId: string, options?: GetPaymentCalldataOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}/pay`;\n const queryInput: Record<string, unknown> = {\n wallet: options?.wallet,\n chain: options?.chain,\n token: options?.token,\n amount: options?.amount,\n clientUserId: options?.clientUserId,\n paymentDetailsId: options?.paymentDetailsId,\n feePercentage: options?.feePercentage,\n feeAddress: options?.feeAddress,\n };\n const raw = await requestJson<RawPaymentCalldata>(http, {\n operationId: OP_PAYMENT_CALLDATA,\n method: \"GET\",\n path,\n query: buildRequestQuery(queryInput),\n schemaKey: { operationId: OP_PAYMENT_CALLDATA, kind: \"response\", status: 200 },\n description: \"Payment calldata\",\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n\n if (isCalldataPayload(raw)) {\n return { kind: KIND_CALLDATA, ...raw };\n }\n if (isPaymentIntentPayload(raw)) {\n return { kind: KIND_PAYMENT_INTENT, ...raw };\n }\n\n throw new ValidationError(\"Unexpected payment calldata response\", raw);\n },\n\n async update(requestId: string, options?: RequestOperationOptions) {\n const path = `/v2/request/${encodeURIComponent(requestId)}`;\n await requestVoid(http, {\n operationId: OP_UPDATE,\n method: \"PATCH\",\n path,\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n },\n\n async sendPaymentIntent(paymentIntentId: string, body: SendPaymentIntentBody, options?: RequestOperationOptions) {\n const path = `/v2/request/payment-intents/${encodeURIComponent(paymentIntentId)}`;\n await requestVoid(http, {\n operationId: OP_SEND_PAYMENT_INTENT,\n method: \"POST\",\n path,\n body,\n requestSchemaKey: { operationId: OP_SEND_PAYMENT_INTENT, kind: \"request\", variant: \"application/json\" },\n signal: options?.signal,\n timeoutMs: options?.timeoutMs,\n validation: options?.validation,\n meta: options?.meta,\n });\n },\n };\n}\n","// Auto-generated by scripts/generate-zod.mjs. Do not edit.\nimport { z } from 'zod';\n\nimport { schemaRegistry } from '../../schema.registry';\n\nconst ErrorDetailSchema = z\n .object({\n message: z.string(),\n code: z.string().optional(),\n field: z.string().optional(),\n source: z\n .object({\n pointer: z.string().optional(),\n parameter: z.string().optional(),\n })\n .passthrough()\n .optional(),\n meta: z.record(z.unknown()).optional(),\n })\n .passthrough();\n\nconst ErrorEnvelopeSchema = z\n .object({\n status: z.number().optional(),\n statusCode: z.number().optional(),\n code: z.string().optional(),\n error: z.string().optional(),\n message: z\n .union([\n z.string(),\n z.array(z.union([z.string(), ErrorDetailSchema])),\n ErrorDetailSchema,\n ])\n .optional(),\n detail: z.unknown().optional(),\n errors: z.array(ErrorDetailSchema).optional(),\n requestId: z.string().optional(),\n correlationId: z.string().optional(),\n retryAfter: z.union([z.number(), z.string()]).optional(),\n retryAfterMs: z.number().optional(),\n meta: z.record(z.unknown()).optional(),\n })\n .passthrough();\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 request (application/json)\nexport const RequestControllerV1_createRequest_v1_Request = z.object({ \"payer\": (z.string()).optional(), \"payee\": z.string(), \"amount\": z.string(), \"invoiceCurrency\": z.string(), \"paymentCurrency\": z.string(), \"recurrence\": (z.object({ \"startDate\": z.string(), \"frequency\": z.enum(['DAILY', 'WEEKLY', 'MONTHLY', 'YEARLY']) }).passthrough()).optional() }).passthrough();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'request', variant: 'application/json' }, schema: RequestControllerV1_createRequest_v1_Request });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (201)\nexport const RequestControllerV1_createRequest_v1_201 = z.object({ \"paymentReference\": (z.string()).optional(), \"requestID\": (z.string()).optional() }).passthrough();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 201 }, schema: RequestControllerV1_createRequest_v1_201 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (400)\nexport const RequestControllerV1_createRequest_v1_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 400 }, schema: RequestControllerV1_createRequest_v1_400 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (401)\nexport const RequestControllerV1_createRequest_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_createRequest_v1_401 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (404)\nexport const RequestControllerV1_createRequest_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_createRequest_v1_404 });\n\n// POST /v1/request -> RequestControllerV1_createRequest_v1 (429)\nexport const RequestControllerV1_createRequest_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_createRequest_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_createRequest_v1_429 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_getRequestStatus_v1_200 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (401)\nexport const RequestControllerV1_getRequestStatus_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_getRequestStatus_v1_401 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (404)\nexport const RequestControllerV1_getRequestStatus_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_getRequestStatus_v1_404 });\n\n// GET /v1/request/{paymentReference} -> RequestControllerV1_getRequestStatus_v1 (429)\nexport const RequestControllerV1_getRequestStatus_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestStatus_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_getRequestStatus_v1_429 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (200)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_200 = z.unknown();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_200 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (401)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_401 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (404)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_404 });\n\n// PATCH /v1/request/{paymentReference}/stop-recurrence -> RequestControllerV1_stopRecurrenceRequest_v1 (429)\nexport const RequestControllerV1_stopRecurrenceRequest_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_stopRecurrenceRequest_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_429 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (200)\nexport const 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(), \"paymentTransactionIndex\": (z.number().nullable()).optional(), \"hasEnoughBalance\": (z.boolean()).optional(), \"hasEnoughGas\": (z.boolean()).optional() }).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()]);\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_getPaymentCalldata_v1_200 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (400)\nexport const RequestControllerV1_getPaymentCalldata_v1_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 400 }, schema: RequestControllerV1_getPaymentCalldata_v1_400 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (401)\nexport const RequestControllerV1_getPaymentCalldata_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_getPaymentCalldata_v1_401 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (404)\nexport const RequestControllerV1_getPaymentCalldata_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_getPaymentCalldata_v1_404 });\n\n// GET /v1/request/{paymentReference}/pay -> RequestControllerV1_getPaymentCalldata_v1 (429)\nexport const RequestControllerV1_getPaymentCalldata_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getPaymentCalldata_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_getPaymentCalldata_v1_429 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 200 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_200 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (400)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 400 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_400 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (401)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_401 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (404)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_404 });\n\n// GET /v1/request/{paymentReference}/routes -> RequestControllerV1_getRequestPaymentRoutes_v1 (429)\nexport const RequestControllerV1_getRequestPaymentRoutes_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_getRequestPaymentRoutes_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_getRequestPaymentRoutes_v1_429 });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 request (application/json)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'request', variant: 'application/json' }, schema: RequestControllerV1_sendPaymentIntent_v1_Request });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 (401)\nexport const RequestControllerV1_sendPaymentIntent_v1_401 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'response', status: 401 }, schema: RequestControllerV1_sendPaymentIntent_v1_401 });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 (404)\nexport const RequestControllerV1_sendPaymentIntent_v1_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'response', status: 404 }, schema: RequestControllerV1_sendPaymentIntent_v1_404 });\n\n// POST /v1/request/{paymentIntentId}/send -> RequestControllerV1_sendPaymentIntent_v1 (429)\nexport const RequestControllerV1_sendPaymentIntent_v1_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV1_sendPaymentIntent_v1', kind: 'response', status: 429 }, schema: RequestControllerV1_sendPaymentIntent_v1_429 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 request (application/json)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'request', variant: 'application/json' }, schema: RequestControllerV2_createRequest_v2_Request });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (201)\nexport const RequestControllerV2_createRequest_v2_201 = z.object({ \"paymentReference\": (z.string()).optional(), \"requestId\": (z.string()).optional() }).passthrough();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 201 }, schema: RequestControllerV2_createRequest_v2_201 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (400)\nexport const RequestControllerV2_createRequest_v2_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 400 }, schema: RequestControllerV2_createRequest_v2_400 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (404)\nexport const RequestControllerV2_createRequest_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_createRequest_v2_404 });\n\n// POST /v2/request -> RequestControllerV2_createRequest_v2 (429)\nexport const RequestControllerV2_createRequest_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_createRequest_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_createRequest_v2_429 });\n\n// GET /v2/request/{requestId} -> RequestControllerV2_getRequestStatus_v2 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestStatus_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_getRequestStatus_v2_200 });\n\n// GET /v2/request/{requestId} -> RequestControllerV2_getRequestStatus_v2 (404)\nexport const RequestControllerV2_getRequestStatus_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestStatus_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_getRequestStatus_v2_404 });\n\n// GET /v2/request/{requestId} -> RequestControllerV2_getRequestStatus_v2 (429)\nexport const RequestControllerV2_getRequestStatus_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestStatus_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_getRequestStatus_v2_429 });\n\n// PATCH /v2/request/{requestId} -> RequestControllerV2_updateRequest_v2 (200)\nexport const RequestControllerV2_updateRequest_v2_200 = z.unknown();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_updateRequest_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_updateRequest_v2_200 });\n\n// PATCH /v2/request/{requestId} -> RequestControllerV2_updateRequest_v2 (404)\nexport const RequestControllerV2_updateRequest_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_updateRequest_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_updateRequest_v2_404 });\n\n// PATCH /v2/request/{requestId} -> RequestControllerV2_updateRequest_v2 (429)\nexport const RequestControllerV2_updateRequest_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_updateRequest_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_updateRequest_v2_429 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (200)\nexport const 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(), \"paymentTransactionIndex\": (z.number().nullable()).optional(), \"hasEnoughBalance\": (z.boolean()).optional(), \"hasEnoughGas\": (z.boolean()).optional() }).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()]);\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_getPaymentCalldata_v2_200 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (400)\nexport const RequestControllerV2_getPaymentCalldata_v2_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 400 }, schema: RequestControllerV2_getPaymentCalldata_v2_400 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (404)\nexport const RequestControllerV2_getPaymentCalldata_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_getPaymentCalldata_v2_404 });\n\n// GET /v2/request/{requestId}/pay -> RequestControllerV2_getPaymentCalldata_v2 (429)\nexport const RequestControllerV2_getPaymentCalldata_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getPaymentCalldata_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_getPaymentCalldata_v2_429 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (200)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_200 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (400)\nexport const RequestControllerV2_getRequestPaymentRoutes_v2_400 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 400 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_400 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (404)\nexport const RequestControllerV2_getRequestPaymentRoutes_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_404 });\n\n// GET /v2/request/{requestId}/routes -> RequestControllerV2_getRequestPaymentRoutes_v2 (429)\nexport const RequestControllerV2_getRequestPaymentRoutes_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_getRequestPaymentRoutes_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_getRequestPaymentRoutes_v2_429 });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 request (application/json)\nexport const 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();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'request', variant: 'application/json' }, schema: RequestControllerV2_sendPaymentIntent_v2_Request });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 (200)\nexport const RequestControllerV2_sendPaymentIntent_v2_200 = z.unknown();\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'response', status: 200 }, schema: RequestControllerV2_sendPaymentIntent_v2_200 });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 (404)\nexport const RequestControllerV2_sendPaymentIntent_v2_404 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'response', status: 404 }, schema: RequestControllerV2_sendPaymentIntent_v2_404 });\n\n// POST /v2/request/payment-intents/{paymentIntentId} -> RequestControllerV2_sendPaymentIntent_v2 (429)\nexport const RequestControllerV2_sendPaymentIntent_v2_429 = ErrorEnvelopeSchema;\nschemaRegistry.register({ key: { operationId: 'RequestControllerV2_sendPaymentIntent_v2', kind: 'response', status: 429 }, schema: RequestControllerV2_sendPaymentIntent_v2_429 });\n","import { z } from \"zod\";\n\nimport { RequestControllerV2_getRequestStatus_v2_200 as BaseRequestStatusSchema } from \"../generated/groups/request.schemas.generated\";\nimport { schemaRegistry } from \"../schema.registry\";\n\nconst NullableRequestStatusSchema = z.preprocess((value) => {\n if (!value || typeof value !== \"object\") {\n return value;\n }\n\n const next = { ...value } as Record<string, unknown>;\n\n if (next.recurrence === null) {\n delete next.recurrence;\n }\n\n if (next.originalRequestId === null) {\n next.originalRequestId = undefined;\n }\n\n if (next.originalRequestPaymentReference === null) {\n next.originalRequestPaymentReference = undefined;\n }\n\n return next;\n}, BaseRequestStatusSchema);\n\nschemaRegistry.register({\n key: { operationId: \"RequestControllerV2_getRequestStatus_v2\", kind: \"response\", status: 200 },\n schema: NullableRequestStatusSchema,\n});\n","import { z } from \"zod\";\n\nimport { schemaRegistry } from \"../schema.registry\";\n\nconst FlexibleRoutesSchema = z\n .object({\n routes: z.array(\n z\n .object({\n fee: z.union([z.number(), z.string()]).optional(),\n })\n .passthrough(),\n ),\n })\n .passthrough();\n\nschemaRegistry.register({\n key: { operationId: \"RequestControllerV2_getRequestPaymentRoutes_v2\", kind: \"response\", status: 200 },\n schema: FlexibleRoutesSchema,\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { o as operations, a as RuntimeValidationOption, b as HttpClient } from './openapi-types-CtUFCrk4.mjs';
|
|
2
|
+
import { o as operations, a as RuntimeValidationOption, b as HttpClient, c as RequestOptions } from './openapi-types-CtUFCrk4.mjs';
|
|
3
3
|
|
|
4
4
|
declare const CurrencyTokenSchema: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
@@ -192,6 +192,7 @@ interface CurrencyRequestOptions {
|
|
|
192
192
|
signal?: AbortSignal;
|
|
193
193
|
timeoutMs?: number;
|
|
194
194
|
validation?: RuntimeValidationOption;
|
|
195
|
+
meta?: RequestOptions["meta"];
|
|
195
196
|
}
|
|
196
197
|
interface CurrenciesApi {
|
|
197
198
|
list(query?: ListCurrenciesQuery, options?: CurrencyRequestOptions): Promise<CurrencyList>;
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ export { D as DEFAULT_RETRY_CONFIG, i as HttpMethod, d as RetryDecision, e as Re
|
|
|
4
4
|
import { ZodTypeAny, z } from 'zod';
|
|
5
5
|
import { C as ClientIdsApi } from './index-CNK36ZX5.mjs';
|
|
6
6
|
export { a as ClientIdResponse, i as clientIds } from './index-CNK36ZX5.mjs';
|
|
7
|
-
import { C as CurrenciesV1Api, a as CurrencyV1RequestOptions, G as GetConversionRoutesV1Query, L as ListCurrenciesV1Query, c as createCurrenciesV1Api, b as CurrenciesApi } from './index-
|
|
8
|
-
export { d as CurrencyToken, i as currencies } from './index-
|
|
7
|
+
import { C as CurrenciesV1Api, a as CurrencyV1RequestOptions, G as GetConversionRoutesV1Query, L as ListCurrenciesV1Query, c as createCurrenciesV1Api, b as CurrenciesApi } from './index-Bum0bfZQ.mjs';
|
|
8
|
+
export { d as CurrencyToken, i as currencies } from './index-Bum0bfZQ.mjs';
|
|
9
9
|
import { P as PayerV1Api, a as PayerV1OperationOptions, c as createPayerV1Api, b as PayerV2Api, d as PayerV2OperationOptions, e as createPayerV2Api, f as PayerApi } from './index-Q2g0D7V8.mjs';
|
|
10
10
|
export { i as payer } from './index-Q2g0D7V8.mjs';
|
|
11
11
|
import { P as PayoutsApi } from './index-Cd7x0Hv-.mjs';
|
package/dist/esm/index.js
CHANGED
|
@@ -639,6 +639,65 @@ 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
|
+
}
|
|
642
701
|
function mapToError(res, req, validation) {
|
|
643
702
|
const operationId = req.meta?.operationId;
|
|
644
703
|
const rawPayload = asRecord(res.data);
|
|
@@ -656,11 +715,25 @@ function mapToError(res, req, validation) {
|
|
|
656
715
|
}
|
|
657
716
|
payload = asRecord(parsed.data);
|
|
658
717
|
}
|
|
718
|
+
const captureErrorContext = req.meta?.captureErrorContext === true;
|
|
659
719
|
const error = buildRequestApiError({
|
|
660
720
|
payload,
|
|
661
721
|
status: res.status,
|
|
662
722
|
headers: res.headers,
|
|
663
|
-
fallbackMessage: res.text ?? `HTTP ${String(res.status)}
|
|
723
|
+
fallbackMessage: res.text ?? `HTTP ${String(res.status)}`,
|
|
724
|
+
meta: captureErrorContext ? {
|
|
725
|
+
request: {
|
|
726
|
+
method: req.method,
|
|
727
|
+
url: req.url,
|
|
728
|
+
headers: redactHeaders(req.headers),
|
|
729
|
+
hasBody: req.body != null
|
|
730
|
+
},
|
|
731
|
+
response: {
|
|
732
|
+
status: res.status,
|
|
733
|
+
headers: pickResponseHeaders(res.headers),
|
|
734
|
+
body: truncateForLogs(res.data ?? res.text)
|
|
735
|
+
}
|
|
736
|
+
} : void 0
|
|
664
737
|
});
|
|
665
738
|
throw error;
|
|
666
739
|
}
|
|
@@ -1183,7 +1256,8 @@ function createCurrenciesApi(http) {
|
|
|
1183
1256
|
description: DESCRIPTION_LIST2,
|
|
1184
1257
|
signal: options?.signal,
|
|
1185
1258
|
timeoutMs: options?.timeoutMs,
|
|
1186
|
-
validation: options?.validation
|
|
1259
|
+
validation: options?.validation,
|
|
1260
|
+
meta: options?.meta
|
|
1187
1261
|
});
|
|
1188
1262
|
const parsed = parseWithSchema({
|
|
1189
1263
|
schema: CurrenciesListSchema,
|
|
@@ -1205,7 +1279,8 @@ function createCurrenciesApi(http) {
|
|
|
1205
1279
|
description: DESCRIPTION_CONVERSION_ROUTES2,
|
|
1206
1280
|
signal: options?.signal,
|
|
1207
1281
|
timeoutMs: options?.timeoutMs,
|
|
1208
|
-
validation: options?.validation
|
|
1282
|
+
validation: options?.validation,
|
|
1283
|
+
meta: options?.meta
|
|
1209
1284
|
});
|
|
1210
1285
|
const parsed = parseWithSchema({
|
|
1211
1286
|
schema: ConversionRoutesSchema,
|
|
@@ -2188,7 +2263,7 @@ var RequestControllerV1_stopRecurrenceRequest_v1_404 = ErrorEnvelopeSchema6;
|
|
|
2188
2263
|
schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 404 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_404 });
|
|
2189
2264
|
var RequestControllerV1_stopRecurrenceRequest_v1_429 = ErrorEnvelopeSchema6;
|
|
2190
2265
|
schemaRegistry.register({ key: { operationId: "RequestControllerV1_stopRecurrenceRequest_v1", kind: "response", status: 429 }, schema: RequestControllerV1_stopRecurrenceRequest_v1_429 });
|
|
2191
|
-
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()]);
|
|
2266
|
+
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(), "paymentTransactionIndex": z.number().nullable().optional(), "hasEnoughBalance": z.boolean().optional(), "hasEnoughGas": z.boolean().optional() }).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
2267
|
schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 200 }, schema: RequestControllerV1_getPaymentCalldata_v1_200 });
|
|
2193
2268
|
var RequestControllerV1_getPaymentCalldata_v1_400 = ErrorEnvelopeSchema6;
|
|
2194
2269
|
schemaRegistry.register({ key: { operationId: "RequestControllerV1_getPaymentCalldata_v1", kind: "response", status: 400 }, schema: RequestControllerV1_getPaymentCalldata_v1_400 });
|
|
@@ -2238,7 +2313,7 @@ var RequestControllerV2_updateRequest_v2_404 = ErrorEnvelopeSchema6;
|
|
|
2238
2313
|
schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 404 }, schema: RequestControllerV2_updateRequest_v2_404 });
|
|
2239
2314
|
var RequestControllerV2_updateRequest_v2_429 = ErrorEnvelopeSchema6;
|
|
2240
2315
|
schemaRegistry.register({ key: { operationId: "RequestControllerV2_updateRequest_v2", kind: "response", status: 429 }, schema: RequestControllerV2_updateRequest_v2_429 });
|
|
2241
|
-
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()]);
|
|
2316
|
+
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(), "paymentTransactionIndex": z.number().nullable().optional(), "hasEnoughBalance": z.boolean().optional(), "hasEnoughGas": z.boolean().optional() }).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
2317
|
schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 200 }, schema: RequestControllerV2_getPaymentCalldata_v2_200 });
|
|
2243
2318
|
var RequestControllerV2_getPaymentCalldata_v2_400 = ErrorEnvelopeSchema6;
|
|
2244
2319
|
schemaRegistry.register({ key: { operationId: "RequestControllerV2_getPaymentCalldata_v2", kind: "response", status: 400 }, schema: RequestControllerV2_getPaymentCalldata_v2_400 });
|