@vapi-network/cli 0.9.5 → 0.9.7
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/cli.js +64 -23
- package/dist/cli.js.map +2 -2
- package/dist/index.js +64 -23
- package/dist/index.js.map +2 -2
- package/dist/publish-client.d.ts +10 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/publish-client.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import type { Address } from "viem";
|
|
|
15
15
|
/** The categories the registry's listing form accepts. */
|
|
16
16
|
export declare const LISTING_CATEGORIES: readonly ["ai", "data", "crypto", "compute", "search"];
|
|
17
17
|
export type ListingCategory = (typeof LISTING_CATEGORIES)[number];
|
|
18
|
-
/**
|
|
18
|
+
/** A hint for how to read the URL. The registry detects the kind itself either way. */
|
|
19
19
|
export declare const PROBE_MODES: readonly ["origin", "endpoint", "openapi"];
|
|
20
20
|
export type ProbeMode = (typeof PROBE_MODES)[number];
|
|
21
21
|
/** The states `vapi publish` can ask a listing to move to. */
|
|
@@ -53,6 +53,8 @@ export type ProbeRejection = Readonly<{
|
|
|
53
53
|
/** The console's `VendorProbeResult`, read tolerantly. */
|
|
54
54
|
export type ProbeResult = Readonly<{
|
|
55
55
|
operations?: readonly ProbeOperation[];
|
|
56
|
+
/** A URL that is itself one payable endpoint answers here, with `operations` empty. */
|
|
57
|
+
endpoint?: ProbeOperation;
|
|
56
58
|
accepts?: readonly unknown[];
|
|
57
59
|
diagnostics?: Readonly<{
|
|
58
60
|
steps?: readonly unknown[];
|
|
@@ -87,6 +89,8 @@ export type ListingEndpointInput = {
|
|
|
87
89
|
responseContentType?: string;
|
|
88
90
|
pathTemplate?: string;
|
|
89
91
|
pathParameters?: unknown;
|
|
92
|
+
/** The probe's signature over the metadata above; publish refuses metadata without it. */
|
|
93
|
+
metadataEvidence?: string;
|
|
90
94
|
};
|
|
91
95
|
export type CreateListingInput = {
|
|
92
96
|
name: string;
|
|
@@ -185,7 +189,11 @@ export declare function buildPayoutSiweMessage(args: {
|
|
|
185
189
|
nonce: string;
|
|
186
190
|
issuedAt: string;
|
|
187
191
|
}): string;
|
|
188
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* The operations a probe found, normalized to the fields a listing needs. A URL
|
|
194
|
+
* that is itself one payable endpoint comes back in `endpoint` rather than in
|
|
195
|
+
* `operations`, so that one is the operation.
|
|
196
|
+
*/
|
|
189
197
|
export declare function readProbeOperations(probe: ProbeResult): ProbeOperation[];
|
|
190
198
|
/** The rejection a probe carries, or undefined when the URL passed. */
|
|
191
199
|
export declare function readProbeRejection(probe: ProbeResult): ProbeRejection | undefined;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.9.
|
|
1
|
+
export declare const CLI_VERSION = "0.9.7";
|