@aventurevc/api-schemas 0.8.262 → 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.
- package/dist/enrichment/enrichment.d.ts +2 -0
- package/dist/enrichment/prompt.d.ts +8 -2
- package/dist/entity/analysis-section-mutation.d.ts +8 -2
- package/dist/entity/text.d.ts +1 -0
- package/dist/entity/text.js +2 -0
- package/dist/harness/run-create.d.ts +8 -2
- package/dist/harness/run-detail.d.ts +2 -0
- package/dist/harness/run.d.ts +2 -0
- package/dist/harness/run.js +4 -0
- package/dist/pagination/schemas.d.ts +4 -0
- package/dist/research/finding.d.ts +4 -1
- package/dist/research/finding.js +8 -2
- package/dist/writer/brief.d.ts +8 -2
- 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
|
|
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
|
|
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
|
|
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
|
|
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>>>;
|
package/dist/entity/text.d.ts
CHANGED
|
@@ -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>>;
|
package/dist/entity/text.js
CHANGED
|
@@ -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. */
|
|
@@ -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
|
|
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
|
|
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";
|
package/dist/harness/run.d.ts
CHANGED
|
@@ -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";
|
package/dist/harness/run.js
CHANGED
|
@@ -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 */
|
|
@@ -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";
|
package/dist/research/finding.js
CHANGED
|
@@ -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. */
|
package/dist/writer/brief.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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>>>;
|