@bpinternal/const 0.0.14 → 0.0.15

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/index.cjs CHANGED
@@ -189,13 +189,11 @@ var quotaTypes = [
189
189
  "invocation_calls",
190
190
  "storage_count",
191
191
  "bot_count",
192
- "knowledgebase_vector_count",
193
- "bot_ratelimit",
192
+ "knowledgebase_vector_storage",
193
+ "workspace_ratelimit",
194
194
  "table_row_count",
195
195
  "workspace_member_count",
196
196
  "integrations_owned_count",
197
- "cognitive_calls",
198
- "model_credit",
199
197
  "token_spend"
200
198
  ];
201
199
  var quotaConfigs = {
@@ -209,9 +207,9 @@ var quotaConfigs = {
209
207
  storage_count: {
210
208
  name: "Storage Count",
211
209
  description: "Maximum number of storage bytes that can be stored.",
212
- default: 104857600,
213
- // 100 MB
214
- kind: "bot",
210
+ default: 524288e3,
211
+ // 500 MB
212
+ kind: "workspace",
215
213
  category: "count"
216
214
  },
217
215
  bot_count: {
@@ -228,39 +226,33 @@ var quotaConfigs = {
228
226
  kind: "workspace",
229
227
  category: "count"
230
228
  },
231
- knowledgebase_vector_count: {
232
- name: "Knowledgebase Vector Count",
233
- description: "Maximum number of knowledgebase vectors that can be created.",
234
- default: 5e3,
235
- kind: "bot",
229
+ knowledgebase_vector_storage: {
230
+ name: "Knowledgebase Vector Storage",
231
+ description: "Maximum size knowledge base documents",
232
+ default: 104857600,
233
+ // 100 MB
234
+ kind: "workspace",
236
235
  category: "count"
237
236
  },
238
237
  table_row_count: {
239
238
  name: "Table Row Count",
240
239
  description: "Maximum number of rows that can be stored in a table.",
241
240
  default: 5e3,
242
- kind: "bot",
241
+ kind: "workspace",
243
242
  category: "count"
244
243
  },
245
244
  invocation_calls: {
246
245
  name: "Invocation Calls",
247
246
  description: "Maximum number of times a bot can be invoked in a month.",
248
- default: 25e3,
249
- kind: "bot",
250
- category: "calls"
251
- },
252
- cognitive_calls: {
253
- name: "Cognitive Calls",
254
- description: "Maximum number of times a cognitive service can be called in a month.",
255
- default: 4e3,
256
- kind: "bot",
247
+ default: 2e3,
248
+ kind: "workspace",
257
249
  category: "calls"
258
250
  },
259
- bot_ratelimit: {
260
- name: "Bot Ratelimit",
261
- description: "Maximum number of times a bot can be invoked in a minute.",
251
+ workspace_ratelimit: {
252
+ name: "Workspace Ratelimit",
253
+ description: "Maximum number of API calls per second for a workspace.",
262
254
  default: 100,
263
- kind: "bot",
255
+ kind: "workspace",
264
256
  category: "ratelimit"
265
257
  },
266
258
  integrations_owned_count: {
@@ -270,13 +262,6 @@ var quotaConfigs = {
270
262
  kind: "workspace",
271
263
  category: "count"
272
264
  },
273
- model_credit: {
274
- name: "Model Credit",
275
- description: "Maximum amount of ai model credit that can be used in a month.",
276
- default: 5e3,
277
- kind: "bot",
278
- category: "credit"
279
- },
280
265
  token_spend: {
281
266
  name: "Token Spend",
282
267
  description: "Maximum amount of token spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.",
package/dist/index.mjs CHANGED
@@ -159,13 +159,11 @@ var quotaTypes = [
159
159
  "invocation_calls",
160
160
  "storage_count",
161
161
  "bot_count",
162
- "knowledgebase_vector_count",
163
- "bot_ratelimit",
162
+ "knowledgebase_vector_storage",
163
+ "workspace_ratelimit",
164
164
  "table_row_count",
165
165
  "workspace_member_count",
166
166
  "integrations_owned_count",
167
- "cognitive_calls",
168
- "model_credit",
169
167
  "token_spend"
170
168
  ];
171
169
  var quotaConfigs = {
@@ -179,9 +177,9 @@ var quotaConfigs = {
179
177
  storage_count: {
180
178
  name: "Storage Count",
181
179
  description: "Maximum number of storage bytes that can be stored.",
182
- default: 104857600,
183
- // 100 MB
184
- kind: "bot",
180
+ default: 524288e3,
181
+ // 500 MB
182
+ kind: "workspace",
185
183
  category: "count"
186
184
  },
187
185
  bot_count: {
@@ -198,39 +196,33 @@ var quotaConfigs = {
198
196
  kind: "workspace",
199
197
  category: "count"
200
198
  },
201
- knowledgebase_vector_count: {
202
- name: "Knowledgebase Vector Count",
203
- description: "Maximum number of knowledgebase vectors that can be created.",
204
- default: 5e3,
205
- kind: "bot",
199
+ knowledgebase_vector_storage: {
200
+ name: "Knowledgebase Vector Storage",
201
+ description: "Maximum size knowledge base documents",
202
+ default: 104857600,
203
+ // 100 MB
204
+ kind: "workspace",
206
205
  category: "count"
207
206
  },
208
207
  table_row_count: {
209
208
  name: "Table Row Count",
210
209
  description: "Maximum number of rows that can be stored in a table.",
211
210
  default: 5e3,
212
- kind: "bot",
211
+ kind: "workspace",
213
212
  category: "count"
214
213
  },
215
214
  invocation_calls: {
216
215
  name: "Invocation Calls",
217
216
  description: "Maximum number of times a bot can be invoked in a month.",
218
- default: 25e3,
219
- kind: "bot",
220
- category: "calls"
221
- },
222
- cognitive_calls: {
223
- name: "Cognitive Calls",
224
- description: "Maximum number of times a cognitive service can be called in a month.",
225
- default: 4e3,
226
- kind: "bot",
217
+ default: 2e3,
218
+ kind: "workspace",
227
219
  category: "calls"
228
220
  },
229
- bot_ratelimit: {
230
- name: "Bot Ratelimit",
231
- description: "Maximum number of times a bot can be invoked in a minute.",
221
+ workspace_ratelimit: {
222
+ name: "Workspace Ratelimit",
223
+ description: "Maximum number of API calls per second for a workspace.",
232
224
  default: 100,
233
- kind: "bot",
225
+ kind: "workspace",
234
226
  category: "ratelimit"
235
227
  },
236
228
  integrations_owned_count: {
@@ -240,13 +232,6 @@ var quotaConfigs = {
240
232
  kind: "workspace",
241
233
  category: "count"
242
234
  },
243
- model_credit: {
244
- name: "Model Credit",
245
- description: "Maximum amount of ai model credit that can be used in a month.",
246
- default: 5e3,
247
- kind: "bot",
248
- category: "credit"
249
- },
250
235
  token_spend: {
251
236
  name: "Token Spend",
252
237
  description: "Maximum amount of token spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Constant utilities for Botpress",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.mjs",
package/src/quotas.ts CHANGED
@@ -30,13 +30,11 @@ export const quotaTypes = [
30
30
  'invocation_calls',
31
31
  'storage_count',
32
32
  'bot_count',
33
- 'knowledgebase_vector_count',
34
- 'bot_ratelimit',
33
+ 'knowledgebase_vector_storage',
34
+ 'workspace_ratelimit',
35
35
  'table_row_count',
36
36
  'workspace_member_count',
37
37
  'integrations_owned_count',
38
- 'cognitive_calls',
39
- 'model_credit',
40
38
  'token_spend'
41
39
  ] as const satisfies Readonly<string[]>
42
40
 
@@ -51,8 +49,8 @@ export const quotaConfigs = {
51
49
  storage_count: {
52
50
  name: 'Storage Count',
53
51
  description: 'Maximum number of storage bytes that can be stored.',
54
- default: 104_857_600, // 100 MB
55
- kind: 'bot',
52
+ default: 524_288_000, // 500 MB
53
+ kind: 'workspace',
56
54
  category: 'count'
57
55
  },
58
56
  bot_count: {
@@ -69,39 +67,32 @@ export const quotaConfigs = {
69
67
  kind: 'workspace',
70
68
  category: 'count'
71
69
  },
72
- knowledgebase_vector_count: {
73
- name: 'Knowledgebase Vector Count',
74
- description: 'Maximum number of knowledgebase vectors that can be created.',
75
- default: 5_000,
76
- kind: 'bot',
70
+ knowledgebase_vector_storage: {
71
+ name: 'Knowledgebase Vector Storage',
72
+ description: 'Maximum size knowledge base documents',
73
+ default: 104_857_600, // 100 MB
74
+ kind: 'workspace',
77
75
  category: 'count'
78
76
  },
79
77
  table_row_count: {
80
78
  name: 'Table Row Count',
81
79
  description: 'Maximum number of rows that can be stored in a table.',
82
80
  default: 5_000,
83
- kind: 'bot',
81
+ kind: 'workspace',
84
82
  category: 'count'
85
83
  },
86
84
  invocation_calls: {
87
85
  name: 'Invocation Calls',
88
86
  description: 'Maximum number of times a bot can be invoked in a month.',
89
- default: 25_000,
90
- kind: 'bot',
91
- category: 'calls'
92
- },
93
- cognitive_calls: {
94
- name: 'Cognitive Calls',
95
- description: 'Maximum number of times a cognitive service can be called in a month.',
96
- default: 4_000,
97
- kind: 'bot',
87
+ default: 2_000,
88
+ kind: 'workspace',
98
89
  category: 'calls'
99
90
  },
100
- bot_ratelimit: {
101
- name: 'Bot Ratelimit',
102
- description: 'Maximum number of times a bot can be invoked in a minute.',
91
+ workspace_ratelimit: {
92
+ name: 'Workspace Ratelimit',
93
+ description: 'Maximum number of API calls per second for a workspace.',
103
94
  default: 100,
104
- kind: 'bot',
95
+ kind: 'workspace',
105
96
  category: 'ratelimit'
106
97
  },
107
98
  integrations_owned_count: {
@@ -111,13 +102,6 @@ export const quotaConfigs = {
111
102
  kind: 'workspace',
112
103
  category: 'count'
113
104
  },
114
- model_credit: {
115
- name: 'Model Credit',
116
- description: 'Maximum amount of ai model credit that can be used in a month.',
117
- default: 5000,
118
- kind: 'bot',
119
- category: 'credit'
120
- },
121
105
  token_spend: {
122
106
  name: 'Token Spend',
123
107
  description: