@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.
- package/dist/billing-next/config/addons.d.ts +27 -31
- package/dist/billing-next/config/addons.js +26 -9
- package/dist/billing-next/config/plans.d.ts +26 -26
- package/dist/billing-next/config/plans.js +32 -32
- package/dist/billing-next/config/schemas.d.ts +112 -425
- package/dist/billing-next/config/schemas.js +2 -6
- package/dist/billing-next/config/versions.d.ts +106 -114
- package/dist/billing-next/consts.d.ts +5 -0
- package/dist/billing-next/consts.js +6 -1
- package/dist/billing-next/features.d.ts +6 -0
- package/dist/billing-next/features.js +7 -0
- package/package.json +3 -2
|
@@ -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
|
|
7
|
-
readonly prices:
|
|
8
|
-
|
|
9
|
-
amount:
|
|
10
|
-
currency: "usd";
|
|
11
|
-
interval: "month"
|
|
12
|
-
providerPriceId:
|
|
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
|
-
|
|
16
|
-
amount:
|
|
17
|
-
currency: "usd";
|
|
18
|
-
interval: "month"
|
|
19
|
-
providerPriceId:
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
26
|
-
prices:
|
|
27
|
-
|
|
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 -
|
|
6
|
-
readonly description: "Free plan for
|
|
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:
|
|
18
|
-
readonly integration_spend:
|
|
17
|
+
readonly incoming_messages_events: 5000000;
|
|
18
|
+
readonly integration_spend: number;
|
|
19
19
|
readonly table_rows: 1000;
|
|
20
|
-
readonly bot_count:
|
|
20
|
+
readonly bot_count: 3;
|
|
21
21
|
readonly collaborator_count: 1;
|
|
22
|
-
readonly file_storage:
|
|
23
|
-
readonly vector_db_storage:
|
|
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:
|
|
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:
|
|
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:
|
|
51
|
-
readonly integration_spend:
|
|
50
|
+
readonly incoming_messages_events: 5000000;
|
|
51
|
+
readonly integration_spend: number;
|
|
52
52
|
readonly table_rows: 100000;
|
|
53
|
-
readonly bot_count:
|
|
54
|
-
readonly collaborator_count:
|
|
55
|
-
readonly file_storage:
|
|
56
|
-
readonly vector_db_storage:
|
|
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:
|
|
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:
|
|
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:
|
|
84
|
-
readonly integration_spend:
|
|
85
|
-
readonly table_rows:
|
|
86
|
-
readonly bot_count:
|
|
87
|
-
readonly collaborator_count:
|
|
88
|
-
readonly file_storage:
|
|
89
|
-
readonly vector_db_storage:
|
|
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:
|
|
92
|
-
readonly conversation_sessions:
|
|
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:
|
|
8
|
-
integration_spend:
|
|
9
|
-
table_rows:
|
|
10
|
-
bot_count:
|
|
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:
|
|
13
|
-
vector_db_storage:
|
|
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 -
|
|
23
|
-
description: 'Free plan for
|
|
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:
|
|
35
|
-
integration_spend:
|
|
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:
|
|
37
|
+
bot_count: 3,
|
|
38
38
|
collaborator_count: 1,
|
|
39
|
-
file_storage:
|
|
40
|
-
vector_db_storage:
|
|
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:
|
|
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:
|
|
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:
|
|
68
|
-
integration_spend:
|
|
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:
|
|
71
|
-
collaborator_count:
|
|
72
|
-
file_storage:
|
|
73
|
-
vector_db_storage:
|
|
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:
|
|
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:
|
|
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:
|
|
101
|
-
integration_spend:
|
|
102
|
-
table_rows:
|
|
103
|
-
bot_count:
|
|
104
|
-
collaborator_count:
|
|
105
|
-
file_storage:
|
|
106
|
-
vector_db_storage:
|
|
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:
|
|
109
|
-
conversation_sessions:
|
|
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
|
},
|