@aventurevc/api-schemas 0.8.114 → 0.8.125

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 (69) hide show
  1. package/dist/address/address.js +2 -2
  2. package/dist/address/association-role.d.ts +1 -1
  3. package/dist/address/association-role.js +1 -1
  4. package/dist/agent/help.d.ts +20 -4
  5. package/dist/datasource/data-source-type.d.ts +24 -0
  6. package/dist/datasource/data-source-type.js +24 -0
  7. package/dist/entity/detail.d.ts +2 -0
  8. package/dist/entity/enrichment.d.ts +1 -0
  9. package/dist/entity/enrichment.js +2 -0
  10. package/dist/entity/filter-sortable.d.ts +39 -0
  11. package/dist/entity/filter-sortable.js +42 -0
  12. package/dist/entity/filter.js +2 -2
  13. package/dist/entity/investor-participation.d.ts +2 -0
  14. package/dist/entity/list-filter.js +2 -2
  15. package/dist/entity/list.d.ts +2 -0
  16. package/dist/entity/natural-search.d.ts +2 -0
  17. package/dist/entity/person-association.js +1 -1
  18. package/dist/entity/resolution.d.ts +2 -0
  19. package/dist/entity/similarity-result.d.ts +2 -0
  20. package/dist/federated/natural-search.d.ts +12 -12
  21. package/dist/federated/natural-search.js +14 -11
  22. package/dist/federated/search.d.ts +12 -2
  23. package/dist/harness/task-plan-step.d.ts +8 -0
  24. package/dist/harness/task-plan-step.js +3 -0
  25. package/dist/harness/task-plan.d.ts +16 -0
  26. package/dist/harness/task-write-guidance.d.ts +21 -0
  27. package/dist/harness/task-write-guidance.js +27 -0
  28. package/dist/help/citation.d.ts +4 -2
  29. package/dist/help/resolution.d.ts +18 -2
  30. package/dist/help/source-type.d.ts +4 -2
  31. package/dist/help/source-type.js +11 -6
  32. package/dist/http/problem-detail.d.ts +12 -0
  33. package/dist/http/problem-detail.js +5 -0
  34. package/dist/link/search.d.ts +12 -2
  35. package/dist/lookup/job-mention.d.ts +2 -0
  36. package/dist/lookup/job-mutation.d.ts +2 -1
  37. package/dist/lookup/job-mutation.js +3 -1
  38. package/dist/lookup/job.d.ts +4 -0
  39. package/dist/mention/lookup.d.ts +2 -0
  40. package/dist/natural/search-result.d.ts +9 -2
  41. package/dist/natural/search.d.ts +1 -0
  42. package/dist/natural/search.js +3 -1
  43. package/dist/openapi-component-manifest.js +15 -0
  44. package/dist/pagination/schemas.d.ts +10 -0
  45. package/dist/person/natural-search.d.ts +2 -0
  46. package/dist/prose/problem.d.ts +24 -0
  47. package/dist/prose/problem.js +27 -0
  48. package/dist/prose/violation.d.ts +32 -0
  49. package/dist/prose/violation.js +24 -0
  50. package/dist/reasoning/effort.d.ts +1 -0
  51. package/dist/reasoning/effort.js +1 -0
  52. package/dist/research/snippet-type.d.ts +1 -0
  53. package/dist/research/snippet-type.js +2 -0
  54. package/dist/search/answer.d.ts +1 -0
  55. package/dist/search/answer.js +3 -1
  56. package/dist/search/cache-mode.d.ts +1 -0
  57. package/dist/search/cache-mode.js +1 -0
  58. package/dist/search/interpretation.d.ts +2 -2
  59. package/dist/search/layer.d.ts +2 -0
  60. package/dist/search/layer.js +2 -0
  61. package/dist/search/ordering-entity-filter-sortable.d.ts +2 -2
  62. package/dist/shared/search-mutation.d.ts +208 -0
  63. package/dist/shared/search-mutation.js +8 -0
  64. package/dist/shared/search.d.ts +12 -2
  65. package/dist/sort/order-entity-filter-sortable.d.ts +4 -2
  66. package/dist/sort/order-entity-filter-sortable.js +2 -19
  67. package/dist/suppression/reason.d.ts +17 -0
  68. package/dist/suppression/reason.js +16 -0
  69. package/package.json +1 -1
@@ -265,12 +265,14 @@ declare const PersonNaturalSearchSchemaDefinition: z.ZodObject<{
265
265
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
266
  }, z.core.$strip>>;
