@aventurevc/api-schemas 0.8.24 → 0.8.28

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.
Files changed (53) hide show
  1. package/dist/entity/accelerator-participation.d.ts +2 -2
  2. package/dist/entity/acquisition.d.ts +8 -5
  3. package/dist/entity/acquisition.js +3 -1
  4. package/dist/entity/detail.d.ts +34 -12
  5. package/dist/entity/entity.d.ts +2 -2
  6. package/dist/entity/entity.js +1 -1
  7. package/dist/entity/fundraise-transaction-entity.d.ts +2 -2
  8. package/dist/entity/fundraise-transaction.d.ts +2 -2
  9. package/dist/entity/investor-participation.d.ts +34 -12
  10. package/dist/entity/list-research.d.ts +10 -2
  11. package/dist/entity/list.d.ts +14 -6
  12. package/dist/entity/relationship.d.ts +6 -3
  13. package/dist/entity/relationship.js +3 -2
  14. package/dist/entity/research-detail.d.ts +4 -0
  15. package/dist/entity/research-detail.js +3 -0
  16. package/dist/entity/research-public-source.d.ts +42 -0
  17. package/dist/entity/research-public-source.js +44 -0
  18. package/dist/entity/research-snippet.d.ts +4 -0
  19. package/dist/entity/research-snippet.js +3 -0
  20. package/dist/entity/research.d.ts +14 -2
  21. package/dist/entity/resolution.d.ts +34 -12
  22. package/dist/entity/similarity-result.d.ts +14 -6
  23. package/dist/entity/similarity-summary.d.ts +2 -2
  24. package/dist/entity/text.d.ts +0 -1
  25. package/dist/entity/text.js +0 -1
  26. package/dist/federated/search.d.ts +14 -6
  27. package/dist/harness/run-detail.d.ts +4 -4
  28. package/dist/identification/candidate.d.ts +1 -0
  29. package/dist/identification/candidate.js +1 -0
  30. package/dist/identification/identification.d.ts +1 -0
  31. package/dist/identification/identification.js +1 -0
  32. package/dist/link/search.d.ts +14 -6
  33. package/dist/logo/accuracy.d.ts +0 -9
  34. package/dist/logo/accuracy.js +0 -3
  35. package/dist/lookup/job-mention.d.ts +14 -6
  36. package/dist/lookup/job.d.ts +14 -6
  37. package/dist/media/upload.d.ts +0 -18
  38. package/dist/media/upload.js +0 -3
  39. package/dist/mention/lookup.d.ts +14 -6
  40. package/dist/natural/search-result.d.ts +14 -6
  41. package/dist/openapi-component-manifest.js +4 -4
  42. package/dist/pagination/schemas.d.ts +156 -66
  43. package/dist/person/detail.d.ts +2 -2
  44. package/dist/person/graph-career-context.d.ts +4 -4
  45. package/dist/person/graph-co-investor.d.ts +2 -2
  46. package/dist/person/graph-similar-entity.d.ts +2 -2
  47. package/dist/person/graph.d.ts +6 -6
  48. package/dist/person/invested-company.d.ts +2 -2
  49. package/dist/person/investment.d.ts +2 -2
  50. package/dist/person/investor-participation.d.ts +2 -2
  51. package/package.json +1 -1
  52. package/dist/datasource/source-metadata.d.ts +0 -24
  53. package/dist/datasource/source-metadata.js +0 -24
@@ -37,7 +37,7 @@ declare const EntityAcceleratorParticipationSchemaDefinition: z.ZodObject<{
37
37
  productServiceSlug: z.ZodArray<z.ZodString>;
38
38
  }, z.core.$strip>>>;
39
39
  slug: z.ZodString;
40
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40
+ typeRecord: z.ZodEnum<{
41
41
  "Business Line": "Business Line";
42
42
  Company: "Company";
43
43
  Fund: "Fund";
@@ -47,7 +47,7 @@ declare const EntityAcceleratorParticipationSchemaDefinition: z.ZodObject<{
47
47
  Organization: "Organization";
48
48
  Product: "Product";
49
49
  Service: "Service";
50
- }>>>;
50
+ }>;
51
51
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
52
52
  }, z.core.$strip>;
53
53
  acceleratorName: z.ZodString;
@@ -37,7 +37,7 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
37
37
  productServiceSlug: z.ZodArray<z.ZodString>;
