@aventurevc/api-schemas 0.8.479 → 0.8.481
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.
|
@@ -52,6 +52,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
52
52
|
async_lookup_sign_in_required: "async_lookup_sign_in_required";
|
|
53
53
|
billing_additional_usage_cap_reached: "billing_additional_usage_cap_reached";
|
|
54
54
|
billing_allowance_exhausted: "billing_allowance_exhausted";
|
|
55
|
+
billing_complimentary_term: "billing_complimentary_term";
|
|
55
56
|
billing_credit_checkout_closed: "billing_credit_checkout_closed";
|
|
56
57
|
billing_plan_change_required: "billing_plan_change_required";
|
|
57
58
|
callback_challenge_failed: "callback_challenge_failed";
|
|
@@ -125,6 +126,10 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
125
126
|
text_send_limit_reached: "text_send_limit_reached";
|
|
126
127
|
text_write_job_ended: "text_write_job_ended";
|
|
127
128
|
url_surface_misclassification: "url_surface_misclassification";
|
|
129
|
+
vault_last_admin_cannot_leave: "vault_last_admin_cannot_leave";
|
|
130
|
+
vault_owner_cannot_leave: "vault_owner_cannot_leave";
|
|
131
|
+
vault_scanner_not_configured: "vault_scanner_not_configured";
|
|
132
|
+
vault_writers_not_enabled: "vault_writers_not_enabled";
|
|
128
133
|
web_crawl_fetch_failed: "web_crawl_fetch_failed";
|
|
129
134
|
website_not_own_live_site: "website_not_own_live_site";
|
|
130
135
|
}>, z.ZodString]>>>;
|
|
@@ -32,9 +32,9 @@ export const ProblemDetailSchema = z.object({
|
|
|
32
32
|
"async_lookup_sign_in_required",
|
|
33
33
|
/** 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
34
|
"not_authorized",
|
|
35
|
-
/** Request was throttled. Agent action: wait at least retryAfterSeconds (
|
|
35
|
+
/** 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. */
|
|
36
36
|
"rateLimited",
|
|
37
|
-
/** Request was throttled. Agent action: wait at least retryAfterSeconds (
|
|
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. */
|
|
38
38
|
"rate_limited",
|
|
39
39
|
/** Caller is authenticated but the subscription on their account does not include this operation. Agent action: surface ProblemDetail.detail explaining the subscription requirement and stop; never retry until the account changes plan. */
|
|
40
40
|
"subscription_required",
|
|
@@ -44,8 +44,10 @@ export const ProblemDetailSchema = z.object({
|
|
|
44
44
|
"subscription_past_due",
|
|
45
45
|
/** Caller's subscription is paused, so it does not include this operation. Agent action: surface ProblemDetail.detail and stop; the account must add a payment method through the resolution's Billing Portal endpoint, then resume with PATCH /v1/billing/subscription and paused false. */
|
|
46
46
|
"subscription_paused",
|
|
47
|
-
/** The caller's metered allowance for this operation is spent for the
|
|
47
|
+
/** The caller's metered allowance for this operation is spent for the period. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt (often weeks away); never retry before then, despite the 429 status. */
|
|
48
48
|
"billing_allowance_exhausted",
|
|
49
|
+
/** A complimentary term is set; only upgrading to a paid plan changes it. */
|
|
50
|
+
"billing_complimentary_term",
|
|
49
51
|
/** The caller's monthly allowance is spent and the next additional-usage unit would pass the monthly spend cap or the prepaid credit left. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt, then follow ProblemDetail.resolution: when prepaid credit is used up, buy credit through POST /v1/billing/credit-purchases only with the user's exact quoted approval of the amount; when the monthly cap is reached, raise spendCapCents through /v1/billing/additional-usage or wait for resetAt. */
|
|
50
52
|
"billing_additional_usage_cap_reached",
|
|
51
53
|
/** The prepaid credit Checkout is paid, expired, or closed. Retire this purchase intent before explicitly starting another Checkout; ambiguous transport failures and in-progress conflicts must keep the original key. */
|
|
@@ -136,13 +138,13 @@ export const ProblemDetailSchema = z.object({
|
|
|
136
138
|
"news_rss_article_fetch_failed",
|
|
137
139
|
/** News subscription webhook verification could not connect to delivery.url. Agent action: confirm the endpoint is publicly reachable over https, then subscribe again. */
|
|
138
140
|
"callback_connection_refused",
|
|
139
|
-
/**
|
|
141
|
+
/** Webhook verification timed out; answer faster, then resubscribe. */
|
|
140
142
|
"callback_timeout",
|
|
141
143
|
/** News subscription webhook verification failed the TLS handshake. Agent action: serve a publicly trusted certificate for the delivery.url host, then subscribe again. */
|
|
142
144
|
"callback_tls_error",
|
|
143
|
-
/**
|
|
145
|
+
/** Webhook verification got a 4xx answer; accept the signed POST, resubscribe. */
|
|
144
146
|
"callback_http_4xx",
|
|
145
|
-
/**
|
|
147
|
+
/** Webhook verification got a 5xx answer; fix or wait, then resubscribe. */
|
|
146
148
|
"callback_http_5xx",
|
|
147
149
|
/** 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. */
|
|
148
150
|
"callback_challenge_failed",
|
|
@@ -200,6 +202,14 @@ export const ProblemDetailSchema = z.object({
|
|
|
200
202
|
"INFERENCE_PROFILE_API_KEY_MISSING",
|
|
201
203
|
/** Language-model credentials are missing. Agent action: stop; retrying cannot succeed until aVenture restores them. */
|
|
202
204
|
"inference_profile_api_key_missing",
|
|
205
|
+
/** No virus scanner is configured; uploads are refused. Do not retry. */
|
|
206
|
+
"vault_scanner_not_configured",
|
|
207
|
+
/** Library writes are not enabled on this deployment. Do not retry. */
|
|
208
|
+
"vault_writers_not_enabled",
|
|
209
|
+
/** The workspace owner cannot leave or be removed. Do not retry. */
|
|
210
|
+
"vault_owner_cannot_leave",
|
|
211
|
+
/** The last active admin cannot leave until another admin exists. */
|
|
212
|
+
"vault_last_admin_cannot_leave",
|
|
203
213
|
]),
|
|
204
214
|
z.string().max(128),
|
|
205
215
|
])
|
|
@@ -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
|
|
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(),
|
|
@@ -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. */
|