@aventurevc/api-schemas 0.8.427 → 0.8.428
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/blog/post.js +1 -1
- package/dist/enrichment/batch.js +1 -1
- package/dist/enrichment/enrichment.d.ts +5 -5
- package/dist/enrichment/prompt.d.ts +2 -0
- package/dist/entity/analysis-citation.d.ts +9 -0
- package/dist/entity/analysis-citation.js +3 -0
- package/dist/entity/analysis-draft.d.ts +2 -0
- package/dist/entity/analysis-section-mutation.d.ts +4 -0
- package/dist/entity/analysis-section.d.ts +2 -0
- package/dist/entity/natural-search.d.ts +0 -6
- package/dist/entity/writer-brief.d.ts +2 -0
- package/dist/federated/natural-search.d.ts +0 -3
- package/dist/federated/natural-search.js +0 -6
- package/dist/harness/run-create.d.ts +6 -0
- package/dist/harness/run-detail.d.ts +5 -5
- package/dist/harness/run.d.ts +5 -5
- package/dist/harness/run.js +14 -14
- package/dist/harness/task-input-binding.d.ts +4 -0
- package/dist/harness/task-plan.js +1 -1
- package/dist/http/problem-detail.d.ts +0 -7
- package/dist/http/problem-detail.js +22 -36
- package/dist/natural/search.d.ts +0 -3
- package/dist/natural/search.js +0 -6
- package/dist/openapi-component-manifest.js +4 -0
- package/dist/pagination/schemas.d.ts +5 -5
- package/dist/person/natural-search.d.ts +0 -6
- package/dist/problem/type.d.ts +0 -14
- package/dist/problem/type.js +0 -7
- package/dist/research/finding.d.ts +9 -0
- package/dist/research/finding.js +3 -0
- package/dist/source/document-evidence-view.d.ts +26 -0
- package/dist/source/document-evidence-view.js +19 -0
- package/dist/writer/brief.d.ts +2 -0
- package/package.json +1 -1
package/dist/blog/post.js
CHANGED
|
@@ -20,7 +20,7 @@ const BlogPostSchemaDefinition = z.object({
|
|
|
20
20
|
/** Owning record, nested ids only: owner.entityId or owner.personId — exactly one is set. */
|
|
21
21
|
owner: EntityPersonOwnerSchema,
|
|
22
22
|
publishedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
23
|
-
/**
|
|
23
|
+
/** Short generated summary of the post */
|
|
24
24
|
summary: z.string().nullish(),
|
|
25
25
|
/** Timestamp when summary was last generated */
|
|
26
26
|
summaryGeneratedAt: z.iso.datetime({ offset: true }).nullish(),
|
package/dist/enrichment/batch.js
CHANGED
|
@@ -8,7 +8,7 @@ const EnrichmentBatchSchemaDefinition = z.object({
|
|
|
8
8
|
entityId: z.array(z.uuid()).optional(),
|
|
9
9
|
/** Additional instructions for selected records, one entry per owner. Each entry appends to the shared userPrompt for that owner only. Duplicate or unselected owners and combined prompts longer than the run limit are rejected before any run is filed. Omit for identical instructions on every run. */
|
|
10
10
|
instruction: z.array(EnrichmentInstructionSchema).optional(),
|
|
11
|
-
/** Origin priority: live for lookup, interactive for an individual request, or bulk for a client batch (the default when omitted)
|
|
11
|
+
/** Origin priority: live for lookup, interactive for an individual request, or bulk for a client batch (the default when omitted) */
|
|
12
12
|
lane: HarnessRunLaneSchema.nullish(),
|
|
13
13
|
/** COMPREHENSIVE (the default) researches each whole profile; INDIVIDUAL runs only the tasks named in taskPresetKey */
|
|
14
14
|
mode: EnrichmentModeSchema.optional(),
|
|
@@ -24,15 +24,15 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
|
|
|
24
24
|
"claude-agent-sdk": "claude-agent-sdk";
|
|
25
25
|
"pi-agent-sdk": "pi-agent-sdk";
|
|
26
26
|
}>>>;
|
|
27
|
-
chassisRouted: z.ZodBoolean
|
|
27
|
+
chassisRouted: z.ZodOptional<z.ZodBoolean>;
|
|
28
28
|
createdAt: z.ZodISODateTime;
|
|
29
29
|
entitySlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
environment: z.ZodEnum<{
|
|
30
|
+
environment: z.ZodOptional<z.ZodEnum<{
|
|
31
31
|
development: "development";
|
|
32
32
|
production: "production";
|
|
33
33
|
staging: "staging";
|
|
34
34
|
unassigned: "unassigned";
|
|
35
|
-
}
|
|
35
|
+
}>>;
|
|
36
36
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
38
38
|
DIRECT: "DIRECT";
|
|
@@ -74,8 +74,8 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
|
|
|
74
74
|
"openai-chat": "openai-chat";
|
|
75
75
|
"openai-responses": "openai-responses";
|
|
76
76
|
}>>>;
|
|
77
|
-
maxIteration: z.ZodInt
|
|
78
|
-
maxScoutConcurrent: z.ZodInt
|
|
77
|
+
maxIteration: z.ZodOptional<z.ZodInt>;
|
|
78
|
+
maxScoutConcurrent: z.ZodOptional<z.ZodInt>;
|
|
79
79
|
mode: z.ZodEnum<{
|
|
80
80
|
COMPREHENSIVE: "COMPREHENSIVE";
|
|
81
81
|
INDIVIDUAL: "INDIVIDUAL";
|
|
@@ -2,6 +2,7 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const EnrichmentPromptSchemaDefinition: z.ZodObject<{
|
|
3
3
|
finding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
4
4
|
end?: number | null | undefined;
|
|
5
|
+
evidenceView?: string | null | undefined;
|
|
5
6
|
gateId?: string | null | undefined;
|
|
6
7
|
quote?: string | undefined;
|
|
7
8
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -11,6 +12,7 @@ declare const EnrichmentPromptSchemaDefinition: z.ZodObject<{
|
|
|
11
12
|
writerSurface?: string | null | undefined;
|
|
12
13
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
13
14
|
end?: number | null | undefined;
|
|
15
|
+
evidenceView?: string | null | undefined;
|
|
14
16
|
gateId?: string | null | undefined;
|
|
15
17
|
quote?: string | undefined;
|
|
16
18
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const EntityAnalysisCitationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
evidenceView: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4
|
+
ARTICLE_V1: "ARTICLE_V1";
|
|
5
|
+
LEGACY: "LEGACY";
|
|
6
|
+
}>, z.ZodString]> & {
|
|
7
|
+
enum: {
|
|
8
|
+
ARTICLE_V1: "ARTICLE_V1";
|
|
9
|
+
LEGACY: "LEGACY";
|
|
10
|
+
};
|
|
11
|
+
}>>;
|
|
3
12
|
quote: z.ZodString;
|
|
4
13
|
sourceDocumentId: z.ZodUUID;
|
|
5
14
|
}, z.core.$strip>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
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
2
|
import { z } from "zod/v4";
|
|
3
|
+
import { SourceDocumentEvidenceViewSchema } from "../source/document-evidence-view.js";
|
|
3
4
|
const EntityAnalysisCitationSchemaDefinition = z.object({
|
|
5
|
+
/** Captured-text view of this quote; omitted values retain LEGACY. */
|
|
6
|
+
evidenceView: SourceDocumentEvidenceViewSchema.nullish(),
|
|
4
7
|
/** Nonempty verbatim quote to verify against the archived document. */
|
|
5
8
|
quote: z.string(),
|
|
6
9
|
/** Canonical archived source document UUID. */
|
|
@@ -4,6 +4,7 @@ declare const EntityAnalysisDraftSchemaDefinition: z.ZodObject<{
|
|
|
4
4
|
runId: z.ZodUUID;
|
|
5
5
|
section: z.ZodArray<z.ZodType<{
|
|
6
6
|
citation: {
|
|
7
|
+
evidenceView?: string | null | undefined;
|
|
7
8
|
quote: string;
|
|
8
9
|
sourceDocumentId: string;
|
|
9
10
|
}[];
|
|
@@ -28,6 +29,7 @@ declare const EntityAnalysisDraftSchemaDefinition: z.ZodObject<{
|
|
|
28
29
|
title: string;
|
|
29
30
|
}, import("./analysis-section.ts").EntityAnalysisSectionSchemaInput, z.core.$ZodTypeInternals<{
|
|
30
31
|
citation: {
|
|
32
|
+
evidenceView?: string | null | undefined;
|
|
31
33
|
quote: string;
|
|
32
34
|
sourceDocumentId: string;
|
|
33
35
|
}[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
|
|
3
3
|
citation: z.ZodArray<z.ZodType<{
|
|
4
|
+
evidenceView?: string | null | undefined;
|
|
4
5
|
quote: string;
|
|
5
6
|
sourceDocumentId: string;
|
|
6
7
|
}, import("./analysis-citation.ts").EntityAnalysisCitationSchemaInput, z.core.$ZodTypeInternals<{
|
|
8
|
+
evidenceView?: string | null | undefined;
|
|
7
9
|
quote: string;
|
|
8
10
|
sourceDocumentId: string;
|
|
9
11
|
}, import("./analysis-citation.ts").EntityAnalysisCitationSchemaInput>>>;
|
|
@@ -51,6 +53,7 @@ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
|
|
|
51
53
|
writerBrief: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
54
|
claim: z.ZodArray<z.ZodType<{
|
|
53
55
|
end?: number | null | undefined;
|
|
56
|
+
evidenceView?: string | null | undefined;
|
|
54
57
|
gateId?: string | null | undefined;
|
|
55
58
|
quote?: string | undefined;
|
|
56
59
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -60,6 +63,7 @@ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
|
|
|
60
63
|
writerSurface?: string | null | undefined;
|
|
61
64
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
62
65
|
end?: number | null | undefined;
|
|
66
|
+
evidenceView?: string | null | undefined;
|
|
63
67
|
gateId?: string | null | undefined;
|
|
64
68
|
quote?: string | undefined;
|
|
65
69
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const EntityAnalysisSectionSchemaDefinition: z.ZodObject<{
|
|
3
3
|
citation: z.ZodArray<z.ZodType<{
|
|
4
|
+
evidenceView?: string | null | undefined;
|
|
4
5
|
quote: string;
|
|
5
6
|
sourceDocumentId: string;
|
|
6
7
|
}, import("./analysis-citation.ts").EntityAnalysisCitationSchemaInput, z.core.$ZodTypeInternals<{
|
|
8
|
+
evidenceView?: string | null | undefined;
|
|
7
9
|
quote: string;
|
|
8
10
|
sourceDocumentId: string;
|
|
9
11
|
}, import("./analysis-citation.ts").EntityAnalysisCitationSchemaInput>>>;
|
|
@@ -219,22 +219,16 @@ declare const EntityNaturalSearchSchemaDefinition: z.ZodObject<{
|
|
|
219
219
|
freshness?: "auto" | "cached" | undefined;
|
|
220
220
|
mode?: string | undefined;
|
|
221
221
|
model?: string | null | undefined;
|
|
222
|
-
modelCatalogRevision?: number | null | undefined;
|
|
223
222
|
query: string;
|
|
224
223
|
reasoningEffort?: string | null | undefined;
|
|
225
|
-
searchCatalogRevision?: number | null | undefined;
|
|
226
|
-
tenantPolicyRevision?: number | null | undefined;
|
|
227
224
|
}, import("../natural/search.ts").NaturalSearchSchemaInput, z.core.$ZodTypeInternals<{
|
|
228
225
|
answerModel?: string | null | undefined;
|
|
229
226
|
cacheMode?: "bypass" | "refresh" | "use" | undefined;
|
|
230
227
|
freshness?: "auto" | "cached" | undefined;
|
|
231
228
|
mode?: string | undefined;
|
|
232
229
|
model?: string | null | undefined;
|
|
233
|
-
modelCatalogRevision?: number | null | undefined;
|
|
234
230
|
query: string;
|
|
235
231
|
reasoningEffort?: string | null | undefined;
|
|
236
|
-
searchCatalogRevision?: number | null | undefined;
|
|
237
|
-
tenantPolicyRevision?: number | null | undefined;
|
|
238
232
|
}, import("../natural/search.ts").NaturalSearchSchemaInput>>;
|
|
239
233
|
sourceNewsId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
240
234
|
}, z.core.$strip>;
|
|
@@ -11,6 +11,7 @@ import { z } from "zod/v4";
|
|
|
11
11
|
export declare const EntityWriterBriefSchema: z.ZodObject<{
|
|
12
12
|
claim: z.ZodArray<z.ZodType<{
|
|
13
13
|
end?: number | null | undefined;
|
|
14
|
+
evidenceView?: string | null | undefined;
|
|
14
15
|
gateId?: string | null | undefined;
|
|
15
16
|
quote?: string | undefined;
|
|
16
17
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -20,6 +21,7 @@ export declare const EntityWriterBriefSchema: z.ZodObject<{
|
|
|
20
21
|
writerSurface?: string | null | undefined;
|
|
21
22
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
22
23
|
end?: number | null | undefined;
|
|
24
|
+
evidenceView?: string | null | undefined;
|
|
23
25
|
gateId?: string | null | undefined;
|
|
24
26
|
quote?: string | undefined;
|
|
25
27
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -241,7 +241,6 @@ declare const FederatedNaturalSearchSchemaDefinition: z.ZodObject<{
|
|
|
241
241
|
};
|
|
242
242
|
}>>;
|
|
243
243
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
-
modelCatalogRevision: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
245
244
|
newsSize: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
246
245
|
personSize: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
247
246
|
query: z.ZodString;
|
|
@@ -262,9 +261,7 @@ declare const FederatedNaturalSearchSchemaDefinition: z.ZodObject<{
|
|
|
262
261
|
xhigh: "xhigh";
|
|
263
262
|
};
|
|
264
263
|
}>>;
|
|
265
|
-
searchCatalogRevision: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
266
264
|
sourceNewsId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
267
|
-
tenantPolicyRevision: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
268
265
|
}, z.core.$strip>;
|
|
269
266
|
type FederatedNaturalSearchDefinition = z.infer<typeof FederatedNaturalSearchSchemaDefinition>;
|
|
270
267
|
export interface FederatedNaturalSearchSchemaInput extends z.input<typeof FederatedNaturalSearchSchemaDefinition> {
|
|
@@ -18,8 +18,6 @@ const FederatedNaturalSearchSchemaDefinition = z.object({
|
|
|
18
18
|
mode: SearchModeSchema.default("auto").optional(),
|
|
19
19
|
/** Optional supported model id for planning the search. Leave the field out for the server's model; a value that is not a supported model id answers 422. */
|
|
20
20
|
model: z.string().nullish(),
|
|
21
|
-
/** Model catalog revision this search uses for its model defaults and inference policy; null reads the current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
|
|
22
|
-
modelCatalogRevision: z.int().nullish(),
|
|
23
21
|
/** News scope page size; defaults to 4, matching the aventure.vc search page, under the same page-size cap. Explicit null uses the size query parameter. */
|
|
24
22
|
newsSize: z.int().nullish(),
|
|
25
23
|
/** Person scope page size; defaults to 10, matching the aventure.vc search page, under the same page-size cap. Explicit null uses the size query parameter. */
|
|
@@ -28,12 +26,8 @@ const FederatedNaturalSearchSchemaDefinition = z.object({
|
|
|
28
26
|
query: z.string().min(1),
|
|
29
27
|
/** Optional reasoning effort for every model call this search makes: the query planner and the synthesis answer. Each call sends the nearest level its model supports, the lower one on a tie. Accounts without private-data access are capped at `medium`; higher values are lowered. */
|
|
30
28
|
reasoningEffort: ReasoningEffortSchema.nullish(),
|
|
31
|
-
/** Search catalog revision this search uses for its global search policy and vocabulary; null reads the current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
|
|
32
|
-
searchCatalogRevision: z.int().nullish(),
|
|
33
29
|
/** The stored aVenture news article this search started from. Its approved public Company and Business Line mentions lead the entity scope as subjects in mention order. An unknown or non-public article, or one without such mentions, keeps the ordinary headline search. Other scopes and answer generation are unchanged. */
|
|
34
30
|
sourceNewsId: z.int().min(1).nullish(),
|
|
35
|
-
/** Runtime policy revision this search uses for the serving deployment's execution budgets; null reads that deployment's current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
|
|
36
|
-
tenantPolicyRevision: z.int().nullish(),
|
|
37
31
|
});
|
|
38
32
|
/**
|
|
39
33
|
* Plain-English search across companies, people, and news, plus optional per-scope entity constraints and page sizes.
|
|
@@ -2,6 +2,7 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
|
|
3
3
|
finding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
4
4
|
end?: number | null | undefined;
|
|
5
|
+
evidenceView?: string | null | undefined;
|
|
5
6
|
gateId?: string | null | undefined;
|
|
6
7
|
quote?: string | undefined;
|
|
7
8
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -11,6 +12,7 @@ declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
|
|
|
11
12
|
writerSurface?: string | null | undefined;
|
|
12
13
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
13
14
|
end?: number | null | undefined;
|
|
15
|
+
evidenceView?: string | null | undefined;
|
|
14
16
|
gateId?: string | null | undefined;
|
|
15
17
|
quote?: string | undefined;
|
|
16
18
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -30,6 +32,7 @@ declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
|
|
|
30
32
|
entityWriterBrief?: {
|
|
31
33
|
claim: {
|
|
32
34
|
end?: number | null | undefined;
|
|
35
|
+
evidenceView?: string | null | undefined;
|
|
33
36
|
gateId?: string | null | undefined;
|
|
34
37
|
quote?: string | undefined;
|
|
35
38
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -85,6 +88,7 @@ declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
|
|
|
85
88
|
writerBrief?: {
|
|
86
89
|
claim: {
|
|
87
90
|
end?: number | null | undefined;
|
|
91
|
+
evidenceView?: string | null | undefined;
|
|
88
92
|
gateId?: string | null | undefined;
|
|
89
93
|
quote?: string | undefined;
|
|
90
94
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -142,6 +146,7 @@ declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
|
|
|
142
146
|
entityWriterBrief?: {
|
|
143
147
|
claim: {
|
|
144
148
|
end?: number | null | undefined;
|
|
149
|
+
evidenceView?: string | null | undefined;
|
|
145
150
|
gateId?: string | null | undefined;
|
|
146
151
|
quote?: string | undefined;
|
|
147
152
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -197,6 +202,7 @@ declare const HarnessRunCreateSchemaDefinition: z.ZodObject<{
|
|
|
197
202
|
writerBrief?: {
|
|
198
203
|
claim: {
|
|
199
204
|
end?: number | null | undefined;
|
|
205
|
+
evidenceView?: string | null | undefined;
|
|
200
206
|
gateId?: string | null | undefined;
|
|
201
207
|
quote?: string | undefined;
|
|
202
208
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -199,15 +199,15 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
|
|
|
199
199
|
"claude-agent-sdk": "claude-agent-sdk";
|
|
200
200
|
"pi-agent-sdk": "pi-agent-sdk";
|
|
201
201
|
}>>>;
|
|
202
|
-
chassisRouted: z.ZodBoolean
|
|
202
|
+
chassisRouted: z.ZodOptional<z.ZodBoolean>;
|
|
203
203
|
createdAt: z.ZodISODateTime;
|
|
204
204
|
entitySlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
|
-
environment: z.ZodEnum<{
|
|
205
|
+
environment: z.ZodOptional<z.ZodEnum<{
|
|
206
206
|
development: "development";
|
|
207
207
|
production: "production";
|
|
208
208
|
staging: "staging";
|
|
209
209
|
unassigned: "unassigned";
|
|
210
|
-
}
|
|
210
|
+
}>>;
|
|
211
211
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
212
|
execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
213
213
|
DIRECT: "DIRECT";
|
|
@@ -249,8 +249,8 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
|
|
|
249
249
|
"openai-chat": "openai-chat";
|
|
250
250
|
"openai-responses": "openai-responses";
|
|
251
251
|
}>>>;
|
|
252
|
-
maxIteration: z.ZodInt
|
|
253
|
-
maxScoutConcurrent: z.ZodInt
|
|
252
|
+
maxIteration: z.ZodOptional<z.ZodInt>;
|
|
253
|
+
maxScoutConcurrent: z.ZodOptional<z.ZodInt>;
|
|
254
254
|
mode: z.ZodEnum<{
|
|
255
255
|
COMPREHENSIVE: "COMPREHENSIVE";
|
|
256
256
|
INDIVIDUAL: "INDIVIDUAL";
|
package/dist/harness/run.d.ts
CHANGED
|
@@ -22,15 +22,15 @@ export declare const HarnessRunSchema: z.ZodObject<{
|
|
|
22
22
|
"claude-agent-sdk": "claude-agent-sdk";
|
|
23
23
|
"pi-agent-sdk": "pi-agent-sdk";
|
|
24
24
|
}>>>;
|
|
25
|
-
chassisRouted: z.ZodBoolean
|
|
25
|
+
chassisRouted: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
createdAt: z.ZodISODateTime;
|
|
27
27
|
entitySlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
environment: z.ZodEnum<{
|
|
28
|
+
environment: z.ZodOptional<z.ZodEnum<{
|
|
29
29
|
development: "development";
|
|
30
30
|
production: "production";
|
|
31
31
|
staging: "staging";
|
|
32
32
|
unassigned: "unassigned";
|
|
33
|
-
}
|
|
33
|
+
}>>;
|
|
34
34
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
36
36
|
DIRECT: "DIRECT";
|
|
@@ -72,8 +72,8 @@ export declare const HarnessRunSchema: z.ZodObject<{
|
|
|
72
72
|
"openai-chat": "openai-chat";
|
|
73
73
|
"openai-responses": "openai-responses";
|
|
74
74
|
}>>>;
|
|
75
|
-
maxIteration: z.ZodInt
|
|
76
|
-
maxScoutConcurrent: z.ZodInt
|
|
75
|
+
maxIteration: z.ZodOptional<z.ZodInt>;
|
|
76
|
+
maxScoutConcurrent: z.ZodOptional<z.ZodInt>;
|
|
77
77
|
mode: z.ZodEnum<{
|
|
78
78
|
COMPREHENSIVE: "COMPREHENSIVE";
|
|
79
79
|
INDIVIDUAL: "INDIVIDUAL";
|
package/dist/harness/run.js
CHANGED
|
@@ -35,25 +35,25 @@ export const HarnessRunSchema = z.object({
|
|
|
35
35
|
callerCanFollowRun: z.boolean().nullish(),
|
|
36
36
|
/** Agent framework this run executes on */
|
|
37
37
|
chassis: HarnessChassisSchema.nullish(),
|
|
38
|
-
/** True when aVenture
|
|
39
|
-
chassisRouted: z.boolean(),
|
|
38
|
+
/** True when aVenture chose `chassis` */
|
|
39
|
+
chassisRouted: z.boolean().optional(),
|
|
40
40
|
/** Creation timestamp */
|
|
41
41
|
createdAt: z.iso.datetime({ offset: true }),
|
|
42
42
|
/** Slug of the profile the run produced */
|
|
43
43
|
entitySlug: z.string().nullish(),
|
|
44
44
|
/** API environment */
|
|
45
|
-
environment: HarnessRunEnvironmentSchema,
|
|
45
|
+
environment: HarnessRunEnvironmentSchema.optional(),
|
|
46
46
|
/** Why the run failed; null unless failed */
|
|
47
47
|
error: z.string().nullish(),
|
|
48
48
|
/** Executor of this research attempt; absent on older APIs */
|
|
49
49
|
execution: HarnessRunExecutionSchema.nullish(),
|
|
50
|
-
/**
|
|
50
|
+
/** Short machine-readable class of the failure, such as runtime_cap; null unless failed */
|
|
51
51
|
failureClass: z.string().nullish(),
|
|
52
52
|
/** Run completion timestamp */
|
|
53
53
|
finishedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
54
54
|
/** Set only in the response that starts the run: true the first time it starts, false when a worker restarts it; null in every other response */
|
|
55
55
|
firstStart: z.boolean().nullish(),
|
|
56
|
-
/** Whether follow-up runs from this run's latest finish have all been filed; runs finished
|
|
56
|
+
/** Whether follow-up runs from this run's latest finish have all been filed; runs finished before this was recorded stay PENDING */
|
|
57
57
|
followUpAdmission: HarnessRunFollowUpAdmissionSchema.optional(),
|
|
58
58
|
/** Whether this run consumes an immutable private source document */
|
|
59
59
|
hasSourceDocument: z.boolean(),
|
|
@@ -61,21 +61,21 @@ export const HarnessRunSchema = z.object({
|
|
|
61
61
|
id: z.uuid(),
|
|
62
62
|
/** Current loop iteration */
|
|
63
63
|
iteration: z.int(),
|
|
64
|
-
/** Admission class
|
|
64
|
+
/** Admission class, interactive or background; Prefer: run-lane-origin reads the filed lane */
|
|
65
65
|
lane: HarnessRunLaneSchema,
|
|
66
66
|
/** Latest research-loop progress as a free-form JSON string */
|
|
67
67
|
latestStatus: z.string().nullish(),
|
|
68
68
|
/** Language-model API format this run's calls use */
|
|
69
69
|
llmApi: HarnessLlmApiSchema.nullish(),
|
|
70
70
|
/** Loop iteration cap */
|
|
71
|
-
maxIteration: z.int(),
|
|
72
|
-
/**
|
|
73
|
-
maxScoutConcurrent: z.int(),
|
|
71
|
+
maxIteration: z.int().optional(),
|
|
72
|
+
/** Concurrent research helper cap */
|
|
73
|
+
maxScoutConcurrent: z.int().optional(),
|
|
74
74
|
/** Enrichment breadth selected for this run */
|
|
75
75
|
mode: EnrichmentModeSchema,
|
|
76
|
-
/**
|
|
76
|
+
/** Model id the run uses; absent when none applies */
|
|
77
77
|
model: z.string().nullish(),
|
|
78
|
-
/** True when the requester left `model` to the auto router, which picks it again each time the run leaves the queue; null
|
|
78
|
+
/** True when the requester left `model` to the auto router, which picks it again each time the run leaves the queue; null when not reported */
|
|
79
79
|
modelRouted: z.boolean().nullish(),
|
|
80
80
|
/** Earliest re-claim time when waiting on retry backoff */
|
|
81
81
|
nextAttemptAt: z.iso.datetime({ offset: true }).nullish(),
|
|
@@ -83,7 +83,7 @@ export const HarnessRunSchema = z.object({
|
|
|
83
83
|
researchAllowanceType: ResearchAllowanceTypeSchema.nullish(),
|
|
84
84
|
/** How unsuccessful research ended: PARTIAL or BLOCKED, from its recorded failure class; null for other outcomes */
|
|
85
85
|
researchOutcome: HarnessResearchOutcomeSchema.nullish(),
|
|
86
|
-
/** Instant past which
|
|
86
|
+
/** Instant past which resuming the run from where it stopped is no longer guaranteed. A failed or stopped run can resume that way while this is in the future. Null when there is no resume window. */
|
|
87
87
|
resumeSafeUntil: z.iso.datetime({ offset: true }).nullish(),
|
|
88
88
|
/** Run start timestamp */
|
|
89
89
|
startedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
@@ -91,7 +91,7 @@ export const HarnessRunSchema = z.object({
|
|
|
91
91
|
status: HarnessRunStatusSchema,
|
|
92
92
|
/** Model id of the run's read-only research and check helpers */
|
|
93
93
|
subagentModel: z.string().nullish(),
|
|
94
|
-
/** True when the requester left `subagentModel` to the auto router, which picks it again each time the run leaves the queue; null
|
|
94
|
+
/** True when the requester left `subagentModel` to the auto router, which picks it again each time the run leaves the queue; null when not reported */
|
|
95
95
|
subagentModelRouted: z.boolean().nullish(),
|
|
96
96
|
/** Research presets filed with the run */
|
|
97
97
|
taskPresetKey: z.array(z.string()).nullish(),
|
|
@@ -103,7 +103,7 @@ export const HarnessRunSchema = z.object({
|
|
|
103
103
|
updatedAt: z.iso.datetime({ offset: true }),
|
|
104
104
|
/** URL of the company, Product, Service, or person under research */
|
|
105
105
|
url: z.string(),
|
|
106
|
-
/**
|
|
106
|
+
/** Instructions filed with the run. POST /v1/research/runs filing responses acknowledge only the submitted note; subsequent requester list and detail reads omit the combined instructions. */
|
|
107
107
|
userPrompt: z.string().nullish(),
|
|
108
108
|
});
|
|
109
109
|
//# sourceMappingURL=run.js.map
|
|
@@ -4,6 +4,7 @@ declare const HarnessTaskInputBindingSchemaDefinition: z.ZodObject<{
|
|
|
4
4
|
entityWriterBrief: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5
5
|
claim: z.ZodArray<z.ZodType<{
|
|
6
6
|
end?: number | null | undefined;
|
|
7
|
+
evidenceView?: string | null | undefined;
|
|
7
8
|
gateId?: string | null | undefined;
|
|
8
9
|
quote?: string | undefined;
|
|
9
10
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -13,6 +14,7 @@ declare const HarnessTaskInputBindingSchemaDefinition: z.ZodObject<{
|
|
|
13
14
|
writerSurface?: string | null | undefined;
|
|
14
15
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
15
16
|
end?: number | null | undefined;
|
|
17
|
+
evidenceView?: string | null | undefined;
|
|
16
18
|
gateId?: string | null | undefined;
|
|
17
19
|
quote?: string | undefined;
|
|
18
20
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -99,6 +101,7 @@ declare const HarnessTaskInputBindingSchemaDefinition: z.ZodObject<{
|
|
|
99
101
|
writerBrief: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
100
102
|
claim: z.ZodArray<z.ZodType<{
|
|
101
103
|
end?: number | null | undefined;
|
|
104
|
+
evidenceView?: string | null | undefined;
|
|
102
105
|
gateId?: string | null | undefined;
|
|
103
106
|
quote?: string | undefined;
|
|
104
107
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -108,6 +111,7 @@ declare const HarnessTaskInputBindingSchemaDefinition: z.ZodObject<{
|
|
|
108
111
|
writerSurface?: string | null | undefined;
|
|
109
112
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
110
113
|
end?: number | null | undefined;
|
|
114
|
+
evidenceView?: string | null | undefined;
|
|
111
115
|
gateId?: string | null | undefined;
|
|
112
116
|
quote?: string | undefined;
|
|
113
117
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -14,7 +14,7 @@ import { HarnessTaskSchema } from "./task.js";
|
|
|
14
14
|
export const HarnessTaskPlanSchema = z.object({
|
|
15
15
|
/** Stored catalog revision this plan was read from. */
|
|
16
16
|
catalogRevision: z.int().optional(),
|
|
17
|
-
/** Ids of the completion checks this task must pass, as listed in the completion check catalog. */
|
|
17
|
+
/** Ids of the completion checks this task must pass, as listed in the completion check catalog. A run's own plan lists only the checks its accepted target owes; a check that target's entity type or funding stage excludes is omitted. */
|
|
18
18
|
gateId: z.array(z.string()).optional(),
|
|
19
19
|
/** Typed task inputs; required inputs must be bound before it runs. */
|
|
20
20
|
input: z.array(HarnessTaskSchema),
|
|
@@ -64,7 +64,6 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
64
64
|
clerk_oauth_unavailable: "clerk_oauth_unavailable";
|
|
65
65
|
cvc_inherited_headcount: "cvc_inherited_headcount";
|
|
66
66
|
entity_name_casing_rejected: "entity_name_casing_rejected";
|
|
67
|
-
frontend_cache_epoch_mode_not_targeted: "frontend_cache_epoch_mode_not_targeted";
|
|
68
67
|
fundraise_evidence_unsupported: "fundraise_evidence_unsupported";
|
|
69
68
|
geocode_provider_error: "geocode_provider_error";
|
|
70
69
|
github_fetch_failed: "github_fetch_failed";
|
|
@@ -112,7 +111,6 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
112
111
|
search_provider_not_configured: "search_provider_not_configured";
|
|
113
112
|
search_still_running: "search_still_running";
|
|
114
113
|
sec_edgar_fetch_failed: "sec_edgar_fetch_failed";
|
|
115
|
-
sentry_api_error: "sentry_api_error";
|
|
116
114
|
source_document_body_unavailable: "source_document_body_unavailable";
|
|
117
115
|
source_document_capture_limit_exceeded: "source_document_capture_limit_exceeded";
|
|
118
116
|
source_document_fetch_busy: "source_document_fetch_busy";
|
|
@@ -295,15 +293,10 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
295
293
|
AGENT_HELP: "AGENT_HELP";
|
|
296
294
|
BILLING_ADDITIONAL_USAGE: "BILLING_ADDITIONAL_USAGE";
|
|
297
295
|
BILLING_ALLOWANCE: "BILLING_ALLOWANCE";
|
|
298
|
-
CLERK_PUBLIC_ADMISSION: "CLERK_PUBLIC_ADMISSION";
|
|
299
|
-
CLERK_SCRIPT_LOAD: "CLERK_SCRIPT_LOAD";
|
|
300
296
|
FORM: "FORM";
|
|
301
297
|
GLOBAL: "GLOBAL";
|
|
302
|
-
INFERENCE_PROVIDER: "INFERENCE_PROVIDER";
|
|
303
298
|
IP: "IP";
|
|
304
299
|
NATURAL_SEARCH: "NATURAL_SEARCH";
|
|
305
|
-
ORIGIN_DETAIL: "ORIGIN_DETAIL";
|
|
306
|
-
RESILIENCE4J: "RESILIENCE4J";
|
|
307
300
|
SUBNET: "SUBNET";
|
|
308
301
|
UNKNOWN: "UNKNOWN";
|
|
309
302
|
WEB_SEARCH: "WEB_SEARCH";
|
|
@@ -54,13 +54,13 @@ export const ProblemDetailSchema = z.object({
|
|
|
54
54
|
"billing_plan_change_required",
|
|
55
55
|
/** A signed-out purchase named an email that already belongs to an account. Agent action: sign that account in with its email code, then subscribe signed in; never retry the signed-out purchase for that email. */
|
|
56
56
|
"account_exists",
|
|
57
|
-
/**
|
|
57
|
+
/** Record-detail reads are at capacity. Agent action: back off and retry later; this is a service capacity condition, not a caller throttle. */
|
|
58
58
|
"origin_detail_capacity",
|
|
59
|
-
/**
|
|
59
|
+
/** A record-detail read was refused because the serving instance is restarting. Agent action: retry shortly; the retry reaches a healthy instance. */
|
|
60
60
|
"origin_detail_shutdown",
|
|
61
|
-
/** A read overran its
|
|
61
|
+
/** A read overran its time budget and was shed before answering, so the identical request can be replayed. Agent action: retry after a short backoff; the shed is expected and files no incident. */
|
|
62
62
|
"query_deadline_shed",
|
|
63
|
-
/**
|
|
63
|
+
/** Read capacity was saturated; retry after retryAfterSeconds. */
|
|
64
64
|
"primary_read_saturated",
|
|
65
65
|
/** Request prose looks shell-mangled around a money phrase: either shell expansion stripped a leading dollar sign ('50 million' where '$50 million' was meant) or an escape character survived into the text ('\$50 million', standalone '/$50 million'). Agent action: write '$' literally and re-send the JSON body from a file or stdin, or quote it so the shell does not expand '$'; use allowSuspectedShellStrip only when the value is intentional. */
|
|
66
66
|
"suspectedShellStrip",
|
|
@@ -84,26 +84,22 @@ export const ProblemDetailSchema = z.object({
|
|
|
84
84
|
"source_grounding_at_capacity",
|
|
85
85
|
/** A URL was submitted to the wrong write surface. Agent action: move the URL to the specific surface named by ProblemDetail.hint/resolution, for example EntityUrl.urlType=ycombinator via entities urls create instead of News.newsUrlOriginal. */
|
|
86
86
|
"url_surface_misclassification",
|
|
87
|
-
/**
|
|
87
|
+
/** Background job processing is disabled on this API. Agent action: stop; this is a service configuration condition, not a retriable caller error. */
|
|
88
88
|
"JOBRUNR_DISABLED",
|
|
89
|
-
/**
|
|
89
|
+
/** Background job processing is disabled on this API. Agent action: stop; this is a service configuration condition, not a retriable caller error. */
|
|
90
90
|
"jobrunr_disabled",
|
|
91
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
|
+
/** Background job storage is down. Agent action: stop until it recovers. */
|
|
94
94
|
"JOBRUNR_STORAGE_UNAVAILABLE",
|
|
95
|
-
/**
|
|
95
|
+
/** Background job storage is down. Agent action: stop until it recovers. */
|
|
96
96
|
"jobrunr_storage_unavailable",
|
|
97
|
-
/**
|
|
97
|
+
/** Account role lookup failed. Agent action: retry once; persistent failure indicates a service outage. */
|
|
98
98
|
"rbac_lookup_unavailable",
|
|
99
|
-
/** Geocoding provider
|
|
99
|
+
/** Geocoding provider call failed. Agent action: surface the error; address fields can be submitted without normalization as a fallback. */
|
|
100
100
|
"GEOCODE_PROVIDER_ERROR",
|
|
101
|
-
/** Geocoding provider
|
|
101
|
+
/** Geocoding provider call failed. Agent action: surface the error; address fields can be submitted without normalization as a fallback. */
|
|
102
102
|
"geocode_provider_error",
|
|
103
|
-
/** Sentry API call failed (used by error-triage endpoints). Agent action: surface; Sentry outages do not affect the primary application path. */
|
|
104
|
-
"sentry_api_error",
|
|
105
|
-
/** Frontend cache epoch requires the cache invalidation outbox consumer to run in targeted mode. Agent action: stop polling; this 503 is a designed cutover guard, and only the operator switching the outbox mode to targeted (docs/database/cache-invalidation.md) makes the epoch readable. */
|
|
106
|
-
"frontend_cache_epoch_mode_not_targeted",
|
|
107
103
|
/** Image is blocklisted; follow ProblemDetail.hint, never resend it. */
|
|
108
104
|
"image_blocklist_match",
|
|
109
105
|
/** Image is blank or monochrome; follow ProblemDetail.hint, never resend it. */
|
|
@@ -152,19 +148,19 @@ export const ProblemDetailSchema = z.object({
|
|
|
152
148
|
"callback_challenge_failed",
|
|
153
149
|
/** Caller already holds the maximum number of news subscriptions. Agent action: unsubscribe one before subscribing again. */
|
|
154
150
|
"news_subscription_limit",
|
|
155
|
-
/**
|
|
151
|
+
/** Stored object fetch failed during a read operation. Agent action: retry once with backoff; persistent failure indicates a storage outage or asset deletion. */
|
|
156
152
|
"r2_fetch_failed",
|
|
157
|
-
/**
|
|
153
|
+
/** Stored object delete failed during a cleanup operation. Agent action: surface; retrying may produce duplicate-delete errors. */
|
|
158
154
|
"r2_delete_failed",
|
|
159
|
-
/**
|
|
155
|
+
/** Stored object upload failed during a write operation. Agent action: retry once with the same payload; persistent failure indicates a storage outage. */
|
|
160
156
|
"r2_upload_failed",
|
|
161
|
-
/** Stored source-document raw bytes could not be served: the
|
|
157
|
+
/** Stored source-document raw bytes could not be served: the stored copy is incomplete or failed digest verification. Agent action: surface; aVenture must repair the stored copy before this body can be read. */
|
|
162
158
|
"source_document_body_unavailable",
|
|
163
159
|
/** A source-document capture stopped before retaining a provider response over this service's configured byte limit. Agent action: this is a designed containment boundary, not a provider outage or a service defect; do not retry the same request expecting a different outcome. */
|
|
164
160
|
"source_document_capture_limit_exceeded",
|
|
165
161
|
/** News similarity cannot run because the target embedding is unavailable or live similarity capacity is full. Agent action: surface the 503 and retry later; this endpoint does not fall back to lexical ranking. */
|
|
166
162
|
"news_similarity_embedding_unavailable",
|
|
167
|
-
/**
|
|
163
|
+
/** Web search is not configured on this API. Agent action: stop; retrying cannot succeed until aVenture restores it. */
|
|
168
164
|
"search_provider_not_configured",
|
|
169
165
|
/** Search provider call failed. Agent action: inspect detail and source. Provider credential or credit refusals (401, 402, or 407) are terminal: restore the provider credential or credits first. TERMINAL means refused or already retried: record the outage, never resend. TRANSIENT: retry once per Retry-After. */
|
|
170
166
|
"search_provider_error",
|
|
@@ -176,9 +172,9 @@ export const ProblemDetailSchema = z.object({
|
|
|
176
172
|
"sec_edgar_fetch_failed",
|
|
177
173
|
/** GitHub repository fetch failed (account, listing, or single repo). Agent action: surface; GitHub outages or rate limiting affect github-repo sync endpoints only. */
|
|
178
174
|
"github_fetch_failed",
|
|
179
|
-
/**
|
|
175
|
+
/** Machine-token sign-in service failed. Agent action: retry after retryAfterSeconds. */
|
|
180
176
|
"clerk_m2m_unavailable",
|
|
181
|
-
/**
|
|
177
|
+
/** OAuth sign-in service failed. Agent action: retry after retryAfterSeconds. */
|
|
182
178
|
"clerk_oauth_unavailable",
|
|
183
179
|
/** Researchly usage API failed. Agent action: retry after retryAfterSeconds. */
|
|
184
180
|
"researchly_usage_unavailable",
|
|
@@ -194,13 +190,13 @@ export const ProblemDetailSchema = z.object({
|
|
|
194
190
|
"INFERENCE_PROVIDER_INVALID_JSON",
|
|
195
191
|
/** LLM inference provider returned a response that failed JSON parsing. Agent action: surface; the prompt or response schema may need adjustment. */
|
|
196
192
|
"inference_provider_invalid_json",
|
|
197
|
-
/**
|
|
193
|
+
/** Language-model configuration is missing. Agent action: stop; retrying cannot succeed until aVenture restores it. */
|
|
198
194
|
"INFERENCE_PROFILES_MISSING",
|
|
199
|
-
/**
|
|
195
|
+
/** Language-model configuration is missing. Agent action: stop; retrying cannot succeed until aVenture restores it. */
|
|
200
196
|
"inference_profiles_missing",
|
|
201
|
-
/**
|
|
197
|
+
/** Language-model credentials are missing. Agent action: stop; retrying cannot succeed until aVenture restores them. */
|
|
202
198
|
"INFERENCE_PROFILE_API_KEY_MISSING",
|
|
203
|
-
/**
|
|
199
|
+
/** Language-model credentials are missing. Agent action: stop; retrying cannot succeed until aVenture restores them. */
|
|
204
200
|
"inference_profile_api_key_missing",
|
|
205
201
|
]),
|
|
206
202
|
z.string().max(128),
|
|
@@ -242,8 +238,6 @@ export const ProblemDetailSchema = z.object({
|
|
|
242
238
|
"IP",
|
|
243
239
|
/** A request-rate limit refused the request; retry after retryAfterSeconds. */
|
|
244
240
|
"UNKNOWN",
|
|
245
|
-
/** The service is handling too many requests at once; retry after a short backoff. */
|
|
246
|
-
"RESILIENCE4J",
|
|
247
241
|
/** Too many live web searches; retry after retryAfterSeconds. */
|
|
248
242
|
"WEB_SEARCH",
|
|
249
243
|
/** Too many help questions; retry after retryAfterSeconds. */
|
|
@@ -254,14 +248,6 @@ export const ProblemDetailSchema = z.object({
|
|
|
254
248
|
"BILLING_ALLOWANCE",
|
|
255
249
|
/** The additional-usage spend cap or prepaid credit is used up, counted in cents: stop rather than retry until the cap is raised or credit is added. */
|
|
256
250
|
"BILLING_ADDITIONAL_USAGE",
|
|
257
|
-
/** Too many command-line sign-in requests; retry after retryAfterSeconds. */
|
|
258
|
-
"CLERK_PUBLIC_ADMISSION",
|
|
259
|
-
/** Too many sign-in page load reports; retry after retryAfterSeconds. */
|
|
260
|
-
"CLERK_SCRIPT_LOAD",
|
|
261
|
-
/** Not currently sent. If seen, retry after retryAfterSeconds. */
|
|
262
|
-
"ORIGIN_DETAIL",
|
|
263
|
-
/** A model service this request depends on is at capacity; retry after retryAfterSeconds. */
|
|
264
|
-
"INFERENCE_PROVIDER",
|
|
265
251
|
]),
|
|
266
252
|
z.string(),
|
|
267
253
|
])
|
package/dist/natural/search.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const NaturalSearchSchemaDefinition: z.ZodObject<{
|
|
|
28
28
|
};
|
|
29
29
|
}>>;
|
|
30
30
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
modelCatalogRevision: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
32
31
|
query: z.ZodString;
|
|
33
32
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
34
33
|
high: "high";
|
|
@@ -47,8 +46,6 @@ declare const NaturalSearchSchemaDefinition: z.ZodObject<{
|
|
|
47
46
|
xhigh: "xhigh";
|
|
48
47
|
};
|
|
49
48
|
}>>;
|
|
50
|
-
searchCatalogRevision: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
51
|
-
tenantPolicyRevision: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
52
49
|
}, z.core.$strip>;
|
|
53
50
|
type NaturalSearchDefinition = z.infer<typeof NaturalSearchSchemaDefinition>;
|
|
54
51
|
export interface NaturalSearchSchemaInput extends z.input<typeof NaturalSearchSchemaDefinition> {
|
package/dist/natural/search.js
CHANGED
|
@@ -15,16 +15,10 @@ const NaturalSearchSchemaDefinition = z.object({
|
|
|
15
15
|
mode: SearchModeSchema.default("auto").optional(),
|
|
16
16
|
/** Optional supported model id for planning the search. Leave the field out for the server's model; a value that is not a supported model id answers 422. */
|
|
17
17
|
model: z.string().nullish(),
|
|
18
|
-
/** Model catalog revision this search uses for its model defaults and inference policy; null reads the current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
|
|
19
|
-
modelCatalogRevision: z.int().nullish(),
|
|
20
18
|
/** Plain-English search request. */
|
|
21
19
|
query: z.string().min(1),
|
|
22
20
|
/** Optional reasoning effort for every model call this search makes: the query planner and the synthesis answer. Each call sends the nearest level its model supports, the lower one on a tie. Accounts without private-data access are capped at `medium`; higher values are lowered. */
|
|
23
21
|
reasoningEffort: ReasoningEffortSchema.nullish(),
|
|
24
|
-
/** Search catalog revision this search uses for its global search policy and vocabulary; null reads the current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
|
|
25
|
-
searchCatalogRevision: z.int().nullish(),
|
|
26
|
-
/** Runtime policy revision this search uses for the serving deployment's execution budgets; null reads that deployment's current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
|
|
27
|
-
tenantPolicyRevision: z.int().nullish(),
|
|
28
22
|
});
|
|
29
23
|
/**
|
|
30
24
|
* Plain-English search request. The server turns the query into a filter and sort for the target record type, then runs that type's standard list search.
|
|
@@ -1307,6 +1307,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
1307
1307
|
modulePath: "sort/order-person-sort-field",
|
|
1308
1308
|
schemaName: "SortOrderPersonSortFieldSchema",
|
|
1309
1309
|
},
|
|
1310
|
+
SourceDocumentEvidenceView: {
|
|
1311
|
+
modulePath: "source/document-evidence-view",
|
|
1312
|
+
schemaName: "SourceDocumentEvidenceViewSchema",
|
|
1313
|
+
},
|
|
1310
1314
|
SourceDocumentList: {
|
|
1311
1315
|
modulePath: "source/document-list",
|
|
1312
1316
|
schemaName: "SourceDocumentListSchema",
|
|
@@ -14595,15 +14595,15 @@ declare const PageHarnessRunSchemaDefinition: z.ZodObject<{
|
|
|
14595
14595
|
"claude-agent-sdk": "claude-agent-sdk";
|
|
14596
14596
|
"pi-agent-sdk": "pi-agent-sdk";
|
|
14597
14597
|
}>>>;
|
|
14598
|
-
chassisRouted: z.ZodBoolean
|
|
14598
|
+
chassisRouted: z.ZodOptional<z.ZodBoolean>;
|
|
14599
14599
|
createdAt: z.ZodISODateTime;
|
|
14600
14600
|
entitySlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14601
|
-
environment: z.ZodEnum<{
|
|
14601
|
+
environment: z.ZodOptional<z.ZodEnum<{
|
|
14602
14602
|
development: "development";
|
|
14603
14603
|
production: "production";
|
|
14604
14604
|
staging: "staging";
|
|
14605
14605
|
unassigned: "unassigned";
|
|
14606
|
-
}
|
|
14606
|
+
}>>;
|
|
14607
14607
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14608
14608
|
execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
14609
14609
|
DIRECT: "DIRECT";
|
|
@@ -14645,8 +14645,8 @@ declare const PageHarnessRunSchemaDefinition: z.ZodObject<{
|
|
|
14645
14645
|
"openai-chat": "openai-chat";
|
|
14646
14646
|
"openai-responses": "openai-responses";
|
|
14647
14647
|
}>>>;
|
|
14648
|
-
maxIteration: z.ZodInt
|
|
14649
|
-
maxScoutConcurrent: z.ZodInt
|
|
14648
|
+
maxIteration: z.ZodOptional<z.ZodInt>;
|
|
14649
|
+
maxScoutConcurrent: z.ZodOptional<z.ZodInt>;
|
|
14650
14650
|
mode: z.ZodEnum<{
|
|
14651
14651
|
COMPREHENSIVE: "COMPREHENSIVE";
|
|
14652
14652
|
INDIVIDUAL: "INDIVIDUAL";
|
|
@@ -534,22 +534,16 @@ declare const PersonNaturalSearchSchemaDefinition: z.ZodObject<{
|
|
|
534
534
|
freshness?: "auto" | "cached" | undefined;
|
|
535
535
|
mode?: string | undefined;
|
|
536
536
|
model?: string | null | undefined;
|
|
537
|
-
modelCatalogRevision?: number | null | undefined;
|
|
538
537
|
query: string;
|
|
539
538
|
reasoningEffort?: string | null | undefined;
|
|
540
|
-
searchCatalogRevision?: number | null | undefined;
|
|
541
|
-
tenantPolicyRevision?: number | null | undefined;
|
|
542
539
|
}, import("../natural/search.ts").NaturalSearchSchemaInput, z.core.$ZodTypeInternals<{
|
|
543
540
|
answerModel?: string | null | undefined;
|
|
544
541
|
cacheMode?: "bypass" | "refresh" | "use" | undefined;
|
|
545
542
|
freshness?: "auto" | "cached" | undefined;
|
|
546
543
|
mode?: string | undefined;
|
|
547
544
|
model?: string | null | undefined;
|
|
548
|
-
modelCatalogRevision?: number | null | undefined;
|
|
549
545
|
query: string;
|
|
550
546
|
reasoningEffort?: string | null | undefined;
|
|
551
|
-
searchCatalogRevision?: number | null | undefined;
|
|
552
|
-
tenantPolicyRevision?: number | null | undefined;
|
|
553
547
|
}, import("../natural/search.ts").NaturalSearchSchemaInput>>;
|
|
554
548
|
}, z.core.$strip>;
|
|
555
549
|
type PersonNaturalSearchDefinition = z.infer<typeof PersonNaturalSearchSchemaDefinition>;
|
package/dist/problem/type.d.ts
CHANGED
|
@@ -28,13 +28,6 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
28
28
|
readonly UNEXPECTED_ERROR: "https://api.aventure.vc/errors/unexpected-error";
|
|
29
29
|
readonly NOT_IMPLEMENTED: "https://api.aventure.vc/errors/not-implemented";
|
|
30
30
|
readonly AUTHENTICATION_REQUIRED: "https://api.aventure.vc/errors/authentication-required";
|
|
31
|
-
readonly AUTH_DOCS_REQUIRED: "https://api.aventure.vc/errors/auth.docs-required";
|
|
32
|
-
readonly AUTH_ADMIN_KEY_NOT_CONFIGURED: "https://api.aventure.vc/errors/auth.admin-key-not-configured";
|
|
33
|
-
readonly AUTH_EMPTY_ADMIN_KEY: "https://api.aventure.vc/errors/auth.empty-admin-key";
|
|
34
|
-
readonly AUTH_EMPTY_ADMIN_BEARER: "https://api.aventure.vc/errors/auth.empty-admin-bearer";
|
|
35
|
-
readonly AUTH_INVALID_ADMIN_KEY: "https://api.aventure.vc/errors/auth.invalid-admin-key";
|
|
36
|
-
readonly AUTH_MISSING_ADMIN_KEY: "https://api.aventure.vc/errors/auth.missing-admin-key";
|
|
37
|
-
readonly AUTH_METRICS_UNAUTHORIZED: "https://api.aventure.vc/errors/auth.metrics-unauthorized";
|
|
38
31
|
readonly ACCESS_DENIED: "https://api.aventure.vc/errors/access-denied";
|
|
39
32
|
readonly NOT_FOUND: "https://api.aventure.vc/errors/not-found";
|
|
40
33
|
readonly ENDPOINT_NOT_FOUND: "https://api.aventure.vc/errors/endpoint-not-found";
|
|
@@ -93,13 +86,6 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
93
86
|
readonly UNEXPECTED_ERROR: "https://api.aventure.vc/errors/unexpected-error";
|
|
94
87
|
readonly NOT_IMPLEMENTED: "https://api.aventure.vc/errors/not-implemented";
|
|
95
88
|
readonly AUTHENTICATION_REQUIRED: "https://api.aventure.vc/errors/authentication-required";
|
|
96
|
-
readonly AUTH_DOCS_REQUIRED: "https://api.aventure.vc/errors/auth.docs-required";
|
|
97
|
-
readonly AUTH_ADMIN_KEY_NOT_CONFIGURED: "https://api.aventure.vc/errors/auth.admin-key-not-configured";
|
|
98
|
-
readonly AUTH_EMPTY_ADMIN_KEY: "https://api.aventure.vc/errors/auth.empty-admin-key";
|
|
99
|
-
readonly AUTH_EMPTY_ADMIN_BEARER: "https://api.aventure.vc/errors/auth.empty-admin-bearer";
|
|
100
|
-
readonly AUTH_INVALID_ADMIN_KEY: "https://api.aventure.vc/errors/auth.invalid-admin-key";
|
|
101
|
-
readonly AUTH_MISSING_ADMIN_KEY: "https://api.aventure.vc/errors/auth.missing-admin-key";
|
|
102
|
-
readonly AUTH_METRICS_UNAUTHORIZED: "https://api.aventure.vc/errors/auth.metrics-unauthorized";
|
|
103
89
|
readonly ACCESS_DENIED: "https://api.aventure.vc/errors/access-denied";
|
|
104
90
|
readonly NOT_FOUND: "https://api.aventure.vc/errors/not-found";
|
|
105
91
|
readonly ENDPOINT_NOT_FOUND: "https://api.aventure.vc/errors/endpoint-not-found";
|
package/dist/problem/type.js
CHANGED
|
@@ -20,13 +20,6 @@ const ProblemTypeSchemaKnownMembers = z.enum({
|
|
|
20
20
|
UNEXPECTED_ERROR: "https://api.aventure.vc/errors/unexpected-error",
|
|
21
21
|
NOT_IMPLEMENTED: "https://api.aventure.vc/errors/not-implemented",
|
|
22
22
|
AUTHENTICATION_REQUIRED: "https://api.aventure.vc/errors/authentication-required",
|
|
23
|
-
AUTH_DOCS_REQUIRED: "https://api.aventure.vc/errors/auth.docs-required",
|
|
24
|
-
AUTH_ADMIN_KEY_NOT_CONFIGURED: "https://api.aventure.vc/errors/auth.admin-key-not-configured",
|
|
25
|
-
AUTH_EMPTY_ADMIN_KEY: "https://api.aventure.vc/errors/auth.empty-admin-key",
|
|
26
|
-
AUTH_EMPTY_ADMIN_BEARER: "https://api.aventure.vc/errors/auth.empty-admin-bearer",
|
|
27
|
-
AUTH_INVALID_ADMIN_KEY: "https://api.aventure.vc/errors/auth.invalid-admin-key",
|
|
28
|
-
AUTH_MISSING_ADMIN_KEY: "https://api.aventure.vc/errors/auth.missing-admin-key",
|
|
29
|
-
AUTH_METRICS_UNAUTHORIZED: "https://api.aventure.vc/errors/auth.metrics-unauthorized",
|
|
30
23
|
ACCESS_DENIED: "https://api.aventure.vc/errors/access-denied",
|
|
31
24
|
NOT_FOUND: "https://api.aventure.vc/errors/not-found",
|
|
32
25
|
ENDPOINT_NOT_FOUND: "https://api.aventure.vc/errors/endpoint-not-found",
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const ResearchFindingSchemaDefinition: z.ZodObject<{
|
|
3
3
|
end: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4
|
+
evidenceView: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
5
|
+
ARTICLE_V1: "ARTICLE_V1";
|
|
6
|
+
LEGACY: "LEGACY";
|
|
7
|
+
}>, z.ZodString]> & {
|
|
8
|
+
enum: {
|
|
9
|
+
ARTICLE_V1: "ARTICLE_V1";
|
|
10
|
+
LEGACY: "LEGACY";
|
|
11
|
+
};
|
|
12
|
+
}>>;
|
|
4
13
|
gateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
14
|
quote: z.ZodOptional<z.ZodString>;
|
|
6
15
|
sourceDocumentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
package/dist/research/finding.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
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
2
|
import { z } from "zod/v4";
|
|
3
|
+
import { SourceDocumentEvidenceViewSchema } from "../source/document-evidence-view.js";
|
|
3
4
|
import { WriterClaimSurfaceSchema } from "../writer/claim-surface.js";
|
|
4
5
|
const ResearchFindingSchemaDefinition = z.object({
|
|
5
6
|
/** Exclusive UTF-16 end offset, as an entity folio fact's end. */
|
|
6
7
|
end: z.int().nullish(),
|
|
8
|
+
/** Evidence view returned with the folio span; omitted values retain LEGACY offsets. Copy this value with sourceDocumentId, start and end. */
|
|
9
|
+
evidenceView: SourceDocumentEvidenceViewSchema.nullish(),
|
|
7
10
|
/** Profile field the fact fills, when known; omit it and the run picks the field the fact belongs to. */
|
|
8
11
|
gateId: z.string().nullish(),
|
|
9
12
|
/** 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. */
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Captured-text representation: LEGACY preserves existing offsets; ARTICLE_V1 reads the captured article without page controls.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema SourceDocumentEvidenceView
|
|
6
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
7
|
+
* @endpoint GET /v1/research/runs/{runId}/draft/sections/{sectionKey}/writes/{writeId}
|
|
8
|
+
* @endpoint POST /v1/entities/{entityId}/enrichments
|
|
9
|
+
* @endpoint POST /v1/research/runs
|
|
10
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
11
|
+
* @usedBySchema EntityAnalysisCitationSchema
|
|
12
|
+
* @usedBySchema ResearchFindingSchema
|
|
13
|
+
* @contractShape source.document-evidence-view
|
|
14
|
+
* @contractRole canonical
|
|
15
|
+
*/
|
|
16
|
+
export declare const SourceDocumentEvidenceViewSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
17
|
+
ARTICLE_V1: "ARTICLE_V1";
|
|
18
|
+
LEGACY: "LEGACY";
|
|
19
|
+
}>, z.ZodString]> & {
|
|
20
|
+
enum: {
|
|
21
|
+
ARTICLE_V1: "ARTICLE_V1";
|
|
22
|
+
LEGACY: "LEGACY";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type SourceDocumentEvidenceView = z.infer<typeof SourceDocumentEvidenceViewSchema>;
|
|
26
|
+
//# sourceMappingURL=document-evidence-view.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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 SourceDocumentEvidenceViewSchemaKnownMembers = z.enum(["LEGACY", "ARTICLE_V1"]);
|
|
4
|
+
/**
|
|
5
|
+
* Captured-text representation: LEGACY preserves existing offsets; ARTICLE_V1 reads the captured article without page controls.
|
|
6
|
+
*
|
|
7
|
+
* @openapiSchema SourceDocumentEvidenceView
|
|
8
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
9
|
+
* @endpoint GET /v1/research/runs/{runId}/draft/sections/{sectionKey}/writes/{writeId}
|
|
10
|
+
* @endpoint POST /v1/entities/{entityId}/enrichments
|
|
11
|
+
* @endpoint POST /v1/research/runs
|
|
12
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
13
|
+
* @usedBySchema EntityAnalysisCitationSchema
|
|
14
|
+
* @usedBySchema ResearchFindingSchema
|
|
15
|
+
* @contractShape source.document-evidence-view
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export const SourceDocumentEvidenceViewSchema = Object.assign(z.union([SourceDocumentEvidenceViewSchemaKnownMembers, z.string()]), { enum: SourceDocumentEvidenceViewSchemaKnownMembers.enum });
|
|
19
|
+
//# sourceMappingURL=document-evidence-view.js.map
|
package/dist/writer/brief.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { z } from "zod/v4";
|
|
|
13
13
|
export declare const WriterBriefSchema: z.ZodObject<{
|
|
14
14
|
claim: z.ZodArray<z.ZodType<{
|
|
15
15
|
end?: number | null | undefined;
|
|
16
|
+
evidenceView?: string | null | undefined;
|
|
16
17
|
gateId?: string | null | undefined;
|
|
17
18
|
quote?: string | undefined;
|
|
18
19
|
sourceDocumentId?: string | null | undefined;
|
|
@@ -22,6 +23,7 @@ export declare const WriterBriefSchema: z.ZodObject<{
|
|
|
22
23
|
writerSurface?: string | null | undefined;
|
|
23
24
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
24
25
|
end?: number | null | undefined;
|
|
26
|
+
evidenceView?: string | null | undefined;
|
|
25
27
|
gateId?: string | null | undefined;
|
|
26
28
|
quote?: string | undefined;
|
|
27
29
|
sourceDocumentId?: string | null | undefined;
|