@aventurevc/api-schemas 0.8.70 → 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.
Files changed (48) hide show
  1. package/dist/agent/help.d.ts +30 -0
  2. package/dist/entity/filter.d.ts +2 -0
  3. package/dist/entity/filter.js +2 -0
  4. package/dist/federated/natural-search.d.ts +180 -0
  5. package/dist/federated/natural-search.js +24 -0
  6. package/dist/federated/search-provenance.d.ts +9 -0
  7. package/dist/federated/search-provenance.js +3 -0
  8. package/dist/federated/search-rejection.d.ts +26 -0
  9. package/dist/federated/search-rejection.js +23 -0
  10. package/dist/federated/search.d.ts +43 -6
  11. package/dist/federated/search.js +3 -0
  12. package/dist/harness/task-input-type.d.ts +17 -0
  13. package/dist/harness/task-input-type.js +14 -0
  14. package/dist/harness/task-plan-step.d.ts +29 -0
  15. package/dist/harness/task-plan-step.js +23 -0
  16. package/dist/harness/task-plan.d.ts +43 -0
  17. package/dist/harness/task-plan.js +25 -0
  18. package/dist/harness/task-step.d.ts +21 -0
  19. package/dist/harness/task-step.js +22 -0
  20. package/dist/harness/task.d.ts +24 -0
  21. package/dist/harness/task.js +23 -0
  22. package/dist/help/resolution.d.ts +30 -0
  23. package/dist/help/resolution.js +4 -1
  24. package/dist/http/problem-detail.d.ts +1 -0
  25. package/dist/http/problem-detail.js +2 -0
  26. package/dist/link/search.d.ts +44 -6
  27. package/dist/natural/search-result.d.ts +6 -6
  28. package/dist/natural/search.d.ts +0 -1
  29. package/dist/natural/search.js +0 -1
  30. package/dist/news/entity-mention.d.ts +41 -0
  31. package/dist/news/entity-mention.js +22 -0
  32. package/dist/news/match-status.d.ts +3 -0
  33. package/dist/news/match-status.js +3 -0
  34. package/dist/news/resolved-entity-link.d.ts +4 -0
  35. package/dist/news/resolved-entity-link.js +4 -0
  36. package/dist/openapi-component-manifest.js +20 -0
  37. package/dist/search/answer-citation.d.ts +1 -5
  38. package/dist/search/answer-paragraph.d.ts +2 -2
  39. package/dist/search/answer.d.ts +4 -4
  40. package/dist/search/answer.js +1 -1
  41. package/dist/search/evidence-source.d.ts +8 -5
  42. package/dist/search/evidence-source.js +5 -5
  43. package/dist/search/layer.d.ts +2 -1
  44. package/dist/search/layer.js +2 -1
  45. package/dist/search/mode.d.ts +1 -0
  46. package/dist/search/mode.js +1 -0
  47. package/dist/search/passage.d.ts +1 -5
  48. package/package.json +1 -1
@@ -38,6 +38,36 @@ declare const AgentHelpSchemaDefinition: z.ZodObject<{
38
38
  }>;
39
39
  probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
40
  taskKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ taskPlan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
+ catalogRevision: z.ZodInt;
43
+ input: z.ZodArray<z.ZodType<{
44
+ description: string;
45
+ key: string;
46
+ type: "ENTITY" | "TEXT";
47
+ }, unknown, z.core.$ZodTypeInternals<{
48
+ description: string;
49
+ key: string;
50
+ type: "ENTITY" | "TEXT";
51
+ }, unknown>>>;
52
+ step: z.ZodArray<z.ZodType<{
53
+ cliCommand: string;
54
+ mcpTool?: string | null | undefined;
55
+ step: {
56
+ instruction: string;
57
+ operationId: string;
58
+ stepKey: string;
59
+ };
60
+ }, unknown, z.core.$ZodTypeInternals<{
61
+ cliCommand: string;
62
+ mcpTool?: string | null | undefined;
63
+ step: {
64
+ instruction: string;
65
+ operationId: string;
66
+ stepKey: string;
67
+ };
68
+ }, unknown>>>;
69
+ taskKey: z.ZodString;
70
+ }, z.core.$strip>>>;
41
71
  }, z.core.$strip>>>;
