@vapi-network/core 0.2.0-dev.2 → 0.2.1

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.
@@ -5,8 +5,8 @@ export declare const MARKETPLACE_KINDS: readonly ["api", "service_offer", "open_
5
5
  export declare const MARKETPLACE_EXECUTION_METHODS: readonly ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE"];
6
6
  export declare const marketplaceExecutionMethodSchema: z.ZodEnum<{
7
7
  HEAD: "HEAD";
8
- GET: "GET";
9
8
  POST: "POST";
9
+ GET: "GET";
10
10
  PUT: "PUT";
11
11
  PATCH: "PATCH";
12
12
  DELETE: "DELETE";
@@ -33,18 +33,50 @@ export declare const executionModeSchema: z.ZodEnum<{
33
33
  export type ExecutionMode = z.infer<typeof executionModeSchema>;
34
34
  export declare const PROVENANCES: readonly ["indexed", "self_listed", "partner"];
35
35
  export declare const provenanceSchema: z.ZodEnum<{
36
- partner: "partner";
37
36
  indexed: "indexed";
38
37
  self_listed: "self_listed";
38
+ partner: "partner";
39
39
  }>;
40
40
  export type Provenance = z.infer<typeof provenanceSchema>;
41
41
  /** Provenances vAPI itself holds a record for, as opposed to mirrored catalog rows. */
42
42
  export declare const FIRST_PARTY_PROVENANCES: readonly ["self_listed", "partner"];
43
43
  export declare const firstPartyProvenanceSchema: z.ZodEnum<{
44
- partner: "partner";
45
44
  self_listed: "self_listed";
45
+ partner: "partner";
46
46
  }>;
47
47
  export type FirstPartyProvenance = z.infer<typeof firstPartyProvenanceSchema>;
48
+ /**
49
+ * The presentation group the registry assigns a Call listing, and the network
50
+ * fee already inside its advertised price. Both are registry-owned disclosures
51
+ * this client only displays, so both stay optional: a registry that predates
52
+ * them omits them, and a newer one may extend the fee object.
53
+ */
54
+ export declare const LISTING_GROUPS: readonly ["vapi", "added", "partner", "external"];
55
+ export declare const listingGroupSchema: z.ZodEnum<{
56
+ partner: "partner";
57
+ vapi: "vapi";
58
+ added: "added";
59
+ external: "external";
60
+ }>;
61
+ export type ListingGroup = z.infer<typeof listingGroupSchema>;
62
+ export declare const listingFeeSchema: z.ZodObject<{
63
+ bps: z.ZodNumber;
64
+ label: z.ZodString;
65
+ }, z.core.$loose>;
66
+ export type ListingFee = z.infer<typeof listingFeeSchema>;
67
+ /** The group/fee pair the registry returns on every Call listing and discovery hit. */
68
+ export declare const listingDisclosureShape: {
69
+ readonly group: z.ZodOptional<z.ZodEnum<{
70
+ partner: "partner";
71
+ vapi: "vapi";
72
+ added: "added";
73
+ external: "external";
74
+ }>>;
75
+ readonly fee: z.ZodOptional<z.ZodObject<{
76
+ bps: z.ZodNumber;
77
+ label: z.ZodString;
78
+ }, z.core.$loose>>;
79
+ };
48
80
  export declare const marketplaceBadgeCodeSchema: z.ZodEnum<{
49
81
  partner: "partner";
50
82
  live_x402: "live_x402";
@@ -64,29 +96,39 @@ export declare const marketplaceBadgeSchema: z.ZodObject<{
64
96
  approved_vendor: "approved_vendor";
65
97
  }>;
66
98
  label: z.ZodString;
67
- }, z.core.$strict>;
99
+ }, z.core.$loose>;
68
100
  export type MarketplaceBadge = z.infer<typeof marketplaceBadgeSchema>;
69
101
  export declare const marketplacePublicFactSchema: z.ZodObject<{
70
102
  label: z.ZodString;
71
103
  value: z.ZodString;
72
- }, z.core.$strict>;
104
+ }, z.core.$loose>;
73
105
  export type MarketplacePublicFact = z.infer<typeof marketplacePublicFactSchema>;
74
106
  export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
107
  kind: z.ZodLiteral<"api">;
76
108
  provenance: z.ZodEnum<{
77
- partner: "partner";
78
109
  self_listed: "self_listed";
110
+ partner: "partner";
79
111
  }>;
80
112
  execution: z.ZodObject<{
81
113
  mode: z.ZodEnum<{
82
114
  direct: "direct";
83
115
  gateway: "gateway";
84
116
  }>;
85
- }, z.core.$strict>;
117
+ }, z.core.$loose>;
86
118
  action: z.ZodObject<{
87
119
  type: z.ZodLiteral<"invoke_api">;
88
120
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
89
- }, z.core.$strict>;
121
+ }, z.core.$loose>;
122
+ group: z.ZodOptional<z.ZodEnum<{
123
+ partner: "partner";
124
+ vapi: "vapi";
125
+ added: "added";
126
+ external: "external";
127
+ }>>;
128
+ fee: z.ZodOptional<z.ZodObject<{
129
+ bps: z.ZodNumber;
130
+ label: z.ZodString;
131
+ }, z.core.$loose>>;
90
132
  ref: z.ZodString;
