@aventurevc/api-schemas 0.8.32 → 0.8.33
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.
|
@@ -1169,7 +1169,7 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
|
|
|
1169
1169
|
}, z.core.$strip>;
|
|
1170
1170
|
type LookupJobMentionDefinition = z.infer<typeof LookupJobMentionSchemaDefinition>;
|
|
1171
1171
|
/**
|
|
1172
|
-
* One company or person a source names, which stored record it is, and, from a
|
|
1172
|
+
* One company or person a source names, which stored record it is, and, from a standard article job or streaming lookup, the hidden shell record filed when it is new. Bulk lookup only identifies names and files no shells.
|
|
1173
1173
|
*
|
|
1174
1174
|
* @openapiSchema LookupJobMention
|
|
1175
1175
|
* @endpoint GET /v1/lookup-jobs/{jobId}
|
|
@@ -19,13 +19,13 @@ const LookupJobMentionSchemaDefinition = z.object({
|
|
|
19
19
|
name: z.string(),
|
|
20
20
|
/** POST /v1/lookup-mentions only: the candidate people as search results show them, ranked like entity. */
|
|
21
21
|
person: z.array(PersonSchema),
|
|
22
|
-
/** The hidden record filed for a NO_MATCH name
|
|
22
|
+
/** The hidden record filed for a NO_MATCH name when web search finds its own site and the live page names it, or the stored hidden record already holding that site. An article job also requires its article as an independent source. A background enrichment run graduates or merges it (enrichmentRunId). Absent for bulk lookups. */
|
|
23
23
|
shell: EntityPersonOwnerSchema.nullish(),
|
|
24
24
|
/** One sentence on why no shell was filed for a NO_MATCH name; absent otherwise. */
|
|
25
25
|
shellDetail: z.string().nullish(),
|
|
26
26
|
});
|
|
27
27
|
/**
|
|
28
|
-
* One company or person a source names, which stored record it is, and, from a
|
|
28
|
+
* One company or person a source names, which stored record it is, and, from a standard article job or streaming lookup, the hidden shell record filed when it is new. Bulk lookup only identifies names and files no shells.
|
|
29
29
|
*
|
|
30
30
|
* @openapiSchema LookupJobMention
|
|
31
31
|
* @endpoint GET /v1/lookup-jobs/{jobId}
|
|
@@ -14,7 +14,7 @@ declare const LookupJobMutationSchemaDefinition: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
type LookupJobMutationDefinition = z.infer<typeof LookupJobMutationSchemaDefinition>;
|
|
16
16
|
/**
|
|
17
|
-
* The article whose companies and people a lookup
|
|
17
|
+
* The article whose companies and people a lookup identifies. Send sourceUrl, sourceNewsId, or both; lookup-only bulk jobs and POST /v1/lookup-mentions also accept mention instead.
|
|
18
18
|
*
|
|
19
19
|
* @openapiSchema LookupJobMutation
|
|
20
20
|
* @endpoint GET /v1/lookup-jobs/{jobId}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { LookupMentionSchema } from "./mention.js";
|
|
4
4
|
const LookupJobMutationSchemaDefinition = z.object({
|
|
5
|
-
/**
|
|
5
|
+
/** Companies and people the caller already read, identified without sending the page or screenshot. Send them alone, without an article or file. On lookup jobs, maxNames is required and no shell records or enrichment are scheduled. */
|
|
6
6
|
mention: z.array(LookupMentionSchema).optional(),
|
|
7
7
|
/** aVenture news id of the article; an id that names no stored article is an error. */
|
|
8
8
|
sourceNewsId: z.int().nullish(),
|
|
@@ -10,7 +10,7 @@ const LookupJobMutationSchemaDefinition = z.object({
|
|
|
10
10
|
sourceUrl: z.string().max(2000).nullish(),
|
|
11
11
|
});
|
|
12
12
|
/**
|
|
13
|
-
* The article whose companies and people a lookup
|
|
13
|
+
* The article whose companies and people a lookup identifies. Send sourceUrl, sourceNewsId, or both; lookup-only bulk jobs and POST /v1/lookup-mentions also accept mention instead.
|
|
14
14
|
*
|
|
15
15
|
* @openapiSchema LookupJobMutation
|
|
16
16
|
* @endpoint GET /v1/lookup-jobs/{jobId}
|
package/dist/lookup/job.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
3
3
|
createdAt: z.ZodISODateTime;
|
|
4
4
|
failureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
jobId: z.ZodUUID;
|
|
6
|
+
limitReached: z.ZodBoolean;
|
|
7
|
+
maxNames: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
6
8
|
mention: z.ZodArray<z.ZodType<{
|
|
7
9
|
enrichmentRunId?: string | null | undefined;
|
|
8
10
|
entity: {
|
|
@@ -1204,6 +1206,8 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
1204
1206
|
} | null | undefined;
|
|
1205
1207
|
shellDetail?: string | null | undefined;
|
|
1206
1208
|
}, unknown>>>;
|
|
1209
|
+
namesFound: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1210
|
+
namesProcessed: z.ZodInt;
|
|
1207
1211
|
source: z.ZodType<{
|
|
1208
1212
|
mention?: {
|
|
1209
1213
|
name: string;
|
|
@@ -1233,7 +1237,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
1233
1237
|
}, z.core.$strip>;
|
|
1234
1238
|
type LookupJobDefinition = z.infer<typeof LookupJobSchemaDefinition>;
|
|
1235
1239
|
/**
|
|
1236
|
-
* An async lookup job's state and, once COMPLETED,
|
|
1240
|
+
* An async lookup job's state and, once COMPLETED, identified companies and people from its article or supplied names.
|
|
1237
1241
|
*
|
|
1238
1242
|
* @openapiSchema LookupJob
|
|
1239
1243
|
* @endpoint GET /v1/lookup-jobs/{jobId}
|
package/dist/lookup/job.js
CHANGED
|
@@ -10,9 +10,17 @@ const LookupJobSchemaDefinition = z.object({
|
|
|
10
10
|
failureReason: z.string().nullish(),
|
|
11
11
|
/** Lookup job id. */
|
|
12
12
|
jobId: z.uuid(),
|
|
13
|
-
/**
|
|
13
|
+
/** True when a bulk lookup returned its name bound; more names may remain. False does not prove that extraction found every name on a page. */
|
|
14
|
+
limitReached: z.boolean(),
|
|
15
|
+
/** Bulk lookup name bound; absent for legacy article jobs. */
|
|
16
|
+
maxNames: z.int().nullish(),
|
|
17
|
+
/** Each identified company and person; bulk results are available while running. */
|
|
14
18
|
mention: z.array(LookupJobMentionSchema),
|
|
15
|
-
/**
|
|
19
|
+
/** Distinct names found for a bulk lookup; absent on standard jobs. */
|
|
20
|
+
namesFound: z.int().nullish(),
|
|
21
|
+
/** Names processed so far, including per-name failures. */
|
|
22
|
+
namesProcessed: z.int(),
|
|
23
|
+
/** The article the job reads or names supplied for a bulk lookup. */
|
|
16
24
|
source: LookupJobMutationSchema,
|
|
17
25
|
/** Current job state. */
|
|
18
26
|
state: JobStateSchema,
|
|
@@ -20,7 +28,7 @@ const LookupJobSchemaDefinition = z.object({
|
|
|
20
28
|
updatedAt: z.iso.datetime({ offset: true }),
|
|
21
29
|
});
|
|
22
30
|
/**
|
|
23
|
-
* An async lookup job's state and, once COMPLETED,
|
|
31
|
+
* An async lookup job's state and, once COMPLETED, identified companies and people from its article or supplied names.
|
|
24
32
|
*
|
|
25
33
|
* @openapiSchema LookupJob
|
|
26
34
|
* @endpoint GET /v1/lookup-jobs/{jobId}
|