@bpinternal/const 0.19.0 → 0.21.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.
@@ -3,25 +3,30 @@ export declare const addons: {
3
3
  readonly conversation_sessions_addon: {
4
4
  readonly id: "conversation_sessions_addon";
5
5
  readonly name: "Add-on - Conversation Sessions";
6
- readonly description: "Adds 500 conversations sessions per month";
7
- readonly prices: Record<string, {
8
- month: {
9
- amount: number;
10
- currency: "usd";
11
- interval: "month" | "year";
12
- providerPriceId: string;
13
- metadata?: Record<string, string> | undefined;
6
+ readonly description: "Adds conversations sessions for the month";
7
+ readonly prices: {
8
+ readonly plus: {
9
+ readonly amount: 65;
10
+ readonly currency: "usd";
11
+ readonly interval: "month";
12
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
14
13
  };
15
- year?: {
16
- amount: number;
17
- currency: "usd";
18
- interval: "month" | "year";
19
- providerPriceId: string;
20
- metadata?: Record<string, string> | undefined;
21
- } | undefined;
22
- }>;
14
+ readonly team: {
15
+ readonly amount: 50;
16
+ readonly currency: "usd";
17
+ readonly interval: "month";
18
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
19
+ };
20
+ readonly enterprise: {
21
+ readonly amount: -1;
22
+ readonly currency: "usd";
23
+ readonly interval: "month";
24
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
25
+ };
26
+ };
23
27
  readonly increments: {
24
- readonly conversation_sessions: 500;
28
+ readonly conversation_sessions: 100;
29
+ readonly ai_spend: number;
25
30
  };
26
31
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
27
32
  readonly autoRechargeable: true;
@@ -31,20 +36,11 @@ export declare const addons: {
31
36
  readonly name: "Add-on - Storage";
32
37
  readonly description: "Adds table rows, vector db space and files";
33
38
  readonly prices: Record<string, {
34
- month: {
35
- amount: number;
36
- currency: "usd";
37
- interval: "month" | "year";
38
- providerPriceId: string;
39
- metadata?: Record<string, string> | undefined;
40
- };
41
- year?: {
42
- amount: number;
43
- currency: "usd";
44
- interval: "month" | "year";
45
- providerPriceId: string;
46
- metadata?: Record<string, string> | undefined;
47
- } | undefined;
39
+ amount: number;
40
+ currency: "usd";
41
+ interval: "month" | "year";
42
+ providerPriceId: string;
43
+ metadata?: Record<string, string> | undefined;
48
44
  }>;
49
45
  readonly increments: {
50
46
  readonly table_rows: 100000;
@@ -7,12 +7,10 @@ const constantMonthlyPrice = (amount, scope = ['community', 'plus', 'team', 'ent
7
7
  return scope
8
8
  .map((plan) => ({
9
9
  [plan]: {
10
- month: {
11
- amount,
12
- currency: 'usd',
13
- interval: 'month',
14
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
15
- },
10
+ amount,
11
+ currency: 'usd',
12
+ interval: 'month',
13
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
16
14
  },
17
15
  }))
18
16
  .reduce((acc, curr) => ({ ...acc, ...curr }), {});
@@ -22,9 +20,28 @@ exports.addons = {
22
20
  conversation_sessions_addon: {
23
21
  id: 'conversation_sessions_addon',
24
22
  name: 'Add-on - Conversation Sessions',
25
- description: 'Adds 500 conversations sessions per month',
26
- prices: constantMonthlyPrice(20),
27
- increments: { conversation_sessions: 500 },
23
+ description: 'Adds conversations sessions for the month',
24
+ prices: {
25
+ plus: {
26
+ amount: 65,
27
+ currency: 'usd',
28
+ interval: 'month',
29
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
30
+ },
31
+ team: {
32
+ amount: 50,
33
+ currency: 'usd',
34
+ interval: 'month',
35
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
36
+ },
37
+ enterprise: {
38
+ amount: consts_1.FREE_PRICE, //custom pricing, will be overriden
39
+ currency: 'usd',
40
+ interval: 'month',
41
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
42
+ },
43
+ },
44
+ increments: { conversation_sessions: 100, ai_spend: 10 * consts_1.NANO_DOLLAR_IN_DOLLAR },
28
45
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
29
46
  autoRechargeable: true,
30
47
  },
@@ -2,8 +2,8 @@ export type BillingPlanId = keyof typeof plans;
2
2
  export declare const plans: {
3
3
  readonly community: {
4
4
  readonly id: "community";
5
- readonly name: "Plan - Pay as you go";
6
- readonly description: "Free plan for developers";
5
+ readonly name: "Plan - Free";
6
+ readonly description: "Free plan for trying things out";
7
7
  readonly tierIndex: 0;
8
8
  readonly prices: {
9
9
  readonly month: {
@@ -14,13 +14,13 @@ export declare const plans: {
14
14
  };
15
15
  };
16
16
  readonly features: {
17
- readonly incoming_messages_events: 500;
18
- readonly integration_spend: 5000000000;
17
+ readonly incoming_messages_events: 5000000;
18
+ readonly integration_spend: number;
19
19
  readonly table_rows: 1000;
20
- readonly bot_count: 1;
20
+ readonly bot_count: 3;
21
21
  readonly collaborator_count: 1;
22
- readonly file_storage: 100000000;
23
- readonly vector_db_storage: 100000000;
22
+ readonly file_storage: number;
23
+ readonly vector_db_storage: number;
24
24
  readonly saved_versions: 3;
25
25
  readonly indexed_file_count: 1000;
26
26
  readonly conversation_sessions: 100;
@@ -34,26 +34,26 @@ export declare const plans: {
34
34
  readonly tierIndex: 1;
35
35
  readonly prices: {
36
36
  readonly month: {
37
- readonly amount: 89;
37
+ readonly amount: 189;
38
38
  readonly currency: "usd";
39
39
  readonly interval: "month";
40
40
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
41
41
  };
42
42
  readonly year: {
43
- readonly amount: 948;
43
+ readonly amount: number;
44
44
  readonly currency: "usd";
45
45
  readonly interval: "year";
46
46
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
47
47
  };
48
48
  };
49
49
  readonly features: {
50
- readonly incoming_messages_events: 5000;
51
- readonly integration_spend: 5000000000;
50
+ readonly incoming_messages_events: 5000000;
51
+ readonly integration_spend: number;
52
52
  readonly table_rows: 100000;
53
- readonly bot_count: 2;
54
- readonly collaborator_count: 2;
55
- readonly file_storage: 10000000000;
56
- readonly vector_db_storage: 1000000000;
53
+ readonly bot_count: 5000;
54
+ readonly collaborator_count: 3;
55
+ readonly file_storage: number;
56
+ readonly vector_db_storage: number;
57
57
  readonly saved_versions: 50;
58
58
  readonly indexed_file_count: 2000;
59
59
  readonly conversation_sessions: 250;
@@ -67,29 +67,29 @@ export declare const plans: {
67
67
  readonly tierIndex: 2;
68
68
  readonly prices: {
69
69
  readonly month: {
70
- readonly amount: 495;
70
+ readonly amount: 939;
71
71
  readonly currency: "usd";
72
72
  readonly interval: "month";
73
73
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
74
74
  };
75
75
  readonly year: {
76
- readonly amount: 5346;
76
+ readonly amount: number;
77
77
  readonly currency: "usd";
78
78
  readonly interval: "year";
79
79
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
80
80
  };
81
81
  };
82
82
  readonly features: {
83
- readonly incoming_messages_events: 50000;
84
- readonly integration_spend: 5000000000;
85
- readonly table_rows: 100000;
86
- readonly bot_count: 3;
87
- readonly collaborator_count: 3;
88
- readonly file_storage: 10000000000;
89
- readonly vector_db_storage: 2000000000;
83
+ readonly incoming_messages_events: 5000000;
84
+ readonly integration_spend: number;
85
+ readonly table_rows: 500000;
86
+ readonly bot_count: 5000;
87
+ readonly collaborator_count: 5000;
88
+ readonly file_storage: number;
89
+ readonly vector_db_storage: number;
90
90
  readonly saved_versions: 100;
91
- readonly indexed_file_count: 10000;
92
- readonly conversation_sessions: 1000;
91
+ readonly indexed_file_count: 5000000;
92
+ readonly conversation_sessions: 1500;
93
93
  };
94
94
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
95
95
  };
@@ -4,13 +4,13 @@ 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: 1_000_000,
8
- integration_spend: 5_000_000_000, // $5 in nano-dollars
9
- table_rows: 10000000,
10
- bot_count: 100,
7
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
8
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR, // $5 in nano-dollars
9
+ table_rows: 10_000_000,
10
+ bot_count: consts_1.SMALL_UNLIMITED,
11
11
  collaborator_count: 100,
12
- file_storage: 1000_000_000_000, // 1000 GB
13
- vector_db_storage: 500_000_000_000, // 500 GB
12
+ file_storage: 1000 * consts_1.GB, // 1000 GB
13
+ vector_db_storage: 500 * consts_1.GB, // 500 GB
14
14
  saved_versions: 1000,
15
15
  indexed_file_count: 10_000,
16
16
  conversation_sessions: 10_000,
@@ -19,8 +19,8 @@ const ENTERPRISE_PLAN_FEATURES = {
19
19
  exports.plans = {
20
20
  community: {
21
21
  id: 'community',
22
- name: 'Plan - Pay as you go',
23
- description: 'Free plan for developers',
22
+ name: 'Plan - Free',
23
+ description: 'Free plan for trying things out',
24
24
  tierIndex: 0,
25
25
  prices: {
26
26
  month: {
@@ -31,13 +31,13 @@ exports.plans = {
31
31
  },
32
32
  },
33
33
  features: {
34
- incoming_messages_events: 500,
35
- integration_spend: 5_000_000_000,
34
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
35
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR,
36
36
  table_rows: 1000,
37
- bot_count: 1,
37
+ bot_count: 3,
38
38
  collaborator_count: 1,
39
- file_storage: 100_000_000, // 100 MB
40
- vector_db_storage: 100_000_000, // 100 MB
39
+ file_storage: 100 * consts_1.MB,
40
+ vector_db_storage: 100 * consts_1.MB,
41
41
  saved_versions: 3,
42
42
  indexed_file_count: 1_000,
43
43
  conversation_sessions: 100,
@@ -51,26 +51,26 @@ exports.plans = {
51
51
  tierIndex: 1,
52
52
  prices: {
53
53
  month: {
54
- amount: 89,
54
+ amount: 189,
55
55
  currency: 'usd',
56
56
  interval: 'month',
57
57
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
58
58
  },
59
59
  year: {
60
- amount: 948,
60
+ amount: 150 * consts_1.YEAR_MONTHS,
61
61
  currency: 'usd',
62
62
  interval: 'year',
63
63
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
64
64
  },
65
65
  },
66
66
  features: {
67
- incoming_messages_events: 5_000,
68
- integration_spend: 5_000_000_000, // $5 in nano-dollars
67
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
68
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR, // $5 in nano-dollars
69
69
  table_rows: 100_000,
70
- bot_count: 2,
71
- collaborator_count: 2,
72
- file_storage: 10_000_000_000, // 10 GB
73
- vector_db_storage: 1_000_000_000, // 1 GB
70
+ bot_count: consts_1.SMALL_UNLIMITED,
71
+ collaborator_count: 3,
72
+ file_storage: 10 * consts_1.GB, // 10 GB
73
+ vector_db_storage: 1 * consts_1.GB, // 1 GB
74
74
  saved_versions: 50,
75
75
  indexed_file_count: 2_000,
76
76
  conversation_sessions: 250,
@@ -84,29 +84,29 @@ exports.plans = {
84
84
  tierIndex: 2,
85
85
  prices: {
86
86
  month: {
87
- amount: 495,
87
+ amount: 939,
88
88
  currency: 'usd',
89
89
  interval: 'month',
90
90
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
91
91
  },
92
92
  year: {
93
- amount: 5346,
93
+ amount: 750 * consts_1.YEAR_MONTHS,
94
94
  currency: 'usd',
95
95
  interval: 'year',
96
96
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
97
97
  },
98
98
  },
99
99
  features: {
100
- incoming_messages_events: 50_000,
101
- integration_spend: 5_000_000_000, // $5 in nano-dollars
102
- table_rows: 100000,
103
- bot_count: 3,
104
- collaborator_count: 3,
105
- file_storage: 10_000_000_000, // 10 GB
106
- vector_db_storage: 2_000_000_000, // 2 GB
100
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
101
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR,
102
+ table_rows: 500_000,
103
+ bot_count: consts_1.SMALL_UNLIMITED,
104
+ collaborator_count: consts_1.SMALL_UNLIMITED,
105
+ file_storage: 50 * consts_1.GB,
106
+ vector_db_storage: 5 * consts_1.GB,
107
107
  saved_versions: 100,
108
- indexed_file_count: 10_000,
109
- conversation_sessions: 1_000,
108
+ indexed_file_count: consts_1.BIG_UNLIMITED,
109
+ conversation_sessions: 1_500,
110
110
  },
111
111
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
112
112
  },