91
133
  card: z.ZodObject<{
92
134
  title: z.ZodString;
@@ -103,13 +145,13 @@ export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObje
103
145
  approved_vendor: "approved_vendor";
104
146
  }>;
105
147
  label: z.ZodString;
106
- }, z.core.$strict>>;
148
+ }, z.core.$loose>>;
107
149
  facts: z.ZodArray<z.ZodObject<{
108
150
  label: z.ZodString;
109
151
  value: z.ZodString;
110
- }, z.core.$strict>>;
111
- }, z.core.$strict>;
112
- }, z.core.$strict>, z.ZodObject<{
152
+ }, z.core.$loose>>;
153
+ }, z.core.$loose>;
154
+ }, z.core.$loose>, z.ZodObject<{
113
155
  kind: z.ZodLiteral<"api">;
114
156
  provenance: z.ZodLiteral<"indexed">;
115
157
  execution: z.ZodObject<{
@@ -117,18 +159,28 @@ export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObje
117
159
  url: z.ZodURL;
118
160
  method: z.ZodNullable<z.ZodEnum<{
119
161
  HEAD: "HEAD";
120
- GET: "GET";
121
162
  POST: "POST";
163
+ GET: "GET";
122
164
  PUT: "PUT";
123
165
  PATCH: "PATCH";
124
166
  DELETE: "DELETE";
125
167
  }>>;
126
168
  network: z.ZodString;
127
- }, z.core.$strict>;
169
+ }, z.core.$loose>;
128
170
  action: z.ZodObject<{
129
171
  type: z.ZodLiteral<"invoke_api">;
130
172
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
131
- }, z.core.$strict>;
173
+ }, z.core.$loose>;
174
+ group: z.ZodOptional<z.ZodEnum<{
175
+ partner: "partner";
176
+ vapi: "vapi";
177
+ added: "added";
178
+ external: "external";
179
+ }>>;
180
+ fee: z.ZodOptional<z.ZodObject<{
181
+ bps: z.ZodNumber;
182
+ label: z.ZodString;
183
+ }, z.core.$loose>>;
132
184
  ref: z.ZodString;
133
185
  card: z.ZodObject<{
134
186
  title: z.ZodString;
@@ -145,20 +197,30 @@ export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObje
145
197
  approved_vendor: "approved_vendor";
146
198
  }>;
147
199
  label: z.ZodString;
148
- }, z.core.$strict>>;
200
+ }, z.core.$loose>>;
149
201
  facts: z.ZodArray<z.ZodObject<{
150
202
  label: z.ZodString;
151
203
  value: z.ZodString;
152
- }, z.core.$strict>>;
153
- }, z.core.$strict>;
154
- }, z.core.$strict>], "provenance">;
204
+ }, z.core.$loose>>;
205
+ }, z.core.$loose>;
206
+ }, z.core.$loose>], "provenance">;
155
207
  export type ApiMarketplaceHit = z.infer<typeof apiMarketplaceHitSchema>;
156
208
  export declare const serviceOfferMarketplaceHitSchema: z.ZodObject<{
157
209
  kind: z.ZodLiteral<"service_offer">;
158
210
  action: z.ZodObject<{
159
211
  type: z.ZodLiteral<"start_engagement">;
160
212
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
161
- }, z.core.$strict>;
213
+ }, z.core.$loose>;
214
+ group: z.ZodOptional<z.ZodEnum<{
215
+ partner: "partner";
216
+ vapi: "vapi";
217
+ added: "added";
218
+ external: "external";
219
+ }>>;
220
+ fee: z.ZodOptional<z.ZodObject<{
221
+ bps: z.ZodNumber;
222
+ label: z.ZodString;
223
+ }, z.core.$loose>>;
162
224
  ref: z.ZodString;
163
225
  card: z.ZodObject<{
164
226
  title: z.ZodString;
@@ -175,20 +237,30 @@ export declare const serviceOfferMarketplaceHitSchema: z.ZodObject<{
175
237
  approved_vendor: "approved_vendor";
176
238
  }>;
177
239
  label: z.ZodString;
178
- }, z.core.$strict>>;
240
+ }, z.core.$loose>>;
179
241
  facts: z.ZodArray<z.ZodObject<{
180
242
  label: z.ZodString;
181
243
  value: z.ZodString;
182
- }, z.core.$strict>>;
183
- }, z.core.$strict>;
184
- }, z.core.$strict>;
244
+ }, z.core.$loose>>;
245
+ }, z.core.$loose>;
246
+ }, z.core.$loose>;
185
247
  export type ServiceOfferMarketplaceHit = z.infer<typeof serviceOfferMarketplaceHitSchema>;
186
248
  export declare const openRequestMarketplaceHitSchema: z.ZodObject<{
187
249
  kind: z.ZodLiteral<"open_request">;
188
250
  action: z.ZodObject<{
189
251
  type: z.ZodLiteral<"propose_to_request">;
190
252
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
191
- }, z.core.$strict>;
253
+ }, z.core.$loose>;
254
+ group: z.ZodOptional<z.ZodEnum<{
255
+ partner: "partner";
256
+ vapi: "vapi";
257
+ added: "added";
258
+ external: "external";
259
+ }>>;
260
+ fee: z.ZodOptional<z.ZodObject<{
261
+ bps: z.ZodNumber;
262
+ label: z.ZodString;
263
+ }, z.core.$loose>>;
192
264
  ref: z.ZodString;
193
265
  card: z.ZodObject<{
194
266
  title: z.ZodString;
@@ -205,30 +277,40 @@ export declare const openRequestMarketplaceHitSchema: z.ZodObject<{
205
277
  approved_vendor: "approved_vendor";
206
278
  }>;
207
279
  label: z.ZodString;
208
- }, z.core.$strict>>;
280
+ }, z.core.$loose>>;
209
281
  facts: z.ZodArray<z.ZodObject<{
210
282
  label: z.ZodString;
211
283
  value: z.ZodString;
212
- }, z.core.$strict>>;
213
- }, z.core.$strict>;
214
- }, z.core.$strict>;
284
+ }, z.core.$loose>>;
285
+ }, z.core.$loose>;
286
+ }, z.core.$loose>;
215
287
  export type OpenRequestMarketplaceHit = z.infer<typeof openRequestMarketplaceHitSchema>;
216
288
  export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
217
289
  kind: z.ZodLiteral<"api">;
218
290
  provenance: z.ZodEnum<{
219
- partner: "partner";
220
291
  self_listed: "self_listed";
292
+ partner: "partner";
221
293
  }>;