267
267
  search: z.ZodType<{
268
+ answerModel?: string | null | undefined;
268
269
  cacheMode?: "bypass" | "refresh" | "use" | undefined;
269
270
  mode?: string | undefined;
270
271
  model?: string | null | undefined;
271
272
  query: string;
272
273
  reasoningEffort?: string | null | undefined;
273
274
  }, unknown, z.core.$ZodTypeInternals<{
275
+ answerModel?: string | null | undefined;
274
276
  cacheMode?: "bypass" | "refresh" | "use" | undefined;
275
277
  mode?: string | undefined;
276
278
  model?: string | null | undefined;
@@ -0,0 +1,24 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Why a sentence or paragraph of entity text or a research snippet was rejected.
4
+ *
5
+ * @openapiSchema ProseProblem
6
+ * @standardProblemResponse
7
+ * @usedBySchema ProseViolationSchema
8
+ * @contractShape prose.problem
9
+ * @contractRole canonical
10
+ */
11
+ export declare const ProseProblemSchema: z.ZodUnion<readonly [z.ZodEnum<{
12
+ disclaimer: "disclaimer";
13
+ factList: "factList";
14
+ legalSource: "legalSource";
15
+ mojibake: "mojibake";
16
+ record: "record";
17
+ source: "source";
18
+ structured: "structured";
19
+ temporal: "temporal";
20
+ textContract: "textContract";
21
+ voice: "voice";
22
+ }>, z.ZodString]>;
23
+ export type ProseProblem = z.infer<typeof ProseProblemSchema>;
24
+ //# sourceMappingURL=problem.d.ts.map
@@ -0,0 +1,27 @@
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
+ * Why a sentence or paragraph of entity text or a research snippet was rejected.
5
+ *
6
+ * @openapiSchema ProseProblem
7
+ * @standardProblemResponse
8
+ * @usedBySchema ProseViolationSchema
9
+ * @contractShape prose.problem
10
+ * @contractRole canonical
11
+ */
12
+ export const ProseProblemSchema = z.union([
13
+ z.enum([
14
+ "source",
15
+ "record",
16
+ "disclaimer",
17
+ "voice",
18
+ "structured",
19
+ "temporal",
20
+ "factList",
21
+ "mojibake",
22
+ "legalSource",
23
+ "textContract",
24
+ ]),
25
+ z.string(),
26
+ ]);
27
+ //# sourceMappingURL=problem.js.map
@@ -0,0 +1,32 @@
1
+ import { z } from "zod/v4";
2
+ declare const ProseViolationSchemaDefinition: z.ZodObject<{
3
+ overridable: z.ZodBoolean;
4
+ passage: z.ZodString;
5
+ problem: z.ZodUnion<readonly [z.ZodEnum<{
6
+ disclaimer: "disclaimer";
7
+ factList: "factList";
8
+ legalSource: "legalSource";
9
+ mojibake: "mojibake";
10
+ record: "record";
11
+ source: "source";
12
+ structured: "structured";
13
+ temporal: "temporal";
14
+ textContract: "textContract";
15
+ voice: "voice";
16
+ }>, z.ZodString]>;
17
+ reason: z.ZodString;
18
+ }, z.core.$strip>;
19
+ type ProseViolationDefinition = z.infer<typeof ProseViolationSchemaDefinition>;
20
+ /**
21
+ * One rejected passage and one problem it shows; a passage with several problems appears once per problem.
22
+ *
23
+ * @openapiSchema ProseViolation
24
+ * @standardProblemResponse
25
+ * @usedBySchema ProblemDetailSchema
26
+ * @contractShape prose.violation
27
+ * @contractRole canonical
28
+ */
29
+ export declare const ProseViolationSchema: z.ZodType<ProseViolationDefinition>;
30
+ export type ProseViolation = z.infer<typeof ProseViolationSchema>;
31
+ export {};
32
+ //# sourceMappingURL=violation.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 { ProseProblemSchema } from "./problem.js";
4
+ const ProseViolationSchemaDefinition = z.object({
5
+ /** Whether proseOverrideReason can accept this problem; ProblemDetail.hint says when an override is allowed. */
6
+ overridable: z.boolean(),
7
+ /** The rejected sentence, the whole text for a text-contract violation, or the source URL for a legal-page source. */
8
+ passage: z.string(),
9
+ /** The problem this passage shows. */
10
+ problem: ProseProblemSchema,
11
+ /** Why the passage was rejected and how to fix it. */
12
+ reason: z.string(),
13
+ });
14
+ /**
15
+ * One rejected passage and one problem it shows; a passage with several problems appears once per problem.
16
+ *
17
+ * @openapiSchema ProseViolation
18
+ * @standardProblemResponse
19
+ * @usedBySchema ProblemDetailSchema
20
+ * @contractShape prose.violation
21
+ * @contractRole canonical
22
+ */
23
+ export const ProseViolationSchema = ProseViolationSchemaDefinition;
24
+ //# sourceMappingURL=violation.js.map
@@ -8,6 +8,7 @@ import { z } from "zod/v4";
8
8
  * @endpoint POST /v1/search
9
9
  * @endpoint POST /v1/search/natural/entities
10
10
  * @endpoint POST /v1/search/natural/people
11
+ * @endpoint POST /v1/search/shared
11
12
  * @usedBySchema FederatedNaturalSearchSchema
12
13
  * @usedBySchema NaturalSearchSchema
13
14
  * @contractShape reasoning.effort
@@ -9,6 +9,7 @@ import { z } from "zod/v4";
9
9
  * @endpoint POST /v1/search
10
10
  * @endpoint POST /v1/search/natural/entities
11
11
  * @endpoint POST /v1/search/natural/people
12
+ * @endpoint POST /v1/search/shared
12
13
  * @usedBySchema FederatedNaturalSearchSchema
13
14
  * @usedBySchema NaturalSearchSchema
14
15
  * @contractShape reasoning.effort
@@ -16,6 +16,7 @@ declare const ResearchSnippetTypeSchemaDefinition: z.ZodObject<{
16
16
  recognized: z.ZodBoolean;
17
17
  targetPath: z.ZodString;
18
18
  typeValue: z.ZodString;
19
+ writeHint: z.ZodString;
19
20
  }, z.core.$strip>;
20
21
  type ResearchSnippetTypeDefinition = z.infer<typeof ResearchSnippetTypeSchemaDefinition>;
21
22
  /**
@@ -20,6 +20,8 @@ const ResearchSnippetTypeSchemaDefinition = z.object({
20
20
  targetPath: z.string(),
21
21
  /** Canonical snippet type token used on the wire. */
22
22
  typeValue: z.string(),
23
+ /** The strategic question this snippet type answers and how to shape it. Snippets are point-in-time strategic analysis of the company's position against its market and named alternatives: open with the judgment and cite dated, sourced details only as evidence for it, never as a fact list. */
24
+ writeHint: z.string(),
23
25
  });
