@aventurevc/api-schemas 0.8.3 → 0.8.5

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.
Files changed (75) hide show
  1. package/dist/billing/additional-usage-meter.d.ts +2 -4
  2. package/dist/billing/additional-usage-type.d.ts +2 -4
  3. package/dist/billing/additional-usage-type.js +2 -4
  4. package/dist/billing/additional-usage.d.ts +2 -2
  5. package/dist/billing/catalog-additional-usage.d.ts +2 -4
  6. package/dist/billing/catalog-allowance.d.ts +2 -4
  7. package/dist/billing/catalog-allowance.js +1 -9
  8. package/dist/billing/catalog-plan.d.ts +1 -0
  9. package/dist/billing/catalog-plan.js +2 -0
  10. package/dist/billing/catalog-tier.d.ts +2 -2
  11. package/dist/billing/catalog.d.ts +6 -4
  12. package/dist/billing/recurring-price.d.ts +15 -0
  13. package/dist/billing/recurring-price.js +18 -0
  14. package/dist/billing/subscription.d.ts +45 -16
  15. package/dist/billing/subscription.js +3 -0
  16. package/dist/enrichment/batch.d.ts +25 -0
  17. package/dist/enrichment/batch.js +27 -0
  18. package/dist/enrichment/enrichment.d.ts +82 -0
  19. package/dist/enrichment/enrichment.js +23 -0
  20. package/dist/enrichment/mode.d.ts +3 -0
  21. package/dist/enrichment/mode.js +3 -0
  22. package/dist/enrichment/refusal-type.d.ts +16 -0
  23. package/dist/enrichment/refusal-type.js +13 -0
  24. package/dist/entity/alias-type.d.ts +1 -0
  25. package/dist/entity/alias-type.js +1 -0
  26. package/dist/entity/entity.d.ts +2 -0
  27. package/dist/entity/entity.js +2 -0
  28. package/dist/entity/image.d.ts +1 -0
  29. package/dist/entity/image.js +1 -0
  30. package/dist/entity/name-alias-entity-alias-type.d.ts +1 -0
  31. package/dist/entity/name-alias-entity-alias-type.js +1 -0
  32. package/dist/entity/person-owner.d.ts +2 -0
  33. package/dist/entity/person-owner.js +2 -0
  34. package/dist/entity/sitemap.d.ts +1 -0
  35. package/dist/entity/sitemap.js +1 -0
  36. package/dist/harness/chassis.d.ts +2 -0
  37. package/dist/harness/chassis.js +2 -0
  38. package/dist/harness/llm-api.d.ts +2 -0
  39. package/dist/harness/llm-api.js +2 -0
  40. package/dist/harness/run-detail.d.ts +183 -0
  41. package/dist/harness/run-detail.js +27 -0
  42. package/dist/harness/run-environment.d.ts +2 -0
  43. package/dist/harness/run-environment.js +2 -0
  44. package/dist/harness/run-lane.d.ts +2 -0
  45. package/dist/harness/run-lane.js +2 -0
  46. package/dist/harness/run-progress.d.ts +20 -0
  47. package/dist/harness/run-progress.js +30 -0
  48. package/dist/harness/run-status.d.ts +2 -0
  49. package/dist/harness/run-status.js +2 -0
  50. package/dist/harness/run-type.d.ts +2 -0
  51. package/dist/harness/run-type.js +2 -0
  52. package/dist/harness/run.d.ts +14 -13
  53. package/dist/harness/run.js +14 -11
  54. package/dist/http/problem-detail.d.ts +2 -4
  55. package/dist/http/problem-detail.js +1 -9
  56. package/dist/identification/candidate.d.ts +3 -0
  57. package/dist/identification/candidate.js +5 -0
  58. package/dist/identification/identification.d.ts +19 -14
  59. package/dist/identification/identification.js +13 -12
  60. package/dist/job/enqueue.d.ts +19 -0
  61. package/dist/job/enqueue.js +18 -0
  62. package/dist/job/state.d.ts +20 -0
  63. package/dist/job/state.js +20 -0
  64. package/dist/lookup/job-mention.d.ts +152 -0
  65. package/dist/lookup/job-mention.js +29 -0
  66. package/dist/lookup/job-mutation.d.ts +20 -0
  67. package/dist/lookup/job-mutation.js +20 -0
  68. package/dist/lookup/job.d.ts +202 -0
  69. package/dist/lookup/job.js +31 -0
  70. package/dist/openapi-component-manifest.js +20 -0
  71. package/dist/research/allowance-usage.d.ts +54 -77
  72. package/dist/research/allowance-usage.js +12 -4
  73. package/dist/research/allowance.d.ts +6 -9
  74. package/dist/research/allowance.js +9 -10
  75. package/package.json +1 -1
@@ -24,6 +24,7 @@ import { EntityTypeSchema } from "./type.js";
24
24
  * @endpoint GET /v1/entities/{entityId}/research
25
25
  * @endpoint GET /v1/entities/{entityId}/similar
26
26
  * @endpoint GET /v1/entities/relationships/{relationshipId}
27
+ * @endpoint GET /v1/harness/runs/{runId}
27
28
  * @endpoint GET /v1/news/{newsId}/related-entities
28
29
  * @endpoint GET /v1/people/{personId}
29
30
  * @endpoint GET /v1/people/{personId}/graph
@@ -42,6 +43,7 @@ import { EntityTypeSchema } from "./type.js";
42
43
  * @usedBySchema EntityFundraiseTransactionEntitySchema
43
44
  * @usedBySchema EntityListSchema
44
45
  * @usedBySchema EntityRelationshipSchema
46
+ * @usedBySchema HarnessRunDetailSchema
45
47
  * @usedBySchema PageEntitySchema
46
48
  * @usedBySchema PersonGraphCoInvestorSchema
47
49
  * @usedBySchema PersonInvestedCompanySchema
@@ -27,6 +27,7 @@ type EntityImageDefinition = z.infer<typeof EntityImageSchemaDefinition>;
27
27
  * @endpoint GET /v1/entities/{entityId}/research
28
28
  * @endpoint GET /v1/entities/{entityId}/similar
29
29
  * @endpoint GET /v1/entities/relationships/{relationshipId}
30
+ * @endpoint GET /v1/harness/runs/{runId}
30
31
  * @endpoint GET /v1/news/{newsId}/related-entities
31
32
  * @endpoint GET /v1/people/{personId}
32
33
  * @endpoint GET /v1/people/{personId}/entities