222
294
  execution: z.ZodObject<{
223
295
  mode: z.ZodEnum<{
224
296
  direct: "direct";
225
297
  gateway: "gateway";
226
298
  }>;
227
- }, z.core.$strict>;
299
+ }, z.core.$loose>;
228
300
  action: z.ZodObject<{
229
301
  type: z.ZodLiteral<"invoke_api">;
230
302
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
231
- }, z.core.$strict>;
303
+ }, z.core.$loose>;
304
+ group: z.ZodOptional<z.ZodEnum<{
305
+ partner: "partner";
306
+ vapi: "vapi";
307
+ added: "added";
308
+ external: "external";
309
+ }>>;
310
+ fee: z.ZodOptional<z.ZodObject<{
311
+ bps: z.ZodNumber;
312
+ label: z.ZodString;
313
+ }, z.core.$loose>>;
232
314
  ref: z.ZodString;
233
315
  card: z.ZodObject<{
234
316
  title: z.ZodString;
@@ -245,13 +327,13 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
245
327
  approved_vendor: "approved_vendor";
246
328
  }>;
247
329
  label: z.ZodString;
248
- }, z.core.$strict>>;
330
+ }, z.core.$loose>>;
249
331
  facts: z.ZodArray<z.ZodObject<{
250
332
  label: z.ZodString;
251
333
  value: z.ZodString;
252
- }, z.core.$strict>>;
253
- }, z.core.$strict>;
254
- }, z.core.$strict>, z.ZodObject<{
334
+ }, z.core.$loose>>;
335
+ }, z.core.$loose>;
336
+ }, z.core.$loose>, z.ZodObject<{
255
337
  kind: z.ZodLiteral<"api">;
256
338
  provenance: z.ZodLiteral<"indexed">;
257
339
  execution: z.ZodObject<{
@@ -259,18 +341,28 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
259
341
  url: z.ZodURL;
260
342
  method: z.ZodNullable<z.ZodEnum<{
261
343
  HEAD: "HEAD";
262
- GET: "GET";
263
344
  POST: "POST";
345
+ GET: "GET";
264
346
  PUT: "PUT";
265
347
  PATCH: "PATCH";
266
348
  DELETE: "DELETE";
267
349
  }>>;
268
350
  network: z.ZodString;
269
- }, z.core.$strict>;
351
+ }, z.core.$loose>;
270
352
  action: z.ZodObject<{
271
353
  type: z.ZodLiteral<"invoke_api">;
272
354
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
273
- }, z.core.$strict>;
355
+ }, z.core.$loose>;
356
+ group: z.ZodOptional<z.ZodEnum<{
357
+ partner: "partner";
358
+ vapi: "vapi";
359
+ added: "added";
360
+ external: "external";
361
+ }>>;
362
+ fee: z.ZodOptional<z.ZodObject<{
363
+ bps: z.ZodNumber;
364
+ label: z.ZodString;
365
+ }, z.core.$loose>>;
274
366
  ref: z.ZodString;
275
367
  card: z.ZodObject<{
276
368
  title: z.ZodString;
@@ -287,18 +379,28 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
287
379
  approved_vendor: "approved_vendor";
288
380
  }>;
289
381
  label: z.ZodString;
290
- }, z.core.$strict>>;
382
+ }, z.core.$loose>>;
291
383
  facts: z.ZodArray<z.ZodObject<{
292
384
  label: z.ZodString;
293
385
  value: z.ZodString;
294
- }, z.core.$strict>>;
295
- }, z.core.$strict>;
296
- }, z.core.$strict>], "provenance">, z.ZodObject<{
386
+ }, z.core.$loose>>;
387
+ }, z.core.$loose>;
388
+ }, z.core.$loose>], "provenance">, z.ZodObject<{
297
389
  kind: z.ZodLiteral<"service_offer">;
298
390
  action: z.ZodObject<{
299
391
  type: z.ZodLiteral<"start_engagement">;
300
392
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
301
- }, z.core.$strict>;
393
+ }, z.core.$loose>;
394
+ group: z.ZodOptional<z.ZodEnum<{
395
+ partner: "partner";
396
+ vapi: "vapi";
397
+ added: "added";
398
+ external: "external";
399
+ }>>;
400
+ fee: z.ZodOptional<z.ZodObject<{
401
+ bps: z.ZodNumber;
402
+ label: z.ZodString;
403
+ }, z.core.$loose>>;
302
404
  ref: z.ZodString;
