@aventurevc/api-schemas 0.8.158 → 0.8.159
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/openapi-component-manifest.js +14 -0
- package/dist/search/answer-box.d.ts +20 -0
- package/dist/search/answer-box.js +25 -0
- package/dist/search/knowledge-graph.d.ts +19 -0
- package/dist/search/knowledge-graph.js +23 -0
- package/dist/search/related-question.d.ts +24 -0
- package/dist/search/related-question.js +24 -0
- package/dist/search/sports-result.d.ts +26 -0
- package/dist/search/sports-result.js +26 -0
- package/dist/search/sports-team.d.ts +22 -0
- package/dist/search/sports-team.js +20 -0
- package/dist/web/search.d.ts +38 -0
- package/dist/web/search.js +14 -0
- package/package.json +1 -1
|
@@ -875,6 +875,7 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
875
875
|
schemaName: "SearchAiOverviewReferenceSchema",
|
|
876
876
|
},
|
|
877
877
|
SearchAnswer: { modulePath: "search/answer", schemaName: "SearchAnswerSchema" },
|
|
878
|
+
SearchAnswerBox: { modulePath: "search/answer-box", schemaName: "SearchAnswerBoxSchema" },
|
|
878
879
|
SearchAnswerCitation: {
|
|
879
880
|
modulePath: "search/answer-citation",
|
|
880
881
|
schemaName: "SearchAnswerCitationSchema",
|
|
@@ -900,6 +901,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
900
901
|
},
|
|
901
902
|
SearchInvestment: { modulePath: "search/investment", schemaName: "SearchInvestmentSchema" },
|
|
902
903
|
SearchJudgment: { modulePath: "search/judgment", schemaName: "SearchJudgmentSchema" },
|
|
904
|
+
SearchKnowledgeGraph: {
|
|
905
|
+
modulePath: "search/knowledge-graph",
|
|
906
|
+
schemaName: "SearchKnowledgeGraphSchema",
|
|
907
|
+
},
|
|
903
908
|
SearchLayer: { modulePath: "search/layer", schemaName: "SearchLayerSchema" },
|
|
904
909
|
SearchMode: { modulePath: "search/mode", schemaName: "SearchModeSchema" },
|
|
905
910
|
SearchModeExecution: {
|
|
@@ -920,7 +925,16 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
920
925
|
modulePath: "search/qualifier-option",
|
|
921
926
|
schemaName: "SearchQualifierOptionSchema",
|
|
922
927
|
},
|
|
928
|
+
SearchRelatedQuestion: {
|
|
929
|
+
modulePath: "search/related-question",
|
|
930
|
+
schemaName: "SearchRelatedQuestionSchema",
|
|
931
|
+
},
|
|
923
932
|
SearchRelevance: { modulePath: "search/relevance", schemaName: "SearchRelevanceSchema" },
|
|
933
|
+
SearchSportsResult: {
|
|
934
|
+
modulePath: "search/sports-result",
|
|
935
|
+
schemaName: "SearchSportsResultSchema",
|
|
936
|
+
},
|
|
937
|
+
SearchSportsTeam: { modulePath: "search/sports-team", schemaName: "SearchSportsTeamSchema" },
|
|
924
938
|
SecCompany: { modulePath: "sec/company", schemaName: "SecCompanySchema" },
|
|
925
939
|
SecListingProspectus: {
|
|
926
940
|
modulePath: "sec/listing-prospectus",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Google's direct answer shown above the results
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema SearchAnswerBox
|
|
6
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
7
|
+
* @endpoint POST /v1/web/search
|
|
8
|
+
* @usedBySchema WebSearchSchema
|
|
9
|
+
* @contractShape search.answer-box
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const SearchAnswerBoxSchema: z.ZodObject<{
|
|
13
|
+
answer: z.ZodString;
|
|
14
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type SearchAnswerBox = z.infer<typeof SearchAnswerBoxSchema>;
|
|
20
|
+
//# sourceMappingURL=answer-box.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Google's direct answer shown above the results
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema SearchAnswerBox
|
|
7
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
8
|
+
* @endpoint POST /v1/web/search
|
|
9
|
+
* @usedBySchema WebSearchSchema
|
|
10
|
+
* @contractShape search.answer-box
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const SearchAnswerBoxSchema = z.object({
|
|
14
|
+
/** Direct answer text; Google's snippet when the box states no separate answer */
|
|
15
|
+
answer: z.string(),
|
|
16
|
+
/** Supporting snippet the box shows */
|
|
17
|
+
snippet: z.string().nullish(),
|
|
18
|
+
/** Title of the page the answer comes from */
|
|
19
|
+
title: z.string().nullish(),
|
|
20
|
+
/** Google's answer-box kind */
|
|
21
|
+
type: z.string().nullish(),
|
|
22
|
+
/** URL of the page the answer comes from */
|
|
23
|
+
url: z.string().nullish(),
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=answer-box.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Google's knowledge panel for the entity the query names
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema SearchKnowledgeGraph
|
|
6
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
7
|
+
* @endpoint POST /v1/web/search
|
|
8
|
+
* @usedBySchema WebSearchSchema
|
|
9
|
+
* @contractShape search.knowledge-graph
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const SearchKnowledgeGraphSchema: z.ZodObject<{
|
|
13
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type SearchKnowledgeGraph = z.infer<typeof SearchKnowledgeGraphSchema>;
|
|
19
|
+
//# sourceMappingURL=knowledge-graph.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Google's knowledge panel for the entity the query names
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema SearchKnowledgeGraph
|
|
7
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
8
|
+
* @endpoint POST /v1/web/search
|
|
9
|
+
* @usedBySchema WebSearchSchema
|
|
10
|
+
* @contractShape search.knowledge-graph
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const SearchKnowledgeGraphSchema = z.object({
|
|
14
|
+
/** Entity description the panel shows */
|
|
15
|
+
description: z.string().nullish(),
|
|
16
|
+
/** Entity name the panel shows */
|
|
17
|
+
title: z.string().nullish(),
|
|
18
|
+
/** Entity kind Google states */
|
|
19
|
+
type: z.string().nullish(),
|
|
20
|
+
/** Official website the panel links */
|
|
21
|
+
website: z.string().nullish(),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=knowledge-graph.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const SearchRelatedQuestionSchemaDefinition: z.ZodObject<{
|
|
3
|
+
question: z.ZodString;
|
|
4
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type SearchRelatedQuestionDefinition = z.infer<typeof SearchRelatedQuestionSchemaDefinition>;
|
|
9
|
+
export interface SearchRelatedQuestionSchemaInput extends z.input<typeof SearchRelatedQuestionSchemaDefinition> {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One "People also ask" question Google shows for the query
|
|
13
|
+
*
|
|
14
|
+
* @openapiSchema SearchRelatedQuestion
|
|
15
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
16
|
+
* @endpoint POST /v1/web/search
|
|
17
|
+
* @usedBySchema WebSearchSchema
|
|
18
|
+
* @contractShape search.related-question
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export declare const SearchRelatedQuestionSchema: z.ZodType<SearchRelatedQuestionDefinition, SearchRelatedQuestionSchemaInput>;
|
|
22
|
+
export type SearchRelatedQuestion = z.infer<typeof SearchRelatedQuestionSchema>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=related-question.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
const SearchRelatedQuestionSchemaDefinition = z.object({
|
|
4
|
+
/** Question text */
|
|
5
|
+
question: z.string(),
|
|
6
|
+
/** Answer snippet; null when Google answers the question with an AI Overview */
|
|
7
|
+
snippet: z.string().nullish(),
|
|
8
|
+
/** Title of the page the snippet comes from */
|
|
9
|
+
title: z.string().nullish(),
|
|
10
|
+
/** URL of the page the snippet comes from */
|
|
11
|
+
url: z.string().nullish(),
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* One "People also ask" question Google shows for the query
|
|
15
|
+
*
|
|
16
|
+
* @openapiSchema SearchRelatedQuestion
|
|
17
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
18
|
+
* @endpoint POST /v1/web/search
|
|
19
|
+
* @usedBySchema WebSearchSchema
|
|
20
|
+
* @contractShape search.related-question
|
|
21
|
+
* @contractRole canonical
|
|
22
|
+
*/
|
|
23
|
+
export const SearchRelatedQuestionSchema = SearchRelatedQuestionSchemaDefinition;
|
|
24
|
+
//# sourceMappingURL=related-question.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Google's spotlight for one game the query names
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema SearchSportsResult
|
|
6
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
7
|
+
* @endpoint POST /v1/web/search
|
|
8
|
+
* @usedBySchema WebSearchSchema
|
|
9
|
+
* @contractShape search.sports-result
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const SearchSportsResultSchema: z.ZodObject<{
|
|
13
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
league: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
17
|
+
name: string;
|
|
18
|
+
seeding?: number | null | undefined;
|
|
19
|
+
}, import("./sports-team.ts").SearchSportsTeamSchemaInput, z.core.$ZodTypeInternals<{
|
|
20
|
+
name: string;
|
|
21
|
+
seeding?: number | null | undefined;
|
|
22
|
+
}, import("./sports-team.ts").SearchSportsTeamSchemaInput>>>>>;
|
|
23
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type SearchSportsResult = z.infer<typeof SearchSportsResultSchema>;
|
|
26
|
+
//# sourceMappingURL=sports-result.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import { SearchSportsTeamSchema } from "./sports-team.js";
|
|
4
|
+
/**
|
|
5
|
+
* Google's spotlight for one game the query names
|
|
6
|
+
*
|
|
7
|
+
* @openapiSchema SearchSportsResult
|
|
8
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
9
|
+
* @endpoint POST /v1/web/search
|
|
10
|
+
* @usedBySchema WebSearchSchema
|
|
11
|
+
* @contractShape search.sports-result
|
|
12
|
+
* @contractRole canonical
|
|
13
|
+
*/
|
|
14
|
+
export const SearchSportsResultSchema = z.object({
|
|
15
|
+
/** Game date as Google states it */
|
|
16
|
+
date: z.string().nullish(),
|
|
17
|
+
/** League or tournament */
|
|
18
|
+
league: z.string().nullish(),
|
|
19
|
+
/** Stage of the competition */
|
|
20
|
+
stage: z.string().nullish(),
|
|
21
|
+
/** Teams in the game */
|
|
22
|
+
team: z.array(SearchSportsTeamSchema).nullish(),
|
|
23
|
+
/** Venue or stadium */
|
|
24
|
+
venue: z.string().nullish(),
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=sports-result.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const SearchSportsTeamSchemaDefinition: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
seeding: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type SearchSportsTeamDefinition = z.infer<typeof SearchSportsTeamSchemaDefinition>;
|
|
7
|
+
export interface SearchSportsTeamSchemaInput extends z.input<typeof SearchSportsTeamSchemaDefinition> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* One team in a spotlighted game
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema SearchSportsTeam
|
|
13
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
14
|
+
* @endpoint POST /v1/web/search
|
|
15
|
+
* @usedBySchema SearchSportsResultSchema
|
|
16
|
+
* @contractShape search.sports-team
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export declare const SearchSportsTeamSchema: z.ZodType<SearchSportsTeamDefinition, SearchSportsTeamSchemaInput>;
|
|
20
|
+
export type SearchSportsTeam = z.infer<typeof SearchSportsTeamSchema>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=sports-team.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
const SearchSportsTeamSchemaDefinition = z.object({
|
|
4
|
+
/** Team name */
|
|
5
|
+
name: z.string(),
|
|
6
|
+
/** Tournament seeding when Google states one */
|
|
7
|
+
seeding: z.int().nullish(),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* One team in a spotlighted game
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema SearchSportsTeam
|
|
13
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
14
|
+
* @endpoint POST /v1/web/search
|
|
15
|
+
* @usedBySchema SearchSportsResultSchema
|
|
16
|
+
* @contractShape search.sports-team
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export const SearchSportsTeamSchema = SearchSportsTeamSchemaDefinition;
|
|
20
|
+
//# sourceMappingURL=sports-team.js.map
|
package/dist/web/search.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
16
16
|
}, import("../search/ai-overview-reference.ts").SearchAiOverviewReferenceSchemaInput>>>;
|
|
17
17
|
text: z.ZodString;
|
|
18
18
|
}, z.core.$strip>>>;
|
|
19
|
+
answerBox: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
answer: z.ZodString;
|
|
21
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
19
26
|
document: z.ZodType<{
|
|
20
27
|
cacheHitCount: number;
|
|
21
28
|
createdAt: string;
|
|
@@ -47,6 +54,24 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
47
54
|
sourceKey: string;
|
|
48
55
|
upstreamContentEncoding?: string | null | undefined;
|
|
49
56
|
}, import("../source/document-list.ts").SourceDocumentListSchemaInput>>;
|
|
57
|
+
knowledgeGraph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
relatedQuestion: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
64
|
+
question: string;
|
|
65
|
+
snippet?: string | null | undefined;
|
|
66
|
+
title?: string | null | undefined;
|
|
67
|
+
url?: string | null | undefined;
|
|
68
|
+
}, import("../search/related-question.ts").SearchRelatedQuestionSchemaInput, z.core.$ZodTypeInternals<{
|
|
69
|
+
question: string;
|
|
70
|
+
snippet?: string | null | undefined;
|
|
71
|
+
title?: string | null | undefined;
|
|
72
|
+
url?: string | null | undefined;
|
|
73
|
+
}, import("../search/related-question.ts").SearchRelatedQuestionSchemaInput>>>>>;
|
|
74
|
+
relatedSearch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
50
75
|
result: z.ZodArray<z.ZodType<{
|
|
51
76
|
relevanceScore: number;
|
|
52
77
|
snippet: string;
|
|
@@ -97,6 +122,19 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
97
122
|
tenant?: "development" | "production" | "staging" | "unassigned" | null | undefined;
|
|
98
123
|
tenantPolicyRevision?: number | null | undefined;
|
|
99
124
|
}, import("../search/search.ts").SearchSchemaInput>>;
|
|
125
|
+
sportsResult: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
126
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
league: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
130
|
+
name: string;
|
|
131
|
+
seeding?: number | null | undefined;
|
|
132
|
+
}, import("../search/sports-team.ts").SearchSportsTeamSchemaInput, z.core.$ZodTypeInternals<{
|
|
133
|
+
name: string;
|
|
134
|
+
seeding?: number | null | undefined;
|
|
135
|
+
}, import("../search/sports-team.ts").SearchSportsTeamSchemaInput>>>>>;
|
|
136
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
100
138
|
}, z.core.$strip>;
|
|
101
139
|
type WebSearchDefinition = z.infer<typeof WebSearchSchemaDefinition>;
|
|
102
140
|
export interface WebSearchSchemaInput extends z.input<typeof WebSearchSchemaDefinition> {
|
package/dist/web/search.js
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
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 { SearchAiOverviewSchema } from "../search/ai-overview.js";
|
|
4
|
+
import { SearchAnswerBoxSchema } from "../search/answer-box.js";
|
|
4
5
|
import { SearchHitSchema } from "../search/hit.js";
|
|
6
|
+
import { SearchKnowledgeGraphSchema } from "../search/knowledge-graph.js";
|
|
7
|
+
import { SearchRelatedQuestionSchema } from "../search/related-question.js";
|
|
5
8
|
import { SearchSchema } from "../search/search.js";
|
|
9
|
+
import { SearchSportsResultSchema } from "../search/sports-result.js";
|
|
6
10
|
import { SourceDocumentListSchema } from "../source/document-list.js";
|
|
7
11
|
const WebSearchSchemaDefinition = z.object({
|
|
8
12
|
/** Google's AI Overview: returned whenever Google answers inline or its deferred overview is stored (fetched by this or an earlier search that set `deferredAiOverview`); null when Google produced none or no such fetch stored its deferred overview */
|
|
9
13
|
aiOverview: SearchAiOverviewSchema.nullish(),
|
|
14
|
+
/** Google's direct answer box; null when the page shows none */
|
|
15
|
+
answerBox: SearchAnswerBoxSchema.nullish(),
|
|
10
16
|
/** Source-document ledger row backing this result */
|
|
11
17
|
document: SourceDocumentListSchema,
|
|
18
|
+
/** Google's knowledge panel; null when the page shows none */
|
|
19
|
+
knowledgeGraph: SearchKnowledgeGraphSchema.nullish(),
|
|
20
|
+
/** Google's "People also ask" questions; null when the page shows none */
|
|
21
|
+
relatedQuestion: z.array(SearchRelatedQuestionSchema).nullish(),
|
|
22
|
+
/** Google's related searches; null when the page shows none */
|
|
23
|
+
relatedSearch: z.array(z.string()).nullish(),
|
|
12
24
|
/** Normalized result items in provider rank order */
|
|
13
25
|
result: z.array(SearchHitSchema),
|
|
14
26
|
/** Web search request represented by this result */
|
|
15
27
|
search: SearchSchema,
|
|
28
|
+
/** Google's game spotlight; null when the page shows none */
|
|
29
|
+
sportsResult: SearchSportsResultSchema.nullish(),
|
|
16
30
|
});
|
|
17
31
|
/**
|
|
18
32
|
* Live web search result with its backing source-document row and normalized items
|