@@ -28,6 +28,7 @@ const EntityImageSchemaDefinition = z.object({
28
28
  * @endpoint GET /v1/entities/{entityId}/research
29
29
  * @endpoint GET /v1/entities/{entityId}/similar
30
30
  * @endpoint GET /v1/entities/relationships/{relationshipId}
31
+ * @endpoint GET /v1/harness/runs/{runId}
31
32
  * @endpoint GET /v1/news/{newsId}/related-entities
32
33
  * @endpoint GET /v1/people/{personId}
33
34
  * @endpoint GET /v1/people/{personId}/entities
@@ -28,6 +28,7 @@ type EntityNameAliasEntityAliasTypeDefinition = z.infer<typeof EntityNameAliasEn
28
28
  * @endpoint GET /v1/entities/{entityId}/research
29
29
  * @endpoint GET /v1/entities/{entityId}/similar
30
30
  * @endpoint GET /v1/entities/relationships/{relationshipId}
31
+ * @endpoint GET /v1/harness/runs/{runId}
31
32
  * @endpoint GET /v1/news/{newsId}/related-entities
32
33
  * @endpoint GET /v1/people/{personId}
33
34
  * @endpoint GET /v1/people/{personId}/graph
@@ -29,6 +29,7 @@ const EntityNameAliasEntityAliasTypeSchemaDefinition = z.object({
29
29
  * @endpoint GET /v1/entities/{entityId}/research
30
30
  * @endpoint GET /v1/entities/{entityId}/similar
31
31
  * @endpoint GET /v1/entities/relationships/{relationshipId}
32
+ * @endpoint GET /v1/harness/runs/{runId}
32
33
  * @endpoint GET /v1/news/{newsId}/related-entities
33
34
  * @endpoint GET /v1/people/{personId}
34
35
  * @endpoint GET /v1/people/{personId}/graph
@@ -5,10 +5,12 @@ import { z } from "zod/v4";
5
5
  * @openapiSchema EntityPersonOwner
6
6
  * @standardProblemResponse
7
7
  * @usedBySchema BlogPostSchema
8
+ * @usedBySchema EnrichmentSchema
8
9
  * @usedBySchema EntityFundraiseInvestorJoinSchema
9
10
  * @usedBySchema EntityTextSchema
10
11
  * @usedBySchema EntityUrlLinkSchema
11
12
  * @usedBySchema IdentificationCandidateSchema
13
+ * @usedBySchema LookupJobMentionSchema
12
14
  * @usedBySchema ResolvedHandleSchema
13
15
  * @usedBySchema UniqueIdSchema
14
16
  * @usedBySchema UrlDuplicateConflictSchema
@@ -6,10 +6,12 @@ import { z } from "zod/v4";
6
6
  * @openapiSchema EntityPersonOwner
7
7
  * @standardProblemResponse
8
8
  * @usedBySchema BlogPostSchema
9
+ * @usedBySchema EnrichmentSchema
9
10
  * @usedBySchema EntityFundraiseInvestorJoinSchema
10
11
  * @usedBySchema EntityTextSchema
11
12
  * @usedBySchema EntityUrlLinkSchema
12
13
  * @usedBySchema IdentificationCandidateSchema
14
+ * @usedBySchema LookupJobMentionSchema
13
15
  * @usedBySchema ResolvedHandleSchema
14
16
  * @usedBySchema UniqueIdSchema
15
17
  * @usedBySchema UrlDuplicateConflictSchema
@@ -19,6 +19,7 @@ import { z } from "zod/v4";
19
19
  * @endpoint GET /v1/entities/{entityId}/research
20
20
  * @endpoint GET /v1/entities/{entityId}/similar
21
21
  * @endpoint GET /v1/entities/relationships/{relationshipId}
22
+ * @endpoint GET /v1/harness/runs/{runId}
22
23
  * @endpoint GET /v1/news/{newsId}/related-entities
23
24
  * @endpoint GET /v1/people/{personId}
24
25
  * @endpoint GET /v1/people/{personId}/graph
@@ -20,6 +20,7 @@ import { z } from "zod/v4";
20
20
  * @endpoint GET /v1/entities/{entityId}/research
21
21
  * @endpoint GET /v1/entities/{entityId}/similar
22
22
  * @endpoint GET /v1/entities/relationships/{relationshipId}
23
+ * @endpoint GET /v1/harness/runs/{runId}
23
24
  * @endpoint GET /v1/news/{newsId}/related-entities
24
25
  * @endpoint GET /v1/people/{personId}
25
26
  * @endpoint GET /v1/people/{personId}/graph
@@ -3,6 +3,8 @@ import { z } from "zod/v4";
3
3
  * Agent loop a harness run executes on: the Claude Agent SDK or the Pi agent SDK
4
4
  *
5
5
  * @openapiSchema HarnessChassis
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @endpoint POST /v1/enrichments
6
8
  * @endpoint POST /v1/entities/{entityId}/enrichments
7
9
  * @endpoint POST /v1/people/{personId}/enrichments
8
10
  * @usedBySchema HarnessRunSchema
@@ -4,6 +4,8 @@ import { z } from "zod/v4";
4
4
  * Agent loop a harness run executes on: the Claude Agent SDK or the Pi agent SDK
5
5
  *
6
6
  * @openapiSchema HarnessChassis
7
+ * @endpoint GET /v1/harness/runs/{runId}
8
+ * @endpoint POST /v1/enrichments
7
9
  * @endpoint POST /v1/entities/{entityId}/enrichments
8
10
  * @endpoint POST /v1/people/{personId}/enrichments
9
11
  * @usedBySchema HarnessRunSchema
@@ -3,6 +3,8 @@ import { z } from "zod/v4";
3
3
  * Gateway wire API for a run's LLM calls: Anthropic Messages, OpenAI Chat Completions, or OpenAI Responses
4
4
  *
5
5
  * @openapiSchema HarnessLlmApi
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @endpoint POST /v1/enrichments
6
8
  * @endpoint POST /v1/entities/{entityId}/enrichments
7
9
  * @endpoint POST /v1/people/{personId}/enrichments
8
10
  * @usedBySchema HarnessRunSchema
@@ -4,6 +4,8 @@ import { z } from "zod/v4";
4
4
  * Gateway wire API for a run's LLM calls: Anthropic Messages, OpenAI Chat Completions, or OpenAI Responses
5
5
  *
6
6
  * @openapiSchema HarnessLlmApi
7
+ * @endpoint GET /v1/harness/runs/{runId}
8
+ * @endpoint POST /v1/enrichments
7
9
  * @endpoint POST /v1/entities/{entityId}/enrichments
8
10
  * @endpoint POST /v1/people/{personId}/enrichments
9
11
  * @usedBySchema HarnessRunSchema
@@ -0,0 +1,183 @@
1
+ import { z } from "zod/v4";
2
+ declare const HarnessRunDetailSchemaDefinition: z.ZodObject<{
3
+ entity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4
+ defaultCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ foundedYear: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6
+ id: z.ZodUUID;
7
+ image: z.ZodType<{
8
+ isMonogram: boolean;
9
+ logo?: string | null | undefined;
10
+ logoSquare?: string | null | undefined;
11
+ }, unknown, z.core.$ZodTypeInternals<{
12
+ isMonogram: boolean;
13
+ logo?: string | null | undefined;
14
+ logoSquare?: string | null | undefined;
15
+ }, unknown>>;
16
+ lastModifiedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
17
+ nameAlias: z.ZodArray<z.ZodType<{
18
+ displayable?: boolean | null | undefined;
19
+ name: string;
20
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
21
+ }, unknown, z.core.$ZodTypeInternals<{
22
+ displayable?: boolean | null | undefined;
23
+ name: string;
24
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
25
+ }, unknown>>>;
26
+ nameBrand: z.ZodString;
27
+ nameLegal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ operatingStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ publicId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ publicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ sitemap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32
+ hasAcquisitions: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
33
+ hasAnalysis: z.ZodBoolean;
34
+ hasEmployees: z.ZodBoolean;
35
+ hasFundraising: z.ZodBoolean;
36
+ hasNews: z.ZodBoolean;
37
+ productServiceSlug: z.ZodArray<z.ZodString>;
38
+ }, z.core.$strip>>>;
39
+ slug: z.ZodString;
40
+ typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
41
+ "Business Line": "Business Line";
42
+ Company: "Company";
43
+ Fund: "Fund";
44
+ Government: "Government";
45
+ "Investment Firm": "Investment Firm";
46
+ Nonprofit: "Nonprofit";
47
+ Organization: "Organization";
48
+ Product: "Product";
49
+ Service: "Service";
50
+ }>>>;
51
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
52
+ }, z.core.$strip>>>;
53
+ latestStatus: z.ZodOptional<z.ZodNullable<z.ZodObject<{
54
+ complete: z.ZodBoolean;
55
+ entitySlug: z.ZodNullable<z.ZodString>;
56
+ gateRemaining: z.ZodArray<z.ZodString>;
57
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ whatElseRemaining: z.ZodArray<z.ZodString>;
59
+ writeThisIteration: z.ZodArray<z.ZodString>;
60
+ }, z.core.$strip>>>;
61
+ provider: z.ZodOptional<z.ZodNullable<z.ZodObject<{
62
+ defaultCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ foundedYear: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
64
+ id: z.ZodUUID;
65
+ image: z.ZodType<{
66
+ isMonogram: boolean;
67
+ logo?: string | null | undefined;
68
+ logoSquare?: string | null | undefined;
69
+ }, unknown, z.core.$ZodTypeInternals<{
70
+ isMonogram: boolean;
71
+ logo?: string | null | undefined;
72
+ logoSquare?: string | null | undefined;
73
+ }, unknown>>;
74
+ lastModifiedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
75
+ nameAlias: z.ZodArray<z.ZodType<{
76
+ displayable?: boolean | null | undefined;
77
+ name: string;
78
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
79
+ }, unknown, z.core.$ZodTypeInternals<{
80
+ displayable?: boolean | null | undefined;
81
+ name: string;
82
+ type?: "alternativeDba" | "relatedLegal" | null | undefined;
83
+ }, unknown>>>;
84
+ nameBrand: z.ZodString;
85
+ nameLegal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ operatingStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ publicId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ publicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ sitemap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
90
+ hasAcquisitions: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
91
+ hasAnalysis: z.ZodBoolean;
92
+ hasEmployees: z.ZodBoolean;
93
+ hasFundraising: z.ZodBoolean;
94
+ hasNews: z.ZodBoolean;
95
+ productServiceSlug: z.ZodArray<z.ZodString>;
96
+ }, z.core.$strip>>>;
97
+ slug: z.ZodString;
98
+ typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
99
+ "Business Line": "Business Line";
100
+ Company: "Company";
101
+ Fund: "Fund";
102
+ Government: "Government";
103
+ "Investment Firm": "Investment Firm";
104
+ Nonprofit: "Nonprofit";
105
+ Organization: "Organization";
106
+ Product: "Product";
107
+ Service: "Service";
108
+ }>>>;
109
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
110
+ }, z.core.$strip>>>;
111
+ publicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ run: z.ZodObject<{
113
+ attempt: z.ZodInt;
114
+ chassis: z.ZodEnum<{
115
+ "claude-agent-sdk": "claude-agent-sdk";
116
+ "pi-agent-sdk": "pi-agent-sdk";
117
+ }>;
118
+ chassisRouted: z.ZodBoolean;
119
+ createdAt: z.ZodISODateTime;
120
+ entitySlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ environment: z.ZodEnum<{
122
+ development: "development";
123
+ production: "production";
124
+ staging: "staging";
125
+ unassigned: "unassigned";
126
+ }>;
127
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ failureClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ finishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
130
+ hasSourceDocument: z.ZodBoolean;
131
+ id: z.ZodUUID;
132
+ iteration: z.ZodInt;
133
+ lane: z.ZodEnum<{
134
+ background: "background";
135
+ interactive: "interactive";
136
+ }>;
137
+ latestStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ llmApi: z.ZodEnum<{
139
+ anthropic: "anthropic";
140
+ "openai-chat": "openai-chat";
141
+ "openai-responses": "openai-responses";
142
+ }>;
143
+ maxIteration: z.ZodInt;
144
+ maxScoutConcurrent: z.ZodInt;
145
+ mode: z.ZodEnum<{
146
+ COMPREHENSIVE: "COMPREHENSIVE";
147
+ INDIVIDUAL: "INDIVIDUAL";
148
+ }>;
149
+ model: z.ZodString;
150
+ nextAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
151
+ resumeSafeUntil: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
152
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
153
+ status: z.ZodEnum<{
154
+ completed: "completed";
155
+ failed: "failed";
156
+ queued: "queued";
157
+ running: "running";
158
+ stopped: "stopped";
159
+ }>;
160
+ subagentModel: z.ZodString;
161
+ taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
162
+ type: z.ZodEnum<{
163
+ ENRICHMENT: "ENRICHMENT";
164
+ TASK: "TASK";
165
+ }>;
166
+ updatedAt: z.ZodISODateTime;
167
+ url: z.ZodString;
168
+ userPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
+ }, z.core.$strip>;
170
+ }, z.core.$strip>;
171
+ type HarnessRunDetailDefinition = z.infer<typeof HarnessRunDetailSchemaDefinition>;
172
+ /**
173
+ * Harness run with its resolved public entity
174
+ *
175
+ * @openapiSchema HarnessRunDetail
176
+ * @endpoint GET /v1/harness/runs/{runId}
177
+ * @contractShape harness.run-detail
178
+ * @contractRole canonical
179
+ */
180
+ export declare const HarnessRunDetailSchema: z.ZodType<HarnessRunDetailDefinition>;
181
+ export type HarnessRunDetail = z.infer<typeof HarnessRunDetailSchema>;
182
+ export {};
183
+ //# sourceMappingURL=run-detail.d.ts.map
@@ -0,0 +1,27 @@
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 { EntitySchema } from "../entity/entity.js";
4
+ import { HarnessRunProgressSchema } from "./run-progress.js";
5
+ import { HarnessRunSchema } from "./run.js";
6
+ const HarnessRunDetailSchemaDefinition = z.object({
7
+ /** Current public entity resolved from the run slug */
8
+ entity: EntitySchema.nullish(),
9
+ /** Parsed principal-facing loop progress; null when the raw run status is absent or invalid */
10
+ latestStatus: HarnessRunProgressSchema.nullish(),
11
+ /** Parent organization's core record when the resolved entity is a Product/Service; null for every other entity type */
12
+ provider: EntitySchema.nullish(),
13
+ /** Exact renderable public profile URL for the resolved entity */
14
+ publicUrl: z.string().nullish(),
15
+ /** Canonical harness run */
16
+ run: HarnessRunSchema,
17
+ });
18
+ /**
19
+ * Harness run with its resolved public entity
20
+ *
21
+ * @openapiSchema HarnessRunDetail
22
+ * @endpoint GET /v1/harness/runs/{runId}
23
+ * @contractShape harness.run-detail
24
+ * @contractRole canonical
25
+ */
26
+ export const HarnessRunDetailSchema = HarnessRunDetailSchemaDefinition;
27
+ //# sourceMappingURL=run-detail.js.map
@@ -3,6 +3,8 @@ import { z } from "zod/v4";
3
3
  * Owning API environment
