@bpinternal/const 0.0.9 → 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 +22 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/limits.ts +4 -0
- package/src/quotas.ts +19 -3
package/dist/index.cjs
CHANGED
|
@@ -73,6 +73,11 @@ var limitConfigs = {
|
|
|
73
73
|
value: 50,
|
|
74
74
|
unit: "count"
|
|
75
75
|
},
|
|
76
|
+
issue_event_item_payload_bytes: {
|
|
77
|
+
value: 131072,
|
|
78
|
+
// 128 KB
|
|
79
|
+
unit: "bytes"
|
|
80
|
+
},
|
|
76
81
|
message_payload_bytes: {
|
|
77
82
|
value: 131072,
|
|
78
83
|
// 128 KB
|
|
@@ -182,7 +187,9 @@ var quotaTypes = [
|
|
|
182
187
|
"bot_ratelimit",
|
|
183
188
|
"table_row_count",
|
|
184
189
|
"workspace_member_count",
|
|
185
|
-
"integrations_owned_count"
|
|
190
|
+
"integrations_owned_count",
|
|
191
|
+
"cognitive_calls",
|
|
192
|
+
"model_credit"
|
|
186
193
|
];
|
|
187
194
|
var quotaConfigs = {
|
|
188
195
|
invocation_timeout: {
|
|
@@ -235,6 +242,13 @@ var quotaConfigs = {
|
|
|
235
242
|
kind: "bot",
|
|
236
243
|
category: "calls"
|
|
237
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
|
+
},
|
|
238
252
|
bot_ratelimit: {
|
|
239
253
|
name: "Bot Ratelimit",
|
|
240
254
|
description: "Maximum number of times a bot can be invoked in a minute.",
|
|
@@ -248,6 +262,13 @@ var quotaConfigs = {
|
|
|
248
262
|
default: 20,
|
|
249
263
|
kind: "workspace",
|
|
250
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"
|
|
251
272
|
}
|
|
252
273
|
};
|
|
253
274
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -43,6 +43,11 @@ var limitConfigs = {
|
|
|
43
43
|
value: 50,
|
|
44
44
|
unit: "count"
|
|
45
45
|
},
|
|
46
|
+
issue_event_item_payload_bytes: {
|
|
47
|
+
value: 131072,
|
|
48
|
+
// 128 KB
|
|
49
|
+
unit: "bytes"
|
|
50
|
+
},
|
|
46
51
|
message_payload_bytes: {
|
|
47
52
|
value: 131072,
|
|
48
53
|
// 128 KB
|
|
@@ -152,7 +157,9 @@ var quotaTypes = [
|
|
|
152
157
|
"bot_ratelimit",
|
|
153
158
|
"table_row_count",
|
|
154
159
|
"workspace_member_count",
|
|
155
|
-
"integrations_owned_count"
|
|
160
|
+
"integrations_owned_count",
|
|
161
|
+
"cognitive_calls",
|
|
162
|
+
"model_credit"
|
|
156
163
|
];
|
|
157
164
|
var quotaConfigs = {
|
|
158
165
|
invocation_timeout: {
|
|
@@ -205,6 +212,13 @@ var quotaConfigs = {
|
|
|
205
212
|
kind: "bot",
|
|
206
213
|
category: "calls"
|
|
207
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
|
+
},
|
|
208
222
|
bot_ratelimit: {
|
|
209
223
|
name: "Bot Ratelimit",
|
|
210
224
|
description: "Maximum number of times a bot can be invoked in a minute.",
|
|
@@ -218,6 +232,13 @@ var quotaConfigs = {
|
|
|
218
232
|
default: 20,
|
|
219
233
|
kind: "workspace",
|
|
220
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"
|
|
221
242
|
}
|
|
222
243
|
};
|
|
223
244
|
export {
|
package/package.json
CHANGED
package/src/limits.ts
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>
|