@aventurevc/api-schemas 0.8.263 → 0.8.265

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.
@@ -7,7 +7,7 @@ declare const EnrichmentPromptSchemaDefinition: z.ZodObject<{
7
7
  sourceDocumentId?: string | null | undefined;
8
8
  sourceUrl: string;
9
9
  start?: number | null | undefined;
10
- statement: string;
10
+ statement?: string | undefined;
11
11
  writerSurface?: string | null | undefined;
12
12
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
13
13
  end?: number | null | undefined;
@@ -16,7 +16,7 @@ declare const EnrichmentPromptSchemaDefinition: z.ZodObject<{
16
16
  sourceDocumentId?: string | null | undefined;
17
17
  sourceUrl: string;
18
18
  start?: number | null | undefined;
19
- statement: string;
19
+ statement?: string | undefined;
20
20
  writerSurface?: string | null | undefined;
21
21
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>>>;
22
22
  userPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -56,7 +56,7 @@ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
56
56
  sourceDocumentId?: string | null | undefined;
57
57
  sourceUrl: string;
58
58
  start?: number | null | undefined;
59
- statement: string;
59
+ statement?: string | undefined;
60
60
  writerSurface?: string | null | undefined;
61
61
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
62
62
  end?: number | null | undefined;
@@ -65,7 +65,7 @@ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
65
65
  sourceDocumentId?: string | null | undefined;
66
66
  sourceUrl: string;
67
67
  start?: number | null | undefined;
68
- statement: string;
68
+ statement?: string | undefined;
69
69
  writerSurface?: string | null | undefined;
70
70
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
71
71
  metaAnalysis: z.ZodOptional<z.ZodObject<{
@@ -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
+ expandedText: z.ZodOptional<z.ZodNullable<z.ZodObject</*elided*/ any, z.core.$strip>>>;
10
11
  expandedTextId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
11
12
  id: z.ZodInt;
12
13
  isCurrent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -6,6 +6,10 @@ 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
+ /** Expanded row written with this summary by expandedWriterBrief, including its compliance. Null when this response does not represent a paired create. */
10
+ get expandedText() {
11
+ return EntityTextSchemaDefinition.nullish();
12
+ },
9
13
  /** 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
14
  expandedTextId: z.int().nullish(),
11
15
  /** Type-safe identifier for text records */
@@ -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
@@ -7,7 +7,7 @@ declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
7
7
  sourceDocumentId?: string | null | undefined;
8
8
  sourceUrl: string;
9
9
  start?: number | null | undefined;
10
- statement: string;
10
+ statement?: string | undefined;
11
11
  writerSurface?: string | null | undefined;
12
12
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
13
13
  end?: number | null | undefined;
@@ -16,7 +16,7 @@ declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
16
16
  sourceDocumentId?: string | null | undefined;
17
17
  sourceUrl: string;
18
18
  start?: number | null | undefined;
19
- statement: string;
19
+ statement?: string | undefined;
20
20
  writerSurface?: string | null | undefined;
21
21
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>>>;
22
22
  mode: z.ZodOptional<z.ZodEnum<{
@@ -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,29 @@ declare const PageEntityTextSchemaDefinition: z.ZodObject<{
11233
11233
  wordCount: number;
11234
11234
  } | null | undefined;
11235
11235
  createdAt?: string | null | undefined;
11236
+ expandedText?: {
11237
+ compliance?: {
11238
+ characterCount: number;
11239
+ meetsRequirements: boolean;
11240
+ violation: string[];
11241
+ wordCount: number;
11242
+ } | null | undefined;
11243
+ createdAt?: string | null | undefined;
11244
+ expandedText?: /*elided*/ any | null | undefined;
11245
+ expandedTextId?: number | null | undefined;
11246
+ id: number;
11247
+ isCurrent?: boolean | null | undefined;
11248
+ isPrimary?: boolean | null | undefined;
11249
+ language?: string | null | undefined;
11250
+ owner: {
11251
+ entityId?: string | null | undefined;
11252
+ personId?: string | null | undefined;
11253
+ };
11254
+ text: string;
11255
+ textName?: string | null | undefined;
11256
+ textType: string;
11257
+ updatedAt?: string | null | undefined;
11258
+ } | null | undefined;
11236
11259
  expandedTextId?: number | null | undefined;
11237
11260
  id: number;
11238
11261
  isCurrent?: boolean | null | undefined;
@@ -11254,6 +11277,29 @@ declare const PageEntityTextSchemaDefinition: z.ZodObject<{
11254
11277
  wordCount: number;
11255
11278
  } | null | undefined;
11256
11279
  createdAt?: string | null | undefined;
11280
+ expandedText?: {
11281
+ compliance?: {
11282
+ characterCount: number;
11283
+ meetsRequirements: boolean;
11284
+ violation: string[];
11285
+ wordCount: number;
11286
+ } | null | undefined;
11287
+ createdAt?: string | null | undefined;
11288
+ expandedText?: any | null | undefined;
11289
+ expandedTextId?: number | null | undefined;
11290
+ id: number;
11291
+ isCurrent?: boolean | null | undefined;
11292
+ isPrimary?: boolean | null | undefined;
11293
+ language?: string | null | undefined;
11294
+ owner: {
11295
+ entityId?: string | null | undefined;
11296
+ personId?: string | null | undefined;
11297
+ };
11298
+ text: string;
11299
+ textName?: string | null | undefined;
11300
+ textType: string;
11301
+ updatedAt?: string | null | undefined;
11302
+ } | null | undefined;
11257
11303
  expandedTextId?: number | null | undefined;
11258
11304
  id: number;
11259
11305
  isCurrent?: boolean | null | undefined;
@@ -6,7 +6,7 @@ declare const ResearchFindingSchemaDefinition: z.ZodObject<{
6
6
  sourceDocumentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
7
7
  sourceUrl: z.ZodString;
8
8
  start: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
9
- statement: z.ZodString;
9
+ statement: z.ZodOptional<z.ZodString>;
10
10
  writerSurface: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
11
11
  BOTH: "BOTH";
12
12
  ENTITY_TEXT: "ENTITY_TEXT";
@@ -14,8 +14,8 @@ const ResearchFindingSchemaDefinition = z.object({
14
14
  sourceUrl: z.string(),
15
15
  /** Inclusive UTF-16 start offset, as an entity folio fact's start. */
16
16
  start: z.int().nullish(),
17
- /** The fact to write, in plain words. */
18
- statement: z.string(),
17
+ /** The fact to write, in plain words. May be omitted for a complete sourceDocumentId, start, end span; the server uses that span's exact stored text as the statement. */
18
+ statement: z.string().optional(),
19
19
  /** Surface this sourced claim may enter: durable entity text, point-in-time research snippets, or both. New writer briefs must declare it. */
20
20
  writerSurface: WriterClaimSurfaceSchema.nullish(),
21
21
  });
@@ -17,7 +17,7 @@ export declare const WriterBriefSchema: z.ZodObject<{
17
17
  sourceDocumentId?: string | null | undefined;
18
18
  sourceUrl: string;
19
19
  start?: number | null | undefined;
20
- statement: string;
20
+ statement?: string | undefined;
21
21
  writerSurface?: string | null | undefined;
22
22
  }, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
23
23
  end?: number | null | undefined;
@@ -26,7 +26,7 @@ export declare const WriterBriefSchema: z.ZodObject<{
26
26
  sourceDocumentId?: string | null | undefined;
27
27
  sourceUrl: string;
28
28
  start?: number | null | undefined;
29
- statement: string;
29
+ statement?: string | undefined;
30
30
  writerSurface?: string | null | undefined;
31
31
  }, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
32
32
  metaAnalysis: z.ZodOptional<z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.263",
3
+ "version": "0.8.265",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",