@aventurevc/api-schemas 0.8.293 → 0.8.294

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 (101) hide show
  1. package/dist/classification/catalog-category.d.ts +4 -0
  2. package/dist/classification/catalog.d.ts +4 -0
  3. package/dist/directory/export-mutation.d.ts +99 -6
  4. package/dist/employee/count-match-mode.d.ts +39 -0
  5. package/dist/employee/count-match-mode.js +30 -0
  6. package/dist/employee/count-range.d.ts +49 -0
  7. package/dist/employee/count-range.js +39 -0
  8. package/dist/employee/count.d.ts +6 -0
  9. package/dist/entity/brand.d.ts +4 -0
  10. package/dist/entity/classification-suggestion.d.ts +4 -0
  11. package/dist/entity/classification.d.ts +4 -0
  12. package/dist/entity/detail.d.ts +148 -0
  13. package/dist/entity/enrichment.d.ts +26 -0
  14. package/dist/entity/filter-entry.d.ts +28 -0
  15. package/dist/entity/filter-meta.d.ts +28 -0
  16. package/dist/entity/filter-meta.js +6 -0
  17. package/dist/entity/filter-option-set.d.ts +24 -0
  18. package/dist/entity/filter-refined-filters.d.ts +12 -0
  19. package/dist/entity/filter-request-binding.d.ts +31 -0
  20. package/dist/entity/filter-request-binding.js +23 -0
  21. package/dist/entity/filter-request-value-shape.d.ts +27 -0
  22. package/dist/entity/filter-request-value-shape.js +21 -0
  23. package/dist/entity/filter-search.d.ts +33 -2
  24. package/dist/entity/filter.d.ts +33 -2
  25. package/dist/entity/filter.js +16 -7
  26. package/dist/entity/funding-detail.d.ts +22 -0
  27. package/dist/entity/funding-detail.js +15 -1
  28. package/dist/entity/fundraise-investor-activity.js +1 -1
  29. package/dist/entity/fundraise-investor-join.js +1 -1
  30. package/dist/entity/fundraise-transaction-entity.d.ts +22 -0
  31. package/dist/entity/fundraise-transaction.d.ts +22 -0
  32. package/dist/entity/investor-participation.d.ts +148 -0
  33. package/dist/entity/list-filter.d.ts +33 -2
  34. package/dist/entity/list-filter.js +16 -7
  35. package/dist/entity/list-research.d.ts +6 -0
  36. package/dist/entity/list.d.ts +70 -0
  37. package/dist/entity/natural-search.d.ts +33 -2
  38. package/dist/entity/person-association-filter.d.ts +33 -2
  39. package/dist/entity/research-detail.d.ts +3 -0
  40. package/dist/entity/research-detail.js +6 -0
  41. package/dist/entity/research-fact-value.d.ts +3 -0
  42. package/dist/entity/research-fact-value.js +6 -0
  43. package/dist/entity/research.d.ts +6 -0
  44. package/dist/entity/resolution.d.ts +148 -0
  45. package/dist/entity/similarity-result.d.ts +70 -0
  46. package/dist/entity/similarity-summary.d.ts +22 -0
  47. package/dist/entity/type.d.ts +2 -0
  48. package/dist/entity/type.js +2 -0
  49. package/dist/entity/valuation-source.d.ts +32 -0
  50. package/dist/entity/valuation-source.js +32 -0
  51. package/dist/entity/valuation-time-series-point.d.ts +3 -0
  52. package/dist/entity/valuation-time-series-point.js +6 -0
  53. package/dist/entity/valuation.d.ts +59 -0
  54. package/dist/entity/valuation.js +66 -0
  55. package/dist/federated/natural-search.d.ts +33 -2
  56. package/dist/federated/search.d.ts +654 -0
  57. package/dist/fundraise/investment-attribution.js +1 -1
  58. package/dist/fundraise/investment-evidence.d.ts +30 -0
  59. package/dist/identification/subject.d.ts +32 -0
  60. package/dist/link/search.d.ts +654 -0
  61. package/dist/lookup/job-mention.d.ts +70 -0
  62. package/dist/lookup/job-mutation.d.ts +32 -0
  63. package/dist/lookup/job.d.ts +94 -0
  64. package/dist/mention/lookup.d.ts +70 -0
  65. package/dist/natural/search-result.d.ts +342 -0
  66. package/dist/openapi-component-manifest.js +29 -0
  67. package/dist/pagination/schemas.d.ts +732 -0
  68. package/dist/person/detail.d.ts +66 -0
  69. package/dist/person/filter.d.ts +66 -4
  70. package/dist/person/graph-career-context.d.ts +58 -0
  71. package/dist/person/graph-similar-entity.d.ts +22 -0
  72. package/dist/person/graph.d.ts +66 -0
  73. package/dist/person/investor-participation.d.ts +66 -0
  74. package/dist/person/natural-search-result.d.ts +98 -0
  75. package/dist/person/natural-search.d.ts +66 -4
  76. package/dist/person/search-interpretation.d.ts +66 -4
  77. package/dist/person/similar-param.d.ts +1 -0
  78. package/dist/person/similar-param.js +2 -0
  79. package/dist/registry/filing.d.ts +16 -0
  80. package/dist/research/detail-range.d.ts +42 -0
  81. package/dist/research/detail-range.js +50 -0
  82. package/dist/research/detail-type.d.ts +11 -0
  83. package/dist/research/detail-type.js +3 -0
  84. package/dist/search/interpretation.d.ts +99 -6
  85. package/dist/search/investment.d.ts +30 -0
  86. package/dist/shared/directory-mutation.d.ts +99 -6
  87. package/dist/shared/directory.d.ts +99 -6
  88. package/dist/shared/search.d.ts +654 -0
  89. package/dist/standardized/classification-filter.d.ts +41 -0
  90. package/dist/standardized/classification-filter.js +42 -0
  91. package/dist/standardized/classification.d.ts +2 -0
  92. package/dist/standardized/classification.js +5 -1
  93. package/dist/unique/id-listing-standing.d.ts +49 -0
  94. package/dist/unique/id-listing-standing.js +40 -0
  95. package/dist/unique/id-mutation.d.ts +17 -1
  96. package/dist/unique/id-mutation.js +23 -1
  97. package/dist/unique/id.d.ts +16 -0
  98. package/dist/unique/id.js +22 -0
  99. package/dist/valuation/type.d.ts +32 -0
  100. package/dist/valuation/type.js +32 -0
  101. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Canonical request value shape derived from the bound Kotlin property type.
