@bpinternal/const 0.2.2 → 0.3.1
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-features.d.ts +88 -0
- package/dist/billing-features.js +96 -0
- package/dist/billing-products.d.ts +272 -0
- package/dist/billing-products.js +282 -0
- package/dist/billing-versions.d.ts +33 -0
- package/dist/billing-versions.js +34 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +25 -0
- package/dist/limits.d.ts +80 -0
- package/dist/limits.js +81 -0
- package/dist/prefixes.d.ts +99 -0
- package/dist/prefixes.js +103 -0
- package/dist/quotas.d.ts +250 -0
- package/dist/quotas.js +234 -0
- package/dist/tags.d.ts +80 -0
- package/dist/tags.js +78 -0
- package/dist/usage-metadata.d.ts +22 -0
- package/dist/usage-metadata.js +138 -0
- package/package.json +13 -23
- package/dist/index.cjs +0 -546
- package/dist/index.mjs +0 -513
- package/index.code-workspace +0 -10
- package/readme.md +0 -9
- package/src/index.ts +0 -4
- package/src/limits.ts +0 -92
- package/src/prefixes.ts +0 -152
- package/src/quotas.ts +0 -274
- package/src/tags.ts +0 -84
- package/test/prefix.test.ts +0 -12
- package/tsconfig.json +0 -19
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.billingAddons = exports.billingPlans = exports.BILLING_PLAN_IDS = exports.FREE_PRICE = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Special price value indicating a free product/plan.
|
|
6
|
+
* This will be converted to $0 during deployment.
|
|
7
|
+
*/
|
|
8
|
+
exports.FREE_PRICE = -1;
|
|
9
|
+
// keep this in order of lowest to highest tier
|
|
10
|
+
exports.BILLING_PLAN_IDS = ['community', 'plus', 'team', 'enterprise'];
|
|
11
|
+
exports.billingPlans = {
|
|
12
|
+
community: {
|
|
13
|
+
id: 'community',
|
|
14
|
+
name: 'Plan - Pay as you go',
|
|
15
|
+
description: 'Free plan for developers',
|
|
16
|
+
prices: [
|
|
17
|
+
{
|
|
18
|
+
price: exports.FREE_PRICE,
|
|
19
|
+
currency: 'usd',
|
|
20
|
+
interval: 'month',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
features: {
|
|
24
|
+
human_in_the_loop: false,
|
|
25
|
+
ratelimit: 100,
|
|
26
|
+
incoming_messages_events: 500,
|
|
27
|
+
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
28
|
+
integration_subscription: false,
|
|
29
|
+
table_rows: 1000,
|
|
30
|
+
bot_count: 1,
|
|
31
|
+
always_alive_count: 0,
|
|
32
|
+
collaborator_count: 1,
|
|
33
|
+
file_storage: 100_000_000, // 100 MB
|
|
34
|
+
vector_db_storage: 100_000_000, // 100 MB
|
|
35
|
+
saved_versions: 3,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
plus: {
|
|
39
|
+
id: 'plus',
|
|
40
|
+
name: 'Plan - Plus',
|
|
41
|
+
description: 'For growing businesses',
|
|
42
|
+
prices: [
|
|
43
|
+
{
|
|
44
|
+
price: 89,
|
|
45
|
+
currency: 'usd',
|
|
46
|
+
interval: 'month',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
price: 948,
|
|
50
|
+
currency: 'usd',
|
|
51
|
+
interval: 'year',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
features: {
|
|
55
|
+
human_in_the_loop: true,
|
|
56
|
+
ratelimit: 100,
|
|
57
|
+
incoming_messages_events: 5000,
|
|
58
|
+
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
59
|
+
integration_subscription: true,
|
|
60
|
+
table_rows: 100000,
|
|
61
|
+
bot_count: 2,
|
|
62
|
+
always_alive_count: 1,
|
|
63
|
+
collaborator_count: 2,
|
|
64
|
+
file_storage: 10_000_000_000, // 10 GB
|
|
65
|
+
vector_db_storage: 1_000_000_000, // 1 GB
|
|
66
|
+
saved_versions: 50,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
team: {
|
|
70
|
+
id: 'team',
|
|
71
|
+
name: 'Plan - Team',
|
|
72
|
+
description: 'For small teams',
|
|
73
|
+
prices: [
|
|
74
|
+
{
|
|
75
|
+
price: 495,
|
|
76
|
+
currency: 'usd',
|
|
77
|
+
interval: 'month',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
price: 5346,
|
|
81
|
+
currency: 'usd',
|
|
82
|
+
interval: 'year',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
features: {
|
|
86
|
+
human_in_the_loop: true,
|
|
87
|
+
ratelimit: 1000,
|
|
88
|
+
incoming_messages_events: 50000,
|
|
89
|
+
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
90
|
+
integration_subscription: true,
|
|
91
|
+
table_rows: 100000,
|
|
92
|
+
bot_count: 3,
|
|
93
|
+
always_alive_count: 3,
|
|
94
|
+
collaborator_count: 3,
|
|
95
|
+
file_storage: 10_000_000_000, // 10 GB
|
|
96
|
+
vector_db_storage: 2_000_000_000, // 2 GB
|
|
97
|
+
saved_versions: 100,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
enterprise: {
|
|
101
|
+
id: 'enterprise',
|
|
102
|
+
name: 'Plan - Enterprise',
|
|
103
|
+
description: 'Enterprise license subscription',
|
|
104
|
+
prices: [
|
|
105
|
+
{
|
|
106
|
+
price: exports.FREE_PRICE, // Custom pricing
|
|
107
|
+
currency: 'usd',
|
|
108
|
+
interval: 'month',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
features: {
|
|
112
|
+
human_in_the_loop: true,
|
|
113
|
+
ratelimit: 10000,
|
|
114
|
+
incoming_messages_events: 1000000,
|
|
115
|
+
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
116
|
+
integration_subscription: true,
|
|
117
|
+
table_rows: 10000000,
|
|
118
|
+
bot_count: 100,
|
|
119
|
+
always_alive_count: 50,
|
|
120
|
+
collaborator_count: 100,
|
|
121
|
+
file_storage: 1000_000_000_000, // 1000 GB
|
|
122
|
+
vector_db_storage: 500_000_000_000, // 500 GB
|
|
123
|
+
saved_versions: 1000,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
exports.billingAddons = {
|
|
128
|
+
bot_addon: {
|
|
129
|
+
id: 'bot_addon',
|
|
130
|
+
name: 'Add-on - Bot',
|
|
131
|
+
description: 'Add one more bot to your workspace',
|
|
132
|
+
prices: [
|
|
133
|
+
{
|
|
134
|
+
price: 10,
|
|
135
|
+
currency: 'usd',
|
|
136
|
+
interval: 'month',
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
feature: 'bot_count',
|
|
140
|
+
increment: 1,
|
|
141
|
+
},
|
|
142
|
+
collaborator_addon: {
|
|
143
|
+
id: 'collaborator_addon',
|
|
144
|
+
name: 'Add-on - Collaborators',
|
|
145
|
+
description: 'Add one more collaborator to your workspace',
|
|
146
|
+
prices: [
|
|
147
|
+
{
|
|
148
|
+
price: 25,
|
|
149
|
+
currency: 'usd',
|
|
150
|
+
interval: 'month',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
feature: 'collaborator_count',
|
|
154
|
+
increment: 1,
|
|
155
|
+
},
|
|
156
|
+
always_alive_addon: {
|
|
157
|
+
id: 'always_alive_addon',
|
|
158
|
+
name: 'Add-on - Always Alive',
|
|
159
|
+
description: 'Keep one more bot always alive',
|
|
160
|
+
prices: [
|
|
161
|
+
{
|
|
162
|
+
price: 10,
|
|
163
|
+
currency: 'usd',
|
|
164
|
+
interval: 'month',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
feature: 'always_alive_count',
|
|
168
|
+
increment: 1,
|
|
169
|
+
},
|
|
170
|
+
messages_events_addon: {
|
|
171
|
+
id: 'messages_events_addon',
|
|
172
|
+
name: 'Add-on - Messages & Events',
|
|
173
|
+
description: 'Adds 5,000 messages and events',
|
|
174
|
+
prices: [
|
|
175
|
+
{
|
|
176
|
+
price: 20,
|
|
177
|
+
currency: 'usd',
|
|
178
|
+
interval: 'month',
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
feature: 'incoming_messages_events',
|
|
182
|
+
increment: 5000,
|
|
183
|
+
},
|
|
184
|
+
table_rows_addon: {
|
|
185
|
+
id: 'table_rows_addon',
|
|
186
|
+
name: 'Add-on - Table Rows',
|
|
187
|
+
description: 'Adds 100,000 additional table rows',
|
|
188
|
+
prices: [
|
|
189
|
+
{
|
|
190
|
+
price: 25,
|
|
191
|
+
currency: 'usd',
|
|
192
|
+
interval: 'month',
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
feature: 'table_rows',
|
|
196
|
+
increment: 100000,
|
|
197
|
+
},
|
|
198
|
+
file_storage_addon: {
|
|
199
|
+
id: 'file_storage_addon',
|
|
200
|
+
name: 'Add-on - File Storage',
|
|
201
|
+
description: 'Adds 10GB of File Storage',
|
|
202
|
+
prices: [
|
|
203
|
+
{
|
|
204
|
+
price: 10,
|
|
205
|
+
currency: 'usd',
|
|
206
|
+
interval: 'month',
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
feature: 'file_storage',
|
|
210
|
+
increment: 10_000_000_000, // 10 GB
|
|
211
|
+
},
|
|
212
|
+
vector_db_storage_addon: {
|
|
213
|
+
id: 'vector_db_storage_addon',
|
|
214
|
+
name: 'Add-on - Vector DB Storage',
|
|
215
|
+
description: 'Add 1 GB of vector database storage',
|
|
216
|
+
prices: [
|
|
217
|
+
{
|
|
218
|
+
price: 20,
|
|
219
|
+
currency: 'usd',
|
|
220
|
+
interval: 'month',
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
feature: 'vector_db_storage',
|
|
224
|
+
increment: 1_000_000_000, // 1 GB
|
|
225
|
+
},
|
|
226
|
+
web_search_addon: {
|
|
227
|
+
id: 'web_search_addon',
|
|
228
|
+
name: 'Web Search and Crawl',
|
|
229
|
+
description: 'Web search and crawl functionality',
|
|
230
|
+
prices: [
|
|
231
|
+
{
|
|
232
|
+
price: 0.01,
|
|
233
|
+
currency: 'usd',
|
|
234
|
+
interval: 'month',
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
feature: 'integration_spend',
|
|
238
|
+
increment: 10_000_000_000, // $10 in nano-dollars
|
|
239
|
+
},
|
|
240
|
+
ai_credits_addon: {
|
|
241
|
+
id: 'ai_credits_addon',
|
|
242
|
+
name: 'AI Tokens',
|
|
243
|
+
description: 'Add $25 worth of AI credits',
|
|
244
|
+
prices: [
|
|
245
|
+
{
|
|
246
|
+
price: 0.01,
|
|
247
|
+
currency: 'usd',
|
|
248
|
+
interval: 'month',
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
feature: 'integration_spend',
|
|
252
|
+
increment: 25_000_000_000, // $25 in nano-dollars
|
|
253
|
+
},
|
|
254
|
+
enterprise_ai_token: {
|
|
255
|
+
id: 'enterprise_ai_token',
|
|
256
|
+
name: 'Enterprise - AI Token',
|
|
257
|
+
description: 'Enterprise AI token credits',
|
|
258
|
+
prices: [
|
|
259
|
+
{
|
|
260
|
+
price: exports.FREE_PRICE, // Custom pricing
|
|
261
|
+
currency: 'usd',
|
|
262
|
+
interval: 'month',
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
feature: 'integration_spend',
|
|
266
|
+
increment: 100_000_000_000, // $100 in nano-dollars
|
|
267
|
+
},
|
|
268
|
+
enterprise_additional_workspace: {
|
|
269
|
+
id: 'enterprise_additional_workspace',
|
|
270
|
+
name: 'Enterprise - Additional Workspace',
|
|
271
|
+
description: 'Enterprise additional workspace',
|
|
272
|
+
prices: [
|
|
273
|
+
{
|
|
274
|
+
price: exports.FREE_PRICE, // Custom pricing
|
|
275
|
+
currency: 'usd',
|
|
276
|
+
interval: 'month',
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
feature: 'collaborator_count',
|
|
280
|
+
increment: 10,
|
|
281
|
+
},
|
|
282
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Billing versions for v4 billing system
|
|
3
|
+
* Each version represents a complete billing configuration
|
|
4
|
+
*/
|
|
5
|
+
import { billingPlans, billingAddons } from './billing-products';
|
|
6
|
+
export declare const BILLING_VERSIONS: readonly ["v4"];
|
|
7
|
+
export type BillingVersionId = (typeof BILLING_VERSIONS)[number];
|
|
8
|
+
export type BillingVersion = {
|
|
9
|
+
version: BillingVersionId;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
plans: typeof billingPlans;
|
|
13
|
+
addons: typeof billingAddons;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
stripeMapping?: StripeMapping;
|
|
17
|
+
};
|
|
18
|
+
export type StripeMapping = {
|
|
19
|
+
plans: Record<string, {
|
|
20
|
+
productId: string;
|
|
21
|
+
priceId: string;
|
|
22
|
+
}>;
|
|
23
|
+
addons: Record<string, {
|
|
24
|
+
productId: string;
|
|
25
|
+
priceId: string;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export declare const billingVersionV4: BillingVersion;
|
|
29
|
+
export declare const billingVersions: {
|
|
30
|
+
[key in BillingVersionId]: BillingVersion;
|
|
31
|
+
};
|
|
32
|
+
export declare const getActiveBillingVersion: () => BillingVersion;
|
|
33
|
+
export declare const getBillingVersion: (version: BillingVersionId) => BillingVersion;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Billing versions for v4 billing system
|
|
4
|
+
* Each version represents a complete billing configuration
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getBillingVersion = exports.getActiveBillingVersion = exports.billingVersions = exports.billingVersionV4 = exports.BILLING_VERSIONS = void 0;
|
|
8
|
+
const billing_products_1 = require("./billing-products");
|
|
9
|
+
exports.BILLING_VERSIONS = ['v4'];
|
|
10
|
+
exports.billingVersionV4 = {
|
|
11
|
+
version: 'v4',
|
|
12
|
+
name: 'Billing Version 4',
|
|
13
|
+
description: 'New billing system with credit grants and entitlements',
|
|
14
|
+
plans: billing_products_1.billingPlans,
|
|
15
|
+
addons: billing_products_1.billingAddons,
|
|
16
|
+
isActive: false, // Will be set to true when migration is complete
|
|
17
|
+
createdAt: new Date().toISOString(),
|
|
18
|
+
// stripeMapping will be populated by Pulumi
|
|
19
|
+
};
|
|
20
|
+
exports.billingVersions = {
|
|
21
|
+
v4: exports.billingVersionV4,
|
|
22
|
+
};
|
|
23
|
+
const getActiveBillingVersion = () => {
|
|
24
|
+
const activeVersion = Object.values(exports.billingVersions).find((v) => v.isActive);
|
|
25
|
+
if (!activeVersion) {
|
|
26
|
+
throw new Error('No active billing version found');
|
|
27
|
+
}
|
|
28
|
+
return activeVersion;
|
|
29
|
+
};
|
|
30
|
+
exports.getActiveBillingVersion = getActiveBillingVersion;
|
|
31
|
+
const getBillingVersion = (version) => {
|
|
32
|
+
return exports.billingVersions[version];
|
|
33
|
+
};
|
|
34
|
+
exports.getBillingVersion = getBillingVersion;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./limits"), exports);
|
|
18
|
+
__exportStar(require("./prefixes"), exports);
|
|
19
|
+
__exportStar(require("./quotas"), exports);
|
|
20
|
+
__exportStar(require("./tags"), exports);
|
|
21
|
+
// V4 Billing Constants
|
|
22
|
+
__exportStar(require("./billing-features"), exports);
|
|
23
|
+
__exportStar(require("./billing-products"), exports);
|
|
24
|
+
__exportStar(require("./billing-versions"), exports);
|
|
25
|
+
__exportStar(require("./usage-metadata"), exports);
|
package/dist/limits.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export type LimitType = keyof typeof limitConfigs;
|
|
2
|
+
export type LimitUnit = 'count' | 'bytes';
|
|
3
|
+
export declare const limitConfigs: {
|
|
4
|
+
readonly bot_configuration_bytes: {
|
|
5
|
+
readonly value: 20480;
|
|
6
|
+
readonly unit: "bytes";
|
|
7
|
+
};
|
|
8
|
+
readonly bot_installed_integrations_count: {
|
|
9
|
+
readonly value: 30;
|
|
10
|
+
readonly unit: "count";
|
|
11
|
+
};
|
|
12
|
+
readonly bot_integration_configuration_bytes: {
|
|
13
|
+
readonly value: 20480;
|
|
14
|
+
readonly unit: "bytes";
|
|
15
|
+
};
|
|
16
|
+
readonly bot_recurring_event_count: {
|
|
17
|
+
readonly value: 50;
|
|
18
|
+
readonly unit: "count";
|
|
19
|
+
};
|
|
20
|
+
readonly bot_recurring_event_payload_bytes: {
|
|
21
|
+
readonly value: 131072;
|
|
22
|
+
readonly unit: "bytes";
|
|
23
|
+
};
|
|
24
|
+
readonly event_definition_count: {
|
|
25
|
+
readonly value: 20;
|
|
26
|
+
readonly unit: "count";
|
|
27
|
+
};
|
|
28
|
+
readonly integration_channel_count: {
|
|
29
|
+
readonly value: 10;
|
|
30
|
+
readonly unit: "count";
|
|
31
|
+
};
|
|
32
|
+
readonly integration_channel_message_type_count: {
|
|
33
|
+
readonly value: 20;
|
|
34
|
+
readonly unit: "count";
|
|
35
|
+
};
|
|
36
|
+
readonly integration_identifier_count: {
|
|
37
|
+
readonly value: 50;
|
|
38
|
+
readonly unit: "count";
|
|
39
|
+
};
|
|
40
|
+
readonly integration_version_count: {
|
|
41
|
+
readonly value: 50;
|
|
42
|
+
readonly unit: "count";
|
|
43
|
+
};
|
|
44
|
+
readonly issue_event_item_payload_bytes: {
|
|
45
|
+
readonly value: 131072;
|
|
46
|
+
readonly unit: "bytes";
|
|
47
|
+
};
|
|
48
|
+
readonly message_payload_bytes: {
|
|
49
|
+
readonly value: 131072;
|
|
50
|
+
readonly unit: "bytes";
|
|
51
|
+
};
|
|
52
|
+
readonly schema_bytes: {
|
|
53
|
+
readonly value: 102400;
|
|
54
|
+
readonly unit: "bytes";
|
|
55
|
+
};
|
|
56
|
+
readonly state_definition_count: {
|
|
57
|
+
readonly value: 10;
|
|
58
|
+
readonly unit: "count";
|
|
59
|
+
};
|
|
60
|
+
readonly state_item_payload_bytes: {
|
|
61
|
+
readonly value: 131072;
|
|
62
|
+
readonly unit: "bytes";
|
|
63
|
+
};
|
|
64
|
+
readonly tag_definition_count: {
|
|
65
|
+
readonly value: 50;
|
|
66
|
+
readonly unit: "count";
|
|
67
|
+
};
|
|
68
|
+
readonly bot_integration_secret_count: {
|
|
69
|
+
readonly value: 25;
|
|
70
|
+
readonly unit: "count";
|
|
71
|
+
};
|
|
72
|
+
readonly files_api_query_bytes: {
|
|
73
|
+
readonly value: 2048;
|
|
74
|
+
readonly unit: "bytes";
|
|
75
|
+
};
|
|
76
|
+
readonly code_payload_bytes: {
|
|
77
|
+
readonly value: 52428800;
|
|
78
|
+
readonly unit: "bytes";
|
|
79
|
+
};
|
|
80
|
+
};
|
package/dist/limits.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.limitConfigs = void 0;
|
|
4
|
+
exports.limitConfigs = {
|
|
5
|
+
bot_configuration_bytes: {
|
|
6
|
+
value: 20480, // 20 KB
|
|
7
|
+
unit: 'bytes',
|
|
8
|
+
},
|
|
9
|
+
bot_installed_integrations_count: {
|
|
10
|
+
value: 30,
|
|
11
|
+
unit: 'count',
|
|
12
|
+
},
|
|
13
|
+
bot_integration_configuration_bytes: {
|
|
14
|
+
value: 20480, // 20 KB
|
|
15
|
+
unit: 'bytes',
|
|
16
|
+
},
|
|
17
|
+
bot_recurring_event_count: {
|
|
18
|
+
value: 50,
|
|
19
|
+
unit: 'count',
|
|
20
|
+
},
|
|
21
|
+
bot_recurring_event_payload_bytes: {
|
|
22
|
+
value: 131072, // 128 KB
|
|
23
|
+
unit: 'bytes',
|
|
24
|
+
},
|
|
25
|
+
event_definition_count: {
|
|
26
|
+
value: 20,
|
|
27
|
+
unit: 'count',
|
|
28
|
+
},
|
|
29
|
+
integration_channel_count: {
|
|
30
|
+
value: 10,
|
|
31
|
+
unit: 'count',
|
|
32
|
+
},
|
|
33
|
+
integration_channel_message_type_count: {
|
|
34
|
+
value: 20,
|
|
35
|
+
unit: 'count',
|
|
36
|
+
},
|
|
37
|
+
integration_identifier_count: {
|
|
38
|
+
value: 50,
|
|
39
|
+
unit: 'count',
|
|
40
|
+
},
|
|
41
|
+
integration_version_count: {
|
|
42
|
+
value: 50,
|
|
43
|
+
unit: 'count',
|
|
44
|
+
},
|
|
45
|
+
issue_event_item_payload_bytes: {
|
|
46
|
+
value: 131072, // 128 KB
|
|
47
|
+
unit: 'bytes',
|
|
48
|
+
},
|
|
49
|
+
message_payload_bytes: {
|
|
50
|
+
value: 131072, // 128 KB
|
|
51
|
+
unit: 'bytes',
|
|
52
|
+
},
|
|
53
|
+
schema_bytes: {
|
|
54
|
+
value: 102400, // 100 KB
|
|
55
|
+
unit: 'bytes',
|
|
56
|
+
},
|
|
57
|
+
state_definition_count: {
|
|
58
|
+
value: 10,
|
|
59
|
+
unit: 'count',
|
|
60
|
+
},
|
|
61
|
+
state_item_payload_bytes: {
|
|
62
|
+
value: 131072, // 128 KB
|
|
63
|
+
unit: 'bytes',
|
|
64
|
+
},
|
|
65
|
+
tag_definition_count: {
|
|
66
|
+
value: 50,
|
|
67
|
+
unit: 'count',
|
|
68
|
+
},
|
|
69
|
+
bot_integration_secret_count: {
|
|
70
|
+
value: 25,
|
|
71
|
+
unit: 'count',
|
|
72
|
+
},
|
|
73
|
+
files_api_query_bytes: {
|
|
74
|
+
value: 2048, // 2 KB
|
|
75
|
+
unit: 'bytes',
|
|
76
|
+
},
|
|
77
|
+
code_payload_bytes: {
|
|
78
|
+
value: 52428800, // 50 MB
|
|
79
|
+
unit: 'bytes',
|
|
80
|
+
},
|
|
81
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export declare const prefixToObjectMap: {
|
|
2
|
+
readonly accnt: "account";
|
|
3
|
+
readonly accntpf: "accountPreference";
|
|
4
|
+
readonly action: "action";
|
|
5
|
+
readonly activty: "activity";
|
|
6
|
+
readonly anlytic: "analytics";
|
|
7
|
+
readonly audit: "audit";
|
|
8
|
+
readonly bak: "botApiKey";
|
|
9
|
+
readonly bot: "bot";
|
|
10
|
+
readonly card: "card";
|
|
11
|
+
readonly cfg: "configuration";
|
|
12
|
+
readonly channel: "channel";
|
|
13
|
+
readonly conv: "conversation";
|
|
14
|
+
readonly devbot: "devBot";
|
|
15
|
+
readonly devint: "devIntegration";
|
|
16
|
+
readonly evt: "event";
|
|
17
|
+
readonly file: "file";
|
|
18
|
+
readonly flow: "flow";
|
|
19
|
+
readonly iak: "integrationApiKey";
|
|
20
|
+
readonly int: "integration";
|
|
21
|
+
readonly iface: "interface";
|
|
22
|
+
readonly ifver: "interfaceVersion";
|
|
23
|
+
readonly intver: "integrationVersion";
|
|
24
|
+
readonly iss: "issue";
|
|
25
|
+
readonly issevt: "issueEvent";
|
|
26
|
+
readonly kb: "knowledgeBase";
|
|
27
|
+
readonly limit: "limit";
|
|
28
|
+
readonly media: "media";
|
|
29
|
+
readonly msg: "message";
|
|
30
|
+
readonly node: "node";
|
|
31
|
+
readonly notif: "notification";
|
|
32
|
+
readonly pat: "personalAccessToken";
|
|
33
|
+
readonly plugin: "plugin";
|
|
34
|
+
readonly plugver: "pluginVersion";
|
|
35
|
+
readonly quota: "quota";
|
|
36
|
+
readonly recevt: "recurringEvent";
|
|
37
|
+
readonly report: "report";
|
|
38
|
+
readonly sandbox: "sandbox";
|
|
39
|
+
readonly schema: "schema";
|
|
40
|
+
readonly script: "script";
|
|
41
|
+
readonly state: "state";
|
|
42
|
+
readonly table: "table";
|
|
43
|
+
readonly tag: "tag";
|
|
44
|
+
readonly task: "task";
|
|
45
|
+
readonly usage: "usage";
|
|
46
|
+
readonly user: "user";
|
|
47
|
+
readonly webhook: "webhook";
|
|
48
|
+
readonly wkspace: "workspace";
|
|
49
|
+
readonly wrkflow: "workflow";
|
|
50
|
+
};
|
|
51
|
+
export declare const objectToPrefixMap: Reverser<typeof prefixToObjectMap>;
|
|
52
|
+
export type Prefixes = (typeof objectToPrefixMap)[keyof typeof objectToPrefixMap];
|
|
53
|
+
export type Objects = keyof typeof objectToPrefixMap;
|
|
54
|
+
type Ids = {
|
|
55
|
+
[Id in Objects as `${Capitalize<Id>}Id`]: `${(typeof objectToPrefixMap)[Id]}_${string}`;
|
|
56
|
+
};
|
|
57
|
+
export type AccountId = Ids['AccountId'];
|
|
58
|
+
export type AccountPreferenceId = Ids['AccountPreferenceId'];
|
|
59
|
+
export type ActionId = Ids['ActionId'];
|
|
60
|
+
export type AnalyticsId = Ids['AnalyticsId'];
|
|
61
|
+
export type AuditId = Ids['AuditId'];
|
|
62
|
+
export type BotApiKeyId = Ids['BotApiKeyId'];
|
|
63
|
+
export type BotId = Ids['BotId'];
|
|
64
|
+
export type CardId = Ids['CardId'];
|
|
65
|
+
export type ChannelId = Ids['ChannelId'];
|
|
66
|
+
export type ConfigurationId = Ids['ConfigurationId'];
|
|
67
|
+
export type ConversationId = Ids['ConversationId'];
|
|
68
|
+
export type EventId = Ids['EventId'];
|
|
69
|
+
export type FileId = Ids['FileId'];
|
|
70
|
+
export type FlowId = Ids['FlowId'];
|
|
71
|
+
export type IntegrationApiKeyId = Ids['IntegrationApiKeyId'];
|
|
72
|
+
export type IntegrationId = Ids['IntegrationId'];
|
|
73
|
+
export type Issue = Ids['IssueId'];
|
|
74
|
+
export type IssueEvent = Ids['IssueEventId'];
|
|
75
|
+
export type KnowledgeBaseId = Ids['KnowledgeBaseId'];
|
|
76
|
+
export type LimitId = Ids['LimitId'];
|
|
77
|
+
export type MediaId = Ids['MediaId'];
|
|
78
|
+
export type MessageId = Ids['MessageId'];
|
|
79
|
+
export type NodeId = Ids['NodeId'];
|
|
80
|
+
export type PersonalAccessTokenId = Ids['PersonalAccessTokenId'];
|
|
81
|
+
export type QuotaId = Ids['QuotaId'];
|
|
82
|
+
export type RecurringEventId = Ids['RecurringEventId'];
|
|
83
|
+
export type ReportId = Ids['ReportId'];
|
|
84
|
+
export type SandboxId = Ids['SandboxId'];
|
|
85
|
+
export type SchemaId = Ids['SchemaId'];
|
|
86
|
+
export type ScriptId = Ids['ScriptId'];
|
|
87
|
+
export type StateId = Ids['StateId'];
|
|
88
|
+
export type TableId = Ids['TableId'];
|
|
89
|
+
export type TagId = Ids['TagId'];
|
|
90
|
+
export type TaskId = Ids['TaskId'];
|
|
91
|
+
export type UsageId = Ids['UsageId'];
|
|
92
|
+
export type UserId = Ids['UserId'];
|
|
93
|
+
export type WebhookId = Ids['WebhookId'];
|
|
94
|
+
export type WorkflowId = Ids['WorkflowId'];
|
|
95
|
+
export type WorkspaceId = Ids['WorkspaceId'];
|
|
96
|
+
type Reverser<T extends Record<PropertyKey, PropertyKey>> = {
|
|
97
|
+
[P in keyof T as T[P]]: P;
|
|
98
|
+
};
|
|
99
|
+
export {};
|