@aventurevc/api-schemas 0.8.528 → 0.8.530
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.
- package/dist/billing/additional-usage-mutation.d.ts +3 -0
- package/dist/billing/additional-usage-mutation.js +6 -0
- package/dist/billing/additional-usage.d.ts +14 -0
- package/dist/billing/additional-usage.js +11 -1
- package/dist/billing/auto-top-up-status.d.ts +23 -0
- package/dist/billing/auto-top-up-status.js +23 -0
- package/dist/billing/credit-purchase-cap-decision.d.ts +1 -1
- package/dist/billing/credit-purchase-cap-decision.js +1 -1
- package/dist/billing/credit-purchase-mutation.d.ts +1 -0
- package/dist/billing/credit-purchase-mutation.js +3 -1
- package/dist/billing/payment-profile.d.ts +1 -0
- package/dist/billing/payment-profile.js +2 -0
- package/dist/billing/subscription.d.ts +10 -0
- package/dist/http/problem-detail.d.ts +1 -0
- package/dist/http/problem-detail.js +3 -1
- package/dist/openapi-component-manifest.js +4 -0
- package/package.json +1 -1
|
@@ -2,6 +2,9 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingAdditionalUsageMutationSchemaDefinition: z.ZodObject<{
|
|
3
3
|
assistantPurchaseEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
4
|
authorizationQuote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
autoTopUpAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
autoTopUpCardRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
autoTopUpEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5
8
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
9
|
funding: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
7
10
|
PREPAID_CREDIT: "PREPAID_CREDIT";
|
|
@@ -6,6 +6,12 @@ const BillingAdditionalUsageMutationSchemaDefinition = z.object({
|
|
|
6
6
|
assistantPurchaseEnabled: z.boolean().nullish(),
|
|
7
7
|
/** Exact user quote authorizing this delegated settings change, including the funding and monthly cap decision (keep, set, or no cap). Required for delegated changes that enable usage or change funding, cap, or invoice increment. Ask the user first; send their words unchanged. This quote is retained verbatim, never returned as settings. */
|
|
8
8
|
authorizationQuote: z.string().max(4000).nullish(),
|
|
9
|
+
/** Full amount of each automatic purchase, selected from the credit-pack catalog. No amount is preselected. */
|
|
10
|
+
autoTopUpAmountCents: z.number().int().nullish(),
|
|
11
|
+
/** The displayed default card's current revision. Send it when accepting or revising standing top-up terms; omission never renews consent. */
|
|
12
|
+
autoTopUpCardRevision: z.string().nullish(),
|
|
13
|
+
/** Authorize automatic purchases only on the approved card. If the default card differs at the pre-charge check, top-up pauses. A later default change cannot stop an admitted charge. Null turns top-up off; omission keeps the current choice. */
|
|
14
|
+
autoTopUpEnabled: z.boolean().nullish(),
|
|
9
15
|
/** Turn recording of usage past the monthly caps on or off. */
|
|
10
16
|
enabled: z.boolean().nullish(),
|
|
11
17
|
funding: BillingAdditionalUsageFundingTypeSchema.nullish(),
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingAdditionalUsageSchemaDefinition: z.ZodObject<{
|
|
3
3
|
assistantPurchaseEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4
|
+
autoTopUpAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
+
autoTopUpEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
|
+
autoTopUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
7
|
+
AUTHENTICATION_REQUIRED: "AUTHENTICATION_REQUIRED";
|
|
8
|
+
MONTHLY_LIMIT_REACHED: "MONTHLY_LIMIT_REACHED";
|
|
9
|
+
OFF: "OFF";
|
|
10
|
+
PAYMENT_DECLINED: "PAYMENT_DECLINED";
|
|
11
|
+
PAYMENT_METHOD_REQUIRED: "PAYMENT_METHOD_REQUIRED";
|
|
12
|
+
PROCESSING: "PROCESSING";
|
|
13
|
+
READY: "READY";
|
|
14
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
15
|
+
}>>>;
|
|
16
|
+
autoTopUpThresholdCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
17
|
availableCreditCents: z.ZodNumber;
|
|
5
18
|
blocked: z.ZodBoolean;
|
|
6
19
|
enabled: z.ZodBoolean;
|
|
@@ -20,6 +33,7 @@ declare const BillingAdditionalUsageSchemaDefinition: z.ZodObject<{
|
|
|
20
33
|
}, import("./additional-usage-meter.ts").BillingAdditionalUsageMeterSchemaInput>>>;
|
|
21
34
|
resetAt: z.ZodISODateTime;
|
|
22
35
|
spendCapCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
spendLimitUsedCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
37
|
spentCents: z.ZodNumber;
|
|
24
38
|
unbilledCents: z.ZodNumber;
|
|
25
39
|
}, z.core.$strip>;
|
|
@@ -2,9 +2,17 @@
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { BillingAdditionalUsageFundingTypeSchema } from "./additional-usage-funding-type.js";
|
|
4
4
|
import { BillingAdditionalUsageMeterSchema } from "./additional-usage-meter.js";
|
|
5
|
+
import { BillingAutoTopUpStatusSchema } from "./auto-top-up-status.js";
|
|
5
6
|
const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
6
7
|
/** Whether assistants may request billing changes with an exact user authorization quote. Defaults to false; only a verified first-party user session may change it. This permission neither enables usage nor buys credit. */
|
|
7
8
|
assistantPurchaseEnabled: z.boolean().default(false).optional(),
|
|
9
|
+
/** Selected automatic purchase amount, in USD cents. */
|
|
10
|
+
autoTopUpAmountCents: z.number().int().nullish(),
|
|
11
|
+
/** Whether the account has a current automatic top-up authorization. */
|
|
12
|
+
autoTopUpEnabled: z.boolean().nullish(),
|
|
13
|
+
autoTopUpStatus: BillingAutoTopUpStatusSchema.nullish(),
|
|
14
|
+
/** Spendable balance below which a debit can trigger a top-up, in USD cents. */
|
|
15
|
+
autoTopUpThresholdCents: z.number().int().nullish(),
|
|
8
16
|
/** Spendable prepaid credit after pending usage and invoice-line rounding reserves, in cents. */
|
|
9
17
|
availableCreditCents: z.number(),
|
|
10
18
|
/** True while a failed threshold invoice blocks additional usage; paying it in Billing Portal clears the block. */
|
|
@@ -17,8 +25,10 @@ const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
|
17
25
|
meter: z.array(BillingAdditionalUsageMeterSchema),
|
|
18
26
|
/** When spentCents returns to zero: the next UTC month. */
|
|
19
27
|
resetAt: z.iso.datetime({ offset: true }),
|
|
20
|
-
/** Optional monthly usage spend cap in cents for either funding type. Null means no configured monthly cap
|
|
28
|
+
/** Optional monthly usage spend cap in cents for either funding type. Null means no configured monthly cap. One-time purchases are outside the limit; automatic purchases count toward it. */
|
|
21
29
|
spendCapCents: z.number().int().nullish(),
|
|
30
|
+
/** Usage and automatic purchases counted against this UTC month's limit, in exact cents. */
|
|
31
|
+
spendLimitUsedCents: z.number().nullish(),
|
|
22
32
|
/** Additional usage priced this UTC month, in cents. */
|
|
23
33
|
spentCents: z.number(),
|
|
24
34
|
/** Priced usage not yet paid by credit or placed on an invoice, in cents; the next threshold or period invoice bills it. */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Current state of automatic prepaid credit purchases.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema BillingAutoTopUpStatus
|
|
6
|
+
* @endpoint GET /v1/billing/subscription
|
|
7
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
8
|
+
* @usedBySchema BillingAdditionalUsageSchema
|
|
9
|
+
* @contractShape billing.auto-top-up-status
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const BillingAutoTopUpStatusSchema: z.ZodEnum<{
|
|
13
|
+
AUTHENTICATION_REQUIRED: "AUTHENTICATION_REQUIRED";
|
|
14
|
+
MONTHLY_LIMIT_REACHED: "MONTHLY_LIMIT_REACHED";
|
|
15
|
+
OFF: "OFF";
|
|
16
|
+
PAYMENT_DECLINED: "PAYMENT_DECLINED";
|
|
17
|
+
PAYMENT_METHOD_REQUIRED: "PAYMENT_METHOD_REQUIRED";
|
|
18
|
+
PROCESSING: "PROCESSING";
|
|
19
|
+
READY: "READY";
|
|
20
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
21
|
+
}>;
|
|
22
|
+
export type BillingAutoTopUpStatus = z.infer<typeof BillingAutoTopUpStatusSchema>;
|
|
23
|
+
//# sourceMappingURL=auto-top-up-status.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
/**
|
|
4
|
+
* Current state of automatic prepaid credit purchases.
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema BillingAutoTopUpStatus
|
|
7
|
+
* @endpoint GET /v1/billing/subscription
|
|
8
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
9
|
+
* @usedBySchema BillingAdditionalUsageSchema
|
|
10
|
+
* @contractShape billing.auto-top-up-status
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const BillingAutoTopUpStatusSchema = z.enum([
|
|
14
|
+
"OFF",
|
|
15
|
+
"READY",
|
|
16
|
+
"PROCESSING",
|
|
17
|
+
"MONTHLY_LIMIT_REACHED",
|
|
18
|
+
"PAYMENT_METHOD_REQUIRED",
|
|
19
|
+
"PAYMENT_DECLINED",
|
|
20
|
+
"AUTHENTICATION_REQUIRED",
|
|
21
|
+
"UNAVAILABLE",
|
|
22
|
+
]);
|
|
23
|
+
//# sourceMappingURL=auto-top-up-status.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it.
|
|
3
|
+
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it. One-time purchases are outside the limit.
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema BillingCreditPurchaseCapDecision
|
|
6
6
|
* @endpoint POST /v1/billing/credit-purchases
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
/**
|
|
4
|
-
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it.
|
|
4
|
+
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it. One-time purchases are outside the limit.
|
|
5
5
|
*
|
|
6
6
|
* @openapiSchema BillingCreditPurchaseCapDecision
|
|
7
7
|
* @endpoint POST /v1/billing/credit-purchases
|
|
@@ -2,6 +2,7 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingCreditPurchaseMutationSchemaDefinition: z.ZodObject<{
|
|
3
3
|
amountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
4
|
authorizationQuote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
autoTopUpCardRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
6
|
capDecision: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
6
7
|
KEEP_CAP: "KEEP_CAP";
|
|
7
8
|
NO_CAP: "NO_CAP";
|
|
@@ -8,6 +8,8 @@ const BillingCreditPurchaseMutationSchemaDefinition = z.object({
|
|
|
8
8
|
amountCents: z.number().int().min(500).max(100000).nullish(),
|
|
9
9
|
/** Exact human authorization quotation; required for delegated API-key/OAuth purchases, preserved verbatim. */
|
|
10
10
|
authorizationQuote: z.string().max(4000).nullish(),
|
|
11
|
+
/** Displayed default card revision when a first-party session changes an active automatic top-up limit with SET_CAP. */
|
|
12
|
+
autoTopUpCardRevision: z.string().nullish(),
|
|
11
13
|
/** Explicit monthly usage cap decision; not a purchase budget. Required for delegated purchases. */
|
|
12
14
|
capDecision: BillingCreditPurchaseCapDecisionSchema.nullish(),
|
|
13
15
|
/** Credit pack to buy; its amount becomes prepaid credit. */
|
|
@@ -16,7 +18,7 @@ const BillingCreditPurchaseMutationSchemaDefinition = z.object({
|
|
|
16
18
|
purchaseMode: BillingCreditPurchaseModeSchema.default("HOSTED_CHECKOUT").optional(),
|
|
17
19
|
/** Explicitly save this hosted payment's card for future payments you authorize. Choose the billing default separately in payment settings. Defaults to false; available only for hosted Checkout and never enables assistant purchasing. */
|
|
18
20
|
savePaymentMethod: z.boolean().default(false).optional(),
|
|
19
|
-
/** Positive monthly usage cap in USD cents; supply only with SET_CAP.
|
|
21
|
+
/** Positive monthly usage cap in USD cents; supply only with SET_CAP. One-time purchases are outside this limit. */
|
|
20
22
|
spendCapCents: z.number().int().nullish(),
|
|
21
23
|
});
|
|
22
24
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingPaymentProfileSchemaDefinition: z.ZodObject<{
|
|
3
|
+
cardRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3
4
|
freeTrialEligible: z.ZodOptional<z.ZodBoolean>;
|
|
4
5
|
introductoryOfferEligible: z.ZodBoolean;
|
|
5
6
|
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { BillingPaymentMethodSchema } from "./payment-method.js";
|
|
4
4
|
const BillingPaymentProfileSchemaDefinition = z.object({
|
|
5
|
+
/** Opaque revision of the usable default card shown, for automatic top-up consent. */
|
|
6
|
+
cardRevision: z.string().nullish(),
|
|
5
7
|
/** Whether a new Stripe Checkout for a plan with freeTrialDays receives its free trial: the App Store does not bill the account and its Stripe Customer has no prior subscription, successful payment, or non-void invoice. An account without a Stripe Customer is eligible. This is Stripe history eligibility, not a guarantee of one trial across payment providers; plan changes are excluded. Absent on servers released before free-trial eligibility was introduced. */
|
|
6
8
|
freeTrialEligible: z.boolean().optional(),
|
|
7
9
|
/** Whether the caller's next purchase or upgrade to a plan with an introductoryAmount is charged that amount: true when the catalog offers introductoryAmount, the App Store does not bill the account, and either it has no earlier subscription, payment, or unvoided invoice, or it pays an active subscription on a cheaper sold plan and has never redeemed the introductory discount; false otherwise */
|
|
@@ -2,6 +2,10 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
3
3
|
additionalUsage: z.ZodType<{
|
|
4
4
|
assistantPurchaseEnabled?: boolean | undefined;
|
|
5
|
+
autoTopUpAmountCents?: number | null | undefined;
|
|
6
|
+
autoTopUpEnabled?: boolean | null | undefined;
|
|
7
|
+
autoTopUpStatus?: "AUTHENTICATION_REQUIRED" | "MONTHLY_LIMIT_REACHED" | "OFF" | "PAYMENT_DECLINED" | "PAYMENT_METHOD_REQUIRED" | "PROCESSING" | "READY" | "UNAVAILABLE" | null | undefined;
|
|
8
|
+
autoTopUpThresholdCents?: number | null | undefined;
|
|
5
9
|
availableCreditCents: number;
|
|
6
10
|
blocked: boolean;
|
|
7
11
|
enabled: boolean;
|
|
@@ -14,10 +18,15 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
14
18
|
}[];
|
|
15
19
|
resetAt: string;
|
|
16
20
|
spendCapCents?: number | null | undefined;
|
|
21
|
+
spendLimitUsedCents?: number | null | undefined;
|
|
17
22
|
spentCents: number;
|
|
18
23
|
unbilledCents: number;
|
|
19
24
|
}, import("./additional-usage.ts").BillingAdditionalUsageSchemaInput, z.core.$ZodTypeInternals<{
|
|
20
25
|
assistantPurchaseEnabled?: boolean | undefined;
|
|
26
|
+
autoTopUpAmountCents?: number | null | undefined;
|
|
27
|
+
autoTopUpEnabled?: boolean | null | undefined;
|
|
28
|
+
autoTopUpStatus?: "AUTHENTICATION_REQUIRED" | "MONTHLY_LIMIT_REACHED" | "OFF" | "PAYMENT_DECLINED" | "PAYMENT_METHOD_REQUIRED" | "PROCESSING" | "READY" | "UNAVAILABLE" | null | undefined;
|
|
29
|
+
autoTopUpThresholdCents?: number | null | undefined;
|
|
21
30
|
availableCreditCents: number;
|
|
22
31
|
blocked: boolean;
|
|
23
32
|
enabled: boolean;
|
|
@@ -30,6 +39,7 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
30
39
|
}[];
|
|
31
40
|
resetAt: string;
|
|
32
41
|
spendCapCents?: number | null | undefined;
|
|
42
|
+
spendLimitUsedCents?: number | null | undefined;
|
|
33
43
|
spentCents: number;
|
|
34
44
|
unbilledCents: number;
|
|
35
45
|
}, import("./additional-usage.ts").BillingAdditionalUsageSchemaInput>>;
|
|
@@ -117,6 +117,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
117
117
|
researchly_usage_unavailable: "researchly_usage_unavailable";
|
|
118
118
|
search_provider_error: "search_provider_error";
|
|
119
119
|
search_provider_not_configured: "search_provider_not_configured";
|
|
120
|
+
search_sign_in_required: "search_sign_in_required";
|
|
120
121
|
search_still_running: "search_still_running";
|
|
121
122
|
sec_edgar_fetch_failed: "sec_edgar_fetch_failed";
|
|
122
123
|
source_document_body_unavailable: "source_document_body_unavailable";
|
|
@@ -180,10 +180,12 @@ export const ProblemDetailSchema = z.object({
|
|
|
180
180
|
"news_similarity_embedding_unavailable",
|
|
181
181
|
/** The news page could not be read consistently; replay the request. */
|
|
182
182
|
"news_page_changed",
|
|
183
|
-
/** Web search is not configured on this API
|
|
183
|
+
/** Web search is not configured on this API; stop, retries cannot succeed. */
|
|
184
184
|
"search_provider_not_configured",
|
|
185
185
|
/** Search provider call failed. Agent action: inspect detail and source. Provider credential or credit refusals (401, 402, or 407) are terminal: restore the provider credential or credits first. TERMINAL means refused or already retried: record the outage, never resend. TRANSIENT: retry once per Retry-After. */
|
|
186
186
|
"search_provider_error",
|
|
187
|
+
/** A signed-out website search has no stored result; sign in to run it. */
|
|
188
|
+
"search_sign_in_required",
|
|
187
189
|
/** aVenture stopped waiting for a web search or profile scrape the provider is still running and holds no status URL for it; it keeps running and its result is stored. Work that has a status URL answers 202 with that Location instead. Agent action: tell the requester it is taking longer than expected, then after Retry-After retry the same request; this is not a provider failure. */
|
|
188
190
|
"search_still_running",
|
|
189
191
|
/** A lookup was accepted as a lookup job instead of answered in the request: it asked for it with Prefer: respond-async, or its live attempt ran out of time. Agent action: poll the Location status URL after Retry-After. */
|
|
@@ -89,6 +89,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
89
89
|
modulePath: "billing/additional-usage-type",
|
|
90
90
|
schemaName: "BillingAdditionalUsageTypeSchema",
|
|
91
91
|
},
|
|
92
|
+
BillingAutoTopUpStatus: {
|
|
93
|
+
modulePath: "billing/auto-top-up-status",
|
|
94
|
+
schemaName: "BillingAutoTopUpStatusSchema",
|
|
95
|
+
},
|
|
92
96
|
BillingCatalog: { modulePath: "billing/catalog", schemaName: "BillingCatalogSchema" },
|
|
93
97
|
BillingCatalogAdditionalUsage: {
|
|
94
98
|
modulePath: "billing/catalog-additional-usage",
|