4
4
  *
5
5
  * @openapiSchema HarnessRunEnvironment
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @endpoint POST /v1/enrichments
6
8
  * @endpoint POST /v1/entities/{entityId}/enrichments
7
9
  * @endpoint POST /v1/people/{personId}/enrichments
8
10
  * @usedBySchema HarnessRunSchema
@@ -4,6 +4,8 @@ import { z } from "zod/v4";
4
4
  * Owning API environment
5
5
  *
6
6
  * @openapiSchema HarnessRunEnvironment
7
+ * @endpoint GET /v1/harness/runs/{runId}
8
+ * @endpoint POST /v1/enrichments
7
9
  * @endpoint POST /v1/entities/{entityId}/enrichments
8
10
  * @endpoint POST /v1/people/{personId}/enrichments
9
11
  * @usedBySchema HarnessRunSchema
@@ -3,6 +3,8 @@ import { z } from "zod/v4";
3
3
  * Queue lane for admission priority: interactive client work vs background backlog
4
4
  *
5
5
  * @openapiSchema HarnessRunLane
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @endpoint POST /v1/enrichments
6
8
  * @endpoint POST /v1/entities/{entityId}/enrichments
7
9
  * @endpoint POST /v1/people/{personId}/enrichments
8
10
  * @usedBySchema HarnessRunSchema
