@aventurevc/api-schemas 0.8.29 → 0.8.31

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.
@@ -26,7 +26,7 @@ import { z } from "zod/v4";
26
26
  */
27
27
  export declare const EntityPersonAssociationSchema: z.ZodObject<{
28
28
  associationId: z.ZodInt;
29
- endDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
29
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  entityAddress: z.ZodArray<z.ZodObject<{
31
31
  address: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
32
32
  addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -229,7 +229,7 @@ export declare const EntityPersonAssociationSchema: z.ZodObject<{
229
229
  urlType: "alternativeto" | "angellist" | "appstore" | "awsmarketplace" | "bloomberg" | "capterra" | "changelog" | "chromewebstore" | "crates" | "crunchbase" | "discord" | "dockerhub" | "documentation" | "facebook" | "forum" | "g2" | "gartnerpeerinsights" | "getapp" | "github" | "glassdoor" | "googleplay" | "homebrew" | "hubspotmarketplace" | "huggingface" | "instagram" | "linkedin" | "maven" | "morningstar" | "nasdaq" | "npm" | "nyse" | "pitchbook" | "producthunt" | "pypi" | "roadmap" | "salesforceappexchange" | "slackappdirectory" | "sourceforge" | "statuspage" | "subreddit" | "support" | "theorg" | "tiktok" | "trustpilot" | "trustradius" | "twitter" | "vscodemarketplace" | "website" | "wellfound" | "wikipedia" | "ycombinator" | "youtube";
230
230
  }, unknown>>>;
231
231
  score: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
232
- startDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
232
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
233
  titleFunction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
234
  titleId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
235
235
  titleLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -33,8 +33,11 @@ import { PersonImageSchema } from "../person/image.js";
33
33
  export const EntityPersonAssociationSchema = z.object({
34
34
  /** Integer person-entity association join row id, not a person or entity UUID */
35
35
  associationId: z.int(),
36
- /** Association period end timestamp */
37
- endDate: z.iso.datetime({ offset: true }).nullish(),
36
+ /** Association period end, preserving source precision */
37
+ endDate: z
38
+ .string()
39
+ .regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-][0-9]{2}:[0-5][0-9]))?)?)?$/)
40
+ .nullish(),
38
41
  /** Entity addresses carried on the association projection */
39
42
  entityAddress: z.array(AddressSchema),
40
43
  /** Associated entity id */
@@ -68,8 +71,11 @@ export const EntityPersonAssociationSchema = z.object({
68
71
  /** Person URL links carried on the association projection */
69
72
  personUrlLink: z.array(EntityUrlLinkSchema),
70
73
  score: z.int().nullish(),
71
- /** Association period start timestamp */
72
- startDate: z.iso.datetime({ offset: true }).nullish(),
74
+ /** Association period start, preserving source precision */
75
+ startDate: z
76
+ .string()
77
+ .regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-][0-9]{2}:[0-5][0-9]))?)?)?$/)
78
+ .nullish(),
73
79
  /** Read-side corporate title function for the association row */
74
80
  titleFunction: z.string().nullish(),
