@bpinternal/const 0.22.0 → 0.24.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.
@@ -27,6 +27,7 @@ export declare const addons: {
27
27
  readonly increments: {
28
28
  readonly conversation_sessions: 100;
29
29
  readonly ai_spend: number;
30
+ readonly incoming_messages_events: number;
30
31
  };
31
32
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
32
33
  readonly autoRechargeable: true;
@@ -35,13 +36,15 @@ export declare const addons: {
35
36
  readonly id: "storage_addon";
36
37
  readonly name: "Add-on - Storage";
37
38
  readonly description: "Adds table rows, vector db space and files";
38
- readonly prices: Record<string, {
39
- amount: number;
40
- currency: "usd";
41
- interval: "month" | "year";
42
- providerPriceId: string;
43
- metadata?: Record<string, string> | undefined;
44
- }>;
39
+ readonly prices: {
40
+ readonly [x: string]: {
41
+ amount: number;
42
+ currency: "usd";
43
+ interval: "month" | "year";
44
+ providerPriceId: string;
45
+ metadata?: Record<string, string> | undefined;
46
+ };
47
+ };
45
48
  readonly increments: {
46
49
  readonly table_rows: 100000;
47
50
  readonly vector_db_storage: number;
@@ -41,7 +41,11 @@ exports.addons = {
41
41
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
42
42
  },
43
43
  },
44
- increments: { conversation_sessions: 100, ai_spend: 10 * consts_1.NANO_DOLLAR_IN_DOLLAR },
44
+ increments: {
45
+ conversation_sessions: 100,
46
+ ai_spend: 100 * consts_1.AI_SPEND_PER_CONVERSATION,
47
+ incoming_messages_events: 100 * consts_1.MESSAGES_PER_CONVERSATION,
48
+ },
45
49
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
46
50
  autoRechargeable: true,
47
51
  },
@@ -49,7 +53,10 @@ exports.addons = {
49
53
  id: 'storage_addon',
50
54
  name: 'Add-on - Storage',
51
55
  description: 'Adds table rows, vector db space and files',
52
- prices: constantMonthlyPrice(40, ['plus', 'team', 'enterprise', 'managed']),
56
+ prices: {
57
+ ...constantMonthlyPrice(40, ['plus', 'team']),
58
+ ...constantMonthlyPrice(consts_1.FREE_PRICE, ['enterprise', 'managed']),
59
+ },
53
60
  increments: {
54
61
  table_rows: 100_000,
55
62
  vector_db_storage: 1 * consts_1.GB,
@@ -14,8 +14,6 @@ export declare const plans: {
14
14
  };
15
15
  };
16
16
  readonly features: {
17
- readonly incoming_messages_events: 5000000;
18
- readonly integration_spend: number;
19
17
  readonly table_rows: 1000;
20
18
  readonly bot_count: 3;
21
19
  readonly collaborator_count: 1;
@@ -23,6 +21,8 @@ export declare const plans: {
23
21
  readonly vector_db_storage: number;
24
22
  readonly saved_versions: 3;
25
23
  readonly indexed_file_count: 1000;
24
+ readonly incoming_messages_events: number;
25
+ readonly ai_spend: number;
26
26
  readonly conversation_sessions: 100;
27
27
  };
28
28
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -47,8 +47,6 @@ export declare const plans: {
47
47
  };
48
48
  };
49
49
  readonly features: {
50
- readonly incoming_messages_events: 5000000;
51
- readonly integration_spend: number;
52
50
  readonly table_rows: 100000;
53
51
  readonly bot_count: 5000;
54
52
  readonly collaborator_count: 3;
@@ -56,6 +54,8 @@ export declare const plans: {
56
54
  readonly vector_db_storage: number;
57
55
  readonly saved_versions: 50;
58
56
  readonly indexed_file_count: 2000;
57
+ readonly incoming_messages_events: number;
58
+ readonly ai_spend: number;
59
59
  readonly conversation_sessions: 250;
60
60
  };
61
61
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -80,8 +80,6 @@ export declare const plans: {
80
80
  };
81
81
  };
82
82
  readonly features: {
83
- readonly incoming_messages_events: 5000000;
84
- readonly integration_spend: number;
85
83
  readonly table_rows: 500000;
86
84
  readonly bot_count: 5000;
87
85
  readonly collaborator_count: 5000;
@@ -89,6 +87,8 @@ export declare const plans: {
89
87
  readonly vector_db_storage: number;
90
88
  readonly saved_versions: 100;
91
89
  readonly indexed_file_count: 5000000;
90
+ readonly incoming_messages_events: number;
91
+ readonly ai_spend: number;
92
92
  readonly conversation_sessions: 1500;
93
93
  };
94
94
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -107,8 +107,6 @@ export declare const plans: {
107
107
  };
108
108
  };
109
109
  readonly features: {
110
- incoming_messages_events: number;
111
- integration_spend: number;
112
110
  table_rows: number;
113
111
  bot_count: number;
114
112
  collaborator_count: number;
@@ -116,6 +114,8 @@ export declare const plans: {
116
114
  vector_db_storage: number;
117
115
  saved_versions: number;
118
116
  indexed_file_count: number;
117
+ incoming_messages_events: number;
118
+ ai_spend: number;
119
119
  conversation_sessions: number;
120
120
  };
121
121
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -134,8 +134,6 @@ export declare const plans: {
134
134
  };
135
135
  };
136
136
  readonly features: {
137
- incoming_messages_events: number;
138
- integration_spend: number;
139
137
  table_rows: number;
140
138
  bot_count: number;
141
139
  collaborator_count: number;
@@ -143,6 +141,8 @@ export declare const plans: {
143
141
  vector_db_storage: number;
144
142
  saved_versions: number;
145
143
  indexed_file_count: number;
144
+ incoming_messages_events: number;
145
+ ai_spend: number;
146
146
  conversation_sessions: number;
147
147
  };
148
148
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -4,15 +4,15 @@ exports.plans = void 0;
4
4
  const consts_1 = require("../consts");
5
5
  const schemas_1 = require("./schemas");
6
6
  const ENTERPRISE_PLAN_FEATURES = {
7
- incoming_messages_events: consts_1.BIG_UNLIMITED,
8
- integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR, // $5 in nano-dollars
9
7
  table_rows: 10_000_000,
10
8
  bot_count: consts_1.SMALL_UNLIMITED,
11
9
  collaborator_count: 100,
12
- file_storage: 1000 * consts_1.GB, // 1000 GB
13
- vector_db_storage: 500 * consts_1.GB, // 500 GB
10
+ file_storage: 1000 * consts_1.GB,
11
+ vector_db_storage: 500 * consts_1.GB,
14
12
  saved_versions: 1000,
15
13
  indexed_file_count: 10_000,
14
+ incoming_messages_events: 10_000 * consts_1.MESSAGES_PER_CONVERSATION,
15
+ ai_spend: 10_000 * consts_1.AI_SPEND_PER_CONVERSATION,
16
16
  conversation_sessions: 10_000,
17
17
  };
18
18
  /* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
@@ -31,8 +31,6 @@ exports.plans = {
31
31
  },
32
32
  },
33
33
  features: {
34
- incoming_messages_events: consts_1.BIG_UNLIMITED,
35
- integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR,
36
34
  table_rows: 1000,
37
35
  bot_count: 3,
38
36
  collaborator_count: 1,
@@ -40,6 +38,8 @@ exports.plans = {
40
38
  vector_db_storage: 100 * consts_1.MB,
41
39
  saved_versions: 3,
42
40
  indexed_file_count: 1_000,
41
+ incoming_messages_events: 100 * consts_1.MESSAGES_PER_CONVERSATION,
42
+ ai_spend: 100 * consts_1.AI_SPEND_PER_CONVERSATION,
43
43
  conversation_sessions: 100,
44
44
  },
45
45
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
@@ -64,15 +64,15 @@ exports.plans = {
64
64
  },
65
65
  },
66
66
  features: {
67
- incoming_messages_events: consts_1.BIG_UNLIMITED,
68
- integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR, // $5 in nano-dollars
69
67
  table_rows: 100_000,
70
68
  bot_count: consts_1.SMALL_UNLIMITED,
71
69
  collaborator_count: 3,
72
- file_storage: 10 * consts_1.GB, // 10 GB
73
- vector_db_storage: 1 * consts_1.GB, // 1 GB
70
+ file_storage: 10 * consts_1.GB,
71
+ vector_db_storage: 1 * consts_1.GB,
74
72
  saved_versions: 50,
75
73
  indexed_file_count: 2_000,
74
+ incoming_messages_events: 250 * consts_1.MESSAGES_PER_CONVERSATION,
75
+ ai_spend: 250 * consts_1.AI_SPEND_PER_CONVERSATION,
76
76
  conversation_sessions: 250,
77
77
  },
78
78
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
@@ -97,8 +97,6 @@ exports.plans = {
97
97
  },
98
98
  },
99
99
  features: {
100
- incoming_messages_events: consts_1.BIG_UNLIMITED,
101
- integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR,
102
100
  table_rows: 500_000,
103
101
  bot_count: consts_1.SMALL_UNLIMITED,
104
102
  collaborator_count: consts_1.SMALL_UNLIMITED,
@@ -106,6 +104,8 @@ exports.plans = {
106
104
  vector_db_storage: 5 * consts_1.GB,
107
105
  saved_versions: 100,
108
106
  indexed_file_count: consts_1.BIG_UNLIMITED,
107
+ incoming_messages_events: 1_500 * consts_1.MESSAGES_PER_CONVERSATION,
108
+ ai_spend: 1_500 * consts_1.AI_SPEND_PER_CONVERSATION,
109
109
  conversation_sessions: 1_500,
110
110
  },
111
111
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
@@ -19,8 +19,6 @@ export declare const billingConfig: {
19
19
  };
20
20
  };
21
21
  readonly features: {
22
- readonly incoming_messages_events: 5000000;
23
- readonly integration_spend: number;
24
22
  readonly table_rows: 1000;
25
23
  readonly bot_count: 3;
26
24
  readonly collaborator_count: 1;
@@ -28,6 +26,8 @@ export declare const billingConfig: {
28
26
  readonly vector_db_storage: number;
29
27
  readonly saved_versions: 3;
30
28
  readonly indexed_file_count: 1000;
29
+ readonly incoming_messages_events: number;
30
+ readonly ai_spend: number;
31
31
  readonly conversation_sessions: 100;
32
32
  };
33
33
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -52,8 +52,6 @@ export declare const billingConfig: {
52
52
  };
53
53
  };
54
54
  readonly features: {
55
- readonly incoming_messages_events: 5000000;
56
- readonly integration_spend: number;
57
55
  readonly table_rows: 100000;
58
56
  readonly bot_count: 5000;
59
57
  readonly collaborator_count: 3;
@@ -61,6 +59,8 @@ export declare const billingConfig: {
61
59
  readonly vector_db_storage: number;
62
60
  readonly saved_versions: 50;
63
61
  readonly indexed_file_count: 2000;
62
+ readonly incoming_messages_events: number;
63
+ readonly ai_spend: number;
64
64
  readonly conversation_sessions: 250;
65
65
  };
66
66
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -85,8 +85,6 @@ export declare const billingConfig: {
85
85
  };
86
86
  };
87
87
  readonly features: {
88
- readonly incoming_messages_events: 5000000;
89
- readonly integration_spend: number;
90
88
  readonly table_rows: 500000;
91
89
  readonly bot_count: 5000;
92
90
  readonly collaborator_count: 5000;
@@ -94,6 +92,8 @@ export declare const billingConfig: {
94
92
  readonly vector_db_storage: number;
95
93
  readonly saved_versions: 100;
96
94
  readonly indexed_file_count: 5000000;
95
+ readonly incoming_messages_events: number;
96
+ readonly ai_spend: number;
97
97
  readonly conversation_sessions: 1500;
98
98
  };
99
99
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -112,8 +112,6 @@ export declare const billingConfig: {
112
112
  };
113
113
  };
114
114
  readonly features: {
115
- incoming_messages_events: number;
116
- integration_spend: number;
117
115
  table_rows: number;
118
116
  bot_count: number;
119
117
  collaborator_count: number;
@@ -121,6 +119,8 @@ export declare const billingConfig: {
121
119
  vector_db_storage: number;
122
120
  saved_versions: number;
123
121
  indexed_file_count: number;
122
+ incoming_messages_events: number;
123
+ ai_spend: number;
124
124
  conversation_sessions: number;
125
125
  };
126
126
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -139,8 +139,6 @@ export declare const billingConfig: {
139
139
  };
140
140
  };
141
141
  readonly features: {
142
- incoming_messages_events: number;
143
- integration_spend: number;
144
142
  table_rows: number;
145
143
  bot_count: number;
146
144
  collaborator_count: number;
@@ -148,6 +146,8 @@ export declare const billingConfig: {
148
146
  vector_db_storage: number;
149
147
  saved_versions: number;
150
148
  indexed_file_count: number;
149
+ incoming_messages_events: number;
150
+ ai_spend: number;
151
151
  conversation_sessions: number;
152
152
  };
153
153
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -181,6 +181,7 @@ export declare const billingConfig: {
181
181
  readonly increments: {
182
182
  readonly conversation_sessions: 100;
183
183
  readonly ai_spend: number;
184
+ readonly incoming_messages_events: number;
184
185
  };
185
186
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
186
187
  readonly autoRechargeable: true;
@@ -189,13 +190,15 @@ export declare const billingConfig: {
189
190
  readonly id: "storage_addon";
190
191
  readonly name: "Add-on - Storage";
191
192
  readonly description: "Adds table rows, vector db space and files";
192
- readonly prices: Record<string, {
193
- amount: number;
194
- currency: "usd";
195
- interval: "month" | "year";
196
- providerPriceId: string;
197
- metadata?: Record<string, string> | undefined;
198
- }>;
193
+ readonly prices: {
194
+ readonly [x: string]: {
195
+ amount: number;
196
+ currency: "usd";
197
+ interval: "month" | "year";
198
+ providerPriceId: string;
199
+ metadata?: Record<string, string> | undefined;
200
+ };
201
+ };
199
202
  readonly increments: {
200
203
  readonly table_rows: 100000;
201
204
  readonly vector_db_storage: number;
@@ -286,8 +289,6 @@ export declare const billingDefinitions: {
286
289
  };
287
290
  };
288
291
  readonly features: {
289
- readonly incoming_messages_events: 5000000;
290
- readonly integration_spend: number;
291
292
  readonly table_rows: 1000;
292
293
  readonly bot_count: 3;
293
294
  readonly collaborator_count: 1;
@@ -295,6 +296,8 @@ export declare const billingDefinitions: {
295
296
  readonly vector_db_storage: number;
296
297
  readonly saved_versions: 3;
297
298
  readonly indexed_file_count: 1000;
299
+ readonly incoming_messages_events: number;
300
+ readonly ai_spend: number;
298
301
  readonly conversation_sessions: 100;
299
302
  };
300
303
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -319,8 +322,6 @@ export declare const billingDefinitions: {
319
322
  };
320
323
  };
321
324
  readonly features: {
322
- readonly incoming_messages_events: 5000000;
323
- readonly integration_spend: number;
324
325
  readonly table_rows: 100000;
325
326
  readonly bot_count: 5000;
326
327
  readonly collaborator_count: 3;
@@ -328,6 +329,8 @@ export declare const billingDefinitions: {
328
329
  readonly vector_db_storage: number;
329
330
  readonly saved_versions: 50;
330
331
  readonly indexed_file_count: 2000;
332
+ readonly incoming_messages_events: number;
333
+ readonly ai_spend: number;
331
334
  readonly conversation_sessions: 250;
332
335
  };
333
336
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -352,8 +355,6 @@ export declare const billingDefinitions: {
352
355
  };
353
356
  };
354
357
  readonly features: {
355
- readonly incoming_messages_events: 5000000;
356
- readonly integration_spend: number;
357
358
  readonly table_rows: 500000;
358
359
  readonly bot_count: 5000;
359
360
  readonly collaborator_count: 5000;
@@ -361,6 +362,8 @@ export declare const billingDefinitions: {
361
362
  readonly vector_db_storage: number;
362
363
  readonly saved_versions: 100;
363
364
  readonly indexed_file_count: 5000000;
365
+ readonly incoming_messages_events: number;
366
+ readonly ai_spend: number;
364
367
  readonly conversation_sessions: 1500;
365
368
  };
366
369
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -379,8 +382,6 @@ export declare const billingDefinitions: {
379
382
  };
380
383
  };
381
384
  readonly features: {
382
- incoming_messages_events: number;
383
- integration_spend: number;
384
385
  table_rows: number;
385
386
  bot_count: number;
386
387
  collaborator_count: number;
@@ -388,6 +389,8 @@ export declare const billingDefinitions: {
388
389
  vector_db_storage: number;
389
390
  saved_versions: number;
390
391
  indexed_file_count: number;
392
+ incoming_messages_events: number;
393
+ ai_spend: number;
391
394
  conversation_sessions: number;
392
395
  };
393
396
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -406,8 +409,6 @@ export declare const billingDefinitions: {
406
409
  };
407
410
  };
408
411
  readonly features: {
409
- incoming_messages_events: number;
410
- integration_spend: number;
411
412
  table_rows: number;
412
413
  bot_count: number;
413
414
  collaborator_count: number;
@@ -415,6 +416,8 @@ export declare const billingDefinitions: {
415
416
  vector_db_storage: number;
416
417
  saved_versions: number;
417
418
  indexed_file_count: number;
419
+ incoming_messages_events: number;
420
+ ai_spend: number;
418
421
  conversation_sessions: number;
419
422
  };
420
423
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -448,6 +451,7 @@ export declare const billingDefinitions: {
448
451
  readonly increments: {
449
452
  readonly conversation_sessions: 100;
450
453
  readonly ai_spend: number;
454
+ readonly incoming_messages_events: number;
451
455
  };
452
456
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
453
457
  readonly autoRechargeable: true;
@@ -456,13 +460,15 @@ export declare const billingDefinitions: {
456
460
  readonly id: "storage_addon";
457
461
  readonly name: "Add-on - Storage";
458
462
  readonly description: "Adds table rows, vector db space and files";
459
- readonly prices: Record<string, {
460
- amount: number;
461
- currency: "usd";
462
- interval: "month" | "year";
463
- providerPriceId: string;
464
- metadata?: Record<string, string> | undefined;
465
- }>;
463
+ readonly prices: {
464
+ readonly [x: string]: {
465
+ amount: number;
466
+ currency: "usd";
467
+ interval: "month" | "year";
468
+ providerPriceId: string;
469
+ metadata?: Record<string, string> | undefined;
470
+ };
471
+ };
466
472
  readonly increments: {
467
473
  readonly table_rows: 100000;
468
474
  readonly vector_db_storage: number;
@@ -7,5 +7,7 @@ export declare const GB = 1000000000;
7
7
  export declare const MB = 1000000;
8
8
  export declare const SMALL_UNLIMITED = 5000;
9
9
  export declare const BIG_UNLIMITED = 5000000;
10
- export declare const NANO_DOLLAR_IN_DOLLAR = 1000000000;
10
+ export declare const NANO_DOLLAR_PER_CENT = 10000000;
11
11
  export declare const YEAR_MONTHS = 12;
12
+ export declare const MESSAGES_PER_CONVERSATION = 30000;
13
+ export declare const AI_SPEND_PER_CONVERSATION: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.YEAR_MONTHS = exports.NANO_DOLLAR_IN_DOLLAR = exports.BIG_UNLIMITED = exports.SMALL_UNLIMITED = exports.MB = exports.GB = exports.FREE_PRICE = void 0;
3
+ exports.AI_SPEND_PER_CONVERSATION = exports.MESSAGES_PER_CONVERSATION = exports.YEAR_MONTHS = exports.NANO_DOLLAR_PER_CENT = exports.BIG_UNLIMITED = exports.SMALL_UNLIMITED = exports.MB = exports.GB = exports.FREE_PRICE = void 0;
4
4
  /**
5
5
  * Special price value indicating a free product/plan.
6
6
  * This will be converted to $0 during deployment.
@@ -10,5 +10,7 @@ exports.GB = 1_000_000_000;
10
10
  exports.MB = 1_000_000;
11
11
  exports.SMALL_UNLIMITED = 5000;
12
12
  exports.BIG_UNLIMITED = 5_000_000;
13
- exports.NANO_DOLLAR_IN_DOLLAR = 1_000_000_000;
13
+ exports.NANO_DOLLAR_PER_CENT = 10_000_000;
14
14
  exports.YEAR_MONTHS = 12;
15
+ exports.MESSAGES_PER_CONVERSATION = 30_000;
16
+ exports.AI_SPEND_PER_CONVERSATION = 10 * exports.NANO_DOLLAR_PER_CENT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [