@aventurevc/api-schemas 0.8.280 → 0.8.282

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.
@@ -714,6 +714,11 @@ declare const DirectoryExportMutationSchemaDefinition: z.ZodObject<{
714
714
  search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
715
  semanticQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
716
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
717
+ tenure: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
718
+ ANY: "ANY";
719
+ CURRENT: "CURRENT";
720
+ PAST: "PAST";
721
+ }>>>;
717
722
  }, z.core.$strip>>>;
718
723
  size: z.ZodInt;
719
724
  sort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -27,7 +27,7 @@ import { FundingStageSchema } from "../funding/stage.js";
27
27
  export const EntityComparisonSignalsSchema = z.object({
28
28
  /** Latest funding stage when known */
29
29
  fundingStage: FundingStageSchema.nullish(),
30
- /** Provider ownership structure (current typeOwnership tags) */
30
+ /** Provider ownership from current tags and current primary parent or acquirer relationships */
31
31
  ownership: z.array(z.string()),
32
32
  /** Provider pricing/revenue model (current typeRevenue tags) */
33
33
  pricingModel: z.array(z.string()),
@@ -452,6 +452,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
452
452
  search?: string | null | undefined;
453
453
  semanticQuery?: string | null | undefined;
454
454
  status?: string | null | undefined;
455
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
455
456
  } | null | undefined;
456
457
  sort: {
457
458
  order: {
@@ -2963,6 +2964,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
2963
2964
  search?: string | null | undefined;
2964
2965
  semanticQuery?: string | null | undefined;
2965
2966
  status?: string | null | undefined;
2967
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
2966
2968
  } | null | undefined;
2967
2969
  sort: {
2968
2970
  order: {
@@ -8792,6 +8794,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
8792
8794
  search?: string | null | undefined;
8793
8795
  semanticQuery?: string | null | undefined;
8794
8796
  status?: string | null | undefined;
8797
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
8795
8798
  };
8796
8799
  interpretation: string;
8797
8800
  sort: {
@@ -9336,6 +9339,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
9336
9339
  search?: string | null | undefined;
9337
9340
  semanticQuery?: string | null | undefined;
9338
9341
  status?: string | null | undefined;
9342
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
9339
9343
  };
9340
9344
  interpretation: string;
9341
9345
  sort: {
@@ -454,6 +454,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
454
454
  search?: string | null | undefined;
455
455
  semanticQuery?: string | null | undefined;
456
456
  status?: string | null | undefined;
457
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
457
458
  } | null | undefined;
458
459
  sort: {
459
460
  order: {
@@ -4587,6 +4588,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
4587
4588
  search?: string | null | undefined;
4588
4589
  semanticQuery?: string | null | undefined;
4589
4590
  status?: string | null | undefined;
4591
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
4590
4592
  };
4591
4593
  interpretation: string;
4592
4594
  sort: {
@@ -6277,6 +6279,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
6277
6279
  search?: string | null | undefined;
6278
6280
  semanticQuery?: string | null | undefined;
6279
6281
  status?: string | null | undefined;
6282
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
6280
6283
  } | null | undefined;
6281
6284
  sort: {
6282
6285
  order: {
@@ -10410,6 +10413,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
10410
10413
  search?: string | null | undefined;
10411
10414
  semanticQuery?: string | null | undefined;
10412
10415
  status?: string | null | undefined;
10416
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
10413
10417
  };
10414
10418
  interpretation: string;
10415
10419
  sort: {
@@ -474,6 +474,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
474
474
  search?: string | null | undefined;
475
475
  semanticQuery?: string | null | undefined;
476
476
  status?: string | null | undefined;
477
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
477
478
  } | null | undefined;
478
479
  sort: {
479
480
  order: {
@@ -905,6 +906,7 @@ declare const NaturalSearchResultSchemaDefinition: z.ZodObject<{
905
906
  search?: string | null | undefined;
906
907
  semanticQuery?: string | null | undefined;
907
908
  status?: string | null | undefined;
909
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
908
910
  } | null | undefined;
909
911
  sort: {
910
912
  order: {
@@ -923,6 +923,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
923
923
  PageUniqueId: { modulePath: "pagination/schemas", schemaName: "PageUniqueIdSchema" },
924
924
  Person: { modulePath: "person/person", schemaName: "PersonSchema" },
925
925
  PersonAliasType: { modulePath: "person/alias-type", schemaName: "PersonAliasTypeSchema" },
926
+ PersonAssociationTenure: {
927
+ modulePath: "person/association-tenure",
928
+ schemaName: "PersonAssociationTenureSchema",
929
+ },
926
930
  PersonDetail: { modulePath: "person/detail", schemaName: "PersonDetailSchema" },
927
931
  PersonDetailInclude: {
928
932
  modulePath: "person/detail-include",
@@ -0,0 +1,29 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Associations to match.
4
+ *
5
+ * @openapiSchema PersonAssociationTenure
6
+ * @endpoint GET /v1/people
7
+ * @endpoint GET /v1/search/link
8
+ * @endpoint GET /v1/directory/shared/slug/{slug}
9
+ * @endpoint GET /v1/search/link/jobs/{jobId}
10
+ * @endpoint GET /v1/search/shared/{id}
11
+ * @endpoint GET /v1/search/shared/slug/{slug}
12
+ * @endpoint POST /v1/directory/exports
13
+ * @endpoint POST /v1/directory/shared
14
+ * @endpoint POST /v1/people/search
15
+ * @endpoint POST /v1/search
16
+ * @endpoint POST /v1/search/natural/entities
17
+ * @endpoint POST /v1/search/natural/people
18
+ * @endpoint POST /v1/search/shared
19
+ * @usedBySchema PersonFilterSchema
20
+ * @contractShape person.association-tenure
21
+ * @contractRole canonical
22
+ */
23
+ export declare const PersonAssociationTenureSchema: z.ZodEnum<{
24
+ ANY: "ANY";
25
+ CURRENT: "CURRENT";
26
+ PAST: "PAST";
27
+ }>;
28
+ export type PersonAssociationTenure = z.infer<typeof PersonAssociationTenureSchema>;
29
+ //# sourceMappingURL=association-tenure.d.ts.map
@@ -0,0 +1,25 @@
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
+ import { z } from "zod/v4";
3
+ /**
4
+ * Associations to match.
5
+ *
6
+ * @openapiSchema PersonAssociationTenure
7
+ * @endpoint GET /v1/people
8
+ * @endpoint GET /v1/search/link
9
+ * @endpoint GET /v1/directory/shared/slug/{slug}
10
+ * @endpoint GET /v1/search/link/jobs/{jobId}
11
+ * @endpoint GET /v1/search/shared/{id}
12
+ * @endpoint GET /v1/search/shared/slug/{slug}
13
+ * @endpoint POST /v1/directory/exports
14
+ * @endpoint POST /v1/directory/shared
15
+ * @endpoint POST /v1/people/search
16
+ * @endpoint POST /v1/search
17
+ * @endpoint POST /v1/search/natural/entities
18
+ * @endpoint POST /v1/search/natural/people
19
+ * @endpoint POST /v1/search/shared
20
+ * @usedBySchema PersonFilterSchema
21
+ * @contractShape person.association-tenure
22
+ * @contractRole canonical
23
+ */
24
+ export const PersonAssociationTenureSchema = z.enum(["CURRENT", "PAST", "ANY"]);
25
+ //# sourceMappingURL=association-tenure.js.map
@@ -490,6 +490,11 @@ export declare const PersonFilterSchema: z.ZodObject<{
490
490
  search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
491
491
  semanticQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
492
492
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
493
+ tenure: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
494
+ ANY: "ANY";
495
+ CURRENT: "CURRENT";
496
+ PAST: "PAST";
497
+ }>>>;
493
498
  }, z.core.$strip>;
494
499
  export type PersonFilter = z.infer<typeof PersonFilterSchema>;
495
500
  //# sourceMappingURL=filter.d.ts.map
@@ -3,6 +3,7 @@ import { z } from "zod/v4";
3
3
  import { EntityFilterSchema } from "../entity/filter.js";
4
4
  import { EntityPersonAssociationFilterSchema } from "../entity/person-association-filter.js";
5
5
  import { InvestorActivityFilterSchema } from "../investor/activity-filter.js";
6
+ import { PersonAssociationTenureSchema } from "./association-tenure.js";
6
7
  import { PersonListArrayFilterSchema } from "./list-array-filter.js";
7
8
  /**
8
9
  * Canonical person criteria contract for GET/POST/batch endpoints
@@ -34,7 +35,7 @@ export const PersonFilterSchema = z.object({
34
35
  additionalAssociation: EntityPersonAssociationFilterSchema.nullish(),
35
36
  /** Array and range filters */
36
37
  arrayFilter: PersonListArrayFilterSchema.optional(),
37
- /** Constraints on the associated entity, as on POST /v1/search/natural/entities: a person matches when an association (current unless isCurrent=false) points at an entity matching every field and visible in entity listings, such as yearFoundedRange, hasFundraising, or fundraiseActivity.totalRaisedRange. Omit for no associated-entity constraint. */
38
+ /** Constraints on the associated entity, as on POST /v1/search/natural/entities: a person matches when an association (current by default; selectable with tenure) points at an entity matching every field and visible in entity listings, such as yearFoundedRange, hasFundraising, or fundraiseActivity.totalRaisedRange. Omit for no associated-entity constraint. */
38
39
  entityFilter: EntityFilterSchema.optional(),
39
40
  /** Associated entity UUID. */
40
41
  entityId: z.uuid().nullish(),
@@ -48,7 +49,7 @@ export const PersonFilterSchema = z.object({
48
49
  includeUrl: z.boolean().nullish(),
49
50
  /** Aggregate investor activity filters. */
50
51
  investorActivity: InvestorActivityFilterSchema.optional(),
51
- /** Filter current associations. */
52
+ /** Legacy tenure filter; omit when selecting tenure explicitly. */
52
53
  isCurrent: z.boolean().nullish(),
53
54
  /** Person last name. */
54
55
  lastName: z.string().nullish(),
@@ -56,7 +57,7 @@ export const PersonFilterSchema = z.object({
56
57
  letter: z.string().nullish(),
57
58
  /** Name eligibility independent of search; preserve it on replay. */
58
59
  nameQuery: z.string().nullish(),
59
- /** Restrict results to specific person IDs. Omit or use [] for no ID restriction. */
60
+ /** Specific person IDs; omit or use [] for no restriction. */
60
61
  personId: z.array(z.uuid()).max(200).optional(),
61
62
  /** Exact normalized match against a person's full name or slug. */
62
63
  personName: z.array(z.string()).optional(),
@@ -70,5 +71,7 @@ export const PersonFilterSchema = z.object({
70
71
  semanticQuery: z.string().nullish(),
71
72
  /** Person workflow status. */
72
73
  status: z.string().nullish(),
74
+ /** Tenure of the association title and employer match: CURRENT, PAST, or ANY. Omitted, titles match any tenure and employers current; isCurrent must agree. */
75
+ tenure: PersonAssociationTenureSchema.nullish(),
73
76
  });
74
77
  //# sourceMappingURL=filter.js.map
@@ -35,7 +35,7 @@ export const PersonListArrayFilterSchema = z.object({
35
35
  /** Fundraise round labels. */
36
36
  round: z.array(z.string()).nullish(),
37
37
  totalInvestmentCount: z.array(IntRangeSchema).nullish(),
38
- /** Associated entity type scope. Omit or use [] for any associated type. */
38
+ /** Associated types; Organization uses EntityFilter expansion. */
39
39
  typeRecord: z.array(EntityTypeSchema).nullish(),
40
40
  });
41
41
  //# sourceMappingURL=list-array-filter.js.map
@@ -302,6 +302,7 @@ declare const PersonNaturalSearchResultSchemaDefinition: z.ZodObject<{
302
302
  search?: string | null | undefined;
303
303
  semanticQuery?: string | null | undefined;
304
304
  status?: string | null | undefined;
305
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
305
306
  };
306
307
  interpretation: string;
307
308
  sort: {
@@ -615,6 +616,7 @@ declare const PersonNaturalSearchResultSchemaDefinition: z.ZodObject<{
615
616
  search?: string | null | undefined;
616
617
  semanticQuery?: string | null | undefined;
617
618
  status?: string | null | undefined;
619
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
618
620
  };
619
621
  interpretation: string;
620
622
  sort: {
@@ -466,6 +466,11 @@ declare const PersonNaturalSearchSchemaDefinition: z.ZodObject<{
466
466
  search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
467
467
  semanticQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
468
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ tenure: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
470
+ ANY: "ANY";
471
+ CURRENT: "CURRENT";
472
+ PAST: "PAST";
473
+ }>>>;
469
474
  }, z.core.$strip>>;
470
475
  search: z.ZodType<{
471
476
  answerModel?: string | null | undefined;
@@ -480,6 +480,11 @@ declare const PersonSearchInterpretationSchemaDefinition: z.ZodObject<{
480
480
  search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
481
  semanticQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
482
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ tenure: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
484
+ ANY: "ANY";
485
+ CURRENT: "CURRENT";
486
+ PAST: "PAST";
487
+ }>>>;
483
488
  }, z.core.$strip>;
484
489
  interpretation: z.ZodString;
485
490
  sort: z.ZodType<{
@@ -672,6 +672,11 @@ declare const SearchInterpretationSchemaDefinition: z.ZodObject<{
672
672
  search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
673
  semanticQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
674
674
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
675
+ tenure: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
676
+ ANY: "ANY";
677
+ CURRENT: "CURRENT";
678
+ PAST: "PAST";
679
+ }>>>;
675
680
  }, z.core.$strip>>>;
676
681
  sort: z.ZodType<{
677
682
  order: {
@@ -658,6 +658,11 @@ declare const SharedDirectoryMutationSchemaDefinition: z.ZodObject<{
658
658
  search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
659
  semanticQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
660
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
661
+ tenure: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
662
+ ANY: "ANY";
663
+ CURRENT: "CURRENT";
664
+ PAST: "PAST";
665
+ }>>>;
661
666
  }, z.core.$strip>>>;
662
667
  sort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
668
  }, z.core.$strip>;
@@ -653,6 +653,11 @@ declare const SharedDirectorySchemaDefinition: z.ZodObject<{
653
653
  search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
654
  semanticQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
655
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ tenure: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
657
+ ANY: "ANY";
658
+ CURRENT: "CURRENT";
659
+ PAST: "PAST";
660
+ }>>>;
656
661
  }, z.core.$strip>>>;
657
662
  publication: z.ZodType<{
658
663
  createdAt: string;
@@ -465,6 +465,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
465
465
  search?: string | null | undefined;
466
466
  semanticQuery?: string | null | undefined;
467
467
  status?: string | null | undefined;
468
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
468
469
  } | null | undefined;
469
470
  sort: {
470
471
  order: {
@@ -4598,6 +4599,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
4598
4599
  search?: string | null | undefined;
4599
4600
  semanticQuery?: string | null | undefined;
4600
4601
  status?: string | null | undefined;
4602
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
4601
4603
  };
4602
4604
  interpretation: string;
4603
4605
  sort: {
@@ -6288,6 +6290,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
6288
6290
  search?: string | null | undefined;
6289
6291
  semanticQuery?: string | null | undefined;
6290
6292
  status?: string | null | undefined;
6293
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
6291
6294
  } | null | undefined;
6292
6295
  sort: {
6293
6296
  order: {
@@ -10421,6 +10424,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
10421
10424
  search?: string | null | undefined;
10422
10425
  semanticQuery?: string | null | undefined;
10423
10426
  status?: string | null | undefined;
10427
+ tenure?: "ANY" | "CURRENT" | "PAST" | null | undefined;
10424
10428
  };
10425
10429
  interpretation: string;
10426
10430
  sort: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.280",
3
+ "version": "0.8.282",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",