303
405
  card: z.ZodObject<{
304
406
  title: z.ZodString;
@@ -315,18 +417,28 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
315
417
  approved_vendor: "approved_vendor";
316
418
  }>;
317
419
  label: z.ZodString;
318
- }, z.core.$strict>>;
420
+ }, z.core.$loose>>;
319
421
  facts: z.ZodArray<z.ZodObject<{
320
422
  label: z.ZodString;
321
423
  value: z.ZodString;
322
- }, z.core.$strict>>;
323
- }, z.core.$strict>;
324
- }, z.core.$strict>, z.ZodObject<{
424
+ }, z.core.$loose>>;
425
+ }, z.core.$loose>;
426
+ }, z.core.$loose>, z.ZodObject<{
325
427
  kind: z.ZodLiteral<"open_request">;
326
428
  action: z.ZodObject<{
327
429
  type: z.ZodLiteral<"propose_to_request">;
328
430
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
329
- }, z.core.$strict>;
431
+ }, z.core.$loose>;
432
+ group: z.ZodOptional<z.ZodEnum<{
433
+ partner: "partner";
434
+ vapi: "vapi";
435
+ added: "added";
436
+ external: "external";
437
+ }>>;
438
+ fee: z.ZodOptional<z.ZodObject<{
439
+ bps: z.ZodNumber;
440
+ label: z.ZodString;
441
+ }, z.core.$loose>>;
330
442
  ref: z.ZodString;
331
443
  card: z.ZodObject<{
332
444
  title: z.ZodString;
@@ -343,13 +455,13 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
343
455
  approved_vendor: "approved_vendor";
344
456
  }>;
345
457
  label: z.ZodString;
346
- }, z.core.$strict>>;
458
+ }, z.core.$loose>>;
347
459
  facts: z.ZodArray<z.ZodObject<{
348
460
  label: z.ZodString;
349
461
  value: z.ZodString;
350
- }, z.core.$strict>>;
351
- }, z.core.$strict>;
352
- }, z.core.$strict>]>;
462
+ }, z.core.$loose>>;
463
+ }, z.core.$loose>;
464
+ }, z.core.$loose>]>;
353
465
  export type MarketplaceHit = z.infer<typeof marketplaceHitSchema>;
354
466
  export declare const marketplaceDiscoveryInputSchema: z.ZodObject<{
355
467
  q: z.ZodOptional<z.ZodString>;
@@ -375,19 +487,29 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
375
487
  items: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
376
488
  kind: z.ZodLiteral<"api">;
377
489
  provenance: z.ZodEnum<{
378
- partner: "partner";
379
490
  self_listed: "self_listed";
491
+ partner: "partner";
380
492
  }>;
381
493
  execution: z.ZodObject<{
382
494
  mode: z.ZodEnum<{
383
495
  direct: "direct";
384
496
  gateway: "gateway";
385
497
  }>;
386
- }, z.core.$strict>;
498
+ }, z.core.$loose>;
387
499
  action: z.ZodObject<{
388
500
  type: z.ZodLiteral<"invoke_api">;
389
501
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
390
- }, z.core.$strict>;
502
+ }, z.core.$loose>;
503
+ group: z.ZodOptional<z.ZodEnum<{
504
+ partner: "partner";
505
+ vapi: "vapi";
506
+ added: "added";
507
+ external: "external";
508
+ }>>;
509
+ fee: z.ZodOptional<z.ZodObject<{
510
+ bps: z.ZodNumber;
511
+ label: z.ZodString;
512
+ }, z.core.$loose>>;
391
513
  ref: z.ZodString;
