@aventurevc/api-schemas 0.8.365 → 0.8.367

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.
@@ -95,6 +95,7 @@ export declare const EntityComparisonSignalsSchema: z.ZodObject<{
95
95
  }>;
96
96
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
97
97
  }, z.core.$strip>>>;
98
+ disclosedStage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
99
  fundingStage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
99
100
  Acquired: "Acquired";
100
101
  "Acquired Subsidiary": "Acquired Subsidiary";
@@ -28,6 +28,8 @@ import { FundingStageSchema } from "../funding/stage.js";
28
28
  export const EntityComparisonSignalsSchema = z.object({
29
29
  /** Public buyer of the newest completed acquisition; null for announced or non-public buyers. */
30
30
  acquirer: EntitySchema.nullish(),
31
+ /** Disclosed equity ladder label from fundingDetail.disclosedStage; financing history, not the provider operating status or current market standing. */
32
+ disclosedStage: z.string().nullish(),
31
33
  /** Latest funding stage when known */
32
34
  fundingStage: FundingStageSchema.nullish(),
33
35
  /** Provider ownership from current tags and current primary parent or acquirer relationships */
@@ -3901,6 +3901,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
3901
3901
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
3902
3902
  updatedAt?: string | null | undefined;
3903
3903
  } | null | undefined;
3904
+ disclosedStage?: string | null | undefined;
3904
3905
  fundingStage?: string | null | undefined;
3905
3906
  ownership: string[];
3906
3907
  pricingModel: string[];
@@ -4027,6 +4028,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
4027
4028
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
4028
4029
  updatedAt?: string | null | undefined;
4029
4030
  } | null | undefined;
4031
+ disclosedStage?: string | null | undefined;
4030
4032
  fundingStage?: string | null | undefined;
4031
4033
  ownership: string[];
4032
4034
  pricingModel: string[];
@@ -3879,6 +3879,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
3879
3879
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
3880
3880
  updatedAt?: string | null | undefined;
3881
3881
  } | null | undefined;
3882
+ disclosedStage?: string | null | undefined;
3882
3883
  fundingStage?: string | null | undefined;
3883
3884
  ownership: string[];
3884
3885
  pricingModel: string[];
@@ -4005,6 +4006,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
4005
4006
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
4006
4007
  updatedAt?: string | null | undefined;
4007
4008
  } | null | undefined;
4009
+ disclosedStage?: string | null | undefined;
4008
4010
  fundingStage?: string | null | undefined;
4009
4011
  ownership: string[];
4010
4012
  pricingModel: string[];
@@ -7,8 +7,8 @@ const EntityNaturalSearchSchemaDefinition = z.object({
7
7
  filter: EntityFilterSchema.optional(),
8
8
  /** Canonical plain-English search request and strategy. */
9
9
  search: NaturalSearchSchema,
10
- /** News article whose public entity mentions join the entity candidates and are judged with them against the question */
11
- sourceNewsId: z.int().nullish(),
10
+ /** The stored aVenture news article this search started from. Its approved public Company and Business Line mentions are ordered subjects, rather than candidates judged from the headline. An unknown or non-public article, or one without such mentions, keeps the ordinary search. */
11
+ sourceNewsId: z.int().min(1).nullish(),
12
12
  });
13
13
  /**
14
14
  * Plain-English entity search plus explicit hard constraints. The planner may fill only filter fields the caller leaves unset.
@@ -75,6 +75,7 @@ declare const EntityRelationshipSchemaDefinition: z.ZodObject<{
75
75
  }>;
76
76
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
77
77
  }, z.core.$strip>>>;
78
+ disclosedStage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
79
  fundingStage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
79
80
  Acquired: "Acquired";
80
81
  "Acquired Subsidiary": "Acquired Subsidiary";
@@ -3888,6 +3888,7 @@ export declare const EntityResolutionSchema: z.ZodObject<{
3888
3888
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
3889
3889
  updatedAt?: string | null | undefined;
3890
3890
  } | null | undefined;
3891
+ disclosedStage?: string | null | undefined;
3891
3892
  fundingStage?: string | null | undefined;
3892
3893
  ownership: string[];
3893
3894
  pricingModel: string[];
@@ -4014,6 +4015,7 @@ export declare const EntityResolutionSchema: z.ZodObject<{
4014
4015
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
4015
4016
  updatedAt?: string | null | undefined;
4016
4017
  } | null | undefined;
4018
+ disclosedStage?: string | null | undefined;
4017
4019
  fundingStage?: string | null | undefined;
4018
4020
  ownership: string[];
4019
4021
  pricingModel: string[];
@@ -30,8 +30,8 @@ const FederatedNaturalSearchSchemaDefinition = z.object({
30
30
  reasoningEffort: ReasoningEffortSchema.nullish(),
31
31
  /** Search catalog revision this search uses for its global search policy and vocabulary; null reads the current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
32
32
  searchCatalogRevision: z.int().nullish(),
33
- /** News article whose public entity mentions join the entity candidates and are judged with them against the question */
34
- sourceNewsId: z.int().nullish(),
33
+ /** The stored aVenture news article this search started from. Its approved public Company and Business Line mentions lead the entity scope as subjects in mention order. An unknown or non-public article, or one without such mentions, keeps the ordinary headline search. Other scopes and answer generation are unchanged. */
34
+ sourceNewsId: z.int().min(1).nullish(),
35
35
  /** Runtime policy revision this search uses for the serving deployment's execution budgets; null reads that deployment's current revision. Callers without private-data access always read the current revision. An unknown revision returns 404. */
