@aventurevc/api-schemas 0.8.425 → 0.8.427

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.
@@ -175,6 +175,23 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
175
175
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
176
176
  }, z.core.$strip>>>;
177
177
  publicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ report: z.ZodOptional<z.ZodNullable<z.ZodObject<{
179
+ paragraph: z.ZodArray<z.ZodType<{
180
+ source: {
181
+ quote: string;
182
+ title?: string | null | undefined;
183
+ url: string;
184
+ }[];
185
+ text: string;
186
+ }, import("../research/run-report-paragraph.ts").ResearchRunReportParagraphSchemaInput, z.core.$ZodTypeInternals<{
187
+ source: {
188
+ quote: string;
189
+ title?: string | null | undefined;
190
+ url: string;
191
+ }[];
192
+ text: string;
193
+ }, import("../research/run-report-paragraph.ts").ResearchRunReportParagraphSchemaInput>>>;
194
+ }, z.core.$strip>>>;
178
195
  run: z.ZodObject<{
179
196
  attempt: z.ZodInt;
180
197
  callerCanFollowRun: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -4,6 +4,7 @@ import { EntitySchema } from "../entity/entity.js";
4
4
  import { HarnessRunFollowUpSchema } from "./run-follow-up.js";
5
5
  import { HarnessRunProgressSchema } from "./run-progress.js";
6
6
  import { HarnessRunSchema } from "./run.js";
7
+ import { ResearchRunReportSchema } from "../research/run-report.js";
7
8
  const HarnessRunDetailSchemaDefinition = z.object({
8
9
  /** Current public profile the run resolved to */
9
10
  entity: EntitySchema.nullish(),
@@ -17,6 +18,8 @@ const HarnessRunDetailSchemaDefinition = z.object({
17
18
  provider: EntitySchema.nullish(),
18
19
  /** Exact renderable public profile URL for the resolved entity */
19
20
  publicUrl: z.string().nullish(),
21
+ /** Written report and its citations, when the run submitted one */
22
+ report: ResearchRunReportSchema.nullish(),
20
23
  /** The research run */
21
24
  run: HarnessRunSchema,
22
25
  });
@@ -88,7 +88,7 @@ export const ProblemDetailSchema = z.object({
88
88
  "JOBRUNR_DISABLED",
89
89
  /** JobRunr background worker is disabled in this environment. Agent action: stop (this is an admin/ops configuration condition, not a retriable user error). */
90
90
  "jobrunr_disabled",
91
- /** A catalog task step runs an operation this API instance does not serve, so its plan cannot be projected: rollout skew, or an instance whose configuration disables that operation. Agent action: retry after the rollout; on a deployed instance that persists, report it as rollout skew. */
91
+ /** A catalog task step names an operation this API instance's command catalog does not expose, so its plan cannot be projected. Causes include rollout skew, configuration or a removed operation. Agent action: have an operator check the selected task catalog and deployed operation list before retrying; do not assume a rollout will restore it. */
92
92
  "task_plan_operation_unserved",
93
93
  /** JobRunr storage (Postgres) is down. Agent action: stop until it recovers. */
94
94
  "JOBRUNR_STORAGE_UNAVAILABLE",
@@ -1157,6 +1157,15 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
1157
1157
  modulePath: "research/paragraph-shape",
1158
1158
  schemaName: "ResearchParagraphShapeSchema",
1159
1159
  },
1160
+ ResearchRunReport: { modulePath: "research/run-report", schemaName: "ResearchRunReportSchema" },
1161
+ ResearchRunReportParagraph: {
1162
+ modulePath: "research/run-report-paragraph",
1163
+ schemaName: "ResearchRunReportParagraphSchema",
1164
+ },
1165
+ ResearchRunReportSource: {
1166
+ modulePath: "research/run-report-source",
1167
+ schemaName: "ResearchRunReportSourceSchema",
1168
+ },
1160
1169
  ResearchRunView: { modulePath: "research/run-view", schemaName: "ResearchRunViewSchema" },
1161
1170
  ResearchSnippetType: {
1162
1171
  modulePath: "research/snippet-type",
@@ -0,0 +1,29 @@
1
+ import { z } from "zod/v4";
2
+ declare const ResearchRunReportParagraphSchemaDefinition: z.ZodObject<{
3
+ source: z.ZodArray<z.ZodType<{
4
+ quote: string;
5
+ title?: string | null | undefined;
6
+ url: string;
7
+ }, import("./run-report-source.ts").ResearchRunReportSourceSchemaInput, z.core.$ZodTypeInternals<{
8
+ quote: string;
9
+ title?: string | null | undefined;
10
+ url: string;
11
+ }, import("./run-report-source.ts").ResearchRunReportSourceSchemaInput>>>;
12
+ text: z.ZodString;
13
+ }, z.core.$strip>;
14
+ type ResearchRunReportParagraphDefinition = z.infer<typeof ResearchRunReportParagraphSchemaDefinition>;
15
+ export interface ResearchRunReportParagraphSchemaInput extends z.input<typeof ResearchRunReportParagraphSchemaDefinition> {
16
+ }
17
+ /**
18
+ * One paragraph and its supporting sources
19
+ *
20
+ * @openapiSchema ResearchRunReportParagraph
21
+ * @endpoint GET /v1/research/runs/{runId}
22
+ * @usedBySchema ResearchRunReportSchema
23
+ * @contractShape research.run-report-paragraph
24
+ * @contractRole canonical
25
+ */
26
+ export declare const ResearchRunReportParagraphSchema: z.ZodType<ResearchRunReportParagraphDefinition, ResearchRunReportParagraphSchemaInput>;
27
+ export type ResearchRunReportParagraph = z.infer<typeof ResearchRunReportParagraphSchema>;
28
+ export {};
29
+ //# sourceMappingURL=run-report-paragraph.d.ts.map
@@ -0,0 +1,20 @@
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 { ResearchRunReportSourceSchema } from "./run-report-source.js";
4
+ const ResearchRunReportParagraphSchemaDefinition = z.object({
5
+ /** Sources supporting the claims in this paragraph */
6
+ source: z.array(ResearchRunReportSourceSchema),
7
+ /** Written finding */
8
+ text: z.string(),
9
+ });
10
+ /**
11
+ * One paragraph and its supporting sources
12
+ *
13
+ * @openapiSchema ResearchRunReportParagraph
14
+ * @endpoint GET /v1/research/runs/{runId}
15
+ * @usedBySchema ResearchRunReportSchema
16
+ * @contractShape research.run-report-paragraph
17
+ * @contractRole canonical
18
+ */
19
+ export const ResearchRunReportParagraphSchema = ResearchRunReportParagraphSchemaDefinition;
20
+ //# sourceMappingURL=run-report-paragraph.js.map
@@ -0,0 +1,22 @@
1
+ import { z } from "zod/v4";
2
+ declare const ResearchRunReportSourceSchemaDefinition: z.ZodObject<{
3
+ quote: z.ZodString;
4
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ url: z.ZodString;
6
+ }, z.core.$strip>;
7
+ type ResearchRunReportSourceDefinition = z.infer<typeof ResearchRunReportSourceSchemaDefinition>;
8
+ export interface ResearchRunReportSourceSchemaInput extends z.input<typeof ResearchRunReportSourceSchemaDefinition> {
9
+ }
10
+ /**
11
+ * A page and verbatim evidence supporting a report paragraph
12
+ *
13
+ * @openapiSchema ResearchRunReportSource
14
+ * @endpoint GET /v1/research/runs/{runId}
15
+ * @usedBySchema ResearchRunReportParagraphSchema
16
+ * @contractShape research.run-report-source
17
+ * @contractRole canonical
18
+ */
19
+ export declare const ResearchRunReportSourceSchema: z.ZodType<ResearchRunReportSourceDefinition, ResearchRunReportSourceSchemaInput>;
20
+ export type ResearchRunReportSource = z.infer<typeof ResearchRunReportSourceSchema>;
21
+ export {};
22
+ //# sourceMappingURL=run-report-source.d.ts.map
@@ -0,0 +1,21 @@
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 ResearchRunReportSourceSchemaDefinition = z.object({
4
+ /** Verbatim quote from the page that supports the paragraph */
5
+ quote: z.string(),
6
+ /** Title of the page, when available */
7
+ title: z.string().nullish(),
8
+ /** Absolute HTTP or HTTPS URL of the page quoted */
9
+ url: z.string(),
10
+ });
11
+ /**
12
+ * A page and verbatim evidence supporting a report paragraph
13
+ *
14
+ * @openapiSchema ResearchRunReportSource
15
+ * @endpoint GET /v1/research/runs/{runId}
16
+ * @usedBySchema ResearchRunReportParagraphSchema
17
+ * @contractShape research.run-report-source
18
+ * @contractRole canonical
19
+ */
20
+ export const ResearchRunReportSourceSchema = ResearchRunReportSourceSchemaDefinition;
21
+ //# sourceMappingURL=run-report-source.js.map
@@ -0,0 +1,29 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Written research with evidence for each paragraph
4
+ *
5
+ * @openapiSchema ResearchRunReport
6
+ * @endpoint GET /v1/research/runs/{runId}
7
+ * @usedBySchema HarnessRunDetailSchema
8
+ * @contractShape research.run-report
9
+ * @contractRole canonical
10
+ */
11
+ export declare const ResearchRunReportSchema: z.ZodObject<{
12
+ paragraph: z.ZodArray<z.ZodType<{
13
+ source: {
14
+ quote: string;
15
+ title?: string | null | undefined;
16
+ url: string;
17
+ }[];
18
+ text: string;
19
+ }, import("./run-report-paragraph.ts").ResearchRunReportParagraphSchemaInput, z.core.$ZodTypeInternals<{
20
+ source: {
21
+ quote: string;
22
+ title?: string | null | undefined;
23
+ url: string;
24
+ }[];
25
+ text: string;
26
+ }, import("./run-report-paragraph.ts").ResearchRunReportParagraphSchemaInput>>>;
27
+ }, z.core.$strip>;
28
+ export type ResearchRunReport = z.infer<typeof ResearchRunReportSchema>;
29
+ //# sourceMappingURL=run-report.d.ts.map
@@ -0,0 +1,17 @@
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 { ResearchRunReportParagraphSchema } from "./run-report-paragraph.js";
4
+ /**
5
+ * Written research with evidence for each paragraph
6
+ *
7
+ * @openapiSchema ResearchRunReport
8
+ * @endpoint GET /v1/research/runs/{runId}
9
+ * @usedBySchema HarnessRunDetailSchema
10
+ * @contractShape research.run-report
11
+ * @contractRole canonical
12
+ */
13
+ export const ResearchRunReportSchema = z.object({
14
+ /** Cited paragraphs in reading order */
15
+ paragraph: z.array(ResearchRunReportParagraphSchema),
16
+ });
17
+ //# sourceMappingURL=run-report.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.425",
3
+ "version": "0.8.427",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",