38
38
  }, z.core.$strip>>>;
39
39
  slug: z.ZodString;
40
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40
+ typeRecord: z.ZodEnum<{
41
41
  "Business Line": "Business Line";
42
42
  Company: "Company";
43
43
  Fund: "Fund";
@@ -47,7 +47,7 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
47
47
  Organization: "Organization";
48
48
  Product: "Product";
49
49
  Service: "Service";
50
- }>>>;
50
+ }>;
51
51
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
52
52
  }, z.core.$strip>;
53
53
  acquirerEntity: z.ZodObject<{
@@ -87,7 +87,7 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
87
87
  productServiceSlug: z.ZodArray<z.ZodString>;
88
88
  }, z.core.$strip>>>;
89
89
  slug: z.ZodString;
90
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
90
+ typeRecord: z.ZodEnum<{
91
91
  "Business Line": "Business Line";
92
92
  Company: "Company";
93
93
  Fund: "Fund";
@@ -97,7 +97,7 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
97
97
  Organization: "Organization";
98
98
  Product: "Product";
99
99
  Service: "Service";
100
- }>>>;
100
+ }>;
101
101
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
102
102
  }, z.core.$strip>;
103
103
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -125,8 +125,11 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
125
125
  }, unknown>>;
126
126
  fundraiseTransactionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
127
127
  investorJoinId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
128
+ publicSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
129
+ changedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
130
+ sourceDetail: z.ZodString;
131
+ }, z.core.$strip>>>;
128
132
  relationshipId: z.ZodInt;
129
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
133
  status: z.ZodEnum<{
131
134
  Acquired: "Acquired";
132
135
  "Acquired Subsidiary": "Acquired Subsidiary";
@@ -3,6 +3,7 @@ import { z } from "zod/v4";
3
3
  import { EntityAcquisitionEvidenceSchema } from "./acquisition-evidence.js";
4
4
  import { EntityAcquisitionStageSchema } from "./acquisition-stage.js";
5
5
  import { EntitySchema } from "./entity.js";
6
+ import { EntityResearchPublicSourceSchema } from "./research-public-source.js";
6
7
  import { FundraiseDataConfidenceSchema } from "../fundraise/data-confidence.js";
7
8
  import { FundraiseTransactionStatusSchema } from "../fundraise/transaction-status.js";
8
9
  const EntityAcquisitionSchemaDefinition = z.object({
@@ -22,8 +23,9 @@ const EntityAcquisitionSchemaDefinition = z.object({
22
23
  fundraiseTransactionId: z.uuid().nullish(),
23
24
  /** Type-safe identifier for fundraise investor joins */
24
25
  investorJoinId: z.uuid().nullish(),
26
+ /** Published page behind this acquisition, read from its provenance; absent for internal sources. */
27
+ publicSource: EntityResearchPublicSourceSchema.nullish(),
25
28
  relationshipId: z.int(),
26
- source: z.string().nullish(),
27
29
  /** Read stage, not transactionStatus: Acquisition before operating-status change; Acquired Subsidiary for active completed acquisitions; Acquired for terminal/folded/closed (including Closed (Acquihire)). */
28
30
  status: EntityAcquisitionStageSchema,
29
31
  transactionStatus: FundraiseTransactionStatusSchema.nullish(),
@@ -53,7 +53,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
53
53
  productServiceSlug: z.ZodArray<z.ZodString>;
54
54
  }, z.core.$strip>>>;
55
55
  slug: z.ZodString;
56
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
56
+ typeRecord: z.ZodEnum<{
57
57
  "Business Line": "Business Line";
58
58
  Company: "Company";
59
59
  Fund: "Fund";
@@ -63,7 +63,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
63
63
  Organization: "Organization";
64
64
  Product: "Product";
65
65
  Service: "Service";
66
- }>>>;
66
+ }>;
67
67
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
68
68
  }, z.core.$strip>;
69
69
  enrichment: z.ZodType<{
@@ -661,7 +661,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
661
661
  productServiceSlug: string[];
662
662
  } | null | undefined;
663
663
  slug: string;
664
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
664
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
665
665
  updatedAt?: string | null | undefined;
666
666
  };
667
667
  fundingDetail?: {
@@ -745,7 +745,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
745
745
  productServiceSlug: string[];
746
746
  } | null | undefined;
747
747
  slug: string;
748
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
748
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
749
749
  updatedAt?: string | null | undefined;
750
750
  };