24
26
  /**
25
27
  * Canonical research snippet type with the governance rules write callers must satisfy.
@@ -30,6 +30,7 @@ export declare const SearchAnswerSchema: z.ZodObject<{
30
30
  MEDIUM: "MEDIUM";
31
31
  }>;
32
32
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
34
  paragraph: z.ZodArray<z.ZodType<{
34
35
  citation: {
35
36
  entityId: string;
@@ -25,6 +25,8 @@ export const SearchAnswerSchema = z.object({
25
25
  confidence: ConfidenceSchema,
26
26
  /** One- or two-sentence summary of at most 155 characters for a search-result snippet; absent when the answer abstains. */
27
27
  description: z.string().nullish(),
28
+ /** The question as the answer page's heading: the asker's own words in title case, with record names in their stored casing; it never adds, drops, or corrects a word. Absent when the answer abstains. */
29
+ heading: z.string().nullish(),
28
30
  /** The answer's paragraphs in reading order, each citing the evidence it rests on; empty when the answer abstains. A first paragraph without `topic` is the lead, written as a standalone answer of one or two sentences that reads complete when shown alone; later paragraphs expand it by topic without restating it. */
29
31
  paragraph: z.array(SearchAnswerParagraphSchema),
30
32
  /** Up to five follow-up searches grounded in the cited evidence; empty when the answer abstains. */
@@ -33,7 +35,7 @@ export const SearchAnswerSchema = z.object({
33
35
  shareable: z.boolean(),
34
36
  /** Every paragraph's text in reading order, separated by blank lines; read `paragraph` to place each citation beside the text it supports. */
35
37
  text: z.string(),
36
- /** Page title of at most 60 characters naming the answer's subject and scope, written by the same model call; absent when the answer abstains. */
38
+ /** Page title of at most 60 characters naming the answer's subject, then the angle and scope its paragraphs cover, written by the same model call; pages show it as the subheading under `heading`. Absent when the answer abstains. */
37
39
  title: z.string().nullish(),
38
40
  });
39
41
  //# sourceMappingURL=answer.js.map
@@ -8,6 +8,7 @@ import { z } from "zod/v4";
8
8
  * @endpoint POST /v1/search
9
9
  * @endpoint POST /v1/search/natural/entities