392
514
  card: z.ZodObject<{
393
515
  title: z.ZodString;
@@ -404,13 +526,13 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
404
526
  approved_vendor: "approved_vendor";
405
527
  }>;
406
528
  label: z.ZodString;
407
- }, z.core.$strict>>;
529
+ }, z.core.$loose>>;
408
530
  facts: z.ZodArray<z.ZodObject<{
409
531
  label: z.ZodString;
410
532
  value: z.ZodString;
411
- }, z.core.$strict>>;
412
- }, z.core.$strict>;
413
- }, z.core.$strict>, z.ZodObject<{
533
+ }, z.core.$loose>>;
534
+ }, z.core.$loose>;
535
+ }, z.core.$loose>, z.ZodObject<{
414
536
  kind: z.ZodLiteral<"api">;
415
537
  provenance: z.ZodLiteral<"indexed">;
416
538
  execution: z.ZodObject<{
@@ -418,18 +540,28 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
418
540
  url: z.ZodURL;
419
541
  method: z.ZodNullable<z.ZodEnum<{
420
542
  HEAD: "HEAD";
421
- GET: "GET";
422
543
  POST: "POST";
544
+ GET: "GET";
423
545
  PUT: "PUT";
424
546
  PATCH: "PATCH";
425
547
  DELETE: "DELETE";
426
548
  }>>;
427
549
  network: z.ZodString;
428
- }, z.core.$strict>;
550
+ }, z.core.$loose>;
429
551
  action: z.ZodObject<{
430
552
  type: z.ZodLiteral<"invoke_api">;
431
553
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
432
- }, z.core.$strict>;
554
+ }, z.core.$loose>;
555
+ group: z.ZodOptional<z.ZodEnum<{
556
+ partner: "partner";
557
+ vapi: "vapi";
558
+ added: "added";
559
+ external: "external";
560
+ }>>;
561
+ fee: z.ZodOptional<z.ZodObject<{
562
+ bps: z.ZodNumber;
563
+ label: z.ZodString;
564
+ }, z.core.$loose>>;
433
565
  ref: z.ZodString;
434
566
  card: z.ZodObject<{
435
567
  title: z.ZodString;
@@ -446,18 +578,28 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
446
578
  approved_vendor: "approved_vendor";
447
579
  }>;
448
580
  label: z.ZodString;
449
- }, z.core.$strict>>;
581
+ }, z.core.$loose>>;
450
582
  facts: z.ZodArray<z.ZodObject<{
451
583
  label: z.ZodString;
452
584
  value: z.ZodString;
453
- }, z.core.$strict>>;
454
- }, z.core.$strict>;
455
- }, z.core.$strict>], "provenance">, z.ZodObject<{
585
+ }, z.core.$loose>>;
586
+ }, z.core.$loose>;
587
+ }, z.core.$loose>], "provenance">, z.ZodObject<{
456
588
  kind: z.ZodLiteral<"service_offer">;
457
589
  action: z.ZodObject<{
458
590
  type: z.ZodLiteral<"start_engagement">;
459
591
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
460
- }, z.core.$strict>;
592
+ }, z.core.$loose>;
593
+ group: z.ZodOptional<z.ZodEnum<{
594
+ partner: "partner";
595
+ vapi: "vapi";
596
+ added: "added";
597
+ external: "external";
598
+ }>>;
599
+ fee: z.ZodOptional<z.ZodObject<{
600
+ bps: z.ZodNumber;
601
+ label: z.ZodString;
602
+ }, z.core.$loose>>;
461
603
  ref: z.ZodString;
462
604
  card: z.ZodObject<{
463
605
  title: z.ZodString;
@@ -474,18 +616,28 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
474
616
  approved_vendor: "approved_vendor";
475
617
  }>;
