@aventurevc/api-schemas 0.8.46 → 0.8.47
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/blog/post.js +1 -1
- package/dist/identification/identification.d.ts +37 -0
- package/dist/identification/identification.js +4 -0
- package/dist/identification/subject.d.ts +4 -0
- package/dist/identification/subject.js +2 -0
- package/dist/lookup/job-mention.d.ts +37 -0
- package/dist/lookup/job.d.ts +46 -0
- package/dist/mention/lookup.d.ts +46 -0
- package/package.json +1 -1
package/dist/blog/post.js
CHANGED
|
@@ -25,7 +25,7 @@ const BlogPostSchemaDefinition = z.object({
|
|
|
25
25
|
/** Timestamp when summary was last generated */
|
|
26
26
|
summaryGeneratedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
27
27
|
title: z.string().nullish(),
|
|
28
|
-
/** Nullable Library topic key the
|
|
28
|
+
/** Nullable Library topic key the article classifier assigned: funding, product, partnership, acquisition, leadership, legal, research, financials, careers, blog, or press. Rows classified before that classifier may still carry a web-crawl section key. */
|
|
29
29
|
topic: z.string().nullish(),
|
|
30
30
|
type: BlogPostTypeSchema,
|
|
31
31
|
updatedAt: z.iso.datetime({ offset: true }),
|
|
@@ -50,6 +50,42 @@ export declare const IdentificationSchema: z.ZodObject<{
|
|
|
50
50
|
}, unknown>>;
|
|
51
51
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
|
+
dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
55
|
+
duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
56
|
+
JUDGED: "JUDGED";
|
|
57
|
+
SHARED_FACT: "SHARED_FACT";
|
|
58
|
+
STUB: "STUB";
|
|
59
|
+
}>>>;
|
|
60
|
+
duplicateProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
|
+
owner: z.ZodObject<{
|
|
62
|
+
entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
63
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
+
record: z.ZodType<{
|
|
67
|
+
externalId?: string | null | undefined;
|
|
68
|
+
id: string;
|
|
69
|
+
name?: string | null | undefined;
|
|
70
|
+
operatingStatus?: string | null | undefined;
|
|
71
|
+
publicPath?: string | null | undefined;
|
|
72
|
+
reason: string[];
|
|
73
|
+
score: number;
|
|
74
|
+
slug?: string | null | undefined;
|
|
75
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
76
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
77
|
+
externalId?: string | null | undefined;
|
|
78
|
+
id: string;
|
|
79
|
+
name?: string | null | undefined;
|
|
80
|
+
operatingStatus?: string | null | undefined;
|
|
81
|
+
publicPath?: string | null | undefined;
|
|
82
|
+
reason: string[];
|
|
83
|
+
score: number;
|
|
84
|
+
slug?: string | null | undefined;
|
|
85
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
86
|
+
}, unknown>>;
|
|
87
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
53
89
|
detail: z.ZodString;
|
|
54
90
|
duplicate: z.ZodArray<z.ZodObject<{
|
|
55
91
|
dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
@@ -87,6 +123,7 @@ export declare const IdentificationSchema: z.ZodObject<{
|
|
|
87
123
|
}, unknown>>;
|
|
88
124
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
89
125
|
}, z.core.$strip>>;
|
|
126
|
+
enrichmentRunId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
90
127
|
match: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
128
|
dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
92
129
|
duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -18,10 +18,14 @@ import { IdentificationCandidateSchema } from "./candidate.js";
|
|
|
18
18
|
export const IdentificationSchema = z.object({
|
|
19
19
|
/** Records considered, most probable first. */
|
|
20
20
|
candidate: z.array(IdentificationCandidateSchema),
|
|
21
|
+
/** With fileOnMiss=true, the hidden record this NO_MATCH filed (or already held its own site): it is now stored, so do not create it. Absent otherwise. */
|
|
22
|
+
created: IdentificationCandidateSchema.nullish(),
|
|
21
23
|
/** One sentence naming what settled the answer or what the user must decide. */
|
|
22
24
|
detail: z.string(),
|
|
23
25
|
/** Other stored records judged to be this same subject stored again: likely duplicate records to merge into match. Empty when none were found. */
|
|
24
26
|
duplicate: z.array(IdentificationCandidateSchema),
|
|
27
|
+
/** The background run filed to research created; absent without created, and when the record is already public. */
|
|
28
|
+
enrichmentRunId: z.uuid().nullish(),
|
|
25
29
|
/** The matched record when status is MATCHED. */
|
|
26
30
|
match: IdentificationCandidateSchema.nullish(),
|
|
27
31
|
/** 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. */
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const IdentificationSubjectSchemaDefinition: z.ZodObject<{
|
|
3
3
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
ENTITY: "ENTITY";
|
|
6
|
+
PERSON: "PERSON";
|
|
7
|
+
}>>>;
|
|
4
8
|
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
9
|
name: z.ZodString;
|
|
6
10
|
providerId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -4,6 +4,8 @@ import { EntityTypeSchema } from "../entity/type.js";
|
|
|
4
4
|
const IdentificationSubjectSchemaDefinition = z.object({
|
|
5
5
|
/** Specific facts in plain words: product, industry, employer and title, or founder names. Generic words like startup add nothing. */
|
|
6
6
|
context: z.string().max(2000).nullish(),
|
|
7
|
+
/** Kind of record to identify when you know it; the kind-agnostic POST /v1/lookup then runs only that kind's ladder. typeRecord or providerId implies ENTITY. */
|
|
8
|
+
kind: z.enum(["ENTITY", "PERSON"]).nullish(),
|
|
7
9
|
/** City, region, or country, such as Austin, TX. Tells namesakes apart; not proof on its own. */
|
|
8
10
|
location: z.string().max(2000).nullish(),
|
|
9
11
|
/** Name exactly as the source writes it, such as Acme AI or Jane Doe. Required even when url is sent; to read a record from only a URL (an aVenture page, website, or domain) use the exact read instead: entities lookup-exact get --url, or people lookup-exact get --url for a person. */
|
|
@@ -988,6 +988,42 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
|
|
|
988
988
|
}, unknown>>;
|
|
989
989
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
990
990
|
}, z.core.$strip>>;
|
|
991
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
992
|
+
dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
993
|
+
duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
994
|
+
JUDGED: "JUDGED";
|
|
995
|
+
SHARED_FACT: "SHARED_FACT";
|
|
996
|
+
STUB: "STUB";
|
|
997
|
+
}>>>;
|
|
998
|
+
duplicateProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
999
|
+
owner: z.ZodObject<{
|
|
1000
|
+
entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1001
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1002
|
+
}, z.core.$strip>;
|
|
1003
|
+
probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1004
|
+
record: z.ZodType<{
|
|
1005
|
+
externalId?: string | null | undefined;
|
|
1006
|
+
id: string;
|
|
1007
|
+
name?: string | null | undefined;
|
|
1008
|
+
operatingStatus?: string | null | undefined;
|
|
1009
|
+
publicPath?: string | null | undefined;
|
|
1010
|
+
reason: string[];
|
|
1011
|
+
score: number;
|
|
1012
|
+
slug?: string | null | undefined;
|
|
1013
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
1014
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
1015
|
+
externalId?: string | null | undefined;
|
|
1016
|
+
id: string;
|
|
1017
|
+
name?: string | null | undefined;
|
|
1018
|
+
operatingStatus?: string | null | undefined;
|
|
1019
|
+
publicPath?: string | null | undefined;
|
|
1020
|
+
reason: string[];
|
|
1021
|
+
score: number;
|
|
1022
|
+
slug?: string | null | undefined;
|
|
1023
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
1024
|
+
}, unknown>>;
|
|
1025
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1026
|
+
}, z.core.$strip>>>;
|
|
991
1027
|
detail: z.ZodString;
|
|
992
1028
|
duplicate: z.ZodArray<z.ZodObject<{
|
|
993
1029
|
dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
@@ -1025,6 +1061,7 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
|
|
|
1025
1061
|
}, unknown>>;
|
|
1026
1062
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1027
1063
|
}, z.core.$strip>>;
|
|
1064
|
+
enrichmentRunId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1028
1065
|
match: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1029
1066
|
dataCompletionCoverage: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1030
1067
|
duplicateBasis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
package/dist/lookup/job.d.ts
CHANGED
|
@@ -506,6 +506,28 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
506
506
|
};
|
|
507
507
|
updatedAt?: string | null | undefined;
|
|
508
508
|
}[];
|
|
509
|
+
created?: {
|
|
510
|
+
dataCompletionCoverage?: number | null | undefined;
|
|
511
|
+
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|
|
512
|
+
duplicateProbability?: number | null | undefined;
|
|
513
|
+
owner: {
|
|
514
|
+
entityId?: string | null | undefined;
|
|
515
|
+
personId?: string | null | undefined;
|
|
516
|
+
};
|
|
517
|
+
probability?: number | null | undefined;
|
|
518
|
+
record: {
|
|
519
|
+
externalId?: string | null | undefined;
|
|
520
|
+
id: string;
|
|
521
|
+
name?: string | null | undefined;
|
|
522
|
+
operatingStatus?: string | null | undefined;
|
|
523
|
+
publicPath?: string | null | undefined;
|
|
524
|
+
reason: string[];
|
|
525
|
+
score: number;
|
|
526
|
+
slug?: string | null | undefined;
|
|
527
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
528
|
+
};
|
|
529
|
+
updatedAt?: string | null | undefined;
|
|
530
|
+
} | null | undefined;
|
|
509
531
|
detail: string;
|
|
510
532
|
duplicate: {
|
|
511
533
|
dataCompletionCoverage?: number | null | undefined;
|
|
@@ -529,6 +551,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
529
551
|
};
|
|
530
552
|
updatedAt?: string | null | undefined;
|
|
531
553
|
}[];
|
|
554
|
+
enrichmentRunId?: string | null | undefined;
|
|
532
555
|
match?: {
|
|
533
556
|
dataCompletionCoverage?: number | null | undefined;
|
|
534
557
|
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|
|
@@ -1106,6 +1129,28 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
1106
1129
|
};
|
|
1107
1130
|
updatedAt?: string | null | undefined;
|
|
1108
1131
|
}[];
|
|
1132
|
+
created?: {
|
|
1133
|
+
dataCompletionCoverage?: number | null | undefined;
|
|
1134
|
+
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|
|
1135
|
+
duplicateProbability?: number | null | undefined;
|
|
1136
|
+
owner: {
|
|
1137
|
+
entityId?: string | null | undefined;
|
|
1138
|
+
personId?: string | null | undefined;
|
|
1139
|
+
};
|
|
1140
|
+
probability?: number | null | undefined;
|
|
1141
|
+
record: {
|
|
1142
|
+
externalId?: string | null | undefined;
|
|
1143
|
+
id: string;
|
|
1144
|
+
name?: string | null | undefined;
|
|
1145
|
+
operatingStatus?: string | null | undefined;
|
|
1146
|
+
publicPath?: string | null | undefined;
|
|
1147
|
+
reason: string[];
|
|
1148
|
+
score: number;
|
|
1149
|
+
slug?: string | null | undefined;
|
|
1150
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
1151
|
+
};
|
|
1152
|
+
updatedAt?: string | null | undefined;
|
|
1153
|
+
} | null | undefined;
|
|
1109
1154
|
detail: string;
|
|
1110
1155
|
duplicate: {
|
|
1111
1156
|
dataCompletionCoverage?: number | null | undefined;
|
|
@@ -1129,6 +1174,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
1129
1174
|
};
|
|
1130
1175
|
updatedAt?: string | null | undefined;
|
|
1131
1176
|
}[];
|
|
1177
|
+
enrichmentRunId?: string | null | undefined;
|
|
1132
1178
|
match?: {
|
|
1133
1179
|
dataCompletionCoverage?: number | null | undefined;
|
|
1134
1180
|
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|
package/dist/mention/lookup.d.ts
CHANGED
|
@@ -501,6 +501,28 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
|
|
|
501
501
|
};
|
|
502
502
|
updatedAt?: string | null | undefined;
|
|
503
503
|
}[];
|
|
504
|
+
created?: {
|
|
505
|
+
dataCompletionCoverage?: number | null | undefined;
|
|
506
|
+
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|
|
507
|
+
duplicateProbability?: number | null | undefined;
|
|
508
|
+
owner: {
|
|
509
|
+
entityId?: string | null | undefined;
|
|
510
|
+
personId?: string | null | undefined;
|
|
511
|
+
};
|
|
512
|
+
probability?: number | null | undefined;
|
|
513
|
+
record: {
|
|
514
|
+
externalId?: string | null | undefined;
|
|
515
|
+
id: string;
|
|
516
|
+
name?: string | null | undefined;
|
|
517
|
+
operatingStatus?: string | null | undefined;
|
|
518
|
+
publicPath?: string | null | undefined;
|
|
519
|
+
reason: string[];
|
|
520
|
+
score: number;
|
|
521
|
+
slug?: string | null | undefined;
|
|
522
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
523
|
+
};
|
|
524
|
+
updatedAt?: string | null | undefined;
|
|
525
|
+
} | null | undefined;
|
|
504
526
|
detail: string;
|
|
505
527
|
duplicate: {
|
|
506
528
|
dataCompletionCoverage?: number | null | undefined;
|
|
@@ -524,6 +546,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
|
|
|
524
546
|
};
|
|
525
547
|
updatedAt?: string | null | undefined;
|
|
526
548
|
}[];
|
|
549
|
+
enrichmentRunId?: string | null | undefined;
|
|
527
550
|
match?: {
|
|
528
551
|
dataCompletionCoverage?: number | null | undefined;
|
|
529
552
|
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|
|
@@ -1101,6 +1124,28 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
|
|
|
1101
1124
|
};
|
|
1102
1125
|
updatedAt?: string | null | undefined;
|
|
1103
1126
|
}[];
|
|
1127
|
+
created?: {
|
|
1128
|
+
dataCompletionCoverage?: number | null | undefined;
|
|
1129
|
+
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|
|
1130
|
+
duplicateProbability?: number | null | undefined;
|
|
1131
|
+
owner: {
|
|
1132
|
+
entityId?: string | null | undefined;
|
|
1133
|
+
personId?: string | null | undefined;
|
|
1134
|
+
};
|
|
1135
|
+
probability?: number | null | undefined;
|
|
1136
|
+
record: {
|
|
1137
|
+
externalId?: string | null | undefined;
|
|
1138
|
+
id: string;
|
|
1139
|
+
name?: string | null | undefined;
|
|
1140
|
+
operatingStatus?: string | null | undefined;
|
|
1141
|
+
publicPath?: string | null | undefined;
|
|
1142
|
+
reason: string[];
|
|
1143
|
+
score: number;
|
|
1144
|
+
slug?: string | null | undefined;
|
|
1145
|
+
typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
|
|
1146
|
+
};
|
|
1147
|
+
updatedAt?: string | null | undefined;
|
|
1148
|
+
} | null | undefined;
|
|
1104
1149
|
detail: string;
|
|
1105
1150
|
duplicate: {
|
|
1106
1151
|
dataCompletionCoverage?: number | null | undefined;
|
|
@@ -1124,6 +1169,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
|
|
|
1124
1169
|
};
|
|
1125
1170
|
updatedAt?: string | null | undefined;
|
|
1126
1171
|
}[];
|
|
1172
|
+
enrichmentRunId?: string | null | undefined;
|
|
1127
1173
|
match?: {
|
|
1128
1174
|
dataCompletionCoverage?: number | null | undefined;
|
|
1129
1175
|
duplicateBasis?: "JUDGED" | "SHARED_FACT" | "STUB" | null | undefined;
|