@agentcash/discovery 1.6.5 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- /** Legacy flat x-payment-info: agentcash discovery fields + RFC §4.4 spec fields. */
4
3
  declare const LegacyPaymentInfoSchema: z.ZodObject<{
5
4
  pricingMode: z.ZodOptional<z.ZodString>;
6
5
  price: z.ZodOptional<z.ZodString>;
@@ -13,7 +12,6 @@ declare const LegacyPaymentInfoSchema: z.ZodObject<{
13
12
  currency: z.ZodOptional<z.ZodString>;
14
13
  description: z.ZodOptional<z.ZodString>;
15
14
  }, z.core.$loose>;
16
- /** Structured x-payment-info: canonical going-forward shape (reuses types from payment-info.ts). */
17
15
  declare const StructuredPaymentInfoSchema: z.ZodObject<{
18
16
  price: z.ZodUnion<readonly [z.ZodObject<{
19
17
  currency: z.ZodOptional<z.ZodString>;
@@ -439,34 +437,5 @@ type OpenApiPathItem = z.infer<typeof OpenApiPathItemSchema>;
439
437
  type LegacyPaymentInfo = z.infer<typeof LegacyPaymentInfoSchema>;
440
438
  type StructuredPaymentInfo = z.infer<typeof StructuredPaymentInfoSchema>;
441
439
  type OpenApiPaymentInfo = z.infer<typeof OpenApiPaymentInfoSchema>;
442
- /** Raw shape of the /.well-known/x402 JSON response. */
443
- declare const WellKnownDocSchema: z.ZodObject<{
444
- version: z.ZodOptional<z.ZodNumber>;
445
- resources: z.ZodDefault<z.ZodArray<z.ZodString>>;
446
- mppResources: z.ZodOptional<z.ZodArray<z.ZodString>>;
447
- description: z.ZodOptional<z.ZodString>;
448
- ownershipProofs: z.ZodOptional<z.ZodArray<z.ZodString>>;
449
- instructions: z.ZodOptional<z.ZodString>;
450
- }, z.core.$strip>;
451
- /** Parsed output after resolving resource strings into typed routes. */
452
- declare const WellKnownParsedSchema: z.ZodObject<{
453
- routes: z.ZodArray<z.ZodObject<{
454
- path: z.ZodString;
455
- method: z.ZodEnum<{
456
- GET: "GET";
457
- POST: "POST";
458
- PUT: "PUT";
459
- DELETE: "DELETE";
460
- PATCH: "PATCH";
461
- HEAD: "HEAD";
462
- OPTIONS: "OPTIONS";
463
- TRACE: "TRACE";
464
- }>;
465
- price: z.ZodOptional<z.ZodString>;
466
- }, z.core.$strip>>;
467
- instructions: z.ZodOptional<z.ZodString>;
468
- }, z.core.$strip>;
469
- type WellKnownDoc = z.infer<typeof WellKnownDocSchema>;
470
- type WellKnownParsed = z.infer<typeof WellKnownParsedSchema>;
471
440
 
472
- export { type LegacyPaymentInfo, LegacyPaymentInfoSchema, type OpenApiDoc, OpenApiDocSchema, type OpenApiOperation, OpenApiOperationSchema, type OpenApiPathItem, OpenApiPathItemSchema, type OpenApiPaymentInfo, OpenApiPaymentInfoSchema, type StructuredPaymentInfo, StructuredPaymentInfoSchema, type WellKnownDoc, WellKnownDocSchema, type WellKnownParsed, WellKnownParsedSchema };
441
+ export { type LegacyPaymentInfo, LegacyPaymentInfoSchema, type OpenApiDoc, OpenApiDocSchema, type OpenApiOperation, OpenApiOperationSchema, type OpenApiPathItem, OpenApiPathItemSchema, type OpenApiPaymentInfo, OpenApiPaymentInfoSchema, type StructuredPaymentInfo, StructuredPaymentInfoSchema };
package/dist/schemas.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- /** Legacy flat x-payment-info: agentcash discovery fields + RFC §4.4 spec fields. */
4
3
  declare const LegacyPaymentInfoSchema: z.ZodObject<{
5
4
  pricingMode: z.ZodOptional<z.ZodString>;
6
5
  price: z.ZodOptional<z.ZodString>;
@@ -13,7 +12,6 @@ declare const LegacyPaymentInfoSchema: z.ZodObject<{
13
12
  currency: z.ZodOptional<z.ZodString>;
14
13
  description: z.ZodOptional<z.ZodString>;
15
14
  }, z.core.$loose>;
16
- /** Structured x-payment-info: canonical going-forward shape (reuses types from payment-info.ts). */
17
15
  declare const StructuredPaymentInfoSchema: z.ZodObject<{
18
16
  price: z.ZodUnion<readonly [z.ZodObject<{
19
17
  currency: z.ZodOptional<z.ZodString>;
@@ -439,34 +437,5 @@ type OpenApiPathItem = z.infer<typeof OpenApiPathItemSchema>;
439
437
  type LegacyPaymentInfo = z.infer<typeof LegacyPaymentInfoSchema>;
440
438
  type StructuredPaymentInfo = z.infer<typeof StructuredPaymentInfoSchema>;
441
439
  type OpenApiPaymentInfo = z.infer<typeof OpenApiPaymentInfoSchema>;
442
- /** Raw shape of the /.well-known/x402 JSON response. */
443
- declare const WellKnownDocSchema: z.ZodObject<{
444
- version: z.ZodOptional<z.ZodNumber>;
445
- resources: z.ZodDefault<z.ZodArray<z.ZodString>>;
446
- mppResources: z.ZodOptional<z.ZodArray<z.ZodString>>;
447
- description: z.ZodOptional<z.ZodString>;
448
- ownershipProofs: z.ZodOptional<z.ZodArray<z.ZodString>>;
449
- instructions: z.ZodOptional<z.ZodString>;
450
- }, z.core.$strip>;
451
- /** Parsed output after resolving resource strings into typed routes. */
452
- declare const WellKnownParsedSchema: z.ZodObject<{
453
- routes: z.ZodArray<z.ZodObject<{
454
- path: z.ZodString;
455
- method: z.ZodEnum<{
456
- GET: "GET";
457
- POST: "POST";
458
- PUT: "PUT";
459
- DELETE: "DELETE";
460
- PATCH: "PATCH";
461
- HEAD: "HEAD";
462
- OPTIONS: "OPTIONS";
463
- TRACE: "TRACE";
464
- }>;
465
- price: z.ZodOptional<z.ZodString>;
466
- }, z.core.$strip>>;
467
- instructions: z.ZodOptional<z.ZodString>;
468
- }, z.core.$strip>;
469
- type WellKnownDoc = z.infer<typeof WellKnownDocSchema>;
470
- type WellKnownParsed = z.infer<typeof WellKnownParsedSchema>;
471
440
 
472
- export { type LegacyPaymentInfo, LegacyPaymentInfoSchema, type OpenApiDoc, OpenApiDocSchema, type OpenApiOperation, OpenApiOperationSchema, type OpenApiPathItem, OpenApiPathItemSchema, type OpenApiPaymentInfo, OpenApiPaymentInfoSchema, type StructuredPaymentInfo, StructuredPaymentInfoSchema, type WellKnownDoc, WellKnownDocSchema, type WellKnownParsed, WellKnownParsedSchema };
441
+ export { type LegacyPaymentInfo, LegacyPaymentInfoSchema, type OpenApiDoc, OpenApiDocSchema, type OpenApiOperation, OpenApiOperationSchema, type OpenApiPathItem, OpenApiPathItemSchema, type OpenApiPaymentInfo, OpenApiPaymentInfoSchema, type StructuredPaymentInfo, StructuredPaymentInfoSchema };