@aventurevc/api-schemas 0.8.410 → 0.8.412
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 +16 -0
- package/dist/harness/run-detail.d.ts +16 -0
- package/dist/harness/run-status.d.ts +1 -0
- package/dist/harness/run-status.js +1 -0
- package/dist/harness/run-terminal-decision.d.ts +33 -0
- package/dist/harness/run-terminal-decision.js +36 -0
- package/dist/harness/run.d.ts +16 -0
- package/dist/harness/run.js +3 -0
- package/dist/http/problem-detail.d.ts +1 -0
- package/dist/http/problem-detail.js +2 -0
- package/dist/openapi-component-manifest.js +4 -0
- package/dist/pagination/schemas.d.ts +16 -0
- package/package.json +1 -1
|
@@ -121,6 +121,22 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
|
|
|
121
121
|
subagentModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
122
|
subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
123
123
|
taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
124
|
+
terminalDecision: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
125
|
+
engineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
127
|
+
iteration: z.ZodInt;
|
|
128
|
+
lockedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
129
|
+
sequence: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
130
|
+
status: z.ZodEnum<{
|
|
131
|
+
completed: "completed";
|
|
132
|
+
failed: "failed";
|
|
133
|
+
queued: "queued";
|
|
134
|
+
running: "running";
|
|
135
|
+
stopped: "stopped";
|
|
136
|
+
}>;
|
|
137
|
+
suppressionEntityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
138
|
+
suppressionProvenanceEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
139
|
+
}, z.core.$strip>>>;
|
|
124
140
|
type: z.ZodEnum<{
|
|
125
141
|
ENRICHMENT: "ENRICHMENT";
|
|
126
142
|
TASK: "TASK";
|
|
@@ -279,6 +279,22 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
|
|
|
279
279
|
subagentModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
280
|
subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
281
281
|
taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
282
|
+
terminalDecision: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
283
|
+
engineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
|
+
finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
285
|
+
iteration: z.ZodInt;
|
|
286
|
+
lockedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
287
|
+
sequence: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
288
|
+
status: z.ZodEnum<{
|
|
289
|
+
completed: "completed";
|
|
290
|
+
failed: "failed";
|
|
291
|
+
queued: "queued";
|
|
292
|
+
running: "running";
|
|
293
|
+
stopped: "stopped";
|
|
294
|
+
}>;
|
|
295
|
+
suppressionEntityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
296
|
+
suppressionProvenanceEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
297
|
+
}, z.core.$strip>>>;
|
|
282
298
|
type: z.ZodEnum<{
|
|
283
299
|
ENRICHMENT: "ENRICHMENT";
|
|
284
300
|
TASK: "TASK";
|
|
@@ -10,6 +10,7 @@ import { z } from "zod/v4";
|
|
|
10
10
|
* @endpoint POST /v1/people/{personId}/enrichments
|
|
11
11
|
* @endpoint POST /v1/research/runs
|
|
12
12
|
* @usedBySchema HarnessRunSchema
|
|
13
|
+
* @usedBySchema HarnessRunTerminalDecisionSchema
|
|
13
14
|
* @contractShape harness.run-status
|
|
14
15
|
* @contractRole canonical
|
|
15
16
|
*/
|
|
@@ -11,6 +11,7 @@ import { z } from "zod/v4";
|
|
|
11
11
|
* @endpoint POST /v1/people/{personId}/enrichments
|
|
12
12
|
* @endpoint POST /v1/research/runs
|
|
13
13
|
* @usedBySchema HarnessRunSchema
|
|
14
|
+
* @usedBySchema HarnessRunTerminalDecisionSchema
|
|
14
15
|
* @contractShape harness.run-status
|
|
15
16
|
* @contractRole canonical
|
|
16
17
|
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Server admission for one terminal transition
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema HarnessRunTerminalDecision
|
|
6
|
+
* @endpoint GET /v1/research/runs
|
|
7
|
+
* @endpoint GET /v1/research/runs/{runId}
|
|
8
|
+
* @endpoint POST /v1/enrichments
|
|
9
|
+
* @endpoint POST /v1/entities/{entityId}/enrichments
|
|
10
|
+
* @endpoint POST /v1/people/{personId}/enrichments
|
|
11
|
+
* @endpoint POST /v1/research/runs
|
|
12
|
+
* @usedBySchema HarnessRunSchema
|
|
13
|
+
* @contractShape harness.run-terminal-decision
|
|
14
|
+
* @contractRole canonical
|
|
15
|
+
*/
|
|
16
|
+
export declare const HarnessRunTerminalDecisionSchema: z.ZodObject<{
|
|
17
|
+
engineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
19
|
+
iteration: z.ZodInt;
|
|
20
|
+
lockedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
21
|
+
sequence: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
completed: "completed";
|
|
24
|
+
failed: "failed";
|
|
25
|
+
queued: "queued";
|
|
26
|
+
running: "running";
|
|
27
|
+
stopped: "stopped";
|
|
28
|
+
}>;
|
|
29
|
+
suppressionEntityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
30
|
+
suppressionProvenanceEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type HarnessRunTerminalDecision = z.infer<typeof HarnessRunTerminalDecisionSchema>;
|
|
33
|
+
//# sourceMappingURL=run-terminal-decision.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { HarnessRunStatusSchema } from "./run-status.js";
|
|
4
|
+
/**
|
|
5
|
+
* Server admission for one terminal transition
|
|
6
|
+
*
|
|
7
|
+
* @openapiSchema HarnessRunTerminalDecision
|
|
8
|
+
* @endpoint GET /v1/research/runs
|
|
9
|
+
* @endpoint GET /v1/research/runs/{runId}
|
|
10
|
+
* @endpoint POST /v1/enrichments
|
|
11
|
+
* @endpoint POST /v1/entities/{entityId}/enrichments
|
|
12
|
+
* @endpoint POST /v1/people/{personId}/enrichments
|
|
13
|
+
* @endpoint POST /v1/research/runs
|
|
14
|
+
* @usedBySchema HarnessRunSchema
|
|
15
|
+
* @contractShape harness.run-terminal-decision
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export const HarnessRunTerminalDecisionSchema = z.object({
|
|
19
|
+
/** Lease owner at the terminal transition */
|
|
20
|
+
engineId: z.string().nullish(),
|
|
21
|
+
/** Finish time accepted by the terminal transition */
|
|
22
|
+
finishedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
23
|
+
/** Iteration accepted by the terminal transition */
|
|
24
|
+
iteration: z.int(),
|
|
25
|
+
/** Lease generation at the terminal transition */
|
|
26
|
+
lockedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
27
|
+
/** Server event sequence on run reads; the event stream supplies it separately */
|
|
28
|
+
sequence: z.int().nullish(),
|
|
29
|
+
/** Admitted terminal status */
|
|
30
|
+
status: HarnessRunStatusSchema,
|
|
31
|
+
/** Accepted entity whose suppression admitted this finish */
|
|
32
|
+
suppressionEntityId: z.uuid().nullish(),
|
|
33
|
+
/** Canonical provenance event that admitted suppression */
|
|
34
|
+
suppressionProvenanceEventId: z.number().int().nullish(),
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=run-terminal-decision.js.map
|
package/dist/harness/run.d.ts
CHANGED
|
@@ -119,6 +119,22 @@ export declare const HarnessRunSchema: z.ZodObject<{
|
|
|
119
119
|
subagentModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
120
|
subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
121
121
|
taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
122
|
+
terminalDecision: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
123
|
+
engineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
125
|
+
iteration: z.ZodInt;
|
|
126
|
+
lockedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
127
|
+
sequence: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
128
|
+
status: z.ZodEnum<{
|
|
129
|
+
completed: "completed";
|
|
130
|
+
failed: "failed";
|
|
131
|
+
queued: "queued";
|
|
132
|
+
running: "running";
|
|
133
|
+
stopped: "stopped";
|
|
134
|
+
}>;
|
|
135
|
+
suppressionEntityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
136
|
+
suppressionProvenanceEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
122
138
|
type: z.ZodEnum<{
|
|
123
139
|
ENRICHMENT: "ENRICHMENT";
|
|
124
140
|
TASK: "TASK";
|
package/dist/harness/run.js
CHANGED
|
@@ -9,6 +9,7 @@ import { HarnessRunExecutionSchema } from "./run-execution.js";
|
|
|
9
9
|
import { HarnessRunFollowUpAdmissionSchema } from "./run-follow-up-admission.js";
|
|
10
10
|
import { HarnessRunLaneSchema } from "./run-lane.js";
|
|
11
11
|
import { HarnessRunStatusSchema } from "./run-status.js";
|
|
12
|
+
import { HarnessRunTerminalDecisionSchema } from "./run-terminal-decision.js";
|
|
12
13
|
import { HarnessRunTypeSchema } from "./run-type.js";
|
|
13
14
|
import { ResearchAllowanceTypeSchema } from "../research/allowance-type.js";
|
|
14
15
|
/**
|
|
@@ -94,6 +95,8 @@ export const HarnessRunSchema = z.object({
|
|
|
94
95
|
subagentModelRouted: z.boolean().nullish(),
|
|
95
96
|
/** Research presets filed with the run */
|
|
96
97
|
taskPresetKey: z.array(z.string()).nullish(),
|
|
98
|
+
/** Newest server terminal decision; mutable progress cannot replace it */
|
|
99
|
+
terminalDecision: HarnessRunTerminalDecisionSchema.nullish(),
|
|
97
100
|
/** Run kind: ENRICHMENT for a research request a caller filed, TASK for a narrower run aVenture scheduled */
|
|
98
101
|
type: HarnessRunTypeSchema,
|
|
99
102
|
/** Last update timestamp */
|
|
@@ -68,6 +68,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
68
68
|
fundraise_evidence_unsupported: "fundraise_evidence_unsupported";
|
|
69
69
|
geocode_provider_error: "geocode_provider_error";
|
|
70
70
|
github_fetch_failed: "github_fetch_failed";
|
|
71
|
+
harness_suppression_unverified: "harness_suppression_unverified";
|
|
71
72
|
image_blocklist_match: "image_blocklist_match";
|
|
72
73
|
image_brand_mismatch: "image_brand_mismatch";
|
|
73
74
|
image_monochrome: "image_monochrome";
|
|
@@ -26,6 +26,8 @@ export const ProblemDetailSchema = z.object({
|
|
|
26
26
|
code: z
|
|
27
27
|
.union([
|
|
28
28
|
z.enum([
|
|
29
|
+
/** The run's suppression of its accepted full-run entity is unverified. Retain the original failure outcome and terminal evidence. */
|
|
30
|
+
"harness_suppression_unverified",
|
|
29
31
|
/** An anonymous caller cannot own a lookup job. Sign in to request async. */
|
|
30
32
|
"async_lookup_sign_in_required",
|
|
31
33
|
/** Caller is authenticated but lacks the required role for this operation. Agent action: surface the requiredRole field on the ProblemDetail and stop; do not retry without role escalation. */
|
|
@@ -746,6 +746,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
746
746
|
schemaName: "HarnessRunRequestOutcomeStatusSchema",
|
|
747
747
|
},
|
|
748
748
|
HarnessRunStatus: { modulePath: "harness/run-status", schemaName: "HarnessRunStatusSchema" },
|
|
749
|
+
HarnessRunTerminalDecision: {
|
|
750
|
+
modulePath: "harness/run-terminal-decision",
|
|
751
|
+
schemaName: "HarnessRunTerminalDecisionSchema",
|
|
752
|
+
},
|
|
749
753
|
HarnessRunTurn: { modulePath: "harness/run-turn", schemaName: "HarnessRunTurnSchema" },
|
|
750
754
|
HarnessRunType: { modulePath: "harness/run-type", schemaName: "HarnessRunTypeSchema" },
|
|
751
755
|
HarnessTaskFact: { modulePath: "harness/task-fact", schemaName: "HarnessTaskFactSchema" },
|
|
@@ -14656,6 +14656,22 @@ declare const PageHarnessRunSchemaDefinition: z.ZodObject<{
|
|
|
14656
14656
|
subagentModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14657
14657
|
subagentModelRouted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14658
14658
|
taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14659
|
+
terminalDecision: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14660
|
+
engineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14661
|
+
finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
14662
|
+
iteration: z.ZodInt;
|
|
14663
|
+
lockedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
14664
|
+
sequence: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
14665
|
+
status: z.ZodEnum<{
|
|
14666
|
+
completed: "completed";
|
|
14667
|
+
failed: "failed";
|
|
14668
|
+
queued: "queued";
|
|
14669
|
+
running: "running";
|
|
14670
|
+
stopped: "stopped";
|
|
14671
|
+
}>;
|
|
14672
|
+
suppressionEntityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
14673
|
+
suppressionProvenanceEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14674
|
+
}, z.core.$strip>>>;
|
|
14659
14675
|
type: z.ZodEnum<{
|
|
14660
14676
|
ENRICHMENT: "ENRICHMENT";
|
|
14661
14677
|
TASK: "TASK";
|