@aventurevc/api-schemas 0.8.382 → 0.8.384

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.
@@ -317,11 +317,15 @@ export declare const ProblemDetailSchema: z.ZodObject<{
317
317
  passage: string;
318
318
  problem: string;
319
319
  reason: string;
320
+ supportedWording?: string | null | undefined;
321
+ unsupportedSpan?: string[] | null | undefined;
320
322
  }, import("../prose/violation.ts").ProseViolationSchemaInput, z.core.$ZodTypeInternals<{
321
323
  overridable: boolean;
322
324
  passage: string;
323
325
  problem: string;
324
326
  reason: string;
327
+ supportedWording?: string | null | undefined;
328
+ unsupportedSpan?: string[] | null | undefined;
325
329
  }, import("../prose/violation.ts").ProseViolationSchemaInput>>>>>;
326
330
  remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
327
331
  requiredRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -44,6 +44,8 @@ declare const ProseViolationSchemaDefinition: z.ZodObject<{
44
44
  };
45
45
  };
46
46
  reason: z.ZodString;
47
+ supportedWording: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ unsupportedSpan: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
47
49
  }, z.core.$strip>;
48
50
  type ProseViolationDefinition = z.infer<typeof ProseViolationSchemaDefinition>;
49
51
  export interface ProseViolationSchemaInput extends z.input<typeof ProseViolationSchemaDefinition> {
@@ -10,6 +10,10 @@ const ProseViolationSchemaDefinition = z.object({
10
10
  problem: ProseProblemSchema,
11
11
  /** Why the passage was rejected and how to fix it. */
12
12
  reason: z.string(),
13
+ /** Present only on a writerBrief grounding refusal with unsupportedSpan: the passage without those clauses, which its cited quotes support. Absent when that remaining wording is still refused. */
14
+ supportedWording: z.string().nullish(),
15
+ /** Present only on a writerBrief grounding refusal of a statement with several clauses: the clauses its cited quotes do not support. Absent when every clause or none is refused. */
16
+ unsupportedSpan: z.array(z.string()).nullish(),
13
17
  });
14
18
  /**
15
19
  * One rejected passage and one problem it shows; a passage with several problems appears once per problem.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.382",
3
+ "version": "0.8.384",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",