@bpinternal/const 0.22.0 → 0.23.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;
@@ -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
  },
@@ -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;
@@ -286,8 +287,6 @@ export declare const billingDefinitions: {
286
287
  };
287
288
  };
288
289
  readonly features: {
289
- readonly incoming_messages_events: 5000000;
290
- readonly integration_spend: number;
291
290
  readonly table_rows: 1000;
292
291
  readonly bot_count: 3;
293
292
  readonly collaborator_count: 1;
@@ -295,6 +294,8 @@ export declare const billingDefinitions: {
295
294
  readonly vector_db_storage: number;
296
295
  readonly saved_versions: 3;
297
296
  readonly indexed_file_count: 1000;
297
+ readonly incoming_messages_events: number;
298
+ readonly ai_spend: number;
298
299
  readonly conversation_sessions: 100;
299
300
  };
300
301
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -319,8 +320,6 @@ export declare const billingDefinitions: {
319
320
  };
320
321
  };
321
322
  readonly features: {
322
- readonly incoming_messages_events: 5000000;
323
- readonly integration_spend: number;
324
323
  readonly table_rows: 100000;
325
324
  readonly bot_count: 5000;
326
325
  readonly collaborator_count: 3;
@@ -328,6 +327,8 @@ export declare const billingDefinitions: {
328
327
  readonly vector_db_storage: number;
329
328
  readonly saved_versions: 50;
330
329
  readonly indexed_file_count: 2000;
330
+ readonly incoming_messages_events: number;
331
+ readonly ai_spend: number;
331
332
  readonly conversation_sessions: 250;
332
333
  };
333
334
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -352,8 +353,6 @@ export declare const billingDefinitions: {
352
353
  };
353
354
  };
354
355
  readonly features: {
355
- readonly incoming_messages_events: 5000000;
356
- readonly integration_spend: number;
357
356
  readonly table_rows: 500000;
358
357
  readonly bot_count: 5000;
359
358
  readonly collaborator_count: 5000;
@@ -361,6 +360,8 @@ export declare const billingDefinitions: {
361
360
  readonly vector_db_storage: number;
362
361
  readonly saved_versions: 100;
363
362
  readonly indexed_file_count: 5000000;
363
+ readonly incoming_messages_events: number;
364
+ readonly ai_spend: number;
364
365
  readonly conversation_sessions: 1500;
365
366
  };
366
367
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -379,8 +380,6 @@ export declare const billingDefinitions: {
379
380
  };
380
381
  };
381
382
  readonly features: {
382
- incoming_messages_events: number;
383
- integration_spend: number;
384
383
  table_rows: number;
385
384
  bot_count: number;
386
385
  collaborator_count: number;
@@ -388,6 +387,8 @@ export declare const billingDefinitions: {
388
387
  vector_db_storage: number;
389
388
  saved_versions: number;
390
389
  indexed_file_count: number;
390
+ incoming_messages_events: number;
391
+ ai_spend: number;
391
392
  conversation_sessions: number;
392
393
  };
393
394
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -406,8 +407,6 @@ export declare const billingDefinitions: {
406
407
  };
407
408
  };
408
409
  readonly features: {
409
- incoming_messages_events: number;
410
- integration_spend: number;
411
410
  table_rows: number;
412
411
  bot_count: number;
413
412
  collaborator_count: number;
@@ -415,6 +414,8 @@ export declare const billingDefinitions: {
415
414
  vector_db_storage: number;
416
415
  saved_versions: number;
417
416
  indexed_file_count: number;
417
+ incoming_messages_events: number;
418
+ ai_spend: number;
418
419
  conversation_sessions: number;
419
420
  };
420
421
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
@@ -448,6 +449,7 @@ export declare const billingDefinitions: {
448
449
  readonly increments: {
449
450
  readonly conversation_sessions: 100;
450
451
  readonly ai_spend: number;
452
+ readonly incoming_messages_events: number;
451
453
  };
452
454
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
453
455
  readonly autoRechargeable: true;
@@ -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.23.0",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [