@aventurevc/api-schemas 0.8.262 → 0.8.264

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.
@@ -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>>>>>;
@@ -50,15 +50,21 @@ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
50
50
  title: z.ZodString;
51
51
  writerBrief: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
52
  claim: z.ZodArray<z.ZodType<{
53
+ end?: number | null | undefined;
53
54
  gateId?: string | null | undefined;
54
- quote: string;
55
+ quote?: string | undefined;
56
+ sourceDocumentId?: string | null | undefined;
55
57
  sourceUrl: string;
58
+ start?: number | null | undefined;
56
59
  statement: string;
57
60
  writerSurface?: string | null | undefined;
58
61
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
62
+ end?: number | null | undefined;
59
63
  gateId?: string | null | undefined;
60
- quote: string;
64
+ quote?: string | undefined;
65
+ sourceDocumentId?: string | null | undefined;
61
66
  sourceUrl: string;
67
+ start?: number | null | undefined;
62
68
  statement: string;
63
69
  writerSurface?: string | null | undefined;
64
70
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
@@ -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. */
@@ -0,0 +1,31 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Reader-facing activity category
4
+ *
5
+ * @openapiSchema HarnessRunActivityType
6
+ * @endpoint GET /v1/research/runs/{runId}/events
7
+ * @usedBySchema HarnessRunActivitySchema
8
+ * @contractShape harness.run-activity-type
9
+ * @contractRole canonical
10
+ */
11
+ export declare const HarnessRunActivityTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
12
+ CHECK: "CHECK";
13
+ FINISHED: "FINISHED";
14
+ QUEUED: "QUEUED";
15
+ READ: "READ";
16
+ SEARCH: "SEARCH";
17
+ STARTED: "STARTED";
18
+ WRITE: "WRITE";
19
+ }>, z.ZodString]> & {
20
+ enum: {
21
+ CHECK: "CHECK";
22
+ FINISHED: "FINISHED";
23
+ QUEUED: "QUEUED";
24
+ READ: "READ";
25
+ SEARCH: "SEARCH";
26
+ STARTED: "STARTED";
27
+ WRITE: "WRITE";
28
+ };
29
+ };
30
+ export type HarnessRunActivityType = z.infer<typeof HarnessRunActivityTypeSchema>;
31
+ //# sourceMappingURL=run-activity-type.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
+ const HarnessRunActivityTypeSchemaKnownMembers = z.enum([
4
+ "QUEUED",
5
+ "STARTED",
6
+ "SEARCH",
7
+ "READ",
8
+ "CHECK",
9
+ "WRITE",
10
+ "FINISHED",
11
+ ]);
12
+ /**
13
+ * Reader-facing activity category
14
+ *
15
+ * @openapiSchema HarnessRunActivityType
16
+ * @endpoint GET /v1/research/runs/{runId}/events
17
+ * @usedBySchema HarnessRunActivitySchema
18
+ * @contractShape harness.run-activity-type
19
+ * @contractRole canonical
20
+ */
21
+ export const HarnessRunActivityTypeSchema = Object.assign(z.union([HarnessRunActivityTypeSchemaKnownMembers, z.string()]), { enum: HarnessRunActivityTypeSchemaKnownMembers.enum });
22
+ //# sourceMappingURL=run-activity-type.js.map
@@ -0,0 +1,40 @@
1
+ import { z } from "zod/v4";
2
+ declare const HarnessRunActivitySchemaDefinition: z.ZodObject<{
3
+ createdAt: z.ZodISODateTime;
4
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
5
+ CHECK: "CHECK";
6
+ FINISHED: "FINISHED";
7
+ QUEUED: "QUEUED";
8
+ READ: "READ";
9
+ SEARCH: "SEARCH";
10
+ STARTED: "STARTED";
11
+ WRITE: "WRITE";
12
+ }>, z.ZodString]> & {
13
+ enum: {
14
+ CHECK: "CHECK";
15
+ FINISHED: "FINISHED";
16
+ QUEUED: "QUEUED";
17
+ READ: "READ";
18
+ SEARCH: "SEARCH";
19
+ STARTED: "STARTED";
20
+ WRITE: "WRITE";
21
+ };
22
+ };
23
+ label: z.ZodString;
24
+ seq: z.ZodInt;
25
+ }, z.core.$strip>;
26
+ type HarnessRunActivityDefinition = z.infer<typeof HarnessRunActivitySchemaDefinition>;
27
+ export interface HarnessRunActivitySchemaInput extends z.input<typeof HarnessRunActivitySchemaDefinition> {
28
+ }
29
+ /**
30
+ * One ordered reader-facing run activity
31
+ *
32
+ * @openapiSchema HarnessRunActivity
33
+ * @endpoint GET /v1/research/runs/{runId}/events
34
+ * @contractShape harness.run-activity
35
+ * @contractRole canonical
36
+ */
37
+ export declare const HarnessRunActivitySchema: z.ZodType<HarnessRunActivityDefinition, HarnessRunActivitySchemaInput>;
38
+ export type HarnessRunActivity = z.infer<typeof HarnessRunActivitySchema>;
39
+ export {};
40
+ //# sourceMappingURL=run-activity.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 { HarnessRunActivityTypeSchema } from "./run-activity-type.js";
4
+ const HarnessRunActivitySchemaDefinition = z.object({
5
+ /** Time of the underlying event */
6
+ createdAt: z.iso.datetime({ offset: true }),
7
+ /** Activity category */
8
+ kind: HarnessRunActivityTypeSchema,
9
+ /** Reader-facing activity description */
10
+ label: z.string(),
11
+ /** Per-run event sequence */
12
+ seq: z.int(),
13
+ });
14
+ /**
15
+ * One ordered reader-facing run activity
16
+ *
17
+ * @openapiSchema HarnessRunActivity
18
+ * @endpoint GET /v1/research/runs/{runId}/events
19
+ * @contractShape harness.run-activity
20
+ * @contractRole canonical
21
+ */
22
+ export const HarnessRunActivitySchema = HarnessRunActivitySchemaDefinition;
23
+ //# sourceMappingURL=run-activity.js.map
@@ -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 */
@@ -642,6 +642,14 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
642
642
  HarnessChassis: { modulePath: "harness/chassis", schemaName: "HarnessChassisSchema" },
