@aventurevc/api-schemas 0.8.264 → 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 */
@@ -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<{
@@ -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.264",
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",