@aventurevc/api-schemas 0.8.64 → 0.8.66

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.
@@ -2,6 +2,7 @@ import { z } from "zod/v4";
2
2
  declare const AgentHelpQuestionSchemaDefinition: z.ZodObject<{
3
3
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  question: z.ZodString;
5
+ resolve: z.ZodOptional<z.ZodBoolean>;
5
6
  scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6
7
  ALL: "ALL";
7
8
  READ: "READ";
@@ -5,7 +5,9 @@ const AgentHelpQuestionSchemaDefinition = z.object({
5
5
  /** Optional chat model that answers the question; null uses the configured default. A caller without admin authority may only choose an allowlisted model; an ineligible model is rejected with 422. Admin callers are unrestricted. */
6
6
  model: z.string().nullish(),
7
7
  /** The question to answer, in natural language. */
8
- question: z.string().min(1),
8
+ question: z.string().max(2000),
9
+ /** True resolves the question to one runnable operation instead of answering it: the response carries a resolution (operation advice, clarify, or abstain) and no generated answer. Resolving calls no chat model, ignores model, and draws on its own per-caller limit instead of the answer quota. */
10
+ resolve: z.boolean().optional(),
9
11
  /** Optional scope restricting which operations the answer may recommend; null means all. */
10
12
  scope: HelpScopeSchema.nullish(),
11
13
  });
@@ -17,6 +17,27 @@ declare const AgentHelpSchemaDefinition: z.ZodObject<{
17
17
  LOW: "LOW";
18
18
  MEDIUM: "MEDIUM";
19
19
  }>;
20
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ candidate: z.ZodArray<z.ZodType<{
22
+ excerpt: string;
23
+ sourceId: string;
24
+ sourceType: "COMPLETION_GATE" | "OPERATION" | "PROMPT" | "RESEARCH_DETAIL_TYPE" | "SKILL";
25
+ sourceVersion?: string | null | undefined;
26
+ }, unknown, z.core.$ZodTypeInternals<{
27
+ excerpt: string;
28
+ sourceId: string;
29
+ sourceType: "COMPLETION_GATE" | "OPERATION" | "PROMPT" | "RESEARCH_DETAIL_TYPE" | "SKILL";
30
+ sourceVersion?: string | null | undefined;
31
+ }, unknown>>>;
32
+ operationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ outcome: z.ZodEnum<{
34
+ ABSTAIN: "ABSTAIN";
35
+ CLARIFY: "CLARIFY";
36
+ OPERATION_ADVICE: "OPERATION_ADVICE";
37
+ TASK_PLAN: "TASK_PLAN";
38
+ }>;
39
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ }, z.core.$strip>>>;
20
41
  }, z.core.$strip>;
21
42
  type AgentHelpDefinition = z.infer<typeof AgentHelpSchemaDefinition>;
22
43
  /**
@@ -2,6 +2,7 @@
2
2
  import { z } from "zod/v4";
3
3
  import { ConfidenceSchema } from "../confidence/confidence.js";
4
4
  import { HelpCitationSchema } from "../help/citation.js";
5
+ import { HelpResolutionSchema } from "../help/resolution.js";
5
6
  const AgentHelpSchemaDefinition = z.object({
6
7
  /** Answer drawn only from the cited corpus; abstains when unsupported. */
7
8
  answer: z.string(),
@@ -9,6 +10,8 @@ const AgentHelpSchemaDefinition = z.object({
9
10
  citation: z.array(HelpCitationSchema),
10
11
  /** Confidence the answer is fully supported by the cited corpus. LOW signals an abstention. */
11
12
  confidence: ConfidenceSchema,
13
+ /** The resolved operation when the question asked to resolve; absent for a generated answer. */
14
+ resolution: HelpResolutionSchema.nullish(),
12
15
  });
13
16
  /**
14
17
  * Grounded natural-language help answer with citations to specific operations, skills, or completion gates. Unsupported questions abstain (LOW confidence) rather than guess.
@@ -950,6 +950,7 @@ type EntityListDefinition = z.infer<typeof EntityListSchemaDefinition>;
950
950
  * @usedBySchema NaturalSearchResultSchema
951
951
  * @usedBySchema PageEntityListSchema
952
952
  * @usedBySchema PageResultEntityListSchema
953
+ * @usedBySchema SearchJudgmentSchema
953
954
  * @contractShape entity.list
954
955
  * @contractRole canonical
955
956
  */
@@ -35,6 +35,7 @@ const EntityListSchemaDefinition = z.object({
35
35
  * @usedBySchema NaturalSearchResultSchema
36
36
  * @usedBySchema PageEntityListSchema
37
37
  * @usedBySchema PageResultEntityListSchema
38
+ * @usedBySchema SearchJudgmentSchema
38
39
  * @contractShape entity.list
39
40
  * @contractRole canonical
40
41
  */