@aventurevc/api-schemas 0.8.1 → 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.
- package/dist/address/address.d.ts +1 -2
- package/dist/address/address.js +1 -2
- package/dist/address/association-role.d.ts +1 -2
- package/dist/address/association-role.js +1 -2
- package/dist/address/association.d.ts +1 -2
- package/dist/address/association.js +1 -2
- package/dist/address/city.d.ts +1 -2
- package/dist/address/city.js +1 -2
- package/dist/address/country.d.ts +1 -2
- package/dist/address/country.js +1 -2
- package/dist/address/state.d.ts +1 -2
- package/dist/address/state.js +1 -2
- package/dist/billing/additional-usage-meter.d.ts +3 -4
- package/dist/billing/additional-usage-type.d.ts +3 -4
- package/dist/billing/additional-usage-type.js +3 -4
- package/dist/billing/additional-usage.d.ts +2 -2
- package/dist/billing/catalog-additional-usage.d.ts +3 -4
- package/dist/billing/catalog-allowance.d.ts +3 -4
- package/dist/billing/catalog-allowance.js +1 -8
- package/dist/billing/catalog-plan.d.ts +1 -0
- package/dist/billing/catalog-plan.js +2 -0
- package/dist/billing/catalog-tier.d.ts +2 -2
- package/dist/billing/catalog.d.ts +6 -4
- package/dist/billing/recurring-price.d.ts +15 -0
- package/dist/billing/recurring-price.js +18 -0
- package/dist/billing/subscription.d.ts +55 -14
- package/dist/billing/subscription.js +3 -0
- package/dist/classification/catalog-bucket.d.ts +1 -1
- package/dist/classification/catalog-bucket.js +1 -1
- package/dist/classification/catalog-category.d.ts +1 -1
- package/dist/classification/catalog-category.js +1 -1
- package/dist/classification/catalog.d.ts +1 -1
- package/dist/classification/catalog.js +1 -1
- package/dist/classification/classification.d.ts +3 -4
- package/dist/classification/classification.js +3 -4
- package/dist/content/embedding-match.d.ts +2 -2
- package/dist/content/embedding-match.js +2 -2
- package/dist/content/source-type.d.ts +2 -2
- package/dist/content/source-type.js +2 -2
- package/dist/decimal/range.d.ts +2 -1
- package/dist/decimal/range.js +2 -1
- package/dist/enrichment/batch.d.ts +25 -0
- package/dist/enrichment/batch.js +27 -0
- package/dist/enrichment/enrichment.d.ts +82 -0
- package/dist/enrichment/enrichment.js +23 -0
- package/dist/enrichment/mode.d.ts +3 -0
- package/dist/enrichment/mode.js +3 -0
- package/dist/enrichment/refusal-type.d.ts +16 -0
- package/dist/enrichment/refusal-type.js +13 -0
- package/dist/entity/accelerator-participation.d.ts +1 -2
- package/dist/entity/accelerator-participation.js +1 -2
- package/dist/entity/alias-type.d.ts +2 -4
- package/dist/entity/alias-type.js +2 -4
- package/dist/entity/classification.d.ts +1 -2
- package/dist/entity/classification.js +1 -2
- package/dist/entity/enrichment.d.ts +1 -2
- package/dist/entity/enrichment.js +1 -2
- package/dist/entity/entity.d.ts +3 -4
- package/dist/entity/entity.js +3 -4
- package/dist/entity/funding-detail.d.ts +1 -3
- package/dist/entity/funding-detail.js +1 -3
- package/dist/entity/fundraise-transaction-entity.d.ts +1 -4
- package/dist/entity/fundraise-transaction-entity.js +1 -4
- package/dist/entity/fundraise-transaction.d.ts +1 -4
- package/dist/entity/fundraise-transaction.js +1 -4
- package/dist/entity/image.d.ts +2 -4
- package/dist/entity/image.js +2 -4
- package/dist/entity/list-quality-gate.d.ts +1 -1
- package/dist/entity/list-quality-gate.js +1 -1
- package/dist/entity/list-research.d.ts +1 -2
- package/dist/entity/list-research.js +1 -2
- package/dist/entity/list.d.ts +1 -3
- package/dist/entity/list.js +1 -3
- package/dist/entity/name-alias-entity-alias-type.d.ts +2 -4
- package/dist/entity/name-alias-entity-alias-type.js +2 -4
- package/dist/entity/name-alias-person-alias-type.d.ts +1 -0
- package/dist/entity/name-alias-person-alias-type.js +1 -0
- package/dist/entity/operating-status.d.ts +1 -1
- package/dist/entity/operating-status.js +1 -1
- package/dist/entity/person-owner.d.ts +2 -0
- package/dist/entity/person-owner.js +2 -0
- package/dist/entity/research-detail.d.ts +1 -2
- package/dist/entity/research-detail.js +1 -2
- package/dist/entity/research-value-type.d.ts +1 -2
- package/dist/entity/research-value-type.js +1 -2
- package/dist/entity/similarity-origin.d.ts +0 -3
- package/dist/entity/similarity-origin.js +0 -3
- package/dist/entity/sitemap.d.ts +2 -4
- package/dist/entity/sitemap.js +2 -4
- package/dist/entity/tag.d.ts +3 -4
- package/dist/entity/tag.js +3 -4
- package/dist/entity/text-bundle.d.ts +2 -2
- package/dist/entity/text-bundle.js +2 -2
- package/dist/entity/type.d.ts +0 -1
- package/dist/entity/type.js +0 -1
- package/dist/entity/url-crawl-cdn-provider.d.ts +1 -2
- package/dist/entity/url-crawl-cdn-provider.js +1 -2
- package/dist/entity/url-crawl-render-mode.d.ts +1 -2
- package/dist/entity/url-crawl-render-mode.js +1 -2
- package/dist/entity/url-link.d.ts +1 -2
- package/dist/entity/url-link.js +1 -2
- package/dist/entity/url-type.d.ts +1 -3
- package/dist/entity/url-type.js +1 -3
- package/dist/funding/stage.d.ts +1 -3
- package/dist/funding/stage.js +1 -3
- package/dist/fundraise/data-confidence.d.ts +1 -3
- package/dist/fundraise/data-confidence.js +1 -3
- package/dist/fundraise/investment-attribution-type.d.ts +1 -3
- package/dist/fundraise/investment-attribution-type.js +1 -3
- package/dist/fundraise/investment-attribution.d.ts +1 -3
- package/dist/fundraise/investment-attribution.js +1 -3
- package/dist/harness/chassis.d.ts +2 -0
- package/dist/harness/chassis.js +2 -0
- package/dist/harness/llm-api.d.ts +2 -0
- package/dist/harness/llm-api.js +2 -0
- package/dist/harness/run-detail.d.ts +183 -0
- package/dist/harness/run-detail.js +27 -0
- package/dist/harness/run-environment.d.ts +2 -0
- package/dist/harness/run-environment.js +2 -0
- package/dist/harness/run-lane.d.ts +2 -0
- package/dist/harness/run-lane.js +2 -0
- package/dist/harness/run-progress.d.ts +20 -0
- package/dist/harness/run-progress.js +30 -0
- package/dist/harness/run-status.d.ts +2 -0
- package/dist/harness/run-status.js +2 -0
- package/dist/harness/run-type.d.ts +2 -0
- package/dist/harness/run-type.js +2 -0
- package/dist/harness/run.d.ts +14 -13
- package/dist/harness/run.js +14 -11
- package/dist/http/problem-detail.d.ts +4 -4
- package/dist/http/problem-detail.js +4 -3
- package/dist/identification/candidate.d.ts +3 -0
- package/dist/identification/candidate.js +5 -0
- package/dist/identification/identification.d.ts +19 -14
- package/dist/identification/identification.js +13 -12
- package/dist/int/range.d.ts +2 -1
- package/dist/int/range.js +2 -1
- package/dist/job/enqueue.d.ts +19 -0
- package/dist/job/enqueue.js +18 -0
- package/dist/job/state.d.ts +20 -0
- package/dist/job/state.js +20 -0
- package/dist/lookup/job-mention.d.ts +152 -0
- package/dist/lookup/job-mention.js +29 -0
- package/dist/lookup/job-mutation.d.ts +20 -0
- package/dist/lookup/job-mutation.js +20 -0
- package/dist/lookup/job.d.ts +202 -0
- package/dist/lookup/job.js +31 -0
- package/dist/natural/search.d.ts +0 -1
- package/dist/natural/search.js +0 -1
- package/dist/openapi-component-manifest.js +27 -60
- package/dist/pageable/object.d.ts +3 -10
- package/dist/pageable/object.js +3 -10
- package/dist/pagination/schemas.d.ts +3 -421
- package/dist/pagination/schemas.js +3 -72
- package/dist/person/alias-type.d.ts +1 -0
- package/dist/person/alias-type.js +1 -0
- package/dist/person/image.d.ts +1 -0
- package/dist/person/image.js +1 -0
- package/dist/person/person.d.ts +1 -0
- package/dist/person/person.js +1 -0
- package/dist/publication/publication.d.ts +0 -2
- package/dist/publication/publication.js +0 -2
- package/dist/publication/relation.d.ts +0 -2
- package/dist/publication/relation.js +0 -2
- package/dist/publication/type.d.ts +0 -2
- package/dist/publication/type.js +0 -2
- package/dist/research/allowance-usage.d.ts +54 -66
- package/dist/research/allowance-usage.js +13 -4
- package/dist/research/allowance.d.ts +6 -9
- package/dist/research/allowance.js +9 -10
- package/dist/research/derived-bucket.d.ts +1 -2
- package/dist/research/derived-bucket.js +1 -2
- package/dist/research/derived-range.d.ts +1 -2
- package/dist/research/derived-range.js +1 -2
- package/dist/round/label.d.ts +1 -3
- package/dist/round/label.js +1 -3
- package/dist/search/hit.d.ts +21 -0
- package/dist/search/hit.js +19 -0
- package/dist/search/mode.d.ts +0 -1
- package/dist/search/mode.js +0 -1
- package/dist/search/search.d.ts +24 -0
- package/dist/search/search.js +29 -0
- package/dist/sec/company.d.ts +1 -1
- package/dist/sec/company.js +1 -1
- package/dist/sort/object.d.ts +3 -10
- package/dist/sort/object.js +3 -10
- package/dist/source/document-list.d.ts +31 -0
- package/dist/source/document-list.js +31 -0
- package/dist/standardized/classification.d.ts +3 -4
- package/dist/standardized/classification.js +3 -4
- package/dist/system/status.d.ts +3 -1
- package/dist/system/status.js +5 -1
- package/dist/url/match-mode.d.ts +1 -1
- package/dist/url/match-mode.js +1 -1
- package/dist/web/search.d.ts +75 -0
- package/dist/web/search.js +23 -0
- package/package.json +1 -1
- package/dist/completion/gate-coverage.d.ts +0 -18
- package/dist/completion/gate-coverage.js +0 -14
- package/dist/entity/detail-coverage-slot.d.ts +0 -32
- package/dist/entity/detail-coverage-slot.js +0 -37
- package/dist/entity/filter-count-meta.d.ts +0 -16
- package/dist/entity/filter-count-meta.js +0 -14
- package/dist/entity/filter-count-result.d.ts +0 -26
- package/dist/entity/filter-count-result.js +0 -16
- package/dist/entity/filters-counts-param.d.ts +0 -19
- package/dist/entity/filters-counts-param.js +0 -23
- package/dist/entity/list-summary.d.ts +0 -285
- package/dist/entity/list-summary.js +0 -21
- package/dist/entity/suggestion-result.d.ts +0 -991
- package/dist/entity/suggestion-result.js +0 -25
- package/dist/entity/suggestion.d.ts +0 -965
- package/dist/entity/suggestion.js +0 -28
- package/dist/entity/tag-count.d.ts +0 -19
- package/dist/entity/tag-count.js +0 -17
- package/dist/entity/type-count.d.ts +0 -28
- package/dist/entity/type-count.js +0 -19
- package/dist/location/directory-entry.d.ts +0 -43
- package/dist/location/directory-entry.js +0 -25
- package/dist/location/identifier.d.ts +0 -31
- package/dist/location/identifier.js +0 -26
- package/dist/location/resolution-outcome.d.ts +0 -16
- package/dist/location/resolution-outcome.js +0 -13
- package/dist/location/scope.d.ts +0 -18
- package/dist/location/scope.js +0 -14
- package/dist/location/sitemap-batch.d.ts +0 -33
- package/dist/location/sitemap-batch.js +0 -33
- package/dist/location/sitemap.d.ts +0 -194
- package/dist/location/sitemap.js +0 -30
- package/dist/location/slug-resolution.d.ts +0 -21
- package/dist/location/slug-resolution.js +0 -20
- package/dist/sitemap/family.d.ts +0 -28
- package/dist/sitemap/family.js +0 -28
- package/dist/sitemap/url-slot.d.ts +0 -38
- package/dist/sitemap/url-slot.js +0 -26
|
@@ -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
|
package/dist/harness/run-type.js
CHANGED
|
@@ -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
|
package/dist/harness/run.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
|
|
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
|
package/dist/harness/run.js
CHANGED
|
@@ -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
|
-
|
|
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,11 @@
|
|
|
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
|
-
|
|
6
|
-
NEW_PERSON: "NEW_PERSON";
|
|
6
|
+
PERSON: "PERSON";
|
|
7
7
|
PERSON_VIEW: "PERSON_VIEW";
|
|
8
|
-
|
|
9
|
-
UPDATE_PERSON: "UPDATE_PERSON";
|
|
8
|
+
WEB_SEARCH: "WEB_SEARCH";
|
|
10
9
|
}>>>;
|
|
11
10
|
circuitBreaker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
11
|
code: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -210,6 +209,7 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
|
|
|
210
209
|
instance: z.ZodOptional<z.ZodString>;
|
|
211
210
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
212
211
|
limitType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
212
|
+
AGENT_HELP: "AGENT_HELP";
|
|
213
213
|
BILLING_ADDITIONAL_USAGE: "BILLING_ADDITIONAL_USAGE";
|
|
214
214
|
BILLING_ALLOWANCE: "BILLING_ALLOWANCE";
|
|
215
215
|
CLERK_PUBLIC_ADMISSION: "CLERK_PUBLIC_ADMISSION";
|
|
@@ -8,7 +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(["
|
|
11
|
+
.enum(["COMPANY", "PERSON", "ENTITY_VIEW", "PERSON_VIEW", "WEB_SEARCH"])
|
|
12
12
|
.nullish(),
|
|
13
13
|
circuitBreaker: z.string().nullish(),
|
|
14
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. */
|
|
@@ -16,9 +16,9 @@ const ProblemDetailSchemaDefinition = z.object({
|
|
|
16
16
|
.enum([
|
|
17
17
|
/** Caller is authenticated but lacks the required role for this operation. Agent action: surface the requiredRole field on the ProblemDetail and stop; do not retry without role escalation. */
|
|
18
18
|
"not_authorized",
|
|
19
|
-
/** Request was throttled. Agent action: wait at least retryAfterSeconds (also
|
|
19
|
+
/** Request was throttled. Agent action: wait at least retryAfterSeconds (also in the Retry-After header), then increase the delay exponentially on repeated 429s. When resetAt is present, wait until that time instead of retrying the exhausted monthly allowance. */
|
|
20
20
|
"rateLimited",
|
|
21
|
-
/** Request was throttled. Agent action: wait at least retryAfterSeconds (also
|
|
21
|
+
/** Request was throttled. Agent action: wait at least retryAfterSeconds (also in the Retry-After header), then increase the delay exponentially on repeated 429s. When resetAt is present, wait until that time instead of retrying the exhausted monthly allowance. */
|
|
22
22
|
"rate_limited",
|
|
23
23
|
/** Caller is authenticated but the subscription on their account does not include this operation. Agent action: surface ProblemDetail.detail explaining the subscription requirement and stop. The identical request cannot succeed until the account changes plan, so never retry it. */
|
|
24
24
|
"subscription_required",
|
|
@@ -149,6 +149,7 @@ const ProblemDetailSchemaDefinition = z.object({
|
|
|
149
149
|
"UNKNOWN",
|
|
150
150
|
"RESILIENCE4J",
|
|
151
151
|
"WEB_SEARCH",
|
|
152
|
+
"AGENT_HELP",
|
|
152
153
|
"NATURAL_SEARCH",
|
|
153
154
|
"BILLING_ALLOWANCE",
|
|
154
155
|
"BILLING_ADDITIONAL_USAGE",
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
package/dist/int/range.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ type IntRangeDefinition = z.infer<typeof IntRangeSchemaDefinition>;
|
|
|
8
8
|
* Integer range for count-based filter criteria
|
|
9
9
|
*
|
|
10
10
|
* @openapiSchema IntRange
|
|
11
|
-
* @endpoint GET /v1/entities
|
|
11
|
+
* @endpoint GET /v1/entities
|
|
12
|
+
* @endpoint GET /v1/people
|
|
12
13
|
* @endpoint GET /v1/search/link
|
|
13
14
|
* @endpoint POST /v1/entities/filters/refine
|
|
14
15
|
* @endpoint POST /v1/entities/filters/search
|
package/dist/int/range.js
CHANGED
|
@@ -10,7 +10,8 @@ const IntRangeSchemaDefinition = z.object({
|
|
|
10
10
|
* Integer range for count-based filter criteria
|
|
11
11
|
*
|
|
12
12
|
* @openapiSchema IntRange
|
|
13
|
-
* @endpoint GET /v1/entities
|
|
13
|
+
* @endpoint GET /v1/entities
|
|
14
|
+
* @endpoint GET /v1/people
|
|
14
15
|
* @endpoint GET /v1/search/link
|
|
15
16
|
* @endpoint POST /v1/entities/filters/refine
|
|
16
17
|
* @endpoint POST /v1/entities/filters/search
|
|
@@ -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
|