@aventurevc/api-schemas 0.8.534 → 0.8.535
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-meter.d.ts +1 -1
- package/dist/billing/additional-usage-meter.js +1 -1
- package/dist/billing/additional-usage-mutation.d.ts +1 -1
- package/dist/billing/additional-usage-mutation.js +1 -1
- package/dist/billing/additional-usage.js +2 -2
- package/dist/billing/credit-pack-type.d.ts +1 -1
- package/dist/billing/credit-pack-type.js +1 -1
- package/dist/enrichment/refusal-type.d.ts +1 -1
- package/dist/enrichment/refusal-type.js +1 -1
- package/dist/http/problem-detail.d.ts +1 -0
- package/dist/http/problem-detail.js +4 -2
- package/dist/research/access-type.d.ts +1 -1
- package/dist/research/access-type.js +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ type BillingAdditionalUsageMeterDefinition = z.infer<typeof BillingAdditionalUsa
|
|
|
26
26
|
export interface BillingAdditionalUsageMeterSchemaInput extends z.input<typeof BillingAdditionalUsageMeterSchemaDefinition> {
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* One meter's
|
|
29
|
+
* One meter's Pay as You Go Usage this UTC month.
|
|
30
30
|
*
|
|
31
31
|
* @openapiSchema BillingAdditionalUsageMeter
|
|
32
32
|
* @endpoint GET /v1/billing/subscription
|
|
@@ -8,7 +8,7 @@ const BillingAdditionalUsageMeterSchemaDefinition = z.object({
|
|
|
8
8
|
type: BillingAdditionalUsageTypeSchema,
|
|
9
9
|
});
|
|
10
10
|
/**
|
|
11
|
-
* One meter's
|
|
11
|
+
* One meter's Pay as You Go Usage this UTC month.
|
|
12
12
|
*
|
|
13
13
|
* @openapiSchema BillingAdditionalUsageMeter
|
|
14
14
|
* @endpoint GET /v1/billing/subscription
|
|
@@ -17,7 +17,7 @@ type BillingAdditionalUsageMutationDefinition = z.infer<typeof BillingAdditional
|
|
|
17
17
|
export interface BillingAdditionalUsageMutationSchemaInput extends z.input<typeof BillingAdditionalUsageMutationSchemaDefinition> {
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Merge patch of
|
|
20
|
+
* Merge patch of Pay as You Go Usage settings: omission preserves a setting and null clears it. Enabling requires funding; USAGE_INVOICE also requires invoiceIncrementCents. A permission-only initial save stays disabled with PREPAID_CREDIT and provisions nothing.
|
|
21
21
|
*
|
|
22
22
|
* @openapiSchema BillingAdditionalUsageMutation
|
|
23
23
|
* @endpoint PATCH /v1/billing/additional-usage
|
|
@@ -21,7 +21,7 @@ const BillingAdditionalUsageMutationSchemaDefinition = z.object({
|
|
|
21
21
|
spendCapCents: z.number().int().nullish(),
|
|
22
22
|
});
|
|
23
23
|
/**
|
|
24
|
-
* Merge patch of
|
|
24
|
+
* Merge patch of Pay as You Go Usage settings: omission preserves a setting and null clears it. Enabling requires funding; USAGE_INVOICE also requires invoiceIncrementCents. A permission-only initial save stays disabled with PREPAID_CREDIT and provisions nothing.
|
|
25
25
|
*
|
|
26
26
|
* @openapiSchema BillingAdditionalUsageMutation
|
|
27
27
|
* @endpoint PATCH /v1/billing/additional-usage
|
|
@@ -15,7 +15,7 @@ const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
|
15
15
|
autoTopUpThresholdCents: z.number().int().nullish(),
|
|
16
16
|
/** Spendable prepaid credit after pending usage and invoice-line rounding reserves, in cents. */
|
|
17
17
|
availableCreditCents: z.number(),
|
|
18
|
-
/** True while a failed threshold invoice blocks
|
|
18
|
+
/** True while a failed threshold invoice blocks Pay as You Go Usage; paying it in Billing Portal clears the block. */
|
|
19
19
|
blocked: z.boolean(),
|
|
20
20
|
/** Whether usage past the monthly caps is recorded and billed. */
|
|
21
21
|
enabled: z.boolean(),
|
|
@@ -29,7 +29,7 @@ const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
|
29
29
|
spendCapCents: z.number().int().nullish(),
|
|
30
30
|
/** Usage and automatic purchases counted against this UTC month's limit, in exact cents. */
|
|
31
31
|
spendLimitUsedCents: z.number().nullish(),
|
|
32
|
-
/**
|
|
32
|
+
/** Pay as You Go Usage priced this UTC month, in cents. */
|
|
33
33
|
spentCents: z.number(),
|
|
34
34
|
/** Priced usage not yet paid by credit or placed on an invoice, in cents; the next threshold or period invoice bills it. */
|
|
35
35
|
unbilledCents: z.number(),
|
|
@@ -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
|
-
* Prepaid
|
|
4
|
+
* Prepaid Pay as You Go Usage credit pack.
|
|
5
5
|
*
|
|
6
6
|
* @openapiSchema BillingCreditPackType
|
|
7
7
|
* @endpoint GET /v1/billing/plans
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and
|
|
3
|
+
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and Pay as You Go Usage is off or at its spend cap or prepaid credit; AMBIGUOUS when the record's profile matches more than one current record; TURN_CAPPED when a queued run has reached its turn limit and cannot accept an edit; SUBSCRIPTION_REQUIRED when the subscription stopped covering research mid-batch, such as Pay as You Go Usage while past due. Readers accept members they do not yet know
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema EnrichmentRefusalType
|
|
6
6
|
* @endpoint POST /v1/enrichments
|
|
@@ -8,7 +8,7 @@ const EnrichmentRefusalTypeSchemaKnownMembers = z.enum([
|
|
|
8
8
|
"TURN_CAPPED",
|
|
9
9
|
]);
|
|
10
10
|
/**
|
|
11
|
-
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and
|
|
11
|
+
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and Pay as You Go Usage is off or at its spend cap or prepaid credit; AMBIGUOUS when the record's profile matches more than one current record; TURN_CAPPED when a queued run has reached its turn limit and cannot accept an edit; SUBSCRIPTION_REQUIRED when the subscription stopped covering research mid-batch, such as Pay as You Go Usage while past due. Readers accept members they do not yet know
|
|
12
12
|
*
|
|
13
13
|
* @openapiSchema EnrichmentRefusalType
|
|
14
14
|
* @endpoint POST /v1/enrichments
|
|
@@ -51,6 +51,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
51
51
|
account_exists: "account_exists";
|
|
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
|
+
billing_ai_charge_window_closed: "billing_ai_charge_window_closed";
|
|
54
55
|
billing_allowance_exhausted: "billing_allowance_exhausted";
|
|
55
56
|
billing_complimentary_term: "billing_complimentary_term";
|
|
56
57
|
billing_credit_checkout_closed: "billing_credit_checkout_closed";
|
|
@@ -58,7 +58,9 @@ export const ProblemDetailSchema = z.object({
|
|
|
58
58
|
"billing_allowance_exhausted",
|
|
59
59
|
/** A complimentary term is set; only upgrading to a paid plan changes it. */
|
|
60
60
|
"billing_complimentary_term",
|
|
61
|
-
/** The
|
|
61
|
+
/** The receipt's AI credit window has closed; read usage again and reserve. */
|
|
62
|
+
"billing_ai_charge_window_closed",
|
|
63
|
+
/** The caller's monthly allowance is spent and the next Pay as You Go 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. */
|
|
62
64
|
"billing_additional_usage_cap_reached",
|
|
63
65
|
/** 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. */
|
|
64
66
|
"billing_credit_checkout_closed",
|
|
@@ -288,7 +290,7 @@ export const ProblemDetailSchema = z.object({
|
|
|
288
290
|
"NATURAL_SEARCH",
|
|
289
291
|
/** The plan's monthly research allowance is used up. It refills at resetAt, often weeks away: stop rather than retry. */
|
|
290
292
|
"BILLING_ALLOWANCE",
|
|
291
|
-
/** The
|
|
293
|
+
/** The Pay as You Go Usage spend cap or prepaid credit is used up, counted in cents: stop rather than retry until the cap is raised or credit is added. */
|
|
292
294
|
"BILLING_ADDITIONAL_USAGE",
|
|
293
295
|
]),
|
|
294
296
|
z.string(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* What filing one more research run does now. `INCLUDED`: the plan's monthly allowance covers it. `ADDITIONAL_USAGE`: the allowance is spent or withheld, and the run is billed as
|
|
3
|
+
* What filing one more research run does now. `INCLUDED`: the plan's monthly allowance covers it. `ADDITIONAL_USAGE`: the allowance is spent or withheld, and the run is billed as Pay as You Go Usage (prepaid credit or monthly invoice). `EXHAUSTED`: the plan's allowance is spent and no Pay as You Go Usage can pay for it (off, spend cap reached, or prepaid credit below the unit price); filing answers 429. `PLAN_REQUIRED`: the plan includes no research and no Pay as You Go Usage can pay for it; filing answers 402 or 429. `BILLING_BLOCKED`: a paid plan is past due, unpaid, incomplete, or paused, or a Pay as You Go Usage invoice is unpaid; filing answers 402.
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema ResearchAccessType
|
|
6
6
|
* @endpoint GET /v1/billing/ai-credits
|
|
@@ -8,7 +8,7 @@ const ResearchAccessTypeSchemaKnownMembers = z.enum([
|
|
|
8
8
|
"BILLING_BLOCKED",
|
|
9
9
|
]);
|
|
10
10
|
/**
|
|
11
|
-
* What filing one more research run does now. `INCLUDED`: the plan's monthly allowance covers it. `ADDITIONAL_USAGE`: the allowance is spent or withheld, and the run is billed as
|
|
11
|
+
* What filing one more research run does now. `INCLUDED`: the plan's monthly allowance covers it. `ADDITIONAL_USAGE`: the allowance is spent or withheld, and the run is billed as Pay as You Go Usage (prepaid credit or monthly invoice). `EXHAUSTED`: the plan's allowance is spent and no Pay as You Go Usage can pay for it (off, spend cap reached, or prepaid credit below the unit price); filing answers 429. `PLAN_REQUIRED`: the plan includes no research and no Pay as You Go Usage can pay for it; filing answers 402 or 429. `BILLING_BLOCKED`: a paid plan is past due, unpaid, incomplete, or paused, or a Pay as You Go Usage invoice is unpaid; filing answers 402.
|
|
12
12
|
*
|
|
13
13
|
* @openapiSchema ResearchAccessType
|
|
14
14
|
* @endpoint GET /v1/billing/ai-credits
|