@bpinternal/const 0.11.0 → 0.13.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-legacy/consts.d.ts +9 -0
- package/dist/billing-legacy/consts.js +53 -0
- package/dist/billing-legacy/index.d.ts +2 -0
- package/dist/billing-legacy/index.js +18 -0
- package/dist/billing-next/config/addons.d.ts +181 -0
- package/dist/{billing-addons.js → billing-next/config/addons.js} +70 -47
- package/dist/billing-next/config/index.d.ts +5 -0
- package/dist/billing-next/config/index.js +18 -0
- package/dist/{billing-meters.d.ts → billing-next/config/meters.d.ts} +22 -12
- package/dist/{billing-meters.js → billing-next/config/meters.js} +15 -9
- package/dist/billing-next/config/plans.d.ts +170 -0
- package/dist/{billing-plans.js → billing-next/config/plans.js} +66 -59
- package/dist/{schema.d.ts → billing-next/config/schemas.d.ts} +392 -196
- package/dist/{schema.js → billing-next/config/schemas.js} +19 -12
- package/dist/billing-next/config/versions.d.ts +829 -0
- package/dist/billing-next/config/versions.js +27 -0
- package/dist/billing-next/consts.d.ts +5 -0
- package/dist/billing-next/consts.js +8 -0
- package/dist/billing-next/features.d.ts +125 -0
- package/dist/billing-next/features.js +127 -0
- package/dist/billing-next/index.d.ts +3 -0
- package/dist/billing-next/index.js +19 -0
- package/dist/billing-next/type-utils.d.ts +4 -0
- package/dist/{types.js → billing-next/type-utils.js} +1 -0
- package/dist/index.d.ts +2 -9
- package/dist/index.js +2 -10
- package/package.json +1 -1
- package/dist/billing-addons.d.ts +0 -136
- package/dist/billing-features.d.ts +0 -94
- package/dist/billing-features.js +0 -132
- package/dist/billing-plans.d.ts +0 -127
- package/dist/billing-versions.d.ts +0 -10
- package/dist/billing-versions.js +0 -37
- package/dist/types.d.ts +0 -82
- package/dist/usage-metadata.d.ts +0 -22
- package/dist/usage-metadata.js +0 -138
- /package/dist/{quotas.d.ts → billing-legacy/quotas.d.ts} +0 -0
- /package/dist/{quotas.js → billing-legacy/quotas.js} +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export type BillingPlanId = keyof typeof plans;
|
|
2
|
+
export declare const plans: {
|
|
3
|
+
readonly community: {
|
|
4
|
+
readonly id: "community";
|
|
5
|
+
readonly name: "Plan - Pay as you go";
|
|
6
|
+
readonly description: "Free plan for developers";
|
|
7
|
+
readonly tierIndex: 0;
|
|
8
|
+
readonly prices: {
|
|
9
|
+
readonly month: {
|
|
10
|
+
readonly amount: -1;
|
|
11
|
+
readonly currency: "usd";
|
|
12
|
+
readonly interval: "month";
|
|
13
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly features: {
|
|
17
|
+
readonly human_in_the_loop: false;
|
|
18
|
+
readonly ratelimit: 100;
|
|
19
|
+
readonly incoming_messages_events: 500;
|
|
20
|
+
readonly integration_spend: 0;
|
|
21
|
+
readonly integration_subscription: false;
|
|
22
|
+
readonly table_rows: 1000;
|
|
23
|
+
readonly bot_count: 1;
|
|
24
|
+
readonly always_alive_count: 0;
|
|
25
|
+
readonly always_alive_concurrency: 1;
|
|
26
|
+
readonly collaborator_count: 1;
|
|
27
|
+
readonly file_storage: 100000000;
|
|
28
|
+
readonly vector_db_storage: 100000000;
|
|
29
|
+
readonly saved_versions: 3;
|
|
30
|
+
readonly indexed_file_count: 1000;
|
|
31
|
+
};
|
|
32
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
33
|
+
};
|
|
34
|
+
readonly plus: {
|
|
35
|
+
readonly id: "plus";
|
|
36
|
+
readonly name: "Plan - Plus";
|
|
37
|
+
readonly description: "For growing businesses";
|
|
38
|
+
readonly tierIndex: 1;
|
|
39
|
+
readonly prices: {
|
|
40
|
+
readonly month: {
|
|
41
|
+
readonly amount: 89;
|
|
42
|
+
readonly currency: "usd";
|
|
43
|
+
readonly interval: "month";
|
|
44
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
45
|
+
};
|
|
46
|
+
readonly year: {
|
|
47
|
+
readonly amount: 948;
|
|
48
|
+
readonly currency: "usd";
|
|
49
|
+
readonly interval: "year";
|
|
50
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly features: {
|
|
54
|
+
readonly human_in_the_loop: true;
|
|
55
|
+
readonly ratelimit: 100;
|
|
56
|
+
readonly incoming_messages_events: 5000;
|
|
57
|
+
readonly integration_spend: 5000000000;
|
|
58
|
+
readonly integration_subscription: true;
|
|
59
|
+
readonly table_rows: 100000;
|
|
60
|
+
readonly bot_count: 2;
|
|
61
|
+
readonly always_alive_count: 1;
|
|
62
|
+
readonly always_alive_concurrency: 1;
|
|
63
|
+
readonly collaborator_count: 2;
|
|
64
|
+
readonly file_storage: 10000000000;
|
|
65
|
+
readonly vector_db_storage: 1000000000;
|
|
66
|
+
readonly saved_versions: 50;
|
|
67
|
+
readonly indexed_file_count: 2000;
|
|
68
|
+
};
|
|
69
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
70
|
+
};
|
|
71
|
+
readonly team: {
|
|
72
|
+
readonly id: "team";
|
|
73
|
+
readonly name: "Plan - Team";
|
|
74
|
+
readonly description: "For small teams";
|
|
75
|
+
readonly tierIndex: 2;
|
|
76
|
+
readonly prices: {
|
|
77
|
+
readonly month: {
|
|
78
|
+
readonly amount: 495;
|
|
79
|
+
readonly currency: "usd";
|
|
80
|
+
readonly interval: "month";
|
|
81
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
82
|
+
};
|
|
83
|
+
readonly year: {
|
|
84
|
+
readonly amount: 5346;
|
|
85
|
+
readonly currency: "usd";
|
|
86
|
+
readonly interval: "year";
|
|
87
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly features: {
|
|
91
|
+
readonly human_in_the_loop: true;
|
|
92
|
+
readonly ratelimit: 1000;
|
|
93
|
+
readonly incoming_messages_events: 50000;
|
|
94
|
+
readonly integration_spend: 5000000000;
|
|
95
|
+
readonly integration_subscription: true;
|
|
96
|
+
readonly table_rows: 100000;
|
|
97
|
+
readonly bot_count: 3;
|
|
98
|
+
readonly always_alive_count: 3;
|
|
99
|
+
readonly always_alive_concurrency: 3;
|
|
100
|
+
readonly collaborator_count: 3;
|
|
101
|
+
readonly file_storage: 10000000000;
|
|
102
|
+
readonly vector_db_storage: 2000000000;
|
|
103
|
+
readonly saved_versions: 100;
|
|
104
|
+
readonly indexed_file_count: 10000;
|
|
105
|
+
};
|
|
106
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
107
|
+
};
|
|
108
|
+
readonly enterprise: {
|
|
109
|
+
readonly id: "enterprise";
|
|
110
|
+
readonly name: "Plan - Enterprise";
|
|
111
|
+
readonly description: "Enterprise license subscription";
|
|
112
|
+
readonly tierIndex: 3;
|
|
113
|
+
readonly prices: {
|
|
114
|
+
readonly month: {
|
|
115
|
+
readonly amount: -1;
|
|
116
|
+
readonly currency: "usd";
|
|
117
|
+
readonly interval: "month";
|
|
118
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
readonly features: {
|
|
122
|
+
human_in_the_loop: boolean;
|
|
123
|
+
ratelimit: number;
|
|
124
|
+
incoming_messages_events: number;
|
|
125
|
+
integration_spend: number;
|
|
126
|
+
integration_subscription: boolean;
|
|
127
|
+
table_rows: number;
|
|
128
|
+
bot_count: number;
|
|
129
|
+
always_alive_count: number;
|
|
130
|
+
always_alive_concurrency: number;
|
|
131
|
+
collaborator_count: number;
|
|
132
|
+
file_storage: number;
|
|
133
|
+
vector_db_storage: number;
|
|
134
|
+
saved_versions: number;
|
|
135
|
+
indexed_file_count: number;
|
|
136
|
+
};
|
|
137
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
138
|
+
};
|
|
139
|
+
readonly managed: {
|
|
140
|
+
readonly id: "managed";
|
|
141
|
+
readonly name: "Plan - Managed";
|
|
142
|
+
readonly description: "Managed license subscription";
|
|
143
|
+
readonly tierIndex: 4;
|
|
144
|
+
readonly prices: {
|
|
145
|
+
readonly month: {
|
|
146
|
+
readonly amount: -1;
|
|
147
|
+
readonly currency: "usd";
|
|
148
|
+
readonly interval: "month";
|
|
149
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
readonly features: {
|
|
153
|
+
human_in_the_loop: boolean;
|
|
154
|
+
ratelimit: number;
|
|
155
|
+
incoming_messages_events: number;
|
|
156
|
+
integration_spend: number;
|
|
157
|
+
integration_subscription: boolean;
|
|
158
|
+
table_rows: number;
|
|
159
|
+
bot_count: number;
|
|
160
|
+
always_alive_count: number;
|
|
161
|
+
always_alive_concurrency: number;
|
|
162
|
+
collaborator_count: number;
|
|
163
|
+
file_storage: number;
|
|
164
|
+
vector_db_storage: number;
|
|
165
|
+
saved_versions: number;
|
|
166
|
+
indexed_file_count: number;
|
|
167
|
+
};
|
|
168
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
169
|
+
};
|
|
170
|
+
};
|
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'ai_credits_addon',
|
|
23
|
-
'enterprise_ai_token',
|
|
24
|
-
'enterprise_additional_workspace',
|
|
25
|
-
];
|
|
3
|
+
exports.plans = void 0;
|
|
4
|
+
const consts_1 = require("../consts");
|
|
5
|
+
const schemas_1 = require("./schemas");
|
|
6
|
+
const ENTERPRISE_PLAN_FEATURES = {
|
|
7
|
+
human_in_the_loop: true,
|
|
8
|
+
ratelimit: 10000,
|
|
9
|
+
incoming_messages_events: 1000000,
|
|
10
|
+
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
11
|
+
integration_subscription: true,
|
|
12
|
+
table_rows: 10000000,
|
|
13
|
+
bot_count: 100,
|
|
14
|
+
always_alive_count: 50,
|
|
15
|
+
always_alive_concurrency: 3,
|
|
16
|
+
collaborator_count: 100,
|
|
17
|
+
file_storage: 1000_000_000_000, // 1000 GB
|
|
18
|
+
vector_db_storage: 500_000_000_000, // 500 GB
|
|
19
|
+
saved_versions: 1000,
|
|
20
|
+
indexed_file_count: 10_000,
|
|
21
|
+
};
|
|
26
22
|
/* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
|
|
27
|
-
exports.
|
|
23
|
+
exports.plans = {
|
|
28
24
|
community: {
|
|
29
25
|
id: 'community',
|
|
30
26
|
name: 'Plan - Pay as you go',
|
|
31
27
|
description: 'Free plan for developers',
|
|
32
28
|
tierIndex: 0,
|
|
33
|
-
prices:
|
|
34
|
-
{
|
|
35
|
-
|
|
29
|
+
prices: {
|
|
30
|
+
month: {
|
|
31
|
+
amount: consts_1.FREE_PRICE,
|
|
36
32
|
currency: 'usd',
|
|
37
33
|
interval: 'month',
|
|
34
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
38
35
|
},
|
|
39
|
-
|
|
36
|
+
},
|
|
40
37
|
features: {
|
|
41
38
|
human_in_the_loop: false,
|
|
42
39
|
ratelimit: 100,
|
|
@@ -53,24 +50,27 @@ exports.billingPlansDefs = {
|
|
|
53
50
|
saved_versions: 3,
|
|
54
51
|
indexed_file_count: 1_000,
|
|
55
52
|
},
|
|
53
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
56
54
|
},
|
|
57
55
|
plus: {
|
|
58
56
|
id: 'plus',
|
|
59
57
|
name: 'Plan - Plus',
|
|
60
58
|
description: 'For growing businesses',
|
|
61
59
|
tierIndex: 1,
|
|
62
|
-
prices:
|
|
63
|
-
{
|
|
64
|
-
|
|
60
|
+
prices: {
|
|
61
|
+
month: {
|
|
62
|
+
amount: 89,
|
|
65
63
|
currency: 'usd',
|
|
66
64
|
interval: 'month',
|
|
65
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
67
66
|
},
|
|
68
|
-
{
|
|
69
|
-
|
|
67
|
+
year: {
|
|
68
|
+
amount: 948,
|
|
70
69
|
currency: 'usd',
|
|
71
70
|
interval: 'year',
|
|
71
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
},
|
|
74
74
|
features: {
|
|
75
75
|
human_in_the_loop: true,
|
|
76
76
|
ratelimit: 100,
|
|
@@ -87,24 +87,27 @@ exports.billingPlansDefs = {
|
|
|
87
87
|
saved_versions: 50,
|
|
88
88
|
indexed_file_count: 2_000,
|
|
89
89
|
},
|
|
90
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
90
91
|
},
|
|
91
92
|
team: {
|
|
92
93
|
id: 'team',
|
|
93
94
|
name: 'Plan - Team',
|
|
94
95
|
description: 'For small teams',
|
|
95
96
|
tierIndex: 2,
|
|
96
|
-
prices:
|
|
97
|
-
{
|
|
98
|
-
|
|
97
|
+
prices: {
|
|
98
|
+
month: {
|
|
99
|
+
amount: 495,
|
|
99
100
|
currency: 'usd',
|
|
100
101
|
interval: 'month',
|
|
102
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
101
103
|
},
|
|
102
|
-
{
|
|
103
|
-
|
|
104
|
+
year: {
|
|
105
|
+
amount: 5346,
|
|
104
106
|
currency: 'usd',
|
|
105
107
|
interval: 'year',
|
|
108
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
106
109
|
},
|
|
107
|
-
|
|
110
|
+
},
|
|
108
111
|
features: {
|
|
109
112
|
human_in_the_loop: true,
|
|
110
113
|
ratelimit: 1000,
|
|
@@ -121,34 +124,38 @@ exports.billingPlansDefs = {
|
|
|
121
124
|
saved_versions: 100,
|
|
122
125
|
indexed_file_count: 10_000,
|
|
123
126
|
},
|
|
127
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
124
128
|
},
|
|
125
129
|
enterprise: {
|
|
126
130
|
id: 'enterprise',
|
|
127
131
|
name: 'Plan - Enterprise',
|
|
128
132
|
description: 'Enterprise license subscription',
|
|
129
133
|
tierIndex: 3,
|
|
130
|
-
prices:
|
|
131
|
-
{
|
|
132
|
-
|
|
134
|
+
prices: {
|
|
135
|
+
month: {
|
|
136
|
+
amount: consts_1.FREE_PRICE, // Custom pricing
|
|
133
137
|
currency: 'usd',
|
|
134
138
|
interval: 'month',
|
|
139
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
features: ENTERPRISE_PLAN_FEATURES,
|
|
143
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
144
|
+
},
|
|
145
|
+
managed: {
|
|
146
|
+
id: 'managed',
|
|
147
|
+
name: 'Plan - Managed',
|
|
148
|
+
description: 'Managed license subscription',
|
|
149
|
+
tierIndex: 4,
|
|
150
|
+
prices: {
|
|
151
|
+
month: {
|
|
152
|
+
amount: consts_1.FREE_PRICE, // Custom pricing
|
|
153
|
+
currency: 'usd',
|
|
154
|
+
interval: 'month',
|
|
155
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
135
156
|
},
|
|
136
|
-
],
|
|
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
157
|
},
|
|
158
|
+
features: ENTERPRISE_PLAN_FEATURES,
|
|
159
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
153
160
|
},
|
|
154
161
|
};
|