@aventurevc/api-schemas 0.8.335 → 0.8.337
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.
|
@@ -1318,6 +1318,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
1318
1318
|
UrlTypeAlias: { modulePath: "url/type-alias", schemaName: "UrlTypeAliasSchema" },
|
|
1319
1319
|
ValuationType: { modulePath: "valuation/type", schemaName: "ValuationTypeSchema" },
|
|
1320
1320
|
WebSearch: { modulePath: "web/search", schemaName: "WebSearchSchema" },
|
|
1321
|
+
WebSearchCacheSource: {
|
|
1322
|
+
modulePath: "web/search-cache-source",
|
|
1323
|
+
schemaName: "WebSearchCacheSourceSchema",
|
|
1324
|
+
},
|
|
1321
1325
|
WebSearchProvider: { modulePath: "web/search-provider", schemaName: "WebSearchProviderSchema" },
|
|
1322
1326
|
WebSearchRecency: { modulePath: "web/search-recency", schemaName: "WebSearchRecencySchema" },
|
|
1323
1327
|
WriterAnalysisSection: {
|
package/dist/search/search.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ declare const SearchSchemaDefinition: z.ZodObject<{
|
|
|
3
3
|
allowSuspectedShellStrip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
4
|
bypassCache: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
5
5
|
cacheKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
cacheSource: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
ANY: "ANY";
|
|
8
|
+
PROVIDER: "PROVIDER";
|
|
9
|
+
}>>>;
|
|
6
10
|
deep: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
11
|
deferredAiOverview: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
12
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/search/search.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { EntityPersonOwnerSchema } from "../entity/person-owner.js";
|
|
4
|
+
import { WebSearchCacheSourceSchema } from "../web/search-cache-source.js";
|
|
4
5
|
import { WebSearchProviderSchema } from "../web/search-provider.js";
|
|
5
6
|
import { WebSearchRecencySchema } from "../web/search-recency.js";
|
|
6
7
|
const SearchSchemaDefinition = z.object({
|
|
@@ -10,6 +11,8 @@ const SearchSchemaDefinition = z.object({
|
|
|
10
11
|
bypassCache: z.boolean().default(false).optional(),
|
|
11
12
|
/** Stable lookup text for cache keying when generated search text varies between runs */
|
|
12
13
|
cacheKey: z.string().nullish(),
|
|
14
|
+
/** Permit compatible cached results from ANY provider by default, or restrict to PROVIDER. The provider field independently selects live misses; bypassCache skips every provider's cache. document.provider identifies the serving source. */
|
|
15
|
+
cacheSource: WebSearchCacheSourceSchema.default("ANY").optional(),
|
|
13
16
|
/** Deprecated alias for `provider: EXA_DEEP`; `true` with any other `provider` is refused with 400. */
|
|
14
17
|
deep: z.boolean().default(false).optional(),
|
|
15
18
|
/** Wait in-request for Google's AI Overview when Google defers it to a follow-up request, as it does for most company and person lookups: one extra SerpAPI search per overview not already stored. An explicit `true` also reruns a stored search older than SerpAPI's one-hour cache to get a fresh token (its one-minute overview token expired and the cache would return it unchanged). Without it, no deferred overview is fetched; one an earlier fetch stored still comes back at no extra cost. A fetch that returns no overview is not retried for six hours. An overview Google returns inline always comes back in `aiOverview` at no extra cost. Exa results never carry one. */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* ANY reuses a compatible cached web search from any provider, checking the selected provider first. PROVIDER restricts reuse to the selected live provider. Neither option changes bypassCache, which always fetches from the live provider.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema WebSearchCacheSource
|
|
6
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
7
|
+
* @endpoint POST /v1/web/search
|
|
8
|
+
* @usedBySchema SearchSchema
|
|
9
|
+
* @contractShape web.search-cache-source
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const WebSearchCacheSourceSchema: z.ZodEnum<{
|
|
13
|
+
ANY: "ANY";
|
|
14
|
+
PROVIDER: "PROVIDER";
|
|
15
|
+
}>;
|
|
16
|
+
export type WebSearchCacheSource = z.infer<typeof WebSearchCacheSourceSchema>;
|
|
17
|
+
//# sourceMappingURL=search-cache-source.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
/**
|
|
4
|
+
* ANY reuses a compatible cached web search from any provider, checking the selected provider first. PROVIDER restricts reuse to the selected live provider. Neither option changes bypassCache, which always fetches from the live provider.
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema WebSearchCacheSource
|
|
7
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
8
|
+
* @endpoint POST /v1/web/search
|
|
9
|
+
* @usedBySchema SearchSchema
|
|
10
|
+
* @contractShape web.search-cache-source
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const WebSearchCacheSourceSchema = z.enum(["ANY", "PROVIDER"]);
|
|
14
|
+
//# sourceMappingURL=search-cache-source.js.map
|
package/dist/web/search.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
104
104
|
allowSuspectedShellStrip?: boolean | null | undefined;
|
|
105
105
|
bypassCache?: boolean | undefined;
|
|
106
106
|
cacheKey?: string | null | undefined;
|
|
107
|
+
cacheSource?: "ANY" | "PROVIDER" | undefined;
|
|
107
108
|
deep?: boolean | undefined;
|
|
108
109
|
deferredAiOverview?: boolean | undefined;
|
|
109
110
|
language?: string | null | undefined;
|
|
@@ -121,6 +122,7 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
121
122
|
allowSuspectedShellStrip?: boolean | null | undefined;
|
|
122
123
|
bypassCache?: boolean | undefined;
|
|
123
124
|
cacheKey?: string | null | undefined;
|
|
125
|
+
cacheSource?: "ANY" | "PROVIDER" | undefined;
|
|
124
126
|
deep?: boolean | undefined;
|
|
125
127
|
deferredAiOverview?: boolean | undefined;
|
|
126
128
|
language?: string | null | undefined;
|