@aventurevc/api-schemas 0.8.357 → 0.8.359

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.
@@ -33,6 +33,15 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
33
33
  unassigned: "unassigned";
34
34
  }>;
35
35
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
37
+ DIRECT: "DIRECT";
38
+ ENGINE: "ENGINE";
39
+ }>, z.ZodString]> & {
40
+ enum: {
41
+ DIRECT: "DIRECT";
42
+ ENGINE: "ENGINE";
43
+ };
44
+ }>>;
36
45
  failureClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
46
  finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
38
47
  firstStart: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -90,6 +99,15 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
90
99
  WEB_SEARCH: "WEB_SEARCH";
91
100
  };
92
101
  }>>;
102
+ researchOutcome: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
103
+ BLOCKED: "BLOCKED";
104
+ PARTIAL: "PARTIAL";
105
+ }>, z.ZodString]> & {
106
+ enum: {
107
+ BLOCKED: "BLOCKED";
108
+ PARTIAL: "PARTIAL";
109
+ };
110
+ }>>;
93
111
  resumeSafeUntil: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
94
112
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
95
113
  status: z.ZodEnum<{
@@ -0,0 +1,29 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Unsuccessful direct-session research disposition
4
+ *
5
+ * @openapiSchema HarnessResearchOutcome
6
+ * @endpoint GET /v1/research-runs
7
+ * @endpoint GET /v1/research/runs
8
+ * @endpoint GET /v1/research-runs/{runId}
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
+ * @endpoint POST /v1/research/runs
15
+ * @usedBySchema HarnessRunSchema
16
+ * @contractShape harness.research-outcome
17
+ * @contractRole canonical
18
+ */
19
+ export declare const HarnessResearchOutcomeSchema: z.ZodUnion<readonly [z.ZodEnum<{
20
+ BLOCKED: "BLOCKED";
21
+ PARTIAL: "PARTIAL";
22
+ }>, z.ZodString]> & {
23
+ enum: {
24
+ BLOCKED: "BLOCKED";
25
+ PARTIAL: "PARTIAL";
26
+ };
27
+ };
28
+ export type HarnessResearchOutcome = z.infer<typeof HarnessResearchOutcomeSchema>;
29
+ //# sourceMappingURL=research-outcome.d.ts.map
@@ -0,0 +1,22 @@
1
+ // LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
2
+ import { z } from "zod/v4";
3
+ const HarnessResearchOutcomeSchemaKnownMembers = z.enum(["PARTIAL", "BLOCKED"]);
4
+ /**
5
+ * Unsuccessful direct-session research disposition
6
+ *
7
+ * @openapiSchema HarnessResearchOutcome
8
+ * @endpoint GET /v1/research-runs
9
+ * @endpoint GET /v1/research/runs
10
+ * @endpoint GET /v1/research-runs/{runId}
11
+ * @endpoint GET /v1/research/runs/{runId}
12
+ * @endpoint POST /v1/enrichments
13
+ * @endpoint POST /v1/entities/{entityId}/enrichments
14
+ * @endpoint POST /v1/people/{personId}/enrichments
15
+ * @endpoint POST /v1/research-runs
16
+ * @endpoint POST /v1/research/runs
17
+ * @usedBySchema HarnessRunSchema
18
+ * @contractShape harness.research-outcome
19
+ * @contractRole canonical
20
+ */
21
+ export const HarnessResearchOutcomeSchema = Object.assign(z.union([HarnessResearchOutcomeSchemaKnownMembers, z.string()]), { enum: HarnessResearchOutcomeSchemaKnownMembers.enum });
22
+ //# sourceMappingURL=research-outcome.js.map
@@ -12,7 +12,7 @@ const HarnessRunCreateSchemaDefinition = z.object({
12
12
  model: z.string().nullish(),
13
13
  /** Name of the subject at url, such as Clarity Health; the run verifies it and uses it to pick the right subject when the site names several */
14
14
  name: z.string().max(200).nullish(),
15
- /** Requester values keyed by the selected task's input definitions. ENTITY binds from url and a supplied entityId must match it. TEXT requires explicit text; a missing required or ambiguous supplied value is rejected before enqueue; omitted optional inputs stay unbound. Never infer values from userPrompt. */
15
+ /** Requester values keyed by the selected task's input definitions. ENTITY binds from url and a supplied entityId must match it; a task declaring several ENTITY inputs binds one from url and takes each other as the keyed entityId of an existing record (404 when none exists). TEXT requires explicit text; a missing required or ambiguous supplied value is rejected before enqueue; omitted optional inputs stay unbound. Never infer values from userPrompt. */
16
16
  taskInput: z.array(HarnessTaskInputBindingSchema).optional(),
17
17
  /** Research presets that focus the run, listed by GET /v1/research/runs/presets; omit them for a full run */
18
18
  taskPresetKey: z.array(z.string()).nullish(),
@@ -182,6 +182,15 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
182
182
  unassigned: "unassigned";
183
183
  }>;
184
184
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
186
+ DIRECT: "DIRECT";
187
+ ENGINE: "ENGINE";
188
+ }>, z.ZodString]> & {
189
+ enum: {
190
+ DIRECT: "DIRECT";
191
+ ENGINE: "ENGINE";
192
+ };
193
+ }>>;
185
194
  failureClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
