@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
@@ -0,0 +1,21 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * The expectation, body, type hints, rejections, override, and method for one judged prose write.
4
+ *
5
+ * @openapiSchema HarnessTaskWriteGuidance
6
+ * @endpoint POST /v1/agents/help
7
+ * @endpoint POST /v1/help
8
+ * @usedBySchema HarnessTaskPlanStepSchema
9
+ * @contractShape harness.task-write-guidance
10
+ * @contractRole canonical
11
+ */
12
+ export declare const HarnessTaskWriteGuidanceSchema: z.ZodObject<{
13
+ body: z.ZodString;
14
+ expectation: z.ZodString;
15
+ method: z.ZodArray<z.ZodString>;
16
+ override: z.ZodString;
17
+ reject: z.ZodArray<z.ZodString>;
18
+ typeCatalog: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export type HarnessTaskWriteGuidance = z.infer<typeof HarnessTaskWriteGuidanceSchema>;
21
+ //# sourceMappingURL=task-write-guidance.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
+ * The expectation, body, type hints, rejections, override, and method for one judged prose write.
5
+ *
6
+ * @openapiSchema HarnessTaskWriteGuidance
7
+ * @endpoint POST /v1/agents/help
8
+ * @endpoint POST /v1/help
9
+ * @usedBySchema HarnessTaskPlanStepSchema
10
+ * @contractShape harness.task-write-guidance
11
+ * @contractRole canonical
12
+ */
13
+ export const HarnessTaskWriteGuidanceSchema = z.object({
14
+ /** The request body keys, the key that carries the prose, and a minimal JSON example. */
15
+ body: z.string(),
16
+ /** The one sentence the prose aims for. */
17
+ expectation: z.string(),
18
+ /** Help sections that teach this prose, each with the command that retrieves it. */
19
+ method: z.array(z.string()),
20
+ /** The override field, the problems it may waive, and its terms. */
21
+ override: z.string(),
22
+ /** Each problem that rejects this prose: what fails it and the fix. */
23
+ reject: z.array(z.string()),
24
+ /** The read that serves this write's per-type hints; read it before writing. */
25
+ typeCatalog: z.string(),
26
+ });
27
+ //# sourceMappingURL=task-write-guidance.js.map
@@ -2,13 +2,15 @@ import { z } from "zod/v4";
2
2
  declare const HelpCitationSchemaDefinition: z.ZodObject<{
3
3
  excerpt: z.ZodString;
4
4
  sourceId: z.ZodString;
5
- sourceType: z.ZodEnum<{
5
+ sourceType: z.ZodUnion<readonly [z.ZodEnum<{
6
6
  COMPLETION_GATE: "COMPLETION_GATE";
7
7
  OPERATION: "OPERATION";
8
8
  PROMPT: "PROMPT";
9
9
  RESEARCH_DETAIL_TYPE: "RESEARCH_DETAIL_TYPE";
10
+ RESEARCH_SNIPPET_TYPE: "RESEARCH_SNIPPET_TYPE";
10
11
  SKILL: "SKILL";
11
- }>;
12
+ TEXT_TYPE: "TEXT_TYPE";
13
+ }>, z.ZodString]>;
12
14
  sourceVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
15
  }, z.core.$strip>;
14
16
  type HelpCitationDefinition = z.infer<typeof HelpCitationSchemaDefinition>;
@@ -13,12 +13,12 @@ export declare const HelpResolutionSchema: z.ZodObject<{
13
13
  candidate: z.ZodArray<z.ZodType<{
14
14
  excerpt: string;
15
15
  sourceId: string;
16
- sourceType: "COMPLETION_GATE" | "OPERATION" | "PROMPT" | "RESEARCH_DETAIL_TYPE" | "SKILL";
16
+ sourceType: string;
17
17
  sourceVersion?: string | null | undefined;
18
18
  }, unknown, z.core.$ZodTypeInternals<{
19
19
  excerpt: string;
20
20
  sourceId: string;
21
- sourceType: "COMPLETION_GATE" | "OPERATION" | "PROMPT" | "RESEARCH_DETAIL_TYPE" | "SKILL";
21
+ sourceType: string;
22
22
  sourceVersion?: string | null | undefined;
23
23
  }, unknown>>>;
24
24
  operationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -50,6 +50,14 @@ export declare const HelpResolutionSchema: z.ZodObject<{
50
50
  operationId: string;
51
51
  stepKey: string;
52
52
  };
53
+ writeGuidance?: {
54
+ body: string;
55
+ expectation: string;
56
+ method: string[];
57
+ override: string;
58
+ reject: string[];
59
+ typeCatalog: string;
60
+ } | null | undefined;
53
61
  }, unknown, z.core.$ZodTypeInternals<{
54
62
  cliCommand: string;
55
63
  mcpTool?: string | null | undefined;
@@ -58,6 +66,14 @@ export declare const HelpResolutionSchema: z.ZodObject<{
58
66
  operationId: string;
59
67
  stepKey: string;
60
68
  };
69
+ writeGuidance?: {
70
+ body: string;
71
+ expectation: string;
72
+ method: string[];
73
+ override: string;
74
+ reject: string[];
75
+ typeCatalog: string;
76
+ } | null | undefined;
61
77
  }, unknown>>>;
62
78
  taskKey: z.ZodString;
63
79
  }, z.core.$strip>>>;
@@ -9,12 +9,14 @@ import { z } from "zod/v4";
9
9
  * @contractShape help.source-type
10
10
  * @contractRole canonical
11
11
  */
12
- export declare const HelpSourceTypeSchema: z.ZodEnum<{
12
+ export declare const HelpSourceTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
13
13
  COMPLETION_GATE: "COMPLETION_GATE";
14
14
  OPERATION: "OPERATION";
15
15
  PROMPT: "PROMPT";
16
16
  RESEARCH_DETAIL_TYPE: "RESEARCH_DETAIL_TYPE";
17
+ RESEARCH_SNIPPET_TYPE: "RESEARCH_SNIPPET_TYPE";
17
18
  SKILL: "SKILL";
18
- }>;
19
+ TEXT_TYPE: "TEXT_TYPE";
20
+ }>, z.ZodString]>;
19
21
  export type HelpSourceType = z.infer<typeof HelpSourceTypeSchema>;
20
22
  //# sourceMappingURL=source-type.d.ts.map
@@ -10,11 +10,16 @@ import { z } from "zod/v4";
10
10
  * @contractShape help.source-type
11
11
  * @contractRole canonical
12
12
  */
13
- export const HelpSourceTypeSchema = z.enum([
14
- "OPERATION",
15
- "SKILL",
16
- "PROMPT",
17
- "COMPLETION_GATE",
18
- "RESEARCH_DETAIL_TYPE",
13
+ export const HelpSourceTypeSchema = z.union([
14
+ z.enum([
15
+ "OPERATION",
16
+ "SKILL",
17
+ "PROMPT",
18
+ "COMPLETION_GATE",
19
+ "RESEARCH_DETAIL_TYPE",
20
+ "RESEARCH_SNIPPET_TYPE",
21
+ "TEXT_TYPE",
22
+ ]),
23
+ z.string(),
19
24
  ]);
20
25
  //# sourceMappingURL=source-type.js.map
@@ -55,6 +55,7 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
55
55
  origin_detail_capacity: "origin_detail_capacity";
56
56
  origin_detail_shutdown: "origin_detail_shutdown";
57
57
  primary_website_missing: "primary_website_missing";
58
+ prose_rejected: "prose_rejected";
58
59
  r2_delete_failed: "r2_delete_failed";
59
60
  r2_fetch_failed: "r2_fetch_failed";
60
61
  r2_upload_failed: "r2_upload_failed";
@@ -243,6 +244,17 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
243
244
  parseError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
245
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
246
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json-value.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./json-value.ts").JsonValue, unknown>>>>;
247
+ proseViolation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
248
+ overridable: boolean;
249
+ passage: string;
250
+ problem: string;
251
+ reason: string;
252
+ }, unknown, z.core.$ZodTypeInternals<{
253
+ overridable: boolean;
254
+ passage: string;
255
+ problem: string;
256
+ reason: string;
257
+ }, unknown>>>>>;
246
258
  remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
247
259
  requiredRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
260
  resetAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -3,6 +3,7 @@ import { z } from "zod/v4";
3
3
  import { DomainConflictDetailsSchema } from "../domain/conflict-details.js";
4
4
  import { JsonValueSchema } from "./json-value.js";
5
5
  import { ProblemResolutionSchema } from "../problem/resolution.js";
6
+ import { ProseViolationSchema } from "../prose/violation.js";
6
7
  import { CurrentSlugOwnerSchema } from "../redirect/current-slug-owner.js";
7
8
  import { RedirectSlugPathSchema } from "../redirect/redirect-slug-path.js";
8
9
  const ProblemDetailSchemaDefinition = z.object({
@@ -43,6 +44,8 @@ const ProblemDetailSchemaDefinition = z.object({
43
44
  "suspectedShellStrip",
44
45
  /** Request prose looks shell-mangled around a money phrase: either shell expansion stripped a leading dollar sign ('50 million' where '$50 million' was meant) or an escape character survived into the text ('\$50 million', standalone '/$50 million'). Agent action: write '$' literally and re-send the JSON body from a file or stdin, or quote it so the shell does not expand '$'; use allowSuspectedShellStrip only when the value is intentional. */
45
46
  "suspected_shell_strip",
47
+ /** Entity text or a research snippet was rejected by its prose judge or text contract. Agent action: rewrite every passage in ProblemDetail.proseViolation at once and resend the whole text; ProblemDetail.hint names the override only when every violation is overridable. */
48
+ "prose_rejected",
46
49
  /** A URL was submitted to the wrong write surface. Agent action: move the URL to the specific surface named by ProblemDetail.hint/resolution, for example EntityUrl.urlType=ycombinator via entities urls create instead of News.newsUrlOriginal. */
47
50
  "url_surface_misclassification",
48
51
  /** JobRunr background worker is disabled in this environment. Agent action: stop (this is an admin/ops configuration condition, not a retriable user error). */
@@ -190,6 +193,8 @@ const ProblemDetailSchemaDefinition = z.object({
190
193
  parseError: z.string().nullish(),
191
194
  path: z.string().nullish(),
192
195
  properties: z.record(z.string(), JsonValueSchema).optional(),
196
+ /** Every rejected passage of a PROSE_REJECTED write, once per problem it shows; absent for every other problem. */
197
+ proseViolation: z.array(ProseViolationSchema).nullish(),
193
198
  /** Cap minus used for the limitType meter, never negative. */
194
199
  remaining: z.number().int().nullish(),
195
200
  requiredRole: z.string().nullish(),
@@ -11,6 +11,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
11
11
  }[];
12
12
  confidence: "HIGH" | "LOW" | "MEDIUM";
13
13
  description?: string | null | undefined;
14
+ heading?: string | null | undefined;
14
15
  paragraph: {
15
16
  citation: {
16
17
  entityId: string;
@@ -148,7 +149,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
148
149
  sort: {
149
150
  order: {
150
151
  descending: boolean;
151
- 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";
152
+ field: string;
152
153
  sortKey?: string | null | undefined;
153
154
  }[];
154
155
  relevance?: "keyword" | "semantic" | null | undefined;
@@ -620,6 +621,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
620
621
  totalRaisedUsd?: number | null | undefined;
621
622
  unconvertedRoundCount: number;
622
623
  } | null | undefined;
624
+ headquartersAddressId?: number | null | undefined;
623
625
  text: {
624
626
  expanded?: string | null | undefined;
625
627
  generatedDescription?: string | null | undefined;
@@ -1113,6 +1115,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
1113
1115
  totalRaisedUsd?: number | null | undefined;
1114
1116
  unconvertedRoundCount: number;
1115
1117
  } | null | undefined;
1118
+ headquartersAddressId?: number | null | undefined;
1116
1119
  text: {
1117
1120
  expanded?: string | null | undefined;
1118
1121
  generatedDescription?: string | null | undefined;
@@ -1597,6 +1600,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
1597
1600
  totalRaisedUsd?: number | null | undefined;
1598
1601
  unconvertedRoundCount: number;
1599
1602
  } | null | undefined;
1603
+ headquartersAddressId?: number | null | undefined;
1600
1604
  text: {
1601
1605
  expanded?: string | null | undefined;
1602
1606
  generatedDescription?: string | null | undefined;
@@ -2076,6 +2080,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
2076
2080
  totalRaisedUsd?: number | null | undefined;
2077
2081
  unconvertedRoundCount: number;
2078
2082
  } | null | undefined;
2083
+ headquartersAddressId?: number | null | undefined;
2079
2084
  text: {
2080
2085
  expanded?: string | null | undefined;
2081
2086
  generatedDescription?: string | null | undefined;
@@ -3455,6 +3460,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
3455
3460
  }[];
3456
3461
  confidence: "HIGH" | "LOW" | "MEDIUM";
3457
3462
  description?: string | null | undefined;
3463
+ heading?: string | null | undefined;
3458
3464
  paragraph: {
3459
3465
  citation: {
3460
3466
  entityId: string;
@@ -3592,7 +3598,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
3592
3598
  sort: {
3593
3599
  order: {
3594
3600
  descending: boolean;
3595
- 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";
3601
+ field: string;
3596
3602
  sortKey?: string | null | undefined;
3597
3603
  }[];
3598
3604
  relevance?: "keyword" | "semantic" | null | undefined;
@@ -4064,6 +4070,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
4064
4070
  totalRaisedUsd?: number | null | undefined;
4065
4071
  unconvertedRoundCount: number;
4066
4072
  } | null | undefined;
4073
+ headquartersAddressId?: number | null | undefined;
4067
4074
  text: {
4068
4075
  expanded?: string | null | undefined;
4069
4076
  generatedDescription?: string | null | undefined;
@@ -4557,6 +4564,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
4557
4564
  totalRaisedUsd?: number | null | undefined;
4558
4565
  unconvertedRoundCount: number;
4559
4566
  } | null | undefined;
4567
+ headquartersAddressId?: number | null | undefined;
4560
4568
  text: {
4561
4569
  expanded?: string | null | undefined;
4562
4570
  generatedDescription?: string | null | undefined;
@@ -5041,6 +5049,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
5041
5049
  totalRaisedUsd?: number | null | undefined;
5042
5050
  unconvertedRoundCount: number;
5043
5051
  } | null | undefined;
5052
+ headquartersAddressId?: number | null | undefined;
5044
5053
  text: {
5045
5054
  expanded?: string | null | undefined;
5046
5055
  generatedDescription?: string | null | undefined;
@@ -5520,6 +5529,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
5520
5529
  totalRaisedUsd?: number | null | undefined;
5521
5530
  unconvertedRoundCount: number;
5522
5531
  } | null | undefined;
5532
+ headquartersAddressId?: number | null | undefined;
5523
5533
  text: {
5524
5534
  expanded?: string | null | undefined;
5525
5535
  generatedDescription?: string | null | undefined;
@@ -291,6 +291,7 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
291
291
  totalRaisedUsd?: number | null | undefined;
292
292
  unconvertedRoundCount: number;
293
293
  } | null | undefined;
294
+ headquartersAddressId?: number | null | undefined;
294
295
  text: {
295
296
  expanded?: string | null | undefined;
296
297
  generatedDescription?: string | null | undefined;
@@ -768,6 +769,7 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
768
769
  totalRaisedUsd?: number | null | undefined;
769
770
  unconvertedRoundCount: number;
770
771
  } | null | undefined;
772
+ headquartersAddressId?: number | null | undefined;
771
773
  text: {
772
774
  expanded?: string | null | undefined;
773
775
  generatedDescription?: string | null | undefined;
@@ -11,6 +11,7 @@ declare const LookupJobMutationSchemaDefinition: z.ZodObject<{
11
11
  searchQuery?: string | undefined;
12
12
  type: "COMPANY" | "PERSON" | "PRODUCT_SERVICE";
13
13
  }, unknown>>>>;
14
+ sourceDocumentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
14
15
  sourceNewsId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
15
16
  sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
17
  subject: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -40,7 +41,7 @@ declare const LookupJobMutationSchemaDefinition: z.ZodObject<{
40
41
  }, z.core.$strip>;
41
42
  type LookupJobMutationDefinition = z.infer<typeof LookupJobMutationSchemaDefinition>;
42
43
  /**
43
- * The article whose companies and people a lookup identifies. Send sourceUrl, sourceNewsId, or both; lookup-only bulk jobs and POST /v1/lookup-mentions also accept mention instead. A job filed by Prefer: respond-async on GET /v1/lookup or POST /v1/entities/lookup carries that request's subject instead.
44
+ * The article whose companies and people a lookup identifies. Send sourceUrl, sourceNewsId, or both; POST /v1/lookup-mentions also reads a recorded sourceDocumentId alone; lookup-only bulk jobs and POST /v1/lookup-mentions also accept mention instead. A job filed by Prefer: respond-async on GET /v1/lookup or POST /v1/entities/lookup carries that request's subject instead.
44
45
  *
45
46
  * @openapiSchema LookupJobMutation
46
47
  * @endpoint GET /v1/lookup-jobs/{jobId}
@@ -5,6 +5,8 @@ import { LookupMentionSchema } from "./mention.js";
5
5
  const LookupJobMutationSchemaDefinition = z.object({
6
6
  /** Companies and people the caller already read, identified without sending the page or screenshot. Send them alone, without an article or file. On lookup jobs, maxNames is required and no shell records or enrichment are scheduled. */
7
7
  mention: z.array(LookupMentionSchema).optional(),
8
+ /** Id of a recorded source document whose text is the article, such as an email recorded with POST /v1/research/source-documents; send it alone. Only POST /v1/lookup-mentions reads it, for the admin key or RBAC EDIT_CACHE. */
9
+ sourceDocumentId: z.uuid().nullish(),
8
10
  /** aVenture news id of the article; an id that names no stored article is an error. */
9
11
  sourceNewsId: z.int().nullish(),
10
12
  /** URL of the article; read from aVenture news when stored there, otherwise fetched. */
@@ -13,7 +15,7 @@ const LookupJobMutationSchemaDefinition = z.object({
13
15
  subject: IdentificationSubjectSchema.nullish(),
14
16
  });
15
17
  /**
16
- * The article whose companies and people a lookup identifies. Send sourceUrl, sourceNewsId, or both; lookup-only bulk jobs and POST /v1/lookup-mentions also accept mention instead. A job filed by Prefer: respond-async on GET /v1/lookup or POST /v1/entities/lookup carries that request's subject instead.
18
+ * The article whose companies and people a lookup identifies. Send sourceUrl, sourceNewsId, or both; POST /v1/lookup-mentions also reads a recorded sourceDocumentId alone; lookup-only bulk jobs and POST /v1/lookup-mentions also accept mention instead. A job filed by Prefer: respond-async on GET /v1/lookup or POST /v1/entities/lookup carries that request's subject instead.
17
19
  *
18
20
  * @openapiSchema LookupJobMutation
19
21
  * @endpoint GET /v1/lookup-jobs/{jobId}
@@ -491,6 +491,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
491
491
  totalRaisedUsd?: number | null | undefined;
492
492
  unconvertedRoundCount: number;
493
493
  } | null | undefined;
494
+ headquartersAddressId?: number | null | undefined;
494
495
  text: {
495
496
  expanded?: string | null | undefined;
496
497
  generatedDescription?: string | null | undefined;
@@ -1132,6 +1133,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
1132
1133
  totalRaisedUsd?: number | null | undefined;
1133
1134
  unconvertedRoundCount: number;
1134
1135
  } | null | undefined;
1136
+ headquartersAddressId?: number | null | undefined;
1135
1137
  text: {
1136
1138
  expanded?: string | null | undefined;
1137
1139
  generatedDescription?: string | null | undefined;
@@ -1491,6 +1493,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
1491
1493
  searchQuery?: string | undefined;
1492
1494
  type: "COMPANY" | "PERSON" | "PRODUCT_SERVICE";
1493
1495
  }[] | undefined;
1496
+ sourceDocumentId?: string | null | undefined;
1494
1497
  sourceNewsId?: number | null | undefined;
1495
1498
  sourceUrl?: string | null | undefined;
1496
1499
  subject?: {
@@ -1511,6 +1514,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
1511
1514
  searchQuery?: string | undefined;
1512
1515
  type: "COMPANY" | "PERSON" | "PRODUCT_SERVICE";
1513
1516
  }[] | undefined;
1517
+ sourceDocumentId?: string | null | undefined;
1514
1518
  sourceNewsId?: number | null | undefined;
1515
1519
  sourceUrl?: string | null | undefined;
1516
1520
  subject?: {
@@ -292,6 +292,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
292
292
  totalRaisedUsd?: number | null | undefined;
293
293
  unconvertedRoundCount: number;
294
294
  } | null | undefined;
295
+ headquartersAddressId?: number | null | undefined;
295
296
  text: {
296
297
  expanded?: string | null | undefined;
297
298
  generatedDescription?: string | null | undefined;
@@ -933,6 +934,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
933
934
  totalRaisedUsd?: number | null | undefined;
934
935
  unconvertedRoundCount: number;
935
936
  } | null | undefined;
937
+ headquartersAddressId?: number | null | undefined;
936
938
  text: {
937
939
  expanded?: string | null | undefined;
938
940
  generatedDescription?: string | null | undefined;
@@ -16,6 +16,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
16
16
  MEDIUM: "MEDIUM";
17
17
  }>;
18
18
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
20
  paragraph: z.ZodArray<z.ZodType<{
20
21
  citation: {
21
22
  entityId: string;
@@ -161,7 +162,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
161
162
  sort: {
162
163
  order: {
163
164
  descending: boolean;
164
- 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";
165
+ field: string;
165
166
  sortKey?: string | null | undefined;
166
167
  }[];
167
168
  relevance?: "keyword" | "semantic" | null | undefined;
@@ -291,7 +292,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
291
292
  sort: {
292
293
  order: {
293
294
  descending: boolean;
294
- 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";
295
+ field: string;
295
296
  sortKey?: string | null | undefined;
296
297
  }[];
297
298
  relevance?: "keyword" | "semantic" | null | undefined;
@@ -933,6 +934,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
933
934
  totalRaisedUsd?: number | null | undefined;
934
935
  unconvertedRoundCount: number;
935
936
  } | null | undefined;
937
+ headquartersAddressId?: number | null | undefined;
936
938
  text: {
937
939
  expanded?: string | null | undefined;
938
940
  generatedDescription?: string | null | undefined;
@@ -1424,6 +1426,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
1424
1426
  totalRaisedUsd?: number | null | undefined;
1425
1427
  unconvertedRoundCount: number;
1426
1428
  } | null | undefined;
1429
+ headquartersAddressId?: number | null | undefined;
1427
1430
  text: {
1428
1431
  expanded?: string | null | undefined;
1429
1432
  generatedDescription?: string | null | undefined;
@@ -1917,6 +1920,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
1917
1920
  totalRaisedUsd?: number | null | undefined;
1918
1921
  unconvertedRoundCount: number;
1919
1922
  } | null | undefined;
1923
+ headquartersAddressId?: number | null | undefined;
1920
1924
  text: {
1921
1925
  expanded?: string | null | undefined;
1922
1926
  generatedDescription?: string | null | undefined;
@@ -2400,6 +2404,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
2400
2404
  totalRaisedUsd?: number | null | undefined;
2401
2405
  unconvertedRoundCount: number;
2402
2406
  } | null | undefined;
2407
+ headquartersAddressId?: number | null | undefined;
2403
2408
  text: {
2404
2409
  expanded?: string | null | undefined;
2405
2410
  generatedDescription?: string | null | undefined;
@@ -2884,6 +2889,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
2884
2889
  totalRaisedUsd?: number | null | undefined;
2885
2890
  unconvertedRoundCount: number;
2886
2891
  } | null | undefined;
2892
+ headquartersAddressId?: number | null | undefined;
2887
2893
  text: {
2888
2894
  expanded?: string | null | undefined;
2889
2895
  generatedDescription?: string | null | undefined;
@@ -3361,6 +3367,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
3361
3367
  totalRaisedUsd?: number | null | undefined;
3362
3368
  unconvertedRoundCount: number;
3363
3369
  } | null | undefined;
3370
+ headquartersAddressId?: number | null | undefined;
3364
3371
  text: {
3365
3372
  expanded?: string | null | undefined;
3366
3373
  generatedDescription?: string | null | undefined;
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const NaturalSearchSchemaDefinition: z.ZodObject<{
3
+ answerModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3
4
  cacheMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
4
5
  bypass: "bypass";
5
6
  refresh: "refresh";
@@ -4,7 +4,9 @@ import { ReasoningEffortSchema } from "../reasoning/effort.js";
4
4
  import { SearchCacheModeSchema } from "../search/cache-mode.js";
5
5
  import { SearchModeSchema } from "../search/mode.js";
6
6
  const NaturalSearchSchemaDefinition = z.object({
7
- /** Search-stage cache policy. use reuses cached search work; bypass computes fresh without retaining outputs; refresh computes fresh and replaces normal entries. Record and immutable query-vector caches retain their own policy. */
7
+ /** Optional chat model for the synthesis answer; null uses the catalog's search answer model. The same allowlist as `model` applies. The answer writes the page heading, title, and description, so this compares answer models without changing the catalog. */
8
+ answerModel: z.string().nullish(),
9
+ /** Search-stage cache policy. use reuses cached search work; bypass computes fresh without retaining outputs; refresh computes fresh and replaces normal entries. Record and immutable query-vector caches retain their own policy. Callers without private-data access always run use. */
8
10
  cacheMode: SearchCacheModeSchema.default("use").optional(),
9
11
  /** 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). */
10
12
  mode: SearchModeSchema.default("auto").optional(),
@@ -185,6 +185,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
185
185
  modulePath: "cursor/slice-shared-search-list",
186
186
  schemaName: "CursorSliceSharedSearchListSchema",
187
187
  },
188
+ DatasourceDataSourceType: {
189
+ modulePath: "datasource/data-source-type",
190
+ schemaName: "DatasourceDataSourceTypeSchema",
191
+ },
188
192
  DatasourceProvenanceActorType: {
189
193
  modulePath: "datasource/provenance-actor-type",
190
194
  schemaName: "DatasourceProvenanceActorTypeSchema",
@@ -303,6 +307,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
303
307
  modulePath: "entity/filter-search-result",
304
308
  schemaName: "EntityFilterSearchResultSchema",
305
309
  },
310
+ EntityFilterSortable: {
311
+ modulePath: "entity/filter-sortable",
312
+ schemaName: "EntityFilterSortableSchema",
313
+ },
306
314
  EntityFilterUiMeta: {
307
315
  modulePath: "entity/filter-ui-meta",
308
316
  schemaName: "EntityFilterUiMetaSchema",
@@ -518,6 +526,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
518
526
  schemaName: "HarnessTaskPlanStepSchema",
519
527
  },
520
528
  HarnessTaskStep: { modulePath: "harness/task-step", schemaName: "HarnessTaskStepSchema" },
529
+ HarnessTaskWriteGuidance: {
530
+ modulePath: "harness/task-write-guidance",
531
+ schemaName: "HarnessTaskWriteGuidanceSchema",
532
+ },
521
533
  HelpCitation: { modulePath: "help/citation", schemaName: "HelpCitationSchema" },
522
534
  HelpResolution: { modulePath: "help/resolution", schemaName: "HelpResolutionSchema" },
523
535
  HelpResolutionOutcome: {
@@ -775,6 +787,8 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
775
787
  ProblemDetail: { modulePath: "http/problem-detail", schemaName: "ProblemDetailSchema" },
776
788
  ProblemResolution: { modulePath: "problem/resolution", schemaName: "ProblemResolutionSchema" },
777
789
  ProblemType: { modulePath: "problem/type", schemaName: "ProblemTypeSchema" },
790
+ ProseProblem: { modulePath: "prose/problem", schemaName: "ProseProblemSchema" },
791
+ ProseViolation: { modulePath: "prose/violation", schemaName: "ProseViolationSchema" },
778
792
  Publication: { modulePath: "publication/publication", schemaName: "PublicationSchema" },
779
793
  PublicationFacet: { modulePath: "publication/facet", schemaName: "PublicationFacetSchema" },
780
794
  PublicationRelation: {
@@ -902,6 +916,7 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
902
916
  modulePath: "strict/url-lookup-conflict",
903
917
  schemaName: "StrictUrlLookupConflictSchema",
904
918
  },
919
+ SuppressionReason: { modulePath: "suppression/reason", schemaName: "SuppressionReasonSchema" },
905
920
  SystemBuild: { modulePath: "system/system-build", schemaName: "SystemBuildSchema" },
906
921
  SystemBuildDetail: {
907
922
  modulePath: "system/system-build-detail",
@@ -870,6 +870,7 @@ declare const PageEntityDetailSchemaDefinition: z.ZodObject<{
870
870
  totalRaisedUsd?: number | null | undefined;
871
871
  unconvertedRoundCount: number;
872
872
  } | null | undefined;
873
+ headquartersAddressId?: number | null | undefined;
873
874
  text: {
874
875
  expanded?: string | null | undefined;
875
876
  generatedDescription?: string | null | undefined;
@@ -1151,6 +1152,7 @@ declare const PageEntityDetailSchemaDefinition: z.ZodObject<{
1151
1152
  totalRaisedUsd?: number | null | undefined;
1152
1153
  unconvertedRoundCount: number;
1153
1154
  } | null | undefined;
1155
+ headquartersAddressId?: number | null | undefined;
1154
1156
  text: {
1155
1157
  expanded?: string | null | undefined;
1156
1158
  generatedDescription?: string | null | undefined;
@@ -2958,6 +2960,7 @@ declare const PageEntityInvestorParticipationSchemaDefinition: z.ZodObject<{
2958
2960
  totalRaisedUsd?: number | null | undefined;
2959
2961
  unconvertedRoundCount: number;
2960
2962
  } | null | undefined;
2963
+ headquartersAddressId?: number | null | undefined;
2961
2964
  text: {
2962
2965
  expanded?: string | null | undefined;
2963
2966
  generatedDescription?: string | null | undefined;
@@ -3889,6 +3892,7 @@ declare const PageEntityInvestorParticipationSchemaDefinition: z.ZodObject<{
3889
3892
  totalRaisedUsd?: number | null | undefined;
3890
3893
  unconvertedRoundCount: number;
3891
3894
  } | null | undefined;
3895
+ headquartersAddressId?: number | null | undefined;
3892
3896
  text: {
3893
3897
  expanded?: string | null | undefined;
3894
3898
  generatedDescription?: string | null | undefined;
@@ -4857,6 +4861,7 @@ declare const PageEntityListSchemaDefinition: z.ZodObject<{
4857
4861
  totalRaisedUsd?: number | null | undefined;
4858
4862
  unconvertedRoundCount: number;
4859
4863
  } | null | undefined;
4864
+ headquartersAddressId?: number | null | undefined;
4860
4865
  text: {
4861
4866
  expanded?: string | null | undefined;
4862
4867
  generatedDescription?: string | null | undefined;
@@ -5334,6 +5339,7 @@ declare const PageEntityListSchemaDefinition: z.ZodObject<{
5334
5339
  totalRaisedUsd?: number | null | undefined;
5335
5340
  unconvertedRoundCount: number;
5336
5341
  } | null | undefined;
5342
+ headquartersAddressId?: number | null | undefined;
5337
5343
  text: {
5338
5344
  expanded?: string | null | undefined;
5339
5345
  generatedDescription?: string | null | undefined;
@@ -6392,6 +6398,7 @@ declare const PageEntitySimilarityResultSchemaDefinition: z.ZodObject<{
6392
6398
  totalRaisedUsd?: number | null | undefined;
6393
6399
  unconvertedRoundCount: number;
6394
6400
  } | null | undefined;
6401
+ headquartersAddressId?: number | null | undefined;
6395
6402
  text: {
6396
6403
  expanded?: string | null | undefined;
6397
6404
  generatedDescription?: string | null | undefined;
@@ -6883,6 +6890,7 @@ declare const PageEntitySimilarityResultSchemaDefinition: z.ZodObject<{
6883
6890
  totalRaisedUsd?: number | null | undefined;
6884
6891
  unconvertedRoundCount: number;
6885
6892
  } | null | undefined;
6893
+ headquartersAddressId?: number | null | undefined;
6886
6894
  text: {
6887
6895
  expanded?: string | null | undefined;
6888
6896
  generatedDescription?: string | null | undefined;
@@ -10169,6 +10177,7 @@ declare const PageResultEntityListSchemaDefinition: z.ZodObject<{
10169
10177
  totalRaisedUsd?: number | null | undefined;
10170
10178
  unconvertedRoundCount: number;
10171
10179
  } | null | undefined;
10180
+ headquartersAddressId?: number | null | undefined;
10172
10181
  text: {
10173
10182
  expanded?: string | null | undefined;
10174
10183
  generatedDescription?: string | null | undefined;
@@ -10646,6 +10655,7 @@ declare const PageResultEntityListSchemaDefinition: z.ZodObject<{
10646
10655
  totalRaisedUsd?: number | null | undefined;
10647
10656
  unconvertedRoundCount: number;
10648
10657
  } | null | undefined;
10658
+ headquartersAddressId?: number | null | undefined;
10649
10659
  text: {
10650
10660
  expanded?: string | null | undefined;
10651
10661
  generatedDescription?: string | null | undefined;