@vapi-network/sources 0.5.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 +27 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,5 +10,30 @@ One entry point, `@vapi-network/sources`, exporting `vapiRegistrySource`,
|
|
|
10
10
|
`bazaarSource`, `localFileSource` and `x402scanSource`. The x402scan adapter is
|
|
11
11
|
intentionally a stub until x402scan documents a stable public read API.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
## Exports
|
|
14
|
+
|
|
15
|
+
### Runtime exports
|
|
16
|
+
|
|
17
|
+
| Name | What it is | Since |
|
|
18
|
+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------- |
|
|
19
|
+
| `bazaarSource` | function (facilitatorUrl: string, options: BazaarSourceOptions = {}): Source | 0.5.0 or earlier |
|
|
20
|
+
| `findMarketplaceApiByRef` | function (ref: string, config: VapiRegistryConfig, fetchImpl?: Fetch): Promise<MarketplaceHit \| null> | 0.5.0 or earlier |
|
|
21
|
+
| `localFileSource` | function (path: string): Source | 0.5.0 or earlier |
|
|
22
|
+
| `mapBazaarItem` | function (value: unknown, sourceUrl: string): Listing \| undefined | 0.5.0 or earlier |
|
|
23
|
+
| `resolveServiceEndpoint` | function (id: string, config: VapiRegistryConfig, fetchImpl?: Fetch, endpointName?: string): Promise<DiscoveryEndpoint> | 0.5.0 or earlier |
|
|
24
|
+
| `resolveServiceListing` | function (id: string, config: VapiRegistryConfig, fetchImpl?: Fetch, endpointName?: string): Promise<ResolvedListing> | 0.5.0 or earlier |
|
|
25
|
+
| `searchMarketplace` | function (input: MarketplaceSearchInput, config: VapiRegistryConfig, fetchImpl?: Fetch, options: MarketplaceSearchOptions = {}): Promise<MarketplaceDiscoveryPage> | 0.5.0 or earlier |
|
|
26
|
+
| `vapiRegistrySource` | function (baseUrl: string, options: VapiRegistrySourceOptions = {}): Source | 0.5.0 or earlier |
|
|
27
|
+
| `x402scanSource` | function (): Source | 0.5.0 or earlier |
|
|
28
|
+
|
|
29
|
+
### Types
|
|
30
|
+
|
|
31
|
+
| Name | What it is | Since |
|
|
32
|
+
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
|
|
33
|
+
| `BazaarSourceOptions` | type BazaarSourceOptions = GuardedSourceOptions | 0.5.0 or earlier |
|
|
34
|
+
| `MarketplaceSearchInput` | type MarketplaceSearchInput = { query?: string; kinds?: MarketplaceKind[]; network?: string; limit?: number; cursor?: string; includeUnverified?: boolean; } | 0.5.0 or earlier |
|
|
35
|
+
| `MarketplaceSearchOptions` | type MarketplaceSearchOptions = Readonly<{ searchesPath?: string; now?: Date; nowMs?: () => number; notice?: (message: string) => void; }> | 0.5.0 or earlier |
|
|
36
|
+
| `VapiRegistryConfig` | type VapiRegistryConfig = Readonly<{ discoveryUrl: string; marketplaceDiscoveryUrl: string; registryFallbacks?: ReadonlyArray< Readonly<{ discoveryUrl: string; marketplaceDiscoveryUrl: string }> >; allowPrivateNetwork?: boolean; }> | 0.5.0 or earlier |
|
|
37
|
+
| `VapiRegistrySourceOptions` | type VapiRegistrySourceOptions = GuardedSourceOptions & Readonly<{ discoveryUrl?: string; }> | 0.5.0 or earlier |
|
|
38
|
+
|
|
39
|
+
See the [root README](https://github.com/vAPI-Network/vapi-network/blob/main/docs/call.md) for how the client merges and de-duplicates sources.
|
package/dist/index.js
CHANGED
|
@@ -20280,7 +20280,8 @@ var NETWORKS = {
|
|
|
20280
20280
|
usdc: CANONICAL_X402_USDC_NETWORKS[BASE_MAINNET_CAIP2].usdc,
|
|
20281
20281
|
gasToken: "ETH",
|
|
20282
20282
|
rpcEnv: "BASE_RPC_URL",
|
|
20283
|
-
publicRpcUrl: "https://mainnet.base.org"
|
|
20283
|
+
publicRpcUrl: "https://mainnet.base.org",
|
|
20284
|
+
explorerUrl: "https://basescan.org"
|
|
20284
20285
|
},
|
|
20285
20286
|
[ARC_MAINNET_CAIP2]: {
|
|
20286
20287
|
family: "evm",
|
|
@@ -20383,7 +20384,8 @@ var configSchema = external_exports.object({
|
|
|
20383
20384
|
}).optional()
|
|
20384
20385
|
})
|
|
20385
20386
|
),
|
|
20386
|
-
spendCaps: spendCapsSchema
|
|
20387
|
+
spendCaps: spendCapsSchema,
|
|
20388
|
+
device: external_exports.string().regex(/^[a-z0-9][a-z0-9-]{0,31}$/).optional()
|
|
20387
20389
|
}).superRefine((config2, context) => {
|
|
20388
20390
|
for (const [network, configured] of Object.entries(config2.networks)) {
|
|
20389
20391
|
if (isSolanaNetwork(network)) {
|