195
  finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
187
196
  firstStart: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -239,6 +248,15 @@ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
239
248
  WEB_SEARCH: "WEB_SEARCH";
240
249
  };
241
250
  }>>;
251
+ researchOutcome: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
252
+ BLOCKED: "BLOCKED";
253
+ PARTIAL: "PARTIAL";
254
+ }>, z.ZodString]> & {
255
+ enum: {
256
+ BLOCKED: "BLOCKED";
257
+ PARTIAL: "PARTIAL";
258
+ };
259
+ }>>;
242
260
  resumeSafeUntil: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
243
261
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
244
262
  status: z.ZodEnum<{
@@ -0,0 +1,29 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Executor of the accepted research work; independent of its requested scope
4
+ *
5
+ * @openapiSchema HarnessRunExecution
6
+ * @endpoint GET /v1/research-runs
7
+ * @endpoint GET /v1/research/runs
8
+ * @endpoint GET /v1/research-runs/{runId}
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
+ * @endpoint POST /v1/research/runs
15
+ * @usedBySchema HarnessRunSchema
16
+ * @contractShape harness.run-execution
17
+ * @contractRole canonical
18
+ */
19
+ export declare const HarnessRunExecutionSchema: z.ZodUnion<readonly [z.ZodEnum<{
20
+ DIRECT: "DIRECT";
21
+ ENGINE: "ENGINE";
22
+ }>, z.ZodString]> & {
23
+ enum: {
24
+ DIRECT: "DIRECT";
25
+ ENGINE: "ENGINE";
26
+ };
27
+ };
28
+ export type HarnessRunExecution = z.infer<typeof HarnessRunExecutionSchema>;
29
+ //# sourceMappingURL=run-execution.d.ts.map
@@ -0,0 +1,22 @@
1
+ // LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
2
+ import { z } from "zod/v4";
3
+ const HarnessRunExecutionSchemaKnownMembers = z.enum(["ENGINE", "DIRECT"]);
4
+ /**
5
+ * Executor of the accepted research work; independent of its requested scope
6
+ *
7
+ * @openapiSchema HarnessRunExecution
8
+ * @endpoint GET /v1/research-runs
9
+ * @endpoint GET /v1/research/runs
10
+ * @endpoint GET /v1/research-runs/{runId}
11
+ * @endpoint GET /v1/research/runs/{runId}
12
+ * @endpoint POST /v1/enrichments
13
+ * @endpoint POST /v1/entities/{entityId}/enrichments
14
+ * @endpoint POST /v1/people/{personId}/enrichments
15
+ * @endpoint POST /v1/research-runs
16
+ * @endpoint POST /v1/research/runs
17
+ * @usedBySchema HarnessRunSchema
18
+ * @contractShape harness.run-execution
19
+ * @contractRole canonical
20
+ */
21
+ export const HarnessRunExecutionSchema = Object.assign(z.union([HarnessRunExecutionSchemaKnownMembers, z.string()]), { enum: HarnessRunExecutionSchemaKnownMembers.enum });
22
+ //# sourceMappingURL=run-execution.js.map
@@ -34,6 +34,15 @@ export declare const HarnessRunSchema: z.ZodObject<{
34
34
  unassigned: "unassigned";
35
35
  }>;
36
36
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
38
+ DIRECT: "DIRECT";
39
+ ENGINE: "ENGINE";
40
+ }>, z.ZodString]> & {
41
+ enum: {
42
+ DIRECT: "DIRECT";
43
+ ENGINE: "ENGINE";
44
+ };
45
+ }>>;
37
46
  failureClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
