autumn-js 1.2.32 → 1.2.34
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/backend/adapters/express.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +13482 -7722
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +13482 -7722
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +13482 -7722
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +13482 -7722
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +13482 -7722
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{authTypes-Bx2brfr_.d.mts → authTypes-DEBvnrRj.d.mts} +20 -1
- package/dist/backend/{authTypes-Bx2brfr_.d.ts → authTypes-DEBvnrRj.d.ts} +20 -1
- package/dist/backend/{chunk-UYURZ75E.mjs → chunk-4LKEHLXR.mjs} +704 -41
- package/dist/backend/{chunk-W7MG3LB3.mjs → chunk-7MRAUIPE.mjs} +1 -1
- package/dist/backend/{chunk-7MPQ5TCH.mjs → chunk-DDRD5BKK.mjs} +2 -2
- package/dist/backend/{chunk-Z7WSDAEZ.mjs → chunk-EQJ5B7OA.mjs} +13165 -8068
- package/dist/backend/{chunk-AYS6GLVO.mjs → chunk-HMGGMVFC.mjs} +1 -1
- package/dist/backend/{chunk-5QIIBIZY.mjs → chunk-KXRDZE5L.mjs} +2 -2
- package/dist/backend/{chunk-MXD3NPQK.mjs → chunk-SA6MCT5X.mjs} +1 -1
- package/dist/backend/{chunk-NSAJNDTG.mjs → chunk-WCZLA72P.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +13482 -7722
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +13482 -7722
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +13482 -7722
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +13482 -7722
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +704 -41
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +704 -41
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +13482 -7722
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-DmFnGvb2.d.mts → routeTypes-Bb3L3YJy.d.mts} +14646 -7926
- package/dist/backend/{routeTypes-ChCnBnee.d.ts → routeTypes-BhZ9UovL.d.ts} +14646 -7926
- package/dist/better-auth/{chunk-JBU3OM2O.mjs → chunk-4VW7A2HS.mjs} +13166 -8069
- package/dist/better-auth/{chunk-ZQA6B5RX.mjs → chunk-B2PHHBLY.mjs} +704 -41
- package/dist/better-auth/{chunk-56VTK4JS.mjs → chunk-D3DYQ36C.mjs} +1 -1
- package/dist/better-auth/index.js +13888 -8128
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +20 -1
- package/dist/better-auth/types.d.ts +20 -1
- package/dist/better-auth/utils/createAutumnEndpoint.js +704 -41
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +13482 -7722
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +13888 -8128
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -3
- package/dist/react/AutumnContext.d.ts +4 -3
- package/dist/react/AutumnProvider.js +678 -497
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-3CXPC6AS.mjs → chunk-6KIRT7EK.mjs} +1 -1
- package/dist/react/{chunk-PVCGOFQF.mjs → chunk-AAPQJY55.mjs} +1 -1
- package/dist/react/{chunk-N2L457YE.mjs → chunk-DDMHYLY3.mjs} +1 -1
- package/dist/react/{chunk-X7BHGQHX.mjs → chunk-ERN74FDW.mjs} +1 -1
- package/dist/react/{chunk-P23GII4V.mjs → chunk-FU6VEECB.mjs} +428 -235
- package/dist/react/{chunk-C4DMB2FQ.mjs → chunk-JH5BXBEU.mjs} +1 -1
- package/dist/react/{chunk-4TB3RHNC.mjs → chunk-M3L6EE7I.mjs} +1 -1
- package/dist/react/{chunk-Q3SFYOOM.mjs → chunk-VJDFB54U.mjs} +2 -2
- package/dist/react/{chunk-ZLGDHFMS.mjs → chunk-YZ23DM7M.mjs} +1 -1
- package/dist/react/client/AutumnClient.d.mts +4 -3
- package/dist/react/client/AutumnClient.d.ts +4 -3
- package/dist/react/client/IAutumnClient.d.mts +4 -471
- package/dist/react/client/IAutumnClient.d.ts +4 -471
- package/dist/react/client/index.d.mts +4 -3
- package/dist/react/client/index.d.ts +4 -3
- package/dist/react/{customer-B9DcViyn.d.mts → customer-Djhe48ql.d.ts} +24 -5
- package/dist/react/{customer-DbS31iZc.d.ts → customer-IVcJjz9u.d.mts} +24 -5
- package/dist/react/hooks/index.d.mts +4 -3
- package/dist/react/hooks/index.d.ts +4 -3
- package/dist/react/hooks/index.js +292 -193
- package/dist/react/hooks/index.mjs +8 -8
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -3
- package/dist/react/hooks/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +17 -17
- package/dist/react/hooks/useAggregateEvents.d.ts +17 -17
- package/dist/react/hooks/useAggregateEvents.js +292 -193
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useCustomer.js +292 -193
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useEntity.js +292 -193
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +17 -17
- package/dist/react/hooks/useListEvents.d.ts +17 -17
- package/dist/react/hooks/useListEvents.js +292 -193
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +5 -4
- package/dist/react/hooks/useListPlans.d.ts +5 -4
- package/dist/react/hooks/useListPlans.js +292 -193
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/hooks/useReferrals.js +292 -193
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +4 -3
- package/dist/react/index.d.ts +4 -3
- package/dist/react/index.js +1586 -1393
- package/dist/react/index.mjs +9 -9
- package/dist/react/list-plans-op-ByqRxdNR.d.mts +1224 -0
- package/dist/react/list-plans-op-D-K2LRZV.d.ts +1224 -0
- package/dist/react/{params-B8-s4Q1n.d.ts → params-CFhvUVCf.d.ts} +1605 -199
- package/dist/react/{params-BquS51Ut.d.mts → params-D3ra6In7.d.mts} +1605 -199
- package/dist/react/plan-DOxbvjQY.d.mts +1496 -0
- package/dist/react/plan-DOxbvjQY.d.ts +1496 -0
- package/dist/sdk/index.d.mts +19588 -11175
- package/dist/sdk/index.d.ts +19588 -11175
- package/dist/sdk/index.js +19103 -11652
- package/dist/sdk/index.mjs +18149 -11528
- package/package.json +1 -1
- package/dist/react/plan-BKltGb1S.d.mts +0 -743
- package/dist/react/plan-BKltGb1S.d.ts +0 -743
|
@@ -1,743 +0,0 @@
|
|
|
1
|
-
declare const __brand: unique symbol;
|
|
2
|
-
type Unrecognized<T> = T & {
|
|
3
|
-
[__brand]: "unrecognized";
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
type ClosedEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T];
|
|
7
|
-
type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
11
|
-
*/
|
|
12
|
-
declare const BalanceType: {
|
|
13
|
-
readonly Boolean: "boolean";
|
|
14
|
-
readonly Metered: "metered";
|
|
15
|
-
readonly CreditSystem: "credit_system";
|
|
16
|
-
readonly AiCreditSystem: "ai_credit_system";
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
20
|
-
*/
|
|
21
|
-
type BalanceType = OpenEnum<typeof BalanceType>;
|
|
22
|
-
type BalanceCreditSchema = {
|
|
23
|
-
/**
|
|
24
|
-
* ID of the metered feature that draws from this credit system.
|
|
25
|
-
*/
|
|
26
|
-
meteredFeatureId: string;
|
|
27
|
-
/**
|
|
28
|
-
* Credits consumed per unit of the metered feature.
|
|
29
|
-
*/
|
|
30
|
-
creditCost: number;
|
|
31
|
-
};
|
|
32
|
-
type BalanceModelMarkups = {
|
|
33
|
-
markup?: number | undefined;
|
|
34
|
-
inputCost?: number | undefined;
|
|
35
|
-
outputCost?: number | undefined;
|
|
36
|
-
};
|
|
37
|
-
type BalanceProviderMarkups = {
|
|
38
|
-
markup: number;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Display names for the feature in billing UI and customer-facing components.
|
|
42
|
-
*/
|
|
43
|
-
type BalanceDisplay = {
|
|
44
|
-
/**
|
|
45
|
-
* Singular form for UI display (e.g., 'API call', 'seat').
|
|
46
|
-
*/
|
|
47
|
-
singular?: string | null | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Plural form for UI display (e.g., 'API calls', 'seats').
|
|
50
|
-
*/
|
|
51
|
-
plural?: string | null | undefined;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* The full feature object if expanded.
|
|
55
|
-
*/
|
|
56
|
-
type BalanceFeature = {
|
|
57
|
-
/**
|
|
58
|
-
* The unique identifier for this feature, used in /check and /track calls.
|
|
59
|
-
*/
|
|
60
|
-
id: string;
|
|
61
|
-
/**
|
|
62
|
-
* Human-readable name displayed in the dashboard and billing UI.
|
|
63
|
-
*/
|
|
64
|
-
name: string;
|
|
65
|
-
/**
|
|
66
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
67
|
-
*/
|
|
68
|
-
type: BalanceType;
|
|
69
|
-
/**
|
|
70
|
-
* For metered features: true if usage resets periodically (API calls, credits), false if allocated persistently (seats, storage).
|
|
71
|
-
*/
|
|
72
|
-
consumable: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Event names that trigger this feature's balance. Allows multiple features to respond to a single event.
|
|
75
|
-
*/
|
|
76
|
-
eventNames?: Array<string> | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* For credit_system features: maps metered features to their credit costs.
|
|
79
|
-
*/
|
|
80
|
-
creditSchema?: Array<BalanceCreditSchema> | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Per-model markup overrides for AI credit systems.
|
|
83
|
-
*/
|
|
84
|
-
modelMarkups?: {
|
|
85
|
-
[k: string]: BalanceModelMarkups;
|
|
86
|
-
} | null | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* Default percentage markup for AI credit systems. Use -100 to make usage free.
|
|
89
|
-
*/
|
|
90
|
-
defaultMarkup?: number | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Per-provider default markup percentages for AI credit systems.
|
|
93
|
-
*/
|
|
94
|
-
providerMarkups?: {
|
|
95
|
-
[k: string]: BalanceProviderMarkups;
|
|
96
|
-
} | null | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Display names for the feature in billing UI and customer-facing components.
|
|
99
|
-
*/
|
|
100
|
-
display?: BalanceDisplay | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* Whether the feature is archived and hidden from the dashboard.
|
|
103
|
-
*/
|
|
104
|
-
archived: boolean;
|
|
105
|
-
};
|
|
106
|
-
declare const BalanceIntervalEnum: {
|
|
107
|
-
readonly OneOff: "one_off";
|
|
108
|
-
readonly Minute: "minute";
|
|
109
|
-
readonly Hour: "hour";
|
|
110
|
-
readonly Day: "day";
|
|
111
|
-
readonly Week: "week";
|
|
112
|
-
readonly Month: "month";
|
|
113
|
-
readonly Quarter: "quarter";
|
|
114
|
-
readonly SemiAnnual: "semi_annual";
|
|
115
|
-
readonly Year: "year";
|
|
116
|
-
};
|
|
117
|
-
type BalanceIntervalEnum = OpenEnum<typeof BalanceIntervalEnum>;
|
|
118
|
-
type BalanceReset = {
|
|
119
|
-
/**
|
|
120
|
-
* The reset interval (hour, day, week, month, etc.) or 'multiple' if combined from different intervals.
|
|
121
|
-
*/
|
|
122
|
-
interval: BalanceIntervalEnum | string;
|
|
123
|
-
/**
|
|
124
|
-
* Number of intervals between resets (eg. 2 for bi-monthly).
|
|
125
|
-
*/
|
|
126
|
-
intervalCount?: number | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* Timestamp when the balance will next reset.
|
|
129
|
-
*/
|
|
130
|
-
resetsAt: number | null;
|
|
131
|
-
};
|
|
132
|
-
type BalanceTier = {
|
|
133
|
-
to: number | string;
|
|
134
|
-
amount: number;
|
|
135
|
-
flatAmount?: number | undefined;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* How tiers are applied: graduated (split across bands) or volume (flat rate for the matched tier).
|
|
139
|
-
*/
|
|
140
|
-
declare const BalanceTierBehavior: {
|
|
141
|
-
readonly Graduated: "graduated";
|
|
142
|
-
readonly Volume: "volume";
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* How tiers are applied: graduated (split across bands) or volume (flat rate for the matched tier).
|
|
146
|
-
*/
|
|
147
|
-
type BalanceTierBehavior = OpenEnum<typeof BalanceTierBehavior>;
|
|
148
|
-
/**
|
|
149
|
-
* Whether usage is prepaid or billed pay-per-use.
|
|
150
|
-
*/
|
|
151
|
-
declare const BalanceBillingMethod: {
|
|
152
|
-
readonly Prepaid: "prepaid";
|
|
153
|
-
readonly UsageBased: "usage_based";
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Whether usage is prepaid or billed pay-per-use.
|
|
157
|
-
*/
|
|
158
|
-
type BalanceBillingMethod = OpenEnum<typeof BalanceBillingMethod>;
|
|
159
|
-
type BalancePrice = {
|
|
160
|
-
/**
|
|
161
|
-
* The per-unit price amount.
|
|
162
|
-
*/
|
|
163
|
-
amount?: number | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Tiered pricing configuration if applicable.
|
|
166
|
-
*/
|
|
167
|
-
tiers?: Array<BalanceTier> | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* How tiers are applied: graduated (split across bands) or volume (flat rate for the matched tier).
|
|
170
|
-
*/
|
|
171
|
-
tierBehavior?: BalanceTierBehavior | undefined;
|
|
172
|
-
/**
|
|
173
|
-
* The number of units per billing increment (eg. $9 / 250 units).
|
|
174
|
-
*/
|
|
175
|
-
billingUnits: number;
|
|
176
|
-
/**
|
|
177
|
-
* Whether usage is prepaid or billed pay-per-use.
|
|
178
|
-
*/
|
|
179
|
-
billingMethod: BalanceBillingMethod;
|
|
180
|
-
/**
|
|
181
|
-
* Maximum quantity that can be purchased, or null for unlimited.
|
|
182
|
-
*/
|
|
183
|
-
maxPurchase: number | null;
|
|
184
|
-
};
|
|
185
|
-
type Breakdown = {
|
|
186
|
-
/**
|
|
187
|
-
* The unique identifier for this balance breakdown.
|
|
188
|
-
*/
|
|
189
|
-
id: string;
|
|
190
|
-
/**
|
|
191
|
-
* The plan ID this balance originates from, or null for standalone balances.
|
|
192
|
-
*/
|
|
193
|
-
planId: string | null;
|
|
194
|
-
/**
|
|
195
|
-
* Amount granted from the plan's included usage.
|
|
196
|
-
*/
|
|
197
|
-
includedGrant: number;
|
|
198
|
-
/**
|
|
199
|
-
* Amount granted from prepaid purchases or top-ups.
|
|
200
|
-
*/
|
|
201
|
-
prepaidGrant: number;
|
|
202
|
-
/**
|
|
203
|
-
* Remaining balance available for use.
|
|
204
|
-
*/
|
|
205
|
-
remaining: number;
|
|
206
|
-
/**
|
|
207
|
-
* Amount consumed in the current period.
|
|
208
|
-
*/
|
|
209
|
-
usage: number;
|
|
210
|
-
/**
|
|
211
|
-
* Whether this balance has unlimited usage.
|
|
212
|
-
*/
|
|
213
|
-
unlimited: boolean;
|
|
214
|
-
/**
|
|
215
|
-
* Reset configuration for this balance, or null if no reset.
|
|
216
|
-
*/
|
|
217
|
-
reset: BalanceReset | null;
|
|
218
|
-
/**
|
|
219
|
-
* Pricing configuration if this balance has usage-based pricing.
|
|
220
|
-
*/
|
|
221
|
-
price: BalancePrice | null;
|
|
222
|
-
/**
|
|
223
|
-
* Timestamp when this balance expires, or null for no expiration.
|
|
224
|
-
*/
|
|
225
|
-
expiresAt: number | null;
|
|
226
|
-
};
|
|
227
|
-
type BalanceRollover = {
|
|
228
|
-
/**
|
|
229
|
-
* Amount of balance rolled over from a previous period.
|
|
230
|
-
*/
|
|
231
|
-
balance: number;
|
|
232
|
-
/**
|
|
233
|
-
* Timestamp when the rollover balance expires.
|
|
234
|
-
*/
|
|
235
|
-
expiresAt: number;
|
|
236
|
-
};
|
|
237
|
-
type Balance = {
|
|
238
|
-
/**
|
|
239
|
-
* The feature ID this balance is for.
|
|
240
|
-
*/
|
|
241
|
-
featureId: string;
|
|
242
|
-
/**
|
|
243
|
-
* The full feature object if expanded.
|
|
244
|
-
*/
|
|
245
|
-
feature?: BalanceFeature | undefined;
|
|
246
|
-
/**
|
|
247
|
-
* Total balance granted (included + prepaid).
|
|
248
|
-
*/
|
|
249
|
-
granted: number;
|
|
250
|
-
/**
|
|
251
|
-
* Remaining balance available for use.
|
|
252
|
-
*/
|
|
253
|
-
remaining: number;
|
|
254
|
-
/**
|
|
255
|
-
* Total usage consumed in the current period.
|
|
256
|
-
*/
|
|
257
|
-
usage: number;
|
|
258
|
-
/**
|
|
259
|
-
* Whether this feature has unlimited usage.
|
|
260
|
-
*/
|
|
261
|
-
unlimited: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* Whether usage beyond the granted balance is allowed (with overage charges).
|
|
264
|
-
*/
|
|
265
|
-
overageAllowed: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Maximum quantity that can be purchased as a top-up, or null for unlimited.
|
|
268
|
-
*/
|
|
269
|
-
maxPurchase: number | null;
|
|
270
|
-
/**
|
|
271
|
-
* Timestamp when the balance will reset, or null for no reset.
|
|
272
|
-
*/
|
|
273
|
-
nextResetAt: number | null;
|
|
274
|
-
/**
|
|
275
|
-
* Detailed breakdown of balance sources when stacking multiple plans or grants.
|
|
276
|
-
*/
|
|
277
|
-
breakdown?: Array<Breakdown> | undefined;
|
|
278
|
-
/**
|
|
279
|
-
* Rollover balances carried over from previous periods.
|
|
280
|
-
*/
|
|
281
|
-
rollovers?: Array<BalanceRollover> | undefined;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Billing interval (e.g. 'month', 'year').
|
|
286
|
-
*/
|
|
287
|
-
declare const PlanPriceInterval: {
|
|
288
|
-
readonly OneOff: "one_off";
|
|
289
|
-
readonly Week: "week";
|
|
290
|
-
readonly Month: "month";
|
|
291
|
-
readonly Quarter: "quarter";
|
|
292
|
-
readonly SemiAnnual: "semi_annual";
|
|
293
|
-
readonly Year: "year";
|
|
294
|
-
};
|
|
295
|
-
/**
|
|
296
|
-
* Billing interval (e.g. 'month', 'year').
|
|
297
|
-
*/
|
|
298
|
-
type PlanPriceInterval = OpenEnum<typeof PlanPriceInterval>;
|
|
299
|
-
/**
|
|
300
|
-
* Display text for showing this price in pricing pages.
|
|
301
|
-
*/
|
|
302
|
-
type PlanPriceDisplay = {
|
|
303
|
-
/**
|
|
304
|
-
* Main display text (e.g. '$10' or '100 messages').
|
|
305
|
-
*/
|
|
306
|
-
primaryText: string;
|
|
307
|
-
/**
|
|
308
|
-
* Secondary display text (e.g. 'per month' or 'then $0.5 per 100').
|
|
309
|
-
*/
|
|
310
|
-
secondaryText?: string | undefined;
|
|
311
|
-
};
|
|
312
|
-
type PlanPrice = {
|
|
313
|
-
/**
|
|
314
|
-
* Base price amount for the plan.
|
|
315
|
-
*/
|
|
316
|
-
amount: number;
|
|
317
|
-
/**
|
|
318
|
-
* Billing interval (e.g. 'month', 'year').
|
|
319
|
-
*/
|
|
320
|
-
interval: PlanPriceInterval;
|
|
321
|
-
/**
|
|
322
|
-
* Number of intervals per billing cycle. Defaults to 1.
|
|
323
|
-
*/
|
|
324
|
-
intervalCount?: number | undefined;
|
|
325
|
-
/**
|
|
326
|
-
* Display text for showing this price in pricing pages.
|
|
327
|
-
*/
|
|
328
|
-
display?: PlanPriceDisplay | undefined;
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* The type of the feature
|
|
332
|
-
*/
|
|
333
|
-
declare const PlanType: {
|
|
334
|
-
readonly Static: "static";
|
|
335
|
-
readonly Boolean: "boolean";
|
|
336
|
-
readonly SingleUse: "single_use";
|
|
337
|
-
readonly ContinuousUse: "continuous_use";
|
|
338
|
-
readonly CreditSystem: "credit_system";
|
|
339
|
-
readonly AiCreditSystem: "ai_credit_system";
|
|
340
|
-
};
|
|
341
|
-
/**
|
|
342
|
-
* The type of the feature
|
|
343
|
-
*/
|
|
344
|
-
type PlanType = OpenEnum<typeof PlanType>;
|
|
345
|
-
type PlanFeatureDisplay = {
|
|
346
|
-
/**
|
|
347
|
-
* The singular display name for the feature.
|
|
348
|
-
*/
|
|
349
|
-
singular: string;
|
|
350
|
-
/**
|
|
351
|
-
* The plural display name for the feature.
|
|
352
|
-
*/
|
|
353
|
-
plural: string;
|
|
354
|
-
};
|
|
355
|
-
type PlanCreditSchema = {
|
|
356
|
-
/**
|
|
357
|
-
* The ID of the metered feature (should be a single_use feature).
|
|
358
|
-
*/
|
|
359
|
-
meteredFeatureId: string;
|
|
360
|
-
/**
|
|
361
|
-
* The credit cost of the metered feature.
|
|
362
|
-
*/
|
|
363
|
-
creditCost: number;
|
|
364
|
-
};
|
|
365
|
-
/**
|
|
366
|
-
* The full feature object if expanded.
|
|
367
|
-
*/
|
|
368
|
-
type PlanFeature = {
|
|
369
|
-
/**
|
|
370
|
-
* The ID of the feature, used to refer to it in other API calls like /track or /check.
|
|
371
|
-
*/
|
|
372
|
-
id: string;
|
|
373
|
-
/**
|
|
374
|
-
* The name of the feature.
|
|
375
|
-
*/
|
|
376
|
-
name?: string | null | undefined;
|
|
377
|
-
/**
|
|
378
|
-
* The type of the feature
|
|
379
|
-
*/
|
|
380
|
-
type: PlanType;
|
|
381
|
-
/**
|
|
382
|
-
* Singular and plural display names for the feature.
|
|
383
|
-
*/
|
|
384
|
-
display?: PlanFeatureDisplay | null | undefined;
|
|
385
|
-
/**
|
|
386
|
-
* Credit cost schema for credit system features.
|
|
387
|
-
*/
|
|
388
|
-
creditSchema?: Array<PlanCreditSchema> | null | undefined;
|
|
389
|
-
/**
|
|
390
|
-
* Whether or not the feature is archived.
|
|
391
|
-
*/
|
|
392
|
-
archived?: boolean | null | undefined;
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* The interval at which the feature balance resets (e.g. 'month', 'year'). For consumable features, usage resets to 0 and included units are restored.
|
|
396
|
-
*/
|
|
397
|
-
declare const PlanResetInterval: {
|
|
398
|
-
readonly OneOff: "one_off";
|
|
399
|
-
readonly Minute: "minute";
|
|
400
|
-
readonly Hour: "hour";
|
|
401
|
-
readonly Day: "day";
|
|
402
|
-
readonly Week: "week";
|
|
403
|
-
readonly Month: "month";
|
|
404
|
-
readonly Quarter: "quarter";
|
|
405
|
-
readonly SemiAnnual: "semi_annual";
|
|
406
|
-
readonly Year: "year";
|
|
407
|
-
};
|
|
408
|
-
/**
|
|
409
|
-
* The interval at which the feature balance resets (e.g. 'month', 'year'). For consumable features, usage resets to 0 and included units are restored.
|
|
410
|
-
*/
|
|
411
|
-
type PlanResetInterval = OpenEnum<typeof PlanResetInterval>;
|
|
412
|
-
type PlanReset = {
|
|
413
|
-
/**
|
|
414
|
-
* The interval at which the feature balance resets (e.g. 'month', 'year'). For consumable features, usage resets to 0 and included units are restored.
|
|
415
|
-
*/
|
|
416
|
-
interval: PlanResetInterval;
|
|
417
|
-
/**
|
|
418
|
-
* Number of intervals between resets. Defaults to 1.
|
|
419
|
-
*/
|
|
420
|
-
intervalCount?: number | undefined;
|
|
421
|
-
};
|
|
422
|
-
type PlanTier = {
|
|
423
|
-
to: number | string;
|
|
424
|
-
amount: number;
|
|
425
|
-
flatAmount?: number | undefined;
|
|
426
|
-
};
|
|
427
|
-
declare const PlanTierBehavior: {
|
|
428
|
-
readonly Graduated: "graduated";
|
|
429
|
-
readonly Volume: "volume";
|
|
430
|
-
};
|
|
431
|
-
type PlanTierBehavior = OpenEnum<typeof PlanTierBehavior>;
|
|
432
|
-
/**
|
|
433
|
-
* Billing interval for this price. For consumable features, should match reset.interval.
|
|
434
|
-
*/
|
|
435
|
-
declare const PlanPriceItemInterval: {
|
|
436
|
-
readonly OneOff: "one_off";
|
|
437
|
-
readonly Week: "week";
|
|
438
|
-
readonly Month: "month";
|
|
439
|
-
readonly Quarter: "quarter";
|
|
440
|
-
readonly SemiAnnual: "semi_annual";
|
|
441
|
-
readonly Year: "year";
|
|
442
|
-
};
|
|
443
|
-
/**
|
|
444
|
-
* Billing interval for this price. For consumable features, should match reset.interval.
|
|
445
|
-
*/
|
|
446
|
-
type PlanPriceItemInterval = OpenEnum<typeof PlanPriceItemInterval>;
|
|
447
|
-
/**
|
|
448
|
-
* 'prepaid' for features like seats where customers pay upfront, 'usage_based' for pay-as-you-go after included usage.
|
|
449
|
-
*/
|
|
450
|
-
declare const PlanBillingMethod: {
|
|
451
|
-
readonly Prepaid: "prepaid";
|
|
452
|
-
readonly UsageBased: "usage_based";
|
|
453
|
-
};
|
|
454
|
-
/**
|
|
455
|
-
* 'prepaid' for features like seats where customers pay upfront, 'usage_based' for pay-as-you-go after included usage.
|
|
456
|
-
*/
|
|
457
|
-
type PlanBillingMethod = OpenEnum<typeof PlanBillingMethod>;
|
|
458
|
-
type PlanItemPrice = {
|
|
459
|
-
/**
|
|
460
|
-
* Price per billing_units after included usage is consumed. Mutually exclusive with tiers.
|
|
461
|
-
*/
|
|
462
|
-
amount?: number | undefined;
|
|
463
|
-
/**
|
|
464
|
-
* Tiered pricing configuration. Each tier's 'to' INCLUDES the included amount. Either 'tiers' or 'amount' is required.
|
|
465
|
-
*/
|
|
466
|
-
tiers?: Array<PlanTier> | undefined;
|
|
467
|
-
tierBehavior?: PlanTierBehavior | undefined;
|
|
468
|
-
/**
|
|
469
|
-
* Billing interval for this price. For consumable features, should match reset.interval.
|
|
470
|
-
*/
|
|
471
|
-
interval: PlanPriceItemInterval;
|
|
472
|
-
/**
|
|
473
|
-
* Number of intervals per billing cycle. Defaults to 1.
|
|
474
|
-
*/
|
|
475
|
-
intervalCount?: number | undefined;
|
|
476
|
-
/**
|
|
477
|
-
* Number of units per price increment. Usage is rounded UP to the nearest billing_units when billed (e.g. billing_units=100 means 101 usage rounds to 200).
|
|
478
|
-
*/
|
|
479
|
-
billingUnits: number;
|
|
480
|
-
/**
|
|
481
|
-
* 'prepaid' for features like seats where customers pay upfront, 'usage_based' for pay-as-you-go after included usage.
|
|
482
|
-
*/
|
|
483
|
-
billingMethod: PlanBillingMethod;
|
|
484
|
-
/**
|
|
485
|
-
* Maximum units a customer can purchase beyond included. E.g. if included=100 and max_purchase=300, customer can use up to 400 total before usage is capped. Null for no limit.
|
|
486
|
-
*/
|
|
487
|
-
maxPurchase: number | null;
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* Display text for showing this item in pricing pages.
|
|
491
|
-
*/
|
|
492
|
-
type PlanItemDisplay = {
|
|
493
|
-
/**
|
|
494
|
-
* Main display text (e.g. '$10' or '100 messages').
|
|
495
|
-
*/
|
|
496
|
-
primaryText: string;
|
|
497
|
-
/**
|
|
498
|
-
* Secondary display text (e.g. 'per month' or 'then $0.5 per 100').
|
|
499
|
-
*/
|
|
500
|
-
secondaryText?: string | undefined;
|
|
501
|
-
};
|
|
502
|
-
/**
|
|
503
|
-
* When rolled over units expire.
|
|
504
|
-
*/
|
|
505
|
-
declare const ExpiryDurationType: {
|
|
506
|
-
readonly Month: "month";
|
|
507
|
-
readonly Forever: "forever";
|
|
508
|
-
};
|
|
509
|
-
/**
|
|
510
|
-
* When rolled over units expire.
|
|
511
|
-
*/
|
|
512
|
-
type ExpiryDurationType = OpenEnum<typeof ExpiryDurationType>;
|
|
513
|
-
/**
|
|
514
|
-
* Rollover configuration for unused units. If set, unused included units roll over to the next period.
|
|
515
|
-
*/
|
|
516
|
-
type PlanRollover = {
|
|
517
|
-
/**
|
|
518
|
-
* Maximum rollover units. Null for unlimited rollover.
|
|
519
|
-
*/
|
|
520
|
-
max: number | null;
|
|
521
|
-
/**
|
|
522
|
-
* Maximum rollover as a percentage (0-100) of included + prepaid grant. Mutually exclusive with max.
|
|
523
|
-
*/
|
|
524
|
-
maxPercentage?: number | null | undefined;
|
|
525
|
-
/**
|
|
526
|
-
* When rolled over units expire.
|
|
527
|
-
*/
|
|
528
|
-
expiryDurationType: ExpiryDurationType;
|
|
529
|
-
/**
|
|
530
|
-
* Number of periods before expiry.
|
|
531
|
-
*/
|
|
532
|
-
expiryDurationLength?: number | undefined;
|
|
533
|
-
};
|
|
534
|
-
type Item = {
|
|
535
|
-
/**
|
|
536
|
-
* The ID of the feature this item configures.
|
|
537
|
-
*/
|
|
538
|
-
featureId: string;
|
|
539
|
-
/**
|
|
540
|
-
* The full feature object if expanded.
|
|
541
|
-
*/
|
|
542
|
-
feature?: PlanFeature | undefined;
|
|
543
|
-
/**
|
|
544
|
-
* Number of free units included. For consumable features, balance resets to this number each interval.
|
|
545
|
-
*/
|
|
546
|
-
included: number;
|
|
547
|
-
/**
|
|
548
|
-
* Whether the customer has unlimited access to this feature.
|
|
549
|
-
*/
|
|
550
|
-
unlimited: boolean;
|
|
551
|
-
/**
|
|
552
|
-
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
553
|
-
*/
|
|
554
|
-
reset: PlanReset | null;
|
|
555
|
-
/**
|
|
556
|
-
* Pricing configuration for usage beyond included units. Null if feature is entirely free.
|
|
557
|
-
*/
|
|
558
|
-
price: PlanItemPrice | null;
|
|
559
|
-
/**
|
|
560
|
-
* Display text for showing this item in pricing pages.
|
|
561
|
-
*/
|
|
562
|
-
display?: PlanItemDisplay | undefined;
|
|
563
|
-
/**
|
|
564
|
-
* Rollover configuration for unused units. If set, unused included units roll over to the next period.
|
|
565
|
-
*/
|
|
566
|
-
rollover?: PlanRollover | undefined;
|
|
567
|
-
};
|
|
568
|
-
/**
|
|
569
|
-
* Unit of time for the trial duration ('day', 'month', 'year').
|
|
570
|
-
*/
|
|
571
|
-
declare const PlanDurationType: {
|
|
572
|
-
readonly Day: "day";
|
|
573
|
-
readonly Month: "month";
|
|
574
|
-
readonly Year: "year";
|
|
575
|
-
};
|
|
576
|
-
/**
|
|
577
|
-
* Unit of time for the trial duration ('day', 'month', 'year').
|
|
578
|
-
*/
|
|
579
|
-
type PlanDurationType = OpenEnum<typeof PlanDurationType>;
|
|
580
|
-
declare const OnEnd: {
|
|
581
|
-
readonly Bill: "bill";
|
|
582
|
-
readonly Revert: "revert";
|
|
583
|
-
};
|
|
584
|
-
type OnEnd = OpenEnum<typeof OnEnd>;
|
|
585
|
-
/**
|
|
586
|
-
* Free trial configuration. If set, new customers can try this plan before being charged.
|
|
587
|
-
*/
|
|
588
|
-
type FreeTrial = {
|
|
589
|
-
/**
|
|
590
|
-
* Number of duration_type periods the trial lasts.
|
|
591
|
-
*/
|
|
592
|
-
durationLength: number;
|
|
593
|
-
/**
|
|
594
|
-
* Unit of time for the trial duration ('day', 'month', 'year').
|
|
595
|
-
*/
|
|
596
|
-
durationType: PlanDurationType;
|
|
597
|
-
/**
|
|
598
|
-
* Whether a payment method is required to start the trial. If true, customer will be charged after trial ends.
|
|
599
|
-
*/
|
|
600
|
-
cardRequired: boolean;
|
|
601
|
-
/**
|
|
602
|
-
* Behavior when the trial ends. 'bill' charges the customer (default). 'revert' expires the trial and restores the customer's previous plan.
|
|
603
|
-
*/
|
|
604
|
-
onEnd?: OnEnd | null | undefined;
|
|
605
|
-
};
|
|
606
|
-
/**
|
|
607
|
-
* Environment this plan belongs to ('sandbox' or 'live').
|
|
608
|
-
*/
|
|
609
|
-
declare const PlanEnv: {
|
|
610
|
-
readonly Sandbox: "sandbox";
|
|
611
|
-
readonly Live: "live";
|
|
612
|
-
};
|
|
613
|
-
/**
|
|
614
|
-
* Environment this plan belongs to ('sandbox' or 'live').
|
|
615
|
-
*/
|
|
616
|
-
type PlanEnv = OpenEnum<typeof PlanEnv>;
|
|
617
|
-
/**
|
|
618
|
-
* Miscellaneous plan-level configuration flags.
|
|
619
|
-
*/
|
|
620
|
-
type PlanConfig = {
|
|
621
|
-
/**
|
|
622
|
-
* If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
|
|
623
|
-
*/
|
|
624
|
-
ignorePastDue: boolean;
|
|
625
|
-
};
|
|
626
|
-
/**
|
|
627
|
-
* The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
|
|
628
|
-
*/
|
|
629
|
-
declare const PlanStatus: {
|
|
630
|
-
readonly Active: "active";
|
|
631
|
-
readonly Scheduled: "scheduled";
|
|
632
|
-
};
|
|
633
|
-
/**
|
|
634
|
-
* The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
|
|
635
|
-
*/
|
|
636
|
-
type PlanStatus = OpenEnum<typeof PlanStatus>;
|
|
637
|
-
/**
|
|
638
|
-
* The action that would occur if this plan were attached to the customer.
|
|
639
|
-
*/
|
|
640
|
-
declare const AttachAction: {
|
|
641
|
-
readonly Activate: "activate";
|
|
642
|
-
readonly Upgrade: "upgrade";
|
|
643
|
-
readonly Downgrade: "downgrade";
|
|
644
|
-
readonly None: "none";
|
|
645
|
-
readonly Purchase: "purchase";
|
|
646
|
-
};
|
|
647
|
-
/**
|
|
648
|
-
* The action that would occur if this plan were attached to the customer.
|
|
649
|
-
*/
|
|
650
|
-
type AttachAction = OpenEnum<typeof AttachAction>;
|
|
651
|
-
type CustomerEligibility = {
|
|
652
|
-
/**
|
|
653
|
-
* Whether the trial on this plan is available to this customer. For example, if the customer used the trial in the past, this will be false.
|
|
654
|
-
*/
|
|
655
|
-
trialAvailable?: boolean | undefined;
|
|
656
|
-
/**
|
|
657
|
-
* The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
|
|
658
|
-
*/
|
|
659
|
-
status?: PlanStatus | undefined;
|
|
660
|
-
/**
|
|
661
|
-
* Whether the customer's active instance of this plan is set to cancel.
|
|
662
|
-
*/
|
|
663
|
-
canceling?: boolean | undefined;
|
|
664
|
-
/**
|
|
665
|
-
* Whether the customer is currently on a free trial of this plan.
|
|
666
|
-
*/
|
|
667
|
-
trialing?: boolean | undefined;
|
|
668
|
-
/**
|
|
669
|
-
* The action that would occur if this plan were attached to the customer.
|
|
670
|
-
*/
|
|
671
|
-
attachAction: AttachAction;
|
|
672
|
-
};
|
|
673
|
-
type Plan = {
|
|
674
|
-
/**
|
|
675
|
-
* Unique identifier for the plan.
|
|
676
|
-
*/
|
|
677
|
-
id: string;
|
|
678
|
-
/**
|
|
679
|
-
* Display name of the plan.
|
|
680
|
-
*/
|
|
681
|
-
name: string;
|
|
682
|
-
/**
|
|
683
|
-
* Optional description of the plan.
|
|
684
|
-
*/
|
|
685
|
-
description: string | null;
|
|
686
|
-
/**
|
|
687
|
-
* Group identifier for organizing related plans. Plans in the same group are mutually exclusive.
|
|
688
|
-
*/
|
|
689
|
-
group: string | null;
|
|
690
|
-
/**
|
|
691
|
-
* Version number of the plan. Incremented when plan configuration changes.
|
|
692
|
-
*/
|
|
693
|
-
version: number;
|
|
694
|
-
/**
|
|
695
|
-
* Whether this is an add-on plan that can be attached alongside a main plan.
|
|
696
|
-
*/
|
|
697
|
-
addOn: boolean;
|
|
698
|
-
/**
|
|
699
|
-
* If true, this plan is automatically attached when a customer is created. Used for free plans.
|
|
700
|
-
*/
|
|
701
|
-
autoEnable: boolean;
|
|
702
|
-
/**
|
|
703
|
-
* Base recurring price for the plan. Null for free plans or usage-only plans.
|
|
704
|
-
*/
|
|
705
|
-
price: PlanPrice | null;
|
|
706
|
-
/**
|
|
707
|
-
* Feature configurations included in this plan. Each item defines included units, pricing, and reset behavior for a feature.
|
|
708
|
-
*/
|
|
709
|
-
items: Array<Item>;
|
|
710
|
-
/**
|
|
711
|
-
* Free trial configuration. If set, new customers can try this plan before being charged.
|
|
712
|
-
*/
|
|
713
|
-
freeTrial?: FreeTrial | undefined;
|
|
714
|
-
/**
|
|
715
|
-
* Unix timestamp (ms) when the plan was created.
|
|
716
|
-
*/
|
|
717
|
-
createdAt: number;
|
|
718
|
-
/**
|
|
719
|
-
* Environment this plan belongs to ('sandbox' or 'live').
|
|
720
|
-
*/
|
|
721
|
-
env: PlanEnv;
|
|
722
|
-
/**
|
|
723
|
-
* Whether the plan is archived. Archived plans cannot be attached to new customers.
|
|
724
|
-
*/
|
|
725
|
-
archived: boolean;
|
|
726
|
-
/**
|
|
727
|
-
* If this is a variant, the ID of the base plan it was created from.
|
|
728
|
-
*/
|
|
729
|
-
baseVariantId: string | null;
|
|
730
|
-
/**
|
|
731
|
-
* Miscellaneous plan-level configuration flags.
|
|
732
|
-
*/
|
|
733
|
-
config: PlanConfig;
|
|
734
|
-
/**
|
|
735
|
-
* Arbitrary key-value metadata defined by you for your own use. Shared across all versions of the plan.
|
|
736
|
-
*/
|
|
737
|
-
metadata: {
|
|
738
|
-
[k: string]: any;
|
|
739
|
-
};
|
|
740
|
-
customerEligibility?: CustomerEligibility | undefined;
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
export type { BalanceFeature as B, ClosedEnum as C, OpenEnum as O, Plan as P, Balance as a };
|