@aventurevc/api-schemas 0.8.480 → 0.8.482

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.
@@ -107,6 +107,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
107
107
  rateLimited: "rateLimited";
108
108
  rate_limited: "rate_limited";
109
109
  rbac_lookup_unavailable: "rbac_lookup_unavailable";
110
+ research_binding_conflicts_with_run: "research_binding_conflicts_with_run";
110
111
  researchly_usage_unavailable: "researchly_usage_unavailable";
111
112
  search_provider_error: "search_provider_error";
112
113
  search_provider_not_configured: "search_provider_not_configured";
@@ -126,6 +127,10 @@ export declare const ProblemDetailSchema: z.ZodObject<{
126
127
  text_send_limit_reached: "text_send_limit_reached";
127
128
  text_write_job_ended: "text_write_job_ended";
128
129
  url_surface_misclassification: "url_surface_misclassification";
130
+ vault_last_admin_cannot_leave: "vault_last_admin_cannot_leave";
131
+ vault_owner_cannot_leave: "vault_owner_cannot_leave";
132
+ vault_scanner_not_configured: "vault_scanner_not_configured";
133
+ vault_writers_not_enabled: "vault_writers_not_enabled";
129
134
  web_crawl_fetch_failed: "web_crawl_fetch_failed";
130
135
  website_not_own_live_site: "website_not_own_live_site";
131
136
  }>, z.ZodString]>>>;
@@ -30,6 +30,8 @@ export const ProblemDetailSchema = z.object({
30
30
  "harness_suppression_unverified",
31
31
  /** An anonymous caller cannot own a lookup job. Sign in to request async. */
32
32
  "async_lookup_sign_in_required",
33
+ /** Credential already binds its run; resend without the research claim. */
34
+ "research_binding_conflicts_with_run",
33
35
  /** Caller is authenticated but lacks the required role for this operation. Agent action: surface the requiredRole field on the ProblemDetail and stop; do not retry without role escalation. */
34
36
  "not_authorized",
35
37
  /** Request was throttled. Agent action: wait at least retryAfterSeconds (or the Retry-After header), then back off exponentially on repeated 429s; with resetAt, wait until that time instead of retrying the spent monthly allowance. */
@@ -138,13 +140,13 @@ export const ProblemDetailSchema = z.object({
138
140
  "news_rss_article_fetch_failed",
139
141
  /** News subscription webhook verification could not connect to delivery.url. Agent action: confirm the endpoint is publicly reachable over https, then subscribe again. */
140
142
  "callback_connection_refused",
141
- /** News subscription webhook verification timed out. Agent action: make the endpoint answer the challenge within the delivery read timeout, then subscribe again. */
143
+ /** Webhook verification timed out; answer faster, then resubscribe. */
142
144
  "callback_timeout",
143
145
  /** News subscription webhook verification failed the TLS handshake. Agent action: serve a publicly trusted certificate for the delivery.url host, then subscribe again. */
144
146
  "callback_tls_error",
145
- /** News subscription webhook verification got a 4xx answer. Agent action: make the endpoint accept the signed verification POST, then subscribe again. */
147
+ /** Webhook verification got a 4xx answer; accept the signed POST, resubscribe. */
146
148
  "callback_http_4xx",
147
- /** News subscription webhook verification got a 5xx answer. Agent action: fix or wait for the endpoint, then subscribe again. */
149
+ /** Webhook verification got a 5xx answer; fix or wait, then resubscribe. */
148
150
  "callback_http_5xx",
149
151
  /** News subscription webhook verification got a 2xx answer whose body was not {"challenge":"<nonce>"} with the sent nonce. Agent action: echo the challenge exactly, then subscribe again. */
150
152
  "callback_challenge_failed",
@@ -202,6 +204,14 @@ export const ProblemDetailSchema = z.object({
202
204
  "INFERENCE_PROFILE_API_KEY_MISSING",
203
205
  /** Language-model credentials are missing. Agent action: stop; retrying cannot succeed until aVenture restores them. */
204
206
  "inference_profile_api_key_missing",
207
+ /** No virus scanner is configured; uploads are refused. Do not retry. */
208
+ "vault_scanner_not_configured",
209
+ /** Library writes are not enabled on this deployment. Do not retry. */
210
+ "vault_writers_not_enabled",
211
+ /** The workspace owner cannot leave or be removed. Do not retry. */
212
+ "vault_owner_cannot_leave",
213
+ /** The last active admin cannot leave until another admin exists. */
214
+ "vault_last_admin_cannot_leave",
205
215
  ]),
206
216
  z.string().max(128),
207
217
  ])
@@ -3,7 +3,7 @@ import { z } from "zod/v4";
3
3
  import { IdentificationSubjectSchema } from "../identification/subject.js";
4
4
  import { LookupMentionSchema } from "./mention.js";
5
5
  const LookupJobMutationSchemaDefinition = z.object({
6
- /** POST /v1/lookup/mentions without maxNames only: identify extracted names using deterministic stages, without judgment, web-evidence identity or shell filing. Name extraction is unchanged. Lookup jobs reject true. */
6
+ /** POST /v1/lookup/mentions only: identify extracted names using deterministic stages, without judgment, web-evidence identity or shell filing. Name extraction is unchanged. Bulk lookup jobs accept true only with sourceNewsId; other lookup jobs reject it. */
7
7
  deterministic: z.boolean().optional(),
8
8
  /** Companies and people the caller already read, identified without sending the page or screenshot. Send them alone, without an article or file. On lookup jobs, maxNames is required and no records are created and no research is requested. */
9
9
  mention: z.array(LookupMentionSchema).optional(),
@@ -7,7 +7,7 @@ import { NewsSchema } from "../news/news.js";
7
7
  const MentionLookupSchemaDefinition = z.object({
8
8
  /** Present only for callers that sent Prefer: respond-async. Identifications are settled but shell filing is pending. Poll statusUrl until the lookup job completes; merge its filing outcomes by mentionType and name. */
9
9
  filing: JobEnqueueSchema.nullish(),
10
- /** Each distinct name: the page's own company first, then the order the source shows them, with news outlets and the page's bylined authors last. */
10
+ /** Each distinct name: the page's own company first, then the order the source shows them, with news publishers and the page's bylined authors last. */
11
11
  mention: z.array(LookupJobMentionSchema),
12
12
  /** The stored aVenture news article the source page is, when it is one; absent otherwise. */
13
13
  news: NewsSchema.nullish(),
@@ -14,7 +14,7 @@ export const NewsCandidateScoreSchema = z.object({
14
14
  externalId: z.string().nullish(),
15
15
  /** News article id to read or update when this candidate is the requested article. */
16
16
  id: z.int(),
17
- /** Portion of score contributed by the publication match alone; 0 when the publication did not match. A candidate whose score minus publicationScore falls below the review threshold matched only on its outlet, not its story. */
17
+ /** Portion of score contributed by the publication match alone; 0 when the publication did not match. A candidate whose score minus publicationScore falls below the review threshold matched only on its publisher, not its story. */
18
18
  publicationScore: z.int(),
19
19
  /** Match reasons for reviewing the candidate. Exact reasons are decision signals regardless of whether score crosses the review threshold. */
20
20
  reason: z.array(z.string()),
@@ -29,6 +29,15 @@ declare const ResearchSnippetTypeSchemaDefinition: z.ZodObject<{
29
29
  readerQuestion: z.ZodString;
30
30
  recognized: z.ZodBoolean;
31
31
  targetPath: z.ZodString;
32
+ terminalParagraphShape: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ maxChars: z.ZodInt;
34
+ maxClaimWords: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
35
+ maxParagraphs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
36
+ maxSentences: z.ZodInt;
37
+ minChars: z.ZodInt;
38
+ minParagraphs: z.ZodInt;
39
+ minSentences: z.ZodInt;
40
+ }, z.core.$strip>>>;
32
41
  typeValue: z.ZodString;
33
42
  writeHint: z.ZodString;
34
43
  }, z.core.$strip>;
@@ -25,6 +25,8 @@ const ResearchSnippetTypeSchemaDefinition = z.object({
25
25
  recognized: z.boolean(),
26
26
  /** Dotted research section path the snippet attaches to. */
27
27
  targetPath: z.string(),
28
+ /** Paragraph shape that write requests must satisfy instead of paragraphShape when the subject is Closed, Closed (Acquihire), Inactive, or Acquired; null = paragraphShape applies. */
29
+ terminalParagraphShape: ResearchParagraphShapeSchema.nullish(),
28
30
  /** Snippet type value used in requests and responses. */
29
31
  typeValue: z.string(),
30
32
  /** The strategic question this snippet type answers and how to shape it. Snippets are point-in-time strategic analysis of the company's position against its market and named alternatives: open with the judgment and give dated details only as evidence for it, never as a fact list. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.480",
3
+ "version": "0.8.482",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",