@bpinternal/const 0.0.2 → 0.0.4
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 +70 -22
- package/dist/index.mjs +70 -22
- package/package.json +1 -1
- package/src/limits.ts +77 -17
- package/src/prefixes.ts +6 -2
package/dist/index.cjs
CHANGED
|
@@ -30,28 +30,76 @@ module.exports = __toCommonJS(src_exports);
|
|
|
30
30
|
|
|
31
31
|
// src/limits.ts
|
|
32
32
|
var limitConfigs = {
|
|
33
|
-
bot_configuration_bytes:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
33
|
+
bot_configuration_bytes: {
|
|
34
|
+
value: 20480,
|
|
35
|
+
// 20 KB
|
|
36
|
+
unit: "bytes"
|
|
37
|
+
},
|
|
38
|
+
bot_installed_integrations_count: {
|
|
39
|
+
value: 30,
|
|
40
|
+
unit: "count"
|
|
41
|
+
},
|
|
42
|
+
bot_integration_configuration_bytes: {
|
|
43
|
+
value: 20480,
|
|
44
|
+
// 20 KB
|
|
45
|
+
unit: "bytes"
|
|
46
|
+
},
|
|
47
|
+
bot_recurring_event_count: {
|
|
48
|
+
value: 5,
|
|
49
|
+
unit: "count"
|
|
50
|
+
},
|
|
51
|
+
bot_recurring_event_payload_bytes: {
|
|
52
|
+
value: 131072,
|
|
53
|
+
// 128 KB
|
|
54
|
+
unit: "bytes"
|
|
55
|
+
},
|
|
56
|
+
event_definition_count: {
|
|
57
|
+
value: 20,
|
|
58
|
+
unit: "count"
|
|
59
|
+
},
|
|
60
|
+
integration_channel_count: {
|
|
61
|
+
value: 10,
|
|
62
|
+
unit: "count"
|
|
63
|
+
},
|
|
64
|
+
integration_channel_message_type_count: {
|
|
65
|
+
value: 20,
|
|
66
|
+
unit: "count"
|
|
67
|
+
},
|
|
68
|
+
integration_identifier_count: {
|
|
69
|
+
value: 50,
|
|
70
|
+
unit: "count"
|
|
71
|
+
},
|
|
72
|
+
integration_version_count: {
|
|
73
|
+
value: 50,
|
|
74
|
+
unit: "count"
|
|
75
|
+
},
|
|
76
|
+
integrations_owned_count: {
|
|
77
|
+
value: 20,
|
|
78
|
+
unit: "count"
|
|
79
|
+
},
|
|
80
|
+
message_payload_bytes: {
|
|
81
|
+
value: 131072,
|
|
82
|
+
// 128 KB
|
|
83
|
+
unit: "bytes"
|
|
84
|
+
},
|
|
85
|
+
schema_bytes: {
|
|
86
|
+
value: 102400,
|
|
87
|
+
// 100 KB
|
|
88
|
+
unit: "bytes"
|
|
89
|
+
},
|
|
90
|
+
state_definition_count: {
|
|
91
|
+
value: 5,
|
|
92
|
+
unit: "count"
|
|
93
|
+
},
|
|
94
|
+
state_item_payload_bytes: {
|
|
95
|
+
value: 131072,
|
|
96
|
+
// 128 KB
|
|
97
|
+
unit: "bytes"
|
|
98
|
+
},
|
|
99
|
+
tag_definition_count: {
|
|
100
|
+
value: 50,
|
|
101
|
+
unit: "count"
|
|
102
|
+
}
|
|
55
103
|
};
|
|
56
104
|
|
|
57
105
|
// src/prefixes.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,75 @@
|
|
|
1
1
|
// src/limits.ts
|
|
2
2
|
var limitConfigs = {
|
|
3
|
-
bot_configuration_bytes:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
3
|
+
bot_configuration_bytes: {
|
|
4
|
+
value: 20480,
|
|
5
|
+
// 20 KB
|
|
6
|
+
unit: "bytes"
|
|
7
|
+
},
|
|
8
|
+
bot_installed_integrations_count: {
|
|
9
|
+
value: 30,
|
|
10
|
+
unit: "count"
|
|
11
|
+
},
|
|
12
|
+
bot_integration_configuration_bytes: {
|
|
13
|
+
value: 20480,
|
|
14
|
+
// 20 KB
|
|
15
|
+
unit: "bytes"
|
|
16
|
+
},
|
|
17
|
+
bot_recurring_event_count: {
|
|
18
|
+
value: 5,
|
|
19
|
+
unit: "count"
|
|
20
|
+
},
|
|
21
|
+
bot_recurring_event_payload_bytes: {
|
|
22
|
+
value: 131072,
|
|
23
|
+
// 128 KB
|
|
24
|
+
unit: "bytes"
|
|
25
|
+
},
|
|
26
|
+
event_definition_count: {
|
|
27
|
+
value: 20,
|
|
28
|
+
unit: "count"
|
|
29
|
+
},
|
|
30
|
+
integration_channel_count: {
|
|
31
|
+
value: 10,
|
|
32
|
+
unit: "count"
|
|
33
|
+
},
|
|
34
|
+
integration_channel_message_type_count: {
|
|
35
|
+
value: 20,
|
|
36
|
+
unit: "count"
|
|
37
|
+
},
|
|
38
|
+
integration_identifier_count: {
|
|
39
|
+
value: 50,
|
|
40
|
+
unit: "count"
|
|
41
|
+
},
|
|
42
|
+
integration_version_count: {
|
|
43
|
+
value: 50,
|
|
44
|
+
unit: "count"
|
|
45
|
+
},
|
|
46
|
+
integrations_owned_count: {
|
|
47
|
+
value: 20,
|
|
48
|
+
unit: "count"
|
|
49
|
+
},
|
|
50
|
+
message_payload_bytes: {
|
|
51
|
+
value: 131072,
|
|
52
|
+
// 128 KB
|
|
53
|
+
unit: "bytes"
|
|
54
|
+
},
|
|
55
|
+
schema_bytes: {
|
|
56
|
+
value: 102400,
|
|
57
|
+
// 100 KB
|
|
58
|
+
unit: "bytes"
|
|
59
|
+
},
|
|
60
|
+
state_definition_count: {
|
|
61
|
+
value: 5,
|
|
62
|
+
unit: "count"
|
|
63
|
+
},
|
|
64
|
+
state_item_payload_bytes: {
|
|
65
|
+
value: 131072,
|
|
66
|
+
// 128 KB
|
|
67
|
+
unit: "bytes"
|
|
68
|
+
},
|
|
69
|
+
tag_definition_count: {
|
|
70
|
+
value: 50,
|
|
71
|
+
unit: "count"
|
|
72
|
+
}
|
|
25
73
|
};
|
|
26
74
|
|
|
27
75
|
// src/prefixes.ts
|
package/package.json
CHANGED
package/src/limits.ts
CHANGED
|
@@ -1,20 +1,80 @@
|
|
|
1
|
+
type Limit = {
|
|
2
|
+
/**
|
|
3
|
+
* The maximum value for the limit.
|
|
4
|
+
*/
|
|
5
|
+
value: number
|
|
6
|
+
/**
|
|
7
|
+
* The unit of the limit.
|
|
8
|
+
*/
|
|
9
|
+
unit: LimitUnit
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
export type LimitType = keyof typeof limitConfigs
|
|
13
|
+
export type LimitUnit = 'count' | 'bytes'
|
|
2
14
|
|
|
3
15
|
export const limitConfigs = {
|
|
4
|
-
bot_configuration_bytes:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
bot_configuration_bytes: {
|
|
17
|
+
value: 20480, // 20 KB
|
|
18
|
+
unit: 'bytes',
|
|
19
|
+
},
|
|
20
|
+
bot_installed_integrations_count: {
|
|
21
|
+
value: 30,
|
|
22
|
+
unit: 'count',
|
|
23
|
+
},
|
|
24
|
+
bot_integration_configuration_bytes: {
|
|
25
|
+
value: 20480, // 20 KB
|
|
26
|
+
unit: 'bytes',
|
|
27
|
+
},
|
|
28
|
+
bot_recurring_event_count: {
|
|
29
|
+
value: 5,
|
|
30
|
+
unit: 'count',
|
|
31
|
+
},
|
|
32
|
+
bot_recurring_event_payload_bytes: {
|
|
33
|
+
value: 131072, // 128 KB
|
|
34
|
+
unit: 'bytes',
|
|
35
|
+
},
|
|
36
|
+
event_definition_count: {
|
|
37
|
+
value: 20,
|
|
38
|
+
unit: 'count',
|
|
39
|
+
},
|
|
40
|
+
integration_channel_count: {
|
|
41
|
+
value: 10,
|
|
42
|
+
unit: 'count',
|
|
43
|
+
},
|
|
44
|
+
integration_channel_message_type_count: {
|
|
45
|
+
value: 20,
|
|
46
|
+
unit: 'count',
|
|
47
|
+
},
|
|
48
|
+
integration_identifier_count: {
|
|
49
|
+
value: 50,
|
|
50
|
+
unit: 'count',
|
|
51
|
+
},
|
|
52
|
+
integration_version_count: {
|
|
53
|
+
value: 50,
|
|
54
|
+
unit: 'count',
|
|
55
|
+
},
|
|
56
|
+
integrations_owned_count: {
|
|
57
|
+
value: 20,
|
|
58
|
+
unit: 'count',
|
|
59
|
+
},
|
|
60
|
+
message_payload_bytes: {
|
|
61
|
+
value: 131072, // 128 KB
|
|
62
|
+
unit: 'bytes',
|
|
63
|
+
},
|
|
64
|
+
schema_bytes: {
|
|
65
|
+
value: 102400, // 100 KB
|
|
66
|
+
unit: 'bytes',
|
|
67
|
+
},
|
|
68
|
+
state_definition_count: {
|
|
69
|
+
value: 5,
|
|
70
|
+
unit: 'count',
|
|
71
|
+
},
|
|
72
|
+
state_item_payload_bytes: {
|
|
73
|
+
value: 131072, // 128 KB
|
|
74
|
+
unit: 'bytes',
|
|
75
|
+
},
|
|
76
|
+
tag_definition_count: {
|
|
77
|
+
value: 50,
|
|
78
|
+
unit: 'count',
|
|
79
|
+
},
|
|
80
|
+
} as const satisfies Record<string, Limit>
|
package/src/prefixes.ts
CHANGED
|
@@ -63,12 +63,16 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
63
63
|
usage: 'usage',
|
|
64
64
|
user: 'user',
|
|
65
65
|
webhook: 'webhook',
|
|
66
|
-
workspace: 'wkspace'
|
|
66
|
+
workspace: 'wkspace'
|
|
67
67
|
} as const
|
|
68
68
|
|
|
69
|
-
export type Prefixes = typeof objectToPrefixMap[keyof typeof objectToPrefixMap]
|
|
69
|
+
export type Prefixes = (typeof objectToPrefixMap)[keyof typeof objectToPrefixMap]
|
|
70
70
|
export type Objects = keyof typeof objectToPrefixMap
|
|
71
71
|
|
|
72
|
+
export type Ids = {
|
|
73
|
+
[Id in Objects as `${Capitalize<Id>}Id`]: `${Id}_${string}`
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
type Reverser<T extends Record<PropertyKey, PropertyKey>> = {
|
|
73
77
|
[P in keyof T as T[P]]: P
|
|
74
78
|
}
|