@aventurevc/api-schemas 0.8.526 → 0.8.528

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.
@@ -328,6 +328,9 @@ export declare const ProblemDetailSchema: z.ZodObject<{
328
328
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
329
  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>>>>;
330
330
  proseViolation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
331
+ claim?: string | null | undefined;
332
+ field?: string | null | undefined;
333
+ fix?: string | null | undefined;
331
334
  overridable: boolean;
332
335
  passage: string;
333
336
  problem: string;
@@ -335,6 +338,9 @@ export declare const ProblemDetailSchema: z.ZodObject<{
335
338
  supportedWording?: string | null | undefined;
336
339
  unsupportedSpan?: string[] | null | undefined;
337
340
  }, import("../prose/violation.ts").ProseViolationSchemaInput, z.core.$ZodTypeInternals<{
341
+ claim?: string | null | undefined;
342
+ field?: string | null | undefined;
343
+ fix?: string | null | undefined;
338
344
  overridable: boolean;
339
345
  passage: string;
340
346
  problem: string;
@@ -46,6 +46,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
46
46
  readonly ANALYSIS_TURN_PENDING: "https://api.aventure.vc/errors/analysis-turn-pending";
47
47
  readonly HARNESS_RUN_LEASE_MISMATCH: "https://api.aventure.vc/errors/harness-run-lease-mismatch";
48
48
  readonly SEARCH_PHRASE_WINDOW_EXHAUSTED: "https://api.aventure.vc/errors/search-phrase-window-exhausted";
49
+ readonly RESEARCH_DETAIL_REPLAY_SUPERSEDED: "https://api.aventure.vc/errors/research-detail-replay-superseded";
49
50
  readonly SLUG_HELD_BY_RECORD: "https://api.aventure.vc/errors/slug-held-by-record";
50
51
  readonly SLUG_HELD_BY_REDIRECT: "https://api.aventure.vc/errors/slug-held-by-redirect";
51
52
  readonly SLUG_AMBIGUOUS: "https://api.aventure.vc/errors/slug-ambiguous";
@@ -106,6 +107,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
106
107
  readonly ANALYSIS_TURN_PENDING: "https://api.aventure.vc/errors/analysis-turn-pending";
107
108
  readonly HARNESS_RUN_LEASE_MISMATCH: "https://api.aventure.vc/errors/harness-run-lease-mismatch";
108
109
  readonly SEARCH_PHRASE_WINDOW_EXHAUSTED: "https://api.aventure.vc/errors/search-phrase-window-exhausted";
110
+ readonly RESEARCH_DETAIL_REPLAY_SUPERSEDED: "https://api.aventure.vc/errors/research-detail-replay-superseded";
109
111
  readonly SLUG_HELD_BY_RECORD: "https://api.aventure.vc/errors/slug-held-by-record";
110
112
  readonly SLUG_HELD_BY_REDIRECT: "https://api.aventure.vc/errors/slug-held-by-redirect";
111
113
  readonly SLUG_AMBIGUOUS: "https://api.aventure.vc/errors/slug-ambiguous";
@@ -38,6 +38,7 @@ const ProblemTypeSchemaKnownMembers = z.enum({
38
38
  ANALYSIS_TURN_PENDING: "https://api.aventure.vc/errors/analysis-turn-pending",
39
39
  HARNESS_RUN_LEASE_MISMATCH: "https://api.aventure.vc/errors/harness-run-lease-mismatch",
40
40
  SEARCH_PHRASE_WINDOW_EXHAUSTED: "https://api.aventure.vc/errors/search-phrase-window-exhausted",
41
+ RESEARCH_DETAIL_REPLAY_SUPERSEDED: "https://api.aventure.vc/errors/research-detail-replay-superseded",
41
42
  SLUG_HELD_BY_RECORD: "https://api.aventure.vc/errors/slug-held-by-record",
42
43
  SLUG_HELD_BY_REDIRECT: "https://api.aventure.vc/errors/slug-held-by-redirect",
43
44
  SLUG_AMBIGUOUS: "https://api.aventure.vc/errors/slug-ambiguous",
@@ -1,5 +1,8 @@
1
1
  import { z } from "zod/v4";
2
2
  declare const ProseViolationSchemaDefinition: z.ZodObject<{
3
+ claim: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3
6
  overridable: z.ZodBoolean;
4
7
  passage: z.ZodString;
5
8
  problem: z.ZodUnion<readonly [z.ZodEnum<{
@@ -2,6 +2,12 @@
2
2
  import { z } from "zod/v4";
3
3
  import { ProseProblemSchema } from "./problem.js";
4
4
  const ProseViolationSchemaDefinition = z.object({
5
+ /** The offending claim, brief statement, or excerpt that triggered this violation when applicable. */
6
+ claim: z.string().nullish(),
7
+ /** Which request field, brief slot, or target holds this defect when pinpointable (for example, writerBrief.metaAnalysis.answer, positioning[CATEGORY], or text). */
8
+ field: z.string().nullish(),
9
+ /** Concrete repair action or supported replacement wording to resolve this violation. */
10
+ fix: z.string().nullish(),
5
11
  /** Whether proseOverrideReason can accept this problem; ProblemDetail.hint says when an override is allowed. */
6
12
  overridable: z.boolean(),
7
13
  /** The rejected sentence or paragraph, the whole text for a global text-contract violation, or the source URL for a legal-page source. */
@@ -37,7 +37,7 @@ const SearchSchemaDefinition = z.object({
37
37
  retrievedFor: EntityPersonOwnerSchema.nullish(),
38
38
  /** Search text sent to the upstream web search provider, at most the search catalog's text.maxSearchTermLength characters; a longer query answers 422 naming that limit, so shorten it rather than retrying. */
39
39
  search: z.string(),
40
- /** Optional label for the calling application, up to 64 characters, stored with the search for attribution and abuse review. */
40
+ /** Optional label for the calling application, up to 64 characters, stored with the search for attribution and abuse review. signal-gap-fill is reserved: POST /v1/web/search refuses it with 422 before any charge or provider call. */
41
41
  source: z.string().max(64).nullish(),
42
42
  });
43
43
  /**
@@ -14,12 +14,21 @@ declare const TextTypeOptionSchemaDefinition: z.ZodObject<{
14
14
  }, z.core.$strip>>>;
15
15
  privateType: z.ZodBoolean;
16
16
  rewriteHint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ terminalParagraphShape: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ maxChars: z.ZodInt;
19
+ maxClaimWords: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20
+ maxParagraphs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
21
+ maxSentences: z.ZodInt;
22
+ minChars: z.ZodInt;
23
+ minParagraphs: z.ZodInt;
24
+ minSentences: z.ZodInt;
25
+ }, z.core.$strip>>>;
17
26
  }, z.core.$strip>;
18
27
  type TextTypeOptionDefinition = z.infer<typeof TextTypeOptionSchemaDefinition>;
19
28
  export interface TextTypeOptionSchemaInput extends z.input<typeof TextTypeOptionSchemaDefinition> {
20
29
  }
21
30
  /**
22
- * A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, and paragraphShape when that type has length and paragraph rules.
31
+ * A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, paragraphShape, and terminalParagraphShape when that type has length and paragraph rules.
23
32
  *
24
33
  * @openapiSchema TextTypeOption
25
34
  * @endpoint GET /v1/entities/texts/types
@@ -14,9 +14,11 @@ const TextTypeOptionSchemaDefinition = z.object({
14
14
  privateType: z.boolean(),
15
15
  /** Advice for rewriting text that breaks this type's rules. */
16
16
  rewriteHint: z.string().nullish(),
17
+ /** Paragraph rules that replace paragraphShape when the subject has a terminal operating status (closed or acquired). */
18
+ terminalParagraphShape: ResearchParagraphShapeSchema.nullish(),
17
19
  });
18
20
  /**
19
- * A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, and paragraphShape when that type has length and paragraph rules.
21
+ * A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, paragraphShape, and terminalParagraphShape when that type has length and paragraph rules.
20
22
  *
21
23
  * @openapiSchema TextTypeOption
22
24
  * @endpoint GET /v1/entities/texts/types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.526",
3
+ "version": "0.8.528",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",