@aventurevc/api-schemas 0.8.62 → 0.8.64

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 (68) hide show
  1. package/dist/confidence/confidence.d.ts +1 -0
  2. package/dist/confidence/confidence.js +1 -0
  3. package/dist/content/embedding-match.d.ts +2 -0
  4. package/dist/content/source-type.d.ts +2 -0
  5. package/dist/content/source-type.js +2 -0
  6. package/dist/entity/accelerator-participation.d.ts +9 -5
  7. package/dist/entity/acquisition.d.ts +18 -10
  8. package/dist/entity/brand.d.ts +9 -5
  9. package/dist/entity/detail.d.ts +9 -5
  10. package/dist/entity/entity.d.ts +9 -5
  11. package/dist/entity/fundraise-transaction-entity.d.ts +9 -5
  12. package/dist/entity/fundraise-transaction.d.ts +9 -5
  13. package/dist/entity/fundraise.d.ts +9 -5
  14. package/dist/entity/image.d.ts +8 -5
  15. package/dist/entity/image.js +7 -6
  16. package/dist/entity/investor-participation.d.ts +9 -5
  17. package/dist/entity/list.d.ts +12 -5
  18. package/dist/entity/list.js +1 -0
  19. package/dist/entity/person-association.d.ts +16 -9
  20. package/dist/entity/relationship.d.ts +9 -5
  21. package/dist/entity/resolution.d.ts +9 -5
  22. package/dist/entity/similarity-context.d.ts +4 -0
  23. package/dist/entity/similarity-context.js +4 -0
  24. package/dist/entity/similarity-origin.d.ts +4 -0
  25. package/dist/entity/similarity-origin.js +4 -0
  26. package/dist/entity/similarity-result.d.ts +5 -0
  27. package/dist/entity/similarity-result.js +5 -0
  28. package/dist/entity/similarity-summary.d.ts +9 -5
  29. package/dist/federated/search.d.ts +2093 -123
  30. package/dist/harness/run-detail.d.ts +18 -10
  31. package/dist/link/search.d.ts +2182 -212
  32. package/dist/media/upload.d.ts +14 -11
  33. package/dist/media/upload.js +12 -11
  34. package/dist/natural/search-result.d.ts +1980 -14
  35. package/dist/natural/search-result.js +12 -0
  36. package/dist/natural/search.js +1 -1
  37. package/dist/news/detail.d.ts +13 -10
  38. package/dist/news/detail.js +11 -10
  39. package/dist/openapi-component-manifest.js +12 -0
  40. package/dist/pagination/schemas.d.ts +34 -19
  41. package/dist/person/detail.d.ts +16 -9
  42. package/dist/person/graph-career-context.d.ts +9 -5
  43. package/dist/person/graph-co-investor.d.ts +9 -5
  44. package/dist/person/graph-member.d.ts +7 -4
  45. package/dist/person/graph-similar-entity.d.ts +9 -5
  46. package/dist/person/image.d.ts +7 -4
  47. package/dist/person/image.js +6 -5
  48. package/dist/person/invested-company.d.ts +9 -5
  49. package/dist/person/investment.d.ts +9 -5
  50. package/dist/person/person.d.ts +9 -4
  51. package/dist/person/similarity-result.d.ts +16 -9
  52. package/dist/search/answer-citation.d.ts +27 -0
  53. package/dist/search/answer-citation.js +25 -0
  54. package/dist/search/answer.d.ts +32 -0
  55. package/dist/search/answer.js +25 -0
  56. package/dist/search/evidence-source.d.ts +21 -0
  57. package/dist/search/evidence-source.js +21 -0
  58. package/dist/search/intent.d.ts +21 -0
  59. package/dist/search/intent.js +16 -0
  60. package/dist/search/interpretation.d.ts +7 -0
  61. package/dist/search/interpretation.js +5 -0
  62. package/dist/search/layer.d.ts +15 -0
  63. package/dist/search/layer.js +12 -0
  64. package/dist/search/mode.d.ts +1 -1
  65. package/dist/search/mode.js +1 -1
  66. package/dist/search/passage.d.ts +32 -0
  67. package/dist/search/passage.js +35 -0
  68. package/package.json +1 -1
