@bpinternal/const 0.0.5 → 0.0.7
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 +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
- package/src/prefixes.ts +4 -2
- package/src/quotas.ts +12 -12
package/dist/index.cjs
CHANGED
|
@@ -117,7 +117,8 @@ var prefixToObjectMap = {
|
|
|
117
117
|
file: "file",
|
|
118
118
|
flow: "flow",
|
|
119
119
|
iak: "integrationApiKey",
|
|
120
|
-
|
|
120
|
+
int: "integration",
|
|
121
|
+
intver: "integrationVersion",
|
|
121
122
|
kb: "knowledgeBase",
|
|
122
123
|
limit: "limit",
|
|
123
124
|
media: "media",
|
|
@@ -149,7 +150,8 @@ var objectToPrefixMap = {
|
|
|
149
150
|
event: "evt",
|
|
150
151
|
file: "file",
|
|
151
152
|
flow: "flow",
|
|
152
|
-
integration: "
|
|
153
|
+
integration: "int",
|
|
154
|
+
integrationVersion: "intver",
|
|
153
155
|
integrationApiKey: "iak",
|
|
154
156
|
knowledgeBase: "kb",
|
|
155
157
|
limit: "limit",
|
package/dist/index.mjs
CHANGED
|
@@ -87,7 +87,8 @@ var prefixToObjectMap = {
|
|
|
87
87
|
file: "file",
|
|
88
88
|
flow: "flow",
|
|
89
89
|
iak: "integrationApiKey",
|
|
90
|
-
|
|
90
|
+
int: "integration",
|
|
91
|
+
intver: "integrationVersion",
|
|
91
92
|
kb: "knowledgeBase",
|
|
92
93
|
limit: "limit",
|
|
93
94
|
media: "media",
|
|
@@ -119,7 +120,8 @@ var objectToPrefixMap = {
|
|
|
119
120
|
event: "evt",
|
|
120
121
|
file: "file",
|
|
121
122
|
flow: "flow",
|
|
122
|
-
integration: "
|
|
123
|
+
integration: "int",
|
|
124
|
+
integrationVersion: "intver",
|
|
123
125
|
integrationApiKey: "iak",
|
|
124
126
|
knowledgeBase: "kb",
|
|
125
127
|
limit: "limit",
|
package/package.json
CHANGED
package/src/prefixes.ts
CHANGED
|
@@ -12,7 +12,8 @@ export const prefixToObjectMap = {
|
|
|
12
12
|
file: 'file',
|
|
13
13
|
flow: 'flow',
|
|
14
14
|
iak: 'integrationApiKey',
|
|
15
|
-
|
|
15
|
+
int: 'integration',
|
|
16
|
+
intver: 'integrationVersion',
|
|
16
17
|
kb: 'knowledgeBase',
|
|
17
18
|
limit: 'limit',
|
|
18
19
|
media: 'media',
|
|
@@ -45,7 +46,8 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
45
46
|
event: 'evt',
|
|
46
47
|
file: 'file',
|
|
47
48
|
flow: 'flow',
|
|
48
|
-
integration: '
|
|
49
|
+
integration: 'int',
|
|
50
|
+
integrationVersion: 'intver',
|
|
49
51
|
integrationApiKey: 'iak',
|
|
50
52
|
knowledgeBase: 'kb',
|
|
51
53
|
limit: 'limit',
|
package/src/quotas.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Quota = {
|
|
1
|
+
export type Quota = {
|
|
2
2
|
/**
|
|
3
3
|
* Friendly name of the usage type.
|
|
4
4
|
*/
|
|
@@ -23,7 +23,7 @@ type Quota = {
|
|
|
23
23
|
|
|
24
24
|
export type QuotaKind = 'workspace' | 'bot'
|
|
25
25
|
export type QuotaCategory = 'ratelimit' | 'count' | 'calls' | 'timeout'
|
|
26
|
-
export type QuotaType = typeof quotaTypes[number]
|
|
26
|
+
export type QuotaType = (typeof quotaTypes)[number]
|
|
27
27
|
|
|
28
28
|
export const quotaTypes = [
|
|
29
29
|
'invocation_timeout',
|
|
@@ -33,7 +33,7 @@ export const quotaTypes = [
|
|
|
33
33
|
'knowledgebase_vector_count',
|
|
34
34
|
'bot_ratelimit',
|
|
35
35
|
'table_row_count',
|
|
36
|
-
'workspace_member_count'
|
|
36
|
+
'workspace_member_count'
|
|
37
37
|
] as const
|
|
38
38
|
|
|
39
39
|
export const quotaConfigs = {
|
|
@@ -42,55 +42,55 @@ export const quotaConfigs = {
|
|
|
42
42
|
description: 'Maximum time in milliseconds a bot can run before timing out.',
|
|
43
43
|
default: 60_000,
|
|
44
44
|
kind: 'bot',
|
|
45
|
-
category: 'timeout'
|
|
45
|
+
category: 'timeout'
|
|
46
46
|
},
|
|
47
47
|
storage_count: {
|
|
48
48
|
name: 'Storage Count',
|
|
49
49
|
description: 'Maximum number of storage bytes that can be stored.',
|
|
50
50
|
default: 104_857_600, // 100 MB
|
|
51
51
|
kind: 'bot',
|
|
52
|
-
category: 'count'
|
|
52
|
+
category: 'count'
|
|
53
53
|
},
|
|
54
54
|
bot_count: {
|
|
55
55
|
name: 'Bot Count',
|
|
56
56
|
description: 'Maximum number of bots that can be created.',
|
|
57
57
|
default: 5,
|
|
58
58
|
kind: 'workspace',
|
|
59
|
-
category: 'count'
|
|
59
|
+
category: 'count'
|
|
60
60
|
},
|
|
61
61
|
workspace_member_count: {
|
|
62
62
|
name: 'Workspace Member Count',
|
|
63
63
|
description: 'Maximum number of members that can be added to a workspace.',
|
|
64
64
|
default: 3,
|
|
65
65
|
kind: 'workspace',
|
|
66
|
-
category: 'count'
|
|
66
|
+
category: 'count'
|
|
67
67
|
},
|
|
68
68
|
knowledgebase_vector_count: {
|
|
69
69
|
name: 'Knowledgebase Vector Count',
|
|
70
70
|
description: 'Maximum number of knowledgebase vectors that can be created.',
|
|
71
71
|
default: 5_000,
|
|
72
72
|
kind: 'bot',
|
|
73
|
-
category: 'count'
|
|
73
|
+
category: 'count'
|
|
74
74
|
},
|
|
75
75
|
table_row_count: {
|
|
76
76
|
name: 'Table Row Count',
|
|
77
77
|
description: 'Maximum number of rows that can be stored in a table.',
|
|
78
78
|
default: 5_000,
|
|
79
79
|
kind: 'bot',
|
|
80
|
-
category: 'count'
|
|
80
|
+
category: 'count'
|
|
81
81
|
},
|
|
82
82
|
invocation_calls: {
|
|
83
83
|
name: 'Invocation Calls',
|
|
84
84
|
description: 'Maximum number of times a bot can be invoked in a month.',
|
|
85
85
|
default: 25_000,
|
|
86
86
|
kind: 'bot',
|
|
87
|
-
category: 'calls'
|
|
87
|
+
category: 'calls'
|
|
88
88
|
},
|
|
89
89
|
bot_ratelimit: {
|
|
90
90
|
name: 'Bot Ratelimit',
|
|
91
91
|
description: 'Maximum number of times a bot can be invoked in a minute.',
|
|
92
92
|
default: 100,
|
|
93
93
|
kind: 'bot',
|
|
94
|
-
category: 'ratelimit'
|
|
95
|
-
}
|
|
94
|
+
category: 'ratelimit'
|
|
95
|
+
}
|
|
96
96
|
} as const satisfies Record<QuotaType, Quota>
|