10
10
  * @endpoint POST /v1/search/natural/people
11
+ * @endpoint POST /v1/search/shared
11
12
  * @usedBySchema FederatedNaturalSearchSchema
12
13
  * @usedBySchema NaturalSearchSchema
13
14
  * @contractShape search.cache-mode
@@ -9,6 +9,7 @@ import { z } from "zod/v4";
9
9
  * @endpoint POST /v1/search
10
10
  * @endpoint POST /v1/search/natural/entities
11
11
  * @endpoint POST /v1/search/natural/people
12
+ * @endpoint POST /v1/search/shared
12
13
  * @usedBySchema FederatedNaturalSearchSchema
13
14
  * @usedBySchema NaturalSearchSchema
14
15
  * @contractShape search.cache-mode
@@ -244,14 +244,14 @@ declare const SearchInterpretationSchemaDefinition: z.ZodObject<{
244
244
  sort: z.ZodType<{
245
245
  order: {
246
246
  descending: boolean;
247
- field: "ACCELERATOR_BRAND" | "ACCELERATOR_COHORT" | "AMOUNT_INVESTED" | "CREATED_AT" | "EMPLOYEE_COUNT" | "HEADQUARTERS_COUNTRY" | "ID" | "LATEST_VALUATION" | "MOST_RECENT_AMOUNT" | "MOST_RECENT_DATE" | "NAME_BRAND" | "RECENT_INVESTMENT_AT" | "STAGE" | "STATUS_OPERATING" | "TOTAL_RAISED" | "UPDATED_AT" | "YEAR_FOUNDED";
247
+ field: string;
248
248
  sortKey?: string | null | undefined;
249
249
  }[];
250
250
  relevance?: "keyword" | "semantic" | null | undefined;
251
251
  }, unknown, z.core.$ZodTypeInternals<{
252
252
  order: {
253
253
  descending: boolean;
254
- field: "ACCELERATOR_BRAND" | "ACCELERATOR_COHORT" | "AMOUNT_INVESTED" | "CREATED_AT" | "EMPLOYEE_COUNT" | "HEADQUARTERS_COUNTRY" | "ID" | "LATEST_VALUATION" | "MOST_RECENT_AMOUNT" | "MOST_RECENT_DATE" | "NAME_BRAND" | "RECENT_INVESTMENT_AT" | "STAGE" | "STATUS_OPERATING" | "TOTAL_RAISED" | "UPDATED_AT" | "YEAR_FOUNDED";
254
+ field: string;
255
255
  sortKey?: string | null | undefined;
256
256
  }[];
257
257
  relevance?: "keyword" | "semantic" | null | undefined;
@@ -5,6 +5,8 @@ import { z } from "zod/v4";
5
5
  * @openapiSchema SearchLayer
6
6
  * @endpoint POST /v1/search
7
7
  * @endpoint POST /v1/search/natural/entities
8
+ * @endpoint POST /v1/search/shared
9
+ * @usedBySchema SharedSearchMutationSchema
8
10
  * @contractShape search.layer
9
11
  * @contractRole canonical
10
12
  */
@@ -6,6 +6,8 @@ import { z } from "zod/v4";
6
6
  * @openapiSchema SearchLayer
7
7
  * @endpoint POST /v1/search
8
8
  * @endpoint POST /v1/search/natural/entities
9
+ * @endpoint POST /v1/search/shared
10
+ * @usedBySchema SharedSearchMutationSchema
9
11
  * @contractShape search.layer
10
12
  * @contractRole canonical
11
13
  */
@@ -2,11 +2,11 @@ import { z } from "zod/v4";
2
2
  declare const SearchOrderingEntityFilterSortableSchemaDefinition: z.ZodObject<{
3
3
  order: z.ZodArray<z.ZodType<{
4
4
  descending: boolean;
5
- field: "ACCELERATOR_BRAND" | "ACCELERATOR_COHORT" | "AMOUNT_INVESTED" | "CREATED_AT" | "EMPLOYEE_COUNT" | "HEADQUARTERS_COUNTRY" | "ID" | "LATEST_VALUATION" | "MOST_RECENT_AMOUNT" | "MOST_RECENT_DATE" | "NAME_BRAND" | "RECENT_INVESTMENT_AT" | "STAGE" | "STATUS_OPERATING" | "TOTAL_RAISED" | "UPDATED_AT" | "YEAR_FOUNDED";
5
+ field: string;
6
6
  sortKey?: string | null | undefined;
7
7
  }, unknown, z.core.$ZodTypeInternals<{
8
8
  descending: boolean;
9
- field: "ACCELERATOR_BRAND" | "ACCELERATOR_COHORT" | "AMOUNT_INVESTED" | "CREATED_AT" | "EMPLOYEE_COUNT" | "HEADQUARTERS_COUNTRY" | "ID" | "LATEST_VALUATION" | "MOST_RECENT_AMOUNT" | "MOST_RECENT_DATE" | "NAME_BRAND" | "RECENT_INVESTMENT_AT" | "STAGE" | "STATUS_OPERATING" | "TOTAL_RAISED" | "UPDATED_AT" | "YEAR_FOUNDED";
9
+ field: string;
10
10
  sortKey?: string | null | undefined;
11
11
  }, unknown>>>;
12
12
  relevance: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -1,7 +1,215 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const SharedSearchMutationSchemaDefinition: z.ZodObject<{
3
3
  id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
4
+ layer: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
5
+ judgment: "judgment";
6
+ passage: "passage";
7
+ synthesis: "synthesis";
8
+ web: "web";
9
+ }>>>>;
4
10
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ search: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ answerModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ cacheMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
14
+ bypass: "bypass";
15
+ refresh: "refresh";
16
+ use: "use";
17
+ }>>>;
18
+ entityFilter: z.ZodOptional<z.ZodObject<{
19
+ acceleratorBrand: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ acceleratorCohort: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ acceleratorName: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ acceleratorStatus: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ closedLast: z.ZodOptional<z.ZodBoolean>;
25
+ employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
26
+ max?: number | null | undefined;
27
+ min?: number | null | undefined;
28
+ }, unknown, z.core.$ZodTypeInternals<{
29
+ max?: number | null | undefined;
30
+ min?: number | null | undefined;
31
+ }, unknown>>>>;
32
+ entityId: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
33
+ entityName: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ featured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
+ fundraiseActivity: z.ZodOptional<z.ZodObject<{
36
+ amountInvestedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
37
+ max?: number | null | undefined;
38
+ min?: number | null | undefined;
39
+ }, unknown, z.core.$ZodTypeInternals<{
40
+ max?: number | null | undefined;
41
+ min?: number | null | undefined;
42
+ }, unknown>>>>;
43
+ amountRaisedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
44
+ max?: number | null | undefined;
45
+ min?: number | null | undefined;
46
+ }, unknown, z.core.$ZodTypeInternals<{
47
+ max?: number | null | undefined;
48
+ min?: number | null | undefined;
49
+ }, unknown>>>>;
50
+ dateAnnouncedRange: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
+ max: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
52
+ min: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
53
+ }, z.core.$strip>>>;
54
+ investedCompanyName: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ investedCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ investedIndustry: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ investedRound: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ investorActivity: z.ZodOptional<z.ZodObject<{
59
+ averageAmountInvestedUsdRange: z.ZodOptional<z.ZodArray<z.ZodType<{
60
+ max?: number | null | undefined;
61
+ min?: number | null | undefined;
62
+ }, unknown, z.core.$ZodTypeInternals<{
63
+ max?: number | null | undefined;
64
+ min?: number | null | undefined;
65
+ }, unknown>>>>;
66
+ largestAmountInvestedUsdRange: z.ZodOptional<z.ZodArray<z.ZodType<{
67
+ max?: number | null | undefined;
68
+ min?: number | null | undefined;
69
+ }, unknown, z.core.$ZodTypeInternals<{
70
+ max?: number | null | undefined;
71
+ min?: number | null | undefined;
72
+ }, unknown>>>>;
73
+ smallestAmountInvestedUsdRange: 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
+ totalAmountInvestedUsdRange: z.ZodOptional<z.ZodArray<z.ZodType<{
81
+ max?: number | null | undefined;
82
+ min?: number | null | undefined;
83
+ }, unknown, z.core.$ZodTypeInternals<{
84
+ max?: number | null | undefined;
85
+ min?: number | null | undefined;
86
+ }, unknown>>>>;
87
+ totalInvestmentRange: z.ZodOptional<z.ZodArray<z.ZodType<{
88
+ max?: number | null | undefined;
89
+ min?: number | null | undefined;
90
+ }, unknown, z.core.$ZodTypeInternals<{
91
+ max?: number | null | undefined;
92
+ min?: number | null | undefined;
93
+ }, unknown>>>>;
94
+ }, z.core.$strip>>;
95
+ investorName: z.ZodOptional<z.ZodArray<z.ZodString>>;
96
+ lastRoundYearRange: z.ZodOptional<z.ZodArray<z.ZodType<{
97
+ max?: number | null | undefined;
98
+ min?: number | null | undefined;
99
+ }, unknown, z.core.$ZodTypeInternals<{
100
+ max?: number | null | undefined;
101
+ min?: number | null | undefined;
102
+ }, unknown>>>>;
103
+ rankByInvestmentActivity: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
104
+ round: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ totalRaisedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
106
+ max?: number | null | undefined;
107
+ min?: number | null | undefined;
108
+ }, unknown, z.core.$ZodTypeInternals<{
109
+ max?: number | null | undefined;
110
+ min?: number | null | undefined;
111
+ }, unknown>>>>;
112
+ valuationRange: z.ZodOptional<z.ZodArray<z.ZodType<{
113
+ max?: number | null | undefined;
114
+ min?: number | null | undefined;
115
+ }, unknown, z.core.$ZodTypeInternals<{
116
+ max?: number | null | undefined;
117
+ min?: number | null | undefined;
118
+ }, unknown>>>>;
119
+ }, z.core.$strip>>;
120
+ hasFundraising: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
+ headquartersCity: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
+ headquartersCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
+ headquartersState: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
+ industry: z.ZodOptional<z.ZodArray<z.ZodString>>;
125
+ letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ location: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
+ logoOption: z.ZodOptional<z.ZodObject<{
128
+ sortPriority: z.ZodOptional<z.ZodEnum<{
129
+ ANY_LOGO_FIRST: "ANY_LOGO_FIRST";
130
+ NONE: "NONE";
131
+ REAL_LOGO_FIRST: "REAL_LOGO_FIRST";
132
+ }>>;
133
+ }, z.core.$strip>>;
134
+ mainProduct: z.ZodOptional<z.ZodArray<z.ZodString>>;
135
+ operatingStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<{
136
+ Acquired: "Acquired";
137
+ "Acquired Subsidiary": "Acquired Subsidiary";
138
+ Closed: "Closed";
139
+ "Closed (Acquihire)": "Closed (Acquihire)";
140
+ Inactive: "Inactive";
141
+ Operating: "Operating";
142
+ }>>>;
143
+ originCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ person: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
+ portfolioHeadquartersCity: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ portfolioHeadquartersCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
147
+ portfolioHeadquartersState: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
+ qualityGate: z.ZodOptional<z.ZodEnum<{
149
+ COMPANY_LISTING_READY: "COMPANY_LISTING_READY";
150
+ NONE: "NONE";
151
+ }>>;
152
+ rankByProminence: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
153
+ slug: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
+ stage: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
+ suppressLateStage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
156
+ suppressNonOperating: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
+ suppressZeroTotalRaised: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
+ tag: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
+ textSearch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ typeCustomer: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ typeModel: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ typeOwnership: z.ZodOptional<z.ZodArray<z.ZodString>>;
163
+ typeRecord: z.ZodOptional<z.ZodArray<z.ZodEnum<{
164
+ "Business Line": "Business Line";
165
+ Company: "Company";
166
+ Fund: "Fund";
167
+ Government: "Government";
168
+ "Investment Firm": "Investment Firm";
169
+ Nonprofit: "Nonprofit";
170
+ Organization: "Organization";
171
+ Product: "Product";
172
+ Service: "Service";
173
+ }>>>;
174
+ typeRevenue: z.ZodOptional<z.ZodArray<z.ZodString>>;
175
+ typeTechnologyUsed: z.ZodOptional<z.ZodArray<z.ZodString>>;
176
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ urlDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ urlMatchMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
179
+ domain: "domain";
180
+ hostPath: "hostPath";
181
+ }>>>;
182
+ urlType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ yearFoundedRange: z.ZodOptional<z.ZodArray<z.ZodType<{
184
+ max?: number | null | undefined;
185
+ min?: number | null | undefined;
186
+ }, unknown, z.core.$ZodTypeInternals<{
187
+ max?: number | null | undefined;
188
+ min?: number | null | undefined;
189
+ }, unknown>>>>;
190
+ }, z.core.$strict>>;
191
+ mode: z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
192
+ auto: "auto";
193
+ exact: "exact";
194
+ hybrid: "hybrid";
195
+ keyword: "keyword";
196
+ natural: "natural";
197
+ semantic: "semantic";
198
+ }>, z.ZodString]>>>;
199
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ newsSize: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
201
+ personSize: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
202
+ query: z.ZodString;
203
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
204
+ high: "high";
205
+ low: "low";
206
+ max: "max";
207
+ medium: "medium";
208
+ minimal: "minimal";
209
+ xhigh: "xhigh";
210
+ }>, z.ZodString]>>>;
211
+ }, z.core.$strip>>>;
212
+ size: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5
213
  }, z.core.$strip>;
