@bpinternal/const 0.0.7 → 0.0.9
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 -5
- package/dist/index.mjs +13 -5
- package/package.json +1 -1
- package/src/limits.ts +16 -20
- package/src/prefixes.ts +6 -0
- 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
|
|
@@ -119,6 +115,8 @@ var prefixToObjectMap = {
|
|
|
119
115
|
iak: "integrationApiKey",
|
|
120
116
|
int: "integration",
|
|
121
117
|
intver: "integrationVersion",
|
|
118
|
+
iss: "issue",
|
|
119
|
+
issevt: "issueEvent",
|
|
122
120
|
kb: "knowledgeBase",
|
|
123
121
|
limit: "limit",
|
|
124
122
|
media: "media",
|
|
@@ -153,6 +151,8 @@ var objectToPrefixMap = {
|
|
|
153
151
|
integration: "int",
|
|
154
152
|
integrationVersion: "intver",
|
|
155
153
|
integrationApiKey: "iak",
|
|
154
|
+
issue: "iss",
|
|
155
|
+
issueEvent: "issevt",
|
|
156
156
|
knowledgeBase: "kb",
|
|
157
157
|
limit: "limit",
|
|
158
158
|
media: "media",
|
|
@@ -181,7 +181,8 @@ var quotaTypes = [
|
|
|
181
181
|
"knowledgebase_vector_count",
|
|
182
182
|
"bot_ratelimit",
|
|
183
183
|
"table_row_count",
|
|
184
|
-
"workspace_member_count"
|
|
184
|
+
"workspace_member_count",
|
|
185
|
+
"integrations_owned_count"
|
|
185
186
|
];
|
|
186
187
|
var quotaConfigs = {
|
|
187
188
|
invocation_timeout: {
|
|
@@ -240,6 +241,13 @@ var quotaConfigs = {
|
|
|
240
241
|
default: 100,
|
|
241
242
|
kind: "bot",
|
|
242
243
|
category: "ratelimit"
|
|
244
|
+
},
|
|
245
|
+
integrations_owned_count: {
|
|
246
|
+
name: "Owned Integrations Count",
|
|
247
|
+
description: "Maximum number of integrations that can be created.",
|
|
248
|
+
default: 20,
|
|
249
|
+
kind: "workspace",
|
|
250
|
+
category: "count"
|
|
243
251
|
}
|
|
244
252
|
};
|
|
245
253
|
// 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
|
|
@@ -89,6 +85,8 @@ var prefixToObjectMap = {
|
|
|
89
85
|
iak: "integrationApiKey",
|
|
90
86
|
int: "integration",
|
|
91
87
|
intver: "integrationVersion",
|
|
88
|
+
iss: "issue",
|
|
89
|
+
issevt: "issueEvent",
|
|
92
90
|
kb: "knowledgeBase",
|
|
93
91
|
limit: "limit",
|
|
94
92
|
media: "media",
|
|
@@ -123,6 +121,8 @@ var objectToPrefixMap = {
|
|
|
123
121
|
integration: "int",
|
|
124
122
|
integrationVersion: "intver",
|
|
125
123
|
integrationApiKey: "iak",
|
|
124
|
+
issue: "iss",
|
|
125
|
+
issueEvent: "issevt",
|
|
126
126
|
knowledgeBase: "kb",
|
|
127
127
|
limit: "limit",
|
|
128
128
|
media: "media",
|
|
@@ -151,7 +151,8 @@ var quotaTypes = [
|
|
|
151
151
|
"knowledgebase_vector_count",
|
|
152
152
|
"bot_ratelimit",
|
|
153
153
|
"table_row_count",
|
|
154
|
-
"workspace_member_count"
|
|
154
|
+
"workspace_member_count",
|
|
155
|
+
"integrations_owned_count"
|
|
155
156
|
];
|
|
156
157
|
var quotaConfigs = {
|
|
157
158
|
invocation_timeout: {
|
|
@@ -210,6 +211,13 @@ var quotaConfigs = {
|
|
|
210
211
|
default: 100,
|
|
211
212
|
kind: "bot",
|
|
212
213
|
category: "ratelimit"
|
|
214
|
+
},
|
|
215
|
+
integrations_owned_count: {
|
|
216
|
+
name: "Owned Integrations Count",
|
|
217
|
+
description: "Maximum number of integrations that can be created.",
|
|
218
|
+
default: 20,
|
|
219
|
+
kind: "workspace",
|
|
220
|
+
category: "count"
|
|
213
221
|
}
|
|
214
222
|
};
|
|
215
223
|
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
|
@@ -14,6 +14,8 @@ export const prefixToObjectMap = {
|
|
|
14
14
|
iak: 'integrationApiKey',
|
|
15
15
|
int: 'integration',
|
|
16
16
|
intver: 'integrationVersion',
|
|
17
|
+
iss: 'issue',
|
|
18
|
+
issevt: 'issueEvent',
|
|
17
19
|
kb: 'knowledgeBase',
|
|
18
20
|
limit: 'limit',
|
|
19
21
|
media: 'media',
|
|
@@ -49,6 +51,8 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
49
51
|
integration: 'int',
|
|
50
52
|
integrationVersion: 'intver',
|
|
51
53
|
integrationApiKey: 'iak',
|
|
54
|
+
issue: 'iss',
|
|
55
|
+
issueEvent: 'issevt',
|
|
52
56
|
knowledgeBase: 'kb',
|
|
53
57
|
limit: 'limit',
|
|
54
58
|
media: 'media',
|
|
@@ -89,6 +93,8 @@ export type FileId = Ids['FileId']
|
|
|
89
93
|
export type FlowId = Ids['FlowId']
|
|
90
94
|
export type IntegrationId = Ids['IntegrationId']
|
|
91
95
|
export type IntegrationApiKeyId = Ids['IntegrationApiKeyId']
|
|
96
|
+
export type Issue = Ids['IssueId']
|
|
97
|
+
export type IssueEvent = Ids['IssueEventId']
|
|
92
98
|
export type KnowledgeBaseId = Ids['KnowledgeBaseId']
|
|
93
99
|
export type LimitId = Ids['LimitId']
|
|
94
100
|
export type MediaId = Ids['MediaId']
|
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>
|