@aventurevc/api-schemas 0.8.3 → 0.8.6

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 (95) 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 +31 -2
  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 +84 -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 +18 -0
  23. package/dist/enrichment/refusal-type.js +18 -0
  24. package/dist/entity/alias-type.d.ts +2 -0
  25. package/dist/entity/alias-type.js +2 -0
  26. package/dist/entity/entity.d.ts +4 -0
  27. package/dist/entity/entity.js +4 -0
  28. package/dist/entity/image.d.ts +2 -0
  29. package/dist/entity/image.js +2 -0
  30. package/dist/entity/name-alias-entity-alias-type.d.ts +2 -0
  31. package/dist/entity/name-alias-entity-alias-type.js +2 -0
  32. package/dist/entity/person-owner.d.ts +2 -0
  33. package/dist/entity/person-owner.js +2 -0
  34. package/dist/entity/similarity-context.d.ts +2 -0
  35. package/dist/entity/similarity-context.js +2 -0
  36. package/dist/entity/similarity-origin.d.ts +1 -0
  37. package/dist/entity/similarity-origin.js +1 -0
  38. package/dist/entity/similarity-summary.d.ts +125 -0
  39. package/dist/entity/similarity-summary.js +22 -0
  40. package/dist/entity/sitemap.d.ts +2 -0
  41. package/dist/entity/sitemap.js +2 -0
  42. package/dist/entity/url-crawl-cdn-provider.d.ts +1 -0
  43. package/dist/entity/url-crawl-cdn-provider.js +1 -0
  44. package/dist/entity/url-crawl-render-mode.d.ts +1 -0
  45. package/dist/entity/url-crawl-render-mode.js +1 -0
  46. package/dist/entity/url-link.d.ts +2 -0
  47. package/dist/entity/url-link.js +2 -0
  48. package/dist/entity/url-type.d.ts +1 -0
  49. package/dist/entity/url-type.js +1 -0
  50. package/dist/harness/chassis.d.ts +2 -0
  51. package/dist/harness/chassis.js +2 -0
  52. package/dist/harness/llm-api.d.ts +2 -0
  53. package/dist/harness/llm-api.js +2 -0
  54. package/dist/harness/run-detail.d.ts +183 -0
  55. package/dist/harness/run-detail.js +27 -0
  56. package/dist/harness/run-environment.d.ts +2 -0
  57. package/dist/harness/run-environment.js +2 -0
  58. package/dist/harness/run-lane.d.ts +2 -0
  59. package/dist/harness/run-lane.js +2 -0
  60. package/dist/harness/run-progress.d.ts +20 -0
  61. package/dist/harness/run-progress.js +30 -0
  62. package/dist/harness/run-status.d.ts +2 -0
  63. package/dist/harness/run-status.js +2 -0
  64. package/dist/harness/run-type.d.ts +2 -0
  65. package/dist/harness/run-type.js +2 -0
  66. package/dist/harness/run.d.ts +14 -13
  67. package/dist/harness/run.js +14 -11
  68. package/dist/http/problem-detail.d.ts +2 -4
  69. package/dist/http/problem-detail.js +1 -9
  70. package/dist/identification/candidate.d.ts +3 -0
  71. package/dist/identification/candidate.js +5 -0
  72. package/dist/identification/identification.d.ts +19 -14
  73. package/dist/identification/identification.js +13 -12
  74. package/dist/job/enqueue.d.ts +19 -0
  75. package/dist/job/enqueue.js +18 -0
  76. package/dist/job/state.d.ts +20 -0
  77. package/dist/job/state.js +20 -0
  78. package/dist/lookup/job-mention.d.ts +152 -0
  79. package/dist/lookup/job-mention.js +29 -0
  80. package/dist/lookup/job-mutation.d.ts +20 -0
  81. package/dist/lookup/job-mutation.js +20 -0
  82. package/dist/lookup/job.d.ts +202 -0
  83. package/dist/lookup/job.js +31 -0
  84. package/dist/openapi-component-manifest.js +28 -0
  85. package/dist/pageable/object.d.ts +2 -0
  86. package/dist/pageable/object.js +2 -0
  87. package/dist/pagination/schemas.d.ts +164 -0
  88. package/dist/pagination/schemas.js +22 -0
  89. package/dist/problem/type.d.ts +1 -0
  90. package/dist/problem/type.js +1 -0
  91. package/dist/research/allowance-usage.d.ts +22 -0
  92. package/dist/research/allowance-usage.js +8 -0
  93. package/dist/sort/object.d.ts +2 -0
  94. package/dist/sort/object.js +2 -0
  95. package/package.json +1 -1
@@ -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
@@ -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