@vapi-network/core 0.10.0 → 0.12.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.
@@ -0,0 +1,21 @@
1
+ import type { SecretStore } from "./secret-store.js";
2
+ import type { WalletName, WalletStore } from "./wallet-store.js";
3
+ export type WalletLinkState = "linked" | "not_linked" | "revoked";
4
+ /**
5
+ * The link state of every wallet in `store` for one vAPI server.
6
+ *
7
+ * Local first: a wallet is a candidate when it has link metadata for this
8
+ * server and its tokens are in `secrets`. One siblings request through a
9
+ * candidate then tells which of the owner's agents are still active. A
10
+ * candidate whose own token is refused is revoked, and the next one asks. When
11
+ * the server cannot be reached the candidates stay `linked`: being offline is
12
+ * not a revocation.
13
+ */
14
+ export declare function linkStates(args: {
15
+ store: WalletStore;
16
+ secrets: SecretStore;
17
+ apiBase: string;
18
+ fetchImpl?: typeof fetch;
19
+ now?: () => number;
20
+ }): Promise<Map<WalletName, WalletLinkState>>;
21
+ //# sourceMappingURL=link-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-state.d.ts","sourceRoot":"","sources":["../src/link-state.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAC;AAIlE;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAuD5C"}
@@ -0,0 +1,4 @@
1
+ import type { ListingFee } from "./marketplace-contracts.js";
2
+ /** Display the fee disclosed by the registry; zero always means no network fee. */
3
+ export declare function formatListingFee(fee: ListingFee): string;
4
+ //# sourceMappingURL=listing-fee.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listing-fee.d.ts","sourceRoot":"","sources":["../src/listing-fee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,CAExD"}
@@ -59,6 +59,7 @@ export declare const listingGroupSchema: z.ZodEnum<{
59
59
  added: "added";
60
60
  }>;
61
61
  export type ListingGroup = z.infer<typeof listingGroupSchema>;