6
214
  type SharedSearchMutationDefinition = z.infer<typeof SharedSearchMutationSchemaDefinition>;
7
215
  /**
@@ -1,10 +1,18 @@
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 { FederatedNaturalSearchSchema } from "../federated/natural-search.js";
4
+ import { SearchLayerSchema } from "../search/layer.js";
3
5
  const SharedSearchMutationSchemaDefinition = z.object({
4
6
  /** Stable sharing UUID generated once and reused across retries. */
5
7
  id: z.uuid().nullish(),
8
+ /** Answer layers the sharing page searched with; synthesis is required and web is the only other layer allowed. Omitted means synthesis alone. */
9
+ layer: z.array(SearchLayerSchema).nullish(),
6
10
  /** Plain-English query to run against public records and publish. */
7
11
  query: z.string().max(2000).nullish(),
12
+ /** The federated search body the sharing page ran, as on POST /v1/search; its query must equal query. The share then publishes the answer that page showed when it is still cached, else runs this search. answerModel is not accepted; cacheMode is always use. Omitted runs query alone. */
13
+ search: FederatedNaturalSearchSchema.nullish(),
14
+ /** Page size the sharing page searched with, under the same page-size cap; omitted uses the default page size. */
15
+ size: z.int().min(1).nullish(),
8
16
  });
