@bpinternal/const 0.11.0 → 0.12.0
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-plans.d.ts +42 -15
- package/dist/billing-plans.js +32 -17
- package/package.json +1 -1
package/dist/billing-plans.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export declare const FREE_PRICE = -1;
|
|
6
6
|
export declare const ALLOWED_TRIAL_LENGTHS_IN_DAYS = 7;
|
|
7
7
|
export declare const ALLOWED_TRIAL_PLANS: readonly ["plus", "team"];
|
|
8
|
-
export declare const BILLING_PLAN_IDS: readonly ["community", "plus", "team", "enterprise"];
|
|
8
|
+
export declare const BILLING_PLAN_IDS: readonly ["community", "plus", "team", "enterprise", "managed"];
|
|
9
9
|
export declare const BILLING_ADDON_IDS: readonly ["bot_addon", "collaborator_addon", "always_alive_addon", "messages_events_addon", "table_rows_addon", "file_storage_addon", "vector_db_storage_addon", "web_search_addon", "ai_credits_addon", "enterprise_ai_token", "enterprise_additional_workspace"];
|
|
10
10
|
export declare const billingPlansDefs: {
|
|
11
11
|
readonly community: {
|
|
@@ -108,20 +108,47 @@ export declare const billingPlansDefs: {
|
|
|
108
108
|
readonly interval: "month";
|
|
109
109
|
}];
|
|
110
110
|
readonly features: {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
111
|
+
human_in_the_loop: boolean;
|
|
112
|
+
ratelimit: number;
|
|
113
|
+
incoming_messages_events: number;
|
|
114
|
+
integration_spend: number;
|
|
115
|
+
integration_subscription: boolean;
|
|
116
|
+
table_rows: number;
|
|
117
|
+
bot_count: number;
|
|
118
|
+
always_alive_count: number;
|
|
119
|
+
always_alive_concurrency: number;
|
|
120
|
+
collaborator_count: number;
|
|
121
|
+
file_storage: number;
|
|
122
|
+
vector_db_storage: number;
|
|
123
|
+
saved_versions: number;
|
|
124
|
+
indexed_file_count: number;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly managed: {
|
|
128
|
+
readonly id: "managed";
|
|
129
|
+
readonly name: "Plan - Managed";
|
|
130
|
+
readonly description: "Managed license subscription";
|
|
131
|
+
readonly tierIndex: 4;
|
|
132
|
+
readonly prices: [{
|
|
133
|
+
readonly price: -1;
|
|
134
|
+
readonly currency: "usd";
|
|
135
|
+
readonly interval: "month";
|
|
136
|
+
}];
|
|
137
|
+
readonly features: {
|
|
138
|
+
human_in_the_loop: boolean;
|
|
139
|
+
ratelimit: number;
|
|
140
|
+
incoming_messages_events: number;
|
|
141
|
+
integration_spend: number;
|
|
142
|
+
integration_subscription: boolean;
|
|
143
|
+
table_rows: number;
|
|
144
|
+
bot_count: number;
|
|
145
|
+
always_alive_count: number;
|
|
146
|
+
always_alive_concurrency: number;
|
|
147
|
+
collaborator_count: number;
|
|
148
|
+
file_storage: number;
|
|
149
|
+
vector_db_storage: number;
|
|
150
|
+
saved_versions: number;
|
|
151
|
+
indexed_file_count: number;
|
|
125
152
|
};
|
|
126
153
|
};
|
|
127
154
|
};
|
package/dist/billing-plans.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.FREE_PRICE = -1;
|
|
|
9
9
|
exports.ALLOWED_TRIAL_LENGTHS_IN_DAYS = 7;
|
|
10
10
|
exports.ALLOWED_TRIAL_PLANS = ['plus', 'team'];
|
|
11
11
|
// keep this in order of lowest to highest tier
|
|
12
|
-
exports.BILLING_PLAN_IDS = ['community', 'plus', 'team', 'enterprise'];
|
|
12
|
+
exports.BILLING_PLAN_IDS = ['community', 'plus', 'team', 'enterprise', 'managed'];
|
|
13
13
|
exports.BILLING_ADDON_IDS = [
|
|
14
14
|
'bot_addon',
|
|
15
15
|
'collaborator_addon',
|
|
@@ -23,6 +23,22 @@ exports.BILLING_ADDON_IDS = [
|
|
|
23
23
|
'enterprise_ai_token',
|
|
24
24
|
'enterprise_additional_workspace',
|
|
25
25
|
];
|
|
26
|
+
const ENTERPRISE_PLAN_FEATURES = {
|
|
27
|
+
human_in_the_loop: true,
|
|
28
|
+
ratelimit: 10000,
|
|
29
|
+
incoming_messages_events: 1000000,
|
|
30
|
+
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
31
|
+
integration_subscription: true,
|
|
32
|
+
table_rows: 10000000,
|
|
33
|
+
bot_count: 100,
|
|
34
|
+
always_alive_count: 50,
|
|
35
|
+
always_alive_concurrency: 3,
|
|
36
|
+
collaborator_count: 100,
|
|
37
|
+
file_storage: 1000_000_000_000, // 1000 GB
|
|
38
|
+
vector_db_storage: 500_000_000_000, // 500 GB
|
|
39
|
+
saved_versions: 1000,
|
|
40
|
+
indexed_file_count: 10_000,
|
|
41
|
+
};
|
|
26
42
|
/* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
|
|
27
43
|
exports.billingPlansDefs = {
|
|
28
44
|
community: {
|
|
@@ -134,21 +150,20 @@ exports.billingPlansDefs = {
|
|
|
134
150
|
interval: 'month',
|
|
135
151
|
},
|
|
136
152
|
],
|
|
137
|
-
features:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
+
features: ENTERPRISE_PLAN_FEATURES,
|
|
154
|
+
},
|
|
155
|
+
managed: {
|
|
156
|
+
id: 'managed',
|
|
157
|
+
name: 'Plan - Managed',
|
|
158
|
+
description: 'Managed license subscription',
|
|
159
|
+
tierIndex: 4,
|
|
160
|
+
prices: [
|
|
161
|
+
{
|
|
162
|
+
price: exports.FREE_PRICE, // Custom pricing
|
|
163
|
+
currency: 'usd',
|
|
164
|
+
interval: 'month',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
features: ENTERPRISE_PLAN_FEATURES,
|
|
153
168
|
},
|
|
154
169
|
};
|