@bpinternal/const 0.0.10 → 0.0.11
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 +17 -1
- package/dist/index.mjs +17 -1
- package/package.json +1 -1
- package/src/quotas.ts +19 -3
package/dist/index.cjs
CHANGED
|
@@ -187,7 +187,9 @@ var quotaTypes = [
|
|
|
187
187
|
"bot_ratelimit",
|
|
188
188
|
"table_row_count",
|
|
189
189
|
"workspace_member_count",
|
|
190
|
-
"integrations_owned_count"
|
|
190
|
+
"integrations_owned_count",
|
|
191
|
+
"cognitive_calls",
|
|
192
|
+
"model_credit"
|
|
191
193
|
];
|
|
192
194
|
var quotaConfigs = {
|
|
193
195
|
invocation_timeout: {
|
|
@@ -240,6 +242,13 @@ var quotaConfigs = {
|
|
|
240
242
|
kind: "bot",
|
|
241
243
|
category: "calls"
|
|
242
244
|
},
|
|
245
|
+
cognitive_calls: {
|
|
246
|
+
name: "Cognitive Calls",
|
|
247
|
+
description: "Maximum number of times a cognitive service can be called in a month.",
|
|
248
|
+
default: 4e3,
|
|
249
|
+
kind: "bot",
|
|
250
|
+
category: "calls"
|
|
251
|
+
},
|
|
243
252
|
bot_ratelimit: {
|
|
244
253
|
name: "Bot Ratelimit",
|
|
245
254
|
description: "Maximum number of times a bot can be invoked in a minute.",
|
|
@@ -253,6 +262,13 @@ var quotaConfigs = {
|
|
|
253
262
|
default: 20,
|
|
254
263
|
kind: "workspace",
|
|
255
264
|
category: "count"
|
|
265
|
+
},
|
|
266
|
+
model_credit: {
|
|
267
|
+
name: "Model Credit",
|
|
268
|
+
description: "Maximum amount of ai model credit that can be used in a month.",
|
|
269
|
+
default: 5e3,
|
|
270
|
+
kind: "bot",
|
|
271
|
+
category: "credit"
|
|
256
272
|
}
|
|
257
273
|
};
|
|
258
274
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -157,7 +157,9 @@ var quotaTypes = [
|
|
|
157
157
|
"bot_ratelimit",
|
|
158
158
|
"table_row_count",
|
|
159
159
|
"workspace_member_count",
|
|
160
|
-
"integrations_owned_count"
|
|
160
|
+
"integrations_owned_count",
|
|
161
|
+
"cognitive_calls",
|
|
162
|
+
"model_credit"
|
|
161
163
|
];
|
|
162
164
|
var quotaConfigs = {
|
|
163
165
|
invocation_timeout: {
|
|
@@ -210,6 +212,13 @@ var quotaConfigs = {
|
|
|
210
212
|
kind: "bot",
|
|
211
213
|
category: "calls"
|
|
212
214
|
},
|
|
215
|
+
cognitive_calls: {
|
|
216
|
+
name: "Cognitive Calls",
|
|
217
|
+
description: "Maximum number of times a cognitive service can be called in a month.",
|
|
218
|
+
default: 4e3,
|
|
219
|
+
kind: "bot",
|
|
220
|
+
category: "calls"
|
|
221
|
+
},
|
|
213
222
|
bot_ratelimit: {
|
|
214
223
|
name: "Bot Ratelimit",
|
|
215
224
|
description: "Maximum number of times a bot can be invoked in a minute.",
|
|
@@ -223,6 +232,13 @@ var quotaConfigs = {
|
|
|
223
232
|
default: 20,
|
|
224
233
|
kind: "workspace",
|
|
225
234
|
category: "count"
|
|
235
|
+
},
|
|
236
|
+
model_credit: {
|
|
237
|
+
name: "Model Credit",
|
|
238
|
+
description: "Maximum amount of ai model credit that can be used in a month.",
|
|
239
|
+
default: 5e3,
|
|
240
|
+
kind: "bot",
|
|
241
|
+
category: "credit"
|
|
226
242
|
}
|
|
227
243
|
};
|
|
228
244
|
export {
|
package/package.json
CHANGED
package/src/quotas.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type Quota = {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export type QuotaKind = 'workspace' | 'bot'
|
|
25
|
-
export type QuotaCategory = 'ratelimit' | 'count' | 'calls' | 'timeout'
|
|
25
|
+
export type QuotaCategory = 'ratelimit' | 'count' | 'calls' | 'timeout' | 'credit'
|
|
26
26
|
export type QuotaType = (typeof quotaTypes)[number]
|
|
27
27
|
|
|
28
28
|
export const quotaTypes = [
|
|
@@ -34,7 +34,9 @@ export const quotaTypes = [
|
|
|
34
34
|
'bot_ratelimit',
|
|
35
35
|
'table_row_count',
|
|
36
36
|
'workspace_member_count',
|
|
37
|
-
'integrations_owned_count'
|
|
37
|
+
'integrations_owned_count',
|
|
38
|
+
'cognitive_calls',
|
|
39
|
+
'model_credit',
|
|
38
40
|
] as const satisfies Readonly<string[]>
|
|
39
41
|
|
|
40
42
|
export const quotaConfigs = {
|
|
@@ -87,6 +89,13 @@ export const quotaConfigs = {
|
|
|
87
89
|
kind: 'bot',
|
|
88
90
|
category: 'calls'
|
|
89
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',
|
|
97
|
+
category: 'calls'
|
|
98
|
+
},
|
|
90
99
|
bot_ratelimit: {
|
|
91
100
|
name: 'Bot Ratelimit',
|
|
92
101
|
description: 'Maximum number of times a bot can be invoked in a minute.',
|
|
@@ -100,5 +109,12 @@ export const quotaConfigs = {
|
|
|
100
109
|
default: 20,
|
|
101
110
|
kind: 'workspace',
|
|
102
111
|
category: 'count'
|
|
103
|
-
}
|
|
112
|
+
},
|
|
113
|
+
model_credit: {
|
|
114
|
+
name: 'Model Credit',
|
|
115
|
+
description: 'Maximum amount of ai model credit that can be used in a month.',
|
|
116
|
+
default: 5000,
|
|
117
|
+
kind: 'bot',
|
|
118
|
+
category: 'credit'
|
|
119
|
+
},
|
|
104
120
|
} as const satisfies Record<QuotaType, Quota>
|