@aventurevc/api-schemas 0.8.507 → 0.8.509
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/complimentary-continuation-mutation.d.ts +38 -0
- package/dist/billing/complimentary-continuation-mutation.js +19 -0
- package/dist/billing/complimentary-continuation.d.ts +39 -0
- package/dist/billing/complimentary-continuation.js +24 -0
- package/dist/billing/complimentary-usage.d.ts +18 -0
- package/dist/billing/complimentary-usage.js +18 -0
- package/dist/billing/next-charge.d.ts +30 -0
- package/dist/billing/next-charge.js +10 -0
- package/dist/billing/plan-change-mutation.d.ts +1 -0
- package/dist/billing/plan-change-mutation.js +2 -0
- package/dist/billing/plan-type.d.ts +4 -0
- package/dist/billing/plan-type.js +4 -0
- package/dist/billing/subscription.d.ts +1 -0
- package/dist/billing/subscription.js +2 -0
- package/dist/openapi-component-manifest.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingComplimentaryContinuationMutationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
complimentaryContinuationOfferRevision: z.ZodString;
|
|
4
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5
|
+
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
6
|
+
PLUS_YEARLY: "PLUS_YEARLY";
|
|
7
|
+
PRO_MONTHLY: "PRO_MONTHLY";
|
|
8
|
+
PRO_YEARLY: "PRO_YEARLY";
|
|
9
|
+
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
10
|
+
STARTUPS_MONTHLY: "STARTUPS_MONTHLY";
|
|
11
|
+
UNLIMITED_MONTHLY: "UNLIMITED_MONTHLY";
|
|
12
|
+
}>, z.ZodString]> & {
|
|
13
|
+
enum: {
|
|
14
|
+
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
15
|
+
PLUS_YEARLY: "PLUS_YEARLY";
|
|
16
|
+
PRO_MONTHLY: "PRO_MONTHLY";
|
|
17
|
+
PRO_YEARLY: "PRO_YEARLY";
|
|
18
|
+
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
19
|
+
STARTUPS_MONTHLY: "STARTUPS_MONTHLY";
|
|
20
|
+
UNLIMITED_MONTHLY: "UNLIMITED_MONTHLY";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type BillingComplimentaryContinuationMutationDefinition = z.infer<typeof BillingComplimentaryContinuationMutationSchemaDefinition>;
|
|
25
|
+
export interface BillingComplimentaryContinuationMutationSchemaInput extends z.input<typeof BillingComplimentaryContinuationMutationSchemaDefinition> {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Keep an administrator's complimentary plan on paid billing when its term ends.
|
|
29
|
+
*
|
|
30
|
+
* @openapiSchema BillingComplimentaryContinuationMutation
|
|
31
|
+
* @endpoint PUT /v1/billing/subscription/complimentary-continuation
|
|
32
|
+
* @contractShape billing.complimentary-continuation-mutation
|
|
33
|
+
* @contractRole canonical
|
|
34
|
+
*/
|
|
35
|
+
export declare const BillingComplimentaryContinuationMutationSchema: z.ZodType<BillingComplimentaryContinuationMutationDefinition, BillingComplimentaryContinuationMutationSchemaInput>;
|
|
36
|
+
export type BillingComplimentaryContinuationMutation = z.infer<typeof BillingComplimentaryContinuationMutationSchema>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=complimentary-continuation-mutation.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import { BillingPlanTypeSchema } from "./plan-type.js";
|
|
4
|
+
const BillingComplimentaryContinuationMutationSchemaDefinition = z.object({
|
|
5
|
+
/** complimentaryContinuationOfferRevision from GET /v1/billing/subscription/next-charge; a revision the offer no longer carries answers 409. */
|
|
6
|
+
complimentaryContinuationOfferRevision: z.string().regex(/^[0-9a-f]{64}$/),
|
|
7
|
+
/** Plan to bill from the end of the term: the complimentary plan itself or the same tier on its other cadence. Nothing is charged now. */
|
|
8
|
+
plan: BillingPlanTypeSchema,
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* Keep an administrator's complimentary plan on paid billing when its term ends.
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema BillingComplimentaryContinuationMutation
|
|
14
|
+
* @endpoint PUT /v1/billing/subscription/complimentary-continuation
|
|
15
|
+
* @contractShape billing.complimentary-continuation-mutation
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export const BillingComplimentaryContinuationMutationSchema = BillingComplimentaryContinuationMutationSchemaDefinition;
|
|
19
|
+
//# sourceMappingURL=complimentary-continuation-mutation.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* The account chose to keep its complimentary plan on paid billing: plan bills from continuesAt, when the complimentary term ends.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema BillingComplimentaryContinuation
|
|
6
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
7
|
+
* @endpoint PUT /v1/billing/subscription/complimentary-continuation
|
|
8
|
+
* @usedBySchema BillingNextChargeSchema
|
|
9
|
+
* @contractShape billing.complimentary-continuation
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const BillingComplimentaryContinuationSchema: z.ZodObject<{
|
|
13
|
+
continuesAt: z.ZodISODateTime;
|
|
14
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
15
|
+
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
16
|
+
PLUS_YEARLY: "PLUS_YEARLY";
|
|
17
|
+
PRO_MONTHLY: "PRO_MONTHLY";
|
|
18
|
+
PRO_YEARLY: "PRO_YEARLY";
|
|
19
|
+
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
20
|
+
STARTUPS_MONTHLY: "STARTUPS_MONTHLY";
|
|
21
|
+
UNLIMITED_MONTHLY: "UNLIMITED_MONTHLY";
|
|
22
|
+
}>, z.ZodString]> & {
|
|
23
|
+
enum: {
|
|
24
|
+
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
25
|
+
PLUS_YEARLY: "PLUS_YEARLY";
|
|
26
|
+
PRO_MONTHLY: "PRO_MONTHLY";
|
|
27
|
+
PRO_YEARLY: "PRO_YEARLY";
|
|
28
|
+
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
29
|
+
STARTUPS_MONTHLY: "STARTUPS_MONTHLY";
|
|
30
|
+
UNLIMITED_MONTHLY: "UNLIMITED_MONTHLY";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
revision: z.ZodString;
|
|
34
|
+
undoable: z.ZodBoolean;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export interface BillingComplimentaryContinuationSchemaInput extends z.input<typeof BillingComplimentaryContinuationSchema> {
|
|
37
|
+
}
|
|
38
|
+
export type BillingComplimentaryContinuation = z.infer<typeof BillingComplimentaryContinuationSchema>;
|
|
39
|
+
//# sourceMappingURL=complimentary-continuation.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import { BillingPlanTypeSchema } from "./plan-type.js";
|
|
4
|
+
/**
|
|
5
|
+
* The account chose to keep its complimentary plan on paid billing: plan bills from continuesAt, when the complimentary term ends.
|
|
6
|
+
*
|
|
7
|
+
* @openapiSchema BillingComplimentaryContinuation
|
|
8
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
9
|
+
* @endpoint PUT /v1/billing/subscription/complimentary-continuation
|
|
10
|
+
* @usedBySchema BillingNextChargeSchema
|
|
11
|
+
* @contractShape billing.complimentary-continuation
|
|
12
|
+
* @contractRole canonical
|
|
13
|
+
*/
|
|
14
|
+
export const BillingComplimentaryContinuationSchema = z.object({
|
|
15
|
+
/** When the complimentary term ends and plan starts billing */
|
|
16
|
+
continuesAt: z.iso.datetime({ offset: true }),
|
|
17
|
+
/** Plan that bills once the complimentary term ends */
|
|
18
|
+
plan: BillingPlanTypeSchema,
|
|
19
|
+
/** Send as If-Match on DELETE /v1/billing/subscription/complimentary-continuation, so an Undo withdraws only this choice and never a later one */
|
|
20
|
+
revision: z.string(),
|
|
21
|
+
/** Whether DELETE /v1/billing/subscription/complimentary-continuation can still undo the choice: false while the subscription is being moved to the paid plan and after it moved, when the plan ends like any paid plan */
|
|
22
|
+
undoable: z.boolean(),
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=complimentary-continuation.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* What the account used since its complimentary plan started.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema BillingComplimentaryUsage
|
|
6
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
7
|
+
* @usedBySchema BillingNextChargeSchema
|
|
8
|
+
* @contractShape billing.complimentary-usage
|
|
9
|
+
* @contractRole canonical
|
|
10
|
+
*/
|
|
11
|
+
export declare const BillingComplimentaryUsageSchema: z.ZodObject<{
|
|
12
|
+
profileViewCount: z.ZodInt;
|
|
13
|
+
researchRunCount: z.ZodInt;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export interface BillingComplimentaryUsageSchemaInput extends z.input<typeof BillingComplimentaryUsageSchema> {
|
|
16
|
+
}
|
|
17
|
+
export type BillingComplimentaryUsage = z.infer<typeof BillingComplimentaryUsageSchema>;
|
|
18
|
+
//# sourceMappingURL=complimentary-usage.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* What the account used since its complimentary plan started.
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema BillingComplimentaryUsage
|
|
7
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
8
|
+
* @usedBySchema BillingNextChargeSchema
|
|
9
|
+
* @contractShape billing.complimentary-usage
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export const BillingComplimentaryUsageSchema = z.object({
|
|
13
|
+
/** Distinct company and person profiles viewed or exported */
|
|
14
|
+
profileViewCount: z.int(),
|
|
15
|
+
/** Research runs filed and not released for lack of a research write */
|
|
16
|
+
researchRunCount: z.int(),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=complimentary-usage.js.map
|
|
@@ -2,7 +2,37 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingNextChargeSchemaDefinition: z.ZodObject<{
|
|
3
3
|
amountDue: z.ZodNumber;
|
|
4
4
|
chargeAt: z.ZodISODateTime;
|
|
5
|
+
complimentaryContinuation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6
|
+
continuesAt: z.ZodISODateTime;
|
|
7
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
8
|
+
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
9
|
+
PLUS_YEARLY: "PLUS_YEARLY";
|
|
10
|
+
PRO_MONTHLY: "PRO_MONTHLY";
|
|
11
|
+
PRO_YEARLY: "PRO_YEARLY";
|
|
12
|
+
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
13
|
+
STARTUPS_MONTHLY: "STARTUPS_MONTHLY";
|
|
14
|
+
UNLIMITED_MONTHLY: "UNLIMITED_MONTHLY";
|
|
15
|
+
}>, z.ZodString]> & {
|
|
16
|
+
enum: {
|
|
17
|
+
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
18
|
+
PLUS_YEARLY: "PLUS_YEARLY";
|
|
19
|
+
PRO_MONTHLY: "PRO_MONTHLY";
|
|
20
|
+
PRO_YEARLY: "PRO_YEARLY";
|
|
21
|
+
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
22
|
+
STARTUPS_MONTHLY: "STARTUPS_MONTHLY";
|
|
23
|
+
UNLIMITED_MONTHLY: "UNLIMITED_MONTHLY";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
revision: z.ZodString;
|
|
27
|
+
undoable: z.ZodBoolean;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
complimentaryContinuationOfferRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
complimentarySince: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
5
31
|
complimentaryUntil: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
32
|
+
complimentaryUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
profileViewCount: z.ZodInt;
|
|
34
|
+
researchRunCount: z.ZodInt;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
6
36
|
currency: z.ZodString;
|
|
7
37
|
discount: z.ZodArray<z.ZodType<{
|
|
8
38
|
amountOff?: number | null | undefined;
|
|
@@ -1,13 +1,23 @@
|
|
|
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
|
+
import { BillingComplimentaryContinuationSchema } from "./complimentary-continuation.js";
|
|
4
|
+
import { BillingComplimentaryUsageSchema } from "./complimentary-usage.js";
|
|
3
5
|
import { BillingDiscountSchema } from "./discount.js";
|
|
4
6
|
const BillingNextChargeSchemaDefinition = z.object({
|
|
5
7
|
/** Amount the next invoice will charge in the currency's minor unit, after discounts, credits, and usage so far; 0 when a discount covers it */
|
|
6
8
|
amountDue: z.number().int(),
|
|
7
9
|
/** When the next invoice is raised and charged. When the subscription ends before raising another invoice, this is that end and both amounts are 0. */
|
|
8
10
|
chargeAt: z.iso.datetime({ offset: true }),
|
|
11
|
+
/** The account's choice to keep its complimentary plan on paid billing; absent until it chooses, after an Undo, and once the conversion could not carry it out. Its undoable says whether DELETE /v1/billing/subscription/complimentary-continuation can still undo it. */
|
|
12
|
+
complimentaryContinuation: BillingComplimentaryContinuationSchema.nullish(),
|
|
13
|
+
/** Opaque revision to send to PUT /v1/billing/subscription/complimentary-continuation to keep this complimentary plan on paid billing when it ends, or to change the plan it continues on; present only while the account can still choose: an administrator granted the plan for a term that ends at complimentaryUntil, within the current billing period, on a plan the web sells, with no pending plan change or cancellation, and the conversion has not started. It changes whenever the subscription, plan, term end, or recorded choice changes, including an Undo. Absent for every other subscription. While it is present, POST /v1/billing/plan-changes answers 409 for a target on this plan's tier: that tier continues only through the PUT */
|
|
14
|
+
complimentaryContinuationOfferRevision: z.string().nullish(),
|
|
15
|
+
/** When the administrator's complimentary plan with a term started; absent for every other subscription */
|
|
16
|
+
complimentarySince: z.iso.datetime({ offset: true }).nullish(),
|
|
9
17
|
/** When the free stretch ends: the end of a complimentary plan granted for a term, or the first renewal that coupons no longer make free; the plan charge is 0 until then. Absent when coupons do not make the next invoice's plan charge free, or when it stays free with no end */
|
|
10
18
|
complimentaryUntil: z.iso.datetime({ offset: true }).nullish(),
|
|
19
|
+
/** What the account used since complimentarySince, present only when that usage is significant: its profile views or its research runs reach the server's configured threshold for that count */
|
|
20
|
+
complimentaryUsage: BillingComplimentaryUsageSchema.nullish(),
|
|
11
21
|
/** ISO 4217 currency code. */
|
|
12
22
|
currency: z.string(),
|
|
13
23
|
/** Discounts applied to the next invoice; empty when none apply */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingPlanChangeMutationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
pendingChangeRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3
4
|
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
4
5
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
5
6
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
@@ -3,6 +3,8 @@ import { z } from "zod/v4";
|
|
|
3
3
|
import { BillingChangeTimingTypeSchema } from "./change-timing-type.js";
|
|
4
4
|
import { BillingPlanTypeSchema } from "./plan-type.js";
|
|
5
5
|
const BillingPlanChangeMutationSchemaDefinition = z.object({
|
|
6
|
+
/** The pendingChangeRevision of the scheduled change this request undoes, sent with the current plan while a change is pending; a token that does not match the currently scheduled target plan and effective second answers 409, including when no matching schedule remains. Re-scheduling the same plan for the same second reuses the token. */
|
|
7
|
+
pendingChangeRevision: z.string().nullish(),
|
|
6
8
|
/** AI Plus or AI Pro plan to move to; the current plan cancels a scheduled change */
|
|
7
9
|
plan: BillingPlanTypeSchema,
|
|
8
10
|
/** Unix epoch-second timestamp from an immediate-change preview that pins its prorated amount on confirmation; omit it for period-end changes or without a preview */
|
|
@@ -5,12 +5,16 @@ import { z } from "zod/v4";
|
|
|
5
5
|
* @openapiSchema BillingPlanType
|
|
6
6
|
* @endpoint GET /v1/billing/plans
|
|
7
7
|
* @endpoint GET /v1/billing/subscription
|
|
8
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
8
9
|
* @endpoint POST /v1/billing/checkout-sessions
|
|
9
10
|
* @endpoint POST /v1/billing/plan-change-previews
|
|
10
11
|
* @endpoint POST /v1/billing/plan-changes
|
|
12
|
+
* @endpoint PUT /v1/billing/subscription/complimentary-continuation
|
|
11
13
|
* @usedBySchema BillingCatalogPlanSchema
|
|
12
14
|
* @usedBySchema BillingCheckoutMutationSchema
|
|
13
15
|
* @usedBySchema BillingCheckoutSchema
|
|
16
|
+
* @usedBySchema BillingComplimentaryContinuationMutationSchema
|
|
17
|
+
* @usedBySchema BillingComplimentaryContinuationSchema
|
|
14
18
|
* @usedBySchema BillingPlanChangeMutationSchema
|
|
15
19
|
* @usedBySchema BillingPlanChangeSchema
|
|
16
20
|
* @usedBySchema BillingSubscriptionSchema
|
|
@@ -15,12 +15,16 @@ const BillingPlanTypeSchemaKnownMembers = z.enum([
|
|
|
15
15
|
* @openapiSchema BillingPlanType
|
|
16
16
|
* @endpoint GET /v1/billing/plans
|
|
17
17
|
* @endpoint GET /v1/billing/subscription
|
|
18
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
18
19
|
* @endpoint POST /v1/billing/checkout-sessions
|
|
19
20
|
* @endpoint POST /v1/billing/plan-change-previews
|
|
20
21
|
* @endpoint POST /v1/billing/plan-changes
|
|
22
|
+
* @endpoint PUT /v1/billing/subscription/complimentary-continuation
|
|
21
23
|
* @usedBySchema BillingCatalogPlanSchema
|
|
22
24
|
* @usedBySchema BillingCheckoutMutationSchema
|
|
23
25
|
* @usedBySchema BillingCheckoutSchema
|
|
26
|
+
* @usedBySchema BillingComplimentaryContinuationMutationSchema
|
|
27
|
+
* @usedBySchema BillingComplimentaryContinuationSchema
|
|
24
28
|
* @usedBySchema BillingPlanChangeMutationSchema
|
|
25
29
|
* @usedBySchema BillingPlanChangeSchema
|
|
26
30
|
* @usedBySchema BillingSubscriptionSchema
|
|
@@ -181,6 +181,7 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
181
181
|
creditPurchasable: z.ZodBoolean;
|
|
182
182
|
entitled: z.ZodBoolean;
|
|
183
183
|
originalStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
184
|
+
pendingChangeRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
185
|
pendingPlan: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
185
186
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
186
187
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
@@ -19,6 +19,8 @@ const BillingSubscriptionSchemaDefinition = z.object({
|
|
|
19
19
|
entitled: z.boolean(),
|
|
20
20
|
/** Original start of the continuing paid subscription; absent when the provider did not supply it */
|
|
21
21
|
originalStart: z.iso.datetime({ offset: true }).nullish(),
|
|
22
|
+
/** Names the scheduled change pendingPlan and pendingPlanAt describe; send it with the current plan to undo that change. A token that does not match the currently scheduled target plan and effective second answers 409, including when no matching schedule remains; re-scheduling the same plan for the same second reuses it. Absent when nothing is scheduled. */
|
|
23
|
+
pendingChangeRevision: z.string().nullish(),
|
|
22
24
|
/** Plan a scheduled change moves the subscription to at pendingPlanAt; absent when nothing is scheduled */
|
|
23
25
|
pendingPlan: BillingPlanTypeSchema.nullish(),
|
|
24
26
|
/** When pendingPlan takes effect; absent when nothing is scheduled */
|
|
@@ -123,6 +123,18 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
123
123
|
modulePath: "billing/checkout-ui-mode",
|
|
124
124
|
schemaName: "BillingCheckoutUiModeSchema",
|
|
125
125
|
},
|
|
126
|
+
BillingComplimentaryContinuation: {
|
|
127
|
+
modulePath: "billing/complimentary-continuation",
|
|
128
|
+
schemaName: "BillingComplimentaryContinuationSchema",
|
|
129
|
+
},
|
|
130
|
+
BillingComplimentaryContinuationMutation: {
|
|
131
|
+
modulePath: "billing/complimentary-continuation-mutation",
|
|
132
|
+
schemaName: "BillingComplimentaryContinuationMutationSchema",
|
|
133
|
+
},
|
|
134
|
+
BillingComplimentaryUsage: {
|
|
135
|
+
modulePath: "billing/complimentary-usage",
|
|
136
|
+
schemaName: "BillingComplimentaryUsageSchema",
|
|
137
|
+
},
|
|
126
138
|
BillingCreditPackType: {
|
|
127
139
|
modulePath: "billing/credit-pack-type",
|
|
128
140
|
schemaName: "BillingCreditPackTypeSchema",
|