62
+ /** New listings have zero fee; positive fees disclose legacy payout splitters. */
62
63
  export declare const listingFeeSchema: z.ZodObject<{
63
64
  bps: z.ZodNumber;
64
65
  label: z.ZodString;
@@ -101,6 +102,36 @@ export declare const listingLivenessSchema: z.ZodObject<{
101
102
  checks7d: z.ZodNumber;
102
103
  }, z.core.$loose>;
103
104
  export type ListingLiveness = z.infer<typeof listingLivenessSchema>;
105
+ export declare const LISTING_HEALTH_STATES: readonly ["healthy", "degraded", "outage", "unknown"];
106
+ export declare const listingHealthStateSchema: z.ZodCatch<z.ZodEnum<{
107
+ unknown: "unknown";
108
+ healthy: "healthy";
109
+ degraded: "degraded";
110
+ outage: "outage";
111
+ }>>;
112
+ export type ListingHealthState = z.infer<typeof listingHealthStateSchema>;
113
+ /** Recent registry checks; incomplete summaries preserve the listing around them. */
114
+ export declare const listingHealthSchema: z.ZodObject<{
115
+ state: z.ZodCatch<z.ZodEnum<{
116
+ unknown: "unknown";
117
+ healthy: "healthy";
118
+ degraded: "degraded";
119
+ outage: "outage";
120
+ }>>;
121
+ uptime7d: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
122
+ latencyP50Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
123
+ latencyP95Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
124
+ checks7d: z.ZodCatch<z.ZodNumber>;
125
+ }, z.core.$loose>;
126
+ export type ListingHealth = z.infer<typeof listingHealthSchema>;
127
+ export declare const marketplaceAlternativeSchema: z.ZodObject<{
128
+ ref: z.ZodString;
129
+ reason: z.ZodEnum<{
130
+ cheaper: "cheaper";
131
+ healthier: "healthier";
132
+ }>;
133
+ }, z.core.$loose>;
134
+ export type MarketplaceAlternative = z.infer<typeof marketplaceAlternativeSchema>;
104
135
  /**
105
136
  * How closely the listing's 402 follows the x402 version it declares, as the
106
137
  * registry's probe read it. `issues` are stable snake_case codes, the same
@@ -183,6 +214,7 @@ export declare const marketplaceBadgeCodeSchema: z.ZodEnum<{
183
214
  external_catalog: "external_catalog";
184
215
  approved_vendor: "approved_vendor";
185
216
  unverified: "unverified";
217
+ failed_calls_free: "failed_calls_free";
186
218
  }>;
187
219
  export type MarketplaceBadgeCode = z.infer<typeof marketplaceBadgeCodeSchema>;
188
220
  export declare const marketplaceBadgeSchema: z.ZodObject<{
@@ -195,6 +227,7 @@ export declare const marketplaceBadgeSchema: z.ZodObject<{
195
227
  external_catalog: "external_catalog";
196
228
  approved_vendor: "approved_vendor";
197
229
  unverified: "unverified";
230
+ failed_calls_free: "failed_calls_free";
198
231
  }>;
199
232
  label: z.ZodString;
200
233
  }, z.core.$loose>;
@@ -210,6 +243,25 @@ export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObje
210
243
  self_listed: "self_listed";
211
244
  partner: "partner";
212
245
  }>;
246
+ health: z.ZodCatch<z.ZodOptional<z.ZodObject<{
247
+ state: z.ZodCatch<z.ZodEnum<{
248
+ unknown: "unknown";
249
+ healthy: "healthy";
250
+ degraded: "degraded";
251
+ outage: "outage";
252
+ }>>;
253
+ uptime7d: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
254
+ latencyP50Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
255
+ latencyP95Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
256
+ checks7d: z.ZodCatch<z.ZodNumber>;
257
+ }, z.core.$loose>>>;
258
+ alternatives: z.ZodCatch<z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
259
+ ref: z.ZodString;
260
+ reason: z.ZodEnum<{
261
+ cheaper: "cheaper";
262
+ healthier: "healthier";
263
+ }>;
264
+ }, z.core.$loose>>>, unknown>>>;
213
265
  execution: z.ZodObject<{
214
266
  mode: z.ZodEnum<{
215
267
  direct: "direct";
@@ -274,6 +326,7 @@ export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObje
274
326
  external_catalog: "external_catalog";
275
327
  approved_vendor: "approved_vendor";
276
328
  unverified: "unverified";
329
+ failed_calls_free: "failed_calls_free";
277
330
  }>;
278
331
  label: z.ZodString;
279
332
  }, z.core.$loose>>, unknown>;
@@ -285,6 +338,25 @@ export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObje
285
338
  }, z.core.$loose>, z.ZodObject<{
286
339
  kind: z.ZodLiteral<"api">;
287
340
  provenance: z.ZodLiteral<"indexed">;
341
+ health: z.ZodCatch<z.ZodOptional<z.ZodObject<{
342
+ state: z.ZodCatch<z.ZodEnum<{
343
+ unknown: "unknown";
344
+ healthy: "healthy";
345
+ degraded: "degraded";
346
+ outage: "outage";
347
+ }>>;
348
+ uptime7d: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
349
+ latencyP50Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
350
+ latencyP95Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
351
+ checks7d: z.ZodCatch<z.ZodNumber>;
352
+ }, z.core.$loose>>>;
353
+ alternatives: z.ZodCatch<z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
354
+ ref: z.ZodString;
355
+ reason: z.ZodEnum<{
356
+ cheaper: "cheaper";
357
+ healthier: "healthier";
358
+ }>;
359
+ }, z.core.$loose>>>, unknown>>>;
288
360
  execution: z.ZodObject<{
289
361
  mode: z.ZodLiteral<"direct">;
290
362
  url: z.ZodURL;
@@ -356,6 +428,7 @@ export declare const apiMarketplaceHitSchema: z.ZodDiscriminatedUnion<[z.ZodObje
356
428
  external_catalog: "external_catalog";
357
429
  approved_vendor: "approved_vendor";
358
430
  unverified: "unverified";
431
+ failed_calls_free: "failed_calls_free";
359
432
  }>;
360
433
  label: z.ZodString;
361
434
  }, z.core.$loose>>, unknown>;
@@ -426,6 +499,7 @@ export declare const serviceOfferMarketplaceHitSchema: z.ZodObject<{
426
499
  external_catalog: "external_catalog";
427
500
  approved_vendor: "approved_vendor";
428
501
  unverified: "unverified";
502
+ failed_calls_free: "failed_calls_free";
429
503
  }>;
430
504
  label: z.ZodString;
431
505
  }, z.core.$loose>>, unknown>;
@@ -496,6 +570,7 @@ export declare const openRequestMarketplaceHitSchema: z.ZodObject<{
496
570
  external_catalog: "external_catalog";
497
571
  approved_vendor: "approved_vendor";
498
572
  unverified: "unverified";
573
+ failed_calls_free: "failed_calls_free";
499
574
  }>;
500
575
  label: z.ZodString;
501
576
  }, z.core.$loose>>, unknown>;
@@ -512,6 +587,25 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
512
587
  self_listed: "self_listed";
513
588
  partner: "partner";
514
589
  }>;
590
+ health: z.ZodCatch<z.ZodOptional<z.ZodObject<{
591
+ state: z.ZodCatch<z.ZodEnum<{
592
+ unknown: "unknown";
593
+ healthy: "healthy";
594
+ degraded: "degraded";
595
+ outage: "outage";
596
+ }>>;
597
+ uptime7d: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
598
+ latencyP50Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
599
+ latencyP95Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
600
+ checks7d: z.ZodCatch<z.ZodNumber>;
601
+ }, z.core.$loose>>>;
602
+ alternatives: z.ZodCatch<z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
603
+ ref: z.ZodString;
604
+ reason: z.ZodEnum<{
605
+ cheaper: "cheaper";
606
+ healthier: "healthier";
607
+ }>;
608
+ }, z.core.$loose>>>, unknown>>>;
515
609
  execution: z.ZodObject<{
516
610
  mode: z.ZodEnum<{
517
611
  direct: "direct";
@@ -576,6 +670,7 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
576
670
  external_catalog: "external_catalog";
577
671
  approved_vendor: "approved_vendor";
578
672
  unverified: "unverified";
673
+ failed_calls_free: "failed_calls_free";
579
674
  }>;
580
675
  label: z.ZodString;
581
676
  }, z.core.$loose>>, unknown>;
@@ -587,6 +682,25 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
587
682
  }, z.core.$loose>, z.ZodObject<{
588
683
  kind: z.ZodLiteral<"api">;
589
684
  provenance: z.ZodLiteral<"indexed">;
685
+ health: z.ZodCatch<z.ZodOptional<z.ZodObject<{
686
+ state: z.ZodCatch<z.ZodEnum<{
687
+ unknown: "unknown";
688
+ healthy: "healthy";
689
+ degraded: "degraded";
690
+ outage: "outage";
691
+ }>>;
692
+ uptime7d: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
693
+ latencyP50Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
694
+ latencyP95Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
695
+ checks7d: z.ZodCatch<z.ZodNumber>;
696
+ }, z.core.$loose>>>;
697
+ alternatives: z.ZodCatch<z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
698
+ ref: z.ZodString;
699
+ reason: z.ZodEnum<{
700
+ cheaper: "cheaper";
701
+ healthier: "healthier";
702
+ }>;
703
+ }, z.core.$loose>>>, unknown>>>;
590
704
  execution: z.ZodObject<{
591
705
  mode: z.ZodLiteral<"direct">;
592
706
  url: z.ZodURL;
@@ -658,6 +772,7 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
658
772
  external_catalog: "external_catalog";
659
773
  approved_vendor: "approved_vendor";
660
774
  unverified: "unverified";
775
+ failed_calls_free: "failed_calls_free";
661
776
  }>;
662
777
  label: z.ZodString;
663
778
  }, z.core.$loose>>, unknown>;
@@ -726,6 +841,7 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
726
841
  external_catalog: "external_catalog";
727
842
  approved_vendor: "approved_vendor";
728
843
  unverified: "unverified";
844
+ failed_calls_free: "failed_calls_free";
729
845
  }>;
730
846
  label: z.ZodString;
731
847
  }, z.core.$loose>>, unknown>;
@@ -794,6 +910,7 @@ export declare const marketplaceHitSchema: z.ZodUnion<readonly [z.ZodDiscriminat
794
910
  external_catalog: "external_catalog";
795
911
  approved_vendor: "approved_vendor";
796
912
  unverified: "unverified";
913
+ failed_calls_free: "failed_calls_free";
797
914
  }>;
798
915
  label: z.ZodString;
799
916
  }, z.core.$loose>>, unknown>;
@@ -815,6 +932,7 @@ export declare const marketplaceDiscoveryInputSchema: z.ZodObject<{
815
932
  cursor: z.ZodOptional<z.ZodString>;
816
933
  limit: z.ZodOptional<z.ZodNumber>;
817
934
  includeUnverified: z.ZodOptional<z.ZodBoolean>;
935
+ includeOutage: z.ZodOptional<z.ZodBoolean>;
818
936
  }, z.core.$strict>;
819
937
  export type MarketplaceDiscoveryInput = z.infer<typeof marketplaceDiscoveryInputSchema>;
820
938
  /**
@@ -833,7 +951,10 @@ export declare const marketplaceDiscoveryEnvelopeSchema: z.ZodObject<{
833
951
  service_offer: "service_offer";
834
952
  open_request: "open_request";
835
953
  }>>;
836
- rankingVersion: z.ZodLiteral<"marketplace-ranking-v1">;
954
+ rankingVersion: z.ZodString;
955
+ totals: z.ZodCatch<z.ZodOptional<z.ZodObject<{
956
+ hiddenOutage: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
957
+ }, z.core.$loose>>>;
837
958
  }, z.core.$loose>;
838
959
  export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
839
960
  protocol: z.ZodLiteral<"vapi.marketplace.discovery/1">;
@@ -843,13 +964,35 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
843
964
  service_offer: "service_offer";
844
965
  open_request: "open_request";
845
966
  }>>;
846
- rankingVersion: z.ZodLiteral<"marketplace-ranking-v1">;
967
+ rankingVersion: z.ZodString;
968
+ totals: z.ZodCatch<z.ZodOptional<z.ZodObject<{
969
+ hiddenOutage: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
970
+ }, z.core.$loose>>>;
847
971
  items: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
848
972
  kind: z.ZodLiteral<"api">;
849
973
  provenance: z.ZodEnum<{
850
974
  self_listed: "self_listed";
851
975
  partner: "partner";
852
976
  }>;
977
+ health: z.ZodCatch<z.ZodOptional<z.ZodObject<{
978
+ state: z.ZodCatch<z.ZodEnum<{
979
+ unknown: "unknown";
980
+ healthy: "healthy";
981
+ degraded: "degraded";
982
+ outage: "outage";
983
+ }>>;
984
+ uptime7d: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
985
+ latencyP50Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
986
+ latencyP95Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
987
+ checks7d: z.ZodCatch<z.ZodNumber>;
988
+ }, z.core.$loose>>>;
989
+ alternatives: z.ZodCatch<z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
990
+ ref: z.ZodString;
991
+ reason: z.ZodEnum<{
992
+ cheaper: "cheaper";
993
+ healthier: "healthier";
994
+ }>;
995
+ }, z.core.$loose>>>, unknown>>>;
853
996
  execution: z.ZodObject<{
854
997
  mode: z.ZodEnum<{
855
998
  direct: "direct";
@@ -914,6 +1057,7 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
914
1057
  external_catalog: "external_catalog";
915
1058
  approved_vendor: "approved_vendor";
916
1059
  unverified: "unverified";
1060
+ failed_calls_free: "failed_calls_free";
917
1061
  }>;
918
1062
  label: z.ZodString;
919
1063
  }, z.core.$loose>>, unknown>;
@@ -925,6 +1069,25 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
925
1069
  }, z.core.$loose>, z.ZodObject<{
926
1070
  kind: z.ZodLiteral<"api">;
927
1071
  provenance: z.ZodLiteral<"indexed">;
1072
+ health: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1073
+ state: z.ZodCatch<z.ZodEnum<{
1074
+ unknown: "unknown";
1075
+ healthy: "healthy";
1076
+ degraded: "degraded";
1077
+ outage: "outage";
1078
+ }>>;
1079
+ uptime7d: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
1080
+ latencyP50Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
1081
+ latencyP95Ms: z.ZodCatch<z.ZodNullable<z.ZodNumber>>;
1082
+ checks7d: z.ZodCatch<z.ZodNumber>;
1083
+ }, z.core.$loose>>>;
1084
+ alternatives: z.ZodCatch<z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
1085
+ ref: z.ZodString;
1086
+ reason: z.ZodEnum<{
1087
+ cheaper: "cheaper";
1088
+ healthier: "healthier";
1089
+ }>;
1090
+ }, z.core.$loose>>>, unknown>>>;
928
1091
  execution: z.ZodObject<{
929
1092
  mode: z.ZodLiteral<"direct">;
930
1093
  url: z.ZodURL;
@@ -996,6 +1159,7 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
996
1159
  external_catalog: "external_catalog";
997
1160
  approved_vendor: "approved_vendor";
998
1161
  unverified: "unverified";
1162
+ failed_calls_free: "failed_calls_free";
999
1163
  }>;
1000
1164
  label: z.ZodString;
1001
1165
  }, z.core.$loose>>, unknown>;
@@ -1064,6 +1228,7 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
1064
1228
  external_catalog: "external_catalog";
1065
1229
  approved_vendor: "approved_vendor";
1066
1230
  unverified: "unverified";
1231
+ failed_calls_free: "failed_calls_free";
1067
1232
  }>;
1068
1233
  label: z.ZodString;
1069
1234
  }, z.core.$loose>>, unknown>;
@@ -1132,6 +1297,7 @@ export declare const marketplaceDiscoveryPageSchema: z.ZodObject<{
1132
1297
  external_catalog: "external_catalog";
1133
1298
  approved_vendor: "approved_vendor";
1134
1299
  unverified: "unverified";
1300
+ failed_calls_free: "failed_calls_free";
1135
1301
  }>;
1136
1302
  label: z.ZodString;
1137
1303
  }, z.core.$loose>>, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"marketplace-contracts.d.ts","sourceRoot":"","sources":["../src/marketplace-contracts.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { Hex } from "viem";
2
+ import type { VapiPaymentAccount } from "./keystore.js";
3
+ /**
4
+ * A payment account whose private key lives in another process. Every
5
+ * signature request crosses `request`; the holder of the key decides whether
6
+ * to answer. The desktop app's MCP host uses this so a prompt-injected tool
7
+ * call can ask for a payment but never see the key.
8
+ */
9
+ export type RemoteSignRequest = {
10
+ kind: "typedData";
11
+ wallet: string;
12
+ typedData: unknown;
13
+ } | {
14
+ kind: "message";
15
+ wallet: string;
16
+ message: string;
17
+ };
18
+ export type RemoteAccountArgs = {
19
+ wallet: string;
20
+ address: Hex;
21
+ publicKey: Hex;
22
+ request: (message: RemoteSignRequest) => Promise<Hex>;
23
+ };
24
+ export declare class RemoteAccountError extends Error {
25
+ readonly code: "not_permitted";
26
+ constructor(code: "not_permitted", message: string);
27
+ }
28
+ export declare function remotePaymentAccount(args: RemoteAccountArgs): VapiPaymentAccount;
29
+ //# sourceMappingURL=remote-account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-account.d.ts","sourceRoot":"","sources":["../src/remote-account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAGhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACvD,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,KAAK;aAEzB,IAAI,EAAE,eAAe;gBAArB,IAAI,EAAE,eAAe,EACrC,OAAO,EAAE,MAAM;CAKlB;AAKD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,kBAAkB,CA0BhF"}
@@ -118,7 +118,9 @@ export declare function ownerStake(deps: RouterClientDeps): Promise<{
118
118
  stakeUrl: string;
119
119
  }>;
120
120
  /** For the SDK (plan 029): base URL + key for OpenAI-compatible frameworks. Never exposed via MCP. */
121
- export declare function routerCredentials(deps: RouterClientDeps): Promise<{
121
+ export declare function routerCredentials(deps: RouterClientDeps, options?: {
122
+ funding?: "compute" | "balance";
123
+ }): Promise<{
122
124
  baseURL: string;
123
125
  apiKey: string;
124
126
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"router-client.d.ts","sourceRoot":"","sources":["../src/router-client.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB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