@@ -0,0 +1,21 @@
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
+ * 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
+ *
6
+ * @openapiSchema SearchEvidenceSource
7
+ * @endpoint GET /v1/search/link
8
+ * @endpoint GET /v1/search/link/jobs/{jobId}
9
+ * @endpoint POST /v1/search
10
+ * @endpoint POST /v1/search/natural/entities
11
+ * @usedBySchema SearchAnswerCitationSchema
12
+ * @usedBySchema SearchPassageSchema
13
+ * @contractShape search.evidence-source
14
+ * @contractRole canonical
15
+ */
16
+ export const SearchEvidenceSourceSchema = z.enum([
17
+ "entityRecord",
18
+ "researchSnippet",
19
+ "newsArticle",
20
+ ]);
21
+ //# sourceMappingURL=evidence-source.js.map
@@ -0,0 +1,21 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Question shape the planner read from a natural-language search. `discovery` lists entities matching a description; `profile` asks what a named entity does, offers, or how it stands; `peer` asks for a named entity's competitors or look-alikes; `comparison` asks how two or more named entities compare.
4
+ *
5
+ * @openapiSchema SearchIntent
6
+ * @endpoint GET /v1/search/link
7
+ * @endpoint GET /v1/search/link/jobs/{jobId}
8
+ * @endpoint POST /v1/search
9
+ * @endpoint POST /v1/search/natural/entities
10
+ * @usedBySchema SearchInterpretationSchema
11
+ * @contractShape search.intent
12
+ * @contractRole canonical
13
+ */
14
+ export declare const SearchIntentSchema: z.ZodEnum<{
15
+ comparison: "comparison";
16
+ discovery: "discovery";
17
+ peer: "peer";
18
+ profile: "profile";
19
+ }>;
20
+ export type SearchIntent = z.infer<typeof SearchIntentSchema>;
21
+ //# sourceMappingURL=intent.d.ts.map
@@ -0,0 +1,16 @@
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
+ * Question shape the planner read from a natural-language search. `discovery` lists entities matching a description; `profile` asks what a named entity does, offers, or how it stands; `peer` asks for a named entity's competitors or look-alikes; `comparison` asks how two or more named entities compare.
5
+ *
6
+ * @openapiSchema SearchIntent
7
+ * @endpoint GET /v1/search/link
8
+ * @endpoint GET /v1/search/link/jobs/{jobId}
9
+ * @endpoint POST /v1/search
10
+ * @endpoint POST /v1/search/natural/entities
11
+ * @usedBySchema SearchInterpretationSchema
12
+ * @contractShape search.intent
13
+ * @contractRole canonical
14
+ */
15
+ export const SearchIntentSchema = z.enum(["discovery", "profile", "peer", "comparison"]);
16
+ //# sourceMappingURL=intent.js.map
@@ -210,6 +210,12 @@ declare const SearchInterpretationSchemaDefinition: z.ZodObject<{
210
210
  min?: number | null | undefined;
211
211
  }[] | undefined;
212
212
  }, unknown>>;
213
+ intent: z.ZodEnum<{
214
+ comparison: "comparison";
215
+ discovery: "discovery";
216
+ peer: "peer";
217
+ profile: "profile";
218
+ }>;
213
219
  interpretation: z.ZodString;
214
220
  sort: z.ZodType<{
215
221
  order: {
@@ -224,6 +230,7 @@ declare const SearchInterpretationSchemaDefinition: z.ZodObject<{
224
230
  }[];
225
231
  relevance?: "keyword" | "semantic" | null | undefined;
226
232
  }, unknown>>;
233
+ subjectEntityName: z.ZodArray<z.ZodString>;
227
234
  unsupported: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
235
  }, z.core.$strip>;
229
236
  type SearchInterpretationDefinition = z.infer<typeof SearchInterpretationSchemaDefinition>;
@@ -2,6 +2,7 @@
2
2
  import { z } from "zod/v4";
3
3
  import { ConfidenceSchema } from "../confidence/confidence.js";
4
4
  import { EntityListFilterSchema } from "../entity/list-filter.js";
5
+ import { SearchIntentSchema } from "./intent.js";
5
6
  import { SearchModeExecutionSchema } from "./mode-execution.js";
6
7
  import { SearchOrderingEntityFilterSortableSchema } from "./ordering-entity-filter-sortable.js";