4
+ *
5
+ * @openapiSchema EntityFilterRequestValueShape
6
+ * @endpoint GET /v1/entities/filters
7
+ * @endpoint GET /v1/people/filters
8
+ * @endpoint POST /v1/entities/filters/refine
9
+ * @usedBySchema EntityFilterRequestBindingSchema
10
+ * @contractShape entity.filter-request-value-shape
11
+ * @contractRole canonical
12
+ */
13
+ export declare const EntityFilterRequestValueShapeSchema: z.ZodUnion<readonly [z.ZodEnum<{
14
+ ARRAY: "ARRAY";
15
+ BOOLEAN: "BOOLEAN";
16
+ DECIMAL_RANGE_ARRAY: "DECIMAL_RANGE_ARRAY";
17
+ INTEGER_RANGE_ARRAY: "INTEGER_RANGE_ARRAY";
18
+ }>, z.ZodString]> & {
19
+ enum: {
20
+ ARRAY: "ARRAY";
21
+ BOOLEAN: "BOOLEAN";
22
+ DECIMAL_RANGE_ARRAY: "DECIMAL_RANGE_ARRAY";
23
+ INTEGER_RANGE_ARRAY: "INTEGER_RANGE_ARRAY";
24
+ };
25
+ };
26
+ export type EntityFilterRequestValueShape = z.infer<typeof EntityFilterRequestValueShapeSchema>;
27
+ //# sourceMappingURL=filter-request-value-shape.d.ts.map
@@ -0,0 +1,21 @@
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
+ const EntityFilterRequestValueShapeSchemaKnownMembers = z.enum([
4
+ "ARRAY",
5
+ "BOOLEAN",
6
+ "INTEGER_RANGE_ARRAY",
7
+ "DECIMAL_RANGE_ARRAY",
8
+ ]);
9
+ /**
10
+ * Canonical request value shape derived from the bound Kotlin property type.
11
+ *
12
+ * @openapiSchema EntityFilterRequestValueShape
13
+ * @endpoint GET /v1/entities/filters
14
+ * @endpoint GET /v1/people/filters
15
+ * @endpoint POST /v1/entities/filters/refine
16
+ * @usedBySchema EntityFilterRequestBindingSchema
17
+ * @contractShape entity.filter-request-value-shape
18
+ * @contractRole canonical
19
+ */
20
+ export const EntityFilterRequestValueShapeSchema = Object.assign(z.union([EntityFilterRequestValueShapeSchemaKnownMembers, z.string()]), { enum: EntityFilterRequestValueShapeSchemaKnownMembers.enum });
21
+ //# sourceMappingURL=filter-request-value-shape.js.map
@@ -11,12 +11,14 @@ declare const EntityFilterSearchSchemaDefinition: z.ZodObject<{
11
11
  affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
12
  closedLast: z.ZodOptional<z.ZodBoolean>;
13
13
  employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
14
+ matchMode?: string | null | undefined;
14
15
  max?: number | null | undefined;
15
16
  min?: number | null | undefined;
16
- }, import("../int/range.ts").IntRangeSchemaInput, z.core.$ZodTypeInternals<{
17
+ }, import("../employee/count-range.ts").EmployeeCountRangeSchemaInput, z.core.$ZodTypeInternals<{
18
+ matchMode?: string | null | undefined;
17
19
  max?: number | null | undefined;
18
20
  min?: number | null | undefined;
19
- }, import("../int/range.ts").IntRangeSchemaInput>>>>;
21
+ }, import("../employee/count-range.ts").EmployeeCountRangeSchemaInput>>>>;
20
22
  entityId: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