751
751
  fundingDetail?: {
@@ -1106,7 +1106,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
1106
1106
  productServiceSlug: string[];
1107
1107
  } | null | undefined;
1108
1108
  slug: string;
1109
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1109
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1110
1110
  updatedAt?: string | null | undefined;
1111
1111
  };
1112
1112
  };
@@ -1434,7 +1434,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
1434
1434
  productServiceSlug: string[];
1435
1435
  } | null | undefined;
1436
1436
  slug: string;
1437
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1437
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1438
1438
  updatedAt?: string | null | undefined;
1439
1439
  };
1440
1440
  };
@@ -1520,15 +1520,18 @@ export declare const EntityDetailSchema: z.ZodObject<{
1520
1520
  productServiceSlug: string[];
1521
1521
  } | null | undefined;
1522
1522
  slug: string;
1523
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1523
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1524
1524
  updatedAt?: string | null | undefined;
1525
1525
  };
1526
1526
  id?: number | null | undefined;
1527
1527
  isCurrent?: boolean | null | undefined;
1528
1528
  isPrimary?: boolean | null | undefined;
1529
+ publicSource?: {
1530
+ changedAt?: string | null | undefined;
1531
+ sourceDetail: string;
1532
+ } | null | undefined;
1529
1533
  relationship: /*elided*/ any[];
1530
1534
  relationshipType: string;
1531
- source?: string | null | undefined;
1532
1535
  sourceEntityId?: string | null | undefined;
1533
1536
  targetEntityId?: string | null | undefined;
1534
1537
  updatedAt?: string | null | undefined;
@@ -1573,15 +1576,18 @@ export declare const EntityDetailSchema: z.ZodObject<{
1573
1576
  productServiceSlug: string[];
1574
1577
  } | null | undefined;
1575
1578
  slug: string;
1576
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1579
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1577
1580
  updatedAt?: string | null | undefined;
1578
1581
  };
1579
1582
  id?: number | null | undefined;
1580
1583
  isCurrent?: boolean | null | undefined;
1581
1584
  isPrimary?: boolean | null | undefined;
1585
+ publicSource?: {
1586
+ changedAt?: string | null | undefined;
1587
+ sourceDetail: string;
1588
+ } | null | undefined;
1582
1589
  relationship: any[];
1583
1590
  relationshipType: string;
1584
- source?: string | null | undefined;
1585
1591
  sourceEntityId?: string | null | undefined;
1586
1592
  targetEntityId?: string | null | undefined;
1587
1593
  updatedAt?: string | null | undefined;
@@ -1617,7 +1623,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
1617
1623
  productServiceSlug: string[];
1618
1624
  } | null | undefined;
1619
1625
  slug: string;
1620
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1626
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1621
1627
  updatedAt?: string | null | undefined;
1622
1628
  };
1623
1629
  acceleratorName: string;
@@ -1638,6 +1644,10 @@ export declare const EntityDetailSchema: z.ZodObject<{
1638
1644
  discreteValue?: number | null | undefined;
1639
1645
  entityId: string;
1640
1646
  id: number;
1647
+ publicSource?: {
1648
+ changedAt?: string | null | undefined;
1649
+ sourceDetail: string;
1650
+ } | null | undefined;
1641
1651
  textValue?: string | null | undefined;
1642
1652
  typeResearchDetail: string;
1643
1653
  updatedAt?: string | null | undefined;
@@ -1653,6 +1663,10 @@ export declare const EntityDetailSchema: z.ZodObject<{
1653
1663
  } | null | undefined;
1654
1664
  entityId: string;
1655
1665
  id: number;
1666
+ publicSource?: {
1667
+ changedAt?: string | null | undefined;
1668
+ sourceDetail: string;
1669
+ } | null | undefined;
1656
1670
  text: string;
1657
1671
  textType: string;
1658
1672
  updatedAt?: string | null | undefined;
@@ -1688,7 +1702,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
1688
1702
  productServiceSlug: string[];
1689
1703
  } | null | undefined;
1690
1704
  slug: string;
1691
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1705
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1692
1706
  updatedAt?: string | null | undefined;
1693
1707
  };
1694
1708
  acceleratorName: string;