@@ -4,6 +4,8 @@ import { z } from "zod/v4";
4
4
  * Queue lane for admission priority: interactive client work vs background backlog
5
5
  *
6
6
  * @openapiSchema HarnessRunLane
7
+ * @endpoint GET /v1/harness/runs/{runId}
8
+ * @endpoint POST /v1/enrichments
7
9
  * @endpoint POST /v1/entities/{entityId}/enrichments
8
10
  * @endpoint POST /v1/people/{personId}/enrichments
9
11
  * @usedBySchema HarnessRunSchema
@@ -0,0 +1,20 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Current public progress of a harness run
4
+ *
5
+ * @openapiSchema HarnessRunProgress
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @usedBySchema HarnessRunDetailSchema
8
+ * @contractShape harness.run-progress
9
+ * @contractRole canonical
10
+ */
11
+ export declare const HarnessRunProgressSchema: z.ZodObject<{
12
+ complete: z.ZodBoolean;
13
+ entitySlug: z.ZodNullable<z.ZodString>;
14
+ gateRemaining: z.ZodArray<z.ZodString>;
15
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ whatElseRemaining: z.ZodArray<z.ZodString>;
17
+ writeThisIteration: z.ZodArray<z.ZodString>;
18
+ }, z.core.$strip>;
19
+ export type HarnessRunProgress = z.infer<typeof HarnessRunProgressSchema>;
20
+ //# sourceMappingURL=run-progress.d.ts.map
@@ -0,0 +1,30 @@
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
+ /**
4
+ * Current public progress of a harness run
5
+ *
6
+ * @openapiSchema HarnessRunProgress
7
+ * @endpoint GET /v1/harness/runs/{runId}
8
+ * @usedBySchema HarnessRunDetailSchema
9
+ * @contractShape harness.run-progress
10
+ * @contractRole canonical
11
+ */
12
+ export const HarnessRunProgressSchema = z.object({
13
+ /** Whether the enrichment loop reports completion */
14
+ complete: z.boolean(),
15
+ /** Canonical entity slug currently reported by the loop */
16
+ entitySlug: z
17
+ .string()
18
+ .regex(/^[a-z0-9_-]+$/)
19
+ .max(255)
20
+ .nullable(),
21
+ /** Concrete completion gates that remain unmet */
22
+ gateRemaining: z.array(z.string()),
23
+ /** Optional progress note from the loop */
24
+ note: z.string().nullish(),
25
+ /** Additional work the loop reports as remaining */
26
+ whatElseRemaining: z.array(z.string()),
27
+ /** Writes completed during the current loop iteration */
28
+ writeThisIteration: z.array(z.string()),
29
+ });
30
+ //# sourceMappingURL=run-progress.js.map
@@ -3,6 +3,8 @@ import { z } from "zod/v4";
3
3
  * Harness run lifecycle state