7
8
  const SearchInterpretationSchemaDefinition = z.object({
@@ -13,10 +14,14 @@ const SearchInterpretationSchemaDefinition = z.object({
13
14
  fallbackUsed: z.boolean(),
14
15
  /** Canonical entity filter generated from the natural-language query. */
15
16
  filter: EntityListFilterSchema,
17
+ /** Question shape the planner read from the query. */
18
+ intent: SearchIntentSchema,
16
19
  /** Human-readable summary of how the query was interpreted. */
17
20
  interpretation: z.string(),
18
21
  /** Ordering applied to the result page: the relevance rank that ran first, if any, then the sortable-column terms. */
19
22
  sort: SearchOrderingEntityFilterSortableSchema,
23
+ /** Brand or legal names of the entities the question is about, as written in the query; empty for discovery questions. */
24
+ subjectEntityName: z.array(z.string()),
20
25
  /** Constraint the planner could not translate into the canonical EntityFilter contract; null when every material constraint was supported. */
21
26
  unsupported: z.string().nullish(),
22
27
  });
@@ -0,0 +1,15 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Optional answer layer for a natural-language entity search. `passage` adds the text passages, from public research snippets and linked news, that best answer the question about the subject entities, their peers, or the top results; `synthesis` adds a written answer grounded only in those records and passages, citing each, and implies `passage`.
4
+ *
5
+ * @openapiSchema SearchLayer
6
+ * @endpoint POST /v1/search/natural/entities
7
+ * @contractShape search.layer
8
+ * @contractRole canonical
9
+ */
10
+ export declare const SearchLayerSchema: z.ZodEnum<{
11
+ passage: "passage";
12
+ synthesis: "synthesis";
13
+ }>;
14
+ export type SearchLayer = z.infer<typeof SearchLayerSchema>;
15
+ //# sourceMappingURL=layer.d.ts.map
@@ -0,0 +1,12 @@
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
+ * Optional answer layer for a natural-language entity search. `passage` adds the text passages, from public research snippets and linked news, that best answer the question about the subject entities, their peers, or the top results; `synthesis` adds a written answer grounded only in those records and passages, citing each, and implies `passage`.
5
+ *
6
+ * @openapiSchema SearchLayer
7
+ * @endpoint POST /v1/search/natural/entities
8
+ * @contractShape search.layer
9
+ * @contractRole canonical
10
+ */
11
+ export const SearchLayerSchema = z.enum(["passage", "synthesis"]);
12
+ //# sourceMappingURL=layer.js.map
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  /**
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. Entity and person natural-search support every mode; news and federated search accept only `auto` and `keyword`; content search accepts `auto` and `keyword`, where `keyword` ranks the full text of articles, posts, and fetched pages.
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. Entity and person natural-search support every mode; 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), and `semantic` (one entity's or person's library pages by vector similarity of their fetched bodies).
4
4
  *
5
5
  * @openapiSchema SearchMode
6
6
  * @endpoint GET /v1/search/link
@@ -1,7 +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
  /**
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. Entity and person natural-search support every mode; news and federated search accept only `auto` and `keyword`; content search accepts `auto` and `keyword`, where `keyword` ranks the full text of articles, posts, and fetched pages.
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. Entity and person natural-search support every mode; 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), and `semantic` (one entity's or person's library pages by vector similarity of their fetched bodies).
5
5
  *
6
6
  * @openapiSchema SearchMode
7
7
  * @endpoint GET /v1/search/link
@@ -0,0 +1,32 @@
1
+ import { z } from "zod/v4";
2
+ declare const SearchPassageSchemaDefinition: z.ZodObject<{
3
+ entityId: z.ZodUUID;
4
+ label: z.ZodString;
5
+ publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
6
+ score: z.ZodNumber;
7
+ source: z.ZodEnum<{
8
+ entityRecord: "entityRecord";
9
+ newsArticle: "newsArticle";
10
+ researchSnippet: "researchSnippet";
11
+ }>;
12
+ sourceId: z.ZodString;
13
+ text: z.ZodString;
14
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ type SearchPassageDefinition = z.infer<typeof SearchPassageSchemaDefinition>;
17
+ /**
18
+ * Text passage ranked by semantic closeness to a natural-language question, read from its owning record.
19
+ *
20
+ * @openapiSchema SearchPassage
21
+ * @endpoint GET /v1/search/link
22
+ * @endpoint GET /v1/search/link/jobs/{jobId}
23
+ * @endpoint POST /v1/search
24
+ * @endpoint POST /v1/search/natural/entities
25
+ * @usedBySchema NaturalSearchResultSchema
26
+ * @contractShape search.passage
27
+ * @contractRole canonical
28
+ */
29
+ export declare const SearchPassageSchema: z.ZodType<SearchPassageDefinition>;
30
+ export type SearchPassage = z.infer<typeof SearchPassageSchema>;
31
+ export {};
32
+ //# sourceMappingURL=passage.d.ts.map
@@ -0,0 +1,35 @@
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 { SearchEvidenceSourceSchema } from "./evidence-source.js";
4
+ const SearchPassageSchemaDefinition = z.object({
5
+ /** Entity the passage is about. */
6
+ entityId: z.uuid(),
7
+ /** Snippet type key for research snippets, or the article title for news articles. */
8
+ label: z.string(),
9
+ /** Article publication time for news passages; null for snippets. */
10
+ publishedAt: z.iso.datetime({ offset: true }).nullish(),
11
+ /** Cosine similarity between the question and the passage; higher is closer. Compare scores only within one response. */
12
+ score: z.number(),
13
+ /** Record type that owns the passage text. */
14
+ source: SearchEvidenceSourceSchema,
15
+ /** Identifier of the owning snippet or news article. */
16
+ sourceId: z.string(),
17
+ /** Passage text: the snippet, or the article summary or excerpt. */
18
+ text: z.string(),
19
+ /** Original article URL for news passages; null for snippets. */
20
+ url: z.string().nullish(),
21
+ });
22
+ /**
23
+ * Text passage ranked by semantic closeness to a natural-language question, read from its owning record.
24
+ *
25
+ * @openapiSchema SearchPassage
26
+ * @endpoint GET /v1/search/link
27
+ * @endpoint GET /v1/search/link/jobs/{jobId}
28
+ * @endpoint POST /v1/search
29
+ * @endpoint POST /v1/search/natural/entities
30
+ * @usedBySchema NaturalSearchResultSchema
31
+ * @contractShape search.passage
32
+ * @contractRole canonical
33
+ */
34
+ export const SearchPassageSchema = SearchPassageSchemaDefinition;
35
+ //# sourceMappingURL=passage.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.62",
3
+ "version": "0.8.64",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",