@builder.io/ai-utils 0.18.2 → 0.18.3
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/package.json +1 -1
- package/src/organization.d.ts +25 -2
package/package.json
CHANGED
package/src/organization.d.ts
CHANGED
|
@@ -181,6 +181,15 @@ export interface AiCreditsOverage {
|
|
|
181
181
|
maxAllowedAiCredits: number;
|
|
182
182
|
annualPrice: number;
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Information about AI credits that have been rolled over from previous billing periods
|
|
186
|
+
*/
|
|
187
|
+
export interface AiCreditsRolloverInfo {
|
|
188
|
+
/** Number of AI credits rolled over from the previous billing period */
|
|
189
|
+
aiCreditsRolledOver?: number;
|
|
190
|
+
/** Timestamp when the credits were rolled over in milliseconds */
|
|
191
|
+
rolloverTimestamp?: number;
|
|
192
|
+
}
|
|
184
193
|
export type PaymentError = "failed" | "unpaid" | "incomplete" | "incomplete_expired";
|
|
185
194
|
export interface CustomPlan extends SubscriptionInfo {
|
|
186
195
|
organizationId: string;
|
|
@@ -271,6 +280,13 @@ export interface FeatureMap {
|
|
|
271
280
|
performanceInfrastructure?: boolean;
|
|
272
281
|
previewPasswordProtection?: boolean;
|
|
273
282
|
publicPreviews?: boolean;
|
|
283
|
+
privacyMode?: boolean;
|
|
284
|
+
usageInsights?: boolean;
|
|
285
|
+
designSystemIntelligence?: boolean;
|
|
286
|
+
gitProviderConnections?: boolean;
|
|
287
|
+
enterpriseGitProviders?: boolean;
|
|
288
|
+
agentCreditsRollover?: boolean;
|
|
289
|
+
selfHostedGitProviders?: boolean;
|
|
274
290
|
}
|
|
275
291
|
export interface SubscriptionInfo {
|
|
276
292
|
price?: number;
|
|
@@ -281,7 +297,7 @@ export interface SubscriptionInfo {
|
|
|
281
297
|
annualPrice?: number;
|
|
282
298
|
annualDiscount?: number;
|
|
283
299
|
isAnnual?: boolean;
|
|
284
|
-
name: "free" | "development" | "basic" | "growth" | "enterprise" | "internal" | "partner" | "poc" | "legacy" | "pro";
|
|
300
|
+
name: "free" | "development" | "basic" | "growth" | "enterprise" | "internal" | "partner" | "poc" | "legacy" | "pro" | "team";
|
|
285
301
|
limits: Limits;
|
|
286
302
|
features: FeatureMap;
|
|
287
303
|
trialDays?: number;
|
|
@@ -302,13 +318,17 @@ export interface SubscriptionInfo {
|
|
|
302
318
|
useLegacyCreditsPlan?: boolean;
|
|
303
319
|
currentBillingPeriodStart?: number;
|
|
304
320
|
currentBillingPeriodEnd?: number;
|
|
321
|
+
downgradedAt?: number;
|
|
322
|
+
aiCreditsRolloverInfo?: AiCreditsRolloverInfo;
|
|
305
323
|
upcomingLimits?: {
|
|
306
|
-
effectiveDate
|
|
324
|
+
effectiveDate?: number;
|
|
307
325
|
users?: number;
|
|
308
326
|
bandwidth?: number;
|
|
309
327
|
pageviews?: number;
|
|
310
328
|
aiCredits?: number;
|
|
329
|
+
upcomingSubscription?: string;
|
|
311
330
|
};
|
|
331
|
+
subscriptionStatus?: string;
|
|
312
332
|
}
|
|
313
333
|
export type Subscription = keyof SubscriptionInfoMap;
|
|
314
334
|
export interface SubscriptionInfoMap {
|
|
@@ -361,6 +381,9 @@ export interface SubscriptionInfoMap {
|
|
|
361
381
|
"vcp:v1:enterprise": SubscriptionInfo;
|
|
362
382
|
"vcp:v2:level1": SubscriptionInfo;
|
|
363
383
|
"vcp:v2:level2": SubscriptionInfo;
|
|
384
|
+
"vcp:v3:level1": SubscriptionInfo;
|
|
385
|
+
"vcp:v3:level2": SubscriptionInfo;
|
|
386
|
+
"vcp:v3:level3": SubscriptionInfo;
|
|
364
387
|
"shopify:v1:level1": SubscriptionInfo;
|
|
365
388
|
"shopify:v1:level2": SubscriptionInfo;
|
|
366
389
|
"shopify:v2:level1": SubscriptionInfo;
|