476
618
  label: z.ZodString;
477
- }, z.core.$strict>>;
619
+ }, z.core.$loose>>;
478
620
  facts: z.ZodArray<z.ZodObject<{
479
621
  label: z.ZodString;
480
622
  value: z.ZodString;
481
- }, z.core.$strict>>;
482
- }, z.core.$strict>;
483
- }, z.core.$strict>, z.ZodObject<{
623
+ }, z.core.$loose>>;
624
+ }, z.core.$loose>;
625
+ }, z.core.$loose>, z.ZodObject<{
484
626
  kind: z.ZodLiteral<"open_request">;
485
627
  action: z.ZodObject<{
486
628
  type: z.ZodLiteral<"propose_to_request">;
487
629
  href: z.ZodUnion<readonly [z.ZodString, z.ZodURL]>;
488
- }, z.core.$strict>;
630
+ }, z.core.$loose>;
631
+ group: z.ZodOptional<z.ZodEnum<{
632
+ partner: "partner";
633
+ vapi: "vapi";
634
+ added: "added";
635
+ external: "external";
636
+ }>>;
637
+ fee: z.ZodOptional<z.ZodObject<{
638
+ bps: z.ZodNumber;
639
+ label: z.ZodString;
640
+ }, z.core.$loose>>;
489
641
  ref: z.ZodString;
490
642
  card: z.ZodObject<{
491
643
  title: z.ZodString;
@@ -502,13 +654,13 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
502
654
  approved_vendor: "approved_vendor";
503
655
  }>;
504
656
  label: z.ZodString;
505
- }, z.core.$strict>>;
657
+ }, z.core.$loose>>;
506
658
  facts: z.ZodArray<z.ZodObject<{
507
659
  label: z.ZodString;
508
660
  value: z.ZodString;
509
- }, z.core.$strict>>;
510
- }, z.core.$strict>;
511
- }, z.core.$strict>]>>;
661
+ }, z.core.$loose>>;
662
+ }, z.core.$loose>;
663
+ }, z.core.$loose>]>>;
512
664
  nextCursor: z.ZodNullable<z.ZodString>;
513
665
  unavailableKinds: z.ZodArray<z.ZodEnum<{
514
666
  api: "api";
@@ -516,6 +668,6 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
516
668
  open_request: "open_request";
517
669
  }>>;
518
670
  rankingVersion: z.ZodLiteral<"marketplace-ranking-v1">;
519
- }, z.core.$strict>;
671
+ }, z.core.$loose>;
520
672
  export type MarketplaceDiscoveryPage = z.infer<typeof marketplaceDiscoveryPageSchema>;
521
673
  //# sourceMappingURL=marketplace-contracts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"marketplace-contracts.d.ts","sourceRoot":"","sources":["../src/marketplace-contracts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,8BAA8B,EAAG,8BAAuC,CAAC;AACtF,eAAO,MAAM,2BAA2B,EAAG,wBAAiC,CAAC;AAC7E,eAAO,MAAM,iBAAiB,mDAAoD,CAAC;AACnF,eAAO,MAAM,6BAA6B,4DAOhC,CAAC;AACX,eAAO,MAAM,gCAAgC;;;;;;;EAAwC,CAAC;AACtF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,qBAAqB;;;;EAA4B,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,gCAAiC,CAAC;AAC9D,eAAO,MAAM,mBAAmB;;;EAA0B,CAAC;AAC3D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,WAAW,gDAAiD,CAAC;AAC1E,eAAO,MAAM,gBAAgB;;;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aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAE1D;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -1,20 +1,21 @@
1
- import { ARC_TESTNET_CAIP2, BASE_MAINNET_CAIP2 } from "./x402-networks.js";
2
- import { type Address, type Chain, type HttpTransport, type PublicClient } from "viem";
1
+ import { ARC_MAINNET_CAIP2_PLACEHOLDER, ARC_TESTNET_CAIP2, BASE_MAINNET_CAIP2, SOLANA_MAINNET_CAIP2, SOLANA_MAINNET_USDC, X402_SOLANA_MAINNET_CAIP2 } from "./x402-networks.js";
2
+ import { type Chain, type HttpTransport, type PublicClient } from "viem";
3
3
  import { type LookupFn } from "./net-guard.js";
