@bpinternal/const 0.0.7 → 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 +9 -5
- package/dist/index.mjs +9 -5
- package/package.json +1 -1
- package/src/limits.ts +16 -20
- 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
|
|
@@ -181,7 +177,8 @@ var quotaTypes = [
|
|
|
181
177
|
"knowledgebase_vector_count",
|
|
182
178
|
"bot_ratelimit",
|
|
183
179
|
"table_row_count",
|
|
184
|
-
"workspace_member_count"
|
|
180
|
+
"workspace_member_count",
|
|
181
|
+
"integrations_owned_count"
|
|
185
182
|
];
|
|
186
183
|
var quotaConfigs = {
|
|
187
184
|
invocation_timeout: {
|
|
@@ -240,6 +237,13 @@ var quotaConfigs = {
|
|
|
240
237
|
default: 100,
|
|
241
238
|
kind: "bot",
|
|
242
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"
|
|
243
247
|
}
|
|
244
248
|
};
|
|
245
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
|
|
@@ -151,7 +147,8 @@ var quotaTypes = [
|
|
|
151
147
|
"knowledgebase_vector_count",
|
|
152
148
|
"bot_ratelimit",
|
|
153
149
|
"table_row_count",
|
|
154
|
-
"workspace_member_count"
|
|
150
|
+
"workspace_member_count",
|
|
151
|
+
"integrations_owned_count"
|
|
155
152
|
];
|
|
156
153
|
var quotaConfigs = {
|
|
157
154
|
invocation_timeout: {
|
|
@@ -210,6 +207,13 @@ var quotaConfigs = {
|
|
|
210
207
|
default: 100,
|
|
211
208
|
kind: "bot",
|
|
212
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"
|
|
213
217
|
}
|
|
214
218
|
};
|
|
215
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/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>
|