4
4
  *
5
5
  * @openapiSchema HarnessRunStatus
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @endpoint POST /v1/enrichments
6
8
  * @endpoint POST /v1/entities/{entityId}/enrichments
7
9
  * @endpoint POST /v1/people/{personId}/enrichments
8
10
  * @usedBySchema HarnessRunSchema
@@ -4,6 +4,8 @@ import { z } from "zod/v4";
4
4
  * Harness run lifecycle state
5
5
  *
6
6
  * @openapiSchema HarnessRunStatus
7
+ * @endpoint GET /v1/harness/runs/{runId}
8
+ * @endpoint POST /v1/enrichments
7
9
  * @endpoint POST /v1/entities/{entityId}/enrichments
8
10
  * @endpoint POST /v1/people/{personId}/enrichments
9
11
  * @usedBySchema HarnessRunSchema
@@ -3,6 +3,8 @@ import { z } from "zod/v4";
3
3
  * Harness run kind: full enrichment loop or bounded micro-task
4
4
  *
5
5
  * @openapiSchema HarnessRunType
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @endpoint POST /v1/enrichments
6
8
  * @endpoint POST /v1/entities/{entityId}/enrichments
7
9
  * @endpoint POST /v1/people/{personId}/enrichments
8
10
  * @usedBySchema HarnessRunSchema
@@ -4,6 +4,8 @@ import { z } from "zod/v4";
4
4
  * Harness run kind: full enrichment loop or bounded micro-task