@@ -1709,6 +1723,10 @@ export declare const EntityDetailSchema: z.ZodObject<{
1709
1723
  discreteValue?: number | null | undefined;
1710
1724
  entityId: string;
1711
1725
  id: number;
1726
+ publicSource?: {
1727
+ changedAt?: string | null | undefined;
1728
+ sourceDetail: string;
1729
+ } | null | undefined;
1712
1730
  textValue?: string | null | undefined;
1713
1731
  typeResearchDetail: string;
1714
1732
  updatedAt?: string | null | undefined;
@@ -1724,6 +1742,10 @@ export declare const EntityDetailSchema: z.ZodObject<{
1724
1742
  } | null | undefined;
1725
1743
  entityId: string;
1726
1744
  id: number;
1745
+ publicSource?: {
1746
+ changedAt?: string | null | undefined;
1747
+ sourceDetail: string;
1748
+ } | null | undefined;
1727
1749
  text: string;
1728
1750
  textType: string;
1729
1751
  updatedAt?: string | null | undefined;
@@ -86,7 +86,7 @@ export declare const EntitySchema: z.ZodObject<{
86
86
  productServiceSlug: z.ZodArray<z.ZodString>;
87
87
  }, z.core.$strip>>>;
88
88
  slug: z.ZodString;
89
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
89
+ typeRecord: z.ZodEnum<{
90
90
  "Business Line": "Business Line";
91
91
  Company: "Company";
92
92
  Fund: "Fund";
@@ -96,7 +96,7 @@ export declare const EntitySchema: z.ZodObject<{
96
96
  Organization: "Organization";
97
97
  Product: "Product";
98
98
  Service: "Service";
99
- }>>>;
99
+ }>;
100
100
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
101
101
  }, z.core.$strip>;
102
102
  export type Entity = z.infer<typeof EntitySchema>;
@@ -88,7 +88,7 @@ export const EntitySchema = z.object({
88
88
  .regex(/^[a-z0-9_-]+$/)
89
89
  .max(255),
90
90
  /** Entity type classification */
91
- typeRecord: EntityTypeSchema.nullish(),
91
+ typeRecord: EntityTypeSchema,
92
92
  /** Last modification timestamp */
93
93
  updatedAt: z.iso.datetime({ offset: true }).nullish(),
94
94
  });
@@ -66,7 +66,7 @@ export declare const EntityFundraiseTransactionEntitySchema: z.ZodObject<{
66
66
  productServiceSlug: z.ZodArray<z.ZodString>;
67
67
  }, z.core.$strip>>>;
68
68
  slug: z.ZodString;
69
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
69
+ typeRecord: z.ZodEnum<{
70
70
  "Business Line": "Business Line";
71
71
  Company: "Company";
72
72
  Fund: "Fund";
@@ -76,7 +76,7 @@ export declare const EntityFundraiseTransactionEntitySchema: z.ZodObject<{
76
76
  Organization: "Organization";
77
77
  Product: "Product";
78
78
  Service: "Service";
79
- }>>>;
79
+ }>;
80
80
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
81
81
  }, z.core.$strip>;
82
82
  fundingDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -50,7 +50,7 @@ declare const EntityFundraiseTransactionSchemaDefinition: z.ZodObject<{
50
50
  productServiceSlug: z.ZodArray<z.ZodString>;
51
51
  }, z.core.$strip>>>;
52
52
  slug: z.ZodString;
53
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
53
+ typeRecord: z.ZodEnum<{
54
54
  "Business Line": "Business Line";
55
55
  Company: "Company";
56
56
  Fund: "Fund";
@@ -60,7 +60,7 @@ declare const EntityFundraiseTransactionSchemaDefinition: z.ZodObject<{
60
60
  Organization: "Organization";
61
61
  Product: "Product";
62
62
  Service: "Service";
63
- }>>>;
63
+ }>;
64
64
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
65
65
  }, z.core.$strip>;
66
66
  fundingDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -38,7 +38,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
38
38
  productServiceSlug: z.ZodArray<z.ZodString>;
39
39
  }, z.core.$strip>>>;
40
40
  slug: z.ZodString;
41
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
41
+ typeRecord: z.ZodEnum<{
42
42
  "Business Line": "Business Line";
43
43
  Company: "Company";
44
44
  Fund: "Fund";
@@ -48,7 +48,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
48
48
  Organization: "Organization";
49
49
  Product: "Product";
50
50
  Service: "Service";
51
- }>>>;
51
+ }>;
52
52
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
53
53
  }, z.core.$strip>;