42
72
  }, z.core.$strip>;
43
73
  type AgentHelpDefinition = z.infer<typeof AgentHelpSchemaDefinition>;
@@ -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
  */
@@ -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: "entityRecord" | "newsArticle" | "researchSnippet";
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: "entityRecord" | "newsArticle" | "researchSnippet";
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: "entityRecord" | "newsArticle" | "researchSnippet";
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: "entityRecord" | "newsArticle" | "researchSnippet";
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: "entityRecord" | "newsArticle" | "researchSnippet";
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: "entityRecord" | "newsArticle" | "researchSnippet";
2698
+ source: string;
2699
2699
  sourceId: string;
2700
2700
  text: string;
2701
2701
  url?: string | null | undefined;
@@ -4188,6 +4188,33 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
4188
4188
  totalElements: number;
4189
4189
  totalPages: number;
4190
4190
  }, unknown>>;
4191
+ newsEntityMention: z.ZodArray<z.ZodType<{
4192
+ entity: {
4193
+ createdAt: string;
4194
+ entityId: string;
4195
+ href?: string | null | undefined;
4196
+ internal: boolean;
4197
+ matchStatus?: "approved" | "auto-match" | "needs-review" | "rejected" | null | undefined;
4198
+ mention?: string | null | undefined;
4199
+ slug?: string | null | undefined;
4200
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
4201
+ updatedAt: string;
4202
+ }[];
4203
+ newsId: number;
4204
+ }, unknown, z.core.$ZodTypeInternals<{
4205
+ entity: {
4206
+ createdAt: string;
4207
+ entityId: string;
4208
+ href?: string | null | undefined;
4209
+ internal: boolean;
4210
+ matchStatus?: "approved" | "auto-match" | "needs-review" | "rejected" | null | undefined;
4211
+ mention?: string | null | undefined;
4212
+ slug?: string | null | undefined;
4213
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
4214
+ updatedAt: string;
4215
+ }[];
4216
+ newsId: number;
4217
+ }, unknown>>>;
4191
4218
  person: z.ZodType<{
4192
4219
  interpretation: {
4193
4220
  confidence: "HIGH" | "LOW" | "MEDIUM";
@@ -4446,6 +4473,11 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
4446
4473
  modeRequested: string;
4447
4474
  modeUsed: string;
4448
4475
  };
4476
+ rejection: {
4477
+ detail: string;
4478
+ field?: string | null | undefined;
4479
+ scope: "entity" | "news" | "person";
4480
+ }[];
4449
4481
  }, unknown, z.core.$ZodTypeInternals<{
4450
4482
  entity: {
4451
4483
  modeRequested: string;
@@ -4459,6 +4491,11 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
4459
4491
  modeRequested: string;
4460
4492
  modeUsed: string;
4461
4493
  };
4494
+ rejection: {
4495
+ detail: string;
4496
+ field?: string | null | undefined;
4497
+ scope: "entity" | "news" | "person";
4498
+ }[];
4462
4499
  }, unknown>>;
4463
4500
  }, z.core.$strip>;
4464
4501
  type FederatedSearchDefinition = z.infer<typeof FederatedSearchSchemaDefinition>;
@@ -2,6 +2,7 @@
2
2
  import { z } from "zod/v4";
3
3
  import { FederatedSearchProvenanceSchema } from "./search-provenance.js";
4
4
  import { NaturalSearchResultSchema } from "../natural/search-result.js";
5
+ import { NewsEntityMentionSchema } from "../news/entity-mention.js";
5
6
  import { PageResultNewsSchema } from "../pagination/schemas.js";
6
7
  import { PersonNaturalSearchResultSchema } from "../person/natural-search-result.js";