4
- export { ARC_TESTNET_CAIP2, BASE_MAINNET_CAIP2 };
4
+ export { ARC_MAINNET_CAIP2_PLACEHOLDER, ARC_TESTNET_CAIP2, BASE_MAINNET_CAIP2, SOLANA_MAINNET_CAIP2, SOLANA_MAINNET_USDC, X402_SOLANA_MAINNET_CAIP2, };
5
5
  export declare const USDC_DECIMALS = 6;
6
6
  export declare const DEFAULT_ARC_GAS_HEADROOM_ATOMIC = 50000n;
7
7
  export type NetworkDefinition = {
8
- chainId: number;
8
+ family: "evm" | "svm";
9
+ chainId?: number;
9
10
  name: string;
10
- usdc: Address;
11
- gasToken: "ETH" | "USDC";
11
+ usdc: string;
12
+ gasToken: "ETH" | "USDC" | "SOL";
12
13
  rpcEnv: string;
13
14
  publicRpcUrl?: string;
14
15
  };
15
16
  export type ConfiguredNetwork = {
16
17
  rpcUrl: string;
17
- usdc: Address;
18
+ usdc: string;
18
19
  };
19
20
  export type NetworkTransportOptions = {
20
21
  allowPrivateNetwork?: boolean;
@@ -23,6 +24,7 @@ export type NetworkTransportOptions = {
23
24
  };
24
25
  export declare const NETWORKS: {
25
26
  readonly "eip155:8453": {
27
+ readonly family: "evm";
26
28
  readonly chainId: 8453;
27
29
  readonly name: "Base mainnet";
28
30
  readonly usdc: `0x${string}`;
@@ -31,14 +33,35 @@ export declare const NETWORKS: {
31
33
  readonly publicRpcUrl: "https://mainnet.base.org";
32
34
  };
33
35
  readonly "eip155:5042002": {
36
+ readonly family: "evm";
34
37
  readonly chainId: 5042002;
35
38
  readonly name: "Arc testnet";
36
39
  readonly usdc: `0x${string}`;
37
40
  readonly gasToken: "USDC";
38
41
  readonly rpcEnv: "ARC_TESTNET_RPC_URL";
39
42
  };
43
+ readonly "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d": {
44
+ readonly family: "svm";
45
+ readonly name: "Solana mainnet";
46
+ readonly usdc: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
47
+ readonly gasToken: "SOL";
48
+ readonly rpcEnv: "SOLANA_RPC_URL";
49
+ readonly publicRpcUrl: "https://api.mainnet-beta.solana.com";
50
+ };
51
+ readonly "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": {
52
+ readonly family: "svm";
53
+ readonly name: "Solana mainnet";
54
+ readonly usdc: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
55
+ readonly gasToken: "SOL";
56
+ readonly rpcEnv: "SOLANA_RPC_URL";
57
+ readonly publicRpcUrl: "https://api.mainnet-beta.solana.com";
58
+ };
40
59
  };
41
60
  export declare function parseEip155ChainId(network: string): number;
61
+ export declare function isSolanaNetwork(network: string): boolean;
62
+ export declare function areSamePaymentNetwork(left: string, right: string): boolean;
63
+ export declare function isSupportedPaymentNetwork(network: string): boolean;
64
+ export declare function configuredNetworkFor(networks: Readonly<Record<string, ConfiguredNetwork>>, network: string): ConfiguredNetwork | undefined;
42
65
  export declare function getNetworkDefinition(network: string): NetworkDefinition;
43
66
  export declare function requireRpcUrl(network: string, configured: ConfiguredNetwork): string;
44
67
  export declare function createChain(network: string, rpcUrl: string): Chain;