75
81
  /** Corporate title id for the association row */
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
3
+ enrichmentRunId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
3
4
  entity: z.ZodArray<z.ZodType<{
4
5
  core: {
5
6
  defaultCurrency?: string | null | undefined;
@@ -1168,7 +1169,7 @@ declare const LookupJobMentionSchemaDefinition: z.ZodObject<{
1168
1169
  }, z.core.$strip>;
1169
1170
  type LookupJobMentionDefinition = z.infer<typeof LookupJobMentionSchemaDefinition>;
1170
1171
  /**
1171
- * One company or person a source names, which stored record it is, and, from a lookup job, the hidden shell record filed for it when it is new.
1172
+ * One company or person a source names, which stored record it is, and, from a lookup job or a streaming lookup, the hidden shell record filed for it when it is new.
1172
1173
  *
1173
1174
  * @openapiSchema LookupJobMention
1174
1175
  * @endpoint GET /v1/lookup-jobs/{jobId}
@@ -5,6 +5,8 @@ import { EntityPersonOwnerSchema } from "../entity/person-owner.js";
5
5
  import { IdentificationSchema } from "../identification/identification.js";
6
6
  import { PersonSchema } from "../person/person.js";
7
7
  const LookupJobMentionSchemaDefinition = z.object({
8
+ /** The background harness run filed to graduate or merge shell; absent when none was filed, such as when the shell is already public. */
9
+ enrichmentRunId: z.uuid().nullish(),
8
10
  /** POST /v1/lookup-mentions only: the candidate companies as search results show them, the match first, then by decision-model probability and duplicate-check score. */
9
11
  entity: z.array(EntityListSchema),
10
12
  /** One sentence on why this name could not be identified; absent otherwise. */
@@ -17,13 +19,13 @@ const LookupJobMentionSchemaDefinition = z.object({
17
19
  name: z.string(),
18
20
  /** POST /v1/lookup-mentions only: the candidate people as search results show them, ranked like entity. */
19
21
  person: z.array(PersonSchema),
20
- /** The hidden record a lookup 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. */
22
+ /** The hidden record filed for a NO_MATCH name whose own site web search found and whose live page names it, or the stored hidden record that already holds that site. A background enrichment run graduates or merges it (enrichmentRunId). Absent when no record was filed. */
21
23
  shell: EntityPersonOwnerSchema.nullish(),
22
- /** One sentence on why no shell was created for a NO_MATCH name, or why a created shell lacks its URL; absent otherwise. */
24
+ /** One sentence on why no shell was filed for a NO_MATCH name; absent otherwise. */
23
25
  shellDetail: z.string().nullish(),
24
26
  });
25
27
  /**
26
- * One company or person a source names, which stored record it is, and, from a lookup job, the hidden shell record filed for it when it is new.
28
+ * One company or person a source names, which stored record it is, and, from a lookup job or a streaming lookup, the hidden shell record filed for it when it is new.
27
29
  *
28
30
  * @openapiSchema LookupJobMention
29
31
  * @endpoint GET /v1/lookup-jobs/{jobId}
@@ -4,6 +4,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
4
4
  failureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  jobId: z.ZodUUID;
6
6
  mention: z.ZodArray<z.ZodType<{
7
+ enrichmentRunId?: string | null | undefined;
7
8
  entity: {
8
9
  core: {
9
10
  defaultCurrency?: string | null | undefined;
@@ -603,6 +604,7 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
603
604
  } | null | undefined;
604
605
  shellDetail?: string | null | undefined;
605
606
  }, unknown, z.core.$ZodTypeInternals<{
607
+ enrichmentRunId?: string | null | undefined;
606
608
  entity: {
607
609
  core: {
608
610
  defaultCurrency?: string | null | undefined;
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const MentionLookupSchemaDefinition: z.ZodObject<{
3
3
  mention: z.ZodArray<z.ZodType<{
4
+ enrichmentRunId?: string | null | undefined;
4
5
  entity: {
5
6
  core: {
6
7
  defaultCurrency?: string | null | undefined;
@@ -600,6 +601,7 @@ declare const MentionLookupSchemaDefinition: z.ZodObject<{
600
601
  } | null | undefined;
601
602
  shellDetail?: string | null | undefined;
602
603
  }, unknown, z.core.$ZodTypeInternals<{
604
+ enrichmentRunId?: string | null | undefined;
603
605
  entity: {
604
606
  core: {
605
607
  defaultCurrency?: string | null | undefined;
@@ -5524,7 +5524,7 @@ export type PageEntityList = z.infer<typeof PageEntityListSchema>;
5524
5524
  declare const PageEntityPersonAssociationSchemaDefinition: z.ZodObject<{
5525
5525
  content: z.ZodOptional<z.ZodArray<z.ZodObject<{
5526
5526
  associationId: z.ZodInt;
5527
- endDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
5527
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5528
5528
  entityAddress: z.ZodArray<z.ZodObject<{
5529
5529
  address: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5530
5530
  addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5727,7 +5727,7 @@ declare const PageEntityPersonAssociationSchemaDefinition: z.ZodObject<{
5727
5727
  urlType: "alternativeto" | "angellist" | "appstore" | "awsmarketplace" | "bloomberg" | "capterra" | "changelog" | "chromewebstore" | "crates" | "crunchbase" | "discord" | "dockerhub" | "documentation" | "facebook" | "forum" | "g2" | "gartnerpeerinsights" | "getapp" | "github" | "glassdoor" | "googleplay" | "homebrew" | "hubspotmarketplace" | "huggingface" | "instagram" | "linkedin" | "maven" | "morningstar" | "nasdaq" | "npm" | "nyse" | "pitchbook" | "producthunt" | "pypi" | "roadmap" | "salesforceappexchange" | "slackappdirectory" | "sourceforge" | "statuspage" | "subreddit" | "support" | "theorg" | "tiktok" | "trustpilot" | "trustradius" | "twitter" | "vscodemarketplace" | "website" | "wellfound" | "wikipedia" | "ycombinator" | "youtube";
5728
5728
  }, unknown>>>;
5729
5729
  score: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5730
- startDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
5730
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5731
5731
  titleFunction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5732
5732
  titleId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5733
5733
  titleLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3,7 +3,7 @@ declare const PersonDetailSchemaDefinition: z.ZodObject<{
3
3
  articleCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4
4
  association: z.ZodArray<z.ZodObject<{
5
5
  associationId: z.ZodInt;
6
- endDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
6
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  entityAddress: z.ZodArray<z.ZodObject<{
8
8
  address: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
9
9
  addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -206,7 +206,7 @@ declare const PersonDetailSchemaDefinition: z.ZodObject<{
206
206
  urlType: "alternativeto" | "angellist" | "appstore" | "awsmarketplace" | "bloomberg" | "capterra" | "changelog" | "chromewebstore" | "crates" | "crunchbase" | "discord" | "dockerhub" | "documentation" | "facebook" | "forum" | "g2" | "gartnerpeerinsights" | "getapp" | "github" | "glassdoor" | "googleplay" | "homebrew" | "hubspotmarketplace" | "huggingface" | "instagram" | "linkedin" | "maven" | "morningstar" | "nasdaq" | "npm" | "nyse" | "pitchbook" | "producthunt" | "pypi" | "roadmap" | "salesforceappexchange" | "slackappdirectory" | "sourceforge" | "statuspage" | "subreddit" | "support" | "theorg" | "tiktok" | "trustpilot" | "trustradius" | "twitter" | "vscodemarketplace" | "website" | "wellfound" | "wikipedia" | "ycombinator" | "youtube";
207
207
  }, unknown>>>;
208
208
  score: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
209
- startDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
209
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
210
  titleFunction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
211
  titleId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
212
212
  titleLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2,7 +2,7 @@ import { z } from "zod/v4";
2
2
  declare const PersonSimilarityResultSchemaDefinition: z.ZodObject<{
3
3
  currentRole: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4
4
  associationId: z.ZodInt;
5
- endDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
5
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  entityAddress: z.ZodArray<z.ZodObject<{
7
7
  address: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8
8
  addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -205,7 +205,7 @@ declare const PersonSimilarityResultSchemaDefinition: z.ZodObject<{
205
205
  urlType: "alternativeto" | "angellist" | "appstore" | "awsmarketplace" | "bloomberg" | "capterra" | "changelog" | "chromewebstore" | "crates" | "crunchbase" | "discord" | "dockerhub" | "documentation" | "facebook" | "forum" | "g2" | "gartnerpeerinsights" | "getapp" | "github" | "glassdoor" | "googleplay" | "homebrew" | "hubspotmarketplace" | "huggingface" | "instagram" | "linkedin" | "maven" | "morningstar" | "nasdaq" | "npm" | "nyse" | "pitchbook" | "producthunt" | "pypi" | "roadmap" | "salesforceappexchange" | "slackappdirectory" | "sourceforge" | "statuspage" | "subreddit" | "support" | "theorg" | "tiktok" | "trustpilot" | "trustradius" | "twitter" | "vscodemarketplace" | "website" | "wellfound" | "wikipedia" | "ycombinator" | "youtube";
206
206
  }, unknown>>>;
207
207
  score: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
208
- startDate: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
208
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
209
  titleFunction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
210
  titleId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
211
211
  titleLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.29",
3
+ "version": "0.8.31",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",