@aventurevc/api-schemas 0.8.461 → 0.8.463

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.
@@ -12,7 +12,7 @@ const EntityAnalysisSectionMutationSchemaDefinition = z.object({
12
12
  figure: z.array(EntityAnalysisFigureSchema).optional(),
13
13
  /** Exact research snippet typeValue, matching the section path key. */
14
14
  key: z.string(),
15
- /** Author hint; the server assigns origin from the credential. */
15
+ /** Author hint; the server assigns origin from the credential or DIRECT claim. */
16
16
  origin: EntityAnalysisSectionOriginSchema,
17
17
  /** Catalog-ordered paragraphs; omit when supplying writerBrief. */
18
18
  paragraph: z.array(EntityAnalysisParagraphSchema).nullish(),
@@ -46,7 +46,7 @@ export const ProblemDetailSchema = z.object({
46
46
  "subscription_paused",
47
47
  /** The caller's metered allowance for this operation is spent for the current period. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt, when the meter refills (typically weeks away). Do not retry inside the period even though the status is 429. */
48
48
  "billing_allowance_exhausted",
49
- /** 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; raise the cap or buy credit through /v1/billing/additional-usage, or wait for resetAt. */
49
+ /** 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
50
  "billing_additional_usage_cap_reached",
51
51
  /** 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. */
52
52
  "billing_credit_checkout_closed",
@@ -45,6 +45,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
45
45
  readonly STATE_CONFLICT: "https://api.aventure.vc/errors/state-conflict";
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
+ readonly SEARCH_PHRASE_WINDOW_EXHAUSTED: "https://api.aventure.vc/errors/search-phrase-window-exhausted";
48
49
  readonly SLUG_HELD_BY_RECORD: "https://api.aventure.vc/errors/slug-held-by-record";
49
50
  readonly SLUG_HELD_BY_REDIRECT: "https://api.aventure.vc/errors/slug-held-by-redirect";
50
51
  readonly SLUG_AMBIGUOUS: "https://api.aventure.vc/errors/slug-ambiguous";
@@ -104,6 +105,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
104
105
  readonly STATE_CONFLICT: "https://api.aventure.vc/errors/state-conflict";
105
106
  readonly ANALYSIS_TURN_PENDING: "https://api.aventure.vc/errors/analysis-turn-pending";
106
107
  readonly HARNESS_RUN_LEASE_MISMATCH: "https://api.aventure.vc/errors/harness-run-lease-mismatch";
108
+ readonly SEARCH_PHRASE_WINDOW_EXHAUSTED: "https://api.aventure.vc/errors/search-phrase-window-exhausted";
107
109
  readonly SLUG_HELD_BY_RECORD: "https://api.aventure.vc/errors/slug-held-by-record";
108
110
  readonly SLUG_HELD_BY_REDIRECT: "https://api.aventure.vc/errors/slug-held-by-redirect";
109
111
  readonly SLUG_AMBIGUOUS: "https://api.aventure.vc/errors/slug-ambiguous";
@@ -37,6 +37,7 @@ const ProblemTypeSchemaKnownMembers = z.enum({
37
37
  STATE_CONFLICT: "https://api.aventure.vc/errors/state-conflict",
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
+ SEARCH_PHRASE_WINDOW_EXHAUSTED: "https://api.aventure.vc/errors/search-phrase-window-exhausted",
40
41
  SLUG_HELD_BY_RECORD: "https://api.aventure.vc/errors/slug-held-by-record",
41
42
  SLUG_HELD_BY_REDIRECT: "https://api.aventure.vc/errors/slug-held-by-redirect",
42
43
  SLUG_AMBIGUOUS: "https://api.aventure.vc/errors/slug-ambiguous",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.461",
3
+ "version": "0.8.463",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",