@aventurevc/api-schemas 0.8.225 → 0.8.227

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.
@@ -6,6 +6,7 @@ declare const EnrichmentBatchSchemaDefinition: z.ZodObject<{
6
6
  INDIVIDUAL: "INDIVIDUAL";
7
7
  }>>;
8
8
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ newsId: z.ZodOptional<z.ZodArray<z.ZodInt>>;
9
10
  personId: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
10
11
  taskPresetKey: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
12
  userPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8,6 +8,8 @@ const EnrichmentBatchSchemaDefinition = z.object({
8
8
  mode: EnrichmentModeSchema.optional(),
9
9
  /** Model id for each run's lead agent; omit to use aVenture's default model */
10
10
  model: z.string().nullish(),
11
+ /** News article ids. The server identifies every company and person each article names, as POST /v1/lookup-mentions does with sourceNewsId, adds the article's linked companies and people, and files one enrichment per distinct record. */
12
+ newsId: z.array(z.int()).optional(),
11
13
  /** Canonical person UUIDs to enrich, filed in order after every entity */
12
14
  personId: z.array(z.uuid()).optional(),
13
15
  /** Task preset keys that scope or emphasize every run; at least one is required when mode is INDIVIDUAL, and an unknown key is a 400 */
@@ -9398,6 +9398,12 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
9398
9398
  }, import("../search/qualifier-option.ts").SearchQualifierOptionSchemaInput>>>;
9399
9399
  prompt: z.ZodString;
9400
9400
  }, z.core.$strip>>>;
9401
+ section: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9402
+ company: "company";
9403
+ investor: "investor";
9404
+ person: "person";
9405
+ productService: "productService";
9406
+ }>>>;
9401
9407
  }, z.core.$strip>;
9402
9408
  type FederatedSearchDefinition = z.infer<typeof FederatedSearchSchemaDefinition>;
9403
9409
  export interface FederatedSearchSchemaInput extends z.input<typeof FederatedSearchSchemaDefinition> {
@@ -27,6 +27,8 @@ const FederatedSearchSchemaDefinition = z.object({
27
27
  provenance: FederatedSearchProvenanceSchema,
28
28
  /** A prompt with rewritten queries offered beside a broad query's results, from the search catalog revision the search read; null when no qualifier rule matches. */
29
29
  qualifier: SearchQualifierSchema.nullish(),
30
+ /** Result sections from most to least relevant. People lead when `personLead` is true and come last otherwise. Companies, products and services, and investors follow the rank of each section's best entity row, so a name whose best match is an investment firm leads with investors; sections with no entity row follow in that same fixed order. */
31
+ section: z.array(z.enum(["person", "company", "productService", "investor"])).optional(),
30
32
  });
31
33
  /**
32
34
  * Federated entity, person, and news search result composed from each domain's canonical search result owner, with the strategy used for every scope.
@@ -275,7 +275,6 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
275
275
  matchedBlocklistKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
276
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
277
  moderationReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
- parseError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
278
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
279
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json-value.ts").JsonValue, import("./json-value.ts").JsonValue, z.core.$ZodTypeInternals<import("./json-value.ts").JsonValue, import("./json-value.ts").JsonValue>>>>;
281
280
  proseViolation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
@@ -227,7 +227,6 @@ const ProblemDetailSchemaDefinition = z.object({
227
227
  matchedBlocklistKey: z.string().nullish(),
228
228
  mediaType: z.string().nullish(),
229
229
  moderationReason: z.string().nullish(),
230
- parseError: z.string().nullish(),
231
230
  path: z.string().nullish(),
232
231
  properties: z.record(z.string(), JsonValueSchema).optional(),
233
232
  /** Every rejected passage of a PROSE_REJECTED write, once per problem it shows; absent for every other problem. */
@@ -4748,6 +4748,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
4748
4748
  }[];
4749
4749
  prompt: string;
4750
4750
  } | null | undefined;
4751
+ section?: ("company" | "investor" | "person" | "productService")[] | undefined;
4751
4752
  }, import("../federated/search.ts").FederatedSearchSchemaInput, z.core.$ZodTypeInternals<{
4752
4753
  entity: {
4753
4754
  answer?: {
@@ -9495,6 +9496,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
9495
9496
  }[];
9496
9497
  prompt: string;
9497
9498
  } | null | undefined;
9499
+ section?: ("company" | "investor" | "person" | "productService")[] | undefined;
9498
9500
  }, import("../federated/search.ts").FederatedSearchSchemaInput>>;
9499
9501
  url: z.ZodString;
9500
9502
  }, z.core.$strip>;
@@ -15,6 +15,7 @@ export declare const NewsParamSchema: z.ZodObject<{
15
15
  sort: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
16
16
  category: z.ZodOptional<z.ZodString>;
17
17
  excludeId: z.ZodOptional<z.ZodInt>;
18
+ newsId: z.ZodOptional<z.ZodArray<z.ZodInt>>;
18
19
  "owner.entityId": z.ZodOptional<z.ZodUUID>;
19
20
  "owner.personId": z.ZodOptional<z.ZodUUID>;
20
21
  publishedAfter: z.ZodOptional<z.ZodISODate>;
@@ -16,6 +16,8 @@ export const NewsParamSchema = PageParamSchema.extend({
16
16
  category: z.string().optional(),
17
17
  /** Exclude one news article by id. */
18
18
  excludeId: z.int().optional(),
19
+ /** Return only these news article ids. */
20
+ newsId: z.array(z.int()).max(200).optional(),
19
21
  /** Owning entity id; set only when personId is absent. */
20
22
  "owner.entityId": z.uuid().optional(),
21
23
  /** Owning person id; set only when entityId is absent. */
@@ -4759,6 +4759,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
4759
4759
  }[];
4760
4760
  prompt: string;
4761
4761
  } | null | undefined;
4762
+ section?: ("company" | "investor" | "person" | "productService")[] | undefined;
4762
4763
  }, import("../federated/search.ts").FederatedSearchSchemaInput, z.core.$ZodTypeInternals<{
4763
4764
  entity: {
4764
4765
  answer?: {
@@ -9506,6 +9507,7 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
9506
9507
  }[];
9507
9508
  prompt: string;
9508
9509
  } | null | undefined;
9510
+ section?: ("company" | "investor" | "person" | "productService")[] | undefined;
9509
9511
  }, import("../federated/search.ts").FederatedSearchSchemaInput>>;
9510
9512
  }, z.core.$strip>;
9511
9513
  type SharedSearchDefinition = z.infer<typeof SharedSearchSchemaDefinition>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.225",
3
+ "version": "0.8.227",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",