@bpinternal/const 0.0.21 → 0.0.23
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 +14 -1
- package/dist/index.mjs +14 -1
- package/package.json +1 -1
- package/src/prefixes.ts +6 -0
- package/src/quotas.ts +9 -0
package/dist/index.cjs
CHANGED
|
@@ -105,6 +105,8 @@ var limitConfigs = {
|
|
|
105
105
|
|
|
106
106
|
// src/prefixes.ts
|
|
107
107
|
var prefixToObjectMap = {
|
|
108
|
+
accnt: "account",
|
|
109
|
+
accntpf: "accountPreference",
|
|
108
110
|
action: "action",
|
|
109
111
|
anlytic: "analytics",
|
|
110
112
|
audit: "audit",
|
|
@@ -145,6 +147,8 @@ var prefixToObjectMap = {
|
|
|
145
147
|
wkspace: "workspace"
|
|
146
148
|
};
|
|
147
149
|
var objectToPrefixMap = {
|
|
150
|
+
account: "accnt",
|
|
151
|
+
accountPreference: "accntpf",
|
|
148
152
|
action: "action",
|
|
149
153
|
analytics: "anlytic",
|
|
150
154
|
audit: "audit",
|
|
@@ -198,7 +202,8 @@ var quotaTypes = [
|
|
|
198
202
|
"integrations_owned_count",
|
|
199
203
|
"ai_spend",
|
|
200
204
|
"openai_spend",
|
|
201
|
-
"bing_search_spend"
|
|
205
|
+
"bing_search_spend",
|
|
206
|
+
"always_alive"
|
|
202
207
|
];
|
|
203
208
|
var quotaConfigs = {
|
|
204
209
|
invocation_timeout: {
|
|
@@ -300,6 +305,14 @@ var quotaConfigs = {
|
|
|
300
305
|
category: "credit",
|
|
301
306
|
trackUsagePerBot: true,
|
|
302
307
|
parent: "ai_spend"
|
|
308
|
+
},
|
|
309
|
+
always_alive: {
|
|
310
|
+
name: "Always Alive",
|
|
311
|
+
description: "Maximum number of bots that can be in always alive mode.",
|
|
312
|
+
default: 0,
|
|
313
|
+
kind: "workspace",
|
|
314
|
+
category: "count",
|
|
315
|
+
trackUsagePerBot: false
|
|
303
316
|
}
|
|
304
317
|
};
|
|
305
318
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -75,6 +75,8 @@ var limitConfigs = {
|
|
|
75
75
|
|
|
76
76
|
// src/prefixes.ts
|
|
77
77
|
var prefixToObjectMap = {
|
|
78
|
+
accnt: "account",
|
|
79
|
+
accntpf: "accountPreference",
|
|
78
80
|
action: "action",
|
|
79
81
|
anlytic: "analytics",
|
|
80
82
|
audit: "audit",
|
|
@@ -115,6 +117,8 @@ var prefixToObjectMap = {
|
|
|
115
117
|
wkspace: "workspace"
|
|
116
118
|
};
|
|
117
119
|
var objectToPrefixMap = {
|
|
120
|
+
account: "accnt",
|
|
121
|
+
accountPreference: "accntpf",
|
|
118
122
|
action: "action",
|
|
119
123
|
analytics: "anlytic",
|
|
120
124
|
audit: "audit",
|
|
@@ -168,7 +172,8 @@ var quotaTypes = [
|
|
|
168
172
|
"integrations_owned_count",
|
|
169
173
|
"ai_spend",
|
|
170
174
|
"openai_spend",
|
|
171
|
-
"bing_search_spend"
|
|
175
|
+
"bing_search_spend",
|
|
176
|
+
"always_alive"
|
|
172
177
|
];
|
|
173
178
|
var quotaConfigs = {
|
|
174
179
|
invocation_timeout: {
|
|
@@ -270,6 +275,14 @@ var quotaConfigs = {
|
|
|
270
275
|
category: "credit",
|
|
271
276
|
trackUsagePerBot: true,
|
|
272
277
|
parent: "ai_spend"
|
|
278
|
+
},
|
|
279
|
+
always_alive: {
|
|
280
|
+
name: "Always Alive",
|
|
281
|
+
description: "Maximum number of bots that can be in always alive mode.",
|
|
282
|
+
default: 0,
|
|
283
|
+
kind: "workspace",
|
|
284
|
+
category: "count",
|
|
285
|
+
trackUsagePerBot: false
|
|
273
286
|
}
|
|
274
287
|
};
|
|
275
288
|
export {
|
package/package.json
CHANGED
package/src/prefixes.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export const prefixToObjectMap = {
|
|
2
|
+
accnt: 'account',
|
|
3
|
+
accntpf: 'accountPreference',
|
|
2
4
|
action: 'action',
|
|
3
5
|
anlytic: 'analytics',
|
|
4
6
|
audit: 'audit',
|
|
@@ -40,6 +42,8 @@ export const prefixToObjectMap = {
|
|
|
40
42
|
} as const
|
|
41
43
|
|
|
42
44
|
export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
45
|
+
account: 'accnt',
|
|
46
|
+
accountPreference: 'accntpf',
|
|
43
47
|
action: 'action',
|
|
44
48
|
analytics: 'anlytic',
|
|
45
49
|
audit: 'audit',
|
|
@@ -87,6 +91,8 @@ type Ids = {
|
|
|
87
91
|
[Id in Objects as `${Capitalize<Id>}Id`]: `${(typeof objectToPrefixMap)[Id]}_${string}`
|
|
88
92
|
}
|
|
89
93
|
|
|
94
|
+
export type AccountId = Ids['AccountId']
|
|
95
|
+
export type AccountPreferenceId = Ids['AccountPreferenceId']
|
|
90
96
|
export type ActionId = Ids['ActionId']
|
|
91
97
|
export type AnalyticsId = Ids['AnalyticsId']
|
|
92
98
|
export type AuditId = Ids['AuditId']
|
package/src/quotas.ts
CHANGED
|
@@ -46,6 +46,7 @@ export const quotaTypes = [
|
|
|
46
46
|
'ai_spend',
|
|
47
47
|
'openai_spend',
|
|
48
48
|
'bing_search_spend',
|
|
49
|
+
'always_alive',
|
|
49
50
|
] as const satisfies Readonly<string[]>
|
|
50
51
|
|
|
51
52
|
export const quotaConfigs = {
|
|
@@ -150,4 +151,12 @@ export const quotaConfigs = {
|
|
|
150
151
|
trackUsagePerBot: true,
|
|
151
152
|
parent: 'ai_spend'
|
|
152
153
|
},
|
|
154
|
+
always_alive: {
|
|
155
|
+
name: 'Always Alive',
|
|
156
|
+
description: 'Maximum number of bots that can be in always alive mode.',
|
|
157
|
+
default: 0,
|
|
158
|
+
kind: 'workspace',
|
|
159
|
+
category: 'count',
|
|
160
|
+
trackUsagePerBot: false,
|
|
161
|
+
},
|
|
153
162
|
} as const satisfies Record<QuotaType, Quota>
|