7
8
  const FederatedSearchSchemaDefinition = z.object({
@@ -9,6 +10,8 @@ const FederatedSearchSchemaDefinition = z.object({
9
10
  entity: NaturalSearchResultSchema,
10
11
  /** Canonical news page returned by the keyword list engine. */
11
12
  news: PageResultNewsSchema,
13
+ /** Public entities each news row on the page links to, in news page order; a row with no public entity link has no entry. */
14
+ newsEntityMention: z.array(NewsEntityMentionSchema),
12
15
  /** Canonical person natural-search result. */
13
16
  person: PersonNaturalSearchResultSchema,
14
17
  /** Requested and executed strategy for each search scope. */
@@ -0,0 +1,17 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * ENTITY binds a target entity to its canonical id through entity identification; TEXT is a literal value the request states.
4
+ *
5
+ * @openapiSchema HarnessTaskInputType
6
+ * @endpoint POST /v1/agents/help
7
+ * @endpoint POST /v1/help
8
+ * @usedBySchema HarnessTaskSchema
9
+ * @contractShape harness.task-input-type
10
+ * @contractRole canonical
11
+ */
12
+ export declare const HarnessTaskInputTypeSchema: z.ZodEnum<{
13
+ ENTITY: "ENTITY";
14
+ TEXT: "TEXT";
15
+ }>;
16
+ export type HarnessTaskInputType = z.infer<typeof HarnessTaskInputTypeSchema>;
17
+ //# sourceMappingURL=task-input-type.d.ts.map
@@ -0,0 +1,14 @@
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
+ * ENTITY binds a target entity to its canonical id through entity identification; TEXT is a literal value the request states.
5
+ *
6
+ * @openapiSchema HarnessTaskInputType
7
+ * @endpoint POST /v1/agents/help
8
+ * @endpoint POST /v1/help
9
+ * @usedBySchema HarnessTaskSchema
10
+ * @contractShape harness.task-input-type
11
+ * @contractRole canonical
12
+ */
13
+ export const HarnessTaskInputTypeSchema = z.enum(["ENTITY", "TEXT"]);
14
+ //# sourceMappingURL=task-input-type.js.map
@@ -0,0 +1,29 @@
1
+ import { z } from "zod/v4";
2
+ declare const HarnessTaskPlanStepSchemaDefinition: z.ZodObject<{
3
+ cliCommand: z.ZodString;
4
+ mcpTool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ step: z.ZodType<{
6
+ instruction: string;
7
+ operationId: string;
8
+ stepKey: string;
9
+ }, unknown, z.core.$ZodTypeInternals<{
10
+ instruction: string;
11
+ operationId: string;
12
+ stepKey: string;
13
+ }, unknown>>;
14
+ }, z.core.$strip>;
15
+ type HarnessTaskPlanStepDefinition = z.infer<typeof HarnessTaskPlanStepSchemaDefinition>;
16
+ /**
17
+ * One task step with the CLI command and MCP tool that run its operation.
18
+ *
19
+ * @openapiSchema HarnessTaskPlanStep
20
+ * @endpoint POST /v1/agents/help
21
+ * @endpoint POST /v1/help
22
+ * @usedBySchema HarnessTaskPlanSchema
23
+ * @contractShape harness.task-plan-step
24
+ * @contractRole canonical
25
+ */
26
+ export declare const HarnessTaskPlanStepSchema: z.ZodType<HarnessTaskPlanStepDefinition>;
27
+ export type HarnessTaskPlanStep = z.infer<typeof HarnessTaskPlanStepSchema>;
28
+ export {};
29
+ //# sourceMappingURL=task-plan-step.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
+ import { HarnessTaskStepSchema } from "./task-step.js";
4
+ const HarnessTaskPlanStepSchemaDefinition = z.object({
5
+ /** CLI command path that runs the step's operation; the caller supplies required flags. */
6
+ cliCommand: z.string(),
7
+ /** MCP tool that runs the step's operation; null for CLI-only operations. Supply arguments matching the tool's schema. */
8
+ mcpTool: z.string().nullish(),
9
+ /** The stored step. */
10
+ step: HarnessTaskStepSchema,
11
+ });
12
+ /**
13
+ * One task step with the CLI command and MCP tool that run its operation.
14
+ *
15
+ * @openapiSchema HarnessTaskPlanStep
16
+ * @endpoint POST /v1/agents/help
17
+ * @endpoint POST /v1/help
18
+ * @usedBySchema HarnessTaskPlanSchema
19
+ * @contractShape harness.task-plan-step
20
+ * @contractRole canonical
21
+ */
22
+ export const HarnessTaskPlanStepSchema = HarnessTaskPlanStepSchemaDefinition;
23
+ //# sourceMappingURL=task-plan-step.js.map
@@ -0,0 +1,43 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * One catalog task's typed inputs and ordered steps with derived CLI commands and MCP tools, read from the stated catalog revision.
4
+ *
5
+ * @openapiSchema HarnessTaskPlan
6
+ * @endpoint POST /v1/agents/help
7
+ * @endpoint POST /v1/help
8
+ * @usedBySchema HelpResolutionSchema
9
+ * @contractShape harness.task-plan
10
+ * @contractRole canonical
11
+ */
12
+ export declare const HarnessTaskPlanSchema: z.ZodObject<{
13
+ catalogRevision: z.ZodInt;
14
+ input: z.ZodArray<z.ZodType<{
15
+ description: string;
16
+ key: string;
17
+ type: "ENTITY" | "TEXT";
18
+ }, unknown, z.core.$ZodTypeInternals<{
19
+ description: string;
20
+ key: string;
21
+ type: "ENTITY" | "TEXT";
22
+ }, unknown>>>;
23
+ step: z.ZodArray<z.ZodType<{
24
+ cliCommand: string;
25
+ mcpTool?: string | null | undefined;
26
+ step: {
27
+ instruction: string;
28
+ operationId: string;
29
+ stepKey: string;
30
+ };
31
+ }, unknown, z.core.$ZodTypeInternals<{
32
+ cliCommand: string;
33
+ mcpTool?: string | null | undefined;
34
+ step: {
35
+ instruction: string;
36
+ operationId: string;
37
+ stepKey: string;
38
+ };
39
+ }, unknown>>>;
40
+ taskKey: z.ZodString;
41
+ }, z.core.$strip>;
42
+ export type HarnessTaskPlan = z.infer<typeof HarnessTaskPlanSchema>;
43
+ //# sourceMappingURL=task-plan.d.ts.map
@@ -0,0 +1,25 @@
1
+ // LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
2
+ import { z } from "zod/v4";
3
+ import { HarnessTaskPlanStepSchema } from "./task-plan-step.js";
4
+ import { HarnessTaskSchema } from "./task.js";
5
+ /**
6
+ * One catalog task's typed inputs and ordered steps with derived CLI commands and MCP tools, read from the stated catalog revision.
7
+ *
8
+ * @openapiSchema HarnessTaskPlan
9
+ * @endpoint POST /v1/agents/help
10
+ * @endpoint POST /v1/help
11
+ * @usedBySchema HelpResolutionSchema
12
+ * @contractShape harness.task-plan
13
+ * @contractRole canonical
14
+ */
15
+ export const HarnessTaskPlanSchema = z.object({
16
+ /** Stored catalog revision this plan was read from. */
17
+ catalogRevision: z.int(),
18
+ /** Typed inputs the task needs before it runs. */
19
+ input: z.array(HarnessTaskSchema),
20
+ /** Steps in run order; an empty list means this catalog task is unplanned. */
21
+ step: z.array(HarnessTaskPlanStepSchema),
22
+ /** Agent-task catalog key. */
23
+ taskKey: z.string(),
24
+ });
25
+ //# sourceMappingURL=task-plan.js.map
@@ -0,0 +1,21 @@
1
+ import { z } from "zod/v4";
2
+ declare const HarnessTaskStepSchemaDefinition: z.ZodObject<{
3
+ instruction: z.ZodString;
4
+ operationId: z.ZodString;
5
+ stepKey: z.ZodString;
6
+ }, z.core.$strip>;
7
+ type HarnessTaskStepDefinition = z.infer<typeof HarnessTaskStepSchemaDefinition>;
8
+ /**
9
+ * One ordered task step: its key, instruction, and the operation that runs it.
10
+ *
11
+ * @openapiSchema HarnessTaskStep
12
+ * @endpoint POST /v1/agents/help
13
+ * @endpoint POST /v1/help
14
+ * @usedBySchema HarnessTaskPlanStepSchema
15
+ * @contractShape harness.task-step
16
+ * @contractRole canonical
17
+ */
18
+ export declare const HarnessTaskStepSchema: z.ZodType<HarnessTaskStepDefinition>;
19
+ export type HarnessTaskStep = z.infer<typeof HarnessTaskStepSchema>;
20
+ export {};
21
+ //# sourceMappingURL=task-step.d.ts.map