@aventurevc/api-schemas 0.8.71 → 0.8.72
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/entity/filter.d.ts +2 -0
- package/dist/entity/filter.js +2 -0
- package/dist/federated/natural-search.d.ts +180 -0
- package/dist/federated/natural-search.js +24 -0
- package/dist/federated/search-provenance.d.ts +9 -0
- package/dist/federated/search-provenance.js +3 -0
- package/dist/federated/search-rejection.d.ts +26 -0
- package/dist/federated/search-rejection.js +23 -0
- package/dist/federated/search.d.ts +16 -6
- package/dist/link/search.d.ts +16 -6
- package/dist/natural/search-result.d.ts +6 -6
- package/dist/natural/search.d.ts +0 -1
- package/dist/natural/search.js +0 -1
- package/dist/openapi-component-manifest.js +8 -0
- package/dist/search/answer-citation.d.ts +1 -5
- package/dist/search/answer-paragraph.d.ts +2 -2
- package/dist/search/answer.d.ts +4 -4
- package/dist/search/evidence-source.d.ts +8 -5
- package/dist/search/evidence-source.js +5 -5
- package/dist/search/mode.d.ts +1 -0
- package/dist/search/mode.js +1 -0
- package/dist/search/passage.d.ts +1 -5
- package/package.json +1 -1
package/dist/entity/filter.d.ts
CHANGED
|
@@ -5,9 +5,11 @@ import { z } from "zod/v4";
|
|
|
5
5
|
* @openapiSchema EntityFilter
|
|
6
6
|
* @endpoint POST /v1/entities/filters/refine
|
|
7
7
|
* @endpoint POST /v1/entities/filters/search
|
|
8
|
+
* @endpoint POST /v1/search
|
|
8
9
|
* @endpoint POST /v1/search/natural/entities
|
|
9
10
|
* @usedBySchema EntityFilterSearchSchema
|
|
10
11
|
* @usedBySchema EntityNaturalSearchSchema
|
|
12
|
+
* @usedBySchema FederatedNaturalSearchSchema
|
|
11
13
|
* @contractShape entity.filter
|
|
12
14
|
* @contractRole canonical
|
|
13
15
|
*/
|
package/dist/entity/filter.js
CHANGED
|
@@ -14,9 +14,11 @@ import { UrlMatchModeSchema } from "../url/match-mode.js";
|
|
|
14
14
|
* @openapiSchema EntityFilter
|
|
15
15
|
* @endpoint POST /v1/entities/filters/refine
|
|
16
16
|
* @endpoint POST /v1/entities/filters/search
|
|
17
|
+
* @endpoint POST /v1/search
|
|
17
18
|
* @endpoint POST /v1/search/natural/entities
|
|
18
19
|
* @usedBySchema EntityFilterSearchSchema
|
|
19
20
|
* @usedBySchema EntityNaturalSearchSchema
|
|
21
|
+
* @usedBySchema FederatedNaturalSearchSchema
|
|
20
22
|
* @contractShape entity.filter
|
|
21
23
|
* @contractRole canonical
|
|
22
24
|
*/
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const FederatedNaturalSearchSchemaDefinition: z.ZodObject<{
|
|
3
|
+
entityFilter: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
acceleratorBrand: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
|
+
acceleratorCohort: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
acceleratorName: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
acceleratorStatus: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
closedLast: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
11
|
+
max?: number | null | undefined;
|
|
12
|
+
min?: number | null | undefined;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
14
|
+
max?: number | null | undefined;
|
|
15
|
+
min?: number | null | undefined;
|
|
16
|
+
}, unknown>>>>;
|
|
17
|
+
entityId: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
18
|
+
entityName: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
featured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
fundraiseActivity: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
amountInvestedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
22
|
+
max?: number | null | undefined;
|
|
23
|
+
min?: number | null | undefined;
|
|
24
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
25
|
+
max?: number | null | undefined;
|
|
26
|
+
min?: number | null | undefined;
|
|
27
|
+
}, unknown>>>>;
|
|
28
|
+
amountRaisedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
29
|
+
max?: number | null | undefined;
|
|
30
|
+
min?: number | null | undefined;
|
|
31
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
32
|
+
max?: number | null | undefined;
|
|
33
|
+
min?: number | null | undefined;
|
|
34
|
+
}, unknown>>>>;
|
|
35
|
+
investedCompanyName: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
investorActivity: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
averageAmountInvestedUsdRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
38
|
+
max?: number | null | undefined;
|
|
39
|
+
min?: number | null | undefined;
|
|
40
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
41
|
+
max?: number | null | undefined;
|
|
42
|
+
min?: number | null | undefined;
|
|
43
|
+
}, unknown>>>>;
|
|
44
|
+
largestAmountInvestedUsdRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
45
|
+
max?: number | null | undefined;
|
|
46
|
+
min?: number | null | undefined;
|
|
47
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
48
|
+
max?: number | null | undefined;
|
|
49
|
+
min?: number | null | undefined;
|
|
50
|
+
}, unknown>>>>;
|
|
51
|
+
smallestAmountInvestedUsdRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
52
|
+
max?: number | null | undefined;
|
|
53
|
+
min?: number | null | undefined;
|
|
54
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
55
|
+
max?: number | null | undefined;
|
|
56
|
+
min?: number | null | undefined;
|
|
57
|
+
}, unknown>>>>;
|
|
58
|
+
totalAmountInvestedUsdRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
59
|
+
max?: number | null | undefined;
|
|
60
|
+
min?: number | null | undefined;
|
|
61
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
62
|
+
max?: number | null | undefined;
|
|
63
|
+
min?: number | null | undefined;
|
|
64
|
+
}, unknown>>>>;
|
|
65
|
+
totalInvestmentRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
66
|
+
max?: number | null | undefined;
|
|
67
|
+
min?: number | null | undefined;
|
|
68
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
69
|
+
max?: number | null | undefined;
|
|
70
|
+
min?: number | null | undefined;
|
|
71
|
+
}, unknown>>>>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
lastRoundYearRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
74
|
+
max?: number | null | undefined;
|
|
75
|
+
min?: number | null | undefined;
|
|
76
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
77
|
+
max?: number | null | undefined;
|
|
78
|
+
min?: number | null | undefined;
|
|
79
|
+
}, unknown>>>>;
|
|
80
|
+
round: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
+
totalRaisedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
82
|
+
max?: number | null | undefined;
|
|
83
|
+
min?: number | null | undefined;
|
|
84
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
85
|
+
max?: number | null | undefined;
|
|
86
|
+
min?: number | null | undefined;
|
|
87
|
+
}, unknown>>>>;
|
|
88
|
+
valuationRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
89
|
+
max?: number | null | undefined;
|
|
90
|
+
min?: number | null | undefined;
|
|
91
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
92
|
+
max?: number | null | undefined;
|
|
93
|
+
min?: number | null | undefined;
|
|
94
|
+
}, unknown>>>>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
hasFundraising: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
97
|
+
headquartersCity: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
+
headquartersCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
|
+
headquartersState: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
100
|
+
industry: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
|
+
letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
location: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
+
logoOption: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
sortPriority: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
ANY_LOGO_FIRST: "ANY_LOGO_FIRST";
|
|
106
|
+
NONE: "NONE";
|
|
107
|
+
REAL_LOGO_FIRST: "REAL_LOGO_FIRST";
|
|
108
|
+
}>>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
mainProduct: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
operatingStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
112
|
+
Acquired: "Acquired";
|
|
113
|
+
"Acquired Subsidiary": "Acquired Subsidiary";
|
|
114
|
+
Closed: "Closed";
|
|
115
|
+
"Closed (Acquihire)": "Closed (Acquihire)";
|
|
116
|
+
Inactive: "Inactive";
|
|
117
|
+
Operating: "Operating";
|
|
118
|
+
}>>>;
|
|
119
|
+
person: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
+
portfolioHeadquartersCity: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
|
+
portfolioHeadquartersCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
+
portfolioHeadquartersState: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
123
|
+
qualityGate: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
COMPANY_LISTING_READY: "COMPANY_LISTING_READY";
|
|
125
|
+
NONE: "NONE";
|
|
126
|
+
}>>;
|
|
127
|
+
slug: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
stage: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
129
|
+
suppressNonOperating: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
130
|
+
suppressZeroTotalRaised: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
131
|
+
tag: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
132
|
+
textSearch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
+
typeCustomer: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
+
typeModel: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
|
+
typeOwnership: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
|
+
typeRecord: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
137
|
+
"Business Line": "Business Line";
|
|
138
|
+
Company: "Company";
|
|
139
|
+
Fund: "Fund";
|
|
140
|
+
Government: "Government";
|
|
141
|
+
"Investment Firm": "Investment Firm";
|
|
142
|
+
Nonprofit: "Nonprofit";
|
|
143
|
+
Organization: "Organization";
|
|
144
|
+
Product: "Product";
|
|
145
|
+
Service: "Service";
|
|
146
|
+
}>>>;
|
|
147
|
+
typeRevenue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
148
|
+
typeTechnologyUsed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
+
urlDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
urlMatchMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
152
|
+
domain: "domain";
|
|
153
|
+
hostPath: "hostPath";
|
|
154
|
+
}>>>;
|
|
155
|
+
urlType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
yearFoundedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
157
|
+
max?: number | null | undefined;
|
|
158
|
+
min?: number | null | undefined;
|
|
159
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
160
|
+
max?: number | null | undefined;
|
|
161
|
+
min?: number | null | undefined;
|
|
162
|
+
}, unknown>>>>;
|
|
163
|
+
}, z.core.$strict>>;
|
|
164
|
+
mode: z.ZodOptional<z.ZodDefault<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>>;
|
|
165
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
query: z.ZodString;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
type FederatedNaturalSearchDefinition = z.infer<typeof FederatedNaturalSearchSchemaDefinition>;
|
|
169
|
+
/**
|
|
170
|
+
* Plain-English search across companies, people, and news, plus optional hard constraints for the entity scope.
|
|
171
|
+
*
|
|
172
|
+
* @openapiSchema FederatedNaturalSearch
|
|
173
|
+
* @endpoint POST /v1/search
|
|
174
|
+
* @contractShape federated.natural-search
|
|
175
|
+
* @contractRole canonical
|
|
176
|
+
*/
|
|
177
|
+
export declare const FederatedNaturalSearchSchema: z.ZodType<FederatedNaturalSearchDefinition>;
|
|
178
|
+
export type FederatedNaturalSearch = z.infer<typeof FederatedNaturalSearchSchema>;
|
|
179
|
+
export {};
|
|
180
|
+
//# sourceMappingURL=natural-search.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
|
+
import { EntityFilterSchema } from "../entity/filter.js";
|
|
4
|
+
import { SearchModeSchema } from "../search/mode.js";
|
|
5
|
+
const FederatedNaturalSearchSchemaDefinition = z.object({
|
|
6
|
+
/** Explicit entity constraints for the entity scope only, as on POST /v1/search/natural/entities: caller-supplied fields override planner values. The person and news scopes ignore it. */
|
|
7
|
+
entityFilter: EntityFilterSchema.optional(),
|
|
8
|
+
/** Search strategy to run. Defaults to `auto`: the fast name layer runs first (a single-token query as keyword search, a multiword query as an exact normalized name) and the language-model planner runs only on a miss, so name lookups never pay for planning. Any other value forces exactly that strategy: `exact` and `keyword` skip planner model resolution and its rate limit. Entity and person natural-search take every value but `hybrid`; news and federated search accept only `auto` and `keyword`; content search accepts `auto`, `keyword`, `semantic`, and `hybrid` (`semantic` and `hybrid` only for one entity's or person's content). */
|
|
9
|
+
mode: SearchModeSchema.default("auto").optional(),
|
|
10
|
+
/** Optional chat model for planning; null uses the configured natural-search default. A caller without admin authority may only choose an allowlisted model; admin callers are unrestricted. */
|
|
11
|
+
model: z.string().nullish(),
|
|
12
|
+
/** Plain-English search request. */
|
|
13
|
+
query: z.string().min(1),
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Plain-English search across companies, people, and news, plus optional hard constraints for the entity scope.
|
|
17
|
+
*
|
|
18
|
+
* @openapiSchema FederatedNaturalSearch
|
|
19
|
+
* @endpoint POST /v1/search
|
|
20
|
+
* @contractShape federated.natural-search
|
|
21
|
+
* @contractRole canonical
|
|
22
|
+
*/
|
|
23
|
+
export const FederatedNaturalSearchSchema = FederatedNaturalSearchSchemaDefinition;
|
|
24
|
+
//# sourceMappingURL=natural-search.js.map
|
|
@@ -21,6 +21,15 @@ declare const FederatedSearchProvenanceSchemaDefinition: z.ZodObject<{
|
|
|
21
21
|
modeRequested: string;
|
|
22
22
|
modeUsed: string;
|
|
23
23
|
}, unknown>>;
|
|
24
|
+
rejection: z.ZodArray<z.ZodType<{
|
|
25
|
+
detail: string;
|
|
26
|
+
field?: string | null | undefined;
|
|
27
|
+
scope: "entity" | "news" | "person";
|
|
28
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
29
|
+
detail: string;
|
|
30
|
+
field?: string | null | undefined;
|
|
31
|
+
scope: "entity" | "news" | "person";
|
|
32
|
+
}, unknown>>>;
|
|
24
33
|
}, z.core.$strip>;
|
|
25
34
|
type FederatedSearchProvenanceDefinition = z.infer<typeof FederatedSearchProvenanceSchemaDefinition>;
|
|
26
35
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
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
|
+
import { FederatedSearchRejectionSchema } from "./search-rejection.js";
|
|
3
4
|
import { SearchModeExecutionSchema } from "../search/mode-execution.js";
|
|
4
5
|
const FederatedSearchProvenanceSchemaDefinition = z.object({
|
|
5
6
|
/** Entity search strategy execution. */
|
|
@@ -8,6 +9,8 @@ const FederatedSearchProvenanceSchemaDefinition = z.object({
|
|
|
8
9
|
news: SearchModeExecutionSchema,
|
|
9
10
|
/** Person search strategy execution. */
|
|
10
11
|
person: SearchModeExecutionSchema,
|
|
12
|
+
/** Scopes that rejected the query as unsearchable and returned an empty page while the other scopes ran; empty when every scope ran. */
|
|
13
|
+
rejection: z.array(FederatedSearchRejectionSchema),
|
|
11
14
|
});
|
|
12
15
|
/**
|
|
13
16
|
* Requested and executed search strategy for every federated scope.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const FederatedSearchRejectionSchemaDefinition: z.ZodObject<{
|
|
3
|
+
detail: z.ZodString;
|
|
4
|
+
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
scope: z.ZodEnum<{
|
|
6
|
+
entity: "entity";
|
|
7
|
+
news: "news";
|
|
8
|
+
person: "person";
|
|
9
|
+
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type FederatedSearchRejectionDefinition = z.infer<typeof FederatedSearchRejectionSchemaDefinition>;
|
|
12
|
+
/**
|
|
13
|
+
* One federated scope that rejected the query instead of searching.
|
|
14
|
+
*
|
|
15
|
+
* @openapiSchema FederatedSearchRejection
|
|
16
|
+
* @endpoint GET /v1/search/link
|
|
17
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
18
|
+
* @endpoint POST /v1/search
|
|
19
|
+
* @usedBySchema FederatedSearchProvenanceSchema
|
|
20
|
+
* @contractShape federated.search-rejection
|
|
21
|
+
* @contractRole canonical
|
|
22
|
+
*/
|
|
23
|
+
export declare const FederatedSearchRejectionSchema: z.ZodType<FederatedSearchRejectionDefinition>;
|
|
24
|
+
export type FederatedSearchRejection = z.infer<typeof FederatedSearchRejectionSchema>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=search-rejection.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
|
+
const FederatedSearchRejectionSchemaDefinition = z.object({
|
|
4
|
+
/** Why the scope rejected the query. */
|
|
5
|
+
detail: z.string(),
|
|
6
|
+
/** Request field the scope rejected, such as search. */
|
|
7
|
+
field: z.string().nullish(),
|
|
8
|
+
/** Scope that rejected the query. */
|
|
9
|
+
scope: z.enum(["entity", "person", "news"]),
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* One federated scope that rejected the query instead of searching.
|
|
13
|
+
*
|
|
14
|
+
* @openapiSchema FederatedSearchRejection
|
|
15
|
+
* @endpoint GET /v1/search/link
|
|
16
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
17
|
+
* @endpoint POST /v1/search
|
|
18
|
+
* @usedBySchema FederatedSearchProvenanceSchema
|
|
19
|
+
* @contractShape federated.search-rejection
|
|
20
|
+
* @contractRole canonical
|
|
21
|
+
*/
|
|
22
|
+
export const FederatedSearchRejectionSchema = FederatedSearchRejectionSchemaDefinition;
|
|
23
|
+
//# sourceMappingURL=search-rejection.js.map
|
|
@@ -4,14 +4,14 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
4
4
|
answer?: {
|
|
5
5
|
citation: {
|
|
6
6
|
entityId: string;
|
|
7
|
-
source:
|
|
7
|
+
source: string;
|
|
8
8
|
sourceId: string;
|
|
9
9
|
}[];
|
|
10
10
|
confidence: "HIGH" | "LOW" | "MEDIUM";
|
|
11
11
|
paragraph: {
|
|
12
12
|
citation: {
|
|
13
13
|
entityId: string;
|
|
14
|
-
source:
|
|
14
|
+
source: string;
|
|
15
15
|
sourceId: string;
|
|
16
16
|
}[];
|
|
17
17
|
text: string;
|
|
@@ -622,7 +622,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
622
622
|
label: string;
|
|
623
623
|
publishedAt?: string | null | undefined;
|
|
624
624
|
score: number;
|
|
625
|
-
source:
|
|
625
|
+
source: string;
|
|
626
626
|
sourceId: string;
|
|
627
627
|
text: string;
|
|
628
628
|
url?: string | null | undefined;
|
|
@@ -2077,14 +2077,14 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
2077
2077
|
answer?: {
|
|
2078
2078
|
citation: {
|
|
2079
2079
|
entityId: string;
|
|
2080
|
-
source:
|
|
2080
|
+
source: string;
|
|
2081
2081
|
sourceId: string;
|
|
2082
2082
|
}[];
|
|
2083
2083
|
confidence: "HIGH" | "LOW" | "MEDIUM";
|
|
2084
2084
|
paragraph: {
|
|
2085
2085
|
citation: {
|
|
2086
2086
|
entityId: string;
|
|
2087
|
-
source:
|
|
2087
|
+
source: string;
|
|
2088
2088
|
sourceId: string;
|
|
2089
2089
|
}[];
|
|
2090
2090
|
text: string;
|
|
@@ -2695,7 +2695,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
2695
2695
|
label: string;
|
|
2696
2696
|
publishedAt?: string | null | undefined;
|
|
2697
2697
|
score: number;
|
|
2698
|
-
source:
|
|
2698
|
+
source: string;
|
|
2699
2699
|
sourceId: string;
|
|
2700
2700
|
text: string;
|
|
2701
2701
|
url?: string | null | undefined;
|
|
@@ -4473,6 +4473,11 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
4473
4473
|
modeRequested: string;
|
|
4474
4474
|
modeUsed: string;
|
|
4475
4475
|
};
|
|
4476
|
+
rejection: {
|
|
4477
|
+
detail: string;
|
|
4478
|
+
field?: string | null | undefined;
|
|
4479
|
+
scope: "entity" | "news" | "person";
|
|
4480
|
+
}[];
|
|
4476
4481
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
4477
4482
|
entity: {
|
|
4478
4483
|
modeRequested: string;
|
|
@@ -4486,6 +4491,11 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
4486
4491
|
modeRequested: string;
|
|
4487
4492
|
modeUsed: string;
|
|
4488
4493
|
};
|
|
4494
|
+
rejection: {
|
|
4495
|
+
detail: string;
|
|
4496
|
+
field?: string | null | undefined;
|
|
4497
|
+
scope: "entity" | "news" | "person";
|
|
4498
|
+
}[];
|
|
4489
4499
|
}, unknown>>;
|
|
4490
4500
|
}, z.core.$strip>;
|
|
4491
4501
|
type FederatedSearchDefinition = z.infer<typeof FederatedSearchSchemaDefinition>;
|
package/dist/link/search.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
|
|
|
6
6
|
answer?: {
|
|
7
7
|
citation: {
|
|
8
8
|
entityId: string;
|
|
9
|
-
source:
|
|
9
|
+
source: string;
|
|
10
10
|
sourceId: string;
|
|
11
11
|
}[];
|
|
12
12
|
confidence: "HIGH" | "LOW" | "MEDIUM";
|
|
13
13
|
paragraph: {
|
|
14
14
|
citation: {
|
|
15
15
|
entityId: string;
|
|
16
|
-
source:
|
|
16
|
+
source: string;
|
|
17
17
|
sourceId: string;
|
|
18
18
|
}[];
|
|
19
19
|
text: string;
|
|
@@ -624,7 +624,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
|
|
|
624
624
|
label: string;
|
|
625
625
|
publishedAt?: string | null | undefined;
|
|
626
626
|
score: number;
|
|
627
|
-
source:
|
|
627
|
+
source: string;
|
|
628
628
|
sourceId: string;
|
|
629
629
|
text: string;
|
|
630
630
|
url?: string | null | undefined;
|
|
@@ -2247,20 +2247,25 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
|
|
|
2247
2247
|
modeRequested: string;
|
|
2248
2248
|
modeUsed: string;
|
|
2249
2249
|
};
|
|
2250
|
+
rejection: {
|
|
2251
|
+
detail: string;
|
|
2252
|
+
field?: string | null | undefined;
|
|
2253
|
+
scope: "entity" | "news" | "person";
|
|
2254
|
+
}[];
|
|
2250
2255
|
};
|
|
2251
2256
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
2252
2257
|
entity: {
|
|
2253
2258
|
answer?: {
|
|
2254
2259
|
citation: {
|
|
2255
2260
|
entityId: string;
|
|
2256
|
-
source:
|
|
2261
|
+
source: string;
|
|
2257
2262
|
sourceId: string;
|
|
2258
2263
|
}[];
|
|
2259
2264
|
confidence: "HIGH" | "LOW" | "MEDIUM";
|
|
2260
2265
|
paragraph: {
|
|
2261
2266
|
citation: {
|
|
2262
2267
|
entityId: string;
|
|
2263
|
-
source:
|
|
2268
|
+
source: string;
|
|
2264
2269
|
sourceId: string;
|
|
2265
2270
|
}[];
|
|
2266
2271
|
text: string;
|
|
@@ -2871,7 +2876,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
|
|
|
2871
2876
|
label: string;
|
|
2872
2877
|
publishedAt?: string | null | undefined;
|
|
2873
2878
|
score: number;
|
|
2874
|
-
source:
|
|
2879
|
+
source: string;
|
|
2875
2880
|
sourceId: string;
|
|
2876
2881
|
text: string;
|
|
2877
2882
|
url?: string | null | undefined;
|
|
@@ -4494,6 +4499,11 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
|
|
|
4494
4499
|
modeRequested: string;
|
|
4495
4500
|
modeUsed: string;
|
|
4496
4501
|
};
|
|
4502
|
+
rejection: {
|
|
4503
|
+
detail: string;
|
|
4504
|
+
field?: string | null | undefined;
|
|
4505
|
+
scope: "entity" | "news" | "person";
|
|
4506
|
+
}[];
|
|
4497
4507
|
};
|
|
4498
4508
|
}, unknown>>;
|
|
4499
4509
|
url: z.ZodString;
|
|
@@ -3,11 +3,11 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
|
|
|
3
3
|
answer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4
4
|
citation: z.ZodArray<z.ZodType<{
|
|
5
5
|
entityId: string;
|
|
6
|
-
source:
|
|
6
|
+
source: string;
|
|
7
7
|
sourceId: string;
|
|
8
8
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
9
9
|
entityId: string;
|
|
10
|
-
source:
|
|
10
|
+
source: string;
|
|
11
11
|
sourceId: string;
|
|
12
12
|
}, unknown>>>;
|
|
13
13
|
confidence: z.ZodEnum<{
|
|
@@ -18,7 +18,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
|
|
|
18
18
|
paragraph: z.ZodArray<z.ZodType<{
|
|
19
19
|
citation: {
|
|
20
20
|
entityId: string;
|
|
21
|
-
source:
|
|
21
|
+
source: string;
|
|
22
22
|
sourceId: string;
|
|
23
23
|
}[];
|
|
24
24
|
text: string;
|
|
@@ -26,7 +26,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
|
|
|
26
26
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
27
27
|
citation: {
|
|
28
28
|
entityId: string;
|
|
29
|
-
source:
|
|
29
|
+
source: string;
|
|
30
30
|
sourceId: string;
|
|
31
31
|
}[];
|
|
32
32
|
text: string;
|
|
@@ -1232,7 +1232,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
|
|
|
1232
1232
|
label: string;
|
|
1233
1233
|
publishedAt?: string | null | undefined;
|
|
1234
1234
|
score: number;
|
|
1235
|
-
source:
|
|
1235
|
+
source: string;
|
|
1236
1236
|
sourceId: string;
|
|
1237
1237
|
text: string;
|
|
1238
1238
|
url?: string | null | undefined;
|
|
@@ -1241,7 +1241,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
|
|
|
1241
1241
|
label: string;
|
|
1242
1242
|
publishedAt?: string | null | undefined;
|
|
1243
1243
|
score: number;
|
|
1244
|
-
source:
|
|
1244
|
+
source: string;
|
|
1245
1245
|
sourceId: string;
|
|
1246
1246
|
text: string;
|
|
1247
1247
|
url?: string | null | undefined;
|
package/dist/natural/search.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ type NaturalSearchDefinition = z.infer<typeof NaturalSearchSchemaDefinition>;
|
|
|
11
11
|
* @openapiSchema NaturalSearch
|
|
12
12
|
* @endpoint POST /v1/entities/{entityId}/content/search
|
|
13
13
|
* @endpoint POST /v1/people/{personId}/content/search
|
|
14
|
-
* @endpoint POST /v1/search
|
|
15
14
|
* @endpoint POST /v1/search/natural/entities
|
|
16
15
|
* @endpoint POST /v1/search/natural/people
|
|
17
16
|
* @usedBySchema EntityNaturalSearchSchema
|
package/dist/natural/search.js
CHANGED
|
@@ -15,7 +15,6 @@ const NaturalSearchSchemaDefinition = z.object({
|
|
|
15
15
|
* @openapiSchema NaturalSearch
|
|
16
16
|
* @endpoint POST /v1/entities/{entityId}/content/search
|
|
17
17
|
* @endpoint POST /v1/people/{personId}/content/search
|
|
18
|
-
* @endpoint POST /v1/search
|
|
19
18
|
* @endpoint POST /v1/search/natural/entities
|
|
20
19
|
* @endpoint POST /v1/search/natural/people
|
|
21
20
|
* @usedBySchema EntityNaturalSearchSchema
|
|
@@ -443,11 +443,19 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
443
443
|
modulePath: "entity/valuation-time-series-point",
|
|
444
444
|
schemaName: "EntityValuationTimeSeriesPointSchema",
|
|
445
445
|
},
|
|
446
|
+
FederatedNaturalSearch: {
|
|
447
|
+
modulePath: "federated/natural-search",
|
|
448
|
+
schemaName: "FederatedNaturalSearchSchema",
|
|
449
|
+
},
|
|
446
450
|
FederatedSearch: { modulePath: "federated/search", schemaName: "FederatedSearchSchema" },
|
|
447
451
|
FederatedSearchProvenance: {
|
|
448
452
|
modulePath: "federated/search-provenance",
|
|
449
453
|
schemaName: "FederatedSearchProvenanceSchema",
|
|
450
454
|
},
|
|
455
|
+
FederatedSearchRejection: {
|
|
456
|
+
modulePath: "federated/search-rejection",
|
|
457
|
+
schemaName: "FederatedSearchRejectionSchema",
|
|
458
|
+
},
|
|
451
459
|
FundingStage: { modulePath: "funding/stage", schemaName: "FundingStageSchema" },
|
|
452
460
|
FundraiseDataConfidence: {
|
|
453
461
|
modulePath: "fundraise/data-confidence",
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const SearchAnswerCitationSchemaDefinition: z.ZodObject<{
|
|
3
3
|
entityId: z.ZodUUID;
|
|
4
|
-
source: z.
|
|
5
|
-
entityRecord: "entityRecord";
|
|
6
|
-
newsArticle: "newsArticle";
|
|
7
|
-
researchSnippet: "researchSnippet";
|
|
8
|
-
}>;
|
|
4
|
+
source: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
9
5
|
sourceId: z.ZodString;
|
|
10
6
|
}, z.core.$strip>;
|
|
11
7
|
type SearchAnswerCitationDefinition = z.infer<typeof SearchAnswerCitationSchemaDefinition>;
|
|
@@ -2,11 +2,11 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const SearchAnswerParagraphSchemaDefinition: z.ZodObject<{
|
|
3
3
|
citation: z.ZodArray<z.ZodType<{
|
|
4
4
|
entityId: string;
|
|
5
|
-
source:
|
|
5
|
+
source: string;
|
|
6
6
|
sourceId: string;
|
|
7
7
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
8
8
|
entityId: string;
|
|
9
|
-
source:
|
|
9
|
+
source: string;
|
|
10
10
|
sourceId: string;
|
|
11
11
|
}, unknown>>>;
|
|
12
12
|
text: z.ZodString;
|
package/dist/search/answer.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ import { z } from "zod/v4";
|
|
|
14
14
|
export declare const SearchAnswerSchema: z.ZodObject<{
|
|
15
15
|
citation: z.ZodArray<z.ZodType<{
|
|
16
16
|
entityId: string;
|
|
17
|
-
source:
|
|
17
|
+
source: string;
|
|
18
18
|
sourceId: string;
|
|
19
19
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
20
20
|
entityId: string;
|
|
21
|
-
source:
|
|
21
|
+
source: string;
|
|
22
22
|
sourceId: string;
|
|
23
23
|
}, unknown>>>;
|
|
24
24
|
confidence: z.ZodEnum<{
|
|
@@ -29,7 +29,7 @@ export declare const SearchAnswerSchema: z.ZodObject<{
|
|
|
29
29
|
paragraph: z.ZodArray<z.ZodType<{
|
|
30
30
|
citation: {
|
|
31
31
|
entityId: string;
|
|
32
|
-
source:
|
|
32
|
+
source: string;
|
|
33
33
|
sourceId: string;
|
|
34
34
|
}[];
|
|
35
35
|
text: string;
|
|
@@ -37,7 +37,7 @@ export declare const SearchAnswerSchema: z.ZodObject<{
|
|
|
37
37
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
38
38
|
citation: {
|
|
39
39
|
entityId: string;
|
|
40
|
-
source:
|
|
40
|
+
source: string;
|
|
41
41
|
sourceId: string;
|
|
42
42
|
}[];
|
|
43
43
|
text: string;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
+
declare const SearchEvidenceSourceSchemaDefinition: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
entityRecord: "entityRecord";
|
|
4
|
+
newsArticle: "newsArticle";
|
|
5
|
+
researchSnippet: "researchSnippet";
|
|
6
|
+
}>, z.ZodString]>;
|
|
7
|
+
type SearchEvidenceSourceDefinition = z.infer<typeof SearchEvidenceSourceSchemaDefinition>;
|
|
2
8
|
/**
|
|
3
9
|
* Owner of search evidence: `entityRecord` is the entity's structured record, `researchSnippet` an entity research snippet, `newsArticle` a news article linked to the entity.
|
|
4
10
|
*
|
|
@@ -12,10 +18,7 @@ import { z } from "zod/v4";
|
|
|
12
18
|
* @contractShape search.evidence-source
|
|
13
19
|
* @contractRole canonical
|
|
14
20
|
*/
|
|
15
|
-
export declare const SearchEvidenceSourceSchema: z.
|
|
16
|
-
entityRecord: "entityRecord";
|
|
17
|
-
newsArticle: "newsArticle";
|
|
18
|
-
researchSnippet: "researchSnippet";
|
|
19
|
-
}>;
|
|
21
|
+
export declare const SearchEvidenceSourceSchema: z.ZodType<SearchEvidenceSourceDefinition>;
|
|
20
22
|
export type SearchEvidenceSource = z.infer<typeof SearchEvidenceSourceSchema>;
|
|
23
|
+
export {};
|
|
21
24
|
//# sourceMappingURL=evidence-source.d.ts.map
|
|
@@ -1,5 +1,9 @@
|
|
|
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
|
+
const SearchEvidenceSourceSchemaDefinition = z.union([
|
|
4
|
+
z.enum(["entityRecord", "researchSnippet", "newsArticle"]),
|
|
5
|
+
z.string(),
|
|
6
|
+
]);
|
|
3
7
|
/**
|
|
4
8
|
* Owner of search evidence: `entityRecord` is the entity's structured record, `researchSnippet` an entity research snippet, `newsArticle` a news article linked to the entity.
|
|
5
9
|
*
|
|
@@ -13,9 +17,5 @@ import { z } from "zod/v4";
|
|
|
13
17
|
* @contractShape search.evidence-source
|
|
14
18
|
* @contractRole canonical
|
|
15
19
|
*/
|
|
16
|
-
export const SearchEvidenceSourceSchema =
|
|
17
|
-
"entityRecord",
|
|
18
|
-
"researchSnippet",
|
|
19
|
-
"newsArticle",
|
|
20
|
-
]);
|
|
20
|
+
export const SearchEvidenceSourceSchema = SearchEvidenceSourceSchemaDefinition;
|
|
21
21
|
//# sourceMappingURL=evidence-source.js.map
|
package/dist/search/mode.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ type SearchModeDefinition = z.infer<typeof SearchModeSchemaDefinition>;
|
|
|
19
19
|
* @endpoint POST /v1/search
|
|
20
20
|
* @endpoint POST /v1/search/natural/entities
|
|
21
21
|
* @endpoint POST /v1/search/natural/people
|
|
22
|
+
* @usedBySchema FederatedNaturalSearchSchema
|
|
22
23
|
* @usedBySchema NaturalSearchSchema
|
|
23
24
|
* @usedBySchema SearchModeExecutionSchema
|
|
24
25
|
* @contractShape search.mode
|
package/dist/search/mode.js
CHANGED
|
@@ -15,6 +15,7 @@ const SearchModeSchemaDefinition = z.union([
|
|
|
15
15
|
* @endpoint POST /v1/search
|
|
16
16
|
* @endpoint POST /v1/search/natural/entities
|
|
17
17
|
* @endpoint POST /v1/search/natural/people
|
|
18
|
+
* @usedBySchema FederatedNaturalSearchSchema
|
|
18
19
|
* @usedBySchema NaturalSearchSchema
|
|
19
20
|
* @usedBySchema SearchModeExecutionSchema
|
|
20
21
|
* @contractShape search.mode
|
package/dist/search/passage.d.ts
CHANGED
|
@@ -4,11 +4,7 @@ declare const SearchPassageSchemaDefinition: z.ZodObject<{
|
|
|
4
4
|
label: z.ZodString;
|
|
5
5
|
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
6
6
|
score: z.ZodNumber;
|
|
7
|
-
source: z.
|
|
8
|
-
entityRecord: "entityRecord";
|
|
9
|
-
newsArticle: "newsArticle";
|
|
10
|
-
researchSnippet: "researchSnippet";
|
|
11
|
-
}>;
|
|
7
|
+
source: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
12
8
|
sourceId: z.ZodString;
|
|
13
9
|
text: z.ZodString;
|
|
14
10
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|