@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.
@@ -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
- readonly human_in_the_loop: true;
112
- readonly ratelimit: 10000;
113
- readonly incoming_messages_events: 1000000;
114
- readonly integration_spend: 5000000000;
115
- readonly integration_subscription: true;
116
- readonly table_rows: 10000000;
117
- readonly bot_count: 100;
118
- readonly always_alive_count: 50;
119
- readonly always_alive_concurrency: 3;
120
- readonly collaborator_count: 100;
121
- readonly file_storage: 1000000000000;
122
- readonly vector_db_storage: 500000000000;
123
- readonly saved_versions: 1000;
124
- readonly indexed_file_count: 10000;
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
  };
@@ -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
- human_in_the_loop: true,
139
- ratelimit: 10000,
140
- incoming_messages_events: 1000000,
141
- integration_spend: 5_000_000_000, // $5 in nano-dollars
142
- integration_subscription: true,
143
- table_rows: 10000000,
144
- bot_count: 100,
145
- always_alive_count: 50,
146
- always_alive_concurrency: 3,
147
- collaborator_count: 100,
148
- file_storage: 1000_000_000_000, // 1000 GB
149
- vector_db_storage: 500_000_000_000, // 500 GB
150
- saved_versions: 1000,
151
- indexed_file_count: 10_000,
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [