@aventurevc/api-schemas 0.8.91 → 0.8.92

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.
Files changed (64) hide show
  1. package/dist/content/embedding-match.d.ts +1 -0
  2. package/dist/content/embedding-match.js +1 -0
  3. package/dist/datasource/source-metadata.d.ts +26 -0
  4. package/dist/datasource/source-metadata.js +26 -0
  5. package/dist/entity/alias-type.d.ts +1 -0
  6. package/dist/entity/alias-type.js +1 -0
  7. package/dist/entity/entity.d.ts +2 -0
  8. package/dist/entity/entity.js +2 -0
  9. package/dist/entity/filter-search.d.ts +3 -0
  10. package/dist/entity/filter.d.ts +3 -0
  11. package/dist/entity/funding-detail.d.ts +1 -0
  12. package/dist/entity/funding-detail.js +1 -0
  13. package/dist/entity/fundraise-filter-criteria.d.ts +3 -0
  14. package/dist/entity/fundraise-filter-criteria.js +6 -0
  15. package/dist/entity/fundraise-transaction-entity.d.ts +1 -0
  16. package/dist/entity/fundraise-transaction-entity.js +1 -0
  17. package/dist/entity/fundraise-transaction.d.ts +2 -0
  18. package/dist/entity/fundraise-transaction.js +2 -0
  19. package/dist/entity/image.d.ts +1 -0
  20. package/dist/entity/image.js +1 -0
  21. package/dist/entity/list-filter.d.ts +3 -0
  22. package/dist/entity/name-alias-entity-alias-type.d.ts +1 -0
  23. package/dist/entity/name-alias-entity-alias-type.js +1 -0
  24. package/dist/entity/natural-search.d.ts +3 -0
  25. package/dist/entity/person-owner.d.ts +1 -0
  26. package/dist/entity/person-owner.js +1 -0
  27. package/dist/entity/sitemap.d.ts +1 -0
  28. package/dist/entity/sitemap.js +1 -0
  29. package/dist/federated/natural-search.d.ts +11 -1
  30. package/dist/federated/search.d.ts +574 -0
  31. package/dist/funding/stage.d.ts +1 -0
  32. package/dist/funding/stage.js +1 -0
  33. package/dist/fundraise/data-confidence.d.ts +1 -0
  34. package/dist/fundraise/data-confidence.js +1 -0
  35. package/dist/fundraise/investment-attribution-type.d.ts +1 -0
  36. package/dist/fundraise/investment-attribution-type.js +1 -0
  37. package/dist/fundraise/investment-attribution.d.ts +1 -0
  38. package/dist/fundraise/investment-attribution.js +1 -0
  39. package/dist/fundraise/investment-evidence.d.ts +214 -0
  40. package/dist/fundraise/investment-evidence.js +32 -0
  41. package/dist/link/search.d.ts +574 -0
  42. package/dist/natural/search-result.d.ts +321 -0
  43. package/dist/natural/search-result.js +3 -0
  44. package/dist/natural/search.d.ts +8 -1
  45. package/dist/openapi-component-manifest.js +9 -0
  46. package/dist/person/natural-search-result.d.ts +251 -0
  47. package/dist/person/natural-search-result.js +3 -0
  48. package/dist/round/label.d.ts +1 -0
  49. package/dist/round/label.js +1 -0
  50. package/dist/search/answer-citation.d.ts +6 -1
  51. package/dist/search/answer-citation.js +1 -1
  52. package/dist/search/evidence-source.d.ts +7 -9
  53. package/dist/search/evidence-source.js +5 -6
  54. package/dist/search/interpretation.d.ts +6 -0
  55. package/dist/search/investment.d.ts +269 -0
  56. package/dist/search/investment.js +29 -0
  57. package/dist/search/judgment.d.ts +50 -0
  58. package/dist/search/judgment.js +3 -0
  59. package/dist/search/mode-execution.d.ts +16 -2
  60. package/dist/search/mode.d.ts +8 -11
  61. package/dist/search/mode.js +4 -5
  62. package/dist/search/passage.d.ts +6 -1
  63. package/dist/shared/search.d.ts +574 -0
  64. package/package.json +1 -1
@@ -0,0 +1,269 @@
1
+ import { z } from "zod/v4";
2
+ declare const SearchInvestmentSchemaDefinition: z.ZodObject<{
3
+ evidence: z.ZodType<{
4
+ fundManagerRelationshipSource?: {
5
+ changedAt?: string | null | undefined;
6
+ dataSourceUpdatedAt?: string | null | undefined;
7
+ pendingApproval?: number | null | undefined;
8
+ sourceId?: string | null | undefined;
9
+ status?: string | null | undefined;
10
+ } | null | undefined;
11
+ fundraiseTransaction: {
12
+ amountRaised?: number | null | undefined;
13
+ createdAt?: string | null | undefined;
14
+ currency?: string | null | undefined;
15
+ dataConfidence?: "High" | "Low" | "Medium" | "Verified" | null | undefined;
16
+ dateAnnounced?: string | null | undefined;
17
+ dateFundingComplete?: string | null | undefined;
18
+ dateInvestorExit?: string | null | undefined;
19
+ entity?: {
20
+ core: {
21
+ defaultCurrency?: string | null | undefined;
22
+ foundedYear?: number | null | undefined;
23
+ id: string;
24
+ image: {
25
+ isMonogram: boolean;
26
+ logo?: string | null | undefined;
27
+ logoSquare?: string | null | undefined;
28
+ };
29
+ lastModifiedAt?: string | null | undefined;
30
+ nameAlias: {
31
+ displayable?: boolean | null | undefined;
32
+ name: string;
33
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
34
+ }[];
35
+ nameBrand: string;
36
+ nameLegal?: string | null | undefined;
37
+ operatingStatus?: string | null | undefined;
38
+ publicId?: string | null | undefined;
39
+ publicUrl?: string | null | undefined;
40
+ sitemap?: {
41
+ hasAcquisitions?: boolean | undefined;
42
+ hasAnalysis: boolean;
43
+ hasEmployees: boolean;
44
+ hasFundraising: boolean;
45
+ hasNews: boolean;
46
+ productServiceSlug: string[];
47
+ } | null | undefined;
48
+ slug: string;
49
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
50
+ updatedAt?: string | null | undefined;
51
+ };
52
+ fundingDetail?: {
53
+ currency?: string | null | undefined;
54
+ fundingRoundCount: number;
55
+ investorCount: number;
56
+ latestValuation?: number | null | undefined;
57
+ mostRecentAmount?: number | null | undefined;
58
+ mostRecentDate?: string | null | undefined;
59
+ stage?: "Acquired" | "Acquired Subsidiary" | "Angel" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Pre-Seed" | "Public" | "Seed" | "Series A" | "Series B" | "Series C" | "Series D" | "Series E" | "Series F" | "Series G" | "Series H" | "Series I" | "Series J" | "Series K" | "Series L" | "Series M" | "Series N" | "Series O" | "Series P" | "Series Q" | "Series R" | "Series S" | "Series T" | "Series U" | "Series V" | "Series W" | "Series X" | "Series Y" | "Series Z" | null | undefined;
60
+ totalRaised: number;
61
+ } | null | undefined;
62
+ } | null | undefined;
63
+ id: string;
64
+ investorAttribution?: {
65
+ amountInvested?: number | null | undefined;
66
+ attributionType: "direct" | "managedFund";
67
+ beneficialEntityId?: string | null | undefined;
68
+ fundManagerRelationshipId?: number | null | undefined;
69
+ joinId: string;
70
+ leadInvestor: boolean;
71
+ recordedEntityId?: string | null | undefined;
72
+ round?: {
73
+ round: string;
74
+ } | null | undefined;
75
+ transactionId: string;
76
+ } | null | undefined;
77
+ investorCount?: number | null | undefined;
78
+ round?: string | null | undefined;
79
+ sourceAttribution: {
80
+ amountInvested?: number | null | undefined;
81
+ attributionType: "direct" | "managedFund";
82
+ beneficialEntityId?: string | null | undefined;
83
+ fundManagerRelationshipId?: number | null | undefined;
84
+ joinId: string;
85
+ leadInvestor: boolean;
86
+ recordedEntityId?: string | null | undefined;
87
+ round?: {
88
+ round: string;
89
+ } | null | undefined;
90
+ transactionId: string;
91
+ }[];
92
+ updatedAt?: string | null | undefined;
93
+ valuationPostMoney?: number | null | undefined;
94
+ valuationPreMoney?: number | null | undefined;
95
+ };
96
+ fundraiseTransactionSource?: {
97
+ changedAt?: string | null | undefined;
98
+ dataSourceUpdatedAt?: string | null | undefined;
99
+ pendingApproval?: number | null | undefined;
100
+ sourceId?: string | null | undefined;
101
+ status?: string | null | undefined;
102
+ } | null | undefined;
103
+ investorJoinSource?: {
104
+ changedAt?: string | null | undefined;
105
+ dataSourceUpdatedAt?: string | null | undefined;
106
+ pendingApproval?: number | null | undefined;
107
+ sourceId?: string | null | undefined;
108
+ status?: string | null | undefined;
109
+ } | null | undefined;
110
+ }, unknown, z.core.$ZodTypeInternals<{
111
+ fundManagerRelationshipSource?: {
112
+ changedAt?: string | null | undefined;
113
+ dataSourceUpdatedAt?: string | null | undefined;
114
+ pendingApproval?: number | null | undefined;
115
+ sourceId?: string | null | undefined;
116
+ status?: string | null | undefined;
117
+ } | null | undefined;
118
+ fundraiseTransaction: {
119
+ amountRaised?: number | null | undefined;
120
+ createdAt?: string | null | undefined;
121
+ currency?: string | null | undefined;
122
+ dataConfidence?: "High" | "Low" | "Medium" | "Verified" | null | undefined;
123
+ dateAnnounced?: string | null | undefined;
124
+ dateFundingComplete?: string | null | undefined;
125
+ dateInvestorExit?: string | null | undefined;
126
+ entity?: {
127
+ core: {
128
+ defaultCurrency?: string | null | undefined;
129
+ foundedYear?: number | null | undefined;
130
+ id: string;
131
+ image: {
132
+ isMonogram: boolean;
133
+ logo?: string | null | undefined;
134
+ logoSquare?: string | null | undefined;
135
+ };
136
+ lastModifiedAt?: string | null | undefined;
137
+ nameAlias: {
138
+ displayable?: boolean | null | undefined;
139
+ name: string;
140
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
141
+ }[];
142
+ nameBrand: string;
143
+ nameLegal?: string | null | undefined;
144
+ operatingStatus?: string | null | undefined;
145
+ publicId?: string | null | undefined;
146
+ publicUrl?: string | null | undefined;
147
+ sitemap?: {
148
+ hasAcquisitions?: boolean | undefined;
149
+ hasAnalysis: boolean;
150
+ hasEmployees: boolean;
151
+ hasFundraising: boolean;
152
+ hasNews: boolean;
153
+ productServiceSlug: string[];
154
+ } | null | undefined;
155
+ slug: string;
156
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
157
+ updatedAt?: string | null | undefined;
158
+ };
159
+ fundingDetail?: {
160
+ currency?: string | null | undefined;
161
+ fundingRoundCount: number;
162
+ investorCount: number;
163
+ latestValuation?: number | null | undefined;
164
+ mostRecentAmount?: number | null | undefined;
165
+ mostRecentDate?: string | null | undefined;
166
+ stage?: "Acquired" | "Acquired Subsidiary" | "Angel" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Pre-Seed" | "Public" | "Seed" | "Series A" | "Series B" | "Series C" | "Series D" | "Series E" | "Series F" | "Series G" | "Series H" | "Series I" | "Series J" | "Series K" | "Series L" | "Series M" | "Series N" | "Series O" | "Series P" | "Series Q" | "Series R" | "Series S" | "Series T" | "Series U" | "Series V" | "Series W" | "Series X" | "Series Y" | "Series Z" | null | undefined;
167
+ totalRaised: number;
168
+ } | null | undefined;
169
+ } | null | undefined;
170
+ id: string;
171
+ investorAttribution?: {
172
+ amountInvested?: number | null | undefined;
173
+ attributionType: "direct" | "managedFund";
174
+ beneficialEntityId?: string | null | undefined;
175
+ fundManagerRelationshipId?: number | null | undefined;
176
+ joinId: string;
177
+ leadInvestor: boolean;
178
+ recordedEntityId?: string | null | undefined;
179
+ round?: {
180
+ round: string;
181
+ } | null | undefined;
182
+ transactionId: string;
183
+ } | null | undefined;
184
+ investorCount?: number | null | undefined;
185
+ round?: string | null | undefined;
186
+ sourceAttribution: {
187
+ amountInvested?: number | null | undefined;
188
+ attributionType: "direct" | "managedFund";
189
+ beneficialEntityId?: string | null | undefined;
190
+ fundManagerRelationshipId?: number | null | undefined;
191
+ joinId: string;
192
+ leadInvestor: boolean;
193
+ recordedEntityId?: string | null | undefined;
194
+ round?: {
195
+ round: string;
196
+ } | null | undefined;
197
+ transactionId: string;
198
+ }[];
199
+ updatedAt?: string | null | undefined;
200
+ valuationPostMoney?: number | null | undefined;
201
+ valuationPreMoney?: number | null | undefined;
202
+ };
203
+ fundraiseTransactionSource?: {
204
+ changedAt?: string | null | undefined;
205
+ dataSourceUpdatedAt?: string | null | undefined;
206
+ pendingApproval?: number | null | undefined;
207
+ sourceId?: string | null | undefined;
208
+ status?: string | null | undefined;
209
+ } | null | undefined;
210
+ investorJoinSource?: {
211
+ changedAt?: string | null | undefined;
212
+ dataSourceUpdatedAt?: string | null | undefined;
213
+ pendingApproval?: number | null | undefined;
214
+ sourceId?: string | null | undefined;
215
+ status?: string | null | undefined;
216
+ } | null | undefined;
217
+ }, unknown>>;
218
+ investor: z.ZodObject<{
219
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
220
+ personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
221
+ }, z.core.$strip>;
222
+ semanticMatch: z.ZodOptional<z.ZodNullable<z.ZodObject<{
223
+ computedAt: z.ZodISODateTime;
224
+ cosineDistance: z.ZodNumber;
225
+ cosineScore: z.ZodNumber;
226
+ modelVersion: z.ZodString;
227
+ rank: z.ZodInt;
228
+ sourceHash: z.ZodString;
229
+ sourceId: z.ZodString;
230
+ sourceJson: z.ZodString;
231
+ sourceText: z.ZodString;
232
+ sourceType: z.ZodUnion<readonly [z.ZodEnum<{
233
+ agentHelpDoc: "agentHelpDoc";
234
+ blogPost: "blogPost";
235
+ classificationCode: "classificationCode";
236
+ classificationTag: "classificationTag";
237
+ entity: "entity";
238
+ newsArticle: "newsArticle";
239
+ person: "person";
240
+ product: "product";
241
+ researchSnippet: "researchSnippet";
242
+ service: "service";
243
+ sourceDocument: "sourceDocument";
244
+ text: "text";
245
+ }>, z.ZodString]>;
246
+ }, z.core.$strip>>>;
247
+ }, z.core.$strip>;
248
+ type SearchInvestmentDefinition = z.infer<typeof SearchInvestmentSchemaDefinition>;
249
+ /**
250
+ * Canonical investor participation and matched portfolio offering evidence.
251
+ *
252
+ * @openapiSchema SearchInvestment
253
+ * @endpoint GET /v1/search/link
254
+ * @endpoint GET /v1/search/link/jobs/{jobId}
255
+ * @endpoint GET /v1/search/shared/{id}
256
+ * @endpoint GET /v1/search/shared/slug/{slug}
257
+ * @endpoint POST /v1/search
258
+ * @endpoint POST /v1/search/natural/entities
259
+ * @endpoint POST /v1/search/natural/people
260
+ * @endpoint POST /v1/search/shared
261
+ * @usedBySchema NaturalSearchResultSchema
262
+ * @usedBySchema PersonNaturalSearchResultSchema
263
+ * @contractShape search.investment
264
+ * @contractRole canonical
265
+ */
266
+ export declare const SearchInvestmentSchema: z.ZodType<SearchInvestmentDefinition>;
267
+ export type SearchInvestment = z.infer<typeof SearchInvestmentSchema>;
268
+ export {};
269
+ //# sourceMappingURL=investment.d.ts.map
@@ -0,0 +1,29 @@
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 { ContentEmbeddingMatchSchema } from "../content/embedding-match.js";
4
+ import { EntityPersonOwnerSchema } from "../entity/person-owner.js";
5
+ import { FundraiseInvestmentEvidenceSchema } from "../fundraise/investment-evidence.js";
6
+ const SearchInvestmentSchemaDefinition = z.object({
7
+ evidence: FundraiseInvestmentEvidenceSchema,
8
+ investor: EntityPersonOwnerSchema,
9
+ semanticMatch: ContentEmbeddingMatchSchema.nullish(),
10
+ });
11
+ /**
12
+ * Canonical investor participation and matched portfolio offering evidence.
13
+ *
14
+ * @openapiSchema SearchInvestment
15
+ * @endpoint GET /v1/search/link
16
+ * @endpoint GET /v1/search/link/jobs/{jobId}
17
+ * @endpoint GET /v1/search/shared/{id}
18
+ * @endpoint GET /v1/search/shared/slug/{slug}
19
+ * @endpoint POST /v1/search
20
+ * @endpoint POST /v1/search/natural/entities
21
+ * @endpoint POST /v1/search/natural/people
22
+ * @endpoint POST /v1/search/shared
23
+ * @usedBySchema NaturalSearchResultSchema
24
+ * @usedBySchema PersonNaturalSearchResultSchema
25
+ * @contractShape search.investment
26
+ * @contractRole canonical
27
+ */
28
+ export const SearchInvestmentSchema = SearchInvestmentSchemaDefinition;
29
+ //# sourceMappingURL=investment.js.map
@@ -951,6 +951,56 @@ declare const SearchJudgmentSchemaDefinition: z.ZodObject<{
951
951
  sourceType: string;
952
952
  } | null | undefined;
953
953
  }, unknown>>;
954
+ matchedOffering: z.ZodOptional<z.ZodNullable<z.ZodObject<{
955
+ defaultCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
+ foundedYear: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
957
+ id: z.ZodUUID;
958
+ image: z.ZodType<{
959
+ isMonogram: boolean;
960
+ logo?: string | null | undefined;
961
+ logoSquare?: string | null | undefined;
962
+ }, unknown, z.core.$ZodTypeInternals<{
963
+ isMonogram: boolean;
964
+ logo?: string | null | undefined;
965
+ logoSquare?: string | null | undefined;
966
+ }, unknown>>;
967
+ lastModifiedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
968
+ nameAlias: z.ZodArray<z.ZodType<{
969
+ displayable?: boolean | null | undefined;
970
+ name: string;
971
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
972
+ }, unknown, z.core.$ZodTypeInternals<{
973
+ displayable?: boolean | null | undefined;
974
+ name: string;
975
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
976
+ }, unknown>>>;
977
+ nameBrand: z.ZodString;
978
+ nameLegal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
979
+ operatingStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
980
+ publicId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
981
+ publicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
982
+ sitemap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
983
+ hasAcquisitions: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
984
+ hasAnalysis: z.ZodBoolean;
985
+ hasEmployees: z.ZodBoolean;
986
+ hasFundraising: z.ZodBoolean;
987
+ hasNews: z.ZodBoolean;
988
+ productServiceSlug: z.ZodArray<z.ZodString>;
989
+ }, z.core.$strip>>>;
990
+ slug: z.ZodString;
991
+ typeRecord: z.ZodEnum<{
992
+ "Business Line": "Business Line";
993
+ Company: "Company";
994
+ Fund: "Fund";
995
+ Government: "Government";
996
+ "Investment Firm": "Investment Firm";
997
+ Nonprofit: "Nonprofit";
998
+ Organization: "Organization";
999
+ Product: "Product";
1000
+ Service: "Service";
1001
+ }>;
1002
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1003
+ }, z.core.$strip>>>;
954
1004
  probability: z.ZodNumber;
955
1005
  webUrl: z.ZodArray<z.ZodString>;
956
1006
  }, z.core.$strip>;
@@ -1,9 +1,12 @@
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 { EntitySchema } from "../entity/entity.js";
3
4
  import { EntityListSchema } from "../entity/list.js";
4
5
  const SearchJudgmentSchemaDefinition = z.object({
5
6
  /** The answering entity. */
6
7
  entity: EntityListSchema,
8
+ /** Current public Product/Service that supports this answer. */
9
+ matchedOffering: EntitySchema.nullish(),
7
10
  /** Judged probability, 0 to 1, that the entity answers the question. */
8
11
  probability: z.number(),
9
12
  /** Stored web search result pages that name the entity; empty without `web`. */
@@ -1,7 +1,21 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const SearchModeExecutionSchemaDefinition: z.ZodObject<{
3
- modeRequested: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
4
- modeUsed: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
3
+ modeRequested: z.ZodUnion<readonly [z.ZodEnum<{
4
+ auto: "auto";
5
+ exact: "exact";
6
+ hybrid: "hybrid";
7
+ keyword: "keyword";
8
+ natural: "natural";
9
+ semantic: "semantic";
10
+ }>, z.ZodString]>;
11
+ modeUsed: z.ZodUnion<readonly [z.ZodEnum<{
12
+ auto: "auto";
13
+ exact: "exact";
14
+ hybrid: "hybrid";
15
+ keyword: "keyword";
16
+ natural: "natural";
17
+ semantic: "semantic";
18
+ }>, z.ZodString]>;
5
19
  }, z.core.$strip>;
6
20
  type SearchModeExecutionDefinition = z.infer<typeof SearchModeExecutionSchemaDefinition>;
7
21
  /**
@@ -1,13 +1,4 @@
1
1
  import { z } from "zod/v4";
2
- declare const SearchModeSchemaDefinition: z.ZodUnion<readonly [z.ZodEnum<{
3
- auto: "auto";
4
- exact: "exact";
5
- hybrid: "hybrid";
6
- keyword: "keyword";
7
- natural: "natural";
8
- semantic: "semantic";
9
- }>, z.ZodString]>;
10
- type SearchModeDefinition = z.infer<typeof SearchModeSchemaDefinition>;
11
2
  /**
12
3
  * Search strategy for a natural-language search request. `auto` keeps the server pipeline (exact-name shortcut first, planner otherwise); `exact` matches entity or person names exactly with no planner and no embedding; `keyword` runs full-text search; `semantic` runs vector similarity; `natural` always runs the language-model planner; `hybrid` fuses keyword and semantic rankings by reciprocal rank. Entity and person natural-search support every mode but `hybrid`; news and federated search accept only `auto` and `keyword`; content search accepts `auto` (topic, type, relation, and year words become filters and any other words rank by full text), `keyword` (the full text of articles, posts, and fetched pages), `semantic` (one entity's or person's library pages by vector similarity of their fetched bodies), and `hybrid` (that owner's keyword and semantic rankings fused; each ranking is cut at the largest page size, so a hybrid search returns at most twice that many items, and it orders by fused rank only, ignoring `sort`).
13
4
  *
@@ -28,7 +19,13 @@ type SearchModeDefinition = z.infer<typeof SearchModeSchemaDefinition>;
28
19
  * @contractShape search.mode
29
20
  * @contractRole canonical
30
21
  */
31
- export declare const SearchModeSchema: z.ZodType<SearchModeDefinition>;
22
+ export declare const SearchModeSchema: z.ZodUnion<readonly [z.ZodEnum<{
23
+ auto: "auto";
24
+ exact: "exact";
25
+ hybrid: "hybrid";
26
+ keyword: "keyword";
27
+ natural: "natural";
28
+ semantic: "semantic";
29
+ }>, z.ZodString]>;
32
30
  export type SearchMode = z.infer<typeof SearchModeSchema>;
33
- export {};
34
31
  //# sourceMappingURL=mode.d.ts.map
@@ -1,9 +1,5 @@
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 SearchModeSchemaDefinition = z.union([
4
- z.enum(["auto", "exact", "keyword", "semantic", "natural", "hybrid"]),
5
- z.string(),
6
- ]);
7
3
  /**
8
4
  * Search strategy for a natural-language search request. `auto` keeps the server pipeline (exact-name shortcut first, planner otherwise); `exact` matches entity or person names exactly with no planner and no embedding; `keyword` runs full-text search; `semantic` runs vector similarity; `natural` always runs the language-model planner; `hybrid` fuses keyword and semantic rankings by reciprocal rank. Entity and person natural-search support every mode but `hybrid`; news and federated search accept only `auto` and `keyword`; content search accepts `auto` (topic, type, relation, and year words become filters and any other words rank by full text), `keyword` (the full text of articles, posts, and fetched pages), `semantic` (one entity's or person's library pages by vector similarity of their fetched bodies), and `hybrid` (that owner's keyword and semantic rankings fused; each ranking is cut at the largest page size, so a hybrid search returns at most twice that many items, and it orders by fused rank only, ignoring `sort`).
9
5
  *
@@ -24,5 +20,8 @@ const SearchModeSchemaDefinition = z.union([
24
20
  * @contractShape search.mode
25
21
  * @contractRole canonical
26
22
  */
27
- export const SearchModeSchema = SearchModeSchemaDefinition;
23
+ export const SearchModeSchema = z.union([
24
+ z.enum(["auto", "exact", "keyword", "semantic", "natural", "hybrid"]),
25
+ z.string(),
26
+ ]);
28
27
  //# sourceMappingURL=mode.js.map
@@ -4,7 +4,12 @@ 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.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
7
+ source: z.ZodUnion<readonly [z.ZodEnum<{
8
+ entityRecord: "entityRecord";
9
+ fundraiseTransaction: "fundraiseTransaction";
10
+ newsArticle: "newsArticle";
11
+ researchSnippet: "researchSnippet";
12
+ }>, z.ZodString]>;
8
13
  sourceId: z.ZodString;
9
14
  text: z.ZodString;
10
15
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;