@agentcash/discovery 1.6.1 → 1.6.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 +123 -31
- package/dist/cli.js +123 -31
- package/dist/index.cjs +123 -31
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +123 -31
- package/dist/schemas.cjs +9 -5
- package/dist/schemas.d.cts +55 -446
- package/dist/schemas.d.ts +55 -446
- package/dist/schemas.js +9 -5
- package/package.json +1 -1
package/dist/schemas.js
CHANGED
|
@@ -13782,8 +13782,8 @@ var FixedPriceSchema = external_exports.object({
|
|
|
13782
13782
|
var DynamicPriceSchema = external_exports.object({
|
|
13783
13783
|
currency: Iso4217Schema,
|
|
13784
13784
|
mode: external_exports.literal("dynamic"),
|
|
13785
|
-
min: external_exports.string(),
|
|
13786
|
-
max: external_exports.string()
|
|
13785
|
+
min: external_exports.string().optional(),
|
|
13786
|
+
max: external_exports.string().optional()
|
|
13787
13787
|
});
|
|
13788
13788
|
var PriceSchema = external_exports.union([FixedPriceSchema, DynamicPriceSchema]);
|
|
13789
13789
|
var X402ProtocolSchema = external_exports.object({
|
|
@@ -13830,10 +13830,13 @@ var OpenApiOperationSchema = external_exports.object({
|
|
|
13830
13830
|
description: external_exports.string().optional(),
|
|
13831
13831
|
tags: external_exports.array(external_exports.string()).optional(),
|
|
13832
13832
|
security: external_exports.array(external_exports.record(external_exports.string(), external_exports.array(external_exports.string()))).optional(),
|
|
13833
|
+
// `in` / `name` are spec-required, but a single malformed parameter must not
|
|
13834
|
+
// abort the whole spec — keep them optional so discovery is resilient to
|
|
13835
|
+
// non-conformant OpenAPI documents in the wild.
|
|
13833
13836
|
parameters: external_exports.array(
|
|
13834
13837
|
external_exports.object({
|
|
13835
|
-
in: external_exports.string(),
|
|
13836
|
-
name: external_exports.string(),
|
|
13838
|
+
in: external_exports.string().optional(),
|
|
13839
|
+
name: external_exports.string().optional(),
|
|
13837
13840
|
schema: external_exports.unknown().optional(),
|
|
13838
13841
|
required: external_exports.boolean().optional()
|
|
13839
13842
|
})
|
|
@@ -13843,7 +13846,8 @@ var OpenApiOperationSchema = external_exports.object({
|
|
|
13843
13846
|
content: external_exports.record(external_exports.string(), external_exports.object({ schema: external_exports.unknown().optional() }))
|
|
13844
13847
|
}).optional(),
|
|
13845
13848
|
responses: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
13846
|
-
|
|
13849
|
+
// Permissive: vendor extension shape is validated at runtime, never at parse time.
|
|
13850
|
+
"x-payment-info": external_exports.unknown().optional()
|
|
13847
13851
|
});
|
|
13848
13852
|
var OpenApiPathItemSchema = external_exports.object({
|
|
13849
13853
|
get: OpenApiOperationSchema.optional(),
|