9
17
  /**
10
18
  * Publish a query under a stable client UUID; retries return the same saved answer.
@@ -22,6 +22,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
22
22
  }[];
23
23
  confidence: "HIGH" | "LOW" | "MEDIUM";
24
24
  description?: string | null | undefined;
25
+ heading?: string | null | undefined;
25
26
  paragraph: {
26
27
  citation: {
27
28
  entityId: string;
@@ -159,7 +160,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
159
160
  sort: {
160
161
  order: {
161
162
  descending: boolean;
162
- field: "ACCELERATOR_BRAND" | "ACCELERATOR_COHORT" | "AMOUNT_INVESTED" | "CREATED_AT" | "EMPLOYEE_COUNT" | "HEADQUARTERS_COUNTRY" | "ID" | "LATEST_VALUATION" | "MOST_RECENT_AMOUNT" | "MOST_RECENT_DATE" | "NAME_BRAND" | "RECENT_INVESTMENT_AT" | "STAGE" | "STATUS_OPERATING" | "TOTAL_RAISED" | "UPDATED_AT" | "YEAR_FOUNDED";
163
+ field: string;
163
164
  sortKey?: string | null | undefined;
164
165
  }[];
165
166
  relevance?: "keyword" | "semantic" | null | undefined;
@@ -631,6 +632,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
631
632
  totalRaisedUsd?: number | null | undefined;
632
633
  unconvertedRoundCount: number;
633
634
  } | null | undefined;
635
+ headquartersAddressId?: number | null | undefined;
634
636
  text: {
635
637
  expanded?: string | null | undefined;
636
638
  generatedDescription?: string | null | undefined;
@@ -1124,6 +1126,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
1124
1126
  totalRaisedUsd?: number | null | undefined;
1125
1127
  unconvertedRoundCount: number;
1126
1128
  } | null | undefined;
1129
+ headquartersAddressId?: number | null | undefined;
1127
1130
  text: {
1128
1131
  expanded?: string | null | undefined;
1129
1132
  generatedDescription?: string | null | undefined;
@@ -1608,6 +1611,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
1608
1611
  totalRaisedUsd?: number | null | undefined;
1609
1612
  unconvertedRoundCount: number;
1610
1613
  } | null | undefined;
1614
+ headquartersAddressId?: number | null | undefined;
1611
1615
  text: {
1612
1616
  expanded?: string | null | undefined;
1613
1617
  generatedDescription?: string | null | undefined;
@@ -2087,6 +2091,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
2087
2091
  totalRaisedUsd?: number | null | undefined;
2088
2092
  unconvertedRoundCount: number;
2089
2093
  } | null | undefined;
2094
+ headquartersAddressId?: number | null | undefined;
2090
2095
  text: {
2091
2096
  expanded?: string | null | undefined;
2092
2097
  generatedDescription?: string | null | undefined;
@@ -3466,6 +3471,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
3466
3471
  }[];
3467
3472
  confidence: "HIGH" | "LOW" | "MEDIUM";
3468
3473
  description?: string | null | undefined;
3474
+ heading?: string | null | undefined;
3469
3475
  paragraph: {
3470
3476
  citation: {
3471
3477
  entityId: string;
@@ -3603,7 +3609,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
3603
3609
  sort: {
3604
3610
  order: {
3605
3611
  descending: boolean;
3606
- field: "ACCELERATOR_BRAND" | "ACCELERATOR_COHORT" | "AMOUNT_INVESTED" | "CREATED_AT" | "EMPLOYEE_COUNT" | "HEADQUARTERS_COUNTRY" | "ID" | "LATEST_VALUATION" | "MOST_RECENT_AMOUNT" | "MOST_RECENT_DATE" | "NAME_BRAND" | "RECENT_INVESTMENT_AT" | "STAGE" | "STATUS_OPERATING" | "TOTAL_RAISED" | "UPDATED_AT" | "YEAR_FOUNDED";
3612
+ field: string;
3607
3613
  sortKey?: string | null | undefined;
3608
3614
  }[];
3609
3615
  relevance?: "keyword" | "semantic" | null | undefined;
@@ -4075,6 +4081,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
4075
4081
  totalRaisedUsd?: number | null | undefined;
4076
4082
  unconvertedRoundCount: number;
4077
4083
  } | null | undefined;
4084
+ headquartersAddressId?: number | null | undefined;
4078
4085
  text: {
4079
4086
  expanded?: string | null | undefined;
4080
4087
  generatedDescription?: string | null | undefined;
@@ -4568,6 +4575,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
4568
4575
  totalRaisedUsd?: number | null | undefined;
4569
4576
  unconvertedRoundCount: number;
4570
4577
  } | null | undefined;
4578
+ headquartersAddressId?: number | null | undefined;
4571
4579
  text: {
4572
4580
  expanded?: string | null | undefined;
4573
4581
  generatedDescription?: string | null | undefined;
@@ -5052,6 +5060,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
5052
5060
  totalRaisedUsd?: number | null | undefined;
5053
5061
  unconvertedRoundCount: number;
5054
5062
  } | null | undefined;
5063
+ headquartersAddressId?: number | null | undefined;
5055
5064
  text: {
5056
5065
  expanded?: string | null | undefined;
5057
5066
  generatedDescription?: string | null | undefined;
@@ -5531,6 +5540,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
5531
5540
  totalRaisedUsd?: number | null | undefined;
5532
5541
  unconvertedRoundCount: number;
5533
5542
  } | null | undefined;
5543
+ headquartersAddressId?: number | null | undefined;
5534
5544
  text: {
5535
5545
  expanded?: string | null | undefined;
5536
5546
  generatedDescription?: string | null | undefined;
@@ -1,11 +1,12 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const SortOrderEntityFilterSortableSchemaDefinition: z.ZodObject<{
3
3
  descending: z.ZodBoolean;
4
- field: z.ZodEnum<{
4
+ field: z.ZodUnion<readonly [z.ZodEnum<{
5
5
  ACCELERATOR_BRAND: "ACCELERATOR_BRAND";
6
6
  ACCELERATOR_COHORT: "ACCELERATOR_COHORT";
7
7
  AMOUNT_INVESTED: "AMOUNT_INVESTED";
8
8
  CREATED_AT: "CREATED_AT";
9
+ DATA_COMPLETION_COVERAGE: "DATA_COMPLETION_COVERAGE";
9
10
  EMPLOYEE_COUNT: "EMPLOYEE_COUNT";
10
11
  HEADQUARTERS_COUNTRY: "HEADQUARTERS_COUNTRY";
11
12
  ID: "ID";
@@ -13,13 +14,14 @@ declare const SortOrderEntityFilterSortableSchemaDefinition: z.ZodObject<{
13
14
  MOST_RECENT_AMOUNT: "MOST_RECENT_AMOUNT";
14
15
  MOST_RECENT_DATE: "MOST_RECENT_DATE";
15
16
  NAME_BRAND: "NAME_BRAND";
17
+ NEXT_DUE_AT: "NEXT_DUE_AT";
16
18
  RECENT_INVESTMENT_AT: "RECENT_INVESTMENT_AT";
17
19
  STAGE: "STAGE";
18
20
  STATUS_OPERATING: "STATUS_OPERATING";
19
21
  TOTAL_RAISED: "TOTAL_RAISED";
20
22
  UPDATED_AT: "UPDATED_AT";
21
23
  YEAR_FOUNDED: "YEAR_FOUNDED";
22
- }>;
24
+ }>, z.ZodString]>;
23
25
  sortKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  }, z.core.$strip>;
25
27
  type SortOrderEntityFilterSortableDefinition = z.infer<typeof SortOrderEntityFilterSortableSchemaDefinition>;