54
54
  enrichment: z.ZodType<{
@@ -646,7 +646,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
646
646
  productServiceSlug: string[];
647
647
  } | null | undefined;
648
648
  slug: string;
649
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
649
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
650
650
  updatedAt?: string | null | undefined;
651
651
  };
652
652
  fundingDetail?: {
@@ -730,7 +730,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
730
730
  productServiceSlug: string[];
731
731
  } | null | undefined;
732
732
  slug: string;
733
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
733
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
734
734
  updatedAt?: string | null | undefined;
735
735
  };
736
736
  fundingDetail?: {
@@ -1091,7 +1091,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1091
1091
  productServiceSlug: string[];
1092
1092
  } | null | undefined;
1093
1093
  slug: string;
1094
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1094
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1095
1095
  updatedAt?: string | null | undefined;
1096
1096
  };
1097
1097
  };
@@ -1419,7 +1419,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1419
1419
  productServiceSlug: string[];
1420
1420
  } | null | undefined;
1421
1421
  slug: string;
1422
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1422
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1423
1423
  updatedAt?: string | null | undefined;
1424
1424
  };
1425
1425
  };
@@ -1505,15 +1505,18 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1505
1505
  productServiceSlug: string[];
1506
1506
  } | null | undefined;
1507
1507
  slug: string;
1508
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1508
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1509
1509
  updatedAt?: string | null | undefined;
1510
1510
  };
1511
1511
  id?: number | null | undefined;
1512
1512
  isCurrent?: boolean | null | undefined;
1513
1513
  isPrimary?: boolean | null | undefined;
1514
+ publicSource?: {
1515
+ changedAt?: string | null | undefined;
1516
+ sourceDetail: string;
1517
+ } | null | undefined;
1514
1518
  relationship: /*elided*/ any[];
1515
1519
  relationshipType: string;
1516
- source?: string | null | undefined;
1517
1520
  sourceEntityId?: string | null | undefined;
1518
1521
  targetEntityId?: string | null | undefined;
1519
1522
  updatedAt?: string | null | undefined;
@@ -1558,15 +1561,18 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1558
1561
  productServiceSlug: string[];
1559
1562
  } | null | undefined;
1560
1563
  slug: string;
1561
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1564
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1562
1565
  updatedAt?: string | null | undefined;
1563
1566
  };
1564
1567
  id?: number | null | undefined;
1565
1568
  isCurrent?: boolean | null | undefined;
1566
1569
  isPrimary?: boolean | null | undefined;
1570
+ publicSource?: {
1571
+ changedAt?: string | null | undefined;
1572
+ sourceDetail: string;
1573
+ } | null | undefined;
1567
1574
  relationship: any[];
1568
1575
  relationshipType: string;
1569
- source?: string | null | undefined;
1570
1576
  sourceEntityId?: string | null | undefined;
1571
1577
  targetEntityId?: string | null | undefined;
1572
1578
  updatedAt?: string | null | undefined;
@@ -1602,7 +1608,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1602
1608
  productServiceSlug: string[];
1603
1609
  } | null | undefined;
1604
1610
  slug: string;
1605
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1611
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1606
1612
  updatedAt?: string | null | undefined;
1607
1613
  };
1608
1614
  acceleratorName: string;
@@ -1623,6 +1629,10 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1623
1629
  discreteValue?: number | null | undefined;
1624
1630
  entityId: string;
1625
1631
  id: number;
1632
+ publicSource?: {
1633
+ changedAt?: string | null | undefined;
1634
+ sourceDetail: string;
1635
+ } | null | undefined;
1626
1636
  textValue?: string | null | undefined;
1627
1637
  typeResearchDetail: string;
1628
1638
  updatedAt?: string | null | undefined;
@@ -1638,6 +1648,10 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1638
1648
  } | null | undefined;
1639
1649
  entityId: string;
1640
1650
  id: number;
1651
+ publicSource?: {
1652
+ changedAt?: string | null | undefined;
1653
+ sourceDetail: string;
1654
+ } | null | undefined;
1641
1655
  text: string;
1642
1656
  textType: string;
1643
1657
  updatedAt?: string | null | undefined;
@@ -1673,7 +1687,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1673
1687
  productServiceSlug: string[];
1674
1688
  } | null | undefined;
1675
1689
  slug: string;
1676
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
1690
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
1677
1691
  updatedAt?: string | null | undefined;
