@aventurevc/api-schemas 0.8.180 → 0.8.182
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/agent/help.d.ts +2 -0
- package/dist/blog/post-type.d.ts +16 -0
- package/dist/blog/post-type.js +16 -0
- package/dist/blog/post.d.ts +17 -0
- package/dist/blog/post.js +17 -0
- package/dist/employee/count.d.ts +16 -0
- package/dist/employee/count.js +16 -0
- package/dist/entity/detail.d.ts +954 -0
- package/dist/entity/funding-detail.d.ts +4 -0
- package/dist/entity/funding-detail.js +4 -0
- package/dist/entity/fundraise-investor-activity.d.ts +27 -15
- package/dist/entity/fundraise-investor-activity.js +27 -11
- package/dist/entity/fundraise-transaction-entity.d.ts +4 -0
- package/dist/entity/fundraise-transaction-entity.js +4 -0
- package/dist/entity/investor-participation.d.ts +954 -0
- package/dist/entity/research-fact-value.d.ts +16 -0
- package/dist/entity/research-fact-value.js +16 -0
- package/dist/entity/research-value-type.d.ts +4 -0
- package/dist/entity/research-value-type.js +4 -0
- package/dist/entity/resolution.d.ts +954 -0
- package/dist/entity/url-crawl-cdn-provider.d.ts +5 -0
- package/dist/entity/url-crawl-cdn-provider.js +5 -0
- package/dist/entity/url-crawl-render-mode.d.ts +5 -0
- package/dist/entity/url-crawl-render-mode.js +5 -0
- package/dist/entity/valuation-data-confidence.d.ts +16 -0
- package/dist/entity/valuation-data-confidence.js +16 -0
- package/dist/federated/search.d.ts +2042 -134
- package/dist/funding/stage.d.ts +4 -0
- package/dist/funding/stage.js +4 -0
- package/dist/harness/task-input-type.d.ts +3 -1
- package/dist/harness/task-input-type.js +2 -2
- package/dist/harness/task-plan.d.ts +2 -0
- package/dist/harness/task.d.ts +3 -0
- package/dist/harness/task.js +2 -0
- package/dist/help/resolution.d.ts +2 -0
- package/dist/http/problem-detail.d.ts +4 -0
- package/dist/http/problem-detail.js +2 -0
- package/dist/identification/identification.d.ts +19 -0
- package/dist/identification/identification.js +5 -2
- package/dist/identification/subject.d.ts +5 -0
- package/dist/identification/subject.js +3 -0
- package/dist/link/search.d.ts +2125 -217
- package/dist/lookup/job-mention.d.ts +19 -0
- package/dist/lookup/job-mention.js +1 -1
- package/dist/lookup/job-mutation.d.ts +5 -0
- package/dist/lookup/job.d.ts +49 -0
- package/dist/mention/lookup.d.ts +20 -0
- package/dist/news/news.d.ts +4 -0
- package/dist/news/news.js +4 -0
- package/dist/openapi-component-manifest.js +9 -0
- package/dist/pagination/schemas.d.ts +4255 -439
- package/dist/person/detail-include.d.ts +19 -0
- package/dist/person/detail-include.js +19 -0
- package/dist/person/detail.d.ts +934 -0
- package/dist/person/detail.js +13 -1
- package/dist/person/graph-career-context.d.ts +16 -0
- package/dist/person/graph-career-context.js +16 -0
- package/dist/person/graph-co-investor.d.ts +16 -0
- package/dist/person/graph-co-investor.js +16 -0
- package/dist/person/graph-member.d.ts +16 -0
- package/dist/person/graph-member.js +16 -0
- package/dist/person/graph-similar-entity.d.ts +16 -0
- package/dist/person/graph-similar-entity.js +16 -0
- package/dist/person/graph.d.ts +26 -14
- package/dist/person/graph.js +25 -9
- package/dist/person/investor-participation.d.ts +954 -0
- package/dist/person/lookup-exact-param.d.ts +7 -0
- package/dist/person/lookup-exact-param.js +2 -0
- package/dist/person/similarity-context.d.ts +16 -0
- package/dist/person/similarity-context.js +16 -0
- package/dist/person/similarity-origin.d.ts +16 -0
- package/dist/person/similarity-origin.js +16 -0
- package/dist/person/similarity-result.d.ts +17 -0
- package/dist/person/similarity-result.js +17 -0
- package/dist/problem/type.d.ts +2 -0
- package/dist/problem/type.js +1 -0
- package/dist/shared/search.d.ts +2125 -217
- package/dist/stage/frequency.d.ts +16 -0
- package/dist/stage/frequency.js +16 -0
- package/dist/unique/id-mutation.d.ts +22 -0
- package/dist/unique/id-mutation.js +25 -0
- package/dist/unique/id-type.d.ts +3 -1
- package/dist/unique/id-type.js +2 -1
- package/dist/unique/id.d.ts +2 -0
- package/dist/url/host-form-resolution.d.ts +63 -0
- package/dist/url/host-form-resolution.js +38 -0
- package/package.json +1 -1
package/dist/person/detail.js
CHANGED
|
@@ -1,20 +1,32 @@
|
|
|
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
|
+
import { BlogPostSchema } from "../blog/post.js";
|
|
4
|
+
import { EntityFundraiseInvestorActivitySchema } from "../entity/fundraise-investor-activity.js";
|
|
3
5
|
import { EntityNameAliasPersonAliasTypeSchema } from "../entity/name-alias-person-alias-type.js";
|
|
4
6
|
import { EntityPersonAssociationSchema } from "../entity/person-association.js";
|
|
5
7
|
import { PersonEnrichmentSchema } from "./enrichment.js";
|
|
8
|
+
import { PersonGraphSchema } from "./graph.js";
|
|
6
9
|
import { PersonInvestmentSchema } from "./investment.js";
|
|
7
10
|
import { PersonSchema } from "./person.js";
|
|
11
|
+
import { PersonSimilarityResultSchema } from "./similarity-result.js";
|
|
8
12
|
const PersonDetailSchemaDefinition = z.object({
|
|
9
13
|
articleCount: z.int().nullish(),
|
|
10
14
|
/** Entity associations for this person */
|
|
11
15
|
association: z.array(EntityPersonAssociationSchema),
|
|
16
|
+
/** Newest active blog posts first; present only when include names blogPost */
|
|
17
|
+
blogPost: z.array(BlogPostSchema).nullish(),
|
|
12
18
|
core: PersonSchema,
|
|
13
19
|
enrichment: PersonEnrichmentSchema,
|
|
14
|
-
/**
|
|
20
|
+
/** Precomputed person graph; present only when include names graph */
|
|
21
|
+
graph: PersonGraphSchema.nullish(),
|
|
22
|
+
/** Investments associated with this person. When include names investment, this is the investments endpoint's newest-first page 0 at its maximum page size, 200: fewer than 200 rows is the whole list, otherwise continue at page=1&size=200. */
|
|
15
23
|
investment: z.array(PersonInvestmentSchema),
|
|
24
|
+
/** Investor activity rollup; present only when include names investorActivity */
|
|
25
|
+
investorActivity: EntityFundraiseInvestorActivitySchema.nullish(),
|
|
16
26
|
/** Display and search aliases for this person */
|
|
17
27
|
nameAlias: z.array(EntityNameAliasPersonAliasTypeSchema),
|
|
28
|
+
/** Most similar people, highest score first; present only when include names similar */
|
|
29
|
+
similar: z.array(PersonSimilarityResultSchema).nullish(),
|
|
18
30
|
});
|
|
19
31
|
/**
|
|
20
32
|
* Composed person wrapper: core identity + enrichment + associations + investments. Access core fields via .core (for example .core.slug or .core.nameFull).
|
|
@@ -392,7 +392,23 @@ export interface PersonGraphCareerContextSchemaInput extends z.input<typeof Pers
|
|
|
392
392
|
* Entity facts, recent news, colleagues, and similar entities for one associated entity
|
|
393
393
|
*
|
|
394
394
|
* @openapiSchema PersonGraphCareerContext
|
|
395
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
396
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
397
|
+
* @endpoint GET /v1/search/link
|
|
398
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
399
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
400
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
401
|
+
* @endpoint GET /v1/people/{personId}
|
|
395
402
|
* @endpoint GET /v1/people/{personId}/graph
|
|
403
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
404
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
405
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
406
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
407
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
408
|
+
* @endpoint POST /v1/entities/search
|
|
409
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
410
|
+
* @endpoint POST /v1/search
|
|
411
|
+
* @endpoint POST /v1/search/shared
|
|
396
412
|
* @usedBySchema PersonGraphSchema
|
|
397
413
|
* @contractShape person.graph-career-context
|
|
398
414
|
* @contractRole canonical
|
|
@@ -24,7 +24,23 @@ const PersonGraphCareerContextSchemaDefinition = z.object({
|
|
|
24
24
|
* Entity facts, recent news, colleagues, and similar entities for one associated entity
|
|
25
25
|
*
|
|
26
26
|
* @openapiSchema PersonGraphCareerContext
|
|
27
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
28
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
29
|
+
* @endpoint GET /v1/search/link
|
|
30
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
31
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
32
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
33
|
+
* @endpoint GET /v1/people/{personId}
|
|
27
34
|
* @endpoint GET /v1/people/{personId}/graph
|
|
35
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
36
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
37
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
38
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
39
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
40
|
+
* @endpoint POST /v1/entities/search
|
|
41
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
42
|
+
* @endpoint POST /v1/search
|
|
43
|
+
* @endpoint POST /v1/search/shared
|
|
28
44
|
* @usedBySchema PersonGraphSchema
|
|
29
45
|
* @contractShape person.graph-career-context
|
|
30
46
|
* @contractRole canonical
|
|
@@ -82,7 +82,23 @@ export interface PersonGraphCoInvestorSchemaInput extends z.input<typeof PersonG
|
|
|
82
82
|
* Person who co-invested with the subject, with the shared context
|
|
83
83
|
*
|
|
84
84
|
* @openapiSchema PersonGraphCoInvestor
|
|
85
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
86
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
87
|
+
* @endpoint GET /v1/search/link
|
|
88
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
89
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
90
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
91
|
+
* @endpoint GET /v1/people/{personId}
|
|
85
92
|
* @endpoint GET /v1/people/{personId}/graph
|
|
93
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
94
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
95
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
96
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
97
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
98
|
+
* @endpoint POST /v1/entities/search
|
|
99
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
100
|
+
* @endpoint POST /v1/search
|
|
101
|
+
* @endpoint POST /v1/search/shared
|
|
86
102
|
* @usedBySchema PersonGraphSchema
|
|
87
103
|
* @contractShape person.graph-co-investor
|
|
88
104
|
* @contractRole canonical
|
|
@@ -18,7 +18,23 @@ const PersonGraphCoInvestorSchemaDefinition = z.object({
|
|
|
18
18
|
* Person who co-invested with the subject, with the shared context
|
|
19
19
|
*
|
|
20
20
|
* @openapiSchema PersonGraphCoInvestor
|
|
21
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
22
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
23
|
+
* @endpoint GET /v1/search/link
|
|
24
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
25
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
26
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
27
|
+
* @endpoint GET /v1/people/{personId}
|
|
21
28
|
* @endpoint GET /v1/people/{personId}/graph
|
|
29
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
30
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
31
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
32
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
33
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
34
|
+
* @endpoint POST /v1/entities/search
|
|
35
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
36
|
+
* @endpoint POST /v1/search
|
|
37
|
+
* @endpoint POST /v1/search/shared
|
|
22
38
|
* @usedBySchema PersonGraphSchema
|
|
23
39
|
* @contractShape person.graph-co-investor
|
|
24
40
|
* @contractRole canonical
|
|
@@ -20,7 +20,23 @@ export interface PersonGraphMemberSchemaInput extends z.input<typeof PersonGraph
|
|
|
20
20
|
* Lean person rail member with association title facts
|
|
21
21
|
*
|
|
22
22
|
* @openapiSchema PersonGraphMember
|
|
23
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
24
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
25
|
+
* @endpoint GET /v1/search/link
|
|
26
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
27
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
28
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
29
|
+
* @endpoint GET /v1/people/{personId}
|
|
23
30
|
* @endpoint GET /v1/people/{personId}/graph
|
|
31
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
32
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
33
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
34
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
35
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
36
|
+
* @endpoint POST /v1/entities/search
|
|
37
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
38
|
+
* @endpoint POST /v1/search
|
|
39
|
+
* @endpoint POST /v1/search/shared
|
|
24
40
|
* @usedBySchema PersonGraphCareerContextSchema
|
|
25
41
|
* @usedBySchema PersonGraphCoInvestorSchema
|
|
26
42
|
* @usedBySchema PersonGraphSimilarEntitySchema
|
|
@@ -21,7 +21,23 @@ const PersonGraphMemberSchemaDefinition = z.object({
|
|
|
21
21
|
* Lean person rail member with association title facts
|
|
22
22
|
*
|
|
23
23
|
* @openapiSchema PersonGraphMember
|
|
24
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
25
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
26
|
+
* @endpoint GET /v1/search/link
|
|
27
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
28
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
29
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
30
|
+
* @endpoint GET /v1/people/{personId}
|
|
24
31
|
* @endpoint GET /v1/people/{personId}/graph
|
|
32
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
33
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
34
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
35
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
36
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
37
|
+
* @endpoint POST /v1/entities/search
|
|
38
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
39
|
+
* @endpoint POST /v1/search
|
|
40
|
+
* @endpoint POST /v1/search/shared
|
|
25
41
|
* @usedBySchema PersonGraphCareerContextSchema
|
|
26
42
|
* @usedBySchema PersonGraphCoInvestorSchema
|
|
27
43
|
* @usedBySchema PersonGraphSimilarEntitySchema
|
|
@@ -171,7 +171,23 @@ export interface PersonGraphSimilarEntitySchemaInput extends z.input<typeof Pers
|
|
|
171
171
|
* Similar-entity card with its key people
|
|
172
172
|
*
|
|
173
173
|
* @openapiSchema PersonGraphSimilarEntity
|
|
174
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
175
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
176
|
+
* @endpoint GET /v1/search/link
|
|
177
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
178
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
179
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
180
|
+
* @endpoint GET /v1/people/{personId}
|
|
174
181
|
* @endpoint GET /v1/people/{personId}/graph
|
|
182
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
183
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
184
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
185
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
186
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
187
|
+
* @endpoint POST /v1/entities/search
|
|
188
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
189
|
+
* @endpoint POST /v1/search
|
|
190
|
+
* @endpoint POST /v1/search/shared
|
|
175
191
|
* @usedBySchema PersonGraphCareerContextSchema
|
|
176
192
|
* @contractShape person.graph-similar-entity
|
|
177
193
|
* @contractRole canonical
|
|
@@ -12,7 +12,23 @@ const PersonGraphSimilarEntitySchemaDefinition = z.object({
|
|
|
12
12
|
* Similar-entity card with its key people
|
|
13
13
|
*
|
|
14
14
|
* @openapiSchema PersonGraphSimilarEntity
|
|
15
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
16
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
17
|
+
* @endpoint GET /v1/search/link
|
|
18
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
19
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
20
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
21
|
+
* @endpoint GET /v1/people/{personId}
|
|
15
22
|
* @endpoint GET /v1/people/{personId}/graph
|
|
23
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
24
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
25
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
26
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
27
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
28
|
+
* @endpoint POST /v1/entities/search
|
|
29
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
30
|
+
* @endpoint POST /v1/search
|
|
31
|
+
* @endpoint POST /v1/search/shared
|
|
16
32
|
* @usedBySchema PersonGraphCareerContextSchema
|
|
17
33
|
* @contractShape person.graph-similar-entity
|
|
18
34
|
* @contractRole canonical
|
package/dist/person/graph.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Precomputed professional-graph document for one person: career context per associated entity (entity facts, recent news, colleagues, similar entities with key people), plus co-investors. Lists are capped and pre-ranked server-side; the response is the display order. Served from a precomputed store with member names, images, and slugs hydrated from live person records at read time; computedAt is null only when the document has not been materialized yet.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema PersonGraph
|
|
6
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
7
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
8
|
+
* @endpoint GET /v1/search/link
|
|
9
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
10
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
11
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
12
|
+
* @endpoint GET /v1/people/{personId}
|
|
13
|
+
* @endpoint GET /v1/people/{personId}/graph
|
|
14
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
15
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
16
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
17
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
18
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
19
|
+
* @endpoint POST /v1/entities/search
|
|
20
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
21
|
+
* @endpoint POST /v1/search
|
|
22
|
+
* @endpoint POST /v1/search/shared
|
|
23
|
+
* @usedBySchema PersonDetailSchema
|
|
24
|
+
* @contractShape person.graph
|
|
25
|
+
* @contractRole canonical
|
|
26
|
+
*/
|
|
27
|
+
export declare const PersonGraphSchema: z.ZodObject<{
|
|
3
28
|
careerContext: z.ZodArray<z.ZodType<{
|
|
4
29
|
colleague: {
|
|
5
30
|
isCurrent?: boolean | null | undefined;
|
|
@@ -478,18 +503,5 @@ declare const PersonGraphSchemaDefinition: z.ZodObject<{
|
|
|
478
503
|
}, import("./graph-co-investor.ts").PersonGraphCoInvestorSchemaInput>>>;
|
|
479
504
|
computedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
480
505
|
}, z.core.$strip>;
|
|
481
|
-
type PersonGraphDefinition = z.infer<typeof PersonGraphSchemaDefinition>;
|
|
482
|
-
export interface PersonGraphSchemaInput extends z.input<typeof PersonGraphSchemaDefinition> {
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* Precomputed professional-graph document for one person: career context per associated entity (entity facts, recent news, colleagues, similar entities with key people), plus co-investors. Lists are capped and pre-ranked server-side; the response is the display order. Served from a precomputed store with member names, images, and slugs hydrated from live person records at read time; computedAt is null only when the document has not been materialized yet.
|
|
486
|
-
*
|
|
487
|
-
* @openapiSchema PersonGraph
|
|
488
|
-
* @endpoint GET /v1/people/{personId}/graph
|
|
489
|
-
* @contractShape person.graph
|
|
490
|
-
* @contractRole canonical
|
|
491
|
-
*/
|
|
492
|
-
export declare const PersonGraphSchema: z.ZodType<PersonGraphDefinition, PersonGraphSchemaInput>;
|
|
493
506
|
export type PersonGraph = z.infer<typeof PersonGraphSchema>;
|
|
494
|
-
export {};
|
|
495
507
|
//# sourceMappingURL=graph.d.ts.map
|
package/dist/person/graph.js
CHANGED
|
@@ -2,21 +2,37 @@
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { PersonGraphCareerContextSchema } from "./graph-career-context.js";
|
|
4
4
|
import { PersonGraphCoInvestorSchema } from "./graph-co-investor.js";
|
|
5
|
-
const PersonGraphSchemaDefinition = z.object({
|
|
6
|
-
/** One entry per entity the person holds or held an association with, current first */
|
|
7
|
-
careerContext: z.array(PersonGraphCareerContextSchema),
|
|
8
|
-
/** People who participated in the same fundraise transactions or invested in the same companies, ranked by overlap count and recency */
|
|
9
|
-
coInvestor: z.array(PersonGraphCoInvestorSchema),
|
|
10
|
-
/** Instant the document was materialized; null only when no document exists yet and an asynchronous recompute has been requested */
|
|
11
|
-
computedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
12
|
-
});
|
|
13
5
|
/**
|
|
14
6
|
* Precomputed professional-graph document for one person: career context per associated entity (entity facts, recent news, colleagues, similar entities with key people), plus co-investors. Lists are capped and pre-ranked server-side; the response is the display order. Served from a precomputed store with member names, images, and slugs hydrated from live person records at read time; computedAt is null only when the document has not been materialized yet.
|
|
15
7
|
*
|
|
16
8
|
* @openapiSchema PersonGraph
|
|
9
|
+
* @endpoint GET /v1/entities/lookup-exact
|
|
10
|
+
* @endpoint GET /v1/people/lookup-exact
|
|
11
|
+
* @endpoint GET /v1/search/link
|
|
12
|
+
* @endpoint GET /v1/entities/{entityId}
|
|
13
|
+
* @endpoint GET /v1/entities/{entityId}/investors
|
|
14
|
+
* @endpoint GET /v1/entities/{entityId}/person-investors
|
|
15
|
+
* @endpoint GET /v1/people/{personId}
|
|
17
16
|
* @endpoint GET /v1/people/{personId}/graph
|
|
17
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
18
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
19
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
20
|
+
* @endpoint POST /v1/entities/lookup-batch
|
|
21
|
+
* @endpoint POST /v1/entities/lookup-matches
|
|
22
|
+
* @endpoint POST /v1/entities/search
|
|
23
|
+
* @endpoint POST /v1/people/lookup-batch
|
|
24
|
+
* @endpoint POST /v1/search
|
|
25
|
+
* @endpoint POST /v1/search/shared
|
|
26
|
+
* @usedBySchema PersonDetailSchema
|
|
18
27
|
* @contractShape person.graph
|
|
19
28
|
* @contractRole canonical
|
|
20
29
|
*/
|
|
21
|
-
export const PersonGraphSchema =
|
|
30
|
+
export const PersonGraphSchema = z.object({
|
|
31
|
+
/** One entry per entity the person holds or held an association with, current first */
|
|
32
|
+
careerContext: z.array(PersonGraphCareerContextSchema),
|
|
33
|
+
/** People who participated in the same fundraise transactions or invested in the same companies, ranked by overlap count and recency */
|
|
34
|
+
coInvestor: z.array(PersonGraphCoInvestorSchema),
|
|
35
|
+
/** Instant the document was materialized; null only when no document exists yet and an asynchronous recompute has been requested */
|
|
36
|
+
computedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
37
|
+
});
|
|
22
38
|
//# sourceMappingURL=graph.js.map
|