@vapi-network/cli 0.3.0 → 0.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.
- package/README.md +11 -2
- package/dist/accounts.d.ts +11 -0
- package/dist/agent.d.ts +14 -0
- package/dist/check.d.ts +46 -0
- package/dist/cli.d.ts +193 -2
- package/dist/cli.js +19310 -3905
- package/dist/cli.js.map +3 -3
- package/dist/cloud-backup.d.ts +20 -0
- package/dist/identity.d.ts +30 -0
- package/dist/index.js +19267 -3900
- package/dist/index.js.map +3 -3
- package/dist/login.d.ts +14 -0
- package/dist/main-module.d.ts +9 -0
- package/dist/mcp-install.d.ts +13 -0
- package/dist/publish-client.d.ts +193 -0
- package/dist/router.d.ts +4 -0
- package/dist/send.d.ts +2 -0
- package/dist/setup.d.ts +6 -0
- package/dist/stake.d.ts +3 -0
- package/dist/status.d.ts +10 -0
- package/dist/vault.d.ts +3 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type CliDependencies, type CliIo } from "./cli.js";
|
|
2
|
+
type EnrollResult = {
|
|
3
|
+
status: "uploaded";
|
|
4
|
+
device: string;
|
|
5
|
+
bytes: number;
|
|
6
|
+
uploadedAt: string;
|
|
7
|
+
} | {
|
|
8
|
+
status: "skipped";
|
|
9
|
+
device: string;
|
|
10
|
+
reason: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function cloudBackupCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
13
|
+
export declare function enrollCloudBackup(json: boolean, io: CliIo, dependencies: CliDependencies): Promise<EnrollResult>;
|
|
14
|
+
export declare function restoreFromOwnerCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
15
|
+
export declare function cloudBackupSetupChoice(json: boolean, io: CliIo, dependencies: CliDependencies): Promise<{
|
|
16
|
+
status: "on" | "off" | "skipped";
|
|
17
|
+
changed: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function autoUploadBackup(io: CliIo, json: boolean, dependencies: CliDependencies): Promise<void>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type WalletIdentity = {
|
|
2
|
+
erc8004Id: string;
|
|
3
|
+
agentCount: number;
|
|
4
|
+
registry: string;
|
|
5
|
+
reputation?: {
|
|
6
|
+
score: number;
|
|
7
|
+
count: number;
|
|
8
|
+
} | undefined;
|
|
9
|
+
};
|
|
10
|
+
export type IdentityForDisplay = {
|
|
11
|
+
erc8004Id: string;
|
|
12
|
+
reputation?: {
|
|
13
|
+
score: number;
|
|
14
|
+
count: number;
|
|
15
|
+
} | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare function fetchWalletIdentity(options: {
|
|
18
|
+
baseUrl: string;
|
|
19
|
+
wallet: string;
|
|
20
|
+
fetchImpl?: typeof fetch;
|
|
21
|
+
timeoutMs?: number;
|
|
22
|
+
allowPrivateNetwork?: boolean;
|
|
23
|
+
}): Promise<{
|
|
24
|
+
ok: true;
|
|
25
|
+
identity: WalletIdentity | null;
|
|
26
|
+
} | {
|
|
27
|
+
ok: false;
|
|
28
|
+
}>;
|
|
29
|
+
export declare function formatScore(score: number): string;
|
|
30
|
+
export declare function formatIdentityLines(identity: IdentityForDisplay): string[];
|