@bpinternal/const 0.2.2 → 0.3.0

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.
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.objectToPrefixMap = exports.prefixToObjectMap = void 0;
4
+ exports.prefixToObjectMap = {
5
+ accnt: 'account',
6
+ accntpf: 'accountPreference',
7
+ action: 'action',
8
+ activty: 'activity',
9
+ anlytic: 'analytics',
10
+ audit: 'audit',
11
+ bak: 'botApiKey',
12
+ bot: 'bot',
13
+ card: 'card',
14
+ cfg: 'configuration',
15
+ channel: 'channel',
16
+ conv: 'conversation',
17
+ devbot: 'devBot',
18
+ devint: 'devIntegration',
19
+ evt: 'event',
20
+ file: 'file',
21
+ flow: 'flow',
22
+ iak: 'integrationApiKey',
23
+ int: 'integration',
24
+ iface: 'interface',
25
+ ifver: 'interfaceVersion',
26
+ intver: 'integrationVersion',
27
+ iss: 'issue',
28
+ issevt: 'issueEvent',
29
+ kb: 'knowledgeBase',
30
+ limit: 'limit',
31
+ media: 'media',
32
+ msg: 'message',
33
+ node: 'node',
34
+ notif: 'notification',
35
+ pat: 'personalAccessToken',
36
+ plugin: 'plugin',
37
+ plugver: 'pluginVersion',
38
+ quota: 'quota',
39
+ recevt: 'recurringEvent',
40
+ report: 'report',
41
+ sandbox: 'sandbox',
42
+ schema: 'schema',
43
+ script: 'script',
44
+ state: 'state',
45
+ table: 'table',
46
+ tag: 'tag',
47
+ task: 'task',
48
+ usage: 'usage',
49
+ user: 'user',
50
+ webhook: 'webhook',
51
+ wkspace: 'workspace',
52
+ wrkflow: 'workflow',
53
+ };
54
+ exports.objectToPrefixMap = {
55
+ account: 'accnt',
56
+ accountPreference: 'accntpf',
57
+ action: 'action',
58
+ activity: 'activty',
59
+ analytics: 'anlytic',
60
+ audit: 'audit',
61
+ bot: 'bot',
62
+ botApiKey: 'bak',
63
+ card: 'card',
64
+ channel: 'channel',
65
+ configuration: 'cfg',
66
+ conversation: 'conv',
67
+ devBot: 'devbot',
68
+ devIntegration: 'devint',
69
+ event: 'evt',
70
+ file: 'file',
71
+ flow: 'flow',
72
+ integration: 'int',
73
+ integrationApiKey: 'iak',
74
+ integrationVersion: 'intver',
75
+ interface: 'iface',
76
+ interfaceVersion: 'ifver',
77
+ issue: 'iss',
78
+ issueEvent: 'issevt',
79
+ knowledgeBase: 'kb',
80
+ limit: 'limit',
81
+ media: 'media',
82
+ message: 'msg',
83
+ node: 'node',
84
+ notification: 'notif',
85
+ personalAccessToken: 'pat',
86
+ plugin: 'plugin',
87
+ pluginVersion: 'plugver',
88
+ quota: 'quota',
89
+ recurringEvent: 'recevt',
90
+ report: 'report',
91
+ sandbox: 'sandbox',
92
+ schema: 'schema',
93
+ script: 'script',
94
+ state: 'state',
95
+ table: 'table',
96
+ tag: 'tag',
97
+ task: 'task',
98
+ usage: 'usage',
99
+ user: 'user',
100
+ webhook: 'webhook',
101
+ workflow: 'wrkflow',
102
+ workspace: 'wkspace',
103
+ };
@@ -0,0 +1,250 @@
1
+ export type Quota = {
2
+ /**
3
+ * Friendly name of the usage type.
4
+ */
5
+ name: string;
6
+ /**
7
+ * Description of the usage type.
8
+ */
9
+ description: string;
10
+ /**
11
+ * The default limit for the usage type. This is the fallback value if the limit is not set.
12
+ */
13
+ default: number;
14
+ /**
15
+ * The kind of usage type. This is used to determine the object linked to the usage type.
16
+ */
17
+ kind: QuotaKind;
18
+ /**
19
+ * The usage category determine how the usage is calculated.
20
+ */
21
+ category: QuotaCategory;
22
+ /**
23
+ * If true, the usage is tracked per bot. This is only applicable if the kind is workspace.
24
+ */
25
+ trackUsagePerBot: boolean;
26
+ /**
27
+ * Parent quota type. This is used to determine the object linked to the usage type.
28
+ */
29
+ parent?: QuotaType;
30
+ };
31
+ export type QuotaKind = 'workspace' | 'bot';
32
+ export type QuotaCategory = 'ratelimit' | 'count' | 'calls' | 'timeout' | 'credit';
33
+ export type QuotaType = (typeof quotaTypes)[number];
34
+ export declare const quotaTypes: readonly ["invocation_timeout", "invocation_calls", "storage_count", "bot_count", "knowledgebase_vector_storage", "workspace_ratelimit", "table_row_count", "workspace_member_count", "integrations_owned_count", "ai_spend", "openai_spend", "bing_search_spend", "always_alive"];
35
+ export declare const quotaConfigs: {
36
+ readonly invocation_timeout: {
37
+ readonly name: "Invocation Timeout";
38
+ readonly description: "Maximum time in milliseconds a bot can run before timing out.";
39
+ readonly default: 60000;
40
+ readonly kind: "workspace";
41
+ readonly category: "timeout";
42
+ readonly trackUsagePerBot: false;
43
+ };
44
+ readonly storage_count: {
45
+ readonly name: "Storage Count";
46
+ readonly description: "Maximum number of storage bytes that can be stored.";
47
+ readonly default: 500000000;
48
+ readonly kind: "workspace";
49
+ readonly category: "count";
50
+ readonly trackUsagePerBot: true;
51
+ };
52
+ readonly bot_count: {
53
+ readonly name: "Bot Count";
54
+ readonly description: "Maximum number of bots that can be created.";
55
+ readonly default: 5;
56
+ readonly kind: "workspace";
57
+ readonly category: "count";
58
+ readonly trackUsagePerBot: false;
59
+ };
60
+ readonly workspace_member_count: {
61
+ readonly name: "Workspace Member Count";
62
+ readonly description: "Maximum number of members that can be added to a workspace.";
63
+ readonly default: 3;
64
+ readonly kind: "workspace";
65
+ readonly category: "count";
66
+ readonly trackUsagePerBot: false;
67
+ };
68
+ readonly knowledgebase_vector_storage: {
69
+ readonly name: "Knowledgebase Vector Storage";
70
+ readonly description: "Maximum size of knowledge base documents";
71
+ readonly default: 100000000;
72
+ readonly kind: "workspace";
73
+ readonly category: "count";
74
+ readonly trackUsagePerBot: true;
75
+ };
76
+ readonly table_row_count: {
77
+ readonly name: "Table Row Count";
78
+ readonly description: "Maximum number of rows that can be stored in a table.";
79
+ readonly default: 5000;
80
+ readonly kind: "workspace";
81
+ readonly category: "count";
82
+ readonly trackUsagePerBot: true;
83
+ };
84
+ readonly invocation_calls: {
85
+ readonly name: "Messages";
86
+ readonly description: "Maximum number of messages sent to a bot in a month.";
87
+ readonly default: 2000;
88
+ readonly kind: "workspace";
89
+ readonly category: "calls";
90
+ readonly trackUsagePerBot: true;
91
+ };
92
+ readonly workspace_ratelimit: {
93
+ readonly name: "Workspace Ratelimit";
94
+ readonly description: "Maximum number of API calls per second for a workspace.";
95
+ readonly default: 100;
96
+ readonly kind: "workspace";
97
+ readonly category: "ratelimit";
98
+ readonly trackUsagePerBot: false;
99
+ };
100
+ readonly integrations_owned_count: {
101
+ readonly name: "Owned Integrations Count";
102
+ readonly description: "Maximum number of integrations that can be created.";
103
+ readonly default: 20;
104
+ readonly kind: "workspace";
105
+ readonly category: "count";
106
+ readonly trackUsagePerBot: false;
107
+ };
108
+ readonly ai_spend: {
109
+ readonly name: "AI Spend";
110
+ readonly description: "Maximum amount of AI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.";
111
+ readonly default: 5000000000;
112
+ readonly kind: "workspace";
113
+ readonly category: "credit";
114
+ readonly trackUsagePerBot: true;
115
+ };
116
+ readonly openai_spend: {
117
+ readonly name: "OpenAI Spend";
118
+ readonly description: "Maximum amount of OpenAI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.";
119
+ readonly default: 5000000000;
120
+ readonly kind: "workspace";
121
+ readonly category: "credit";
122
+ readonly trackUsagePerBot: true;
123
+ readonly parent: "ai_spend";
124
+ };
125
+ readonly bing_search_spend: {
126
+ readonly name: "Bing Search Spend";
127
+ readonly description: "Maximum amount of Bing Search spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.";
128
+ readonly default: 5000000000;
129
+ readonly kind: "workspace";
130
+ readonly category: "credit";
131
+ readonly trackUsagePerBot: true;
132
+ readonly parent: "ai_spend";
133
+ };
134
+ readonly always_alive: {
135
+ readonly name: "Always Alive";
136
+ readonly description: "Maximum number of bots that can be in always alive mode.";
137
+ readonly default: 0;
138
+ readonly kind: "workspace";
139
+ readonly category: "count";
140
+ readonly trackUsagePerBot: false;
141
+ };
142
+ };
143
+ export declare const quotaConfigsV3: {
144
+ readonly invocation_timeout: {
145
+ readonly name: "Invocation Timeout";
146
+ readonly description: "Maximum time in milliseconds a bot can run before timing out.";
147
+ readonly default: 60000;
148
+ readonly kind: "workspace";
149
+ readonly category: "timeout";
150
+ readonly trackUsagePerBot: false;
151
+ };
152
+ readonly storage_count: {
153
+ readonly name: "Storage Count";
154
+ readonly description: "Maximum number of storage bytes that can be stored.";
155
+ readonly default: 100000000;
156
+ readonly kind: "workspace";
157
+ readonly category: "count";
158
+ readonly trackUsagePerBot: true;
159
+ };
160
+ readonly bot_count: {
161
+ readonly name: "Bot Count";
162
+ readonly description: "Maximum number of bots that can be created.";
163
+ readonly default: 1;
164
+ readonly kind: "workspace";
165
+ readonly category: "count";
166
+ readonly trackUsagePerBot: false;
167
+ };
168
+ readonly workspace_member_count: {
169
+ readonly name: "Workspace Member Count";
170
+ readonly description: "Maximum number of members that can be added to a workspace.";
171
+ readonly default: 1;
172
+ readonly kind: "workspace";
173
+ readonly category: "count";
174
+ readonly trackUsagePerBot: false;
175
+ };
176
+ readonly knowledgebase_vector_storage: {
177
+ readonly name: "Knowledgebase Vector Storage";
178
+ readonly description: "Maximum size of knowledge base documents";
179
+ readonly default: 100000000;
180
+ readonly kind: "workspace";
181
+ readonly category: "count";
182
+ readonly trackUsagePerBot: true;
183
+ };
184
+ readonly table_row_count: {
185
+ readonly name: "Table Row Count";
186
+ readonly description: "Maximum number of rows that can be stored in a table.";
187
+ readonly default: 1000;
188
+ readonly kind: "workspace";
189
+ readonly category: "count";
190
+ readonly trackUsagePerBot: true;
191
+ };
192
+ readonly invocation_calls: {
193
+ readonly name: "Messages";
194
+ readonly description: "Maximum number of messages sent to a bot in a month.";
195
+ readonly default: 500;
196
+ readonly kind: "workspace";
197
+ readonly category: "calls";
198
+ readonly trackUsagePerBot: true;
199
+ };
200
+ readonly workspace_ratelimit: {
201
+ readonly name: "Workspace Ratelimit";
202
+ readonly description: "Maximum number of API calls per second for a workspace.";
203
+ readonly default: 100;
204
+ readonly kind: "workspace";
205
+ readonly category: "ratelimit";
206
+ readonly trackUsagePerBot: false;
207
+ };
208
+ readonly integrations_owned_count: {
209
+ readonly name: "Owned Integrations Count";
210
+ readonly description: "Maximum number of integrations that can be created.";
211
+ readonly default: 20;
212
+ readonly kind: "workspace";
213
+ readonly category: "count";
214
+ readonly trackUsagePerBot: false;
215
+ };
216
+ readonly ai_spend: {
217
+ readonly name: "AI Spend";
218
+ readonly description: "Maximum amount of AI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.";
219
+ readonly default: 5000000000;
220
+ readonly kind: "workspace";
221
+ readonly category: "credit";
222
+ readonly trackUsagePerBot: true;
223
+ };
224
+ readonly openai_spend: {
225
+ readonly name: "OpenAI Spend";
226
+ readonly description: "Maximum amount of OpenAI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.";
227
+ readonly default: 5000000000;
228
+ readonly kind: "workspace";
229
+ readonly category: "credit";
230
+ readonly trackUsagePerBot: true;
231
+ readonly parent: "ai_spend";
232
+ };
233
+ readonly bing_search_spend: {
234
+ readonly name: "Bing Search Spend";
235
+ readonly description: "Maximum amount of Bing Search spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.";
236
+ readonly default: 5000000000;
237
+ readonly kind: "workspace";
238
+ readonly category: "credit";
239
+ readonly trackUsagePerBot: true;
240
+ readonly parent: "ai_spend";
241
+ };
242
+ readonly always_alive: {
243
+ readonly name: "Always Alive";
244
+ readonly description: "Maximum number of bots that can be in always alive mode.";
245
+ readonly default: 0;
246
+ readonly kind: "workspace";
247
+ readonly category: "count";
248
+ readonly trackUsagePerBot: false;
249
+ };
250
+ };
package/dist/quotas.js ADDED
@@ -0,0 +1,234 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.quotaConfigsV3 = exports.quotaConfigs = exports.quotaTypes = void 0;
4
+ exports.quotaTypes = [
5
+ 'invocation_timeout',
6
+ 'invocation_calls',
7
+ 'storage_count',
8
+ 'bot_count',
9
+ 'knowledgebase_vector_storage',
10
+ 'workspace_ratelimit',
11
+ 'table_row_count',
12
+ 'workspace_member_count',
13
+ 'integrations_owned_count',
14
+ 'ai_spend',
15
+ 'openai_spend',
16
+ 'bing_search_spend',
17
+ 'always_alive',
18
+ ];
19
+ exports.quotaConfigs = {
20
+ invocation_timeout: {
21
+ name: 'Invocation Timeout',
22
+ description: 'Maximum time in milliseconds a bot can run before timing out.',
23
+ default: 60_000,
24
+ kind: 'workspace',
25
+ category: 'timeout',
26
+ trackUsagePerBot: false,
27
+ },
28
+ storage_count: {
29
+ name: 'Storage Count',
30
+ description: 'Maximum number of storage bytes that can be stored.',
31
+ default: 500_000_000, // 500 MB
32
+ kind: 'workspace',
33
+ category: 'count',
34
+ trackUsagePerBot: true,
35
+ },
36
+ bot_count: {
37
+ name: 'Bot Count',
38
+ description: 'Maximum number of bots that can be created.',
39
+ default: 5,
40
+ kind: 'workspace',
41
+ category: 'count',
42
+ trackUsagePerBot: false,
43
+ },
44
+ workspace_member_count: {
45
+ name: 'Workspace Member Count',
46
+ description: 'Maximum number of members that can be added to a workspace.',
47
+ default: 3,
48
+ kind: 'workspace',
49
+ category: 'count',
50
+ trackUsagePerBot: false,
51
+ },
52
+ knowledgebase_vector_storage: {
53
+ name: 'Knowledgebase Vector Storage',
54
+ description: 'Maximum size of knowledge base documents',
55
+ default: 100_000_000, // 100 MB
56
+ kind: 'workspace',
57
+ category: 'count',
58
+ trackUsagePerBot: true,
59
+ },
60
+ table_row_count: {
61
+ name: 'Table Row Count',
62
+ description: 'Maximum number of rows that can be stored in a table.',
63
+ default: 5_000,
64
+ kind: 'workspace',
65
+ category: 'count',
66
+ trackUsagePerBot: true,
67
+ },
68
+ invocation_calls: {
69
+ name: 'Messages',
70
+ description: 'Maximum number of messages sent to a bot in a month.',
71
+ default: 2_000,
72
+ kind: 'workspace',
73
+ category: 'calls',
74
+ trackUsagePerBot: true,
75
+ },
76
+ workspace_ratelimit: {
77
+ name: 'Workspace Ratelimit',
78
+ description: 'Maximum number of API calls per second for a workspace.',
79
+ default: 100,
80
+ kind: 'workspace',
81
+ category: 'ratelimit',
82
+ trackUsagePerBot: false,
83
+ },
84
+ integrations_owned_count: {
85
+ name: 'Owned Integrations Count',
86
+ description: 'Maximum number of integrations that can be created.',
87
+ default: 20,
88
+ kind: 'workspace',
89
+ category: 'count',
90
+ trackUsagePerBot: false,
91
+ },
92
+ ai_spend: {
93
+ name: 'AI Spend',
94
+ description: 'Maximum amount of AI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
95
+ default: 5_000_000_000,
96
+ kind: 'workspace',
97
+ category: 'credit',
98
+ trackUsagePerBot: true,
99
+ },
100
+ openai_spend: {
101
+ name: 'OpenAI Spend',
102
+ description: 'Maximum amount of OpenAI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
103
+ default: 5_000_000_000,
104
+ kind: 'workspace',
105
+ category: 'credit',
106
+ trackUsagePerBot: true,
107
+ parent: 'ai_spend',
108
+ },
109
+ bing_search_spend: {
110
+ name: 'Bing Search Spend',
111
+ description: 'Maximum amount of Bing Search spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
112
+ default: 5_000_000_000,
113
+ kind: 'workspace',
114
+ category: 'credit',
115
+ trackUsagePerBot: true,
116
+ parent: 'ai_spend',
117
+ },
118
+ always_alive: {
119
+ name: 'Always Alive',
120
+ description: 'Maximum number of bots that can be in always alive mode.',
121
+ default: 0,
122
+ kind: 'workspace',
123
+ category: 'count',
124
+ trackUsagePerBot: false,
125
+ },
126
+ };
127
+ exports.quotaConfigsV3 = {
128
+ invocation_timeout: {
129
+ name: 'Invocation Timeout',
130
+ description: 'Maximum time in milliseconds a bot can run before timing out.',
131
+ default: 60_000,
132
+ kind: 'workspace',
133
+ category: 'timeout',
134
+ trackUsagePerBot: false,
135
+ },
136
+ storage_count: {
137
+ name: 'Storage Count',
138
+ description: 'Maximum number of storage bytes that can be stored.',
139
+ default: 100_000_000, // 100 MB
140
+ kind: 'workspace',
141
+ category: 'count',
142
+ trackUsagePerBot: true,
143
+ },
144
+ bot_count: {
145
+ name: 'Bot Count',
146
+ description: 'Maximum number of bots that can be created.',
147
+ default: 1,
148
+ kind: 'workspace',
149
+ category: 'count',
150
+ trackUsagePerBot: false,
151
+ },
152
+ workspace_member_count: {
153
+ name: 'Workspace Member Count',
154
+ description: 'Maximum number of members that can be added to a workspace.',
155
+ default: 1,
156
+ kind: 'workspace',
157
+ category: 'count',
158
+ trackUsagePerBot: false,
159
+ },
160
+ knowledgebase_vector_storage: {
161
+ name: 'Knowledgebase Vector Storage',
162
+ description: 'Maximum size of knowledge base documents',
163
+ default: 100_000_000, // 100 MB
164
+ kind: 'workspace',
165
+ category: 'count',
166
+ trackUsagePerBot: true,
167
+ },
168
+ table_row_count: {
169
+ name: 'Table Row Count',
170
+ description: 'Maximum number of rows that can be stored in a table.',
171
+ default: 1_000,
172
+ kind: 'workspace',
173
+ category: 'count',
174
+ trackUsagePerBot: true,
175
+ },
176
+ invocation_calls: {
177
+ name: 'Messages',
178
+ description: 'Maximum number of messages sent to a bot in a month.',
179
+ default: 500,
180
+ kind: 'workspace',
181
+ category: 'calls',
182
+ trackUsagePerBot: true,
183
+ },
184
+ workspace_ratelimit: {
185
+ name: 'Workspace Ratelimit',
186
+ description: 'Maximum number of API calls per second for a workspace.',
187
+ default: 100,
188
+ kind: 'workspace',
189
+ category: 'ratelimit',
190
+ trackUsagePerBot: false,
191
+ },
192
+ integrations_owned_count: {
193
+ name: 'Owned Integrations Count',
194
+ description: 'Maximum number of integrations that can be created.',
195
+ default: 20,
196
+ kind: 'workspace',
197
+ category: 'count',
198
+ trackUsagePerBot: false,
199
+ },
200
+ ai_spend: {
201
+ name: 'AI Spend',
202
+ description: 'Maximum amount of AI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
203
+ default: 5_000_000_000,
204
+ kind: 'workspace',
205
+ category: 'credit',
206
+ trackUsagePerBot: true,
207
+ },
208
+ openai_spend: {
209
+ name: 'OpenAI Spend',
210
+ description: 'Maximum amount of OpenAI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
211
+ default: 5_000_000_000,
212
+ kind: 'workspace',
213
+ category: 'credit',
214
+ trackUsagePerBot: true,
215
+ parent: 'ai_spend',
216
+ },
217
+ bing_search_spend: {
218
+ name: 'Bing Search Spend',
219
+ description: 'Maximum amount of Bing Search spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
220
+ default: 5_000_000_000,
221
+ kind: 'workspace',
222
+ category: 'credit',
223
+ trackUsagePerBot: true,
224
+ parent: 'ai_spend',
225
+ },
226
+ always_alive: {
227
+ name: 'Always Alive',
228
+ description: 'Maximum number of bots that can be in always alive mode.',
229
+ default: 0,
230
+ kind: 'workspace',
231
+ category: 'count',
232
+ trackUsagePerBot: false,
233
+ },
234
+ };
package/dist/tags.d.ts ADDED
@@ -0,0 +1,80 @@
1
+ export type Tag = {
2
+ type?: 'boolean' | 'string';
3
+ description?: string;
4
+ };
5
+ export type TagType = keyof typeof Tags;
6
+ export declare const Tags: {
7
+ readonly bot: {};
8
+ readonly conversation: {
9
+ readonly upstream: {
10
+ readonly description: "Used for HITL as a convention. The upstream conversation ID, ie. the conversation ID of the original conversation";
11
+ };
12
+ readonly downstream: {
13
+ readonly description: "Used for HITL as a convention. The downstream conversation ID, ie. the conversation ID of conversation in HITL channel";
14
+ };
15
+ };
16
+ readonly message: {
17
+ readonly origin: {
18
+ readonly description: "The origin location of the message in the bot, eg. \"workflow://[id]/node/[id]\"";
19
+ };
20
+ readonly iteration: {
21
+ readonly description: "The LLMz iteration ID of the message, for tracking and debugging purposes";
22
+ };
23
+ };
24
+ readonly event: {};
25
+ readonly workflow: {};
26
+ readonly user: {};
27
+ readonly file: {
28
+ readonly system: {
29
+ readonly type: "boolean";
30
+ readonly description: "System files are managed by Botpress and should not be modified";
31
+ };
32
+ readonly purpose: {
33
+ readonly description: "The purpose of the file, eg. \"swap\"";
34
+ };
35
+ readonly source: {
36
+ readonly description: "The source of the file, eg. \"knowledge-base\"";
37
+ };
38
+ readonly kbId: {
39
+ readonly description: "The ID of the knowledge base";
40
+ };
41
+ readonly favicon: {
42
+ readonly description: "The favicon URL to display for the file, eg. \"https://example.com/favicon.ico\"";
43
+ };
44
+ readonly pageUrl: {
45
+ readonly description: "The original page URL of the file, eg. \"https://example.com/page\"";
46
+ };
47
+ readonly integrationName: {
48
+ readonly description: "The name of the integration that created the file";
49
+ };
50
+ readonly webchatInjectConfigVersion: {
51
+ readonly description: "The version of the webchat inject configuration (used by the dashboard)";
52
+ };
53
+ };
54
+ readonly table: {
55
+ readonly system: {
56
+ readonly type: "boolean";
57
+ readonly description: "System tables are managed by Botpress and should not be modified";
58
+ };
59
+ readonly 'x-studio-title': {
60
+ readonly description: "Overrides the table title in the Studio";
61
+ };
62
+ readonly 'x-studio-readonly': {
63
+ readonly type: "boolean";
64
+ readonly description: "Prevents the table from being modified by the user in the Studio";
65
+ };
66
+ readonly 'x-studio-icon': {
67
+ readonly description: "Overrides the table icon in the Studio. The value can be a lucide icon URL, eg. \"lucide://atom\"";
68
+ };
69
+ readonly 'x-studio-color': {
70
+ readonly description: "Overrides the table color in the Studio.";
71
+ };
72
+ readonly 'x-studio-folder': {
73
+ readonly description: "Groups the table in a folder in the Studio";
74
+ };
75
+ readonly 'x-studio-deletable': {
76
+ readonly type: "boolean";
77
+ readonly description: "Prevents the table from being deleted by the user in the Studio";
78
+ };
79
+ };
80
+ };