@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
@@ -0,0 +1,22 @@
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 HarnessTaskStepSchemaDefinition = z.object({
4
+ /** What this step does, written for the agent that runs it. */
5
+ instruction: z.string(),
6
+ /** OpenAPI operationId this step calls; it must be in the task's operation list. */
7
+ operationId: z.string(),
8
+ /** Step key, unique within its task. */
9
+ stepKey: z.string(),
10
+ });
11
+ /**
12
+ * One ordered task step: its key, instruction, and the operation that runs it.
13
+ *
14
+ * @openapiSchema HarnessTaskStep
15
+ * @endpoint POST /v1/agents/help
16
+ * @endpoint POST /v1/help
17
+ * @usedBySchema HarnessTaskPlanStepSchema
18
+ * @contractShape harness.task-step
19
+ * @contractRole canonical
20
+ */
21
+ export const HarnessTaskStepSchema = HarnessTaskStepSchemaDefinition;
22
+ //# sourceMappingURL=task-step.js.map
@@ -0,0 +1,24 @@
1
+ import { z } from "zod/v4";
2
+ declare const HarnessTaskSchemaDefinition: z.ZodObject<{
3
+ description: z.ZodString;
4
+ key: z.ZodString;
5
+ type: z.ZodEnum<{
6
+ ENTITY: "ENTITY";
7
+ TEXT: "TEXT";
8
+ }>;
9
+ }, z.core.$strip>;
10
+ type HarnessTaskDefinition = z.infer<typeof HarnessTaskSchemaDefinition>;
11
+ /**
12
+ * One typed task input that must be bound before a run starts.
13
+ *
14
+ * @openapiSchema HarnessTaskInput
15
+ * @endpoint POST /v1/agents/help
16
+ * @endpoint POST /v1/help
17
+ * @usedBySchema HarnessTaskPlanSchema
18
+ * @contractShape harness.task
19
+ * @contractRole canonical
20
+ */
21
+ export declare const HarnessTaskSchema: z.ZodType<HarnessTaskDefinition>;
22
+ export type HarnessTask = z.infer<typeof HarnessTaskSchema>;
23
+ export {};
24
+ //# sourceMappingURL=task.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 { HarnessTaskInputTypeSchema } from "./task-input-type.js";
4
+ const HarnessTaskSchemaDefinition = z.object({
5
+ /** What the value is, written for the caller that supplies it. */
6
+ description: z.string(),
7
+ /** Input key, unique within its task. */
8
+ key: z.string(),
9
+ /** How the value is bound. */
10
+ type: HarnessTaskInputTypeSchema,
11
+ });
12
+ /**
13
+ * One typed task input that must be bound before a run starts.
14
+ *
15
+ * @openapiSchema HarnessTaskInput
16
+ * @endpoint POST /v1/agents/help
17
+ * @endpoint POST /v1/help
18
+ * @usedBySchema HarnessTaskPlanSchema
19
+ * @contractShape harness.task
20
+ * @contractRole canonical
21
+ */
22
+ export const HarnessTaskSchema = HarnessTaskSchemaDefinition;
23
+ //# sourceMappingURL=task.js.map
@@ -30,6 +30,36 @@ export declare const HelpResolutionSchema: z.ZodObject<{
30
30
  }>;
31
31
  probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
32
  taskKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ taskPlan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
+ catalogRevision: z.ZodInt;
35
+ input: z.ZodArray<z.ZodType<{
36
+ description: string;
37
+ key: string;
38
+ type: "ENTITY" | "TEXT";
39
+ }, unknown, z.core.$ZodTypeInternals<{
40
+ description: string;
41
+ key: string;
42
+ type: "ENTITY" | "TEXT";
43
+ }, unknown>>>;
44
+ step: z.ZodArray<z.ZodType<{
45
+ cliCommand: string;
46
+ mcpTool?: string | null | undefined;
47
+ step: {
48
+ instruction: string;
49
+ operationId: string;
50
+ stepKey: string;
51
+ };
52
+ }, unknown, z.core.$ZodTypeInternals<{
53
+ cliCommand: string;
54
+ mcpTool?: string | null | undefined;
55
+ step: {
56
+ instruction: string;
57
+ operationId: string;
58
+ stepKey: string;
59
+ };
60
+ }, unknown>>>;
61
+ taskKey: z.ZodString;
62
+ }, z.core.$strip>>>;
33
63
  }, z.core.$strip>;
34
64
  export type HelpResolution = z.infer<typeof HelpResolutionSchema>;
35
65
  //# sourceMappingURL=resolution.d.ts.map
@@ -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 { HarnessTaskPlanSchema } from "../harness/task-plan.js";
3
4
  import { HelpCitationSchema } from "./citation.js";
4
5
  import { HelpResolutionOutcomeSchema } from "./resolution-outcome.js";
5
6
  /**
@@ -21,7 +22,9 @@ export const HelpResolutionSchema = z.object({
21
22
  outcome: HelpResolutionOutcomeSchema,
22
23
  /** Probability the decision model gave its chosen option (an operation, a task, several, or none); informational, the choice alone decides the outcome. */
23
24
  probability: z.number().nullish(),
24
- /** The chosen catalog task for TASK_PLAN, or the task leading a CLARIFY; getHarnessTaskPlan reads its plan. */
25
+ /** The chosen catalog task for TASK_PLAN, or the task leading a CLARIFY. */
25
26
  taskKey: z.string().nullish(),
27
+ /** The chosen task's plan for TASK_PLAN when the caller may read catalog task plans; absent otherwise. */
28
+ taskPlan: HarnessTaskPlanSchema.nullish(),
26
29
  });
27
30
  //# sourceMappingURL=resolution.js.map
@@ -18,6 +18,7 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
18
18
  INFERENCE_PROVIDER_RESPONSE_EMPTY: "INFERENCE_PROVIDER_RESPONSE_EMPTY";
19
19
  JOBRUNR_DISABLED: "JOBRUNR_DISABLED";
20
20
  JOBRUNR_STORAGE_UNAVAILABLE: "JOBRUNR_STORAGE_UNAVAILABLE";
21
+ account_exists: "account_exists";
21
22
  billing_additional_usage_cap_reached: "billing_additional_usage_cap_reached";
22
23
  billing_allowance_exhausted: "billing_allowance_exhausted";
23
24
  callback_challenge_failed: "callback_challenge_failed";
@@ -33,6 +33,8 @@ const ProblemDetailSchemaDefinition = z.object({
33
33
  "billing_allowance_exhausted",
34
34
  /** The caller's monthly allowance is spent and the next additional-usage unit would pass the monthly spend cap or the prepaid credit left. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt; raise the cap or buy credit through /v1/billing/additional-usage, or wait for resetAt. */
35
35
  "billing_additional_usage_cap_reached",
36
+ /** A signed-out purchase named an email that already belongs to an account. Agent action: sign that account in with its email code, then subscribe signed in; never retry the signed-out purchase for that email. */
37
+ "account_exists",
36
38
  /** Detail-origin cold-miss coalescing is saturated. Agent action: treat as backend capacity impairment, back off, and inspect backend pool/bulkhead metrics; this is not a caller throttle. */
37
39
  "origin_detail_capacity",
38
40
  /** Detail-origin cold-miss scheduler rejected work because this instance is shutting down for a redeploy. Agent action: retry shortly; the platform routes the retry to a healthy instance. This is deploy-window noise, not a capacity defect — do not treat it as backend saturation. */
@@ -6,14 +6,14 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
6
6
  answer?: {
7
7
  citation: {
8
8
  entityId: string;
9
- source: "entityRecord" | "newsArticle" | "researchSnippet";
9
+ source: string;
10
10
  sourceId: string;
11
11
  }[];
12
12
  confidence: "HIGH" | "LOW" | "MEDIUM";
13
13
  paragraph: {
14
14
  citation: {
15
15
  entityId: string;
16
- source: "entityRecord" | "newsArticle" | "researchSnippet";
16
+ source: string;
17
17
  sourceId: string;
18
18
  }[];
19
19
  text: string;
@@ -624,7 +624,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
624
624
  label: string;
625
625
  publishedAt?: string | null | undefined;
626
626
  score: number;
627
- source: "entityRecord" | "newsArticle" | "researchSnippet";
627
+ source: string;
628
628
  sourceId: string;
629
629
  text: string;
630
630
  url?: string | null | undefined;
@@ -2097,6 +2097,20 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
2097
2097
  totalElements: number;
2098
2098
  totalPages: number;
2099
2099
  };
2100
+ newsEntityMention: {
2101
+ entity: {
2102
+ createdAt: string;
2103
+ entityId: string;
2104
+ href?: string | null | undefined;
2105
+ internal: boolean;
2106
+ matchStatus?: "approved" | "auto-match" | "needs-review" | "rejected" | null | undefined;
2107
+ mention?: string | null | undefined;
2108
+ slug?: string | null | undefined;
2109
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
2110
+ updatedAt: string;
2111
+ }[];
2112
+ newsId: number;
2113
+ }[];
2100
2114
  person: {
2101
2115
  interpretation: {
2102
2116
  confidence: "HIGH" | "LOW" | "MEDIUM";
@@ -2233,20 +2247,25 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
2233
2247
  modeRequested: string;
2234
2248
  modeUsed: string;
2235
2249
  };
2250
+ rejection: {
2251
+ detail: string;
2252
+ field?: string | null | undefined;
2253
+ scope: "entity" | "news" | "person";
2254
+ }[];
2236
2255
  };
2237
2256
  }, unknown, z.core.$ZodTypeInternals<{
2238
2257
  entity: {
2239
2258
  answer?: {
2240
2259
  citation: {
2241
2260
  entityId: string;
2242
- source: "entityRecord" | "newsArticle" | "researchSnippet";
2261
+ source: string;
2243
2262
  sourceId: string;
2244
2263
  }[];
2245
2264
  confidence: "HIGH" | "LOW" | "MEDIUM";
2246
2265
  paragraph: {
2247
2266
  citation: {
2248
2267
  entityId: string;
2249
- source: "entityRecord" | "newsArticle" | "researchSnippet";
2268
+ source: string;
2250
2269
  sourceId: string;
2251
2270
  }[];
2252
2271
  text: string;
@@ -2857,7 +2876,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
2857
2876
  label: string;
2858
2877
  publishedAt?: string | null | undefined;
2859
2878
  score: number;
2860
- source: "entityRecord" | "newsArticle" | "researchSnippet";
2879
+ source: string;
2861
2880
  sourceId: string;
2862
2881
  text: string;
2863
2882
  url?: string | null | undefined;
@@ -4330,6 +4349,20 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
4330
4349
  totalElements: number;
4331
4350
  totalPages: number;
4332
4351
  };
4352
+ newsEntityMention: {
4353
+ entity: {
4354
+ createdAt: string;
4355
+ entityId: string;
4356
+ href?: string | null | undefined;
4357
+ internal: boolean;
4358
+ matchStatus?: "approved" | "auto-match" | "needs-review" | "rejected" | null | undefined;
4359
+ mention?: string | null | undefined;
4360
+ slug?: string | null | undefined;
4361
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
4362
+ updatedAt: string;
4363
+ }[];
4364
+ newsId: number;
4365
+ }[];
4333
4366
  person: {
4334
4367
  interpretation: {
4335
4368
  confidence: "HIGH" | "LOW" | "MEDIUM";
@@ -4466,6 +4499,11 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
4466
4499
  modeRequested: string;
4467
4500
  modeUsed: string;
4468
4501
  };
4502
+ rejection: {
4503
+ detail: string;
4504
+ field?: string | null | undefined;
4505
+ scope: "entity" | "news" | "person";
4506
+ }[];
4469
4507
  };
4470
4508
  }, unknown>>;
4471
4509
  url: z.ZodString;
@@ -3,11 +3,11 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
3
3
  answer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4
4
  citation: z.ZodArray<z.ZodType<{
5
5
  entityId: string;
6
- source: "entityRecord" | "newsArticle" | "researchSnippet";
6
+ source: string;
7
7
  sourceId: string;
8
8
  }, unknown, z.core.$ZodTypeInternals<{
9
9
  entityId: string;
10
- source: "entityRecord" | "newsArticle" | "researchSnippet";
10
+ source: string;
11
11
  sourceId: string;
12
12
  }, unknown>>>;
13
13
  confidence: z.ZodEnum<{
@@ -18,7 +18,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
18
18
  paragraph: z.ZodArray<z.ZodType<{
19
19
  citation: {
20
20
  entityId: string;
21
- source: "entityRecord" | "newsArticle" | "researchSnippet";
21
+ source: string;
22
22
  sourceId: string;
23
23
  }[];
24
24
  text: string;
@@ -26,7 +26,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
26
26
  }, unknown, z.core.$ZodTypeInternals<{
27
27
  citation: {
28
28
  entityId: string;
29
- source: "entityRecord" | "newsArticle" | "researchSnippet";
29
+ source: string;
30
30
  sourceId: string;
31
31
  }[];
32
32
  text: string;
@@ -1232,7 +1232,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
1232
1232
  label: string;
1233
1233
  publishedAt?: string | null | undefined;
1234
1234
  score: number;
1235
- source: "entityRecord" | "newsArticle" | "researchSnippet";
1235
+ source: string;
1236
1236
  sourceId: string;
1237
1237
  text: string;
1238
1238
  url?: string | null | undefined;
@@ -1241,7 +1241,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
1241
1241
  label: string;
1242
1242
  publishedAt?: string | null | undefined;
1243
1243
  score: number;
1244
- source: "entityRecord" | "newsArticle" | "researchSnippet";
1244
+ source: string;
1245
1245
  sourceId: string;
1246
1246
  text: string;
1247
1247
  url?: string | null | undefined;
@@ -11,7 +11,6 @@ type NaturalSearchDefinition = z.infer<typeof NaturalSearchSchemaDefinition>;
11
11
  * @openapiSchema NaturalSearch
12
12
  * @endpoint POST /v1/entities/{entityId}/content/search
13
13
  * @endpoint POST /v1/people/{personId}/content/search
14
- * @endpoint POST /v1/search
15
14
  * @endpoint POST /v1/search/natural/entities
16
15
  * @endpoint POST /v1/search/natural/people
17
16
  * @usedBySchema EntityNaturalSearchSchema
@@ -15,7 +15,6 @@ const NaturalSearchSchemaDefinition = z.object({
15
15
  * @openapiSchema NaturalSearch
16
16
  * @endpoint POST /v1/entities/{entityId}/content/search
17
17
  * @endpoint POST /v1/people/{personId}/content/search
18
- * @endpoint POST /v1/search
19
18
  * @endpoint POST /v1/search/natural/entities
20
19
  * @endpoint POST /v1/search/natural/people
21
20
  * @usedBySchema EntityNaturalSearchSchema
@@ -0,0 +1,41 @@
1
+ import { z } from "zod/v4";
2
+ declare const NewsEntityMentionSchemaDefinition: z.ZodObject<{
3
+ entity: z.ZodArray<z.ZodType<{
4
+ createdAt: string;
5
+ entityId: string;
6
+ href?: string | null | undefined;
7
+ internal: boolean;
8
+ matchStatus?: "approved" | "auto-match" | "needs-review" | "rejected" | null | undefined;
9
+ mention?: string | null | undefined;
10
+ slug?: string | null | undefined;
11
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
12
+ updatedAt: string;
13
+ }, unknown, z.core.$ZodTypeInternals<{
14
+ createdAt: string;
15
+ entityId: string;
16
+ href?: string | null | undefined;
17
+ internal: boolean;
18
+ matchStatus?: "approved" | "auto-match" | "needs-review" | "rejected" | null | undefined;
19
+ mention?: string | null | undefined;
20
+ slug?: string | null | undefined;
21
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
22
+ updatedAt: string;
23
+ }, unknown>>>;
24
+ newsId: z.ZodInt;
25
+ }, z.core.$strip>;
26
+ type NewsEntityMentionDefinition = z.infer<typeof NewsEntityMentionSchemaDefinition>;
27
+ /**
28
+ * Public entities one news article links to, in link order.
29
+ *
30
+ * @openapiSchema NewsEntityMention
31
+ * @endpoint GET /v1/search/link
32
+ * @endpoint GET /v1/search/link/jobs/{jobId}
33
+ * @endpoint POST /v1/search
34
+ * @usedBySchema FederatedSearchSchema
35
+ * @contractShape news.entity-mention
36
+ * @contractRole canonical
37
+ */
38
+ export declare const NewsEntityMentionSchema: z.ZodType<NewsEntityMentionDefinition>;
39
+ export type NewsEntityMention = z.infer<typeof NewsEntityMentionSchema>;
40
+ export {};
41
+ //# sourceMappingURL=entity-mention.d.ts.map
@@ -0,0 +1,22 @@
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 { NewsResolvedEntityLinkSchema } from "./resolved-entity-link.js";
4
+ const NewsEntityMentionSchemaDefinition = z.object({
5
+ /** Public entities the article links to. */
6
+ entity: z.array(NewsResolvedEntityLinkSchema),
7
+ /** News article id. */
8
+ newsId: z.int(),
9
+ });
10
+ /**
11
+ * Public entities one news article links to, in link order.
12
+ *
13
+ * @openapiSchema NewsEntityMention
14
+ * @endpoint GET /v1/search/link
15
+ * @endpoint GET /v1/search/link/jobs/{jobId}
16
+ * @endpoint POST /v1/search
17
+ * @usedBySchema FederatedSearchSchema
18
+ * @contractShape news.entity-mention
19
+ * @contractRole canonical
20
+ */
21
+ export const NewsEntityMentionSchema = NewsEntityMentionSchemaDefinition;
22
+ //# sourceMappingURL=entity-mention.js.map
@@ -4,7 +4,10 @@ import { z } from "zod/v4";
4
4
  *
5
5
  * @openapiSchema NewsMatchStatus
6
6
  * @endpoint GET /v1/news/lookup
7
+ * @endpoint GET /v1/search/link
7
8
  * @endpoint GET /v1/news/{newsId}
9
+ * @endpoint GET /v1/search/link/jobs/{jobId}
10
+ * @endpoint POST /v1/search
8
11
  * @usedBySchema NewsResolvedEntityLinkSchema
9
12
  * @usedBySchema NewsResolvedPersonLinkSchema
10
13
  * @contractShape news.match-status
@@ -5,7 +5,10 @@ import { z } from "zod/v4";
5
5
  *
6
6
  * @openapiSchema NewsMatchStatus
7
7
  * @endpoint GET /v1/news/lookup
8
+ * @endpoint GET /v1/search/link
8
9
  * @endpoint GET /v1/news/{newsId}
10
+ * @endpoint GET /v1/search/link/jobs/{jobId}
11
+ * @endpoint POST /v1/search
9
12
  * @usedBySchema NewsResolvedEntityLinkSchema
10
13
  * @usedBySchema NewsResolvedPersonLinkSchema
11
14
  * @contractShape news.match-status
@@ -31,8 +31,12 @@ type NewsResolvedEntityLinkDefinition = z.infer<typeof NewsResolvedEntityLinkSch
31
31
  *
32
32
  * @openapiSchema NewsResolvedEntityLink
33
33
  * @endpoint GET /v1/news/lookup
34
+ * @endpoint GET /v1/search/link
34
35
  * @endpoint GET /v1/news/{newsId}
36
+ * @endpoint GET /v1/search/link/jobs/{jobId}
37
+ * @endpoint POST /v1/search
35
38
  * @usedBySchema NewsDetailSchema
39
+ * @usedBySchema NewsEntityMentionSchema
36
40
  * @contractShape news.resolved-entity-link
37
41
  * @contractRole canonical
38
42
  */
@@ -24,8 +24,12 @@ const NewsResolvedEntityLinkSchemaDefinition = z.object({
24
24
  *
25
25
  * @openapiSchema NewsResolvedEntityLink
26
26
  * @endpoint GET /v1/news/lookup
27
+ * @endpoint GET /v1/search/link
27
28
  * @endpoint GET /v1/news/{newsId}
29
+ * @endpoint GET /v1/search/link/jobs/{jobId}
30
+ * @endpoint POST /v1/search
28
31
  * @usedBySchema NewsDetailSchema
32
+ * @usedBySchema NewsEntityMentionSchema
29
33
  * @contractShape news.resolved-entity-link
30
34
  * @contractRole canonical
31
35
  */
@@ -443,11 +443,19 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
443
443
  modulePath: "entity/valuation-time-series-point",
444
444
  schemaName: "EntityValuationTimeSeriesPointSchema",
445
445
  },
446
+ FederatedNaturalSearch: {
447
+ modulePath: "federated/natural-search",
448
+ schemaName: "FederatedNaturalSearchSchema",
449
+ },
446
450
  FederatedSearch: { modulePath: "federated/search", schemaName: "FederatedSearchSchema" },
447
451
  FederatedSearchProvenance: {
448
452
  modulePath: "federated/search-provenance",
449
453
  schemaName: "FederatedSearchProvenanceSchema",
450
454
  },
455
+ FederatedSearchRejection: {
456
+ modulePath: "federated/search-rejection",
457
+ schemaName: "FederatedSearchRejectionSchema",
458
+ },
451
459
  FundingStage: { modulePath: "funding/stage", schemaName: "FundingStageSchema" },
452
460
  FundraiseDataConfidence: {
453
461
  modulePath: "fundraise/data-confidence",
@@ -486,6 +494,17 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
486
494
  },
487
495
  HarnessRunStatus: { modulePath: "harness/run-status", schemaName: "HarnessRunStatusSchema" },
488
496
  HarnessRunType: { modulePath: "harness/run-type", schemaName: "HarnessRunTypeSchema" },
497
+ HarnessTaskInput: { modulePath: "harness/task", schemaName: "HarnessTaskSchema" },
498
+ HarnessTaskInputType: {
499
+ modulePath: "harness/task-input-type",
500
+ schemaName: "HarnessTaskInputTypeSchema",
501
+ },
502
+ HarnessTaskPlan: { modulePath: "harness/task-plan", schemaName: "HarnessTaskPlanSchema" },
503
+ HarnessTaskPlanStep: {
504
+ modulePath: "harness/task-plan-step",
505
+ schemaName: "HarnessTaskPlanStepSchema",
506
+ },
507
+ HarnessTaskStep: { modulePath: "harness/task-step", schemaName: "HarnessTaskStepSchema" },
489
508
  HelpCitation: { modulePath: "help/citation", schemaName: "HelpCitationSchema" },
490
509
  HelpResolution: { modulePath: "help/resolution", schemaName: "HelpResolutionSchema" },
491
510
  HelpResolutionOutcome: {
@@ -538,6 +557,7 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
538
557
  schemaName: "NewsCandidateScoreSchema",
539
558
  },
540
559
  NewsDetail: { modulePath: "news/detail", schemaName: "NewsDetailSchema" },
560
+ NewsEntityMention: { modulePath: "news/entity-mention", schemaName: "NewsEntityMentionSchema" },
541
561
  NewsFeedback: { modulePath: "news/feedback", schemaName: "NewsFeedbackSchema" },
542
562
  NewsFeedbackAcknowledgement: {
543
563
  modulePath: "news/feedback-acknowledgement",
@@ -1,11 +1,7 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const SearchAnswerCitationSchemaDefinition: z.ZodObject<{
3
3
  entityId: z.ZodUUID;
4
- source: z.ZodEnum<{
5
- entityRecord: "entityRecord";
6
- newsArticle: "newsArticle";
7
- researchSnippet: "researchSnippet";
8
- }>;
4
+ source: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
9
5
  sourceId: z.ZodString;
10
6
  }, z.core.$strip>;
11
7
  type SearchAnswerCitationDefinition = z.infer<typeof SearchAnswerCitationSchemaDefinition>;
@@ -2,11 +2,11 @@ import { z } from "zod/v4";
2
2
  declare const SearchAnswerParagraphSchemaDefinition: z.ZodObject<{
3
3
  citation: z.ZodArray<z.ZodType<{
4
4
  entityId: string;
5
- source: "entityRecord" | "newsArticle" | "researchSnippet";
5
+ source: string;
6
6
  sourceId: string;
7
7
  }, unknown, z.core.$ZodTypeInternals<{
8
8
  entityId: string;
9
- source: "entityRecord" | "newsArticle" | "researchSnippet";
9
+ source: string;
10
10
  sourceId: string;
11
11
  }, unknown>>>;
12
12
  text: z.ZodString;
@@ -14,11 +14,11 @@ import { z } from "zod/v4";
14
14
  export declare const SearchAnswerSchema: z.ZodObject<{
15
15
  citation: z.ZodArray<z.ZodType<{
16
16
  entityId: string;
17
- source: "entityRecord" | "newsArticle" | "researchSnippet";
17
+ source: string;
18
18
  sourceId: string;
19
19
  }, unknown, z.core.$ZodTypeInternals<{
20
20
  entityId: string;
21
- source: "entityRecord" | "newsArticle" | "researchSnippet";
21
+ source: string;
22
22
  sourceId: string;
23
23
  }, unknown>>>;
24
24
  confidence: z.ZodEnum<{
@@ -29,7 +29,7 @@ export declare const SearchAnswerSchema: z.ZodObject<{
29
29
  paragraph: z.ZodArray<z.ZodType<{
30
30
  citation: {
31
31
  entityId: string;
32
- source: "entityRecord" | "newsArticle" | "researchSnippet";
32
+ source: string;
33
33
  sourceId: string;
34
34
  }[];
35
35
  text: string;
@@ -37,7 +37,7 @@ export declare const SearchAnswerSchema: z.ZodObject<{
37
37
  }, unknown, z.core.$ZodTypeInternals<{
38
38
  citation: {
39
39
  entityId: string;
40
- source: "entityRecord" | "newsArticle" | "researchSnippet";
40
+ source: string;
41
41
  sourceId: string;
42
42
  }[];
43
43
  text: string;
@@ -20,7 +20,7 @@ export const SearchAnswerSchema = z.object({
20
20
  citation: z.array(SearchAnswerCitationSchema),
21
21
  /** How fully the cited evidence answers the question. */
22
22
  confidence: ConfidenceSchema,
23
- /** The answer's paragraphs in reading order, each citing the evidence it rests on; empty when the answer abstains. */
23
+ /** 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. */
24
24
  paragraph: z.array(SearchAnswerParagraphSchema),
25
25
  /** Up to five follow-up searches grounded in the cited evidence; empty when the answer abstains. */
26
26
  relatedQuery: z.array(z.string()),
@@ -1,4 +1,10 @@
1
1
  import { z } from "zod/v4";
2
+ declare const SearchEvidenceSourceSchemaDefinition: z.ZodUnion<readonly [z.ZodEnum<{
3
+ entityRecord: "entityRecord";
4
+ newsArticle: "newsArticle";
5
+ researchSnippet: "researchSnippet";
6
+ }>, z.ZodString]>;
7
+ type SearchEvidenceSourceDefinition = z.infer<typeof SearchEvidenceSourceSchemaDefinition>;
2
8
  /**
3
9
  * Owner of search evidence: `entityRecord` is the entity's structured record, `researchSnippet` an entity research snippet, `newsArticle` a news article linked to the entity.
4
10
  *
@@ -12,10 +18,7 @@ import { z } from "zod/v4";
12
18
  * @contractShape search.evidence-source
13
19
  * @contractRole canonical
14
20
  */
15
- export declare const SearchEvidenceSourceSchema: z.ZodEnum<{
16
- entityRecord: "entityRecord";
17
- newsArticle: "newsArticle";
18
- researchSnippet: "researchSnippet";
19
- }>;
21
+ export declare const SearchEvidenceSourceSchema: z.ZodType<SearchEvidenceSourceDefinition>;
20
22
  export type SearchEvidenceSource = z.infer<typeof SearchEvidenceSourceSchema>;
23
+ export {};
21
24
  //# sourceMappingURL=evidence-source.d.ts.map
@@ -1,5 +1,9 @@
1
1
  // LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
2
2
  import { z } from "zod/v4";
3
+ const SearchEvidenceSourceSchemaDefinition = z.union([
4
+ z.enum(["entityRecord", "researchSnippet", "newsArticle"]),
5
+ z.string(),
6
+ ]);
3
7
  /**
4
8
  * Owner of search evidence: `entityRecord` is the entity's structured record, `researchSnippet` an entity research snippet, `newsArticle` a news article linked to the entity.
5
9
  *
@@ -13,9 +17,5 @@ import { z } from "zod/v4";
13
17
  * @contractShape search.evidence-source
14
18
  * @contractRole canonical
15
19
  */
16
- export const SearchEvidenceSourceSchema = z.enum([
17
- "entityRecord",
18
- "researchSnippet",
19
- "newsArticle",
20
- ]);
20
+ export const SearchEvidenceSourceSchema = SearchEvidenceSourceSchemaDefinition;
21
21
  //# sourceMappingURL=evidence-source.js.map
@@ -1,8 +1,9 @@
1
1
  import { z } from "zod/v4";
2
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`. `judgment` ranks the answer to a competitor, market, or provider question ("who competes with X", "top X companies", "who provides X") by the judged probability that each entity answers it; `web` adds web search evidence, and the companies those results name, before judging and implies `judgment`. Other questions ignore `judgment` and `web`.
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`. A competitor, market, or provider question ("who competes with X", "top X companies", "who provides X") is always ranked by the judged probability that each entity answers it, so `judgment` adds nothing beyond that; `web` adds web search evidence, and the companies those results name, before judging. Other questions ignore `judgment` and `web`.
4
4
  *
5
5
  * @openapiSchema SearchLayer
6
+ * @endpoint POST /v1/search
6
7
  * @endpoint POST /v1/search/natural/entities
7
8
  * @contractShape search.layer
8
9
  * @contractRole canonical
@@ -1,9 +1,10 @@
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
- * 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`. `judgment` ranks the answer to a competitor, market, or provider question ("who competes with X", "top X companies", "who provides X") by the judged probability that each entity answers it; `web` adds web search evidence, and the companies those results name, before judging and implies `judgment`. Other questions ignore `judgment` and `web`.
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`. A competitor, market, or provider question ("who competes with X", "top X companies", "who provides X") is always ranked by the judged probability that each entity answers it, so `judgment` adds nothing beyond that; `web` adds web search evidence, and the companies those results name, before judging. Other questions ignore `judgment` and `web`.
5
5
  *
6
6
  * @openapiSchema SearchLayer
7
+ * @endpoint POST /v1/search
7
8
  * @endpoint POST /v1/search/natural/entities
8
9
  * @contractShape search.layer
9
10
  * @contractRole canonical