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