@agentcash/discovery 1.1.1 → 1.1.3
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/dist/cli.cjs +31 -22
- package/dist/cli.js +31 -22
- package/dist/index.cjs +35 -21
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +35 -21
- package/dist/schemas.cjs +1 -2
- package/dist/schemas.d.cts +18 -90
- package/dist/schemas.d.ts +18 -90
- package/dist/schemas.js +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,12 +8,14 @@ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTION
|
|
|
8
8
|
|
|
9
9
|
interface MppPaymentOption {
|
|
10
10
|
protocol: 'mpp';
|
|
11
|
-
/** Payment method identifier, e.g. "tempo" (Tempo protocol). */
|
|
11
|
+
/** Payment method identifier, e.g. "tempo" (Tempo protocol). */
|
|
12
|
+
paymentMethod: string;
|
|
12
13
|
/** Payment intent type, e.g. "charge". */
|
|
13
14
|
intent: string;
|
|
14
15
|
/** Server protection realm. */
|
|
15
16
|
realm: string;
|
|
16
|
-
/** CAIP-2 style network identifier, e.g. "tempo:4217". */
|
|
17
|
+
/** CAIP-2 style network identifier, e.g. "tempo:4217". */
|
|
18
|
+
network: string;
|
|
17
19
|
/** Currency / token contract. */
|
|
18
20
|
asset: string;
|
|
19
21
|
/** Raw token-unit amount string. */
|
|
@@ -59,7 +61,7 @@ interface X402V2PaymentOption {
|
|
|
59
61
|
type X402PaymentOption = X402V1PaymentOption | X402V2PaymentOption;
|
|
60
62
|
type PaymentOption = X402PaymentOption | MppPaymentOption;
|
|
61
63
|
interface PricingHint {
|
|
62
|
-
pricingMode: PricingMode;
|
|
64
|
+
pricingMode: PricingMode | string;
|
|
63
65
|
price?: string;
|
|
64
66
|
minPrice?: string;
|
|
65
67
|
maxPrice?: string;
|
|
@@ -107,6 +109,7 @@ interface ProbeResult {
|
|
|
107
109
|
interface L2Result {
|
|
108
110
|
title?: string;
|
|
109
111
|
description?: string;
|
|
112
|
+
version?: string;
|
|
110
113
|
routes: L2Route[];
|
|
111
114
|
source: 'openapi' | 'well-known/x402' | null;
|
|
112
115
|
}
|
|
@@ -116,6 +119,7 @@ interface L2Route {
|
|
|
116
119
|
summary: string;
|
|
117
120
|
authMode?: AuthMode;
|
|
118
121
|
price?: string;
|
|
122
|
+
pricingMode?: string;
|
|
119
123
|
protocols?: string[];
|
|
120
124
|
}
|
|
121
125
|
interface L3Result {
|
|
@@ -163,6 +167,7 @@ interface DiscoverOriginSchemaSuccess {
|
|
|
163
167
|
info?: {
|
|
164
168
|
title: string;
|
|
165
169
|
description?: string;
|
|
170
|
+
version?: string;
|
|
166
171
|
};
|
|
167
172
|
/** Discovered endpoints with advisory pricing and auth metadata. */
|
|
168
173
|
endpoints: L2Route[];
|
|
@@ -195,6 +200,12 @@ interface CheckEndpointOptions {
|
|
|
195
200
|
*
|
|
196
201
|
*/
|
|
197
202
|
sampleInputBody?: Record<string, unknown>;
|
|
203
|
+
/**
|
|
204
|
+
* When true, skips OpenAPI lookup and probes the live endpoint directly.
|
|
205
|
+
* Use this to retrieve actual PaymentOptions (realm, payTo, network, asset, amount)
|
|
206
|
+
* from the 402 response rather than static OpenAPI metadata.
|
|
207
|
+
*/
|
|
208
|
+
probe?: boolean;
|
|
198
209
|
}
|
|
199
210
|
interface EndpointMethodAdvisory extends L3Result {
|
|
200
211
|
method: HttpMethod;
|
|
@@ -344,6 +355,7 @@ declare const AUDIT_CODES: {
|
|
|
344
355
|
readonly L2_AUTH_MODE_MISSING: "L2_AUTH_MODE_MISSING";
|
|
345
356
|
readonly L2_NO_PAID_ROUTES: "L2_NO_PAID_ROUTES";
|
|
346
357
|
readonly L2_PRICE_MISSING_ON_PAID: "L2_PRICE_MISSING_ON_PAID";
|
|
358
|
+
readonly L2_PRICING_MODE_UNKNOWN: "L2_PRICING_MODE_UNKNOWN";
|
|
347
359
|
readonly L2_PROTOCOLS_MISSING_ON_PAID: "L2_PROTOCOLS_MISSING_ON_PAID";
|
|
348
360
|
readonly L3_NOT_FOUND: "L3_NOT_FOUND";
|
|
349
361
|
readonly L3_INPUT_SCHEMA_MISSING: "L3_INPUT_SCHEMA_MISSING";
|
package/dist/index.js
CHANGED
|
@@ -13777,7 +13777,7 @@ config(en_default());
|
|
|
13777
13777
|
|
|
13778
13778
|
// src/schemas.ts
|
|
13779
13779
|
var OpenApiPaymentInfoSchema = external_exports.object({
|
|
13780
|
-
pricingMode: external_exports.
|
|
13780
|
+
pricingMode: external_exports.string(),
|
|
13781
13781
|
price: external_exports.string().optional(),
|
|
13782
13782
|
minPrice: external_exports.string().optional(),
|
|
13783
13783
|
maxPrice: external_exports.string().optional(),
|
|
@@ -13834,7 +13834,6 @@ var WellKnownDocSchema = external_exports.object({
|
|
|
13834
13834
|
version: external_exports.number().optional(),
|
|
13835
13835
|
resources: external_exports.array(external_exports.string()).default([]),
|
|
13836
13836
|
mppResources: external_exports.array(external_exports.string()).optional(),
|
|
13837
|
-
// isMmmEnabled
|
|
13838
13837
|
description: external_exports.string().optional(),
|
|
13839
13838
|
ownershipProofs: external_exports.array(external_exports.string()).optional(),
|
|
13840
13839
|
instructions: external_exports.string().optional()
|
|
@@ -13899,7 +13898,11 @@ var DEFAULT_MISSING_METHOD = "POST";
|
|
|
13899
13898
|
// src/core/lib/url.ts
|
|
13900
13899
|
function ensureProtocol(target) {
|
|
13901
13900
|
const trimmed = target.trim();
|
|
13902
|
-
|
|
13901
|
+
if (/^https?:\/\//i.test(trimmed)) return trimmed;
|
|
13902
|
+
const host = trimmed.split("/")[0] ?? "";
|
|
13903
|
+
const hostname3 = host.split(":")[0] ?? "";
|
|
13904
|
+
const isLocal = hostname3 === "localhost" || hostname3 === "127.0.0.1" || hostname3 === "::1";
|
|
13905
|
+
return `${isLocal ? "http" : "https"}://${trimmed}`;
|
|
13903
13906
|
}
|
|
13904
13907
|
function normalizeOrigin(target) {
|
|
13905
13908
|
const url2 = new URL(ensureProtocol(target));
|
|
@@ -13940,9 +13943,6 @@ function fetchSafe(url2, init) {
|
|
|
13940
13943
|
return ResultAsync.fromPromise(fetch(url2, init), toFetchError);
|
|
13941
13944
|
}
|
|
13942
13945
|
|
|
13943
|
-
// src/mmm-enabled.ts
|
|
13944
|
-
var isMmmEnabled = () => "1.1.1".includes("-mmm");
|
|
13945
|
-
|
|
13946
13946
|
// src/core/source/openapi/index.ts
|
|
13947
13947
|
var OpenApiParsedSchema = OpenApiDocSchema.transform((doc) => {
|
|
13948
13948
|
const routes = [];
|
|
@@ -13951,11 +13951,8 @@ var OpenApiParsedSchema = OpenApiDocSchema.transform((doc) => {
|
|
|
13951
13951
|
const operation = pathItem[httpMethod.toLowerCase()];
|
|
13952
13952
|
if (!operation) continue;
|
|
13953
13953
|
const authMode = inferAuthMode(operation, doc.security, doc.components?.securitySchemes) ?? void 0;
|
|
13954
|
-
if (!authMode) continue;
|
|
13955
13954
|
const p = operation["x-payment-info"];
|
|
13956
|
-
const protocols = (p?.protocols ?? []).filter(
|
|
13957
|
-
(proto) => proto !== "mpp" || isMmmEnabled()
|
|
13958
|
-
);
|
|
13955
|
+
const protocols = (p?.protocols ?? []).filter((proto) => proto.length > 0);
|
|
13959
13956
|
const pricing = (authMode === "paid" || authMode === "apiKey+paid") && p ? {
|
|
13960
13957
|
pricingMode: p.pricingMode,
|
|
13961
13958
|
...p.price ? { price: p.price } : {},
|
|
@@ -14053,7 +14050,9 @@ function getWellKnown(origin, headers, signal) {
|
|
|
14053
14050
|
function formatPrice(pricing) {
|
|
14054
14051
|
if (pricing.pricingMode === "fixed") return `$${pricing.price}`;
|
|
14055
14052
|
if (pricing.pricingMode === "range") return `$${pricing.minPrice}-$${pricing.maxPrice}`;
|
|
14056
|
-
|
|
14053
|
+
if (pricing.pricingMode === "quote")
|
|
14054
|
+
return pricing.maxPrice ? `up to $${pricing.maxPrice}` : "quote";
|
|
14055
|
+
return `unknown pricing mode: ${pricing.pricingMode}`;
|
|
14057
14056
|
}
|
|
14058
14057
|
function checkL2ForOpenAPI(openApi) {
|
|
14059
14058
|
const routes = openApi.routes.map((route) => ({
|
|
@@ -14061,12 +14060,13 @@ function checkL2ForOpenAPI(openApi) {
|
|
|
14061
14060
|
method: route.method,
|
|
14062
14061
|
summary: route.summary ?? `${route.method} ${route.path}`,
|
|
14063
14062
|
...route.authMode ? { authMode: route.authMode } : {},
|
|
14064
|
-
...route.pricing ? { price: formatPrice(route.pricing) } : {},
|
|
14063
|
+
...route.pricing ? { price: formatPrice(route.pricing), pricingMode: route.pricing.pricingMode } : {},
|
|
14065
14064
|
...route.protocols?.length ? { protocols: route.protocols } : {}
|
|
14066
14065
|
}));
|
|
14067
14066
|
return {
|
|
14068
14067
|
...openApi.info.title ? { title: openApi.info.title } : {},
|
|
14069
14068
|
...openApi.info.description ? { description: openApi.info.description } : {},
|
|
14069
|
+
...openApi.info.version ? { version: openApi.info.version } : {},
|
|
14070
14070
|
routes,
|
|
14071
14071
|
source: "openapi"
|
|
14072
14072
|
};
|
|
@@ -14137,7 +14137,13 @@ async function discoverOriginSchema(options) {
|
|
|
14137
14137
|
found: true,
|
|
14138
14138
|
origin,
|
|
14139
14139
|
source: "openapi",
|
|
14140
|
-
...l22.title ? {
|
|
14140
|
+
...l22.title ? {
|
|
14141
|
+
info: {
|
|
14142
|
+
title: l22.title,
|
|
14143
|
+
...l22.description ? { description: l22.description } : {},
|
|
14144
|
+
...l22.version ? { version: l22.version } : {}
|
|
14145
|
+
}
|
|
14146
|
+
} : {},
|
|
14141
14147
|
endpoints: l22.routes
|
|
14142
14148
|
};
|
|
14143
14149
|
return withGuidance(base2, l42, guidanceMode);
|
|
@@ -14591,7 +14597,7 @@ function detectProtocols(response) {
|
|
|
14591
14597
|
}
|
|
14592
14598
|
const authHeader = response.headers.get("www-authenticate")?.toLowerCase() ?? "";
|
|
14593
14599
|
if (authHeader.includes("x402")) protocols.add("x402");
|
|
14594
|
-
if (
|
|
14600
|
+
if (authHeader.includes("mpp")) protocols.add("mpp");
|
|
14595
14601
|
return [...protocols];
|
|
14596
14602
|
}
|
|
14597
14603
|
function buildProbeUrl(url2, method, inputBody) {
|
|
@@ -14671,7 +14677,7 @@ function parseAuthParams(segment) {
|
|
|
14671
14677
|
return params;
|
|
14672
14678
|
}
|
|
14673
14679
|
function extractPaymentOptions4(wwwAuthenticate) {
|
|
14674
|
-
if (!
|
|
14680
|
+
if (!wwwAuthenticate) return [];
|
|
14675
14681
|
const options = [];
|
|
14676
14682
|
for (const segment of wwwAuthenticate.split(/,\s*(?=Payment\s)/i)) {
|
|
14677
14683
|
const stripped = segment.replace(/^Payment\s+/i, "").trim();
|
|
@@ -14700,12 +14706,10 @@ function extractPaymentOptions4(wwwAuthenticate) {
|
|
|
14700
14706
|
if (!asset || !amount) continue;
|
|
14701
14707
|
options.push({
|
|
14702
14708
|
protocol: "mpp",
|
|
14703
|
-
// isMmmEnabled
|
|
14704
14709
|
paymentMethod,
|
|
14705
14710
|
intent,
|
|
14706
14711
|
realm,
|
|
14707
14712
|
network: `tempo:${String(chainId)}`,
|
|
14708
|
-
// isMmmEnabled
|
|
14709
14713
|
asset,
|
|
14710
14714
|
amount,
|
|
14711
14715
|
...decimals != null ? { decimals } : {},
|
|
@@ -14833,7 +14837,7 @@ function parseOperationProtocols(operation) {
|
|
|
14833
14837
|
const paymentInfo = operation["x-payment-info"];
|
|
14834
14838
|
if (!isRecord(paymentInfo) || !Array.isArray(paymentInfo.protocols)) return void 0;
|
|
14835
14839
|
const protocols = paymentInfo.protocols.filter(
|
|
14836
|
-
(protocol) => typeof protocol === "string" && protocol.length > 0
|
|
14840
|
+
(protocol) => typeof protocol === "string" && protocol.length > 0
|
|
14837
14841
|
);
|
|
14838
14842
|
return protocols.length > 0 ? protocols : void 0;
|
|
14839
14843
|
}
|
|
@@ -14864,8 +14868,7 @@ function getL3ForProbe(probe, path, method) {
|
|
|
14864
14868
|
const outputSchema = probeResult.paymentRequiredBody ? parseOutputSchema(probeResult.paymentRequiredBody) : void 0;
|
|
14865
14869
|
const paymentOptions = [
|
|
14866
14870
|
...probeResult.paymentRequiredBody ? extractPaymentOptions3(probeResult.paymentRequiredBody) : [],
|
|
14867
|
-
...
|
|
14868
|
-
// isMmmEnabled
|
|
14871
|
+
...extractPaymentOptions4(probeResult.wwwAuthenticate)
|
|
14869
14872
|
];
|
|
14870
14873
|
return {
|
|
14871
14874
|
source: "probe",
|
|
@@ -14909,7 +14912,7 @@ async function checkEndpointSchema(options) {
|
|
|
14909
14912
|
const endpoint = new URL(ensureProtocol(options.url));
|
|
14910
14913
|
const origin = normalizeOrigin(endpoint.origin);
|
|
14911
14914
|
const path = normalizePath(endpoint.pathname || "/");
|
|
14912
|
-
if (options.sampleInputBody !== void 0) {
|
|
14915
|
+
if (options.probe || options.sampleInputBody !== void 0) {
|
|
14913
14916
|
const probeResult2 = await getProbe(
|
|
14914
14917
|
endpoint.href,
|
|
14915
14918
|
options.headers,
|
|
@@ -15048,6 +15051,7 @@ var AUDIT_CODES = {
|
|
|
15048
15051
|
L2_AUTH_MODE_MISSING: "L2_AUTH_MODE_MISSING",
|
|
15049
15052
|
L2_NO_PAID_ROUTES: "L2_NO_PAID_ROUTES",
|
|
15050
15053
|
L2_PRICE_MISSING_ON_PAID: "L2_PRICE_MISSING_ON_PAID",
|
|
15054
|
+
L2_PRICING_MODE_UNKNOWN: "L2_PRICING_MODE_UNKNOWN",
|
|
15051
15055
|
L2_PROTOCOLS_MISSING_ON_PAID: "L2_PROTOCOLS_MISSING_ON_PAID",
|
|
15052
15056
|
// ─── L3 endpoint advisory checks ─────────────────────────────────────────────
|
|
15053
15057
|
L3_NOT_FOUND: "L3_NOT_FOUND",
|
|
@@ -15389,6 +15393,7 @@ function getWarningsForWellKnown(wellKnown) {
|
|
|
15389
15393
|
}
|
|
15390
15394
|
|
|
15391
15395
|
// src/audit/warnings/l2.ts
|
|
15396
|
+
var KNOWN_PRICING_MODES = /* @__PURE__ */ new Set(["fixed", "range", "quote"]);
|
|
15392
15397
|
var ROUTE_COUNT_HIGH = 40;
|
|
15393
15398
|
function getWarningsForL2(l2) {
|
|
15394
15399
|
const warnings = [];
|
|
@@ -15428,6 +15433,15 @@ function getWarningsForL2(l2) {
|
|
|
15428
15433
|
path: route.path
|
|
15429
15434
|
});
|
|
15430
15435
|
}
|
|
15436
|
+
if (route.pricingMode && !KNOWN_PRICING_MODES.has(route.pricingMode)) {
|
|
15437
|
+
warnings.push({
|
|
15438
|
+
code: AUDIT_CODES.L2_PRICING_MODE_UNKNOWN,
|
|
15439
|
+
severity: "warn",
|
|
15440
|
+
message: `Route ${loc} has unrecognized pricingMode "${route.pricingMode}".`,
|
|
15441
|
+
hint: `Expected one of: ${[...KNOWN_PRICING_MODES].join(", ")}.`,
|
|
15442
|
+
path: route.path
|
|
15443
|
+
});
|
|
15444
|
+
}
|
|
15431
15445
|
if (route.authMode === "paid") {
|
|
15432
15446
|
if (!route.price) {
|
|
15433
15447
|
warnings.push({
|
package/dist/schemas.cjs
CHANGED
|
@@ -13799,7 +13799,7 @@ config(en_default());
|
|
|
13799
13799
|
|
|
13800
13800
|
// src/schemas.ts
|
|
13801
13801
|
var OpenApiPaymentInfoSchema = external_exports.object({
|
|
13802
|
-
pricingMode: external_exports.
|
|
13802
|
+
pricingMode: external_exports.string(),
|
|
13803
13803
|
price: external_exports.string().optional(),
|
|
13804
13804
|
minPrice: external_exports.string().optional(),
|
|
13805
13805
|
maxPrice: external_exports.string().optional(),
|
|
@@ -13856,7 +13856,6 @@ var WellKnownDocSchema = external_exports.object({
|
|
|
13856
13856
|
version: external_exports.number().optional(),
|
|
13857
13857
|
resources: external_exports.array(external_exports.string()).default([]),
|
|
13858
13858
|
mppResources: external_exports.array(external_exports.string()).optional(),
|
|
13859
|
-
// isMmmEnabled
|
|
13860
13859
|
description: external_exports.string().optional(),
|
|
13861
13860
|
ownershipProofs: external_exports.array(external_exports.string()).optional(),
|
|
13862
13861
|
instructions: external_exports.string().optional()
|
package/dist/schemas.d.cts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const OpenApiPaymentInfoSchema: z.ZodObject<{
|
|
4
|
-
pricingMode: z.
|
|
5
|
-
fixed: "fixed";
|
|
6
|
-
range: "range";
|
|
7
|
-
quote: "quote";
|
|
8
|
-
}>;
|
|
4
|
+
pricingMode: z.ZodString;
|
|
9
5
|
price: z.ZodOptional<z.ZodString>;
|
|
10
6
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
11
7
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -31,11 +27,7 @@ declare const OpenApiOperationSchema: z.ZodObject<{
|
|
|
31
27
|
}, z.core.$strip>>;
|
|
32
28
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
29
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
34
|
-
pricingMode: z.
|
|
35
|
-
fixed: "fixed";
|
|
36
|
-
range: "range";
|
|
37
|
-
quote: "quote";
|
|
38
|
-
}>;
|
|
30
|
+
pricingMode: z.ZodString;
|
|
39
31
|
price: z.ZodOptional<z.ZodString>;
|
|
40
32
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
41
33
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -63,11 +55,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
63
55
|
}, z.core.$strip>>;
|
|
64
56
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
57
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
66
|
-
pricingMode: z.
|
|
67
|
-
fixed: "fixed";
|
|
68
|
-
range: "range";
|
|
69
|
-
quote: "quote";
|
|
70
|
-
}>;
|
|
58
|
+
pricingMode: z.ZodString;
|
|
71
59
|
price: z.ZodOptional<z.ZodString>;
|
|
72
60
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
73
61
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -94,11 +82,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
94
82
|
}, z.core.$strip>>;
|
|
95
83
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
96
84
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
97
|
-
pricingMode: z.
|
|
98
|
-
fixed: "fixed";
|
|
99
|
-
range: "range";
|
|
100
|
-
quote: "quote";
|
|
101
|
-
}>;
|
|
85
|
+
pricingMode: z.ZodString;
|
|
102
86
|
price: z.ZodOptional<z.ZodString>;
|
|
103
87
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
104
88
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -125,11 +109,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
125
109
|
}, z.core.$strip>>;
|
|
126
110
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
127
111
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
128
|
-
pricingMode: z.
|
|
129
|
-
fixed: "fixed";
|
|
130
|
-
range: "range";
|
|
131
|
-
quote: "quote";
|
|
132
|
-
}>;
|
|
112
|
+
pricingMode: z.ZodString;
|
|
133
113
|
price: z.ZodOptional<z.ZodString>;
|
|
134
114
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
135
115
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -156,11 +136,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
156
136
|
}, z.core.$strip>>;
|
|
157
137
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
158
138
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
159
|
-
pricingMode: z.
|
|
160
|
-
fixed: "fixed";
|
|
161
|
-
range: "range";
|
|
162
|
-
quote: "quote";
|
|
163
|
-
}>;
|
|
139
|
+
pricingMode: z.ZodString;
|
|
164
140
|
price: z.ZodOptional<z.ZodString>;
|
|
165
141
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
166
142
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -187,11 +163,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
187
163
|
}, z.core.$strip>>;
|
|
188
164
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
189
165
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
190
|
-
pricingMode: z.
|
|
191
|
-
fixed: "fixed";
|
|
192
|
-
range: "range";
|
|
193
|
-
quote: "quote";
|
|
194
|
-
}>;
|
|
166
|
+
pricingMode: z.ZodString;
|
|
195
167
|
price: z.ZodOptional<z.ZodString>;
|
|
196
168
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
197
169
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -218,11 +190,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
218
190
|
}, z.core.$strip>>;
|
|
219
191
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
220
192
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
221
|
-
pricingMode: z.
|
|
222
|
-
fixed: "fixed";
|
|
223
|
-
range: "range";
|
|
224
|
-
quote: "quote";
|
|
225
|
-
}>;
|
|
193
|
+
pricingMode: z.ZodString;
|
|
226
194
|
price: z.ZodOptional<z.ZodString>;
|
|
227
195
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
228
196
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -249,11 +217,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
249
217
|
}, z.core.$strip>>;
|
|
250
218
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
251
219
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
252
|
-
pricingMode: z.
|
|
253
|
-
fixed: "fixed";
|
|
254
|
-
range: "range";
|
|
255
|
-
quote: "quote";
|
|
256
|
-
}>;
|
|
220
|
+
pricingMode: z.ZodString;
|
|
257
221
|
price: z.ZodOptional<z.ZodString>;
|
|
258
222
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
259
223
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -280,11 +244,7 @@ declare const OpenApiPathItemSchema: z.ZodObject<{
|
|
|
280
244
|
}, z.core.$strip>>;
|
|
281
245
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
282
246
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
283
|
-
pricingMode: z.
|
|
284
|
-
fixed: "fixed";
|
|
285
|
-
range: "range";
|
|
286
|
-
quote: "quote";
|
|
287
|
-
}>;
|
|
247
|
+
pricingMode: z.ZodString;
|
|
288
248
|
price: z.ZodOptional<z.ZodString>;
|
|
289
249
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
290
250
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -332,11 +292,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
332
292
|
}, z.core.$strip>>;
|
|
333
293
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
334
294
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
335
|
-
pricingMode: z.
|
|
336
|
-
fixed: "fixed";
|
|
337
|
-
range: "range";
|
|
338
|
-
quote: "quote";
|
|
339
|
-
}>;
|
|
295
|
+
pricingMode: z.ZodString;
|
|
340
296
|
price: z.ZodOptional<z.ZodString>;
|
|
341
297
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
342
298
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -363,11 +319,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
363
319
|
}, z.core.$strip>>;
|
|
364
320
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
365
321
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
366
|
-
pricingMode: z.
|
|
367
|
-
fixed: "fixed";
|
|
368
|
-
range: "range";
|
|
369
|
-
quote: "quote";
|
|
370
|
-
}>;
|
|
322
|
+
pricingMode: z.ZodString;
|
|
371
323
|
price: z.ZodOptional<z.ZodString>;
|
|
372
324
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
373
325
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -394,11 +346,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
394
346
|
}, z.core.$strip>>;
|
|
395
347
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
396
348
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
397
|
-
pricingMode: z.
|
|
398
|
-
fixed: "fixed";
|
|
399
|
-
range: "range";
|
|
400
|
-
quote: "quote";
|
|
401
|
-
}>;
|
|
349
|
+
pricingMode: z.ZodString;
|
|
402
350
|
price: z.ZodOptional<z.ZodString>;
|
|
403
351
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
404
352
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -425,11 +373,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
425
373
|
}, z.core.$strip>>;
|
|
426
374
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
427
375
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
428
|
-
pricingMode: z.
|
|
429
|
-
fixed: "fixed";
|
|
430
|
-
range: "range";
|
|
431
|
-
quote: "quote";
|
|
432
|
-
}>;
|
|
376
|
+
pricingMode: z.ZodString;
|
|
433
377
|
price: z.ZodOptional<z.ZodString>;
|
|
434
378
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
435
379
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -456,11 +400,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
456
400
|
}, z.core.$strip>>;
|
|
457
401
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
458
402
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
459
|
-
pricingMode: z.
|
|
460
|
-
fixed: "fixed";
|
|
461
|
-
range: "range";
|
|
462
|
-
quote: "quote";
|
|
463
|
-
}>;
|
|
403
|
+
pricingMode: z.ZodString;
|
|
464
404
|
price: z.ZodOptional<z.ZodString>;
|
|
465
405
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
466
406
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -487,11 +427,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
487
427
|
}, z.core.$strip>>;
|
|
488
428
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
489
429
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
490
|
-
pricingMode: z.
|
|
491
|
-
fixed: "fixed";
|
|
492
|
-
range: "range";
|
|
493
|
-
quote: "quote";
|
|
494
|
-
}>;
|
|
430
|
+
pricingMode: z.ZodString;
|
|
495
431
|
price: z.ZodOptional<z.ZodString>;
|
|
496
432
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
497
433
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -518,11 +454,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
518
454
|
}, z.core.$strip>>;
|
|
519
455
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
520
456
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
521
|
-
pricingMode: z.
|
|
522
|
-
fixed: "fixed";
|
|
523
|
-
range: "range";
|
|
524
|
-
quote: "quote";
|
|
525
|
-
}>;
|
|
457
|
+
pricingMode: z.ZodString;
|
|
526
458
|
price: z.ZodOptional<z.ZodString>;
|
|
527
459
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
528
460
|
maxPrice: z.ZodOptional<z.ZodString>;
|
|
@@ -549,11 +481,7 @@ declare const OpenApiDocSchema: z.ZodObject<{
|
|
|
549
481
|
}, z.core.$strip>>;
|
|
550
482
|
responses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
551
483
|
'x-payment-info': z.ZodOptional<z.ZodObject<{
|
|
552
|
-
pricingMode: z.
|
|
553
|
-
fixed: "fixed";
|
|
554
|
-
range: "range";
|
|
555
|
-
quote: "quote";
|
|
556
|
-
}>;
|
|
484
|
+
pricingMode: z.ZodString;
|
|
557
485
|
price: z.ZodOptional<z.ZodString>;
|
|
558
486
|
minPrice: z.ZodOptional<z.ZodString>;
|
|
559
487
|
maxPrice: z.ZodOptional<z.ZodString>;
|