@bpinternal/const 0.0.12 → 0.0.14
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 +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +1 -1
- package/src/prefixes.ts +4 -0
- package/src/quotas.ts +9 -0
package/dist/index.cjs
CHANGED
|
@@ -110,6 +110,7 @@ var prefixToObjectMap = {
|
|
|
110
110
|
audit: "audit",
|
|
111
111
|
bak: "botApiKey",
|
|
112
112
|
bot: "bot",
|
|
113
|
+
devbot: "devBot",
|
|
113
114
|
card: "card",
|
|
114
115
|
cfg: "configuration",
|
|
115
116
|
channel: "channel",
|
|
@@ -120,6 +121,7 @@ var prefixToObjectMap = {
|
|
|
120
121
|
iak: "integrationApiKey",
|
|
121
122
|
int: "integration",
|
|
122
123
|
intver: "integrationVersion",
|
|
124
|
+
devint: "devIntegration",
|
|
123
125
|
iss: "issue",
|
|
124
126
|
issevt: "issueEvent",
|
|
125
127
|
kb: "knowledgeBase",
|
|
@@ -146,6 +148,7 @@ var objectToPrefixMap = {
|
|
|
146
148
|
analytics: "anlytic",
|
|
147
149
|
audit: "audit",
|
|
148
150
|
bot: "bot",
|
|
151
|
+
devBot: "devbot",
|
|
149
152
|
botApiKey: "bak",
|
|
150
153
|
card: "card",
|
|
151
154
|
channel: "channel",
|
|
@@ -157,6 +160,7 @@ var objectToPrefixMap = {
|
|
|
157
160
|
integration: "int",
|
|
158
161
|
integrationApiKey: "iak",
|
|
159
162
|
integrationVersion: "intver",
|
|
163
|
+
devIntegration: "devint",
|
|
160
164
|
issue: "iss",
|
|
161
165
|
issueEvent: "issevt",
|
|
162
166
|
knowledgeBase: "kb",
|
|
@@ -191,7 +195,8 @@ var quotaTypes = [
|
|
|
191
195
|
"workspace_member_count",
|
|
192
196
|
"integrations_owned_count",
|
|
193
197
|
"cognitive_calls",
|
|
194
|
-
"model_credit"
|
|
198
|
+
"model_credit",
|
|
199
|
+
"token_spend"
|
|
195
200
|
];
|
|
196
201
|
var quotaConfigs = {
|
|
197
202
|
invocation_timeout: {
|
|
@@ -271,6 +276,13 @@ var quotaConfigs = {
|
|
|
271
276
|
default: 5e3,
|
|
272
277
|
kind: "bot",
|
|
273
278
|
category: "credit"
|
|
279
|
+
},
|
|
280
|
+
token_spend: {
|
|
281
|
+
name: "Token Spend",
|
|
282
|
+
description: "Maximum amount of token spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.",
|
|
283
|
+
default: 5e9,
|
|
284
|
+
kind: "workspace",
|
|
285
|
+
category: "credit"
|
|
274
286
|
}
|
|
275
287
|
};
|
|
276
288
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -80,6 +80,7 @@ var prefixToObjectMap = {
|
|
|
80
80
|
audit: "audit",
|
|
81
81
|
bak: "botApiKey",
|
|
82
82
|
bot: "bot",
|
|
83
|
+
devbot: "devBot",
|
|
83
84
|
card: "card",
|
|
84
85
|
cfg: "configuration",
|
|
85
86
|
channel: "channel",
|
|
@@ -90,6 +91,7 @@ var prefixToObjectMap = {
|
|
|
90
91
|
iak: "integrationApiKey",
|
|
91
92
|
int: "integration",
|
|
92
93
|
intver: "integrationVersion",
|
|
94
|
+
devint: "devIntegration",
|
|
93
95
|
iss: "issue",
|
|
94
96
|
issevt: "issueEvent",
|
|
95
97
|
kb: "knowledgeBase",
|
|
@@ -116,6 +118,7 @@ var objectToPrefixMap = {
|
|
|
116
118
|
analytics: "anlytic",
|
|
117
119
|
audit: "audit",
|
|
118
120
|
bot: "bot",
|
|
121
|
+
devBot: "devbot",
|
|
119
122
|
botApiKey: "bak",
|
|
120
123
|
card: "card",
|
|
121
124
|
channel: "channel",
|
|
@@ -127,6 +130,7 @@ var objectToPrefixMap = {
|
|
|
127
130
|
integration: "int",
|
|
128
131
|
integrationApiKey: "iak",
|
|
129
132
|
integrationVersion: "intver",
|
|
133
|
+
devIntegration: "devint",
|
|
130
134
|
issue: "iss",
|
|
131
135
|
issueEvent: "issevt",
|
|
132
136
|
knowledgeBase: "kb",
|
|
@@ -161,7 +165,8 @@ var quotaTypes = [
|
|
|
161
165
|
"workspace_member_count",
|
|
162
166
|
"integrations_owned_count",
|
|
163
167
|
"cognitive_calls",
|
|
164
|
-
"model_credit"
|
|
168
|
+
"model_credit",
|
|
169
|
+
"token_spend"
|
|
165
170
|
];
|
|
166
171
|
var quotaConfigs = {
|
|
167
172
|
invocation_timeout: {
|
|
@@ -241,6 +246,13 @@ var quotaConfigs = {
|
|
|
241
246
|
default: 5e3,
|
|
242
247
|
kind: "bot",
|
|
243
248
|
category: "credit"
|
|
249
|
+
},
|
|
250
|
+
token_spend: {
|
|
251
|
+
name: "Token Spend",
|
|
252
|
+
description: "Maximum amount of token spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.",
|
|
253
|
+
default: 5e9,
|
|
254
|
+
kind: "workspace",
|
|
255
|
+
category: "credit"
|
|
244
256
|
}
|
|
245
257
|
};
|
|
246
258
|
export {
|
package/package.json
CHANGED
package/src/prefixes.ts
CHANGED
|
@@ -4,6 +4,7 @@ export const prefixToObjectMap = {
|
|
|
4
4
|
audit: 'audit',
|
|
5
5
|
bak: 'botApiKey',
|
|
6
6
|
bot: 'bot',
|
|
7
|
+
devbot: 'devBot',
|
|
7
8
|
card: 'card',
|
|
8
9
|
cfg: 'configuration',
|
|
9
10
|
channel: 'channel',
|
|
@@ -14,6 +15,7 @@ export const prefixToObjectMap = {
|
|
|
14
15
|
iak: 'integrationApiKey',
|
|
15
16
|
int: 'integration',
|
|
16
17
|
intver: 'integrationVersion',
|
|
18
|
+
devint: 'devIntegration',
|
|
17
19
|
iss: 'issue',
|
|
18
20
|
issevt: 'issueEvent',
|
|
19
21
|
kb: 'knowledgeBase',
|
|
@@ -41,6 +43,7 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
41
43
|
analytics: 'anlytic',
|
|
42
44
|
audit: 'audit',
|
|
43
45
|
bot: 'bot',
|
|
46
|
+
devBot: 'devbot',
|
|
44
47
|
botApiKey: 'bak',
|
|
45
48
|
card: 'card',
|
|
46
49
|
channel: 'channel',
|
|
@@ -52,6 +55,7 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
52
55
|
integration: 'int',
|
|
53
56
|
integrationApiKey: 'iak',
|
|
54
57
|
integrationVersion: 'intver',
|
|
58
|
+
devIntegration: 'devint',
|
|
55
59
|
issue: 'iss',
|
|
56
60
|
issueEvent: 'issevt',
|
|
57
61
|
knowledgeBase: 'kb',
|
package/src/quotas.ts
CHANGED
|
@@ -37,6 +37,7 @@ export const quotaTypes = [
|
|
|
37
37
|
'integrations_owned_count',
|
|
38
38
|
'cognitive_calls',
|
|
39
39
|
'model_credit',
|
|
40
|
+
'token_spend'
|
|
40
41
|
] as const satisfies Readonly<string[]>
|
|
41
42
|
|
|
42
43
|
export const quotaConfigs = {
|
|
@@ -117,4 +118,12 @@ export const quotaConfigs = {
|
|
|
117
118
|
kind: 'bot',
|
|
118
119
|
category: 'credit'
|
|
119
120
|
},
|
|
121
|
+
token_spend: {
|
|
122
|
+
name: 'Token Spend',
|
|
123
|
+
description:
|
|
124
|
+
'Maximum amount of token spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
|
|
125
|
+
default: 5_000_000_000,
|
|
126
|
+
kind: 'workspace',
|
|
127
|
+
category: 'credit'
|
|
128
|
+
}
|
|
120
129
|
} as const satisfies Record<QuotaType, Quota>
|