@botpress/client 0.23.1 → 0.24.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.
- package/.turbo/turbo-build.log +12 -6
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +10910 -4
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/package.json +4 -3
- package/dist/client.d.ts +0 -10
- package/dist/config.d.ts +0 -2
- package/dist/errors.d.ts +0 -41
- package/dist/gen/errors.d.ts +0 -211
- package/dist/gen/index.d.ts +0 -389
- package/dist/gen/models.d.ts +0 -1264
- package/dist/gen/operations/addParticipant.d.ts +0 -56
- package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +0 -27
- package/dist/gen/operations/callAction.d.ts +0 -36
- package/dist/gen/operations/changeAISpendQuota.d.ts +0 -21
- package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +0 -40
- package/dist/gen/operations/checkHandleAvailability.d.ts +0 -24
- package/dist/gen/operations/configureIntegration.d.ts +0 -24
- package/dist/gen/operations/createBot.d.ts +0 -487
- package/dist/gen/operations/createConversation.d.ts +0 -70
- package/dist/gen/operations/createEvent.d.ts +0 -95
- package/dist/gen/operations/createIntegration.d.ts +0 -573
- package/dist/gen/operations/createIntegrationApiKey.d.ts +0 -29
- package/dist/gen/operations/createInterface.d.ts +0 -172
- package/dist/gen/operations/createMessage.d.ts +0 -98
- package/dist/gen/operations/createPersonalAccessToken.d.ts +0 -33
- package/dist/gen/operations/createTable.d.ts +0 -151
- package/dist/gen/operations/createTableRows.d.ts +0 -71
- package/dist/gen/operations/createTask.d.ts +0 -125
- package/dist/gen/operations/createUser.d.ts +0 -70
- package/dist/gen/operations/createWorkspace.d.ts +0 -38
- package/dist/gen/operations/createWorkspaceMember.d.ts +0 -29
- package/dist/gen/operations/deleteBot.d.ts +0 -21
- package/dist/gen/operations/deleteBotIssue.d.ts +0 -22
- package/dist/gen/operations/deleteConversation.d.ts +0 -21
- package/dist/gen/operations/deleteFile.d.ts +0 -21
- package/dist/gen/operations/deleteIntegration.d.ts +0 -21
- package/dist/gen/operations/deleteIntegrationApiKey.d.ts +0 -21
- package/dist/gen/operations/deleteInterface.d.ts +0 -21
- package/dist/gen/operations/deleteMessage.d.ts +0 -21
- package/dist/gen/operations/deletePersonalAccessToken.d.ts +0 -21
- package/dist/gen/operations/deleteTable.d.ts +0 -21
- package/dist/gen/operations/deleteTableRows.d.ts +0 -36
- package/dist/gen/operations/deleteTask.d.ts +0 -21
- package/dist/gen/operations/deleteUser.d.ts +0 -21
- package/dist/gen/operations/deleteWorkspace.d.ts +0 -21
- package/dist/gen/operations/deleteWorkspaceMember.d.ts +0 -21
- package/dist/gen/operations/duplicateTable.d.ts +0 -137
- package/dist/gen/operations/findTableRows.d.ts +0 -94
- package/dist/gen/operations/getAccount.d.ts +0 -31
- package/dist/gen/operations/getAccountPreference.d.ts +0 -22
- package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +0 -24
- package/dist/gen/operations/getAuditRecords.d.ts +0 -38
- package/dist/gen/operations/getBot.d.ts +0 -308
- package/dist/gen/operations/getBotAnalytics.d.ts +0 -49
- package/dist/gen/operations/getBotIssue.d.ts +0 -39
- package/dist/gen/operations/getBotLogs.d.ts +0 -30
- package/dist/gen/operations/getBotWebchat.d.ts +0 -23
- package/dist/gen/operations/getConversation.d.ts +0 -56
- package/dist/gen/operations/getEvent.d.ts +0 -61
- package/dist/gen/operations/getFile.d.ts +0 -85
- package/dist/gen/operations/getIntegration.d.ts +0 -315
- package/dist/gen/operations/getIntegrationByName.d.ts +0 -316
- package/dist/gen/operations/getIntegrationLogs.d.ts +0 -30
- package/dist/gen/operations/getInterface.d.ts +0 -104
- package/dist/gen/operations/getInterfaceByName.d.ts +0 -105
- package/dist/gen/operations/getMessage.d.ts +0 -62
- package/dist/gen/operations/getMultipleUsages.d.ts +0 -45
- package/dist/gen/operations/getOrCreateConversation.d.ts +0 -70
- package/dist/gen/operations/getOrCreateMessage.d.ts +0 -98
- package/dist/gen/operations/getOrCreateTable.d.ts +0 -164
- package/dist/gen/operations/getOrCreateUser.d.ts +0 -70
- package/dist/gen/operations/getOrSetState.d.ts +0 -76
- package/dist/gen/operations/getParticipant.d.ts +0 -53
- package/dist/gen/operations/getPublicIntegration.d.ts +0 -321
- package/dist/gen/operations/getPublicIntegrationById.d.ts +0 -320
- package/dist/gen/operations/getPublicWorkspace.d.ts +0 -31
- package/dist/gen/operations/getState.d.ts +0 -66
- package/dist/gen/operations/getTable.d.ts +0 -136
- package/dist/gen/operations/getTableRow.d.ts +0 -53
- package/dist/gen/operations/getTask.d.ts +0 -86
- package/dist/gen/operations/getUpcomingInvoice.d.ts +0 -29
- package/dist/gen/operations/getUsage.d.ts +0 -45
- package/dist/gen/operations/getUser.d.ts +0 -52
- package/dist/gen/operations/getWorkspace.d.ts +0 -38
- package/dist/gen/operations/getWorkspaceMember.d.ts +0 -27
- package/dist/gen/operations/getWorkspaceQuota.d.ts +0 -37
- package/dist/gen/operations/introspect.d.ts +0 -24
- package/dist/gen/operations/listActivities.d.ts +0 -42
- package/dist/gen/operations/listBotIssueEvents.d.ts +0 -32
- package/dist/gen/operations/listBotIssues.d.ts +0 -45
- package/dist/gen/operations/listBots.d.ts +0 -46
- package/dist/gen/operations/listConversations.d.ts +0 -64
- package/dist/gen/operations/listEvents.d.ts +0 -69
- package/dist/gen/operations/listFiles.d.ts +0 -94
- package/dist/gen/operations/listIntegrationApiKeys.d.ts +0 -26
- package/dist/gen/operations/listIntegrations.d.ts +0 -68
- package/dist/gen/operations/listInterfaces.d.ts +0 -49
- package/dist/gen/operations/listMessages.d.ts +0 -69
- package/dist/gen/operations/listParticipants.d.ts +0 -56
- package/dist/gen/operations/listPersonalAccessTokens.d.ts +0 -25
- package/dist/gen/operations/listPublicIntegrations.d.ts +0 -72
- package/dist/gen/operations/listPublicWorkspaces.d.ts +0 -42
- package/dist/gen/operations/listTables.d.ts +0 -126
- package/dist/gen/operations/listTasks.d.ts +0 -97
- package/dist/gen/operations/listUsageHistory.d.ts +0 -44
- package/dist/gen/operations/listUsers.d.ts +0 -59
- package/dist/gen/operations/listWorkspaceInvoices.d.ts +0 -57
- package/dist/gen/operations/listWorkspaceMembers.d.ts +0 -36
- package/dist/gen/operations/listWorkspaceQuotas.d.ts +0 -36
- package/dist/gen/operations/listWorkspaceUsages.d.ts +0 -45
- package/dist/gen/operations/listWorkspaces.d.ts +0 -47
- package/dist/gen/operations/patchState.d.ts +0 -72
- package/dist/gen/operations/removeParticipant.d.ts +0 -22
- package/dist/gen/operations/renameTableColumn.d.ts +0 -132
- package/dist/gen/operations/runVrl.d.ts +0 -28
- package/dist/gen/operations/searchFiles.d.ts +0 -56
- package/dist/gen/operations/setAccountPreference.d.ts +0 -22
- package/dist/gen/operations/setState.d.ts +0 -76
- package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +0 -37
- package/dist/gen/operations/trackAnalytics.d.ts +0 -22
- package/dist/gen/operations/transferBot.d.ts +0 -25
- package/dist/gen/operations/updateAccount.d.ts +0 -34
- package/dist/gen/operations/updateBot.d.ts +0 -486
- package/dist/gen/operations/updateConversation.d.ts +0 -63
- package/dist/gen/operations/updateFileMetadata.d.ts +0 -95
- package/dist/gen/operations/updateIntegration.d.ts +0 -562
- package/dist/gen/operations/updateInterface.d.ts +0 -165
- package/dist/gen/operations/updateMessage.d.ts +0 -68
- package/dist/gen/operations/updateTable.d.ts +0 -152
- package/dist/gen/operations/updateTableRows.d.ts +0 -74
- package/dist/gen/operations/updateTask.d.ts +0 -114
- package/dist/gen/operations/updateUser.d.ts +0 -66
- package/dist/gen/operations/updateWorkspace.d.ts +0 -50
- package/dist/gen/operations/updateWorkspaceMember.d.ts +0 -29
- package/dist/gen/operations/upsertFile.d.ts +0 -114
- package/dist/gen/operations/upsertTableRows.d.ts +0 -107
- package/dist/gen/to-axios.d.ts +0 -16
- package/dist/types.d.ts +0 -49
package/dist/gen/models.d.ts
DELETED
|
@@ -1,1264 +0,0 @@
|
|
|
1
|
-
export interface Bot {
|
|
2
|
-
/**
|
|
3
|
-
* Id of the [Bot](#schema_bot)
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
6
|
-
/**
|
|
7
|
-
* Creation date of the [Bot](#schema_bot) in ISO 8601 format
|
|
8
|
-
*/
|
|
9
|
-
createdAt: string;
|
|
10
|
-
/**
|
|
11
|
-
* Updating date of the [Bot](#schema_bot) in ISO 8601 format
|
|
12
|
-
*/
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
/**
|
|
15
|
-
* Signing secret of the [Bot](#schema_bot)
|
|
16
|
-
*/
|
|
17
|
-
signingSecret: string;
|
|
18
|
-
/**
|
|
19
|
-
* A mapping of integrations to their configuration
|
|
20
|
-
*/
|
|
21
|
-
integrations: {
|
|
22
|
-
[k: string]: {
|
|
23
|
-
enabled: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Name of the [Integration](#schema_integration)
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* Version of the [Integration](#schema_integration)
|
|
30
|
-
*/
|
|
31
|
-
version: string;
|
|
32
|
-
webhookUrl: string;
|
|
33
|
-
webhookId: string;
|
|
34
|
-
identifier?: string;
|
|
35
|
-
configuration: {
|
|
36
|
-
[k: string]: any;
|
|
37
|
-
};
|
|
38
|
-
status: "registration_pending" | "registered" | "registration_failed" | "unregistration_pending" | "unregistered" | "unregistration_failed";
|
|
39
|
-
statusReason: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* ID of the [Integration](#schema_integration)
|
|
42
|
-
*/
|
|
43
|
-
id: string;
|
|
44
|
-
/**
|
|
45
|
-
* Creation date of the [Integration](#schema_integration) in ISO 8601 format
|
|
46
|
-
*/
|
|
47
|
-
createdAt: string;
|
|
48
|
-
/**
|
|
49
|
-
* Updating date of the [Integration](#schema_integration) in ISO 8601 format
|
|
50
|
-
*/
|
|
51
|
-
updatedAt: string;
|
|
52
|
-
/**
|
|
53
|
-
* Title of the integration. This is the name that will be displayed in the UI
|
|
54
|
-
*/
|
|
55
|
-
title: string;
|
|
56
|
-
/**
|
|
57
|
-
* Description of the integration. This is the description that will be displayed in the UI
|
|
58
|
-
*/
|
|
59
|
-
description: string;
|
|
60
|
-
/**
|
|
61
|
-
* URL of the icon of the integration. This is the icon that will be displayed in the UI
|
|
62
|
-
*/
|
|
63
|
-
iconUrl: string;
|
|
64
|
-
/**
|
|
65
|
-
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
66
|
-
*/
|
|
67
|
-
public: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* User object configuration
|
|
72
|
-
*/
|
|
73
|
-
user: {
|
|
74
|
-
tags: {
|
|
75
|
-
/**
|
|
76
|
-
* Definition of a tag that can be provided on the object
|
|
77
|
-
*/
|
|
78
|
-
[k: string]: {
|
|
79
|
-
/**
|
|
80
|
-
* Title of the tag
|
|
81
|
-
*/
|
|
82
|
-
title?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Description of the tag
|
|
85
|
-
*/
|
|
86
|
-
description?: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Conversation object configuration
|
|
92
|
-
*/
|
|
93
|
-
conversation: {
|
|
94
|
-
tags: {
|
|
95
|
-
/**
|
|
96
|
-
* Definition of a tag that can be provided on the object
|
|
97
|
-
*/
|
|
98
|
-
[k: string]: {
|
|
99
|
-
/**
|
|
100
|
-
* Title of the tag
|
|
101
|
-
*/
|
|
102
|
-
title?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Description of the tag
|
|
105
|
-
*/
|
|
106
|
-
description?: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Message object configuration
|
|
112
|
-
*/
|
|
113
|
-
message: {
|
|
114
|
-
tags: {
|
|
115
|
-
/**
|
|
116
|
-
* Definition of a tag that can be provided on the object
|
|
117
|
-
*/
|
|
118
|
-
[k: string]: {
|
|
119
|
-
/**
|
|
120
|
-
* Title of the tag
|
|
121
|
-
*/
|
|
122
|
-
title?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Description of the tag
|
|
125
|
-
*/
|
|
126
|
-
description?: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* A mapping of states to their definition
|
|
132
|
-
*/
|
|
133
|
-
states: {
|
|
134
|
-
[k: string]: {
|
|
135
|
-
/**
|
|
136
|
-
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
137
|
-
*/
|
|
138
|
-
type: "conversation" | "user" | "bot" | "task";
|
|
139
|
-
/**
|
|
140
|
-
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
141
|
-
*/
|
|
142
|
-
schema: {
|
|
143
|
-
[k: string]: any;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
147
|
-
*/
|
|
148
|
-
expiry?: number;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* Configuration of the bot
|
|
153
|
-
*/
|
|
154
|
-
configuration: {
|
|
155
|
-
/**
|
|
156
|
-
* Configuration data
|
|
157
|
-
*/
|
|
158
|
-
data: {
|
|
159
|
-
[k: string]: any;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
163
|
-
*/
|
|
164
|
-
schema: {
|
|
165
|
-
[k: string]: any;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Events definition
|
|
170
|
-
*/
|
|
171
|
-
events: {
|
|
172
|
-
/**
|
|
173
|
-
* Event Definition
|
|
174
|
-
*/
|
|
175
|
-
[k: string]: {
|
|
176
|
-
/**
|
|
177
|
-
* Title of the event
|
|
178
|
-
*/
|
|
179
|
-
title?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Description of the event
|
|
182
|
-
*/
|
|
183
|
-
description?: string;
|
|
184
|
-
schema: {
|
|
185
|
-
[k: string]: any;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Recurring events
|
|
191
|
-
*/
|
|
192
|
-
recurringEvents: {
|
|
193
|
-
[k: string]: {
|
|
194
|
-
schedule: {
|
|
195
|
-
cron: string;
|
|
196
|
-
};
|
|
197
|
-
type: string;
|
|
198
|
-
payload: {
|
|
199
|
-
[k: string]: any;
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* The number of times the recurring event failed to run. This counter resets once the recurring event runs successfully.
|
|
203
|
-
*/
|
|
204
|
-
failedAttempts: number;
|
|
205
|
-
/**
|
|
206
|
-
* The reason why the recurring event failed to run in the last attempt.
|
|
207
|
-
*/
|
|
208
|
-
lastFailureReason: string | null;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* Subscriptions of the bot
|
|
213
|
-
*/
|
|
214
|
-
subscriptions: {
|
|
215
|
-
/**
|
|
216
|
-
* Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.
|
|
217
|
-
*/
|
|
218
|
-
events: {
|
|
219
|
-
[k: string]: {};
|
|
220
|
-
} | null;
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* Actions definition
|
|
224
|
-
*/
|
|
225
|
-
actions: {
|
|
226
|
-
/**
|
|
227
|
-
* Action definition
|
|
228
|
-
*/
|
|
229
|
-
[k: string]: {
|
|
230
|
-
/**
|
|
231
|
-
* Title of the action
|
|
232
|
-
*/
|
|
233
|
-
title?: string;
|
|
234
|
-
/**
|
|
235
|
-
* Description of the action
|
|
236
|
-
*/
|
|
237
|
-
description?: string;
|
|
238
|
-
input: {
|
|
239
|
-
schema: {
|
|
240
|
-
[k: string]: any;
|
|
241
|
-
};
|
|
242
|
-
};
|
|
243
|
-
output: {
|
|
244
|
-
schema: {
|
|
245
|
-
[k: string]: any;
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
/**
|
|
251
|
-
* Name of the [Bot](#schema_bot)
|
|
252
|
-
*/
|
|
253
|
-
name: string;
|
|
254
|
-
/**
|
|
255
|
-
* Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format
|
|
256
|
-
*/
|
|
257
|
-
deployedAt?: string;
|
|
258
|
-
/**
|
|
259
|
-
* Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations
|
|
260
|
-
*/
|
|
261
|
-
dev: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* Id of the user that created the bot
|
|
264
|
-
*/
|
|
265
|
-
createdBy?: string;
|
|
266
|
-
/**
|
|
267
|
-
* Indicates if the [Bot](#schema_bot) should be in always alive mode
|
|
268
|
-
*/
|
|
269
|
-
alwaysAlive: boolean;
|
|
270
|
-
/**
|
|
271
|
-
* Status of the bot
|
|
272
|
-
*/
|
|
273
|
-
status: "active" | "deploying";
|
|
274
|
-
/**
|
|
275
|
-
* Media files associated with the [Bot](#schema_bot)
|
|
276
|
-
*/
|
|
277
|
-
medias: {
|
|
278
|
-
/**
|
|
279
|
-
* URL of the media file
|
|
280
|
-
*/
|
|
281
|
-
url: string;
|
|
282
|
-
/**
|
|
283
|
-
* Name of the media file
|
|
284
|
-
*/
|
|
285
|
-
name: string;
|
|
286
|
-
}[];
|
|
287
|
-
}
|
|
288
|
-
export interface Integration {
|
|
289
|
-
/**
|
|
290
|
-
* ID of the [Integration](#schema_integration)
|
|
291
|
-
*/
|
|
292
|
-
id: string;
|
|
293
|
-
/**
|
|
294
|
-
* Creation date of the [Integration](#schema_integration) in ISO 8601 format
|
|
295
|
-
*/
|
|
296
|
-
createdAt: string;
|
|
297
|
-
/**
|
|
298
|
-
* Updating date of the [Integration](#schema_integration) in ISO 8601 format
|
|
299
|
-
*/
|
|
300
|
-
updatedAt: string;
|
|
301
|
-
/**
|
|
302
|
-
* Global identifier configuration of the [Integration](#schema_integration)
|
|
303
|
-
*/
|
|
304
|
-
identifier: {
|
|
305
|
-
/**
|
|
306
|
-
* VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier
|
|
307
|
-
*/
|
|
308
|
-
fallbackHandlerScript?: string;
|
|
309
|
-
/**
|
|
310
|
-
* VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
|
|
311
|
-
*/
|
|
312
|
-
extractScript?: string;
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* URL of the [Integration](#schema_integration)
|
|
316
|
-
*/
|
|
317
|
-
url: string;
|
|
318
|
-
/**
|
|
319
|
-
* Name of the [Integration](#schema_integration)
|
|
320
|
-
*/
|
|
321
|
-
name: string;
|
|
322
|
-
/**
|
|
323
|
-
* Version of the [Integration](#schema_integration)
|
|
324
|
-
*/
|
|
325
|
-
version: string;
|
|
326
|
-
interfaces: {
|
|
327
|
-
[k: string]: {
|
|
328
|
-
id: string;
|
|
329
|
-
entities: {
|
|
330
|
-
[k: string]: {
|
|
331
|
-
name: string;
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
actions: {
|
|
335
|
-
[k: string]: {
|
|
336
|
-
name: string;
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
events: {
|
|
340
|
-
[k: string]: {
|
|
341
|
-
name: string;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
/**
|
|
347
|
-
* Configuration definition
|
|
348
|
-
*/
|
|
349
|
-
configuration: {
|
|
350
|
-
/**
|
|
351
|
-
* Identifier configuration of the [Integration](#schema_integration)
|
|
352
|
-
*/
|
|
353
|
-
identifier: {
|
|
354
|
-
linkTemplateScript?: string;
|
|
355
|
-
required: boolean;
|
|
356
|
-
};
|
|
357
|
-
/**
|
|
358
|
-
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
359
|
-
*/
|
|
360
|
-
schema?: {
|
|
361
|
-
[k: string]: any;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
channels: {
|
|
365
|
-
/**
|
|
366
|
-
* Channel definition
|
|
367
|
-
*/
|
|
368
|
-
[k: string]: {
|
|
369
|
-
/**
|
|
370
|
-
* Title of the channel
|
|
371
|
-
*/
|
|
372
|
-
title?: string;
|
|
373
|
-
/**
|
|
374
|
-
* Description of the channel
|
|
375
|
-
*/
|
|
376
|
-
description?: string;
|
|
377
|
-
messages: {
|
|
378
|
-
/**
|
|
379
|
-
* Message definition
|
|
380
|
-
*/
|
|
381
|
-
[k: string]: {
|
|
382
|
-
schema: {
|
|
383
|
-
[k: string]: any;
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
/**
|
|
388
|
-
* Conversation object configuration
|
|
389
|
-
*/
|
|
390
|
-
conversation: {
|
|
391
|
-
tags: {
|
|
392
|
-
/**
|
|
393
|
-
* Definition of a tag that can be provided on the object
|
|
394
|
-
*/
|
|
395
|
-
[k: string]: {
|
|
396
|
-
/**
|
|
397
|
-
* Title of the tag
|
|
398
|
-
*/
|
|
399
|
-
title?: string;
|
|
400
|
-
/**
|
|
401
|
-
* Description of the tag
|
|
402
|
-
*/
|
|
403
|
-
description?: string;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
/**
|
|
407
|
-
* The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the `createConversation` functionality to support this setting.
|
|
408
|
-
*/
|
|
409
|
-
creation: {
|
|
410
|
-
/**
|
|
411
|
-
* Enable conversation creation
|
|
412
|
-
*/
|
|
413
|
-
enabled: boolean;
|
|
414
|
-
/**
|
|
415
|
-
* The list of tags that are required to be specified when calling the API directly to create a conversation.
|
|
416
|
-
*/
|
|
417
|
-
requiredTags: string[];
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
/**
|
|
421
|
-
* Message object configuration
|
|
422
|
-
*/
|
|
423
|
-
message: {
|
|
424
|
-
tags: {
|
|
425
|
-
/**
|
|
426
|
-
* Definition of a tag that can be provided on the object
|
|
427
|
-
*/
|
|
428
|
-
[k: string]: {
|
|
429
|
-
/**
|
|
430
|
-
* Title of the tag
|
|
431
|
-
*/
|
|
432
|
-
title?: string;
|
|
433
|
-
/**
|
|
434
|
-
* Description of the tag
|
|
435
|
-
*/
|
|
436
|
-
description?: string;
|
|
437
|
-
};
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
states: {
|
|
443
|
-
/**
|
|
444
|
-
* State definition
|
|
445
|
-
*/
|
|
446
|
-
[k: string]: {
|
|
447
|
-
/**
|
|
448
|
-
* Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
|
|
449
|
-
*/
|
|
450
|
-
type: "conversation" | "user" | "integration";
|
|
451
|
-
/**
|
|
452
|
-
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
453
|
-
*/
|
|
454
|
-
schema: {
|
|
455
|
-
[k: string]: any;
|
|
456
|
-
};
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
events: {
|
|
460
|
-
/**
|
|
461
|
-
* Event Definition
|
|
462
|
-
*/
|
|
463
|
-
[k: string]: {
|
|
464
|
-
/**
|
|
465
|
-
* Title of the event
|
|
466
|
-
*/
|
|
467
|
-
title?: string;
|
|
468
|
-
/**
|
|
469
|
-
* Description of the event
|
|
470
|
-
*/
|
|
471
|
-
description?: string;
|
|
472
|
-
schema: {
|
|
473
|
-
[k: string]: any;
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
};
|
|
477
|
-
actions: {
|
|
478
|
-
/**
|
|
479
|
-
* Action definition
|
|
480
|
-
*/
|
|
481
|
-
[k: string]: {
|
|
482
|
-
/**
|
|
483
|
-
* Title of the action
|
|
484
|
-
*/
|
|
485
|
-
title?: string;
|
|
486
|
-
/**
|
|
487
|
-
* Description of the action
|
|
488
|
-
*/
|
|
489
|
-
description?: string;
|
|
490
|
-
input: {
|
|
491
|
-
schema: {
|
|
492
|
-
[k: string]: any;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
output: {
|
|
496
|
-
schema: {
|
|
497
|
-
[k: string]: any;
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
/**
|
|
503
|
-
* User object configuration
|
|
504
|
-
*/
|
|
505
|
-
user: {
|
|
506
|
-
tags: {
|
|
507
|
-
/**
|
|
508
|
-
* Definition of a tag that can be provided on the object
|
|
509
|
-
*/
|
|
510
|
-
[k: string]: {
|
|
511
|
-
/**
|
|
512
|
-
* Title of the tag
|
|
513
|
-
*/
|
|
514
|
-
title?: string;
|
|
515
|
-
/**
|
|
516
|
-
* Description of the tag
|
|
517
|
-
*/
|
|
518
|
-
description?: string;
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
/**
|
|
522
|
-
* The user creation setting determines how to create a user through the API directly. The integration will have to implement the `createUser` functionality to support this setting.
|
|
523
|
-
*/
|
|
524
|
-
creation: {
|
|
525
|
-
/**
|
|
526
|
-
* Enable user creation
|
|
527
|
-
*/
|
|
528
|
-
enabled: boolean;
|
|
529
|
-
/**
|
|
530
|
-
* The list of tags that are required to be specified when calling the API directly to create a user.
|
|
531
|
-
*/
|
|
532
|
-
requiredTags: string[];
|
|
533
|
-
};
|
|
534
|
-
};
|
|
535
|
-
entities: {
|
|
536
|
-
/**
|
|
537
|
-
* Entity definition
|
|
538
|
-
*/
|
|
539
|
-
[k: string]: {
|
|
540
|
-
/**
|
|
541
|
-
* Title of the entity
|
|
542
|
-
*/
|
|
543
|
-
title?: string;
|
|
544
|
-
/**
|
|
545
|
-
* Description of the entity
|
|
546
|
-
*/
|
|
547
|
-
description?: string;
|
|
548
|
-
schema: {
|
|
549
|
-
[k: string]: any;
|
|
550
|
-
};
|
|
551
|
-
};
|
|
552
|
-
};
|
|
553
|
-
/**
|
|
554
|
-
* Indicates if the integration is a development integration; Dev integrations run locally
|
|
555
|
-
*/
|
|
556
|
-
dev: boolean;
|
|
557
|
-
/**
|
|
558
|
-
* Title of the integration. This is the name that will be displayed in the UI
|
|
559
|
-
*/
|
|
560
|
-
title: string;
|
|
561
|
-
/**
|
|
562
|
-
* Description of the integration. This is the description that will be displayed in the UI
|
|
563
|
-
*/
|
|
564
|
-
description: string;
|
|
565
|
-
/**
|
|
566
|
-
* URL of the icon of the integration. This is the icon that will be displayed in the UI
|
|
567
|
-
*/
|
|
568
|
-
iconUrl: string;
|
|
569
|
-
/**
|
|
570
|
-
* URL of the readme of the integration. This is the readme that will be displayed in the UI
|
|
571
|
-
*/
|
|
572
|
-
readmeUrl: string;
|
|
573
|
-
/**
|
|
574
|
-
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
575
|
-
*/
|
|
576
|
-
public: boolean;
|
|
577
|
-
/**
|
|
578
|
-
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
579
|
-
*/
|
|
580
|
-
secrets: string[];
|
|
581
|
-
}
|
|
582
|
-
export interface Interface {
|
|
583
|
-
/**
|
|
584
|
-
* ID of the [Interface](#schema_interface)
|
|
585
|
-
*/
|
|
586
|
-
id: string;
|
|
587
|
-
/**
|
|
588
|
-
* Creation date of the [Interface](#schema_interface) in ISO 8601 format
|
|
589
|
-
*/
|
|
590
|
-
createdAt: string;
|
|
591
|
-
/**
|
|
592
|
-
* Updating date of the [Interface](#schema_interface) in ISO 8601 format
|
|
593
|
-
*/
|
|
594
|
-
updatedAt: string;
|
|
595
|
-
/**
|
|
596
|
-
* Name of the [Interface](#schema_interface)
|
|
597
|
-
*/
|
|
598
|
-
name: string;
|
|
599
|
-
/**
|
|
600
|
-
* Version of the [Interface](#schema_interface)
|
|
601
|
-
*/
|
|
602
|
-
version: string;
|
|
603
|
-
events: {
|
|
604
|
-
/**
|
|
605
|
-
* Event Definition
|
|
606
|
-
*/
|
|
607
|
-
[k: string]: {
|
|
608
|
-
/**
|
|
609
|
-
* Title of the event
|
|
610
|
-
*/
|
|
611
|
-
title?: string;
|
|
612
|
-
/**
|
|
613
|
-
* Description of the event
|
|
614
|
-
*/
|
|
615
|
-
description?: string;
|
|
616
|
-
schema: {
|
|
617
|
-
[k: string]: any;
|
|
618
|
-
};
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
actions: {
|
|
622
|
-
/**
|
|
623
|
-
* Action definition
|
|
624
|
-
*/
|
|
625
|
-
[k: string]: {
|
|
626
|
-
/**
|
|
627
|
-
* Title of the action
|
|
628
|
-
*/
|
|
629
|
-
title?: string;
|
|
630
|
-
/**
|
|
631
|
-
* Description of the action
|
|
632
|
-
*/
|
|
633
|
-
description?: string;
|
|
634
|
-
input: {
|
|
635
|
-
schema: {
|
|
636
|
-
[k: string]: any;
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
output: {
|
|
640
|
-
schema: {
|
|
641
|
-
[k: string]: any;
|
|
642
|
-
};
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
};
|
|
646
|
-
entities: {
|
|
647
|
-
/**
|
|
648
|
-
* Entity definition
|
|
649
|
-
*/
|
|
650
|
-
[k: string]: {
|
|
651
|
-
/**
|
|
652
|
-
* Title of the entity
|
|
653
|
-
*/
|
|
654
|
-
title?: string;
|
|
655
|
-
/**
|
|
656
|
-
* Description of the entity
|
|
657
|
-
*/
|
|
658
|
-
description?: string;
|
|
659
|
-
schema: {
|
|
660
|
-
[k: string]: any;
|
|
661
|
-
};
|
|
662
|
-
};
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
export interface Workspace {
|
|
666
|
-
id: string;
|
|
667
|
-
name: string;
|
|
668
|
-
ownerId: string;
|
|
669
|
-
createdAt: string;
|
|
670
|
-
updatedAt: string;
|
|
671
|
-
botCount: number;
|
|
672
|
-
billingVersion: "v1" | "v2";
|
|
673
|
-
plan: "community" | "team" | "enterprise";
|
|
674
|
-
blocked: boolean;
|
|
675
|
-
spendingLimit: number;
|
|
676
|
-
about?: string;
|
|
677
|
-
profilePicture?: string;
|
|
678
|
-
contactEmail?: string;
|
|
679
|
-
website?: string;
|
|
680
|
-
socialAccounts?: string[];
|
|
681
|
-
isPublic?: boolean;
|
|
682
|
-
handle?: string;
|
|
683
|
-
}
|
|
684
|
-
export interface WorkspaceMember {
|
|
685
|
-
id: string;
|
|
686
|
-
userId?: string;
|
|
687
|
-
email: string;
|
|
688
|
-
createdAt: string;
|
|
689
|
-
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
690
|
-
profilePicture?: string;
|
|
691
|
-
displayName?: string;
|
|
692
|
-
}
|
|
693
|
-
export interface Account {
|
|
694
|
-
id: string;
|
|
695
|
-
email: string;
|
|
696
|
-
displayName?: string;
|
|
697
|
-
emailVerified: boolean;
|
|
698
|
-
profilePicture?: string;
|
|
699
|
-
/**
|
|
700
|
-
* Creation date of the [Account](#schema_account) in ISO 8601 format
|
|
701
|
-
*/
|
|
702
|
-
createdAt: string;
|
|
703
|
-
}
|
|
704
|
-
export interface Usage {
|
|
705
|
-
/**
|
|
706
|
-
* Id of the usage that it is linked to. It can either be a workspace id or a bot id
|
|
707
|
-
*/
|
|
708
|
-
id: string;
|
|
709
|
-
/**
|
|
710
|
-
* Period of the quota that it is applied to
|
|
711
|
-
*/
|
|
712
|
-
period: string;
|
|
713
|
-
/**
|
|
714
|
-
* Value of the current usage
|
|
715
|
-
*/
|
|
716
|
-
value: number;
|
|
717
|
-
/**
|
|
718
|
-
* Quota of the current usage
|
|
719
|
-
*/
|
|
720
|
-
quota: number;
|
|
721
|
-
/**
|
|
722
|
-
* Usage type that can be used
|
|
723
|
-
*/
|
|
724
|
-
type: "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";
|
|
725
|
-
}
|
|
726
|
-
export interface Issue {
|
|
727
|
-
id: string;
|
|
728
|
-
code: string;
|
|
729
|
-
createdAt: string;
|
|
730
|
-
lastSeenAt: string;
|
|
731
|
-
title: string;
|
|
732
|
-
description: string;
|
|
733
|
-
groupedData: {
|
|
734
|
-
[k: string]: {
|
|
735
|
-
raw: string;
|
|
736
|
-
pretty?: string;
|
|
737
|
-
};
|
|
738
|
-
};
|
|
739
|
-
eventsCount: number;
|
|
740
|
-
category: "user_code" | "limits" | "configuration" | "other";
|
|
741
|
-
resolutionLink: string | null;
|
|
742
|
-
}
|
|
743
|
-
export interface IssueEvent {
|
|
744
|
-
id: string;
|
|
745
|
-
createdAt: string;
|
|
746
|
-
data: {
|
|
747
|
-
[k: string]: {
|
|
748
|
-
raw: string;
|
|
749
|
-
pretty?: string;
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
export interface Activity {
|
|
754
|
-
id: string;
|
|
755
|
-
description: string;
|
|
756
|
-
taskId: string;
|
|
757
|
-
category: "unknown" | "capture" | "bot_message" | "user_message" | "agent_message" | "event" | "action" | "task_status" | "subtask_status" | "exception";
|
|
758
|
-
data: {
|
|
759
|
-
[k: string]: any;
|
|
760
|
-
};
|
|
761
|
-
/**
|
|
762
|
-
* Creation date of the activity in ISO 8601 format
|
|
763
|
-
*/
|
|
764
|
-
createdAt: string;
|
|
765
|
-
}
|
|
766
|
-
/**
|
|
767
|
-
* The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
|
|
768
|
-
*/
|
|
769
|
-
export interface User {
|
|
770
|
-
/**
|
|
771
|
-
* Id of the [User](#schema_user)
|
|
772
|
-
*/
|
|
773
|
-
id: string;
|
|
774
|
-
/**
|
|
775
|
-
* Creation date of the [User](#schema_user) in ISO 8601 format
|
|
776
|
-
*/
|
|
777
|
-
createdAt: string;
|
|
778
|
-
/**
|
|
779
|
-
* Updating date of the [User](#schema_user) in ISO 8601 format
|
|
780
|
-
*/
|
|
781
|
-
updatedAt: string;
|
|
782
|
-
/**
|
|
783
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [User](#schema_user). The set of [Tags](/docs/developers/concepts/tags) available on a [User](#schema_user) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
784
|
-
*/
|
|
785
|
-
tags: {
|
|
786
|
-
[k: string]: string;
|
|
787
|
-
};
|
|
788
|
-
/**
|
|
789
|
-
* Name of the [User](#schema_user)
|
|
790
|
-
*/
|
|
791
|
-
name?: string;
|
|
792
|
-
/**
|
|
793
|
-
* Picture URL of the [User](#schema_user)
|
|
794
|
-
*/
|
|
795
|
-
pictureUrl?: string;
|
|
796
|
-
}
|
|
797
|
-
/**
|
|
798
|
-
* The conversation object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.
|
|
799
|
-
*/
|
|
800
|
-
export interface Conversation {
|
|
801
|
-
/**
|
|
802
|
-
* Id of the [Conversation](#schema_conversation)
|
|
803
|
-
*/
|
|
804
|
-
id: string;
|
|
805
|
-
/**
|
|
806
|
-
* Id of the current [Task](#schema_task)
|
|
807
|
-
*/
|
|
808
|
-
currentTaskId?: string;
|
|
809
|
-
/**
|
|
810
|
-
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
811
|
-
*/
|
|
812
|
-
createdAt: string;
|
|
813
|
-
/**
|
|
814
|
-
* Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
815
|
-
*/
|
|
816
|
-
updatedAt: string;
|
|
817
|
-
/**
|
|
818
|
-
* Name of the channel where the [Conversation](#schema_conversation) is happening
|
|
819
|
-
*/
|
|
820
|
-
channel: string;
|
|
821
|
-
/**
|
|
822
|
-
* Name of the integration that created the [Conversation](#schema_conversation)
|
|
823
|
-
*/
|
|
824
|
-
integration: string;
|
|
825
|
-
/**
|
|
826
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
827
|
-
*/
|
|
828
|
-
tags: {
|
|
829
|
-
[k: string]: string;
|
|
830
|
-
};
|
|
831
|
-
}
|
|
832
|
-
/**
|
|
833
|
-
* The event object represents an action or an occurrence.
|
|
834
|
-
*/
|
|
835
|
-
export interface Event {
|
|
836
|
-
/**
|
|
837
|
-
* Id of the [Event](#schema_event)
|
|
838
|
-
*/
|
|
839
|
-
id: string;
|
|
840
|
-
/**
|
|
841
|
-
* Creation date of the [Event](#schema_event) in ISO 8601 format
|
|
842
|
-
*/
|
|
843
|
-
createdAt: string;
|
|
844
|
-
/**
|
|
845
|
-
* Type of the [Event](#schema_event).
|
|
846
|
-
*/
|
|
847
|
-
type: string;
|
|
848
|
-
/**
|
|
849
|
-
* Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api.
|
|
850
|
-
*/
|
|
851
|
-
payload: {
|
|
852
|
-
[k: string]: any;
|
|
853
|
-
};
|
|
854
|
-
/**
|
|
855
|
-
* ID of the [Conversation](#schema_conversation) to link the event to.
|
|
856
|
-
*/
|
|
857
|
-
conversationId?: string;
|
|
858
|
-
/**
|
|
859
|
-
* ID of the [User](#schema_user) to link the event to.
|
|
860
|
-
*/
|
|
861
|
-
userId?: string;
|
|
862
|
-
/**
|
|
863
|
-
* ID of the [Message](#schema_message) to link the event to.
|
|
864
|
-
*/
|
|
865
|
-
messageId?: string;
|
|
866
|
-
status: "pending" | "processed" | "ignored" | "failed";
|
|
867
|
-
/**
|
|
868
|
-
* Reason why the event failed to be processed
|
|
869
|
-
*/
|
|
870
|
-
failureReason: string | null;
|
|
871
|
-
}
|
|
872
|
-
/**
|
|
873
|
-
* The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
|
|
874
|
-
*/
|
|
875
|
-
export interface Message {
|
|
876
|
-
/**
|
|
877
|
-
* Id of the [Message](#schema_message)
|
|
878
|
-
*/
|
|
879
|
-
id: string;
|
|
880
|
-
/**
|
|
881
|
-
* Creation date of the [Message](#schema_message) in ISO 8601 format
|
|
882
|
-
*/
|
|
883
|
-
createdAt: string;
|
|
884
|
-
/**
|
|
885
|
-
* Type of the [Message](#schema_message) represents the resource type that the message is related to
|
|
886
|
-
*/
|
|
887
|
-
type: string;
|
|
888
|
-
/**
|
|
889
|
-
* Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
|
|
890
|
-
*/
|
|
891
|
-
payload: {
|
|
892
|
-
[k: string]: any;
|
|
893
|
-
};
|
|
894
|
-
/**
|
|
895
|
-
* Direction of the message (`incoming` or `outgoing`).
|
|
896
|
-
*/
|
|
897
|
-
direction: "incoming" | "outgoing";
|
|
898
|
-
/**
|
|
899
|
-
* ID of the [User](#schema_user)
|
|
900
|
-
*/
|
|
901
|
-
userId: string;
|
|
902
|
-
/**
|
|
903
|
-
* ID of the [Conversation](#schema_conversation)
|
|
904
|
-
*/
|
|
905
|
-
conversationId: string;
|
|
906
|
-
/**
|
|
907
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
908
|
-
*/
|
|
909
|
-
tags: {
|
|
910
|
-
[k: string]: string;
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.
|
|
915
|
-
*/
|
|
916
|
-
export interface State {
|
|
917
|
-
/**
|
|
918
|
-
* Id of the [State](#schema_state)
|
|
919
|
-
*/
|
|
920
|
-
id: string;
|
|
921
|
-
/**
|
|
922
|
-
* Creation date of the [State](#schema_state) in ISO 8601 format
|
|
923
|
-
*/
|
|
924
|
-
createdAt: string;
|
|
925
|
-
/**
|
|
926
|
-
* Updating date of the [State](#schema_state) in ISO 8601 format
|
|
927
|
-
*/
|
|
928
|
-
updatedAt: string;
|
|
929
|
-
/**
|
|
930
|
-
* Id of the [Bot](#schema_bot)
|
|
931
|
-
*/
|
|
932
|
-
botId: string;
|
|
933
|
-
/**
|
|
934
|
-
* Id of the [Conversation](#schema_conversation)
|
|
935
|
-
*/
|
|
936
|
-
conversationId?: string;
|
|
937
|
-
/**
|
|
938
|
-
* Id of the [User](#schema_user)
|
|
939
|
-
*/
|
|
940
|
-
userId?: string;
|
|
941
|
-
/**
|
|
942
|
-
* Name of the [State](#schema_state) which is declared inside the bot definition
|
|
943
|
-
*/
|
|
944
|
-
name: string;
|
|
945
|
-
/**
|
|
946
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `integration`) that the state is related to
|
|
947
|
-
*/
|
|
948
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
949
|
-
/**
|
|
950
|
-
* Payload is the content of the state defined by your bot.
|
|
951
|
-
*/
|
|
952
|
-
payload: {
|
|
953
|
-
[k: string]: any;
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Task definition
|
|
958
|
-
*/
|
|
959
|
-
export interface Task {
|
|
960
|
-
/**
|
|
961
|
-
* Id of the [Task](#schema_task)
|
|
962
|
-
*/
|
|
963
|
-
id: string;
|
|
964
|
-
/**
|
|
965
|
-
* Title describing the task
|
|
966
|
-
*/
|
|
967
|
-
title: string;
|
|
968
|
-
/**
|
|
969
|
-
* All the notes related to the execution of the current task
|
|
970
|
-
*/
|
|
971
|
-
description: string;
|
|
972
|
-
/**
|
|
973
|
-
* Type of the task
|
|
974
|
-
*/
|
|
975
|
-
type: string;
|
|
976
|
-
/**
|
|
977
|
-
* Content related to the task
|
|
978
|
-
*/
|
|
979
|
-
data: {
|
|
980
|
-
[k: string]: any;
|
|
981
|
-
};
|
|
982
|
-
/**
|
|
983
|
-
* Status of the task
|
|
984
|
-
*/
|
|
985
|
-
status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
|
|
986
|
-
/**
|
|
987
|
-
* Parent task id is the parent task that created this task
|
|
988
|
-
*/
|
|
989
|
-
parentTaskId?: string;
|
|
990
|
-
/**
|
|
991
|
-
* Conversation id related to this task
|
|
992
|
-
*/
|
|
993
|
-
conversationId?: string;
|
|
994
|
-
/**
|
|
995
|
-
* Specific user related to this task
|
|
996
|
-
*/
|
|
997
|
-
userId?: string;
|
|
998
|
-
/**
|
|
999
|
-
* The timeout date where the task should be failed in the ISO 8601 format
|
|
1000
|
-
*/
|
|
1001
|
-
timeoutAt: string;
|
|
1002
|
-
/**
|
|
1003
|
-
* Creation date of the task in ISO 8601 format
|
|
1004
|
-
*/
|
|
1005
|
-
createdAt: string;
|
|
1006
|
-
/**
|
|
1007
|
-
* Updating date of the task in ISO 8601 format
|
|
1008
|
-
*/
|
|
1009
|
-
updatedAt: string;
|
|
1010
|
-
/**
|
|
1011
|
-
* If the task fails this is the reason behind it
|
|
1012
|
-
*/
|
|
1013
|
-
failureReason?: string;
|
|
1014
|
-
/**
|
|
1015
|
-
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Task](#schema_task). Individual keys can be unset by posting an empty value to them.
|
|
1016
|
-
*/
|
|
1017
|
-
tags: {
|
|
1018
|
-
[k: string]: string;
|
|
1019
|
-
};
|
|
1020
|
-
}
|
|
1021
|
-
export interface Table {
|
|
1022
|
-
/**
|
|
1023
|
-
* Unique identifier for the table
|
|
1024
|
-
*/
|
|
1025
|
-
id: string;
|
|
1026
|
-
/**
|
|
1027
|
-
* Required. This name is used to identify your table.
|
|
1028
|
-
*/
|
|
1029
|
-
name: string;
|
|
1030
|
-
/**
|
|
1031
|
-
* The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1.
|
|
1032
|
-
*/
|
|
1033
|
-
factor?: number;
|
|
1034
|
-
/**
|
|
1035
|
-
* A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
|
|
1036
|
-
*/
|
|
1037
|
-
frozen?: boolean;
|
|
1038
|
-
schema: {
|
|
1039
|
-
$schema: string;
|
|
1040
|
-
/**
|
|
1041
|
-
* List of keys/columns in the table.
|
|
1042
|
-
*/
|
|
1043
|
-
properties: {
|
|
1044
|
-
[k: string]: {
|
|
1045
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
1046
|
-
format?: "date-time";
|
|
1047
|
-
description?: string;
|
|
1048
|
-
nullable?: boolean;
|
|
1049
|
-
"x-zui": {
|
|
1050
|
-
index: number;
|
|
1051
|
-
/**
|
|
1052
|
-
* [deprecated] ID of the column.
|
|
1053
|
-
*/
|
|
1054
|
-
id?: string;
|
|
1055
|
-
/**
|
|
1056
|
-
* Indicates if the column is vectorized and searchable.
|
|
1057
|
-
*/
|
|
1058
|
-
searchable?: boolean;
|
|
1059
|
-
/**
|
|
1060
|
-
* Indicates if the field is hidden in the UI
|
|
1061
|
-
*/
|
|
1062
|
-
hidden?: boolean;
|
|
1063
|
-
/**
|
|
1064
|
-
* Order of the column in the UI
|
|
1065
|
-
*/
|
|
1066
|
-
order?: number;
|
|
1067
|
-
/**
|
|
1068
|
-
* Width of the column in the UI
|
|
1069
|
-
*/
|
|
1070
|
-
width?: number;
|
|
1071
|
-
computed?: {
|
|
1072
|
-
action: "ai" | "code";
|
|
1073
|
-
dependencies?: string[];
|
|
1074
|
-
/**
|
|
1075
|
-
* Prompt when action is "ai"
|
|
1076
|
-
*/
|
|
1077
|
-
prompt?: string;
|
|
1078
|
-
/**
|
|
1079
|
-
* Model to use when action is "ai"
|
|
1080
|
-
*/
|
|
1081
|
-
model?: "gpt-3.5-turbo" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-16k" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4-0125-preview" | "gpt-4-1106-preview";
|
|
1082
|
-
/**
|
|
1083
|
-
* Code to execute when action is "code"
|
|
1084
|
-
*/
|
|
1085
|
-
code?: string;
|
|
1086
|
-
enabled?: boolean;
|
|
1087
|
-
};
|
|
1088
|
-
/**
|
|
1089
|
-
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
1090
|
-
*/
|
|
1091
|
-
typings?: string;
|
|
1092
|
-
};
|
|
1093
|
-
};
|
|
1094
|
-
};
|
|
1095
|
-
/**
|
|
1096
|
-
* Additional properties can be provided, but they will be ignored if no column matches.
|
|
1097
|
-
*/
|
|
1098
|
-
additionalProperties: true;
|
|
1099
|
-
/**
|
|
1100
|
-
* Array of required properties.
|
|
1101
|
-
*/
|
|
1102
|
-
required?: string[];
|
|
1103
|
-
type: "object";
|
|
1104
|
-
};
|
|
1105
|
-
/**
|
|
1106
|
-
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
1107
|
-
*/
|
|
1108
|
-
tags?: {
|
|
1109
|
-
[k: string]: string;
|
|
1110
|
-
};
|
|
1111
|
-
/**
|
|
1112
|
-
* Indicates if the table is enabled for computation.
|
|
1113
|
-
*/
|
|
1114
|
-
isComputeEnabled?: boolean;
|
|
1115
|
-
/**
|
|
1116
|
-
* Timestamp of table creation.
|
|
1117
|
-
*/
|
|
1118
|
-
createdAt?: string;
|
|
1119
|
-
/**
|
|
1120
|
-
* Timestamp of the last table update.
|
|
1121
|
-
*/
|
|
1122
|
-
updatedAt?: string;
|
|
1123
|
-
}
|
|
1124
|
-
export interface Column {
|
|
1125
|
-
/**
|
|
1126
|
-
* Unique identifier for the column.
|
|
1127
|
-
*/
|
|
1128
|
-
id?: string;
|
|
1129
|
-
/**
|
|
1130
|
-
* Name of the column, must be within length limits.
|
|
1131
|
-
*/
|
|
1132
|
-
name: string;
|
|
1133
|
-
/**
|
|
1134
|
-
* Optional descriptive text about the column.
|
|
1135
|
-
*/
|
|
1136
|
-
description?: string;
|
|
1137
|
-
/**
|
|
1138
|
-
* Indicates if the column is vectorized and searchable.
|
|
1139
|
-
*/
|
|
1140
|
-
searchable?: boolean;
|
|
1141
|
-
/**
|
|
1142
|
-
* Specifies the data type of the column. Use "object" for complex data structures.
|
|
1143
|
-
*/
|
|
1144
|
-
type: "string" | "number" | "boolean" | "date" | "object";
|
|
1145
|
-
/**
|
|
1146
|
-
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
1147
|
-
*/
|
|
1148
|
-
typings?: string;
|
|
1149
|
-
computed?: {
|
|
1150
|
-
action: "ai" | "code";
|
|
1151
|
-
dependencies?: string[];
|
|
1152
|
-
/**
|
|
1153
|
-
* Prompt when action is "ai"
|
|
1154
|
-
*/
|
|
1155
|
-
prompt?: string;
|
|
1156
|
-
/**
|
|
1157
|
-
* Model to use when action is "ai"
|
|
1158
|
-
*/
|
|
1159
|
-
model?: "gpt-3.5-turbo" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-16k" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4-0125-preview" | "gpt-4-1106-preview";
|
|
1160
|
-
/**
|
|
1161
|
-
* Code to execute when action is "code"
|
|
1162
|
-
*/
|
|
1163
|
-
code?: string;
|
|
1164
|
-
enabled?: boolean;
|
|
1165
|
-
};
|
|
1166
|
-
schema?: {
|
|
1167
|
-
[k: string]: any;
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
export interface Row {
|
|
1171
|
-
/**
|
|
1172
|
-
* Unique identifier for the row.
|
|
1173
|
-
*/
|
|
1174
|
-
id: number;
|
|
1175
|
-
/**
|
|
1176
|
-
* Timestamp of row creation.
|
|
1177
|
-
*/
|
|
1178
|
-
createdAt?: string;
|
|
1179
|
-
/**
|
|
1180
|
-
* Timestamp of the last row update.
|
|
1181
|
-
*/
|
|
1182
|
-
updatedAt?: string;
|
|
1183
|
-
computed: {
|
|
1184
|
-
[k: string]: {
|
|
1185
|
-
status: string;
|
|
1186
|
-
error?: string;
|
|
1187
|
-
updatedBy?: string;
|
|
1188
|
-
updatedAt?: string;
|
|
1189
|
-
};
|
|
1190
|
-
};
|
|
1191
|
-
/**
|
|
1192
|
-
* [Read-only] List of stale values that are waiting to be recomputed.
|
|
1193
|
-
*/
|
|
1194
|
-
stale?: string[];
|
|
1195
|
-
/**
|
|
1196
|
-
* Optional numeric value indicating similarity, when using findTableRows.
|
|
1197
|
-
*/
|
|
1198
|
-
similarity?: number;
|
|
1199
|
-
[k: string]: any;
|
|
1200
|
-
}
|
|
1201
|
-
export interface File {
|
|
1202
|
-
/**
|
|
1203
|
-
* File ID
|
|
1204
|
-
*/
|
|
1205
|
-
id: string;
|
|
1206
|
-
/**
|
|
1207
|
-
* The ID of the bot the file belongs to
|
|
1208
|
-
*/
|
|
1209
|
-
botId: string;
|
|
1210
|
-
/**
|
|
1211
|
-
* Unique key for the file. Must be unique across the bot (and the integration, when applicable).
|
|
1212
|
-
*/
|
|
1213
|
-
key: string;
|
|
1214
|
-
/**
|
|
1215
|
-
* URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
|
|
1216
|
-
*
|
|
1217
|
-
* If the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.
|
|
1218
|
-
*/
|
|
1219
|
-
url: string;
|
|
1220
|
-
/**
|
|
1221
|
-
* File size in bytes. Non-null if file upload status is "COMPLETE".
|
|
1222
|
-
*/
|
|
1223
|
-
size: number | null;
|
|
1224
|
-
/**
|
|
1225
|
-
* MIME type of the file's content
|
|
1226
|
-
*/
|
|
1227
|
-
contentType: string;
|
|
1228
|
-
/**
|
|
1229
|
-
* The tags of the file as an object of key/value pairs
|
|
1230
|
-
*/
|
|
1231
|
-
tags: {
|
|
1232
|
-
[k: string]: string;
|
|
1233
|
-
};
|
|
1234
|
-
/**
|
|
1235
|
-
* File creation timestamp in ISO 8601 format
|
|
1236
|
-
*/
|
|
1237
|
-
createdAt: string;
|
|
1238
|
-
/**
|
|
1239
|
-
* File last update timestamp in ISO 8601 format
|
|
1240
|
-
*/
|
|
1241
|
-
updatedAt: string;
|
|
1242
|
-
/**
|
|
1243
|
-
* Access policies configured for the file.
|
|
1244
|
-
*/
|
|
1245
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
1246
|
-
/**
|
|
1247
|
-
* Whether the file was requested to be indexed for search or not.
|
|
1248
|
-
*/
|
|
1249
|
-
index: boolean;
|
|
1250
|
-
/**
|
|
1251
|
-
* Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.
|
|
1252
|
-
*
|
|
1253
|
-
* If the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.
|
|
1254
|
-
*
|
|
1255
|
-
* However, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).
|
|
1256
|
-
*
|
|
1257
|
-
* Once the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field.
|
|
1258
|
-
*/
|
|
1259
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
1260
|
-
/**
|
|
1261
|
-
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
1262
|
-
*/
|
|
1263
|
-
failedStatusReason?: string;
|
|
1264
|
-
}
|