@bpinternal/const 0.0.13 → 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 CHANGED
@@ -195,7 +195,8 @@ var quotaTypes = [
195
195
  "workspace_member_count",
196
196
  "integrations_owned_count",
197
197
  "cognitive_calls",
198
- "model_credit"
198
+ "model_credit",
199
+ "token_spend"
199
200
  ];
200
201
  var quotaConfigs = {
201
202
  invocation_timeout: {
@@ -275,6 +276,13 @@ var quotaConfigs = {
275
276
  default: 5e3,
276
277
  kind: "bot",
277
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"
278
286
  }
279
287
  };
280
288
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -165,7 +165,8 @@ var quotaTypes = [
165
165
  "workspace_member_count",
166
166
  "integrations_owned_count",
167
167
  "cognitive_calls",
168
- "model_credit"
168
+ "model_credit",
169
+ "token_spend"
169
170
  ];
170
171
  var quotaConfigs = {
171
172
  invocation_timeout: {
@@ -245,6 +246,13 @@ var quotaConfigs = {
245
246
  default: 5e3,
246
247
  kind: "bot",
247
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"
248
256
  }
249
257
  };
250
258
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Constant utilities for Botpress",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.mjs",
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>