21
23
  entityName: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
24
  featured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -121,6 +123,7 @@ declare const EntityFilterSearchSchemaDefinition: z.ZodObject<{
121
123
  headquartersCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
124
  headquartersState: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
125
  industry: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ investorPopulation: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
127
  letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
128
  location: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
129
  logoOption: z.ZodOptional<z.ZodObject<{
@@ -150,8 +153,36 @@ declare const EntityFilterSearchSchemaDefinition: z.ZodObject<{
150
153
  NONE: "NONE";
151
154
  }>>;
152
155
  rankByProminence: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
156
+ researchDetailRange: z.ZodOptional<z.ZodArray<z.ZodType<{
157
+ max?: string | null | undefined;
158
+ measurementBasis?: string | null | undefined;
159
+ min?: string | null | undefined;
160
+ reportingScope?: string | null | undefined;
161
+ targetPath: string;
162
+ valueResearchDetail: string;
163
+ }, import("../research/detail-range.ts").ResearchDetailRangeSchemaInput, z.core.$ZodTypeInternals<{
164
+ max?: string | null | undefined;
165
+ measurementBasis?: string | null | undefined;
166
+ min?: string | null | undefined;
167
+ reportingScope?: string | null | undefined;
168
+ targetPath: string;
169
+ valueResearchDetail: string;
170
+ }, import("../research/detail-range.ts").ResearchDetailRangeSchemaInput>>>>;
153
171
  slug: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
172
  stage: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
+ standardizedClassification: z.ZodOptional<z.ZodArray<z.ZodType<{
174
+ category: string;
175
+ code?: number | null | undefined;
176
+ codeText?: string | null | undefined;
177
+ edition?: string | null | undefined;
178
+ hasEdition?: boolean | null | undefined;
179
+ }, import("../standardized/classification-filter.ts").StandardizedClassificationFilterSchemaInput, z.core.$ZodTypeInternals<{
180
+ category: string;
181
+ code?: number | null | undefined;
182
+ codeText?: string | null | undefined;
183
+ edition?: string | null | undefined;
184
+ hasEdition?: boolean | null | undefined;
185
+ }, import("../standardized/classification-filter.ts").StandardizedClassificationFilterSchemaInput>>>>;
155
186
  suppressLateStage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
156
187
  suppressNonOperating: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
188
  suppressZeroTotalRaised: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -33,12 +33,14 @@ export declare const EntityFilterSchema: z.ZodObject<{
33
33
  affinity: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
34
  closedLast: z.ZodOptional<z.ZodBoolean>;
35
35
  employeeCountRange: z.ZodOptional<z.ZodArray<z.ZodType<{
36
+ matchMode?: string | null | undefined;
36
37
  max?: number | null | undefined;
37
38
  min?: number | null | undefined;
38
- }, import("../int/range.ts").IntRangeSchemaInput, z.core.$ZodTypeInternals<{
39
+ }, import("../employee/count-range.ts").EmployeeCountRangeSchemaInput, z.core.$ZodTypeInternals<{
40
+ matchMode?: string | null | undefined;
39
41
  max?: number | null | undefined;
40
42
  min?: number | null | undefined;
41
- }, import("../int/range.ts").IntRangeSchemaInput>>>>;
43
+ }, import("../employee/count-range.ts").EmployeeCountRangeSchemaInput>>>>;
42
44
  entityId: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
43
45
  entityName: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
46
  featured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -143,6 +145,7 @@ export declare const EntityFilterSchema: z.ZodObject<{
143
145
  headquartersCountry: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
146
  headquartersState: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
147
  industry: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
+ investorPopulation: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
146
149
  letter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
150
  location: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
151
  logoOption: z.ZodOptional<z.ZodObject<{
@@ -172,8 +175,36 @@ export declare const EntityFilterSchema: z.ZodObject<{
172
175
  NONE: "NONE";
173
176
  }>>;
174
177
  rankByProminence: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
178
+ researchDetailRange: z.ZodOptional<z.ZodArray<z.ZodType<{
179
+ max?: string | null | undefined;
180
+ measurementBasis?: string | null | undefined;
181
+ min?: string | null | undefined;
182
+ reportingScope?: string | null | undefined;
183
+ targetPath: string;
184
+ valueResearchDetail: string;
185
+ }, import("../research/detail-range.ts").ResearchDetailRangeSchemaInput, z.core.$ZodTypeInternals<{
186
+ max?: string | null | undefined;
187
+ measurementBasis?: string | null | undefined;
188
+ min?: string | null | undefined;
189
+ reportingScope?: string | null | undefined;
190
+ targetPath: string;
191
+ valueResearchDetail: string;
192
+ }, import("../research/detail-range.ts").ResearchDetailRangeSchemaInput>>>>;
175
193
  slug: z.ZodOptional<z.ZodArray<z.ZodString>>;
176
194
  stage: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ standardizedClassification: z.ZodOptional<z.ZodArray<z.ZodType<{
196
+ category: string;
197
+ code?: number | null | undefined;
198
+ codeText?: string | null | undefined;
199
+ edition?: string | null | undefined;
200
+ hasEdition?: boolean | null | undefined;
201
+ }, import("../standardized/classification-filter.ts").StandardizedClassificationFilterSchemaInput, z.core.$ZodTypeInternals<{
202
+ category: string;
203
+ code?: number | null | undefined;
204
+ codeText?: string | null | undefined;
205
+ edition?: string | null | undefined;
206
+ hasEdition?: boolean | null | undefined;
207
+ }, import("../standardized/classification-filter.ts").StandardizedClassificationFilterSchemaInput>>>>;
177
208
  suppressLateStage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
178
209
  suppressNonOperating: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
179
210
  suppressZeroTotalRaised: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -1,5 +1,6 @@
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 { EmployeeCountRangeSchema } from "../employee/count-range.js";
3
4
  import { EntityFilterLogoOptionSchema } from "./filter-logo-option.js";
4
5
  import { EntityFundraiseFilterCriteriaSchema } from "./fundraise-filter-criteria.js";
5
6
  import { EntityListQualityGateSchema } from "./list-quality-gate.js";
@@ -7,6 +8,8 @@ import { EntityOperatingStatusSchema } from "./operating-status.js";
7
8
  import { EntityTypeSchema } from "./type.js";
8
9
  import { EntityUrlTypeSchema } from "./url-type.js";
9
10
  import { IntRangeSchema } from "../int/range.js";
11
+ import { ResearchDetailRangeSchema } from "../research/detail-range.js";
12
+ import { StandardizedClassificationFilterSchema } from "../standardized/classification-filter.js";
10
13
  import { UrlMatchModeSchema } from "../url/match-mode.js";
11
14
  /**
12
15
  * Entity list and search filters. GET flattens these fields as query parameters; POST accepts the same shape as JSON.
@@ -47,9 +50,9 @@ export const EntityFilterSchema = z.strictObject({
47
50
  affinity: z.array(z.string()).optional(),
48
51
  /** Rank closed entities (Closed, Closed (Acquihire), Inactive) after every other textSearch or semanticQuery match, ahead of relevance and sort; omitted means true. false ranks them by relevance alone. Filter them out with operatingStatus or suppressNonOperating. */
49
52
  closedLast: z.boolean().optional(),
50
- /** Inclusive reported employee-count ranges, in employees. */
51
- employeeCountRange: z.array(IntRangeSchema).optional(),
52
- /** Restrict results to specific entity IDs. */
53
+ /** Current workforce ranges; omitted matchMode is numeric-only. */
54
+ employeeCountRange: z.array(EmployeeCountRangeSchema).optional(),
55
+ /** Restrict results to entity IDs. */
53
56
  entityId: z.array(z.uuid()).optional(),
54
57
  /** Exact normalized match against entity brand, legal, or alias names. */
55
58
  entityName: z.array(z.string()).optional(),
@@ -67,6 +70,8 @@ export const EntityFilterSchema = z.strictObject({
67
70
  headquartersState: z.array(z.string()).optional(),
68
71
  /** Industry classification values. */
69
72
  industry: z.array(z.string()).optional(),
73
+ /** Opt in to Firms/Funds, a current source-stated investing mandate, or recorded non-grant direct/current-primary-managed investment participation. Omitted/false keeps legacy scope; explicit typeRecord intersects. Prose, legal form and missing funding establish nothing. */
74
+ investorPopulation: z.boolean().nullish(),
70
75
  /** First letter of the display name. */
71
76
  letter: z.string().nullish(),
72
77
  /** Geographic classification values. */
@@ -93,6 +98,8 @@ export const EntityFilterSchema = z.strictObject({
93
98
  qualityGate: EntityListQualityGateSchema.optional(),
94
99
  /** Rank most prominent first (funding, stage, headcount, momentum, recent news, investor breadth), ahead of sort: what best, top, or most promising mean. */
95
100
  rankByProminence: z.boolean().nullish(),
101
+ /** Reader adoption only: stored criteria load; execution and new writes refuse. */
102
+ researchDetailRange: z.array(ResearchDetailRangeSchema).max(10).optional(),
96
103
  /** Restrict results to entity slugs. */
97
104
  slug: z
98
105
  .array(z
@@ -100,8 +107,10 @@ export const EntityFilterSchema = z.strictObject({
100
107
  .regex(/^[a-z0-9_-]+$/)
101
108
  .max(255))
102
109
  .optional(),
103
- /** Investment stage classification values. */
110
+ /** Stage classification values. */
104
111
  stage: z.array(z.string()).optional(),
112
+ /** OR exact tuples within this facet; AND with other facets. */
113
+ standardizedClassification: z.array(StandardizedClassificationFilterSchema).max(20).optional(),
105
114
  /** Exclude public and acquired companies (including acquired subsidiaries); what startup means. Private companies at any round stay, as do companies without a recorded stage or operating status. */
106
115
  suppressLateStage: z.boolean().nullish(),
107
116
  /** Suppress entities with terminal operating status. */
@@ -114,9 +123,9 @@ export const EntityFilterSchema = z.strictObject({
114
123
  textSearch: z.string().nullish(),
115
124
  /** Customer-type classification values. */
116
125
  typeCustomer: z.array(z.string()).optional(),
117
- /** Business-model classification values. */
126
+ /** Business-model values. */
118
127
  typeModel: z.array(z.string()).optional(),
119
- /** Ownership-model classification values. */
128
+ /** Ownership-model values. */
120
129
  typeOwnership: z.array(z.string()).optional(),
121
130
  /** Entity type filter. Organization expands to Company, Investment Firm, Nonprofit, Government, and Business Line; omit to include every entity type. */
122
131
  typeRecord: z.array(EntityTypeSchema).optional(),
@@ -132,7 +141,7 @@ export const EntityFilterSchema = z.strictObject({
132
141
  urlMatchMode: UrlMatchModeSchema.nullish(),
133
142
  /** Restrict URL matching to one URL type. */
134
143
  urlType: EntityUrlTypeSchema.nullish(),
135
- /** Inclusive founding-year ranges, in calendar years. */
144
+ /** Inclusive founding-year ranges. */
136
145
  yearFoundedRange: z.array(IntRangeSchema).optional(),
137
146
  });
138
147
  //# sourceMappingURL=filter.js.map
@@ -47,6 +47,25 @@ export declare const EntityFundingDetailSchema: z.ZodObject<{
47
47
  UNKNOWN: "UNKNOWN";
48
48
  }>>>;
49
49
  currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ currentValuation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
+ amount: z.ZodString;
52
+ asOfDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ basis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
54
+ postMoney: "postMoney";
55
+ preMoney: "preMoney";
56
+ reported: "reported";
57
+ }>>>;
58
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ postMoneyUsd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ referenceValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ source: z.ZodEnum<{
62
+ fundraiseRound: "fundraiseRound";
63
+ researchDetail: "researchDetail";
64
+ }>;
65
+ sourceRef: z.ZodString;
66
+ }, z.core.$strip>>>;
67
+ disclosedStage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ disclosedStageTransactionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
50
69
  fundingRoundCount: z.ZodInt;
51
70
  investorCount: z.ZodInt;
52
71
  latestValuation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -134,7 +153,10 @@ export declare const EntityFundingDetailSchema: z.ZodObject<{
134
153
  };
135
154
  }>>;
136
155
  totalRaised: z.ZodNumber;
156
+ totalRaisedAmountRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
157
+ totalRaisedRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
137
158
  totalRaisedUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
159
+ totalRaisedUsdRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
138
160
  unconvertedRoundCount: z.ZodInt;
139
161
  }, z.core.$strip>;
140
162
  export type EntityFundingDetail = z.infer<typeof EntityFundingDetailSchema>;
@@ -1,5 +1,6 @@
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 { EntityValuationSchema } from "./valuation.js";
3
4
  import { FundingApplicabilitySchema } from "../funding/applicability.js";
4
5
  import { FundingStageSchema } from "../funding/stage.js";
5
6
  /**
@@ -48,17 +49,30 @@ export const EntityFundingDetailSchema = z.object({
48
49
  applicability: FundingApplicabilitySchema.nullish(),
49
50
  /** ISO 4217 currency of totalRaised, latestValuation, and mostRecentAmount: the one currency every round uses, else the entity's own currency when rounds carry none. Null when rounds use more than one currency or no fundraise rollup exists, so these amounts have no single currency. */
50
51
  currency: z.string().nullish(),
52
+ /** Selected eligible valuation with its own currency/basis/date, including standalone research evidence. Optional on older servers; absence is not zero. */
53
+ currentValuation: EntityValuationSchema.nullish(),
54
+ /** Latest explicitly recorded equity ladder label retained in a transaction's source round field, not calculatedRoundLabel or a Late Stage Private inference. Null when no canonical disclosed ladder label is recorded; does not assert market standing. */
55
+ disclosedStage: z.string().nullish(),
56
+ /** Transaction retaining disclosedStage; read its history/source, not a current listing assertion. */
57
+ disclosedStageTransactionId: z.uuid().nullish(),
51
58
  /** Recorded round count, including rounds with no recorded amount. */
52
59
  fundingRoundCount: z.int(),
53
60
  investorCount: z.int(),
61
+ /** Legacy latest-transaction valuation; not a current observation or USD value. Use currentValuation. */
54
62
  latestValuation: z.number().nullish(),
55
63
  mostRecentAmount: z.number().nullish(),
56
64
  mostRecentDate: z.iso.date().nullish(),
57
65
  stage: FundingStageSchema.nullish(),
58
66
  /** Sum of recorded round amounts in their original currencies, excluding rounds with no amount; not a complete lifetime total when amounts are missing. Use totalRaisedUsd for a USD aggregate; totalRaised has no single currency when currency is null. Legacy numeric projection: zero also represents unknown or inapplicable financing; read applicability before displaying it. This field remains numeric until all supported readers accept nullable totals. */
59
67
  totalRaised: z.number(),
60
- /** USD aggregate at enrichment.fundingDetail.totalRaisedUsd: sums only recorded round amounts with an announcement-date ECB/World Bank rate. Excludes rounds with no amount or no rate, so do not report it as a complete lifetime total when either is missing. Zero when no round converts; null when no rollup exists. Use instead of totalRaised across currencies; see unconvertedRoundCount for missing rates only. */
68
+ /** Eligible totalRaisedUsd rounds with a recorded amount, including an explicit zero. Subtract from totalRaisedRoundCount for undisclosed amounts. Null means unknown coverage. */
69
+ totalRaisedAmountRoundCount: z.int().nullish(),
70
+ /** Deduplicated rounds eligible for totalRaisedUsd, including undisclosed amounts. Uses exactly that total's acquisition/bankruptcy exclusions; unlike fundingRoundCount, this is the coverage denominator. Null until coverage is available. */
71
+ totalRaisedRoundCount: z.int().nullish(),
72
+ /** USD aggregate at enrichment.fundingDetail.totalRaisedUsd: sums only recorded round amounts with an announcement-date ECB/World Bank rate. Excludes rounds with no amount or no rate, so do not report it as a complete lifetime total when either is missing. Null when no eligible amount converts or coverage is not available; a converted recorded zero remains zero. Use totalRaisedRoundCount, totalRaisedAmountRoundCount and totalRaisedUsdRoundCount for coverage of this same deduplicated eligible set, never fundingRoundCount as its denominator. */
61
73
  totalRaisedUsd: z.number().nullish(),
74
+ /** Eligible totalRaisedUsd rounds whose recorded amount has a USD conversion, including converted zero. Subtract from totalRaisedAmountRoundCount for missing FX. Null means unknown coverage; zero means no converted amount is known. */
75
+ totalRaisedUsdRoundCount: z.int().nullish(),
62
76
  /** Rounds with an amount but no announcement-date USD rate, excluded from totalRaisedUsd. Does not count rounds with no recorded amount; zero does not prove the total is complete. */
63
77
  unconvertedRoundCount: z.int(),
64
78
  });
@@ -43,7 +43,7 @@ export const EntityFundraiseInvestorActivitySchema = z.object({
43
43
  largestAmountInvestedUsd: z.number().nullish(),
44
44
  /** Distinct recorded recipients currently Operating, excluding the public bucket; not current holdings. Null until the status breakdown has been calculated. */
45
45
  operatingRecipientCount: z.int().nullish(),
46
- /** Distinct portfolio companies this investor has participated in, across all portfolio-company statuses. Counts companies, whereas totalInvestment counts distinct fundraise transactions. */
46
+ /** Distinct recorded recipients this investor has participated in, across all recipient operating statuses. Counts recipients, whereas totalInvestment counts distinct fundraise transactions. */
47
47
  portfolioCompanyCount: z.int(),
48
48
  /** Distinct recorded recipients with current unconflicted Public ownership, or legacy Public status, excluding acquired/closed recipients; not exits. Unknown statuses are not inferred from funding. Null until the status breakdown has been calculated. */
49
49
  publicRecipientCount: z.int().nullish(),
@@ -21,7 +21,7 @@ const EntityFundraiseInvestorJoinSchemaDefinition = z.object({
21
21
  .regex(/^[a-z0-9_-]+$/)
22
22
  .max(255)
23
23
  .nullish(),
24
- /** Whether this investor is the lead investor for the round — the lead/anchor investor that set the round terms or made the primary commitment. */
24
+ /** Recorded lead/anchor flag. True records a lead role; historical false values may mean either non-lead or unrecorded leadership evidence. A false flag alone does not establish confirmed non-lead participation. */
25
25
  leadInvestor: z.boolean(),
26
26
  /** Fundraise transaction identifier */
27
27
  transactionId: z.uuid(),
@@ -120,6 +120,25 @@ export declare const EntityFundraiseTransactionEntitySchema: z.ZodObject<{
120
120
  UNKNOWN: "UNKNOWN";
121
121
  }>>>;
122
122
  currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ currentValuation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
124
+ amount: z.ZodString;
125
+ asOfDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ basis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
127
+ postMoney: "postMoney";
128
+ preMoney: "preMoney";
129
+ reported: "reported";
130
+ }>>>;
131
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ postMoneyUsd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ referenceValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ source: z.ZodEnum<{
135
+ fundraiseRound: "fundraiseRound";
136
+ researchDetail: "researchDetail";
137
+ }>;
138
+ sourceRef: z.ZodString;
139
+ }, z.core.$strip>>>;
140
+ disclosedStage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ disclosedStageTransactionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
123
142
  fundingRoundCount: z.ZodInt;
124
143
  investorCount: z.ZodInt;
125
144
  latestValuation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -207,7 +226,10 @@ export declare const EntityFundraiseTransactionEntitySchema: z.ZodObject<{
207
226
  };
208
227
  }>>;
209
228
  totalRaised: z.ZodNumber;
229
+ totalRaisedAmountRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
230
+ totalRaisedRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
210
231
  totalRaisedUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
232
+ totalRaisedUsdRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
211
233
  unconvertedRoundCount: z.ZodInt;
212
234
  }, z.core.$strip>>>;
213
235
  }, z.core.$strip>;
@@ -93,6 +93,25 @@ declare const EntityFundraiseTransactionSchemaDefinition: z.ZodObject<{
93
93
  UNKNOWN: "UNKNOWN";
94
94
  }>>>;
95
95
  currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ currentValuation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
97
+ amount: z.ZodString;
98
+ asOfDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ basis: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
100
+ postMoney: "postMoney";
101
+ preMoney: "preMoney";
102
+ reported: "reported";
103
+ }>>>;
104
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ postMoneyUsd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ referenceValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ source: z.ZodEnum<{
108
+ fundraiseRound: "fundraiseRound";
109
+ researchDetail: "researchDetail";
110
+ }>;
111
+ sourceRef: z.ZodString;
112
+ }, z.core.$strip>>>;
113
+ disclosedStage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ disclosedStageTransactionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
96
115
  fundingRoundCount: z.ZodInt;
97
116
  investorCount: z.ZodInt;
98
117
  latestValuation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -180,7 +199,10 @@ declare const EntityFundraiseTransactionSchemaDefinition: z.ZodObject<{
180
199
  };
181
200
  }>>;
182
201
  totalRaised: z.ZodNumber;
202
+ totalRaisedAmountRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
203
+ totalRaisedRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
183
204
  totalRaisedUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
205
+ totalRaisedUsdRoundCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
184
206
  unconvertedRoundCount: z.ZodInt;
185
207
  }, z.core.$strip>>>;
186
208
  }, z.core.$strip>>>;