1678
1692
  };
1679
1693
  acceleratorName: string;
@@ -1694,6 +1708,10 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1694
1708
  discreteValue?: number | null | undefined;
1695
1709
  entityId: string;
1696
1710
  id: number;
1711
+ publicSource?: {
1712
+ changedAt?: string | null | undefined;
1713
+ sourceDetail: string;
1714
+ } | null | undefined;
1697
1715
  textValue?: string | null | undefined;
1698
1716
  typeResearchDetail: string;
1699
1717
  updatedAt?: string | null | undefined;
@@ -1709,6 +1727,10 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
1709
1727
  } | null | undefined;
1710
1728
  entityId: string;
1711
1729
  id: number;
1730
+ publicSource?: {
1731
+ changedAt?: string | null | undefined;
1732
+ sourceDetail: string;
1733
+ } | null | undefined;
1712
1734
  text: string;
1713
1735
  textType: string;
1714
1736
  updatedAt?: string | null | undefined;
@@ -30,7 +30,7 @@ declare const EntityListResearchSchemaDefinition: z.ZodObject<{
30
30
  productServiceSlug: string[];
31
31
  } | null | undefined;
32
32
  slug: string;
33
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
33
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
34
34
  updatedAt?: string | null | undefined;
35
35
  };
36
36
  acceleratorName: string;
@@ -69,7 +69,7 @@ declare const EntityListResearchSchemaDefinition: z.ZodObject<{
69
69
  productServiceSlug: string[];
70
70
  } | null | undefined;
71
71
  slug: string;
72
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
72
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
73
73
  updatedAt?: string | null | undefined;
74
74
  };
75
75
  acceleratorName: string;
@@ -90,6 +90,10 @@ declare const EntityListResearchSchemaDefinition: z.ZodObject<{
90
90
  discreteValue?: number | null | undefined;
91
91
  entityId: string;
92
92
  id: number;
93
+ publicSource?: {
94
+ changedAt?: string | null | undefined;
95
+ sourceDetail: string;
96
+ } | null | undefined;
93
97
  textValue?: string | null | undefined;
94
98
  typeResearchDetail: string;
95
99
  updatedAt?: string | null | undefined;
@@ -106,6 +110,10 @@ declare const EntityListResearchSchemaDefinition: z.ZodObject<{
106
110
  discreteValue?: number | null | undefined;
107
111
  entityId: string;
108
112
  id: number;
113
+ publicSource?: {
114
+ changedAt?: string | null | undefined;
115
+ sourceDetail: string;
116
+ } | null | undefined;
109
117
  textValue?: string | null | undefined;
110
118
  typeResearchDetail: string;
111
119
  updatedAt?: string | null | undefined;
@@ -37,7 +37,7 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
37
37
  productServiceSlug: z.ZodArray<z.ZodString>;
38
38
  }, z.core.$strip>>>;
39
39
  slug: z.ZodString;
40
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40
+ typeRecord: z.ZodEnum<{
41
41
  "Business Line": "Business Line";
42
42
  Company: "Company";
43
43
  Fund: "Fund";
@@ -47,7 +47,7 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
47
47
  Organization: "Organization";
48
48
  Product: "Product";
49
49
  Service: "Service";
50
- }>>>;
50
+ }>;
51
51
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
52
52
  }, z.core.$strip>;
53
53
  enrichment: z.ZodType<{
@@ -645,7 +645,7 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
645
645
  productServiceSlug: string[];
646
646
  } | null | undefined;
647
647
  slug: string;
648
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
648
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
649
649
  updatedAt?: string | null | undefined;
650
650
  };
651
651
  fundingDetail?: {
@@ -729,7 +729,7 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
729
729
  productServiceSlug: string[];
730
730
  } | null | undefined;
731
731
  slug: string;
732
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
732
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
733
733
  updatedAt?: string | null | undefined;
734
734
  };
735
735
  fundingDetail?: {
@@ -807,7 +807,7 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
807
807
  productServiceSlug: string[];
808
808
  } | null | undefined;
809
809
  slug: string;
810
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
810
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
811
811
  updatedAt?: string | null | undefined;
812
812
  };
813
813
  acceleratorName: string;
@@ -828,6 +828,10 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
828
828
  discreteValue?: number | null | undefined;
829
829
  entityId: string;
830
830
  id: number;
