@bpinternal/const 0.0.6 → 0.0.8
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 -7
- package/dist/index.mjs +13 -7
- package/package.json +1 -1
- package/src/limits.ts +16 -20
- package/src/prefixes.ts +4 -2
- package/src/quotas.ts +10 -2
package/dist/index.cjs
CHANGED
|
@@ -73,10 +73,6 @@ var limitConfigs = {
|
|
|
73
73
|
value: 50,
|
|
74
74
|
unit: "count"
|
|
75
75
|
},
|
|
76
|
-
integrations_owned_count: {
|
|
77
|
-
value: 20,
|
|
78
|
-
unit: "count"
|
|
79
|
-
},
|
|
80
76
|
message_payload_bytes: {
|
|
81
77
|
value: 131072,
|
|
82
78
|
// 128 KB
|
|
@@ -117,7 +113,8 @@ var prefixToObjectMap = {
|
|
|
117
113
|
file: "file",
|
|
118
114
|
flow: "flow",
|
|
119
115
|
iak: "integrationApiKey",
|
|
120
|
-
|
|
116
|
+
int: "integration",
|
|
117
|
+
intver: "integrationVersion",
|
|
121
118
|
kb: "knowledgeBase",
|
|
122
119
|
limit: "limit",
|
|
123
120
|
media: "media",
|
|
@@ -149,7 +146,8 @@ var objectToPrefixMap = {
|
|
|
149
146
|
event: "evt",
|
|
150
147
|
file: "file",
|
|
151
148
|
flow: "flow",
|
|
152
|
-
integration: "
|
|
149
|
+
integration: "int",
|
|
150
|
+
integrationVersion: "intver",
|
|
153
151
|
integrationApiKey: "iak",
|
|
154
152
|
knowledgeBase: "kb",
|
|
155
153
|
limit: "limit",
|
|
@@ -179,7 +177,8 @@ var quotaTypes = [
|
|
|
179
177
|
"knowledgebase_vector_count",
|
|
180
178
|
"bot_ratelimit",
|
|
181
179
|
"table_row_count",
|
|
182
|
-
"workspace_member_count"
|
|
180
|
+
"workspace_member_count",
|
|
181
|
+
"integrations_owned_count"
|
|
183
182
|
];
|
|
184
183
|
var quotaConfigs = {
|
|
185
184
|
invocation_timeout: {
|
|
@@ -238,6 +237,13 @@ var quotaConfigs = {
|
|
|
238
237
|
default: 100,
|
|
239
238
|
kind: "bot",
|
|
240
239
|
category: "ratelimit"
|
|
240
|
+
},
|
|
241
|
+
integrations_owned_count: {
|
|
242
|
+
name: "Owned Integrations Count",
|
|
243
|
+
description: "Maximum number of integrations that can be created.",
|
|
244
|
+
default: 20,
|
|
245
|
+
kind: "workspace",
|
|
246
|
+
category: "count"
|
|
241
247
|
}
|
|
242
248
|
};
|
|
243
249
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -43,10 +43,6 @@ var limitConfigs = {
|
|
|
43
43
|
value: 50,
|
|
44
44
|
unit: "count"
|
|
45
45
|
},
|
|
46
|
-
integrations_owned_count: {
|
|
47
|
-
value: 20,
|
|
48
|
-
unit: "count"
|
|
49
|
-
},
|
|
50
46
|
message_payload_bytes: {
|
|
51
47
|
value: 131072,
|
|
52
48
|
// 128 KB
|
|
@@ -87,7 +83,8 @@ var prefixToObjectMap = {
|
|
|
87
83
|
file: "file",
|
|
88
84
|
flow: "flow",
|
|
89
85
|
iak: "integrationApiKey",
|
|
90
|
-
|
|
86
|
+
int: "integration",
|
|
87
|
+
intver: "integrationVersion",
|
|
91
88
|
kb: "knowledgeBase",
|
|
92
89
|
limit: "limit",
|
|
93
90
|
media: "media",
|
|
@@ -119,7 +116,8 @@ var objectToPrefixMap = {
|
|
|
119
116
|
event: "evt",
|
|
120
117
|
file: "file",
|
|
121
118
|
flow: "flow",
|
|
122
|
-
integration: "
|
|
119
|
+
integration: "int",
|
|
120
|
+
integrationVersion: "intver",
|
|
123
121
|
integrationApiKey: "iak",
|
|
124
122
|
knowledgeBase: "kb",
|
|
125
123
|
limit: "limit",
|
|
@@ -149,7 +147,8 @@ var quotaTypes = [
|
|
|
149
147
|
"knowledgebase_vector_count",
|
|
150
148
|
"bot_ratelimit",
|
|
151
149
|
"table_row_count",
|
|
152
|
-
"workspace_member_count"
|
|
150
|
+
"workspace_member_count",
|
|
151
|
+
"integrations_owned_count"
|
|
153
152
|
];
|
|
154
153
|
var quotaConfigs = {
|
|
155
154
|
invocation_timeout: {
|
|
@@ -208,6 +207,13 @@ var quotaConfigs = {
|
|
|
208
207
|
default: 100,
|
|
209
208
|
kind: "bot",
|
|
210
209
|
category: "ratelimit"
|
|
210
|
+
},
|
|
211
|
+
integrations_owned_count: {
|
|
212
|
+
name: "Owned Integrations Count",
|
|
213
|
+
description: "Maximum number of integrations that can be created.",
|
|
214
|
+
default: 20,
|
|
215
|
+
kind: "workspace",
|
|
216
|
+
category: "count"
|
|
211
217
|
}
|
|
212
218
|
};
|
|
213
219
|
export {
|
package/package.json
CHANGED
package/src/limits.ts
CHANGED
|
@@ -15,66 +15,62 @@ export type LimitUnit = 'count' | 'bytes'
|
|
|
15
15
|
export const limitConfigs = {
|
|
16
16
|
bot_configuration_bytes: {
|
|
17
17
|
value: 20480, // 20 KB
|
|
18
|
-
unit: 'bytes'
|
|
18
|
+
unit: 'bytes'
|
|
19
19
|
},
|
|
20
20
|
bot_installed_integrations_count: {
|
|
21
21
|
value: 30,
|
|
22
|
-
unit: 'count'
|
|
22
|
+
unit: 'count'
|
|
23
23
|
},
|
|
24
24
|
bot_integration_configuration_bytes: {
|
|
25
25
|
value: 20480, // 20 KB
|
|
26
|
-
unit: 'bytes'
|
|
26
|
+
unit: 'bytes'
|
|
27
27
|
},
|
|
28
28
|
bot_recurring_event_count: {
|
|
29
29
|
value: 5,
|
|
30
|
-
unit: 'count'
|
|
30
|
+
unit: 'count'
|
|
31
31
|
},
|
|
32
32
|
bot_recurring_event_payload_bytes: {
|
|
33
33
|
value: 131072, // 128 KB
|
|
34
|
-
unit: 'bytes'
|
|
34
|
+
unit: 'bytes'
|
|
35
35
|
},
|
|
36
36
|
event_definition_count: {
|
|
37
37
|
value: 20,
|
|
38
|
-
unit: 'count'
|
|
38
|
+
unit: 'count'
|
|
39
39
|
},
|
|
40
40
|
integration_channel_count: {
|
|
41
41
|
value: 10,
|
|
42
|
-
unit: 'count'
|
|
42
|
+
unit: 'count'
|
|
43
43
|
},
|
|
44
44
|
integration_channel_message_type_count: {
|
|
45
45
|
value: 20,
|
|
46
|
-
unit: 'count'
|
|
46
|
+
unit: 'count'
|
|
47
47
|
},
|
|
48
48
|
integration_identifier_count: {
|
|
49
49
|
value: 50,
|
|
50
|
-
unit: 'count'
|
|
50
|
+
unit: 'count'
|
|
51
51
|
},
|
|
52
52
|
integration_version_count: {
|
|
53
53
|
value: 50,
|
|
54
|
-
unit: 'count'
|
|
55
|
-
},
|
|
56
|
-
integrations_owned_count: {
|
|
57
|
-
value: 20,
|
|
58
|
-
unit: 'count',
|
|
54
|
+
unit: 'count'
|
|
59
55
|
},
|
|
60
56
|
message_payload_bytes: {
|
|
61
57
|
value: 131072, // 128 KB
|
|
62
|
-
unit: 'bytes'
|
|
58
|
+
unit: 'bytes'
|
|
63
59
|
},
|
|
64
60
|
schema_bytes: {
|
|
65
61
|
value: 102400, // 100 KB
|
|
66
|
-
unit: 'bytes'
|
|
62
|
+
unit: 'bytes'
|
|
67
63
|
},
|
|
68
64
|
state_definition_count: {
|
|
69
65
|
value: 5,
|
|
70
|
-
unit: 'count'
|
|
66
|
+
unit: 'count'
|
|
71
67
|
},
|
|
72
68
|
state_item_payload_bytes: {
|
|
73
69
|
value: 131072, // 128 KB
|
|
74
|
-
unit: 'bytes'
|
|
70
|
+
unit: 'bytes'
|
|
75
71
|
},
|
|
76
72
|
tag_definition_count: {
|
|
77
73
|
value: 50,
|
|
78
|
-
unit: 'count'
|
|
79
|
-
}
|
|
74
|
+
unit: 'count'
|
|
75
|
+
}
|
|
80
76
|
} as const satisfies Record<string, Limit>
|
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
|
@@ -33,8 +33,9 @@ export const quotaTypes = [
|
|
|
33
33
|
'knowledgebase_vector_count',
|
|
34
34
|
'bot_ratelimit',
|
|
35
35
|
'table_row_count',
|
|
36
|
-
'workspace_member_count'
|
|
37
|
-
|
|
36
|
+
'workspace_member_count',
|
|
37
|
+
'integrations_owned_count'
|
|
38
|
+
] as const satisfies Readonly<string[]>
|
|
38
39
|
|
|
39
40
|
export const quotaConfigs = {
|
|
40
41
|
invocation_timeout: {
|
|
@@ -92,5 +93,12 @@ export const quotaConfigs = {
|
|
|
92
93
|
default: 100,
|
|
93
94
|
kind: 'bot',
|
|
94
95
|
category: 'ratelimit'
|
|
96
|
+
},
|
|
97
|
+
integrations_owned_count: {
|
|
98
|
+
name: 'Owned Integrations Count',
|
|
99
|
+
description: 'Maximum number of integrations that can be created.',
|
|
100
|
+
default: 20,
|
|
101
|
+
kind: 'workspace',
|
|
102
|
+
category: 'count'
|
|
95
103
|
}
|
|
96
104
|
} as const satisfies Record<QuotaType, Quota>
|