@aventurevc/api-schemas 0.8.55 → 0.8.57

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.
@@ -9,6 +9,7 @@ declare const EntityFilterSearchSchemaDefinition: z.ZodObject<{
9
9
  acceleratorName: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
10
  acceleratorStatus: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
11
  affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ closedLast: z.ZodOptional<z.ZodBoolean>;
12
13
  employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
13
14
  max?: number | null | undefined;
14
15
  min?: number | null | undefined;
@@ -17,6 +17,7 @@ export declare const EntityFilterSchema: z.ZodObject<{
17
17
  acceleratorName: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
18
  acceleratorStatus: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
19
  affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ closedLast: z.ZodOptional<z.ZodBoolean>;
20
21
  employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
21
22
  max?: number | null | undefined;
22
23
  min?: number | null | undefined;
@@ -31,6 +31,8 @@ export const EntityFilterSchema = z.strictObject({
31
31
  acceleratorStatus: z.array(z.string()).optional(),
32
32
  /** Affinity provider organization names accepted by the companies list filter. Affinity rows are member -> provider; use provider names here, not member names. */
33
33
  affinity: z.array(z.string()).optional(),
34
+ /** Rank closed entities (Closed, Closed (Acquihire), Inactive) after every other textSearch or semanticQuery match, ahead of relevance and sort; omitted means true. false ranks them by relevance alone. Filter them out with operatingStatus or suppressNonOperating. */
35
+ closedLast: z.boolean().optional(),
34
36
  /** Inclusive reported employee-count ranges, in employees. */
35
37
  employeeCountRange: z.array(IntRangeSchema).optional(),
36
38
  /** Restrict results to specific entity IDs. */
@@ -5,6 +5,7 @@ declare const EntityListFilterSchemaDefinition: z.ZodObject<{
5
5
  acceleratorName: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
6
  acceleratorStatus: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
7
  affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ closedLast: z.ZodOptional<z.ZodBoolean>;
8
9
  employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
9
10
  max?: number | null | undefined;
10
11
  min?: number | null | undefined;
@@ -19,6 +19,8 @@ const EntityListFilterSchemaDefinition = z.strictObject({
19
19
  acceleratorStatus: z.array(z.string()).optional(),
20
20
  /** Affinity provider organization names accepted by the companies list filter. Affinity rows are member -> provider; use provider names here, not member names. */
21
21
  affinity: z.array(z.string()).optional(),
22
+ /** Rank closed entities (Closed, Closed (Acquihire), Inactive) after every other textSearch or semanticQuery match, ahead of relevance and sort; omitted means true. false ranks them by relevance alone. Filter them out with operatingStatus or suppressNonOperating. */
23
+ closedLast: z.boolean().optional(),
22
24
  /** Inclusive reported employee-count ranges, in employees. */
23
25
  employeeCountRange: z.array(IntRangeSchema).optional(),
24
26
  /** Restrict results to specific entity IDs. */
@@ -39,7 +39,7 @@ export const EntityLookupExactParamSchema = z.object({
39
39
  .optional(),
40
40
  /** Concrete entity type qualifier; group-only Organization is invalid. List the accepted concrete tokens and their aliases with GET /v1/entities/types (CLI: entities types list). */
41
41
  typeRecord: z.string().optional(),
42
- /** Entity URL matched by host and path unless urlMatchMode=domain. */
42
+ /** aventure.vc profile URL (such as https://aventure.vc/companies/<slug>), or the entity's own website or domain URL, matched by host and path unless urlMatchMode=domain. */
43
43
  url: z.string().optional(),
44
44
  /** Website domain candidate without protocol or path. */
45
45
  urlDomain: z.string().optional(),
@@ -6,6 +6,7 @@ declare const EntityNaturalSearchSchemaDefinition: z.ZodObject<{
6
6
  acceleratorName: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
7
  acceleratorStatus: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
8
  affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ closedLast: z.ZodOptional<z.ZodBoolean>;
9
10
  employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
10
11
  max?: number | null | undefined;
11
12
  min?: number | null | undefined;
@@ -14,6 +14,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
14
14
  acceleratorName?: string[] | undefined;
15
15
  acceleratorStatus?: string[] | undefined;
16
16
  affinity?: string[] | undefined;
17
+ closedLast?: boolean | undefined;
17
18
  employeeCountRange?: {
18
19
  max?: number | null | undefined;
19
20
  min?: number | null | undefined;
@@ -611,6 +612,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
611
612
  acceleratorName?: string[] | undefined;
612
613
  acceleratorStatus?: string[] | undefined;
613
614
  affinity?: string[] | undefined;
615
+ closedLast?: boolean | undefined;
614
616
  employeeCountRange?: {
615
617
  max?: number | null | undefined;
616
618
  min?: number | null | undefined;
@@ -125,6 +125,7 @@ export declare const IdentificationSchema: z.ZodObject<{
125
125
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
126
126
  }, z.core.$strip>>;
127
127
  enrichmentRunId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
128
+ languageModelSettled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
128
129
  match: z.ZodOptional<z.ZodNullable<z.ZodObject<{
129
130
  dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
130
131
  duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -167,7 +168,6 @@ export declare const IdentificationSchema: z.ZodObject<{
167
168
  stage: z.ZodEnum<{
168
169
  DETERMINISTIC: "DETERMINISTIC";
169
170
  JUDGMENT: "JUDGMENT";
170
- LLM_JUDGMENT: "LLM_JUDGMENT";
171
171
  WEB_EVIDENCE: "WEB_EVIDENCE";
172
172
  }>;
173
173
  status: z.ZodEnum<{
@@ -27,6 +27,8 @@ export const IdentificationSchema = z.object({
27
27
  duplicate: z.array(IdentificationCandidateSchema),
28
28
  /** The background run filed to research created; absent without created, and when the record is already public. */
29
29
  enrichmentRunId: z.uuid().nullish(),
30
+ /** true when a language model, asked twice, settled a match the decision model left in review; no enrichment or repair is scheduled for it, so confirm the record before writing to it. Absent otherwise. */
31
+ languageModelSettled: z.boolean().nullish(),
30
32
  /** The matched record when status is MATCHED. */
31
33
  match: IdentificationCandidateSchema.nullish(),
32
34
  /** Decision-model confidence, 0 to 1, in its pick: the candidate it named as the subject, or, when it picked none, that no candidate is. Present whenever a judgment ran, including a none pick; absent when no judgment ran. The kind-agnostic lookup reports the side whose answer it returns. */
@@ -36,7 +38,7 @@ export const IdentificationSchema = z.object({
36
38
  /** The subject's own website or profile page found in web search. Use it as the website when creating the record only if it is the subject's own domain, not a LinkedIn, Crunchbase, or other profile page. */
37
39
  officialUrl: z.string().nullish(),
38
40
  /** The ladder step that settled the answer. */
39
- stage: z.enum(["DETERMINISTIC", "JUDGMENT", "WEB_EVIDENCE", "LLM_JUDGMENT"]),
41
+ stage: z.enum(["DETERMINISTIC", "JUDGMENT", "WEB_EVIDENCE"]),
40
42
  /** Use the scoped match, record scoped absence, or refine an ambiguous identity with evidence. */
41
43
  status: z.enum(["MATCHED", "NO_MATCH", "NEEDS_REVIEW"]),
42
44
  });
@@ -16,6 +16,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
16
16
  acceleratorName?: string[] | undefined;
17
17
  acceleratorStatus?: string[] | undefined;
18
18
  affinity?: string[] | undefined;
19
+ closedLast?: boolean | undefined;
19
20
  employeeCountRange?: {
20
21
  max?: number | null | undefined;
21
22
  min?: number | null | undefined;
@@ -773,6 +774,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
773
774
  acceleratorName?: string[] | undefined;
774
775
  acceleratorStatus?: string[] | undefined;
775
776
  affinity?: string[] | undefined;
777
+ closedLast?: boolean | undefined;
776
778
  employeeCountRange?: {
777
779
  max?: number | null | undefined;
778
780
  min?: number | null | undefined;
@@ -1062,6 +1062,7 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
1062
1062
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1063
1063
  }, z.core.$strip>>;
1064
1064
  enrichmentRunId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1065
+ languageModelSettled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1065
1066
  match: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1066
1067
  dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1067
1068
  duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -1104,7 +1105,6 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
1104
1105
  stage: z.ZodEnum<{
1105
1106
  DETERMINISTIC: "DETERMINISTIC";
1106
1107
  JUDGMENT: "JUDGMENT";
1107
- LLM_JUDGMENT: "LLM_JUDGMENT";
1108
1108
  WEB_EVIDENCE: "WEB_EVIDENCE";
1109
1109
  }>;
1110
1110
  status: z.ZodEnum<{
@@ -9,7 +9,7 @@ const LookupJobMutationSchemaDefinition = z.object({
9
9
  sourceNewsId: z.int().nullish(),
10
10
  /** URL of the article; read from aVenture news when stored there, otherwise fetched. */
11
11
  sourceUrl: z.string().max(2000).nullish(),
12
- /** Read-only: the subject of a GET /v1/lookup or POST /v1/entities/lookup request sent with Prefer: respond-async, which this job identifies exactly as that route would. Requests to create a job or read mentions must omit it. */
12
+ /** Read-only: the subject of a GET or POST /v1/lookup or POST /v1/entities/lookup request sent with Prefer: respond-async, or rolled over from a signed-in live lookup, which this job identifies exactly as that route would. Requests to create a job or read mentions must omit it. */
13
13
  subject: IdentificationSubjectSchema.nullish(),
14
14
  });
15
15
  /**
@@ -113,6 +113,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
113
113
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
114
114
  }, z.core.$strip>>;
115
115
  enrichmentRunId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
116
+ languageModelSettled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
116
117
  match: z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
118
  dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
118
119
  duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -155,7 +156,6 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
155
156
  stage: z.ZodEnum<{
156
157
  DETERMINISTIC: "DETERMINISTIC";
157
158
  JUDGMENT: "JUDGMENT";
158
- LLM_JUDGMENT: "LLM_JUDGMENT";
159
159
  WEB_EVIDENCE: "WEB_EVIDENCE";
160
160
  }>;
161
161
  status: z.ZodEnum<{
@@ -714,6 +714,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
714
714
  updatedAt?: string | null | undefined;
715
715
  }[];
716
716
  enrichmentRunId?: string | null | undefined;
717
+ languageModelSettled?: boolean | null | undefined;
717
718
  match?: {
718
719
  dataCompletionCoverage?: number | null | undefined;
719
720
  duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
@@ -739,7 +740,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
739
740
  matchConfidence?: number | null | undefined;
740
741
  matchEvidenceProbability?: number | null | undefined;
741
742
  officialUrl?: string | null | undefined;
742
- stage: "DETERMINISTIC" | "JUDGMENT" | "LLM_JUDGMENT" | "WEB_EVIDENCE";
743
+ stage: "DETERMINISTIC" | "JUDGMENT" | "WEB_EVIDENCE";
743
744
  status: "MATCHED" | "NEEDS_REVIEW" | "NO_MATCH";
744
745
  } | null | undefined;
745
746
  mentionType: "COMPANY" | "PERSON" | "PRODUCT_SERVICE";
@@ -1337,6 +1338,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
1337
1338
  updatedAt?: string | null | undefined;
1338
1339
  }[];
1339
1340
  enrichmentRunId?: string | null | undefined;
1341
+ languageModelSettled?: boolean | null | undefined;
1340
1342
  match?: {
1341
1343
  dataCompletionCoverage?: number | null | undefined;
1342
1344
  duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
@@ -1362,7 +1364,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
1362
1364
  matchConfidence?: number | null | undefined;
1363
1365
  matchEvidenceProbability?: number | null | undefined;
1364
1366
  officialUrl?: string | null | undefined;
1365
- stage: "DETERMINISTIC" | "JUDGMENT" | "LLM_JUDGMENT" | "WEB_EVIDENCE";
1367
+ stage: "DETERMINISTIC" | "JUDGMENT" | "WEB_EVIDENCE";
1366
1368
  status: "MATCHED" | "NEEDS_REVIEW" | "NO_MATCH";
1367
1369
  } | null | undefined;
1368
1370
  mentionType: "COMPANY" | "PERSON" | "PRODUCT_SERVICE";
@@ -547,6 +547,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
547
547
  updatedAt?: string | null | undefined;
548
548
  }[];
549
549
  enrichmentRunId?: string | null | undefined;
550
+ languageModelSettled?: boolean | null | undefined;
550
551
  match?: {
551
552
  dataCompletionCoverage?: number | null | undefined;
552
553
  duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
@@ -572,7 +573,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
572
573
  matchConfidence?: number | null | undefined;
573
574
  matchEvidenceProbability?: number | null | undefined;
574
575
  officialUrl?: string | null | undefined;
575
- stage: "DETERMINISTIC" | "JUDGMENT" | "LLM_JUDGMENT" | "WEB_EVIDENCE";
576
+ stage: "DETERMINISTIC" | "JUDGMENT" | "WEB_EVIDENCE";
576
577
  status: "MATCHED" | "NEEDS_REVIEW" | "NO_MATCH";
577
578
  } | null | undefined;
578
579
  mentionType: "COMPANY" | "PERSON" | "PRODUCT_SERVICE";
@@ -1170,6 +1171,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
1170
1171
  updatedAt?: string | null | undefined;
1171
1172
  }[];
1172
1173
  enrichmentRunId?: string | null | undefined;
1174
+ languageModelSettled?: boolean | null | undefined;
1173
1175
  match?: {
1174
1176
  dataCompletionCoverage?: number | null | undefined;
1175
1177
  duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
@@ -1195,7 +1197,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
1195
1197
  matchConfidence?: number | null | undefined;
1196
1198
  matchEvidenceProbability?: number | null | undefined;
1197
1199
  officialUrl?: string | null | undefined;
1198
- stage: "DETERMINISTIC" | "JUDGMENT" | "LLM_JUDGMENT" | "WEB_EVIDENCE";
1200
+ stage: "DETERMINISTIC" | "JUDGMENT" | "WEB_EVIDENCE";
1199
1201
  status: "MATCHED" | "NEEDS_REVIEW" | "NO_MATCH";
1200
1202
  } | null | undefined;
1201
1203
  mentionType: "COMPANY" | "PERSON" | "PRODUCT_SERVICE";
@@ -13,6 +13,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
13
13
  acceleratorName?: string[] | undefined;
14
14
  acceleratorStatus?: string[] | undefined;
15
15
  affinity?: string[] | undefined;
16
+ closedLast?: boolean | undefined;
16
17
  employeeCountRange?: {
17
18
  max?: number | null | undefined;
18
19
  min?: number | null | undefined;
@@ -127,6 +128,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
127
128
  acceleratorName?: string[] | undefined;
128
129
  acceleratorStatus?: string[] | undefined;
129
130
  affinity?: string[] | undefined;
131
+ closedLast?: boolean | undefined;
130
132
  employeeCountRange?: {
131
133
  max?: number | null | undefined;
132
134
  min?: number | null | undefined;
@@ -31,7 +31,7 @@ export const PersonLookupExactParamSchema = z.object({
31
31
  permitMonogram: z.boolean().optional(),
32
32
  /** Group A — exact person slug (URL-friendly identifier). Mutually exclusive with id, url, and every candidate signal in group C. */
33
33
  slug: z.string().optional(),
34
- /** Group B — current person URL to resolve via strict host+path or domain-only match. Mutually exclusive with id and slug; may be combined with group-C candidate signals for URL-first fallback. */
34
+ /** Group B — aventure.vc person profile URL (such as https://aventure.vc/people/<slug>) or the person's current profile URL, resolved via strict host+path or domain-only match. Mutually exclusive with id and slug; may be combined with group-C candidate signals for URL-first fallback. */
35
35
  url: z.string().optional(),
36
36
  /** Group C — candidate lookup signal: person URL domain (host only, no path). Combine with other group-C signals for disambiguation. Mutually exclusive with id and slug; may be combined with url for fallback. */
37
37
  urlDomain: z.string().optional(),
@@ -19,6 +19,7 @@ declare const SearchInterpretationSchemaDefinition: z.ZodObject<{
19
19
  acceleratorName?: string[] | undefined;
20
20
  acceleratorStatus?: string[] | undefined;
21
21
  affinity?: string[] | undefined;
22
+ closedLast?: boolean | undefined;
22
23
  employeeCountRange?: {
23
24
  max?: number | null | undefined;
24
25
  min?: number | null | undefined;
@@ -116,6 +117,7 @@ declare const SearchInterpretationSchemaDefinition: z.ZodObject<{
116
117
  acceleratorName?: string[] | undefined;
117
118
  acceleratorStatus?: string[] | undefined;
118
119
  affinity?: string[] | undefined;
120
+ closedLast?: boolean | undefined;
119
121
  employeeCountRange?: {
120
122
  max?: number | null | undefined;
121
123
  min?: number | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.55",
3
+ "version": "0.8.57",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",