36
36
  tenantPolicyRevision: z.int().nullish(),
37
37
  });
@@ -9960,6 +9960,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
9960
9960
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
9961
9961
  updatedAt?: string | null | undefined;
9962
9962
  } | null | undefined;
9963
+ disclosedStage?: string | null | undefined;
9963
9964
  fundingStage?: string | null | undefined;
9964
9965
  ownership: string[];
9965
9966
  pricingModel: string[];
@@ -10086,6 +10087,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
10086
10087
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
10087
10088
  updatedAt?: string | null | undefined;
10088
10089
  } | null | undefined;
10090
+ disclosedStage?: string | null | undefined;
10089
10091
  fundingStage?: string | null | undefined;
10090
10092
  ownership: string[];
10091
10093
  pricingModel: string[];
@@ -25,6 +25,19 @@ export declare const ProblemDetailSchema: z.ZodObject<{
25
25
  WEB_SEARCH: "WEB_SEARCH";
26
26
  };
27
27
  }>>;
28
+ campusProofRefusal: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
29
+ NAME_NOT_DECLARED: "NAME_NOT_DECLARED";
30
+ REGISTRY_CONTACT_MISSING: "REGISTRY_CONTACT_MISSING";
31
+ REGISTRY_CONTACT_NOT_STATED: "REGISTRY_CONTACT_NOT_STATED";
32
+ SITE_UNREADABLE: "SITE_UNREADABLE";
33
+ }>, z.ZodString]> & {
34
+ enum: {
35
+ NAME_NOT_DECLARED: "NAME_NOT_DECLARED";
36
+ REGISTRY_CONTACT_MISSING: "REGISTRY_CONTACT_MISSING";
37
+ REGISTRY_CONTACT_NOT_STATED: "REGISTRY_CONTACT_NOT_STATED";
38
+ SITE_UNREADABLE: "SITE_UNREADABLE";
39
+ };
40
+ }>>;
28
41
  circuitBreaker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
42
  code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
30
43
  GEOCODE_PROVIDER_ERROR: "GEOCODE_PROVIDER_ERROR";
@@ -2,6 +2,7 @@
2
2
  import { z } from "zod/v4";
3
3
  import { DomainConflictDetailsSchema } from "../domain/conflict-details.js";
4
4
  import { JsonValueSchema } from "./json-value.js";
5
+ import { IdentificationCampusRefusalSchema } from "../identification/campus-refusal.js";
5
6
  import { ProblemResolutionSchema } from "../problem/resolution.js";
6
7
  import { ProseViolationSchema } from "../prose/violation.js";
7
8
  import { CurrentSlugOwnerSchema } from "../redirect/current-slug-owner.js";
@@ -18,6 +19,8 @@ import { ResearchAllowanceTypeSchema } from "../research/allowance-type.js";
18
19
  export const ProblemDetailSchema = z.object({
19
20
  /** Which monthly allowance a BILLING_ALLOWANCE refusal exhausted. */
20
21
  allowanceType: ResearchAllowanceTypeSchema.nullish(),
22
+ /** The unmet own-site proof for an NCES campus lookup; absent for other failures. */
23
+ campusProofRefusal: IdentificationCampusRefusalSchema.nullish(),
21
24
  circuitBreaker: z.string().nullish(),
22
25
  /** Machine-readable secondary code on ProblemDetail.code. Agents should branch on this value when the HTTP status alone does not identify the recovery path. Many codes describe server-side conditions a caller cannot fix: surface them and stop. */
23
26
  code: z
@@ -0,0 +1,25 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * The unmet campus identity proof; supply that evidence before retrying.
4
+ *
5
+ * @openapiSchema IdentificationCampusRefusal
6
+ * @standardProblemResponse
7
+ * @usedBySchema ProblemDetailSchema
8
+ * @contractShape identification.campus-refusal
9
+ * @contractRole canonical
10
+ */
11
+ export declare const IdentificationCampusRefusalSchema: z.ZodUnion<readonly [z.ZodEnum<{
12
+ NAME_NOT_DECLARED: "NAME_NOT_DECLARED";
13
+ REGISTRY_CONTACT_MISSING: "REGISTRY_CONTACT_MISSING";
14
+ REGISTRY_CONTACT_NOT_STATED: "REGISTRY_CONTACT_NOT_STATED";
15
+ SITE_UNREADABLE: "SITE_UNREADABLE";
16
+ }>, z.ZodString]> & {
17
+ enum: {
18
+ NAME_NOT_DECLARED: "NAME_NOT_DECLARED";
19
+ REGISTRY_CONTACT_MISSING: "REGISTRY_CONTACT_MISSING";
20
+ REGISTRY_CONTACT_NOT_STATED: "REGISTRY_CONTACT_NOT_STATED";
21
+ SITE_UNREADABLE: "SITE_UNREADABLE";
22
+ };
23
+ };
24
+ export type IdentificationCampusRefusal = z.infer<typeof IdentificationCampusRefusalSchema>;
25
+ //# sourceMappingURL=campus-refusal.d.ts.map
@@ -0,0 +1,19 @@
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 IdentificationCampusRefusalSchemaKnownMembers = z.enum([
4
+ "NAME_NOT_DECLARED",
5
+ "REGISTRY_CONTACT_MISSING",
6
+ "REGISTRY_CONTACT_NOT_STATED",
7
+ "SITE_UNREADABLE",
8
+ ]);
9
+ /**
10
+ * The unmet campus identity proof; supply that evidence before retrying.
11
+ *
12
+ * @openapiSchema IdentificationCampusRefusal
13
+ * @standardProblemResponse
14
+ * @usedBySchema ProblemDetailSchema
15
+ * @contractShape identification.campus-refusal
16
+ * @contractRole canonical
17
+ */
18
+ export const IdentificationCampusRefusalSchema = Object.assign(z.union([IdentificationCampusRefusalSchemaKnownMembers, z.string()]), { enum: IdentificationCampusRefusalSchemaKnownMembers.enum });
19
+ //# sourceMappingURL=campus-refusal.js.map
@@ -5046,6 +5046,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
5046
5046
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
5047
5047
  updatedAt?: string | null | undefined;
5048
5048
  } | null | undefined;
5049
+ disclosedStage?: string | null | undefined;
5049
5050
  fundingStage?: string | null | undefined;
5050
5051
  ownership: string[];
5051
5052
  pricingModel: string[];
@@ -12283,6 +12284,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
12283
12284
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
12284
12285
  updatedAt?: string | null | undefined;
12285
12286
  } | null | undefined;
12287
+ disclosedStage?: string | null | undefined;
12286
12288
  fundingStage?: string | null | undefined;
12287
12289
  ownership: string[];
12288
12290
  pricingModel: string[];
@@ -772,6 +772,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
772
772
  modulePath: "identification/identification",
773
773
  schemaName: "IdentificationSchema",
774
774
  },
