@vapi-network/core 0.3.0 → 0.5.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.
- package/dist/accounts.d.ts.map +1 -1
- package/dist/agent-link.d.ts +98 -0
- package/dist/agent-link.d.ts.map +1 -0
- package/dist/agent-link.js +1715 -0
- package/dist/agent-link.js.map +6 -0
- package/dist/agent-profile.d.ts +27 -0
- package/dist/agent-profile.d.ts.map +1 -0
- package/dist/api-key.d.ts +99 -0
- package/dist/api-key.d.ts.map +1 -0
- package/dist/api-key.js +20084 -0
- package/dist/api-key.js.map +6 -0
- package/dist/audit.d.ts +5 -3
- package/dist/audit.d.ts.map +1 -1
- package/dist/authorization-state.d.ts +58 -0
- package/dist/authorization-state.d.ts.map +1 -0
- package/dist/call-contracts-wire.d.ts +151 -11
- package/dist/call-contracts-wire.d.ts.map +1 -1
- package/dist/config.d.ts +2 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/discovery.d.ts +20 -2
- package/dist/discovery.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3319 -1573
- package/dist/index.js.map +3 -3
- package/dist/marketplace-contracts.d.ts +448 -15
- package/dist/marketplace-contracts.d.ts.map +1 -1
- package/dist/networks.d.ts +16 -2
- package/dist/networks.d.ts.map +1 -1
- package/dist/receipts.d.ts +18 -0
- package/dist/receipts.d.ts.map +1 -1
- package/dist/router-client.d.ts +117 -0
- package/dist/router-client.d.ts.map +1 -0
- package/dist/router-client.js +27421 -0
- package/dist/router-client.js.map +6 -0
- package/dist/secrets.js +26 -1
- package/dist/secrets.js.map +1 -1
- package/dist/support-report.d.ts +1 -1
- package/dist/sweep.d.ts +4 -0
- package/dist/sweep.d.ts.map +1 -1
- package/dist/wallet-store.d.ts +26 -1
- package/dist/wallet-store.d.ts.map +1 -1
- package/dist/x402-networks.d.ts +6 -9
- package/dist/x402-networks.d.ts.map +1 -1
- package/dist/x402-pay.d.ts +131 -0
- package/dist/x402-pay.d.ts.map +1 -0
- package/dist/x402.d.ts +20 -1
- package/dist/x402.d.ts.map +1 -1
- package/package.json +13 -1
package/dist/audit.d.ts
CHANGED
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
* the agent's own account of it.
|
|
6
6
|
*
|
|
7
7
|
* A line never contains a secret. It records what happened, to which wallet,
|
|
8
|
-
* whether a terminal was attached, and which agent marker
|
|
9
|
-
* that could help someone spend the wallet.
|
|
8
|
+
* its linked owner, whether a terminal was attached, and which agent marker
|
|
9
|
+
* was set — nothing that could help someone spend the wallet.
|
|
10
10
|
*/
|
|
11
|
-
export declare const AUDIT_EVENTS: readonly ["secret.export.phrase", "secret.export.key", "wallet.create", "wallet.import", "wallet.remove", "wallet.restore", "wallet.rename", "wallet.default", "wallet.caps", "wallet.unlock", "wallet.lock", "wallet.use.session", "passphrase.change"];
|
|
11
|
+
export declare const AUDIT_EVENTS: readonly ["secret.export.phrase", "secret.export.key", "wallet.create", "wallet.import", "wallet.remove", "wallet.restore", "wallet.rename", "wallet.default", "wallet.caps", "wallet.unlock", "wallet.lock", "wallet.use.session", "passphrase.change", "auth.key.set", "auth.key.clear", "agent.linked", "agent.unlinked", "agent.run.start", "agent.run.step", "agent.run.pay", "agent.run.declined", "agent.run.end", "router.buy", "router.refill.declined", "listing.publish", "listing.status", "listing.claim"];
|
|
12
12
|
export type AuditEvent = (typeof AUDIT_EVENTS)[number];
|
|
13
13
|
export type AuditRecord = {
|
|
14
14
|
event: AuditEvent;
|
|
15
15
|
/** The wallet the event acted on, when one was selected. */
|
|
16
16
|
wallet?: string;
|
|
17
|
+
/** The owner wallet of a linked agent. Never an access token or Router key. */
|
|
18
|
+
owner?: string;
|
|
17
19
|
/** Whether a real terminal was attached when the event happened. */
|
|
18
20
|
tty: boolean;
|
|
19
21
|
/** The agent or CI variable that was set, if any. */
|
package/dist/audit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,yfAwCf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,UAAU,CAAC;IAClB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,GAAG,EAAE,OAAO,CAAC;IACb,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,eAAO,MAAM,UAAU,cAAc,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG;IACzB,sDAAsD;IACtD,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,UAAU,CAAC,CAgBrB;AAED,4EAA4E;AAC5E,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAYtE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { VapiConfig } from "./config.js";
|
|
2
|
+
import type { LookupFn } from "./net-guard.js";
|
|
3
|
+
import type { Receipt } from "./receipts.js";
|
|
4
|
+
/**
|
|
5
|
+
* EIP-3009's own record of whether an authorization nonce was ever used. USDC
|
|
6
|
+
* implements it: `true` means a transfer with that nonce executed on-chain.
|
|
7
|
+
*/
|
|
8
|
+
export declare const EIP3009_AUTHORIZATION_STATE_ABI: readonly [{
|
|
9
|
+
readonly type: "function";
|
|
10
|
+
readonly name: "authorizationState";
|
|
11
|
+
readonly stateMutability: "view";
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly name: "authorizer";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "nonce";
|
|
17
|
+
readonly type: "bytes32";
|
|
18
|
+
}];
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "bool";
|
|
22
|
+
}];
|
|
23
|
+
}];
|
|
24
|
+
/**
|
|
25
|
+
* What the chain says about a signed payment whose response was lost:
|
|
26
|
+
*
|
|
27
|
+
* - `settled`: the nonce was used. EIP-3009 also marks a cancelled
|
|
28
|
+
* authorization as used, but this client never cancels, so in practice the
|
|
29
|
+
* payment went through; paying again pays twice.
|
|
30
|
+
* - `expired`: never used, and the chain is past `validBefore`, so it never can
|
|
31
|
+
* be. Paying again is safe.
|
|
32
|
+
* - `pending`: never used yet, but still valid. It may still settle; wait for
|
|
33
|
+
* `validBefore` and check again.
|
|
34
|
+
*/
|
|
35
|
+
export type AuthorizationState = "settled" | "expired" | "pending";
|
|
36
|
+
export type ReceiptSettlementCheck = {
|
|
37
|
+
network: string;
|
|
38
|
+
token: string;
|
|
39
|
+
authorizer: string;
|
|
40
|
+
nonce: string;
|
|
41
|
+
validBefore: string;
|
|
42
|
+
/** The latest block's timestamp the verdict was taken at, in Unix seconds. */
|
|
43
|
+
chainTime: string;
|
|
44
|
+
state: AuthorizationState;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Reads, from the chain itself, whether the payment a receipt signed has
|
|
48
|
+
* settled. Nothing is signed and nothing is paid.
|
|
49
|
+
*
|
|
50
|
+
* Expiry is judged against the latest block's timestamp rather than this
|
|
51
|
+
* machine's clock: a block at or past `validBefore` means no later block can
|
|
52
|
+
* include the authorization, so `expired` is final even on a skewed clock.
|
|
53
|
+
*/
|
|
54
|
+
export declare function checkReceiptSettlement(receipt: Receipt, config: Pick<VapiConfig, "networks" | "allowPrivateNetwork">, options?: {
|
|
55
|
+
fetchImpl?: typeof fetch;
|
|
56
|
+
lookup?: LookupFn;
|
|
57
|
+
}): Promise<ReceiptSettlementCheck>;
|
|
58
|
+
//# sourceMappingURL=authorization-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization-state.d.ts","sourceRoot":"","sources":["../src/authorization-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAWlC,CAAC;AAEX;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,qBAAqB,CAAC,EAC5D,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IAAC,MAAM,CAAC,EAAE,QAAQ,CAAA;CAAO,GAC5D,OAAO,CAAC,sBAAsB,CAAC,CA6CjC"}
|
|
@@ -44,8 +44,8 @@ export declare const CALLABLE_CATEGORY_LABELS: {
|
|
|
44
44
|
export declare function isCallableListing(kind: string, category: string): boolean;
|
|
45
45
|
export declare const serviceTierSchema: z.ZodEnum<{
|
|
46
46
|
partner: "partner";
|
|
47
|
-
listed: "listed";
|
|
48
47
|
verified: "verified";
|
|
48
|
+
listed: "listed";
|
|
49
49
|
}>;
|
|
50
50
|
export type ServiceTier = z.infer<typeof serviceTierSchema>;
|
|
51
51
|
export declare const discoveryEndpointSchema: z.ZodObject<{
|
|
@@ -95,8 +95,8 @@ export declare const serviceSummarySchema: z.ZodObject<{
|
|
|
95
95
|
}, z.core.$loose>>;
|
|
96
96
|
}, z.core.$loose>>;
|
|
97
97
|
group: z.ZodOptional<z.ZodEnum<{
|
|
98
|
-
partner: "partner";
|
|
99
98
|
vapi: "vapi";
|
|
99
|
+
partner: "partner";
|
|
100
100
|
added: "added";
|
|
101
101
|
external: "external";
|
|
102
102
|
}>>;
|
|
@@ -104,6 +104,34 @@ export declare const serviceSummarySchema: z.ZodObject<{
|
|
|
104
104
|
bps: z.ZodNumber;
|
|
105
105
|
label: z.ZodString;
|
|
106
106
|
}, z.core.$loose>>;
|
|
107
|
+
verification: z.ZodCatch<z.ZodDefault<z.ZodEnum<{
|
|
108
|
+
none: "none";
|
|
109
|
+
requested: "requested";
|
|
110
|
+
verified: "verified";
|
|
111
|
+
}>>>;
|
|
112
|
+
liveness: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
113
|
+
uptime7d: z.ZodNumber;
|
|
114
|
+
latencyP50Ms: z.ZodNullable<z.ZodNumber>;
|
|
115
|
+
latencyP95Ms: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
checks7d: z.ZodNumber;
|
|
117
|
+
}, z.core.$loose>>>;
|
|
118
|
+
conformance: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
119
|
+
declaredVersion: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
120
|
+
versionConformant: z.ZodBoolean;
|
|
121
|
+
offerTransport: z.ZodEnum<{
|
|
122
|
+
body: "body";
|
|
123
|
+
header: "header";
|
|
124
|
+
both: "both";
|
|
125
|
+
}>;
|
|
126
|
+
issues: z.ZodArray<z.ZodString>;
|
|
127
|
+
}, z.core.$loose>>>;
|
|
128
|
+
identity: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
129
|
+
erc8004Id: z.ZodString;
|
|
130
|
+
reputation: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
131
|
+
score: z.ZodNumber;
|
|
132
|
+
count: z.ZodNumber;
|
|
133
|
+
}, z.core.$loose>>>;
|
|
134
|
+
}, z.core.$loose>>>;
|
|
107
135
|
id: z.ZodString;
|
|
108
136
|
name: z.ZodString;
|
|
109
137
|
description: z.ZodString;
|
|
@@ -117,8 +145,8 @@ export declare const serviceSummarySchema: z.ZodObject<{
|
|
|
117
145
|
}>;
|
|
118
146
|
tier: z.ZodEnum<{
|
|
119
147
|
partner: "partner";
|
|
120
|
-
listed: "listed";
|
|
121
148
|
verified: "verified";
|
|
149
|
+
listed: "listed";
|
|
122
150
|
}>;
|
|
123
151
|
}, z.core.$loose>;
|
|
124
152
|
export type ServiceSummary = z.infer<typeof serviceSummarySchema>;
|
|
@@ -149,8 +177,8 @@ export declare const searchServicesResponseSchema: z.ZodObject<{
|
|
|
149
177
|
}, z.core.$loose>>;
|
|
150
178
|
}, z.core.$loose>>;
|
|
151
179
|
group: z.ZodOptional<z.ZodEnum<{
|
|
152
|
-
partner: "partner";
|
|
153
180
|
vapi: "vapi";
|
|
181
|
+
partner: "partner";
|
|
154
182
|
added: "added";
|
|
155
183
|
external: "external";
|
|
156
184
|
}>>;
|
|
@@ -158,6 +186,34 @@ export declare const searchServicesResponseSchema: z.ZodObject<{
|
|
|
158
186
|
bps: z.ZodNumber;
|
|
159
187
|
label: z.ZodString;
|
|
160
188
|
}, z.core.$loose>>;
|
|
189
|
+
verification: z.ZodCatch<z.ZodDefault<z.ZodEnum<{
|
|
190
|
+
none: "none";
|
|
191
|
+
requested: "requested";
|
|
192
|
+
verified: "verified";
|
|
193
|
+
}>>>;
|
|
194
|
+
liveness: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
195
|
+
uptime7d: z.ZodNumber;
|
|
196
|
+
latencyP50Ms: z.ZodNullable<z.ZodNumber>;
|
|
197
|
+
latencyP95Ms: z.ZodNullable<z.ZodNumber>;
|
|
198
|
+
checks7d: z.ZodNumber;
|
|
199
|
+
}, z.core.$loose>>>;
|
|
200
|
+
conformance: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
201
|
+
declaredVersion: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
202
|
+
versionConformant: z.ZodBoolean;
|
|
203
|
+
offerTransport: z.ZodEnum<{
|
|
204
|
+
body: "body";
|
|
205
|
+
header: "header";
|
|
206
|
+
both: "both";
|
|
207
|
+
}>;
|
|
208
|
+
issues: z.ZodArray<z.ZodString>;
|
|
209
|
+
}, z.core.$loose>>>;
|
|
210
|
+
identity: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
211
|
+
erc8004Id: z.ZodString;
|
|
212
|
+
reputation: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
213
|
+
score: z.ZodNumber;
|
|
214
|
+
count: z.ZodNumber;
|
|
215
|
+
}, z.core.$loose>>>;
|
|
216
|
+
}, z.core.$loose>>>;
|
|
161
217
|
id: z.ZodString;
|
|
162
218
|
name: z.ZodString;
|
|
163
219
|
description: z.ZodString;
|
|
@@ -171,8 +227,8 @@ export declare const searchServicesResponseSchema: z.ZodObject<{
|
|
|
171
227
|
}>;
|
|
172
228
|
tier: z.ZodEnum<{
|
|
173
229
|
partner: "partner";
|
|
174
|
-
listed: "listed";
|
|
175
230
|
verified: "verified";
|
|
231
|
+
listed: "listed";
|
|
176
232
|
}>;
|
|
177
233
|
}, z.core.$loose>>;
|
|
178
234
|
}, z.core.$loose>;
|
|
@@ -204,8 +260,8 @@ export declare const listServicesResponseSchema: z.ZodObject<{
|
|
|
204
260
|
}, z.core.$loose>>;
|
|
205
261
|
}, z.core.$loose>>;
|
|
206
262
|
group: z.ZodOptional<z.ZodEnum<{
|
|
207
|
-
partner: "partner";
|
|
208
263
|
vapi: "vapi";
|
|
264
|
+
partner: "partner";
|
|
209
265
|
added: "added";
|
|
210
266
|
external: "external";
|
|
211
267
|
}>>;
|
|
@@ -213,6 +269,34 @@ export declare const listServicesResponseSchema: z.ZodObject<{
|
|
|
213
269
|
bps: z.ZodNumber;
|
|
214
270
|
label: z.ZodString;
|
|
215
271
|
}, z.core.$loose>>;
|
|
272
|
+
verification: z.ZodCatch<z.ZodDefault<z.ZodEnum<{
|
|
273
|
+
none: "none";
|
|
274
|
+
requested: "requested";
|
|
275
|
+
verified: "verified";
|
|
276
|
+
}>>>;
|
|
277
|
+
liveness: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
278
|
+
uptime7d: z.ZodNumber;
|
|
279
|
+
latencyP50Ms: z.ZodNullable<z.ZodNumber>;
|
|
280
|
+
latencyP95Ms: z.ZodNullable<z.ZodNumber>;
|
|
281
|
+
checks7d: z.ZodNumber;
|
|
282
|
+
}, z.core.$loose>>>;
|
|
283
|
+
conformance: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
284
|
+
declaredVersion: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
285
|
+
versionConformant: z.ZodBoolean;
|
|
286
|
+
offerTransport: z.ZodEnum<{
|
|
287
|
+
body: "body";
|
|
288
|
+
header: "header";
|
|
289
|
+
both: "both";
|
|
290
|
+
}>;
|
|
291
|
+
issues: z.ZodArray<z.ZodString>;
|
|
292
|
+
}, z.core.$loose>>>;
|
|
293
|
+
identity: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
294
|
+
erc8004Id: z.ZodString;
|
|
295
|
+
reputation: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
296
|
+
score: z.ZodNumber;
|
|
297
|
+
count: z.ZodNumber;
|
|
298
|
+
}, z.core.$loose>>>;
|
|
299
|
+
}, z.core.$loose>>>;
|
|
216
300
|
id: z.ZodString;
|
|
217
301
|
name: z.ZodString;
|
|
218
302
|
description: z.ZodString;
|
|
@@ -226,8 +310,8 @@ export declare const listServicesResponseSchema: z.ZodObject<{
|
|
|
226
310
|
}>;
|
|
227
311
|
tier: z.ZodEnum<{
|
|
228
312
|
partner: "partner";
|
|
229
|
-
listed: "listed";
|
|
230
313
|
verified: "verified";
|
|
314
|
+
listed: "listed";
|
|
231
315
|
}>;
|
|
232
316
|
}, z.core.$loose>>;
|
|
233
317
|
}, z.core.$loose>;
|
|
@@ -258,8 +342,8 @@ export declare const discoveryServiceSchema: z.ZodObject<{
|
|
|
258
342
|
}, z.core.$loose>>;
|
|
259
343
|
}, z.core.$loose>>;
|
|
260
344
|
group: z.ZodOptional<z.ZodEnum<{
|
|
261
|
-
partner: "partner";
|
|
262
345
|
vapi: "vapi";
|
|
346
|
+
partner: "partner";
|
|
263
347
|
added: "added";
|
|
264
348
|
external: "external";
|
|
265
349
|
}>>;
|
|
@@ -267,6 +351,34 @@ export declare const discoveryServiceSchema: z.ZodObject<{
|
|
|
267
351
|
bps: z.ZodNumber;
|
|
268
352
|
label: z.ZodString;
|
|
269
353
|
}, z.core.$loose>>;
|
|
354
|
+
verification: z.ZodCatch<z.ZodDefault<z.ZodEnum<{
|
|
355
|
+
none: "none";
|
|
356
|
+
requested: "requested";
|
|
357
|
+
verified: "verified";
|
|
358
|
+
}>>>;
|
|
359
|
+
liveness: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
360
|
+
uptime7d: z.ZodNumber;
|
|
361
|
+
latencyP50Ms: z.ZodNullable<z.ZodNumber>;
|
|
362
|
+
latencyP95Ms: z.ZodNullable<z.ZodNumber>;
|
|
363
|
+
checks7d: z.ZodNumber;
|
|
364
|
+
}, z.core.$loose>>>;
|
|
365
|
+
conformance: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
366
|
+
declaredVersion: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
367
|
+
versionConformant: z.ZodBoolean;
|
|
368
|
+
offerTransport: z.ZodEnum<{
|
|
369
|
+
body: "body";
|
|
370
|
+
header: "header";
|
|
371
|
+
both: "both";
|
|
372
|
+
}>;
|
|
373
|
+
issues: z.ZodArray<z.ZodString>;
|
|
374
|
+
}, z.core.$loose>>>;
|
|
375
|
+
identity: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
376
|
+
erc8004Id: z.ZodString;
|
|
377
|
+
reputation: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
378
|
+
score: z.ZodNumber;
|
|
379
|
+
count: z.ZodNumber;
|
|
380
|
+
}, z.core.$loose>>>;
|
|
381
|
+
}, z.core.$loose>>>;
|
|
270
382
|
id: z.ZodString;
|
|
271
383
|
name: z.ZodString;
|
|
272
384
|
description: z.ZodString;
|
|
@@ -280,8 +392,8 @@ export declare const discoveryServiceSchema: z.ZodObject<{
|
|
|
280
392
|
}>;
|
|
281
393
|
tier: z.ZodEnum<{
|
|
282
394
|
partner: "partner";
|
|
283
|
-
listed: "listed";
|
|
284
395
|
verified: "verified";
|
|
396
|
+
listed: "listed";
|
|
285
397
|
}>;
|
|
286
398
|
}, z.core.$loose>;
|
|
287
399
|
export type DiscoveryService = ServiceSummary;
|
|
@@ -312,8 +424,8 @@ export declare const discoveryResponseSchema: z.ZodObject<{
|
|
|
312
424
|
}, z.core.$loose>>;
|
|
313
425
|
}, z.core.$loose>>;
|
|
314
426
|
group: z.ZodOptional<z.ZodEnum<{
|
|
315
|
-
partner: "partner";
|
|
316
427
|
vapi: "vapi";
|
|
428
|
+
partner: "partner";
|
|
317
429
|
added: "added";
|
|
318
430
|
external: "external";
|
|
319
431
|
}>>;
|
|
@@ -321,6 +433,34 @@ export declare const discoveryResponseSchema: z.ZodObject<{
|
|
|
321
433
|
bps: z.ZodNumber;
|
|
322
434
|
label: z.ZodString;
|
|
323
435
|
}, z.core.$loose>>;
|
|
436
|
+
verification: z.ZodCatch<z.ZodDefault<z.ZodEnum<{
|
|
437
|
+
none: "none";
|
|
438
|
+
requested: "requested";
|
|
439
|
+
verified: "verified";
|
|
440
|
+
}>>>;
|
|
441
|
+
liveness: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
442
|
+
uptime7d: z.ZodNumber;
|
|
443
|
+
latencyP50Ms: z.ZodNullable<z.ZodNumber>;
|
|
444
|
+
latencyP95Ms: z.ZodNullable<z.ZodNumber>;
|
|
445
|
+
checks7d: z.ZodNumber;
|
|
446
|
+
}, z.core.$loose>>>;
|
|
447
|
+
conformance: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
448
|
+
declaredVersion: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
449
|
+
versionConformant: z.ZodBoolean;
|
|
450
|
+
offerTransport: z.ZodEnum<{
|
|
451
|
+
body: "body";
|
|
452
|
+
header: "header";
|
|
453
|
+
both: "both";
|
|
454
|
+
}>;
|
|
455
|
+
issues: z.ZodArray<z.ZodString>;
|
|
456
|
+
}, z.core.$loose>>>;
|
|
457
|
+
identity: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
458
|
+
erc8004Id: z.ZodString;
|
|
459
|
+
reputation: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
460
|
+
score: z.ZodNumber;
|
|
461
|
+
count: z.ZodNumber;
|
|
462
|
+
}, z.core.$loose>>>;
|
|
463
|
+
}, z.core.$loose>>>;
|
|
324
464
|
id: z.ZodString;
|
|
325
465
|
name: z.ZodString;
|
|
326
466
|
description: z.ZodString;
|
|
@@ -334,8 +474,8 @@ export declare const discoveryResponseSchema: z.ZodObject<{
|
|
|
334
474
|
}>;
|
|
335
475
|
tier: z.ZodEnum<{
|
|
336
476
|
partner: "partner";
|
|
337
|
-
listed: "listed";
|
|
338
477
|
verified: "verified";
|
|
478
|
+
listed: "listed";
|
|
339
479
|
}>;
|
|
340
480
|
}, z.core.$loose>>;
|
|
341
481
|
}, z.core.$loose>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-contracts-wire.d.ts","sourceRoot":"","sources":["../src/call-contracts-wire.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa,EAAG,OAAgB,CAAC;AAC9C,eAAO,MAAM,mBAAmB,wDAAyD,CAAC;AAE1F,eAAO,MAAM,sBAAsB;;;;;;EAA8B,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAKtE,eAAO,MAAM,oBAAoB,iEAA6C,CAAC;AAC/E,eAAO,MAAM,uBAAuB;;;;;;;EAA+B,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;CAM8C,CAAC;AAIpF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED,eAAO,MAAM,iBAAiB;;;;EAA4C,CAAC;AAC3E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,uBAAuB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AC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAIlE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA+B,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAG9E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAC9C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA+B,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const DEFAULT_SPEND_CAPS: {
|
|
|
20
20
|
};
|
|
21
21
|
export type VapiPaths = {
|
|
22
22
|
directory: string;
|
|
23
|
+
agentsDir: string;
|
|
23
24
|
config: string;
|
|
24
25
|
keystore: string;
|
|
25
26
|
receipts: string;
|
|
@@ -108,6 +109,6 @@ export type LoadConfigOptions = {
|
|
|
108
109
|
};
|
|
109
110
|
export declare function loadConfig(path?: string, source?: NodeJS.ProcessEnv, options?: LoadConfigOptions): Promise<VapiConfig>;
|
|
110
111
|
export declare function writeDefaultConfig(path?: string, source?: NodeJS.ProcessEnv, options?: DefaultConfigOptions): Promise<VapiConfig>;
|
|
111
|
-
export declare function enableDefaultNetwork(network: "solana", path?: string, source?: NodeJS.ProcessEnv): Promise<VapiConfig>;
|
|
112
|
+
export declare function enableDefaultNetwork(network: "solana" | "arc", path?: string, source?: NodeJS.ProcessEnv): Promise<VapiConfig>;
|
|
112
113
|
export declare function isMissingFile(error: unknown): error is NodeJS.ErrnoException;
|
|
113
114
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,oBAAoB,+BAA+B,CAAC;AACjE,eAAO,MAAM,qBAAqB,iDAA8C,CAAC;AACjF,eAAO,MAAM,iCAAiC,kDAA+C,CAAC;AAI9F,eAAO,MAAM,0BAA0B;;;EAK7B,CAAC;AAEX;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,kFAAkF;AAClF,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC;AAGvC,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AACH,e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;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,SAAwB,GAC3B,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAYlC;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,MAAM,GAAE,MAAM,CAAC,UAAwB,EACvC,OAAO,GAAE,oBAAyB,GACjC,UAAU,CA6CZ;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,0EAA0E;IAC1E,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,wBAAsB,UAAU,CAC9B,IAAI,SAAwB,EAC5B,MAAM,GAAE,MAAM,CAAC,UAAwB,EACvC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,UAAU,CAAC,CAoErB;AAiBD,wBAAsB,kBAAkB,CACtC,IAAI,SAAwB,EAC5B,MAAM,GAAE,MAAM,CAAC,UAAwB,EACvC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,UAAU,CAAC,CAQrB;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,QAAQ,GAAG,KAAK,EACzB,IAAI,SAAwB,EAC5B,MAAM,GAAE,MAAM,CAAC,UAAwB,GACtC,OAAO,CAAC,UAAU,CAAC,CAgBrB;AAmDD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,cAAc,CAE5E"}
|
package/dist/discovery.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { X402Resource } from "./x402.js";
|
|
2
|
+
import type { ListingVerification } from "./marketplace-contracts.js";
|
|
2
3
|
export type ListingProvenance = Readonly<{
|
|
3
4
|
/** Stable adapter identifier such as `vapi`, `bazaar`, or `local`. */
|
|
4
5
|
source: string;
|
|
@@ -17,12 +18,29 @@ export interface Listing {
|
|
|
17
18
|
/** Raw x402 accepts entries; source adapters intentionally tolerate new schemes. */
|
|
18
19
|
readonly accepts?: readonly unknown[];
|
|
19
20
|
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
21
|
+
/**
|
|
22
|
+
* How far the listing got through vAPI review, when its catalog says. A
|
|
23
|
+
* catalog that has no notion of vAPI verification leaves it undefined rather
|
|
24
|
+
* than claiming `none`.
|
|
25
|
+
*/
|
|
26
|
+
readonly verification?: ListingVerification;
|
|
20
27
|
readonly provenance: readonly ListingProvenance[];
|
|
21
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* What a caller may ask of every source at search time. A source that has no
|
|
31
|
+
* notion of an option ignores it rather than failing.
|
|
32
|
+
*/
|
|
33
|
+
export type SourceSearchOptions = Readonly<{
|
|
34
|
+
/**
|
|
35
|
+
* Include self-listed APIs vAPI has not verified. Default results are
|
|
36
|
+
* vAPI-verified listings plus mirrored external catalogs.
|
|
37
|
+
*/
|
|
38
|
+
includeUnverified?: boolean;
|
|
39
|
+
}>;
|
|
22
40
|
/** Discovery adapter seam. A null inspect result means the reference is unknown. */
|
|
23
41
|
export interface Source {
|
|
24
42
|
readonly id: string;
|
|
25
|
-
search(query?: string): Promise<Listing[]>;
|
|
43
|
+
search(query?: string, options?: SourceSearchOptions): Promise<Listing[]>;
|
|
26
44
|
inspect(ref: string): Promise<Listing | null>;
|
|
27
45
|
}
|
|
28
46
|
/**
|
|
@@ -37,7 +55,7 @@ export declare function discover(sources: readonly Source[], query?: string, opt
|
|
|
37
55
|
searchesPath?: string;
|
|
38
56
|
now?: Date;
|
|
39
57
|
nowMs?: () => number;
|
|
40
|
-
}): Promise<{
|
|
58
|
+
} & SourceSearchOptions): Promise<{
|
|
41
59
|
listings: Listing[];
|
|
42
60
|
errors: ReadonlyArray<{
|
|
43
61
|
source: string;
|
package/dist/discovery.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.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oFAAoF;AACpF,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAC1E,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;CAC/C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,SAAS,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,CAc7E;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ1D;AAED,kFAAkF;AAClF,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,GAAE;IACP,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;CACtB,GAAG,mBAAwB,GAC3B,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;IAAC,MAAM,EAAE,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAoD7F"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,12 @@ export * from "./call-contracts.js";
|
|
|
2
2
|
export * from "./call-contracts-wire.js";
|
|
3
3
|
export * from "./accounts.js";
|
|
4
4
|
export * from "./agent-guard.js";
|
|
5
|
+
export * from "./agent-profile.js";
|
|
6
|
+
export type { AgentTokens, DeviceLinkStart, LinkResult } from "./agent-link.js";
|
|
7
|
+
export type { AgentRouterUsage, ChatMessage, ChatRequest, ChatResult, RouterModel, } from "./router-client.js";
|
|
8
|
+
export { buyRouterBalance } from "./router-client.js";
|
|
5
9
|
export * from "./audit.js";
|
|
10
|
+
export * from "./authorization-state.js";
|
|
6
11
|
export * from "./config.js";
|
|
7
12
|
export * from "./discovery.js";
|
|
8
13
|
export { deriveEvmPrivateKey, deriveSolanaPrivateKey, entropyToPhrase, EVM_DERIVATION_PATH, generateRecoveryPhrase, phraseToEntropy, phraseToSeed, SOLANA_DERIVATION_PATH, validateRecoveryPhrase, } from "./hd.js";
|
|
@@ -25,5 +30,6 @@ export * from "./svm.js";
|
|
|
25
30
|
export * from "./wallet.js";
|
|
26
31
|
export * from "./wallet-store.js";
|
|
27
32
|
export * from "./x402.js";
|
|
28
|
-
export
|
|
33
|
+
export * from "./x402-pay.js";
|
|
34
|
+
export { ARC_MAINNET_CAIP2, BROWSER_ENABLED_X402_NETWORK_CONFIG, CANONICAL_X402_USDC_NETWORKS, getCanonicalX402Usdc, type CanonicalX402UsdcIdentity, type CanonicalX402UsdcNetwork, type X402NetworkConfig, type X402TokenDomain, } from "./x402-networks.js";
|
|
29
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAIjB,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,4BAA4B,EAC5B,eAAe,EACf,iBAAiB,EACjB,qBAA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