@aventurevc/api-schemas 0.8.261 → 0.8.263

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 (58) hide show
  1. package/dist/enrichment/enrichment.d.ts +2 -0
  2. package/dist/enrichment/prompt.d.ts +8 -2
  3. package/dist/entity/analysis-citation.d.ts +1 -0
  4. package/dist/entity/analysis-citation.js +1 -0
  5. package/dist/entity/analysis-figure.d.ts +1 -0
  6. package/dist/entity/analysis-figure.js +1 -0
  7. package/dist/entity/analysis-paragraph.d.ts +1 -0
  8. package/dist/entity/analysis-paragraph.js +1 -0
  9. package/dist/entity/analysis-section-mutation.d.ts +162 -0
  10. package/dist/entity/analysis-section-mutation.js +34 -0
  11. package/dist/entity/analysis-section-origin.d.ts +1 -0
  12. package/dist/entity/analysis-section-origin.js +1 -0
  13. package/dist/entity/text.d.ts +1 -0
  14. package/dist/entity/text.js +2 -0
  15. package/dist/federated/search.d.ts +8 -0
  16. package/dist/harness/run-create.d.ts +8 -2
  17. package/dist/harness/run-detail.d.ts +2 -0
  18. package/dist/harness/run.d.ts +2 -0
  19. package/dist/harness/run.js +4 -0
  20. package/dist/link/search.d.ts +8 -0
  21. package/dist/natural/search-result.d.ts +8 -0
  22. package/dist/openapi-component-manifest.js +35 -0
  23. package/dist/pagination/schemas.d.ts +4 -0
  24. package/dist/research/finding.d.ts +7 -1
  25. package/dist/research/finding.js +11 -2
  26. package/dist/search/answer-paragraph.d.ts +7 -0
  27. package/dist/search/answer-paragraph.js +3 -0
  28. package/dist/search/answer-web-source.d.ts +27 -0
  29. package/dist/search/answer-web-source.js +25 -0
  30. package/dist/search/answer.d.ts +8 -0
  31. package/dist/shared/search.d.ts +8 -0
  32. package/dist/writer/analysis-section.d.ts +28 -0
  33. package/dist/writer/analysis-section.js +21 -0
  34. package/dist/writer/brief.d.ts +108 -0
  35. package/dist/writer/brief.js +29 -0
  36. package/dist/writer/change-signal.d.ts +22 -0
  37. package/dist/writer/change-signal.js +20 -0
  38. package/dist/writer/claim-surface.d.ts +2 -0
  39. package/dist/writer/claim-surface.js +2 -0
  40. package/dist/writer/gap-reason.d.ts +26 -0
  41. package/dist/writer/gap-reason.js +20 -0
  42. package/dist/writer/gap.d.ts +35 -0
  43. package/dist/writer/gap.js +23 -0
  44. package/dist/writer/judgment.d.ts +23 -0
  45. package/dist/writer/judgment.js +21 -0
  46. package/dist/writer/meta-analysis.d.ts +62 -0
  47. package/dist/writer/meta-analysis.js +34 -0
  48. package/dist/writer/paragraph-analysis.d.ts +17 -0
  49. package/dist/writer/paragraph-analysis.js +19 -0
  50. package/dist/writer/paragraph.d.ts +40 -0
  51. package/dist/writer/paragraph.js +24 -0
  52. package/dist/writer/positioning-element.d.ts +29 -0
  53. package/dist/writer/positioning-element.js +22 -0
  54. package/dist/writer/positioning.d.ts +37 -0
  55. package/dist/writer/positioning.js +23 -0
  56. package/dist/writer/scope.d.ts +23 -0
  57. package/dist/writer/scope.js +22 -0
  58. package/package.json +1 -1
@@ -61,6 +61,7 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
61
61
  INDIVIDUAL: "INDIVIDUAL";
62
62
  }>;
63
63
  model: z.ZodString;
64
+ modelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
64
65
  nextAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
65
66
  researchAllowanceType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
66
67
  COMPANY: "COMPANY";
@@ -89,6 +90,7 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
89
90
  stopped: "stopped";
90
91
  }>;
91
92
  subagentModel: z.ZodString;
93
+ subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
92
94
  taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
93
95
  type: z.ZodEnum<{
94
96
  ENRICHMENT: "ENRICHMENT";
@@ -1,15 +1,21 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const EnrichmentPromptSchemaDefinition: z.ZodObject<{
3
3
  finding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
4
+ end?: number | null | undefined;
4
5
  gateId?: string | null | undefined;
5
- quote: string;
6
+ quote?: string | undefined;
7
+ sourceDocumentId?: string | null | undefined;
6
8
  sourceUrl: string;
9
+ start?: number | null | undefined;
7
10
  statement: string;
8
11
  writerSurface?: string | null | undefined;
9
12
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
13
+ end?: number | null | undefined;
10
14
  gateId?: string | null | undefined;
11
- quote: string;
15
+ quote?: string | undefined;
16
+ sourceDocumentId?: string | null | undefined;
12
17
  sourceUrl: string;
18
+ start?: number | null | undefined;
13
19
  statement: string;
14
20
  writerSurface?: string | null | undefined;
15
21
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>>>;
@@ -14,6 +14,7 @@ export interface EntityAnalysisCitationSchemaInput extends z.input<typeof Entity
14
14
  * @endpoint GET /v1/research/runs/{runId}/draft
15
15
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
16
16
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
17
+ * @usedBySchema EntityAnalysisSectionMutationSchema
17
18
  * @usedBySchema EntityAnalysisSectionSchema
18
19
  * @contractShape entity.analysis-citation
19
20
  * @contractRole canonical
@@ -14,6 +14,7 @@ const EntityAnalysisCitationSchemaDefinition = z.object({
14
14
  * @endpoint GET /v1/research/runs/{runId}/draft
15
15
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
16
16
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
17
+ * @usedBySchema EntityAnalysisSectionMutationSchema
17
18
  * @usedBySchema EntityAnalysisSectionSchema
18
19
  * @contractShape entity.analysis-citation
19
20
  * @contractRole canonical
@@ -40,6 +40,7 @@ export interface EntityAnalysisFigureSchemaInput extends z.input<typeof EntityAn
40
40
  * @endpoint GET /v1/research/runs/{runId}/draft
41
41
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
42
42
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
43
+ * @usedBySchema EntityAnalysisSectionMutationSchema
43
44
  * @usedBySchema EntityAnalysisSectionSchema
44
45
  * @contractShape entity.analysis-figure
45
46
  * @contractRole canonical
@@ -20,6 +20,7 @@ const EntityAnalysisFigureSchemaDefinition = z.object({
20
20
  * @endpoint GET /v1/research/runs/{runId}/draft
21
21
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
22
22
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
23
+ * @usedBySchema EntityAnalysisSectionMutationSchema
23
24
  * @usedBySchema EntityAnalysisSectionSchema
24
25
  * @contractShape entity.analysis-figure
25
26
  * @contractRole canonical
@@ -14,6 +14,7 @@ export interface EntityAnalysisParagraphSchemaInput extends z.input<typeof Entit
14
14
  * @endpoint GET /v1/research/runs/{runId}/draft
15
15
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
16
16
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
17
+ * @usedBySchema EntityAnalysisSectionMutationSchema
17
18
  * @usedBySchema EntityAnalysisSectionSchema
18
19
  * @contractShape entity.analysis-paragraph
19
20
  * @contractRole canonical
@@ -14,6 +14,7 @@ const EntityAnalysisParagraphSchemaDefinition = z.object({
14
14
  * @endpoint GET /v1/research/runs/{runId}/draft
15
15
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
16
16
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
17
+ * @usedBySchema EntityAnalysisSectionMutationSchema
17
18
  * @usedBySchema EntityAnalysisSectionSchema
18
19
  * @contractShape entity.analysis-paragraph
19
20
  * @contractRole canonical
@@ -0,0 +1,162 @@
1
+ import { z } from "zod/v4";
2
+ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
3
+ citation: z.ZodArray<z.ZodType<{
4
+ quote: string;
5
+ sourceDocumentId: string;
6
+ }, import("./analysis-citation.ts").EntityAnalysisCitationSchemaInput, z.core.$ZodTypeInternals<{
7
+ quote: string;
8
+ sourceDocumentId: string;
9
+ }, import("./analysis-citation.ts").EntityAnalysisCitationSchemaInput>>>;
10
+ figure: z.ZodOptional<z.ZodArray<z.ZodType<{
11
+ column?: string[] | undefined;
12
+ entry: {
13
+ cell: {
14
+ citation: number;
15
+ excerpt: string;
16
+ }[];
17
+ label: string;
18
+ }[];
19
+ title: string;
20
+ type: string;
21
+ }, import("./analysis-figure.ts").EntityAnalysisFigureSchemaInput, z.core.$ZodTypeInternals<{
22
+ column?: string[] | undefined;
23
+ entry: {
24
+ cell: {
25
+ citation: number;
26
+ excerpt: string;
27
+ }[];
28
+ label: string;
29
+ }[];
30
+ title: string;
31
+ type: string;
32
+ }, import("./analysis-figure.ts").EntityAnalysisFigureSchemaInput>>>>;
33
+ key: z.ZodString;
34
+ origin: z.ZodUnion<readonly [z.ZodEnum<{
35
+ AGENT: "AGENT";
36
+ USER: "USER";
37
+ }>, z.ZodString]> & {
38
+ enum: {
39
+ AGENT: "AGENT";
40
+ USER: "USER";
41
+ };
42
+ };
43
+ paragraph: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
44
+ label?: string | null | undefined;
45
+ text: string;
46
+ }, import("./analysis-paragraph.ts").EntityAnalysisParagraphSchemaInput, z.core.$ZodTypeInternals<{
47
+ label?: string | null | undefined;
48
+ text: string;
49
+ }, import("./analysis-paragraph.ts").EntityAnalysisParagraphSchemaInput>>>>>;
50
+ title: z.ZodString;
51
+ writerBrief: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ claim: z.ZodArray<z.ZodType<{
53
+ end?: number | null | undefined;
54
+ gateId?: string | null | undefined;
55
+ quote?: string | undefined;
56
+ sourceDocumentId?: string | null | undefined;
57
+ sourceUrl: string;
58
+ start?: number | null | undefined;
59
+ statement: string;
60
+ writerSurface?: string | null | undefined;
61
+ }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
62
+ end?: number | null | undefined;
63
+ gateId?: string | null | undefined;
64
+ quote?: string | undefined;
65
+ sourceDocumentId?: string | null | undefined;
66
+ sourceUrl: string;
67
+ start?: number | null | undefined;
68
+ statement: string;
69
+ writerSurface?: string | null | undefined;
70
+ }, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
71
+ metaAnalysis: z.ZodOptional<z.ZodObject<{
72
+ answer: z.ZodType<{
73
+ claim: number[];
74
+ statement: string;
75
+ }, import("../writer/judgment.ts").WriterJudgmentSchemaInput, z.core.$ZodTypeInternals<{
76
+ claim: number[];
77
+ statement: string;
78
+ }, import("../writer/judgment.ts").WriterJudgmentSchemaInput>>;
79
+ asOfDate: z.ZodISODate;
80
+ changeSignal: z.ZodArray<z.ZodType<{
81
+ claim: number[];
82
+ statement: string;
83
+ }, import("../writer/change-signal.ts").WriterChangeSignalSchemaInput, z.core.$ZodTypeInternals<{
84
+ claim: number[];
85
+ statement: string;
86
+ }, import("../writer/change-signal.ts").WriterChangeSignalSchemaInput>>>;
87
+ gap: z.ZodArray<z.ZodType<{
88
+ claim: number[];
89
+ reason: string;
90
+ statement: string;
91
+ }, import("../writer/gap.ts").WriterGapSchemaInput, z.core.$ZodTypeInternals<{
92
+ claim: number[];
93
+ reason: string;
94
+ statement: string;
95
+ }, import("../writer/gap.ts").WriterGapSchemaInput>>>;
96
+ question: z.ZodString;
97
+ scope: z.ZodType<{
98
+ boundary: string;
99
+ geography?: string | null | undefined;
100
+ period?: string | null | undefined;
101
+ }, import("../writer/scope.ts").WriterScopeSchemaInput, z.core.$ZodTypeInternals<{
102
+ boundary: string;
103
+ geography?: string | null | undefined;
104
+ period?: string | null | undefined;
105
+ }, import("../writer/scope.ts").WriterScopeSchemaInput>>;
106
+ section: z.ZodArray<z.ZodType<{
107
+ judgment: {
108
+ claim: number[];
109
+ statement: string;
110
+ };
111
+ label: string;
112
+ }, import("../writer/analysis-section.ts").WriterAnalysisSectionSchemaInput, z.core.$ZodTypeInternals<{
113
+ judgment: {
114
+ claim: number[];
115
+ statement: string;
116
+ };
117
+ label: string;
118
+ }, import("../writer/analysis-section.ts").WriterAnalysisSectionSchemaInput>>>;
119
+ }, z.core.$strip>>;
120
+ outputClaim: z.ZodOptional<z.ZodArray<z.ZodInt>>;
121
+ paragraph: z.ZodArray<z.ZodType<{
122
+ analysis?: {
123
+ answer: boolean;
124
+ section: string[];
125
+ } | undefined;
126
+ claim: number[];
127
+ positioning?: string[] | undefined;
128
+ }, import("../writer/paragraph.ts").WriterParagraphSchemaInput, z.core.$ZodTypeInternals<{
129
+ analysis?: {
130
+ answer: boolean;
131
+ section: string[];
132
+ } | undefined;
133
+ claim: number[];
134
+ positioning?: string[] | undefined;
135
+ }, import("../writer/paragraph.ts").WriterParagraphSchemaInput>>>;
136
+ positioning: z.ZodArray<z.ZodType<{
137
+ claim: number[];
138
+ element: string;
139
+ statement: string;
140
+ }, import("../writer/positioning.ts").WriterPositioningSchemaInput, z.core.$ZodTypeInternals<{
141
+ claim: number[];
142
+ element: string;
143
+ statement: string;
144
+ }, import("../writer/positioning.ts").WriterPositioningSchemaInput>>>;
145
+ }, z.core.$strip>>>;
146
+ }, z.core.$strip>;
147
+ type EntityAnalysisSectionMutationDefinition = z.infer<typeof EntityAnalysisSectionMutationSchemaDefinition>;
148
+ export interface EntityAnalysisSectionMutationSchemaInput extends z.input<typeof EntityAnalysisSectionMutationSchemaDefinition> {
149
+ }
150
+ /**
151
+ * Replace a private analysis section with paragraphs or a finished writer brief.
152
+ *
153
+ * @openapiSchema EntityAnalysisSectionMutation
154
+ * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
155
+ * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
156
+ * @contractShape entity.analysis-section-mutation
157
+ * @contractRole canonical
158
+ */
159
+ export declare const EntityAnalysisSectionMutationSchema: z.ZodType<EntityAnalysisSectionMutationDefinition, EntityAnalysisSectionMutationSchemaInput>;
160
+ export type EntityAnalysisSectionMutation = z.infer<typeof EntityAnalysisSectionMutationSchema>;
161
+ export {};
162
+ //# sourceMappingURL=analysis-section-mutation.d.ts.map
@@ -0,0 +1,34 @@
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 { EntityAnalysisCitationSchema } from "./analysis-citation.js";
4
+ import { EntityAnalysisFigureSchema } from "./analysis-figure.js";
5
+ import { EntityAnalysisParagraphSchema } from "./analysis-paragraph.js";
6
+ import { EntityAnalysisSectionOriginSchema } from "./analysis-section-origin.js";
7
+ import { WriterBriefSchema } from "../writer/brief.js";
8
+ const EntityAnalysisSectionMutationSchemaDefinition = z.object({
9
+ /** Stored source documents and verbatim evidence quotes. */
10
+ citation: z.array(EntityAnalysisCitationSchema),
11
+ /** At most two figures grounded in the section's quotes; omit for no figures. */
12
+ figure: z.array(EntityAnalysisFigureSchema).optional(),
13
+ /** Exact research snippet typeValue, matching the section path key. */
14
+ key: z.string(),
15
+ /** Author hint; the server assigns origin from the credential. */
16
+ origin: EntityAnalysisSectionOriginSchema,
17
+ /** Catalog-ordered paragraphs; omit when supplying writerBrief. */
18
+ paragraph: z.array(EntityAnalysisParagraphSchema).nullish(),
19
+ /** Heading displayed above this section. */
20
+ title: z.string(),
21
+ /** Finished brief for the shared prose writer, supplied instead of paragraph. */
22
+ writerBrief: WriterBriefSchema.nullish(),
23
+ });
24
+ /**
25
+ * Replace a private analysis section with paragraphs or a finished writer brief.
26
+ *
27
+ * @openapiSchema EntityAnalysisSectionMutation
28
+ * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
29
+ * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
30
+ * @contractShape entity.analysis-section-mutation
31
+ * @contractRole canonical
32
+ */
33
+ export const EntityAnalysisSectionMutationSchema = EntityAnalysisSectionMutationSchemaDefinition;
34
+ //# sourceMappingURL=analysis-section-mutation.js.map
@@ -7,6 +7,7 @@ import { z } from "zod/v4";
7
7
  * @endpoint GET /v1/research/runs/{runId}/draft
8
8
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
9
9
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
10
+ * @usedBySchema EntityAnalysisSectionMutationSchema
10
11
  * @usedBySchema EntityAnalysisSectionSchema
11
12
  * @contractShape entity.analysis-section-origin
12
13
  * @contractRole canonical
@@ -9,6 +9,7 @@ const EntityAnalysisSectionOriginSchemaKnownMembers = z.enum(["AGENT", "USER"]);
9
9
  * @endpoint GET /v1/research/runs/{runId}/draft
10
10
  * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
11
11
  * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
12
+ * @usedBySchema EntityAnalysisSectionMutationSchema
12
13
  * @usedBySchema EntityAnalysisSectionSchema
13
14
  * @contractShape entity.analysis-section-origin
14
15
  * @contractRole canonical
@@ -7,6 +7,7 @@ declare const EntityTextSchemaDefinition: z.ZodObject<{
7
7
  wordCount: z.ZodInt;
8
8
  }, z.core.$strip>>>;
9
9
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
10
+ expandedTextId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
10
11
  id: z.ZodInt;
11
12
  isCurrent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
12
13
  isPrimary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -6,6 +6,8 @@ const EntityTextSchemaDefinition = z.object({
6
6
  /** Derived character/word counts and governed-contract compliance for this text row; null when not evaluated. */
7
7
  compliance: ContentComplianceSchema.nullish(),
8
8
  createdAt: z.iso.datetime({ offset: true }).nullish(),
9
+ /** Id of the expanded row a summary create wrote in the same transaction from expandedWriterBrief; read it at GET /v1/entities/{entityId}/texts/{textId}. Null on every other response. */
10
+ expandedTextId: z.int().nullish(),
9
11
  /** Type-safe identifier for text records */
10
12
  id: z.int(),
11
13
  /** Whether this is the owner's current text of its textType; setting it clears the flag on the owner's other texts of that type. */
@@ -18,6 +18,10 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
18
18
  }[];
19
19
  text: string;
20
20
  topic?: string | null | undefined;
21
+ webSource?: {
22
+ title: string;
23
+ url: string;
24
+ }[] | undefined;
21
25
  }[];
22
26
  relatedQuery: string[];
23
27
  shareable: boolean;
@@ -2520,6 +2524,10 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
2520
2524
  }[];
2521
2525
  text: string;
2522
2526
  topic?: string | null | undefined;
2527
+ webSource?: {
2528
+ title: string;
2529
+ url: string;
2530
+ }[] | undefined;
2523
2531
  }[];
2524
2532
  relatedQuery: string[];
2525
2533
  shareable: boolean;
@@ -1,15 +1,21 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
3
3
  finding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
4
+ end?: number | null | undefined;
4
5
  gateId?: string | null | undefined;
5
- quote: string;
6
+ quote?: string | undefined;
7
+ sourceDocumentId?: string | null | undefined;
6
8
  sourceUrl: string;
9
+ start?: number | null | undefined;
7
10
  statement: string;
8
11
  writerSurface?: string | null | undefined;
9
12
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
13
+ end?: number | null | undefined;
10
14
  gateId?: string | null | undefined;
11
- quote: string;
15
+ quote?: string | undefined;
16
+ sourceDocumentId?: string | null | undefined;
12
17
  sourceUrl: string;
18
+ start?: number | null | undefined;
13
19
  statement: string;
14
20
  writerSurface?: string | null | undefined;
15
21
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>>>;
@@ -210,6 +210,7 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
210
210
  INDIVIDUAL: "INDIVIDUAL";
211
211
  }>;
212
212
  model: z.ZodString;
213
+ modelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
213
214
  nextAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
214
215
  researchAllowanceType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
215
216
  COMPANY: "COMPANY";
@@ -238,6 +239,7 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
238
239
  stopped: "stopped";
239
240
  }>;
240
241
  subagentModel: z.ZodString;
242
+ subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
241
243
  taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
242
244
  type: z.ZodEnum<{
243
245
  ENRICHMENT: "ENRICHMENT";
@@ -62,6 +62,7 @@ export declare const HarnessRunSchema: z.ZodObject<{
62
62
  INDIVIDUAL: "INDIVIDUAL";
63
63
  }>;
64
64
  model: z.ZodString;
65
+ modelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
65
66
  nextAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
66
67
  researchAllowanceType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
67
68
  COMPANY: "COMPANY";
@@ -90,6 +91,7 @@ export declare const HarnessRunSchema: z.ZodObject<{
90
91
  stopped: "stopped";
91
92
  }>;
92
93
  subagentModel: z.ZodString;
94
+ subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
93
95
  taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
94
96
  type: z.ZodEnum<{
95
97
  ENRICHMENT: "ENRICHMENT";
@@ -69,6 +69,8 @@ export const HarnessRunSchema = z.object({
69
69
  mode: EnrichmentModeSchema,
70
70
  /** Model the run uses */
71
71
  model: z.string(),
72
+ /** True when the requester left `model` to the auto router, which picks it again each time the run leaves the queue; null on engine lease responses */
73
+ modelRouted: z.boolean().nullish(),
72
74
  /** Earliest re-claim time when waiting on retry backoff */
73
75
  nextAttemptAt: z.iso.datetime({ offset: true }).nullish(),
74
76
  /** Research allowance this run reserved when it was filed: COMPANY or PERSON; null for a run filed without one */
@@ -81,6 +83,8 @@ export const HarnessRunSchema = z.object({
81
83
  status: HarnessRunStatusSchema,
82
84
  /** Read-only research, cohort, and completion sub-agent model id */
83
85
  subagentModel: z.string(),
86
+ /** True when the requester left `subagentModel` to the auto router, which picks it again each time the run leaves the queue; null on engine lease responses */
87
+ subagentModelRouted: z.boolean().nullish(),
84
88
  /** Research presets filed with the run */
85
89
  taskPresetKey: z.array(z.string()).nullish(),
86
90
  /** Run kind: ENRICHMENT for a research request a caller filed, TASK for a narrower run aVenture scheduled */
@@ -20,6 +20,10 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
20
20
  }[];
21
21
  text: string;
22
22
  topic?: string | null | undefined;
23
+ webSource?: {
24
+ title: string;
25
+ url: string;
26
+ }[] | undefined;
23
27
  }[];
24
28
  relatedQuery: string[];
25
29
  shareable: boolean;
@@ -5831,6 +5835,10 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
5831
5835
  }[];
5832
5836
  text: string;
5833
5837
  topic?: string | null | undefined;
5838
+ webSource?: {
5839
+ title: string;
5840
+ url: string;
5841
+ }[] | undefined;
5834
5842
  }[];
5835
5843
  relatedQuery: string[];
5836
5844
  shareable: boolean;
@@ -25,6 +25,10 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
25
25
  }[];
26
26
  text: string;
27
27
  topic?: string | null | undefined;
28
+ webSource?: {
29
+ title: string;
30
+ url: string;
31
+ }[] | undefined;
28
32
  }, import("../search/answer-paragraph.ts").SearchAnswerParagraphSchemaInput, z.core.$ZodTypeInternals<{
29
33
  citation: {
30
34
  entityId: string;
@@ -33,6 +37,10 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
33
37
  }[];
34
38
  text: string;
35
39
  topic?: string | null | undefined;
40
+ webSource?: {
41
+ title: string;
42
+ url: string;
43
+ }[] | undefined;
36
44
  }, import("../search/answer-paragraph.ts").SearchAnswerParagraphSchemaInput>>>;
37
45
  relatedQuery: z.ZodArray<z.ZodString>;
38
46
  shareable: z.ZodBoolean;
@@ -346,6 +346,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
346
346
  modulePath: "entity/analysis-section",
347
347
  schemaName: "EntityAnalysisSectionSchema",
348
348
  },
349
+ EntityAnalysisSectionMutation: {
350
+ modulePath: "entity/analysis-section-mutation",
351
+ schemaName: "EntityAnalysisSectionMutationSchema",
352
+ },
349
353
  EntityAnalysisSectionOrigin: {
350
354
  modulePath: "entity/analysis-section-origin",
351
355
  schemaName: "EntityAnalysisSectionOriginSchema",
@@ -1046,6 +1050,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
1046
1050
  modulePath: "search/answer-paragraph",
1047
1051
  schemaName: "SearchAnswerParagraphSchema",
1048
1052
  },
1053
+ SearchAnswerWebSource: {
1054
+ modulePath: "search/answer-web-source",
1055
+ schemaName: "SearchAnswerWebSourceSchema",
1056
+ },
1049
1057
  SearchCacheMode: { modulePath: "search/cache-mode", schemaName: "SearchCacheModeSchema" },
1050
1058
  SearchDiscoveryFiling: {
1051
1059
  modulePath: "search/discovery-filing",
@@ -1198,9 +1206,36 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
1198
1206
  WebSearch: { modulePath: "web/search", schemaName: "WebSearchSchema" },
1199
1207
  WebSearchProvider: { modulePath: "web/search-provider", schemaName: "WebSearchProviderSchema" },
1200
1208
  WebSearchRecency: { modulePath: "web/search-recency", schemaName: "WebSearchRecencySchema" },
1209
+ WriterAnalysisSection: {
1210
+ modulePath: "writer/analysis-section",
1211
+ schemaName: "WriterAnalysisSectionSchema",
1212
+ },
1213
+ WriterBrief: { modulePath: "writer/brief", schemaName: "WriterBriefSchema" },
1214
+ WriterChangeSignal: {
1215
+ modulePath: "writer/change-signal",
1216
+ schemaName: "WriterChangeSignalSchema",
1217
+ },
1201
1218
  WriterClaimSurface: {
1202
1219
  modulePath: "writer/claim-surface",
1203
1220
  schemaName: "WriterClaimSurfaceSchema",
1204
1221
  },
1222
+ WriterGap: { modulePath: "writer/gap", schemaName: "WriterGapSchema" },
1223
+ WriterGapReason: { modulePath: "writer/gap-reason", schemaName: "WriterGapReasonSchema" },
1224
+ WriterJudgment: { modulePath: "writer/judgment", schemaName: "WriterJudgmentSchema" },
1225
+ WriterMetaAnalysis: {
1226
+ modulePath: "writer/meta-analysis",
1227
+ schemaName: "WriterMetaAnalysisSchema",
1228
+ },
1229
+ WriterParagraph: { modulePath: "writer/paragraph", schemaName: "WriterParagraphSchema" },
1230
+ WriterParagraphAnalysis: {
1231
+ modulePath: "writer/paragraph-analysis",
1232
+ schemaName: "WriterParagraphAnalysisSchema",
1233
+ },
1234
+ WriterPositioning: { modulePath: "writer/positioning", schemaName: "WriterPositioningSchema" },
1235
+ WriterPositioningElement: {
1236
+ modulePath: "writer/positioning-element",
1237
+ schemaName: "WriterPositioningElementSchema",
1238
+ },
1239
+ WriterScope: { modulePath: "writer/scope", schemaName: "WriterScopeSchema" },
1205
1240
  });
1206
1241
  //# sourceMappingURL=openapi-component-manifest.js.map
@@ -11233,6 +11233,7 @@ declare const PageEntityTextSchemaDefinition: z.ZodObject<{
11233
11233
  wordCount: number;
11234
11234
  } | null | undefined;
11235
11235
  createdAt?: string | null | undefined;
11236
+ expandedTextId?: number | null | undefined;
11236
11237
  id: number;
11237
11238
  isCurrent?: boolean | null | undefined;
11238
11239
  isPrimary?: boolean | null | undefined;
@@ -11253,6 +11254,7 @@ declare const PageEntityTextSchemaDefinition: z.ZodObject<{
11253
11254
  wordCount: number;
11254
11255
  } | null | undefined;
11255
11256
  createdAt?: string | null | undefined;
11257
+ expandedTextId?: number | null | undefined;
11256
11258
  id: number;
11257
11259
  isCurrent?: boolean | null | undefined;
11258
11260
  isPrimary?: boolean | null | undefined;
@@ -11578,6 +11580,7 @@ declare const PageHarnessRunSchemaDefinition: z.ZodObject<{
11578
11580
  INDIVIDUAL: "INDIVIDUAL";
11579
11581
  }>;
11580
11582
  model: z.ZodString;
11583
+ modelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
11581
11584
  nextAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