5
5
  *
6
6
  * @openapiSchema HarnessRunType
7
+ * @endpoint GET /v1/harness/runs/{runId}
8
+ * @endpoint POST /v1/enrichments
7
9
  * @endpoint POST /v1/entities/{entityId}/enrichments
8
10
  * @endpoint POST /v1/people/{personId}/enrichments
9
11
  * @usedBySchema HarnessRunSchema
@@ -1,5 +1,18 @@
1
1
  import { z } from "zod/v4";
2
- declare const HarnessRunSchemaDefinition: z.ZodObject<{
2
+ /**
3
+ * One harness enrichment run
4
+ *
5
+ * @openapiSchema HarnessRun
6
+ * @endpoint GET /v1/harness/runs/{runId}
7
+ * @endpoint POST /v1/enrichments
8
+ * @endpoint POST /v1/entities/{entityId}/enrichments
9
+ * @endpoint POST /v1/people/{personId}/enrichments
10
+ * @usedBySchema EnrichmentSchema
11
+ * @usedBySchema HarnessRunDetailSchema
12
+ * @contractShape harness.run
13
+ * @contractRole canonical
14
+ */
15
+ export declare const HarnessRunSchema: z.ZodObject<{
3
16
  attempt: z.ZodInt;
4
17
  chassis: z.ZodEnum<{
5
18
  "claude-agent-sdk": "claude-agent-sdk";
@@ -57,17 +70,5 @@ declare const HarnessRunSchemaDefinition: z.ZodObject<{
57
70
  url: z.ZodString;
58
71
  userPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
72
  }, z.core.$strip>;
60
- type HarnessRunDefinition = z.infer<typeof HarnessRunSchemaDefinition>;
61
- /**
62
- * One harness enrichment run
63
- *
64
- * @openapiSchema HarnessRun
65
- * @endpoint POST /v1/entities/{entityId}/enrichments
66
- * @endpoint POST /v1/people/{personId}/enrichments
67
- * @contractShape harness.run
68
- * @contractRole canonical
69
- */
70
- export declare const HarnessRunSchema: z.ZodType<HarnessRunDefinition>;
71
73
  export type HarnessRun = z.infer<typeof HarnessRunSchema>;
72
- export {};
73
74
  //# sourceMappingURL=run.d.ts.map
@@ -7,7 +7,20 @@ import { HarnessRunEnvironmentSchema } from "./run-environment.js";
7
7
  import { HarnessRunLaneSchema } from "./run-lane.js";
8
8
  import { HarnessRunStatusSchema } from "./run-status.js";
9
9
  import { HarnessRunTypeSchema } from "./run-type.js";
10
- const HarnessRunSchemaDefinition = z.object({
10
+ /**
11
+ * One harness enrichment run
12
+ *
13
+ * @openapiSchema HarnessRun
14
+ * @endpoint GET /v1/harness/runs/{runId}
15
+ * @endpoint POST /v1/enrichments
16
+ * @endpoint POST /v1/entities/{entityId}/enrichments
17
+ * @endpoint POST /v1/people/{personId}/enrichments
18
+ * @usedBySchema EnrichmentSchema
19
+ * @usedBySchema HarnessRunDetailSchema
20
+ * @contractShape harness.run
21
+ * @contractRole canonical
22
+ */
23
+ export const HarnessRunSchema = z.object({
11
24
  /** Retry attempt counter */
12
25
  attempt: z.int(),
13
26
  /** Agent loop this run executes on */
@@ -67,14 +80,4 @@ const HarnessRunSchemaDefinition = z.object({
67
80
  /** Optional steering prompt filed with the run */
68
81
  userPrompt: z.string().nullish(),
69
82
  });
70
- /**
71
- * One harness enrichment run
72
- *
73
- * @openapiSchema HarnessRun
74
- * @endpoint POST /v1/entities/{entityId}/enrichments
75
- * @endpoint POST /v1/people/{personId}/enrichments
76
- * @contractShape harness.run
77
- * @contractRole canonical
78
- */
79
- export const HarnessRunSchema = HarnessRunSchemaDefinition;
80
83
  //# sourceMappingURL=run.js.map
@@ -1,12 +1,10 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const ProblemDetailSchemaDefinition: z.ZodObject<{
3
3
  allowanceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4
+ COMPANY: "COMPANY";
4
5
  ENTITY_VIEW: "ENTITY_VIEW";
5
- NEW_COMPANY: "NEW_COMPANY";
6
- NEW_PERSON: "NEW_PERSON";
6
+ PERSON: "PERSON";
7
7
  PERSON_VIEW: "PERSON_VIEW";
8
- UPDATE: "UPDATE";
9
- UPDATE_PERSON: "UPDATE_PERSON";
10
8
  WEB_SEARCH: "WEB_SEARCH";
11
9
  }>>>;
12
10
  circuitBreaker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8,15 +8,7 @@ import { RedirectSlugPathSchema } from "../redirect/redirect-slug-path.js";
8
8
  const ProblemDetailSchemaDefinition = z.object({
9
9
  /** Which monthly allowance a BILLING_ALLOWANCE refusal exhausted. */
10
10
  allowanceType: z
11
- .enum([
12
- "NEW_COMPANY",
13
- "UPDATE",
14
- "NEW_PERSON",
15
- "UPDATE_PERSON",
16
- "ENTITY_VIEW",
17
- "PERSON_VIEW",
18
- "WEB_SEARCH",
19
- ])
11
+ .enum(["COMPANY", "PERSON", "ENTITY_VIEW", "PERSON_VIEW", "WEB_SEARCH"])
20
12
  .nullish(),
21
13
  circuitBreaker: z.string().nullish(),
22
14
  /** Machine-readable secondary code on ProblemDetail.code. Agents should branch on this value when the HTTP status alone does not identify the recovery path. Code groups include auth/session, rate limiting, job infrastructure, RBAC, external providers, image processing, R2 storage, search, and inference. Many codes indicate infra/admin-only conditions where the correct agent action is to surface the error and stop, not retry. */
@@ -3,6 +3,7 @@ import { z } from "zod/v4";
3
3
  * One existing record considered as the subject.
4
4
  *
5
5
  * @openapiSchema IdentificationCandidate
6
+ * @endpoint GET /v1/lookup-jobs/{jobId}
6
7
  * @endpoint POST /v1/entities/lookup
7
8
  * @endpoint POST /v1/lookup
8
9
  * @endpoint POST /v1/people/lookup
@@ -11,6 +12,7 @@ import { z } from "zod/v4";
11
12
  * @contractRole canonical
12
13
  */
13
14
  export declare const IdentificationCandidateSchema: z.ZodObject<{
15
+ dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
14
16
  duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
15
17
  JUDGED: "JUDGED";
16
18
  SHARED_FACT: "SHARED_FACT";
@@ -43,6 +45,7 @@ export declare const IdentificationCandidateSchema: z.ZodObject<{
43
45
  slug?: string | null | undefined;
44
46
  typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
45
47
  }, unknown>>;
48
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
46
49
  }, z.core.$strip>;
47
50
  export type IdentificationCandidate = z.infer<typeof IdentificationCandidateSchema>;
48
51
  //# sourceMappingURL=candidate.d.ts.map
@@ -6,6 +6,7 @@ import { SearchDuplicateCandidateScoreSchema } from "../search/duplicate-candida
6
6
  * One existing record considered as the subject.
7
7
  *
8
8
  * @openapiSchema IdentificationCandidate
9
+ * @endpoint GET /v1/lookup-jobs/{jobId}
9
10
  * @endpoint POST /v1/entities/lookup
10
11
  * @endpoint POST /v1/lookup
11
12
  * @endpoint POST /v1/people/lookup
@@ -14,6 +15,8 @@ import { SearchDuplicateCandidateScoreSchema } from "../search/duplicate-candida
14
15
  * @contractRole canonical
15
16
  */
16
17
  export const IdentificationCandidateSchema = z.object({
18
+ /** Percentage, 0 to 100, of the company's required completion-floor slots that pass, as last computed by the background coverage sweep; GET /v1/entities/{entityId}/coverage returns the live per-slot detail. Absent for people, who have no completion floor, and for companies not yet computed. */
19
+ dataCompletionCoverage: z.int().min(0).max(100).nullish(),
17
20
  /** How this record was checked as the picked record stored again; absent when it was not checked. */
18
21
  duplicateBasis: z.enum(["STUB", "SHARED_FACT", "JUDGED"]).nullish(),
19
22
  /** Decision-model probability, 0 to 1, that this record is the picked record stored again; present only when duplicateBasis is JUDGED. */
@@ -24,5 +27,7 @@ export const IdentificationCandidateSchema = z.object({
24
27
  probability: z.number().nullish(),
25
28
  /** The record with its duplicate-check score and reasons; score 0 with no reason means only vector similarity proposed it. */
26
29
  record: SearchDuplicateCandidateScoreSchema,
30
+ /** When the stored record was last updated. */
31
+ updatedAt: z.iso.datetime({ offset: true }).nullish(),
27
32
  });
28
33
  //# sourceMappingURL=candidate.js.map