47
  finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
39
48
  firstStart: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -91,6 +100,15 @@ export declare const HarnessRunSchema: z.ZodObject<{
91
100
  WEB_SEARCH: "WEB_SEARCH";
92
101
  };
93
102
  }>>;
103
+ researchOutcome: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
104
+ BLOCKED: "BLOCKED";
105
+ PARTIAL: "PARTIAL";
106
+ }>, z.ZodString]> & {
107
+ enum: {
108
+ BLOCKED: "BLOCKED";
109
+ PARTIAL: "PARTIAL";
110
+ };
111
+ }>>;
94
112
  resumeSafeUntil: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
95
113
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
96
114
  status: z.ZodEnum<{
@@ -3,7 +3,9 @@ import { z } from "zod/v4";
3
3
  import { EnrichmentModeSchema } from "../enrichment/mode.js";
4
4
  import { HarnessChassisSchema } from "./chassis.js";
5
5
  import { HarnessLlmApiSchema } from "./llm-api.js";
6
+ import { HarnessResearchOutcomeSchema } from "./research-outcome.js";
6
7
  import { HarnessRunEnvironmentSchema } from "./run-environment.js";
8
+ import { HarnessRunExecutionSchema } from "./run-execution.js";
7
9
  import { HarnessRunFollowUpAdmissionSchema } from "./run-follow-up-admission.js";
8
10
  import { HarnessRunLaneSchema } from "./run-lane.js";
9
11
  import { HarnessRunStatusSchema } from "./run-status.js";
@@ -43,6 +45,8 @@ export const HarnessRunSchema = z.object({
43
45
  environment: HarnessRunEnvironmentSchema,
44
46
  /** Why the run failed; null unless failed */
45
47
  error: z.string().nullish(),
48
+ /** Executor of this research attempt; absent on older APIs */
49
+ execution: HarnessRunExecutionSchema.nullish(),
46
50
  /** Typed terminal-failure class from the harness retry classifier (e.g. runtime_cap, escalated, provider_capacity, context_overflow); null unless failed */
47
51
  failureClass: z.string().nullish(),
48
52
  /** Run completion timestamp */
@@ -69,7 +73,7 @@ export const HarnessRunSchema = z.object({
69
73
  maxScoutConcurrent: z.int(),
70
74
  /** Enrichment breadth selected for this run */
71
75
  mode: EnrichmentModeSchema,
72
- /** Model the run uses */
76
+ /** Engine model */
73
77
  model: z.string(),
74
78
  /** 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 */
75
79
  modelRouted: z.boolean().nullish(),
@@ -77,6 +81,8 @@ export const HarnessRunSchema = z.object({
77
81
  nextAttemptAt: z.iso.datetime({ offset: true }).nullish(),
78
82
  /** Research allowance this run reserved when it was filed: COMPANY or PERSON; null for a run filed without one */
79
83
  researchAllowanceType: ResearchAllowanceTypeSchema.nullish(),
84
+ /** Partial or blocked direct research, derived from its recorded failure class; null for other outcomes */
85
+ researchOutcome: HarnessResearchOutcomeSchema.nullish(),
80
86
  /** Instant past which a warm resume is no longer guaranteed; the harness writes it with session_resume from the model's cache window. Warm-resumable now iff failed/stopped and this is in the future. Null when there is no resume window. */
81
87
  resumeSafeUntil: z.iso.datetime({ offset: true }).nullish(),
82
88
  /** Run start timestamp */
@@ -127,6 +127,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
127
127
  showOnSitemap: z.ZodBoolean;
128
128
  slug: z.ZodString;
129
129
  }, z.core.$strip>>>;
130
+ coveringRunId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
130
131
  detail: z.ZodOptional<z.ZodString>;
131
132
  details: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodType<{
132
133
  conflictType: string;
@@ -196,6 +196,8 @@ export const ProblemDetailSchema = z.object({
196
196
  ])
197
197
  .nullish(),
198
198
  conflictingRecord: CurrentSlugOwnerSchema.nullish(),
199
+ /** The caller's own queued or running research request that already covers the record on a harness-run-already-requested problem; absent when another requester or aVenture filed it, and for every other problem. */
200
+ coveringRunId: z.uuid().nullish(),
199
201
  detail: z.string().optional(),
200
202
  /** Structured conflict details. A possible duplicate or an ambiguous lookup returns its candidate records; score and threshold rank the candidates and do not prove that the requested record is absent. */
201
203
  details: DomainConflictDetailsSchema.nullish(),
@@ -72,6 +72,9 @@ export declare const IdentificationSubjectSchema: z.ZodObject<{
72
72
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
73
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
74
  providerId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
75
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
76
+ INVESTOR: "INVESTOR";
77
+ }>>>;
75
78
  sourceDocumentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
76
79
  sourceIdentifier: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
80
  effectiveFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -35,6 +35,8 @@ export const IdentificationSubjectSchema = z.object({
35
35
  name: z.string().max(200).nullish(),
36
36
  /** Provider entity id for a Product or Service lookup. Omit it when the provider is unknown. With no typeRecord, searches both Product and Service. Invalid for a company type or a person lookup. */
37
37
  providerId: z.uuid().nullish(),
38
+ /** Part the subject plays in the source: INVESTOR when the source lists it as an investor. Unlike typeRecord it keeps every record type a candidate, so a Company or Nonprofit that invests can still match. With it, a lookup with no url, filing, sourceIdentifier, or sourceNewsId binds a same-named Investment Firm or Fund over a record that does not invest, and answers NEEDS_REVIEW when the bound record shares its name with another live firm or record of its type family, unless the location matches only the bound record's address. Without it, an Investment Firm or Fund typeRecord applies the firm preference alone. Omit it otherwise. */
39
+ role: z.enum(["INVESTOR"]).nullish(),
38
40
  /** Exact stored capture of sourceUrl, never an owned website. Requires capture-read authority and a matching successful evidence body; cannot accompany sourceNewsId. */
39
41
  sourceDocumentId: z.uuid().nullish(),
40
42
  /** Permanent source identity with idType and identifier for a catalog source-binding type. Legacy source may be omitted or null; non-null labels are rejected. Requires private visibility and resolves before names or URLs. */
@@ -73,6 +73,9 @@ declare const LookupJobMutationSchemaDefinition: z.ZodObject<{
73
73
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
74
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
75
  providerId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
76
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
77
+ INVESTOR: "INVESTOR";
78
+ }>>>;
76
79
  sourceDocumentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
77
80
  sourceIdentifier: z.ZodOptional<z.ZodNullable<z.ZodObject<{
78
81
  effectiveFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2218,6 +2218,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
2218
2218
  location?: string | null | undefined;
2219
2219
  name?: string | null | undefined;
2220
2220
  providerId?: string | null | undefined;
2221
+ role?: "INVESTOR" | null | undefined;
2221
2222
  sourceDocumentId?: string | null | undefined;
2222
2223
  sourceIdentifier?: {
2223
2224
  effectiveFrom?: string | null | undefined;
@@ -2282,6 +2283,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
2282
2283
  location?: string | null | undefined;
2283
2284
  name?: string | null | undefined;
2284
2285
  providerId?: string | null | undefined;
2286
+ role?: "INVESTOR" | null | undefined;
2285
2287
  sourceDocumentId?: string | null | undefined;
2286
2288
  sourceIdentifier?: {
2287
2289
  effectiveFrom?: string | null | undefined;
@@ -2308,6 +2310,17 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
2308
2310
  statusUrl: z.ZodString;
2309
2311
  }, z.core.$strip>>>;
2310
2312
  faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2313
+ kind: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
2314
+ ARTICLE: "ARTICLE";
2315
+ POST: "POST";
2316
+ PROFILE: "PROFILE";
2317
+ }>, z.ZodString]> & {
2318
+ enum: {
2319
+ ARTICLE: "ARTICLE";
2320
+ POST: "POST";
2321
+ PROFILE: "PROFILE";
2322
+ };
2323
+ }>>;
2311
2324
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2312
2325
  message: z.ZodArray<z.ZodString>;
2313
2326
  p95Ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -31,7 +31,7 @@ const LookupJobSchemaDefinition = z.object({
31
31
  news: NewsSchema.nullish(),
32
32
  /** The article the job reads or names supplied for a bulk lookup. */
33
33
  source: LookupJobMutationSchema,
34
- /** Publisher-reading activity for a durably accepted shared-article lookup. */
34
+ /** Source-reading activity for a durably accepted shared article, post, or profile lookup. */
35
35
  sourceRead: LookupSourceReadSchema.nullish(),
36
36
  /** Current job state. */
37
37
  state: JobStateSchema,
@@ -0,0 +1,26 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * What a lookup's source is, so a client names it while it loads: a news article, a LinkedIn or X post, or a supplied profile. An unknown future kind reads as a generic source.
4
+ *
5
+ * @openapiSchema LookupSourceKind
6
+ * @endpoint GET /v1/lookup-jobs/{jobId}
7
+ * @endpoint GET /v1/lookup/jobs/{jobId}
8
+ * @endpoint POST /v1/lookup-mentions
9
+ * @endpoint POST /v1/lookup/mentions
10
+ * @usedBySchema LookupSourceReadSchema
11
+ * @contractShape lookup.source-kind
12
+ * @contractRole canonical
13
+ */
14
+ export declare const LookupSourceKindSchema: z.ZodUnion<readonly [z.ZodEnum<{
15
+ ARTICLE: "ARTICLE";
16
+ POST: "POST";
17
+ PROFILE: "PROFILE";
18
+ }>, z.ZodString]> & {
19
+ enum: {
20
+ ARTICLE: "ARTICLE";
21
+ POST: "POST";
22
+ PROFILE: "PROFILE";
23
+ };
24
+ };
25
+ export type LookupSourceKind = z.infer<typeof LookupSourceKindSchema>;
26
+ //# sourceMappingURL=source-kind.d.ts.map
@@ -0,0 +1,17 @@
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 LookupSourceKindSchemaKnownMembers = z.enum(["ARTICLE", "POST", "PROFILE"]);
4
+ /**
5
+ * What a lookup's source is, so a client names it while it loads: a news article, a LinkedIn or X post, or a supplied profile. An unknown future kind reads as a generic source.
6
+ *
7
+ * @openapiSchema LookupSourceKind
8
+ * @endpoint GET /v1/lookup-jobs/{jobId}
9
+ * @endpoint GET /v1/lookup/jobs/{jobId}
10
+ * @endpoint POST /v1/lookup-mentions
11
+ * @endpoint POST /v1/lookup/mentions
12
+ * @usedBySchema LookupSourceReadSchema
13
+ * @contractShape lookup.source-kind
14
+ * @contractRole canonical
15
+ */
16
+ export const LookupSourceKindSchema = Object.assign(z.union([LookupSourceKindSchemaKnownMembers, z.string()]), { enum: LookupSourceKindSchemaKnownMembers.enum });
17
+ //# sourceMappingURL=source-kind.js.map
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  /**
3
- * Source context and honest reading activity for a shared article or profile.
3
+ * Source context and honest reading activity for a shared article, post, or profile.
4
4
  *
5
5
  * @openapiSchema LookupSourceRead
6
6
  * @endpoint GET /v1/lookup-jobs/{jobId}
@@ -20,6 +20,17 @@ export declare const LookupSourceReadSchema: z.ZodObject<{
20
20
  statusUrl: z.ZodString;
21
21
  }, z.core.$strip>>>;
22
22
  faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ kind: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
24
+ ARTICLE: "ARTICLE";
25
+ POST: "POST";
26
+ PROFILE: "PROFILE";
27
+ }>, z.ZodString]> & {
28
+ enum: {
29
+ ARTICLE: "ARTICLE";
30
+ POST: "POST";
31
+ PROFILE: "PROFILE";
32
+ };
33
+ }>>;
23
34
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
35
  message: z.ZodArray<z.ZodString>;
25
36
  p95Ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1,9 +1,10 @@
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
3
  import { JobEnqueueSchema } from "../job/enqueue.js";
4
+ import { LookupSourceKindSchema } from "./source-kind.js";
4
5
  import { LookupSourceReadPhaseSchema } from "./source-read-phase.js";
5
6
  /**
6
- * Source context and honest reading activity for a shared article or profile.
7
+ * Source context and honest reading activity for a shared article, post, or profile.
7
8
  *
8
9
  * @openapiSchema LookupSourceRead
9
10
  * @endpoint GET /v1/lookup-jobs/{jobId}
@@ -19,6 +20,8 @@ export const LookupSourceReadSchema = z.object({
19
20
  /** A committed durable lookup to follow; only its presence permits a promise to leave and return. Follow its status URL with the same caller's bearer, honoring Retry-After. */
20
21
  continuation: JobEnqueueSchema.nullish(),
21
22
  faviconUrl: z.string().nullish(),
23
+ /** What the source is, so a client names it while it loads; absent only on a lookup an earlier revision accepted. */
24
+ kind: LookupSourceKindSchema.nullish(),
22
25
  logoUrl: z.string().nullish(),
23
26
  /** Informational messages to cycle within this stage, never evidence of completed work. */
24
27
  message: z.array(z.string()),
@@ -1938,6 +1938,17 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
1938
1938
  statusUrl: z.ZodString;
1939
1939
  }, z.core.$strip>>>;
1940
1940
  faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1941
+ kind: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
1942
+ ARTICLE: "ARTICLE";
1943
+ POST: "POST";
1944
+ PROFILE: "PROFILE";
1945
+ }>, z.ZodString]> & {
1946
+ enum: {
1947
+ ARTICLE: "ARTICLE";
1948
+ POST: "POST";
1949
+ PROFILE: "PROFILE";
1950
+ };
1951
+ }>>;
1941
1952
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1942
1953
  message: z.ZodArray<z.ZodString>;
1943
1954
  p95Ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -11,7 +11,7 @@ const MentionLookupSchemaDefinition = z.object({
11
11
  mention: z.array(LookupJobMentionSchema),
12
12
  /** The stored aVenture news article the source page is, when it is one; absent otherwise. */
13
13
  news: NewsSchema.nullish(),
14
- /** On a shared LinkedIn or X profile lookup's source event: whether the server's profile policy (app.lookup-mentions.profile-auto-enrich-enabled) researches the profile at once. A caller that sends scheduleEnrichment=false and files research itself follows it. Absent on every other event and lookup. */
14
+ /** On a shared LinkedIn or X profile lookup's source event and JSON answer: whether the server's profile policy (app.lookup-mentions.profile-auto-enrich-enabled) researches the profile at once. A caller that sends scheduleEnrichment=false and files research itself follows it. Absent on every other event and lookup. */
15
15
  profileAutoEnrich: z.boolean().nullish(),
16
16
  /** Publisher reading state, available before the first name settles; a continuation is present only after its durable job commits. */
17
17
  sourceRead: LookupSourceReadSchema.nullish(),
@@ -700,6 +700,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
700
700
  GithubRepo: { modulePath: "github/repo", schemaName: "GithubRepoSchema" },
701
701
  HarnessChassis: { modulePath: "harness/chassis", schemaName: "HarnessChassisSchema" },
702
702
  HarnessLlmApi: { modulePath: "harness/llm-api", schemaName: "HarnessLlmApiSchema" },
703
+ HarnessResearchOutcome: {
704
+ modulePath: "harness/research-outcome",
705
+ schemaName: "HarnessResearchOutcomeSchema",
706
+ },
703
707
  HarnessRun: { modulePath: "harness/run", schemaName: "HarnessRunSchema" },
704
708
  HarnessRunActivity: {
705
709
  modulePath: "harness/run-activity",
@@ -716,6 +720,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
716
720
  schemaName: "HarnessRunEnvironmentSchema",
717
721
  },
718
722
  HarnessRunEvent: { modulePath: "harness/run-event", schemaName: "HarnessRunEventSchema" },
723
+ HarnessRunExecution: {
724
+ modulePath: "harness/run-execution",
725
+ schemaName: "HarnessRunExecutionSchema",
726
+ },
719
727
  HarnessRunFollowUp: {
720
728
  modulePath: "harness/run-follow-up",
721
729
  schemaName: "HarnessRunFollowUpSchema",
@@ -812,6 +820,7 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
812
820
  LookupJobMention: { modulePath: "lookup/job-mention", schemaName: "LookupJobMentionSchema" },
813
821
  LookupJobMutation: { modulePath: "lookup/job-mutation", schemaName: "LookupJobMutationSchema" },
814
822
  LookupMention: { modulePath: "lookup/mention", schemaName: "LookupMentionSchema" },
823
+ LookupSourceKind: { modulePath: "lookup/source-kind", schemaName: "LookupSourceKindSchema" },
815
824
  LookupSourceRead: { modulePath: "lookup/source-read", schemaName: "LookupSourceReadSchema" },
816
825
  LookupSourceReadPhase: {
817
826
  modulePath: "lookup/source-read-phase",
@@ -13989,6 +13989,15 @@ declare const PageHarnessRunSchemaDefinition: z.ZodObject<{
13989
13989
  unassigned: "unassigned";
13990
13990
  }>;
13991
13991
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13992
+ execution: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
13993
+ DIRECT: "DIRECT";
13994
+ ENGINE: "ENGINE";
13995
+ }>, z.ZodString]> & {
13996
+ enum: {
13997
+ DIRECT: "DIRECT";
13998
+ ENGINE: "ENGINE";
13999
+ };
14000
+ }>>;
13992
14001
  failureClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13993
14002
  finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
13994
14003
  firstStart: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -14046,6 +14055,15 @@ declare const PageHarnessRunSchemaDefinition: z.ZodObject<{
14046
14055
  WEB_SEARCH: "WEB_SEARCH";
14047
14056
  };
14048
14057
  }>>;
14058
+ researchOutcome: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
14059
+ BLOCKED: "BLOCKED";
14060
+ PARTIAL: "PARTIAL";
14061
+ }>, z.ZodString]> & {
14062
+ enum: {
14063
+ BLOCKED: "BLOCKED";
14064
+ PARTIAL: "PARTIAL";
14065
+ };
14066
+ }>>;
14049
14067
  resumeSafeUntil: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
14050
14068
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
14051
14069
  status: z.ZodEnum<{
@@ -22,6 +22,7 @@ const PersonSchemaDefinition = z.object({
22
22
  nameFirst: z.string().nullish(),
23
23
  nameFull: z.string(),
24
24
  nameLast: z.string().nullish(),
25
+ /** Middle name as stored after name normalization */
25
26
  nameMiddle: z.string().nullish(),
26
27
  nickname: z.string().nullish(),
27
28
  /** Stable, immutable public handle (e.g. `pV1StGXR8Z5ab`). Never changes once assigned, unlike the slug. Null on projections that do not select it and on rows still awaiting handle backfill. */
@@ -40,6 +40,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
40
40
  readonly ENDPOINT_NOT_FOUND: "https://api.aventure.vc/errors/endpoint-not-found";
41
41
  readonly GONE: "https://api.aventure.vc/errors/gone";
42
42
  readonly RATE_LIMITED: "https://api.aventure.vc/errors/rate-limited";
43
+ readonly HARNESS_RUN_ALREADY_REQUESTED: "https://api.aventure.vc/errors/harness-run-already-requested";
43
44
  readonly PRECONDITION_FAILED: "https://api.aventure.vc/errors/precondition-failed";
44
45
  readonly PRECONDITION_REQUIRED: "https://api.aventure.vc/errors/precondition-required";
45
46
  readonly BILLING_ALLOWANCE_EXHAUSTED: "https://api.aventure.vc/errors/billing-allowance-exhausted";
@@ -103,6 +104,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
103
104
  readonly ENDPOINT_NOT_FOUND: "https://api.aventure.vc/errors/endpoint-not-found";
104
105
  readonly GONE: "https://api.aventure.vc/errors/gone";
105
106
  readonly RATE_LIMITED: "https://api.aventure.vc/errors/rate-limited";
107
+ readonly HARNESS_RUN_ALREADY_REQUESTED: "https://api.aventure.vc/errors/harness-run-already-requested";
106
108
  readonly PRECONDITION_FAILED: "https://api.aventure.vc/errors/precondition-failed";
107
109
  readonly PRECONDITION_REQUIRED: "https://api.aventure.vc/errors/precondition-required";
108
110
  readonly BILLING_ALLOWANCE_EXHAUSTED: "https://api.aventure.vc/errors/billing-allowance-exhausted";
@@ -32,6 +32,7 @@ const ProblemTypeSchemaKnownMembers = z.enum({
32
32
  ENDPOINT_NOT_FOUND: "https://api.aventure.vc/errors/endpoint-not-found",
33
33
  GONE: "https://api.aventure.vc/errors/gone",
34
34
  RATE_LIMITED: "https://api.aventure.vc/errors/rate-limited",
35
+ HARNESS_RUN_ALREADY_REQUESTED: "https://api.aventure.vc/errors/harness-run-already-requested",
35
36
  PRECONDITION_FAILED: "https://api.aventure.vc/errors/precondition-failed",
36
37
  PRECONDITION_REQUIRED: "https://api.aventure.vc/errors/precondition-required",
37
38
  BILLING_ALLOWANCE_EXHAUSTED: "https://api.aventure.vc/errors/billing-allowance-exhausted",
@@ -43,6 +43,7 @@ export declare const UniqueIdTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
43
43
  ncesSchoolId: "ncesSchoolId";
44
44
  ncuaCharter: "ncuaCharter";
45
45
  npi: "npi";
46
+ nyAttorneyRegistration: "nyAttorneyRegistration";
46
47
  orcid: "orcid";
47
48
  rssd: "rssd";
48
49
  samUei: "samUei";
@@ -73,6 +74,7 @@ export declare const UniqueIdTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
73
74
  ncesSchoolId: "ncesSchoolId";
74
75
  ncuaCharter: "ncuaCharter";
75
76
  npi: "npi";
77
+ nyAttorneyRegistration: "nyAttorneyRegistration";
76
78
  orcid: "orcid";
77
79
  rssd: "rssd";
78
80
  samUei: "samUei";
@@ -13,6 +13,7 @@ const UniqueIdTypeSchemaKnownMembers = z.enum([
13
13
  "secPrivateFundId",
14
14
  "npi",
15
15
  "usptoPractitioner",
16
+ "nyAttorneyRegistration",
16
17
  "ipedsUnitId",
17
18
  "ncesSchoolId",
18
19
  "ncesLeaId",
@@ -24,6 +24,7 @@ declare const UniqueIdSchemaDefinition: z.ZodObject<{
24
24
  ncesSchoolId: "ncesSchoolId";
25
25
  ncuaCharter: "ncuaCharter";
26
26
  npi: "npi";
27
+ nyAttorneyRegistration: "nyAttorneyRegistration";
27
28
  orcid: "orcid";
28
29
  rssd: "rssd";
29
30
  samUei: "samUei";
@@ -54,6 +55,7 @@ declare const UniqueIdSchemaDefinition: z.ZodObject<{
54
55
  ncesSchoolId: "ncesSchoolId";
55
56
  ncuaCharter: "ncuaCharter";
56
57
  npi: "npi";
58
+ nyAttorneyRegistration: "nyAttorneyRegistration";
57
59
  orcid: "orcid";
58
60
  rssd: "rssd";
59
61
  samUei: "samUei";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.357",
3
+ "version": "0.8.359",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",