11582
11585
  researchAllowanceType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
11583
11586
  COMPANY: "COMPANY";
@@ -11606,6 +11609,7 @@ declare const PageHarnessRunSchemaDefinition: z.ZodObject<{
11606
11609
  stopped: "stopped";
11607
11610
  }>;
11608
11611
  subagentModel: z.ZodString;
11612
+ subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
11609
11613
  taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11610
11614
  type: z.ZodEnum<{
11611
11615
  ENRICHMENT: "ENRICHMENT";
@@ -1,8 +1,11 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const ResearchFindingSchemaDefinition: z.ZodObject<{
3
+ end: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3
4
  gateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
- quote: z.ZodString;
5
+ quote: z.ZodOptional<z.ZodString>;
6
+ sourceDocumentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
5
7
  sourceUrl: z.ZodString;
8
+ start: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6
9
  statement: z.ZodString;
7
10
  writerSurface: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
8
11
  BOTH: "BOTH";
@@ -26,8 +29,11 @@ export interface ResearchFindingSchemaInput extends z.input<typeof ResearchFindi
26
29
  * @endpoint POST /v1/entities/{entityId}/enrichments
27
30
  * @endpoint POST /v1/research-runs
28
31
  * @endpoint POST /v1/research/runs
32
+ * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
33
+ * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
29
34
  * @usedBySchema EnrichmentPromptSchema
30
35
  * @usedBySchema HarnessRunCreateSchema
36
+ * @usedBySchema WriterBriefSchema
31
37
  * @contractShape research.finding
32
38
  * @contractRole canonical
33
39
  */
@@ -2,12 +2,18 @@
2
2
  import { z } from "zod/v4";
3
3
  import { WriterClaimSurfaceSchema } from "../writer/claim-surface.js";
4
4
  const ResearchFindingSchemaDefinition = z.object({
5
+ /** Exclusive UTF-16 end offset, as an entity folio fact's end. */
6
+ end: z.int().nullish(),
5
7
  /** Profile field the fact fills, when known; omit it and the run picks the field the fact belongs to. */
6
8
  gateId: z.string().nullish(),
7
- /** The exact text on sourceUrl that states the fact, copied verbatim; a fragment short enough to appear on any page is refused. */
8
- quote: z.string(),
9
+ /** The exact text on sourceUrl that states the fact, copied verbatim; a fragment short enough to appear on any page is refused. Send either quote or the complete sourceDocumentId, start, end span, never both. */
10
+ quote: z.string().optional(),
11
+ /** Writer briefs only: the stored capture a span cites instead of a retyped quote, such as an entity folio fact's sourceDocumentId; the server copies the quote from [start, end) of that capture's evidence text. Requester findings require quote. */
12
+ sourceDocumentId: z.uuid().nullish(),
9
13
  /** Absolute http or https URL of the page that supports the fact; aVenture pages are refused. Direct writes require a resolved sourceDetail page and may supplement it with eligible pages associated with the subject or explicitly bound through sourceDocumentId on a pending full create; harness-run writes use the sourceDetail page or eligible pages read through aVenture by the authorizing run. Each quote must occur in its page's stored text. */
10
14
  sourceUrl: z.string(),
15
+ /** Inclusive UTF-16 start offset, as an entity folio fact's start. */
16
+ start: z.int().nullish(),
11
17
  /** The fact to write, in plain words. */
12
18
  statement: z.string(),
13
19
  /** Surface this sourced claim may enter: durable entity text, point-in-time research snippets, or both. New writer briefs must declare it. */
@@ -20,8 +26,11 @@ const ResearchFindingSchemaDefinition = z.object({
20
26
  * @endpoint POST /v1/entities/{entityId}/enrichments
21
27
  * @endpoint POST /v1/research-runs
22
28
  * @endpoint POST /v1/research/runs
29
+ * @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
30
+ * @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
23
31
  * @usedBySchema EnrichmentPromptSchema
24
32
  * @usedBySchema HarnessRunCreateSchema
33
+ * @usedBySchema WriterBriefSchema
25
34
  * @contractShape research.finding
26
35
  * @contractRole canonical
27
36
  */
@@ -11,6 +11,13 @@ declare const SearchAnswerParagraphSchemaDefinition: z.ZodObject<{
11
11
  }, import("./answer-citation.ts").SearchAnswerCitationSchemaInput>>>;
12
12
  text: z.ZodString;
13
13
  topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ webSource: z.ZodOptional<z.ZodArray<z.ZodType<{
15
+ title: string;
16
+ url: string;
17
+ }, import("./answer-web-source.ts").SearchAnswerWebSourceSchemaInput, z.core.$ZodTypeInternals<{
18
+ title: string;
19
+ url: string;
20
+ }, import("./answer-web-source.ts").SearchAnswerWebSourceSchemaInput>>>>;
14
21
  }, z.core.$strip>;
15
22
  type SearchAnswerParagraphDefinition = z.infer<typeof SearchAnswerParagraphSchemaDefinition>;
16
23
  export interface SearchAnswerParagraphSchemaInput extends z.input<typeof SearchAnswerParagraphSchemaDefinition> {