@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
@@ -1,6 +1,19 @@
1
1
  import { z } from "zod/v4";
2
- declare const IdentificationSchemaDefinition: z.ZodObject<{
2
+ /**
3
+ * Which existing company or person record a subject is, how that was settled, and the candidates considered, most probable first.
4
+ *
5
+ * @openapiSchema Identification
6
+ * @endpoint GET /v1/lookup-jobs/{jobId}
7
+ * @endpoint POST /v1/entities/lookup
8
+ * @endpoint POST /v1/lookup
9
+ * @endpoint POST /v1/people/lookup
10
+ * @usedBySchema LookupJobMentionSchema
11
+ * @contractShape identification.identification
12
+ * @contractRole canonical
13
+ */
14
+ export declare const IdentificationSchema: z.ZodObject<{
3
15
  candidate: z.ZodArray<z.ZodObject<{
16
+ dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4
17
  duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5
18
  JUDGED: "JUDGED";
6
19
  SHARED_FACT: "SHARED_FACT";
@@ -33,9 +46,11 @@ declare const IdentificationSchemaDefinition: z.ZodObject<{
33
46
  slug?: string | null | undefined;
34
47
  typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
35
48
  }, unknown>>;
49
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
36
50
  }, z.core.$strip>>;
37
51
  detail: z.ZodString;
38
52
  duplicate: z.ZodArray<z.ZodObject<{
53
+ dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
39
54
  duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40
55
  JUDGED: "JUDGED";
41
56
  SHARED_FACT: "SHARED_FACT";
@@ -68,8 +83,10 @@ declare const IdentificationSchemaDefinition: z.ZodObject<{
68
83
  slug?: string | null | undefined;
69
84
  typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
70
85
  }, unknown>>;
86
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
71
87
  }, z.core.$strip>>;
72
88
  match: z.ZodOptional<z.ZodNullable<z.ZodObject<{
89
+ dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
73
90
  duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
74
91
  JUDGED: "JUDGED";
75
92
  SHARED_FACT: "SHARED_FACT";
@@ -102,6 +119,7 @@ declare const IdentificationSchemaDefinition: z.ZodObject<{
102
119
  slug?: string | null | undefined;
103
120
  typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
104
121
  }, unknown>>;
122
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
105
123
  }, z.core.$strip>>>;
106
124
  matchConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
125
  matchEvidenceProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -117,18 +135,5 @@ declare const IdentificationSchemaDefinition: z.ZodObject<{
117
135
  NO_MATCH: "NO_MATCH";
118
136
  }>;
119
137
  }, z.core.$strip>;
120
- type IdentificationDefinition = z.infer<typeof IdentificationSchemaDefinition>;
121
- /**
122
- * Which existing company or person record a subject is, how that was settled, and the candidates considered, most probable first.
123
- *
124
- * @openapiSchema Identification
125
- * @endpoint POST /v1/entities/lookup
126
- * @endpoint POST /v1/lookup
127
- * @endpoint POST /v1/people/lookup
128
- * @contractShape identification.identification
129
- * @contractRole canonical
130
- */
131
- export declare const IdentificationSchema: z.ZodType<IdentificationDefinition>;
132
138
  export type Identification = z.infer<typeof IdentificationSchema>;
133
- export {};
134
139
  //# sourceMappingURL=identification.d.ts.map
@@ -1,7 +1,19 @@
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 { IdentificationCandidateSchema } from "./candidate.js";
4
- const IdentificationSchemaDefinition = z.object({
4
+ /**
5
+ * Which existing company or person record a subject is, how that was settled, and the candidates considered, most probable first.
6
+ *
7
+ * @openapiSchema Identification
8
+ * @endpoint GET /v1/lookup-jobs/{jobId}
9
+ * @endpoint POST /v1/entities/lookup
10
+ * @endpoint POST /v1/lookup
11
+ * @endpoint POST /v1/people/lookup
12
+ * @usedBySchema LookupJobMentionSchema
13
+ * @contractShape identification.identification
14
+ * @contractRole canonical
15
+ */
16
+ export const IdentificationSchema = z.object({
5
17
  /** Records considered, most probable first. */
6
18
  candidate: z.array(IdentificationCandidateSchema),
7
19
  /** One sentence naming what settled the answer or what the user must decide. */
@@ -21,15 +33,4 @@ const IdentificationSchemaDefinition = z.object({
21
33
  /** What the caller does next: act on match, create, or ask the user. */
22
34
  status: z.enum(["MATCHED", "NO_MATCH", "NEEDS_REVIEW"]),
23
35
  });
24
- /**
25
- * Which existing company or person record a subject is, how that was settled, and the candidates considered, most probable first.
26
- *
27
- * @openapiSchema Identification
28
- * @endpoint POST /v1/entities/lookup
29
- * @endpoint POST /v1/lookup
30
- * @endpoint POST /v1/people/lookup
31
- * @contractShape identification.identification
32
- * @contractRole canonical
33
- */
34
- export const IdentificationSchema = IdentificationSchemaDefinition;
35
36
  //# sourceMappingURL=identification.js.map
@@ -0,0 +1,19 @@
1
+ import { z } from "zod/v4";
2
+ declare const JobEnqueueSchemaDefinition: z.ZodObject<{
3
+ jobId: z.ZodUUID;
4
+ mode: z.ZodString;
5
+ statusUrl: z.ZodString;
6
+ }, z.core.$strip>;
7
+ type JobEnqueueDefinition = z.infer<typeof JobEnqueueSchemaDefinition>;
8
+ /**
9
+ * Accepted asynchronous app job enqueue response.
10
+ *
11
+ * @openapiSchema JobEnqueue
12
+ * @endpoint POST /v1/lookup-jobs
13
+ * @contractShape job.enqueue
14
+ * @contractRole canonical
15
+ */
16
+ export declare const JobEnqueueSchema: z.ZodType<JobEnqueueDefinition>;
17
+ export type JobEnqueue = z.infer<typeof JobEnqueueSchema>;
18
+ export {};
19
+ //# sourceMappingURL=enqueue.d.ts.map
@@ -0,0 +1,18 @@
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 JobEnqueueSchemaDefinition = z.object({
4
+ jobId: z.uuid(),
5
+ mode: z.string(),
6
+ /** Endpoint to poll for asynchronous job state and result. */
7
+ statusUrl: z.string(),
8
+ });
9
+ /**
10
+ * Accepted asynchronous app job enqueue response.
11
+ *
12
+ * @openapiSchema JobEnqueue
13
+ * @endpoint POST /v1/lookup-jobs
14
+ * @contractShape job.enqueue
15
+ * @contractRole canonical
16
+ */
17
+ export const JobEnqueueSchema = JobEnqueueSchemaDefinition;
18
+ //# sourceMappingURL=enqueue.js.map
@@ -0,0 +1,20 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Shared lifecycle states for async jobs (duplicate-check, logo-audit, etc.)
4
+ *
5
+ * @openapiSchema JobState
6
+ * @endpoint GET /v1/lookup-jobs/{jobId}
7
+ * @usedBySchema LookupJobSchema
8
+ * @contractShape job.state
9
+ * @contractRole canonical
10
+ */
11
+ export declare const JobStateSchema: z.ZodEnum<{
12
+ CANCELED: "CANCELED";
13
+ COMPLETED: "COMPLETED";
14
+ FAILED: "FAILED";
15
+ PENDING: "PENDING";
16
+ RUNNING: "RUNNING";
17
+ UNKNOWN: "UNKNOWN";
18
+ }>;
19
+ export type JobState = z.infer<typeof JobStateSchema>;
20
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1,20 @@
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
+ * Shared lifecycle states for async jobs (duplicate-check, logo-audit, etc.)
5
+ *
6
+ * @openapiSchema JobState
7
+ * @endpoint GET /v1/lookup-jobs/{jobId}
8
+ * @usedBySchema LookupJobSchema
9
+ * @contractShape job.state
10
+ * @contractRole canonical
11
+ */
12
+ export const JobStateSchema = z.enum([
13
+ "PENDING",
14
+ "RUNNING",
15
+ "COMPLETED",
16
+ "FAILED",
17
+ "CANCELED",
18
+ "UNKNOWN",
19
+ ]);
20
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1,152 @@
1
+ import { z } from "zod/v4";
2
+ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
3
+ failureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ identification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5
+ candidate: z.ZodArray<z.ZodObject<{
6
+ dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7
+ duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
8
+ JUDGED: "JUDGED";
9
+ SHARED_FACT: "SHARED_FACT";
10
+ STUB: "STUB";
11
+ }>>>;
12
+ duplicateProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ owner: z.ZodObject<{
14
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
15
+ personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
16
+ }, z.core.$strip>;
17
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ record: z.ZodType<{
19
+ externalId?: string | null | undefined;
20
+ id: string;
21
+ name?: string | null | undefined;
22
+ operatingStatus?: string | null | undefined;
23
+ publicPath?: string | null | undefined;
24
+ reason: string[];
25
+ score: number;
26
+ slug?: string | null | undefined;
27
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
28
+ }, unknown, z.core.$ZodTypeInternals<{
29
+ externalId?: string | null | undefined;
30
+ id: string;
31
+ name?: string | null | undefined;
32
+ operatingStatus?: string | null | undefined;
33
+ publicPath?: string | null | undefined;
34
+ reason: string[];
35
+ score: number;
36
+ slug?: string | null | undefined;
37
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
38
+ }, unknown>>;
39
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
40
+ }, z.core.$strip>>;
41
+ detail: z.ZodString;
42
+ duplicate: z.ZodArray<z.ZodObject<{
43
+ dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
44
+ duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
45
+ JUDGED: "JUDGED";
46
+ SHARED_FACT: "SHARED_FACT";
47
+ STUB: "STUB";
48
+ }>>>;
49
+ duplicateProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
+ owner: z.ZodObject<{
51
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
52
+ personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
53
+ }, z.core.$strip>;
54
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ record: z.ZodType<{
56
+ externalId?: string | null | undefined;
57
+ id: string;
58
+ name?: string | null | undefined;
59
+ operatingStatus?: string | null | undefined;
60
+ publicPath?: string | null | undefined;
61
+ reason: string[];
62
+ score: number;
63
+ slug?: string | null | undefined;
64
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
65
+ }, unknown, z.core.$ZodTypeInternals<{
66
+ externalId?: string | null | undefined;
67
+ id: string;
68
+ name?: string | null | undefined;
69
+ operatingStatus?: string | null | undefined;
70
+ publicPath?: string | null | undefined;
71
+ reason: string[];
72
+ score: number;
73
+ slug?: string | null | undefined;
74
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
75
+ }, unknown>>;
76
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
77
+ }, z.core.$strip>>;
78
+ match: z.ZodOptional<z.ZodNullable<z.ZodObject<{
79
+ dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
80
+ duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
81
+ JUDGED: "JUDGED";
82
+ SHARED_FACT: "SHARED_FACT";
83
+ STUB: "STUB";
84
+ }>>>;
85
+ duplicateProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
86
+ owner: z.ZodObject<{
87
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
88
+ personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
89
+ }, z.core.$strip>;
90
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91
+ record: z.ZodType<{
92
+ externalId?: string | null | undefined;
93
+ id: string;
94
+ name?: string | null | undefined;
95
+ operatingStatus?: string | null | undefined;
96
+ publicPath?: string | null | undefined;
97
+ reason: string[];
98
+ score: number;
99
+ slug?: string | null | undefined;
100
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
101
+ }, unknown, z.core.$ZodTypeInternals<{
102
+ externalId?: string | null | undefined;
103
+ id: string;
104
+ name?: string | null | undefined;
105
+ operatingStatus?: string | null | undefined;
106
+ publicPath?: string | null | undefined;
107
+ reason: string[];
108
+ score: number;
109
+ slug?: string | null | undefined;
110
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
111
+ }, unknown>>;
112
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
113
+ }, z.core.$strip>>>;
114
+ matchConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
115
+ matchEvidenceProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
+ officialUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ stage: z.ZodEnum<{
118
+ DETERMINISTIC: "DETERMINISTIC";
119
+ JUDGMENT: "JUDGMENT";
120
+ WEB_EVIDENCE: "WEB_EVIDENCE";
121
+ }>;
122
+ status: z.ZodEnum<{
123
+ MATCHED: "MATCHED";
124
+ NEEDS_REVIEW: "NEEDS_REVIEW";
125
+ NO_MATCH: "NO_MATCH";
126
+ }>;
127
+ }, z.core.$strip>>>;
128
+ mentionType: z.ZodEnum<{
129
+ COMPANY: "COMPANY";
130
+ PERSON: "PERSON";
131
+ }>;
132
+ name: z.ZodString;
133
+ shell: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
135
+ personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
136
+ }, z.core.$strip>>>;
137
+ shellDetail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ }, z.core.$strip>;
139
+ type LookupJobMentionDefinition = z.infer<typeof LookupJobMentionSchemaDefinition>;
140
+ /**
141
+ * One company or person the article names, which stored record it is, and the hidden shell record filed for it when it is new.
142
+ *
143
+ * @openapiSchema LookupJobMention
144
+ * @endpoint GET /v1/lookup-jobs/{jobId}
145
+ * @usedBySchema LookupJobSchema
146
+ * @contractShape lookup.job-mention
147
+ * @contractRole canonical
148
+ */
149
+ export declare const LookupJobMentionSchema: z.ZodType<LookupJobMentionDefinition>;
150
+ export type LookupJobMention = z.infer<typeof LookupJobMentionSchema>;
151
+ export {};
152
+ //# sourceMappingURL=job-mention.d.ts.map
@@ -0,0 +1,29 @@
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 { EntityPersonOwnerSchema } from "../entity/person-owner.js";
4
+ import { IdentificationSchema } from "../identification/identification.js";
5
+ const LookupJobMentionSchemaDefinition = z.object({
6
+ /** One sentence on why this name could not be identified; absent otherwise. */
7
+ failureReason: z.string().nullish(),
8
+ /** The lookup of this name with the article as its source: MATCHED names the stored record, NEEDS_REVIEW lists the candidates, NO_MATCH means none is stored. Absent when failureReason is set. */
9
+ identification: IdentificationSchema.nullish(),
10
+ /** Whether the article names a company or a person. */
11
+ mentionType: z.enum(["COMPANY", "PERSON"]),
12
+ /** Name as the article writes it. */
13
+ name: z.string(),
14
+ /** The hidden record this job created for a NO_MATCH name after the article and one independent live page both showed it exists; enrich it by its entityId or personId. Absent when no record was created. */
15
+ shell: EntityPersonOwnerSchema.nullish(),
16
+ /** One sentence on why no shell was created for a NO_MATCH name, or why a created shell lacks its URL; absent otherwise. */
17
+ shellDetail: z.string().nullish(),
18
+ });
19
+ /**
20
+ * One company or person the article names, which stored record it is, and the hidden shell record filed for it when it is new.
21
+ *
22
+ * @openapiSchema LookupJobMention
23
+ * @endpoint GET /v1/lookup-jobs/{jobId}
24
+ * @usedBySchema LookupJobSchema
25
+ * @contractShape lookup.job-mention
26
+ * @contractRole canonical
27
+ */
28
+ export const LookupJobMentionSchema = LookupJobMentionSchemaDefinition;
29
+ //# sourceMappingURL=job-mention.js.map
@@ -0,0 +1,20 @@
1
+ import { z } from "zod/v4";
2
+ declare const LookupJobMutationSchemaDefinition: z.ZodObject<{
3
+ sourceNewsId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4
+ sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ }, z.core.$strip>;
6
+ type LookupJobMutationDefinition = z.infer<typeof LookupJobMutationSchemaDefinition>;
7
+ /**
8
+ * The article whose companies and people a lookup job identifies. Send sourceUrl, sourceNewsId, or both.
9
+ *
10
+ * @openapiSchema LookupJobMutation
11
+ * @endpoint GET /v1/lookup-jobs/{jobId}
12
+ * @endpoint POST /v1/lookup-jobs
13
+ * @usedBySchema LookupJobSchema
14
+ * @contractShape lookup.job-mutation
15
+ * @contractRole canonical
16
+ */
17
+ export declare const LookupJobMutationSchema: z.ZodType<LookupJobMutationDefinition>;
18
+ export type LookupJobMutation = z.infer<typeof LookupJobMutationSchema>;
19
+ export {};
20
+ //# sourceMappingURL=job-mutation.d.ts.map
@@ -0,0 +1,20 @@
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 LookupJobMutationSchemaDefinition = z.object({
4
+ /** aVenture news id of the article; an unknown id fails the job. */
5
+ sourceNewsId: z.int().nullish(),
6
+ /** URL of the article; read from aVenture news when stored there, otherwise fetched. */
7
+ sourceUrl: z.string().max(2000).nullish(),
8
+ });
9
+ /**
10
+ * The article whose companies and people a lookup job identifies. Send sourceUrl, sourceNewsId, or both.
11
+ *
12
+ * @openapiSchema LookupJobMutation
13
+ * @endpoint GET /v1/lookup-jobs/{jobId}
14
+ * @endpoint POST /v1/lookup-jobs
15
+ * @usedBySchema LookupJobSchema
16
+ * @contractShape lookup.job-mutation
17
+ * @contractRole canonical
18
+ */
19
+ export const LookupJobMutationSchema = LookupJobMutationSchemaDefinition;
20
+ //# sourceMappingURL=job-mutation.js.map
@@ -0,0 +1,202 @@
1
+ import { z } from "zod/v4";
2
+ declare const LookupJobSchemaDefinition: z.ZodObject<{
3
+ createdAt: z.ZodISODateTime;
4
+ failureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ jobId: z.ZodUUID;
6
+ mention: z.ZodArray<z.ZodType<{
7
+ failureReason?: string | null | undefined;
8
+ identification?: {
9
+ candidate: {
10
+ dataCompletionCoverage?: number | null | undefined;
11
+ duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
12
+ duplicateProbability?: number | null | undefined;
13
+ owner: {
14
+ entityId?: string | null | undefined;
15
+ personId?: string | null | undefined;
16
+ };
17
+ probability?: number | null | undefined;
18
+ record: {
19
+ externalId?: string | null | undefined;
20
+ id: string;
21
+ name?: string | null | undefined;
22
+ operatingStatus?: string | null | undefined;
23
+ publicPath?: string | null | undefined;
24
+ reason: string[];
25
+ score: number;
26
+ slug?: string | null | undefined;
27
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
28
+ };
29
+ updatedAt?: string | null | undefined;
30
+ }[];
31
+ detail: string;
32
+ duplicate: {
33
+ dataCompletionCoverage?: number | null | undefined;
34
+ duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
35
+ duplicateProbability?: number | null | undefined;
36
+ owner: {
37
+ entityId?: string | null | undefined;
38
+ personId?: string | null | undefined;
39
+ };
40
+ probability?: number | null | undefined;
41
+ record: {
42
+ externalId?: string | null | undefined;
43
+ id: string;
44
+ name?: string | null | undefined;
45
+ operatingStatus?: string | null | undefined;
46
+ publicPath?: string | null | undefined;
47
+ reason: string[];
48
+ score: number;
49
+ slug?: string | null | undefined;
50
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
51
+ };
52
+ updatedAt?: string | null | undefined;
53
+ }[];
54
+ match?: {
55
+ dataCompletionCoverage?: number | null | undefined;
56
+ duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
57
+ duplicateProbability?: number | null | undefined;
58
+ owner: {
59
+ entityId?: string | null | undefined;
60
+ personId?: string | null | undefined;
61
+ };
62
+ probability?: number | null | undefined;
63
+ record: {
64
+ externalId?: string | null | undefined;
65
+ id: string;
66
+ name?: string | null | undefined;
67
+ operatingStatus?: string | null | undefined;
68
+ publicPath?: string | null | undefined;
69
+ reason: string[];
70
+ score: number;
71
+ slug?: string | null | undefined;
72
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
73
+ };
74
+ updatedAt?: string | null | undefined;
75
+ } | null | undefined;
76
+ matchConfidence?: number | null | undefined;
77
+ matchEvidenceProbability?: number | null | undefined;
78
+ officialUrl?: string | null | undefined;
79
+ stage: "DETERMINISTIC" | "JUDGMENT" | "WEB_EVIDENCE";
80
+ status: "MATCHED" | "NEEDS_REVIEW" | "NO_MATCH";
81
+ } | null | undefined;
82
+ mentionType: "COMPANY" | "PERSON";
83
+ name: string;
84
+ shell?: {
85
+ entityId?: string | null | undefined;
86
+ personId?: string | null | undefined;
87
+ } | null | undefined;
88
+ shellDetail?: string | null | undefined;
89
+ }, unknown, z.core.$ZodTypeInternals<{
90
+ failureReason?: string | null | undefined;
91
+ identification?: {
92
+ candidate: {
93
+ dataCompletionCoverage?: number | null | undefined;
94
+ duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
95
+ duplicateProbability?: number | null | undefined;
96
+ owner: {
97
+ entityId?: string | null | undefined;
98
+ personId?: string | null | undefined;
99
+ };
100
+ probability?: number | null | undefined;
101
+ record: {
102
+ externalId?: string | null | undefined;
103
+ id: string;
104
+ name?: string | null | undefined;
105
+ operatingStatus?: string | null | undefined;
106
+ publicPath?: string | null | undefined;
107
+ reason: string[];
108
+ score: number;
109
+ slug?: string | null | undefined;
110
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
111
+ };
112
+ updatedAt?: string | null | undefined;
113
+ }[];
114
+ detail: string;
115
+ duplicate: {
116
+ dataCompletionCoverage?: number | null | undefined;
117
+ duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
118
+ duplicateProbability?: number | null | undefined;
119
+ owner: {
120
+ entityId?: string | null | undefined;
121
+ personId?: string | null | undefined;
122
+ };
123
+ probability?: number | null | undefined;
124
+ record: {
125
+ externalId?: string | null | undefined;
126
+ id: string;
127
+ name?: string | null | undefined;
128
+ operatingStatus?: string | null | undefined;
129
+ publicPath?: string | null | undefined;
130
+ reason: string[];
131
+ score: number;
132
+ slug?: string | null | undefined;
133
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
134
+ };
135
+ updatedAt?: string | null | undefined;
136
+ }[];
137
+ match?: {
138
+ dataCompletionCoverage?: number | null | undefined;
139
+ duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
140
+ duplicateProbability?: number | null | undefined;
141
+ owner: {
142
+ entityId?: string | null | undefined;
143
+ personId?: string | null | undefined;
144
+ };
145
+ probability?: number | null | undefined;
146
+ record: {
147
+ externalId?: string | null | undefined;
148
+ id: string;
149
+ name?: string | null | undefined;
150
+ operatingStatus?: string | null | undefined;
151
+ publicPath?: string | null | undefined;
152
+ reason: string[];
153
+ score: number;
154
+ slug?: string | null | undefined;
155
+ typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
156
+ };
157
+ updatedAt?: string | null | undefined;
158
+ } | null | undefined;
159
+ matchConfidence?: number | null | undefined;
160
+ matchEvidenceProbability?: number | null | undefined;
161
+ officialUrl?: string | null | undefined;
162
+ stage: "DETERMINISTIC" | "JUDGMENT" | "WEB_EVIDENCE";
163
+ status: "MATCHED" | "NEEDS_REVIEW" | "NO_MATCH";
164
+ } | null | undefined;
165
+ mentionType: "COMPANY" | "PERSON";
166
+ name: string;
167
+ shell?: {
168
+ entityId?: string | null | undefined;
169
+ personId?: string | null | undefined;
170
+ } | null | undefined;
171
+ shellDetail?: string | null | undefined;
172
+ }, unknown>>>;
173
+ source: z.ZodType<{
174
+ sourceNewsId?: number | null | undefined;
175
+ sourceUrl?: string | null | undefined;
176
+ }, unknown, z.core.$ZodTypeInternals<{
177
+ sourceNewsId?: number | null | undefined;
178
+ sourceUrl?: string | null | undefined;
179
+ }, unknown>>;
180
+ state: z.ZodEnum<{
181
+ CANCELED: "CANCELED";
182
+ COMPLETED: "COMPLETED";
183
+ FAILED: "FAILED";
184
+ PENDING: "PENDING";
185
+ RUNNING: "RUNNING";
186
+ UNKNOWN: "UNKNOWN";
187
+ }>;
188
+ updatedAt: z.ZodISODateTime;
189
+ }, z.core.$strip>;
190
+ type LookupJobDefinition = z.infer<typeof LookupJobSchemaDefinition>;
191
+ /**
192
+ * An async lookup job's state and, once COMPLETED, every company and person the article names, each identified against stored records.
193
+ *
194
+ * @openapiSchema LookupJob
195
+ * @endpoint GET /v1/lookup-jobs/{jobId}
196
+ * @contractShape lookup.job
197
+ * @contractRole canonical
198
+ */
199
+ export declare const LookupJobSchema: z.ZodType<LookupJobDefinition>;
200
+ export type LookupJob = z.infer<typeof LookupJobSchema>;
201
+ export {};
202
+ //# sourceMappingURL=job.d.ts.map
@@ -0,0 +1,31 @@
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 { JobStateSchema } from "../job/state.js";
4
+ import { LookupJobMentionSchema } from "./job-mention.js";
5
+ import { LookupJobMutationSchema } from "./job-mutation.js";
6
+ const LookupJobSchemaDefinition = z.object({
7
+ /** When the job was requested. */
8
+ createdAt: z.iso.datetime({ offset: true }),
9
+ /** Why the job failed; absent unless state is FAILED. */
10
+ failureReason: z.string().nullish(),
11
+ /** Lookup job id. */
12
+ jobId: z.uuid(),
13
+ /** Each distinct company and person the article names; empty until COMPLETED. */
14
+ mention: z.array(LookupJobMentionSchema),
15
+ /** The article the job reads. */
16
+ source: LookupJobMutationSchema,
17
+ /** Current job state. */
18
+ state: JobStateSchema,
19
+ /** When the job last changed state. */
20
+ updatedAt: z.iso.datetime({ offset: true }),
21
+ });
22
+ /**
23
+ * An async lookup job's state and, once COMPLETED, every company and person the article names, each identified against stored records.
24
+ *
25
+ * @openapiSchema LookupJob
26
+ * @endpoint GET /v1/lookup-jobs/{jobId}
27
+ * @contractShape lookup.job
28
+ * @contractRole canonical
29
+ */
30
+ export const LookupJobSchema = LookupJobSchemaDefinition;
31
+ //# sourceMappingURL=job.js.map