643
643
  HarnessLlmApi: { modulePath: "harness/llm-api", schemaName: "HarnessLlmApiSchema" },
644
644
  HarnessRun: { modulePath: "harness/run", schemaName: "HarnessRunSchema" },
645
+ HarnessRunActivity: {
646
+ modulePath: "harness/run-activity",
647
+ schemaName: "HarnessRunActivitySchema",
648
+ },
649
+ HarnessRunActivityType: {
650
+ modulePath: "harness/run-activity-type",
651
+ schemaName: "HarnessRunActivityTypeSchema",
652
+ },
645
653
  HarnessRunCreate: { modulePath: "harness/run-create", schemaName: "HarnessRunCreateSchema" },
646
654
  HarnessRunDetail: { modulePath: "harness/run-detail", schemaName: "HarnessRunDetailSchema" },
647
655
  HarnessRunEnvironment: {
@@ -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";
@@ -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. */
@@ -11,15 +11,21 @@ import { z } from "zod/v4";
11
11
  */
12
12
  export declare const WriterBriefSchema: z.ZodObject<{
13
13
  claim: z.ZodArray<z.ZodType<{
14
+ end?: number | null | undefined;
14
15
  gateId?: string | null | undefined;
15
- quote: string;
16
+ quote?: string | undefined;
17
+ sourceDocumentId?: string | null | undefined;
16
18
  sourceUrl: string;
19
+ start?: number | null | undefined;
17
20
  statement: string;
18
21
  writerSurface?: string | null | undefined;
19
22
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
23
+ end?: number | null | undefined;
20
24
  gateId?: string | null | undefined;
21
- quote: string;
25
+ quote?: string | undefined;
26
+ sourceDocumentId?: string | null | undefined;
22
27
  sourceUrl: string;
28
+ start?: number | null | undefined;
23
29
  statement: string;
24
30
  writerSurface?: string | null | undefined;
25
31
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.262",
3
+ "version": "0.8.264",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",