831
+ publicSource?: {
832
+ changedAt?: string | null | undefined;
833
+ sourceDetail: string;
834
+ } | null | undefined;
831
835
  textValue?: string | null | undefined;
832
836
  typeResearchDetail: string;
833
837
  updatedAt?: string | null | undefined;
@@ -865,7 +869,7 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
865
869
  productServiceSlug: string[];
866
870
  } | null | undefined;
867
871
  slug: string;
868
- typeRecord?: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service" | null | undefined;
872
+ typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
869
873
  updatedAt?: string | null | undefined;
870
874
  };
871
875
  acceleratorName: string;
@@ -886,6 +890,10 @@ declare const EntityListSchemaDefinition: z.ZodObject<{
886
890
  discreteValue?: number | null | undefined;
887
891
  entityId: string;
888
892
  id: number;
893
+ publicSource?: {
894
+ changedAt?: string | null | undefined;
895
+ sourceDetail: string;
896
+ } | null | undefined;
889
897
  textValue?: string | null | undefined;
890
898
  typeResearchDetail: string;
891
899
  updatedAt?: string | null | undefined;
@@ -85,7 +85,7 @@ declare const EntityRelationshipSchemaDefinition: z.ZodObject<{
85
85
  productServiceSlug: z.ZodArray<z.ZodString>;
86
86
  }, z.core.$strip>>>;
87
87
  slug: z.ZodString;
88
- typeRecord: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
88
+ typeRecord: z.ZodEnum<{
89
89
  "Business Line": "Business Line";
90
90
  Company: "Company";
91
91
  Fund: "Fund";
@@ -95,15 +95,18 @@ declare const EntityRelationshipSchemaDefinition: z.ZodObject<{
95
95
  Organization: "Organization";
96
96
  Product: "Product";
97
97
  Service: "Service";
98
- }>>>;
98
+ }>;
99
99
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
100
100
  }, z.core.$strip>;
101
101
  id: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
102
102
  isCurrent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
103
103
  isPrimary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
104
+ publicSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
+ changedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
106
+ sourceDetail: z.ZodString;
107
+ }, z.core.$strip>>>;
104
108
  relationship: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
105
109
  relationshipType: z.ZodString;
106
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
110
  sourceEntityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
108
111
  targetEntityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
109
112
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -2,6 +2,7 @@
2
2
  import { z } from "zod/v4";
3
3
  import { EntityComparisonSignalsSchema } from "./comparison-signals.js";
4
4
  import { EntitySchema } from "./entity.js";
5
+ import { EntityResearchPublicSourceSchema } from "./research-public-source.js";
5
6
  const EntityRelationshipSchemaDefinition = z.object({
6
7
  /** Effective date for this relationship when known */
7
8
  asOf: z.iso.date().nullish(),
@@ -18,14 +19,14 @@ const EntityRelationshipSchemaDefinition = z.object({
18
19
  isCurrent: z.boolean().nullish(),
19
20
  /** Primary/renderable curation flag for this relationship row. isCurrent=false or isPrimary=false hides the row from default relationship reads. */
20
21
  isPrimary: z.boolean().nullish(),
22
+ /** Published page behind this relationship, read from its provenance; absent for internal sources. */
23
+ publicSource: EntityResearchPublicSourceSchema.nullish(),
21
24
  /** Nested relationships for the joined entity */
22
25
  get relationship() {
23
26
  return z.array(EntityRelationshipSchemaDefinition);
24
27
  },
25
28
  /** Canonical relationship type, one of: acceleratorParticipant, acquirer, affinity, calculated, competingProductService, competitor, customer, fundManagerFirm, parent, productService, serviceProvider, similarCompany, spinOffFrom, successor. Similarity endpoint rows use stored relationship types when a curation row exists and calculated when the row comes from semantic/vector similarity. */
26
29
  relationshipType: z.string(),
27
- /** Source URL or compact source label copied to the relationship row */
28
- source: z.string().nullish(),
29
30
  /** Canonical source entity UUID stored on the relationship row. Compare with the requested entity id and `/v1/entities/relationships/types` sourceRole/targetRole to orient directional relationships such as parent. */
30
31
  sourceEntityId: z.uuid().nullish(),
31
32
  /** Canonical target entity UUID stored on the relationship row. Compare with the requested entity id and `/v1/entities/relationships/types` sourceRole/targetRole to orient directional relationships such as parent. */