775
+ IdentificationCampusRefusal: {
776
+ modulePath: "identification/campus-refusal",
777
+ schemaName: "IdentificationCampusRefusalSchema",
778
+ },
775
779
  IdentificationCandidate: {
776
780
  modulePath: "identification/candidate",
777
781
  schemaName: "IdentificationCandidateSchema",
@@ -4505,6 +4505,7 @@ declare const PageEntityDetailSchemaDefinition: z.ZodObject<{
4505
4505
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
4506
4506
  updatedAt?: string | null | undefined;
4507
4507
  } | null | undefined;
4508
+ disclosedStage?: string | null | undefined;
4508
4509
  fundingStage?: string | null | undefined;
4509
4510
  ownership: string[];
4510
4511
  pricingModel: string[];
@@ -4631,6 +4632,7 @@ declare const PageEntityDetailSchemaDefinition: z.ZodObject<{
4631
4632
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
4632
4633
  updatedAt?: string | null | undefined;
4633
4634
  } | null | undefined;
4635
+ disclosedStage?: string | null | undefined;
4634
4636
  fundingStage?: string | null | undefined;
4635
4637
  ownership: string[];
4636
4638
  pricingModel: string[];
@@ -7499,6 +7501,7 @@ declare const PageEntityInvestorParticipationSchemaDefinition: z.ZodObject<{
7499
7501
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
7500
7502
  updatedAt?: string | null | undefined;
7501
7503
  } | null | undefined;
7504
+ disclosedStage?: string | null | undefined;
7502
7505
  fundingStage?: string | null | undefined;
7503
7506
  ownership: string[];
7504
7507
  pricingModel: string[];
@@ -9727,6 +9730,7 @@ declare const PageEntityInvestorParticipationSchemaDefinition: z.ZodObject<{
9727
9730
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
9728
9731
  updatedAt?: string | null | undefined;
9729
9732
  } | null | undefined;
9733
+ disclosedStage?: string | null | undefined;
9730
9734
  fundingStage?: string | null | undefined;
9731
9735
  ownership: string[];
9732
9736
  pricingModel: string[];
@@ -11853,6 +11857,7 @@ declare const PageEntityRelationshipSchemaDefinition: z.ZodObject<{
11853
11857
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
11854
11858
  updatedAt?: string | null | undefined;
11855
11859
  } | null | undefined;
11860
+ disclosedStage?: string | null | undefined;
11856
11861
  fundingStage?: string | null | undefined;
11857
11862
  ownership: string[];
11858
11863
  pricingModel: string[];
@@ -11979,6 +11984,7 @@ declare const PageEntityRelationshipSchemaDefinition: z.ZodObject<{
11979
11984
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
11980
11985
  updatedAt?: string | null | undefined;
11981
11986
  } | null | undefined;
11987
+ disclosedStage?: string | null | undefined;
11982
11988
  fundingStage?: string | null | undefined;
11983
11989
  ownership: string[];
11984
11990
  pricingModel: string[];
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  /**
3
- * Answer to a natural-language question, grounded only in the response's entity records and passages. LOW confidence with no paragraph means no grounded answer: the evidence does not answer the question when `provenance.answerUnavailable` is false, and the answer check refused every drafted paragraph when it is true, so a retry may answer. LOW confidence with paragraphs means at least one kept paragraph passed the answer check only below its acceptance bar.
3
+ * Answer to a natural-language question, grounded only in the response's entity records and passages. A written answer always has a paragraph; when the evidence does not answer the question, LOW confidence paragraphs state what the cited evidence does show. No paragraph means the answer abstained: the answer check refused every drafted paragraph, a requested recorded-figure composition held no figure, or `provenance.answerUnavailable` is true. LOW confidence with paragraphs means the evidence answers only part of the question or at least one kept paragraph passed the answer check only below its acceptance bar.
4
4
  *
5
5
  * @openapiSchema SearchAnswer
6
6
  * @endpoint GET /v1/entities/lookup-exact
@@ -4,7 +4,7 @@ import { ConfidenceSchema } from "../confidence/confidence.js";
4
4
  import { SearchAnswerCitationSchema } from "./answer-citation.js";
5
5
  import { SearchAnswerParagraphSchema } from "./answer-paragraph.js";
6
6
  /**
7
- * Answer to a natural-language question, grounded only in the response's entity records and passages. LOW confidence with no paragraph means no grounded answer: the evidence does not answer the question when `provenance.answerUnavailable` is false, and the answer check refused every drafted paragraph when it is true, so a retry may answer. LOW confidence with paragraphs means at least one kept paragraph passed the answer check only below its acceptance bar.
7
+ * Answer to a natural-language question, grounded only in the response's entity records and passages. A written answer always has a paragraph; when the evidence does not answer the question, LOW confidence paragraphs state what the cited evidence does show. No paragraph means the answer abstained: the answer check refused every drafted paragraph, a requested recorded-figure composition held no figure, or `provenance.answerUnavailable` is true. LOW confidence with paragraphs means the evidence answers only part of the question or at least one kept paragraph passed the answer check only below its acceptance bar.
8
8
  *
9
9
  * @openapiSchema SearchAnswer
10
10
  * @endpoint GET /v1/entities/lookup-exact
@@ -5057,6 +5057,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
5057
5057
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
5058
5058
  updatedAt?: string | null | undefined;
5059
5059
  } | null | undefined;
5060
+ disclosedStage?: string | null | undefined;
5060
5061
  fundingStage?: string | null | undefined;
5061
5062
  ownership: string[];
5062
5063
  pricingModel: string[];
@@ -12294,6 +12295,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
12294
12295
  typeRecord: "Business Line" | "Company" | "Fund" | "Government" | "Investment Firm" | "Nonprofit" | "Organization" | "Product" | "Service";
12295
12296
  updatedAt?: string | null | undefined;
12296
12297
  } | null | undefined;
12298
+ disclosedStage?: string | null | undefined;
12297
12299
  fundingStage?: string | null | undefined;
12298
12300
  ownership: string[];
12299
12301
  pricingModel: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.365",
3
+ "version": "0.8.367",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",