@vapi-network/sources 0.2.0-dev.2

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,3 @@
1
+ import type { Source } from "@vapi-network/core";
2
+ export declare function localFileSource(path: string): Source;
3
+ //# sourceMappingURL=local-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-file.d.ts","sourceRoot":"","sources":["../src/local-file.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAI1D,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmDpD"}
@@ -0,0 +1,38 @@
1
+ import { type DiscoveryEndpoint, type MarketplaceDiscoveryPage, type MarketplaceHit, type MarketplaceKind, type Source } from "@vapi-network/core";
2
+ import { type Fetch, type GuardedSourceOptions } from "./common.js";
3
+ export type MarketplaceSearchInput = {
4
+ query?: string;
5
+ kinds?: MarketplaceKind[];
6
+ network?: string;
7
+ limit?: number;
8
+ cursor?: string;
9
+ };
10
+ export type VapiRegistryConfig = Readonly<{
11
+ discoveryUrl: string;
12
+ marketplaceDiscoveryUrl: string;
13
+ registryFallbacks?: ReadonlyArray<Readonly<{
14
+ discoveryUrl: string;
15
+ marketplaceDiscoveryUrl: string;
16
+ }>>;
17
+ allowPrivateNetwork?: boolean;
18
+ }>;
19
+ export type MarketplaceSearchOptions = Readonly<{
20
+ searchesPath?: string;
21
+ now?: Date;
22
+ nowMs?: () => number;
23
+ notice?: (message: string) => void;
24
+ }>;
25
+ export type VapiRegistrySourceOptions = GuardedSourceOptions & Readonly<{
26
+ discoveryUrl?: string;
27
+ }>;
28
+ /**
29
+ * Search the public marketplace while preserving its validation, filter, and
30
+ * ranking behavior from the original vAPI MCP adapter.
31
+ */
32
+ export declare function searchMarketplace(input: MarketplaceSearchInput, config: VapiRegistryConfig, fetchImpl?: Fetch, options?: MarketplaceSearchOptions): Promise<MarketplaceDiscoveryPage>;
33
+ /** Resolve a registry ref through the executable Calls compatibility API. */
34
+ export declare function resolveServiceEndpoint(id: string, config: VapiRegistryConfig, fetchImpl?: Fetch, endpointName?: string): Promise<DiscoveryEndpoint>;
35
+ /** Resolve one exact API ref from marketplace discovery across fresh CLI processes. */
36
+ export declare function findMarketplaceApiByRef(ref: string, config: VapiRegistryConfig, fetchImpl?: Fetch): Promise<MarketplaceHit | null>;
37
+ export declare function vapiRegistrySource(baseUrl: string, options?: VapiRegistrySourceOptions): Source;
38
+ //# sourceMappingURL=vapi-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vapi-registry.d.ts","sourceRoot":"","sources":["../src/vapi-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,iBAAiB,EAEtB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,MAAM,EACZ,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAc,KAAK,KAAK,EAAE,KAAK,oBAAoB,EAAe,MAAM,aAAa,CAAC;AAE7F,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,aAAa,CAC/B,QAAQ,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,uBAAuB,EAAE,MAAM,CAAA;KAAE,CAAC,CACpE,CAAC;IACF,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,GAC1D,QAAQ,CAAC;IACP,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEL;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,sBAAsB,EAC7B,MAAM,EAAE,kBAAkB,EAC1B,SAAS,CAAC,EAAE,KAAK,EACjB,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,wBAAwB,CAAC,CA+CnC;AAED,6EAA6E;AAC7E,wBAAsB,sBAAsB,CAC1C,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,kBAAkB,EAC1B,SAAS,CAAC,EAAE,KAAK,EACjB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,iBAAiB,CAAC,CAI5B;AAED,uFAAuF;AACvF,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,kBAAkB,EAC1B,SAAS,CAAC,EAAE,KAAK,GAChB,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAWhC;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,yBAA8B,GACtC,MAAM,CAsFR"}
@@ -0,0 +1,8 @@
1
+ import type { Source } from "@vapi-network/core";
2
+ /**
3
+ * x402scan documents its crawl convention but not a stable public read API.
4
+ * Keep this explicit stub so callers can configure it without silently assuming
5
+ * an undocumented endpoint contract.
6
+ */
7
+ export declare function x402scanSource(): Source;
8
+ //# sourceMappingURL=x402scan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x402scan.d.ts","sourceRoot":"","sources":["../src/x402scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAWvC"}
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@vapi-network/sources",
3
+ "version": "0.2.0-dev.2",
4
+ "description": "Discovery source plugins for vAPI Network",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/vAPI-Network/vapi-network.git",
9
+ "directory": "packages/sources"
10
+ },
11
+ "homepage": "https://github.com/vAPI-Network/vapi-network#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/vAPI-Network/vapi-network/issues"
14
+ },
15
+ "type": "module",
16
+ "sideEffects": false,
17
+ "files": [
18
+ "dist",
19
+ "README.md"
20
+ ],
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js"
25
+ }
26
+ },
27
+ "dependencies": {},
28
+ "engines": {
29
+ "node": ">=22"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "tag": "next"
34
+ }
35
+ }