@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.
Files changed (144) hide show
  1. package/.turbo/turbo-build.log +12 -6
  2. package/.turbo/turbo-generate.log +1 -1
  3. package/dist/bundle.cjs +11 -11
  4. package/dist/bundle.cjs.map +4 -4
  5. package/dist/index.cjs +4 -4
  6. package/dist/index.cjs.map +4 -4
  7. package/dist/index.d.ts +10910 -4
  8. package/dist/index.mjs +4 -4
  9. package/dist/index.mjs.map +4 -4
  10. package/package.json +4 -3
  11. package/dist/client.d.ts +0 -10
  12. package/dist/config.d.ts +0 -2
  13. package/dist/errors.d.ts +0 -41
  14. package/dist/gen/errors.d.ts +0 -211
  15. package/dist/gen/index.d.ts +0 -389
  16. package/dist/gen/models.d.ts +0 -1264
  17. package/dist/gen/operations/addParticipant.d.ts +0 -56
  18. package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +0 -27
  19. package/dist/gen/operations/callAction.d.ts +0 -36
  20. package/dist/gen/operations/changeAISpendQuota.d.ts +0 -21
  21. package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +0 -40
  22. package/dist/gen/operations/checkHandleAvailability.d.ts +0 -24
  23. package/dist/gen/operations/configureIntegration.d.ts +0 -24
  24. package/dist/gen/operations/createBot.d.ts +0 -487
  25. package/dist/gen/operations/createConversation.d.ts +0 -70
  26. package/dist/gen/operations/createEvent.d.ts +0 -95
  27. package/dist/gen/operations/createIntegration.d.ts +0 -573
  28. package/dist/gen/operations/createIntegrationApiKey.d.ts +0 -29
  29. package/dist/gen/operations/createInterface.d.ts +0 -172
  30. package/dist/gen/operations/createMessage.d.ts +0 -98
  31. package/dist/gen/operations/createPersonalAccessToken.d.ts +0 -33
  32. package/dist/gen/operations/createTable.d.ts +0 -151
  33. package/dist/gen/operations/createTableRows.d.ts +0 -71
  34. package/dist/gen/operations/createTask.d.ts +0 -125
  35. package/dist/gen/operations/createUser.d.ts +0 -70
  36. package/dist/gen/operations/createWorkspace.d.ts +0 -38
  37. package/dist/gen/operations/createWorkspaceMember.d.ts +0 -29
  38. package/dist/gen/operations/deleteBot.d.ts +0 -21
  39. package/dist/gen/operations/deleteBotIssue.d.ts +0 -22
  40. package/dist/gen/operations/deleteConversation.d.ts +0 -21
  41. package/dist/gen/operations/deleteFile.d.ts +0 -21
  42. package/dist/gen/operations/deleteIntegration.d.ts +0 -21
  43. package/dist/gen/operations/deleteIntegrationApiKey.d.ts +0 -21
  44. package/dist/gen/operations/deleteInterface.d.ts +0 -21
  45. package/dist/gen/operations/deleteMessage.d.ts +0 -21
  46. package/dist/gen/operations/deletePersonalAccessToken.d.ts +0 -21
  47. package/dist/gen/operations/deleteTable.d.ts +0 -21
  48. package/dist/gen/operations/deleteTableRows.d.ts +0 -36
  49. package/dist/gen/operations/deleteTask.d.ts +0 -21
  50. package/dist/gen/operations/deleteUser.d.ts +0 -21
  51. package/dist/gen/operations/deleteWorkspace.d.ts +0 -21
  52. package/dist/gen/operations/deleteWorkspaceMember.d.ts +0 -21
  53. package/dist/gen/operations/duplicateTable.d.ts +0 -137
  54. package/dist/gen/operations/findTableRows.d.ts +0 -94
  55. package/dist/gen/operations/getAccount.d.ts +0 -31
  56. package/dist/gen/operations/getAccountPreference.d.ts +0 -22
  57. package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +0 -24
  58. package/dist/gen/operations/getAuditRecords.d.ts +0 -38
  59. package/dist/gen/operations/getBot.d.ts +0 -308
  60. package/dist/gen/operations/getBotAnalytics.d.ts +0 -49
  61. package/dist/gen/operations/getBotIssue.d.ts +0 -39
  62. package/dist/gen/operations/getBotLogs.d.ts +0 -30
  63. package/dist/gen/operations/getBotWebchat.d.ts +0 -23
  64. package/dist/gen/operations/getConversation.d.ts +0 -56
  65. package/dist/gen/operations/getEvent.d.ts +0 -61
  66. package/dist/gen/operations/getFile.d.ts +0 -85
  67. package/dist/gen/operations/getIntegration.d.ts +0 -315
  68. package/dist/gen/operations/getIntegrationByName.d.ts +0 -316
  69. package/dist/gen/operations/getIntegrationLogs.d.ts +0 -30
  70. package/dist/gen/operations/getInterface.d.ts +0 -104
  71. package/dist/gen/operations/getInterfaceByName.d.ts +0 -105
  72. package/dist/gen/operations/getMessage.d.ts +0 -62
  73. package/dist/gen/operations/getMultipleUsages.d.ts +0 -45
  74. package/dist/gen/operations/getOrCreateConversation.d.ts +0 -70
  75. package/dist/gen/operations/getOrCreateMessage.d.ts +0 -98
  76. package/dist/gen/operations/getOrCreateTable.d.ts +0 -164
  77. package/dist/gen/operations/getOrCreateUser.d.ts +0 -70
  78. package/dist/gen/operations/getOrSetState.d.ts +0 -76
  79. package/dist/gen/operations/getParticipant.d.ts +0 -53
  80. package/dist/gen/operations/getPublicIntegration.d.ts +0 -321
  81. package/dist/gen/operations/getPublicIntegrationById.d.ts +0 -320
  82. package/dist/gen/operations/getPublicWorkspace.d.ts +0 -31
  83. package/dist/gen/operations/getState.d.ts +0 -66
  84. package/dist/gen/operations/getTable.d.ts +0 -136
  85. package/dist/gen/operations/getTableRow.d.ts +0 -53
  86. package/dist/gen/operations/getTask.d.ts +0 -86
  87. package/dist/gen/operations/getUpcomingInvoice.d.ts +0 -29
  88. package/dist/gen/operations/getUsage.d.ts +0 -45
  89. package/dist/gen/operations/getUser.d.ts +0 -52
  90. package/dist/gen/operations/getWorkspace.d.ts +0 -38
  91. package/dist/gen/operations/getWorkspaceMember.d.ts +0 -27
  92. package/dist/gen/operations/getWorkspaceQuota.d.ts +0 -37
  93. package/dist/gen/operations/introspect.d.ts +0 -24
  94. package/dist/gen/operations/listActivities.d.ts +0 -42
  95. package/dist/gen/operations/listBotIssueEvents.d.ts +0 -32
  96. package/dist/gen/operations/listBotIssues.d.ts +0 -45
  97. package/dist/gen/operations/listBots.d.ts +0 -46
  98. package/dist/gen/operations/listConversations.d.ts +0 -64
  99. package/dist/gen/operations/listEvents.d.ts +0 -69
  100. package/dist/gen/operations/listFiles.d.ts +0 -94
  101. package/dist/gen/operations/listIntegrationApiKeys.d.ts +0 -26
  102. package/dist/gen/operations/listIntegrations.d.ts +0 -68
  103. package/dist/gen/operations/listInterfaces.d.ts +0 -49
  104. package/dist/gen/operations/listMessages.d.ts +0 -69
  105. package/dist/gen/operations/listParticipants.d.ts +0 -56
  106. package/dist/gen/operations/listPersonalAccessTokens.d.ts +0 -25
  107. package/dist/gen/operations/listPublicIntegrations.d.ts +0 -72
  108. package/dist/gen/operations/listPublicWorkspaces.d.ts +0 -42
  109. package/dist/gen/operations/listTables.d.ts +0 -126
  110. package/dist/gen/operations/listTasks.d.ts +0 -97
  111. package/dist/gen/operations/listUsageHistory.d.ts +0 -44
  112. package/dist/gen/operations/listUsers.d.ts +0 -59
  113. package/dist/gen/operations/listWorkspaceInvoices.d.ts +0 -57
  114. package/dist/gen/operations/listWorkspaceMembers.d.ts +0 -36
  115. package/dist/gen/operations/listWorkspaceQuotas.d.ts +0 -36
  116. package/dist/gen/operations/listWorkspaceUsages.d.ts +0 -45
  117. package/dist/gen/operations/listWorkspaces.d.ts +0 -47
  118. package/dist/gen/operations/patchState.d.ts +0 -72
  119. package/dist/gen/operations/removeParticipant.d.ts +0 -22
  120. package/dist/gen/operations/renameTableColumn.d.ts +0 -132
  121. package/dist/gen/operations/runVrl.d.ts +0 -28
  122. package/dist/gen/operations/searchFiles.d.ts +0 -56
  123. package/dist/gen/operations/setAccountPreference.d.ts +0 -22
  124. package/dist/gen/operations/setState.d.ts +0 -76
  125. package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +0 -37
  126. package/dist/gen/operations/trackAnalytics.d.ts +0 -22
  127. package/dist/gen/operations/transferBot.d.ts +0 -25
  128. package/dist/gen/operations/updateAccount.d.ts +0 -34
  129. package/dist/gen/operations/updateBot.d.ts +0 -486
  130. package/dist/gen/operations/updateConversation.d.ts +0 -63
  131. package/dist/gen/operations/updateFileMetadata.d.ts +0 -95
  132. package/dist/gen/operations/updateIntegration.d.ts +0 -562
  133. package/dist/gen/operations/updateInterface.d.ts +0 -165
  134. package/dist/gen/operations/updateMessage.d.ts +0 -68
  135. package/dist/gen/operations/updateTable.d.ts +0 -152
  136. package/dist/gen/operations/updateTableRows.d.ts +0 -74
  137. package/dist/gen/operations/updateTask.d.ts +0 -114
  138. package/dist/gen/operations/updateUser.d.ts +0 -66
  139. package/dist/gen/operations/updateWorkspace.d.ts +0 -50
  140. package/dist/gen/operations/updateWorkspaceMember.d.ts +0 -29
  141. package/dist/gen/operations/upsertFile.d.ts +0 -114
  142. package/dist/gen/operations/upsertTableRows.d.ts +0 -107
  143. package/dist/gen/to-axios.d.ts +0 -16
  144. package/dist/types.d.ts +0 -49
@@ -1,486 +0,0 @@
1
- export interface UpdateBotRequestHeaders {
2
- }
3
- export interface UpdateBotRequestQuery {
4
- }
5
- export interface UpdateBotRequestParams {
6
- id: string;
7
- }
8
- export interface UpdateBotRequestBody {
9
- /**
10
- * URL of the [Bot](#schema_bot); Only available for dev bots
11
- */
12
- url?: string;
13
- /**
14
- * Type of the [Bot](#schema_bot) authentication (`iam`)
15
- */
16
- authentication?: "iam";
17
- configuration?: {
18
- /**
19
- * Configuration data
20
- */
21
- data?: {
22
- [k: string]: any;
23
- };
24
- /**
25
- * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
26
- */
27
- schema?: {
28
- [k: string]: any;
29
- };
30
- };
31
- blocked?: boolean;
32
- /**
33
- * Indicates if the [Bot](#schema_bot) should be in always alive mode
34
- */
35
- alwaysAlive?: boolean;
36
- user?: {
37
- tags?: {
38
- /**
39
- * Definition of a tag that can be provided on the object
40
- */
41
- [k: string]: {
42
- /**
43
- * Title of the tag
44
- */
45
- title?: string;
46
- /**
47
- * Description of the tag
48
- */
49
- description?: string;
50
- } | null;
51
- };
52
- };
53
- message?: {
54
- tags?: {
55
- /**
56
- * Definition of a tag that can be provided on the object
57
- */
58
- [k: string]: {
59
- /**
60
- * Title of the tag
61
- */
62
- title?: string;
63
- /**
64
- * Description of the tag
65
- */
66
- description?: string;
67
- } | null;
68
- };
69
- };
70
- conversation?: {
71
- tags?: {
72
- /**
73
- * Definition of a tag that can be provided on the object
74
- */
75
- [k: string]: {
76
- /**
77
- * Title of the tag
78
- */
79
- title?: string;
80
- /**
81
- * Description of the tag
82
- */
83
- description?: string;
84
- } | null;
85
- };
86
- };
87
- events?: {
88
- /**
89
- * Event Definition
90
- */
91
- [k: string]: {
92
- /**
93
- * Title of the event
94
- */
95
- title?: string;
96
- /**
97
- * Description of the event
98
- */
99
- description?: string;
100
- schema: {
101
- [k: string]: any;
102
- };
103
- } | null;
104
- };
105
- actions?: {
106
- /**
107
- * Action definition
108
- */
109
- [k: string]: {
110
- /**
111
- * Title of the action
112
- */
113
- title?: string;
114
- /**
115
- * Description of the action
116
- */
117
- description?: string;
118
- input: {
119
- schema: {
120
- [k: string]: any;
121
- };
122
- };
123
- output: {
124
- schema: {
125
- [k: string]: any;
126
- };
127
- };
128
- } | null;
129
- };
130
- states?: {
131
- [k: string]: {
132
- /**
133
- * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
134
- */
135
- type: "conversation" | "user" | "bot" | "task";
136
- /**
137
- * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
138
- */
139
- schema: {
140
- [k: string]: any;
141
- };
142
- /**
143
- * 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.
144
- */
145
- expiry?: number;
146
- } | null;
147
- };
148
- recurringEvents?: {
149
- [k: string]: {
150
- schedule: {
151
- cron: string;
152
- };
153
- type: string;
154
- payload: {
155
- [k: string]: any;
156
- };
157
- } | null;
158
- };
159
- integrations?: {
160
- [k: string]: {
161
- enabled?: boolean;
162
- configuration?: {
163
- [k: string]: any;
164
- };
165
- } | null;
166
- };
167
- subscriptions?: {
168
- events: {
169
- [k: string]: {} | null;
170
- } | null;
171
- };
172
- /**
173
- * JavaScript code of the bot
174
- */
175
- code?: string;
176
- /**
177
- * Optional name for the bot, if not provided will be auto-generated
178
- */
179
- name?: string;
180
- /**
181
- * Media files associated with the [Bot](#schema_bot)
182
- */
183
- medias?: {
184
- url: string;
185
- name: string;
186
- }[];
187
- }
188
- export type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
189
- export type UpdateBotRequest = {
190
- headers: UpdateBotRequestHeaders;
191
- query: UpdateBotRequestQuery;
192
- params: UpdateBotRequestParams;
193
- body: UpdateBotRequestBody;
194
- };
195
- export declare const parseReq: (input: UpdateBotInput) => UpdateBotRequest & {
196
- path: string;
197
- };
198
- export interface UpdateBotResponse {
199
- bot: {
200
- /**
201
- * Id of the [Bot](#schema_bot)
202
- */
203
- id: string;
204
- /**
205
- * Creation date of the [Bot](#schema_bot) in ISO 8601 format
206
- */
207
- createdAt: string;
208
- /**
209
- * Updating date of the [Bot](#schema_bot) in ISO 8601 format
210
- */
211
- updatedAt: string;
212
- /**
213
- * Signing secret of the [Bot](#schema_bot)
214
- */
215
- signingSecret: string;
216
- /**
217
- * A mapping of integrations to their configuration
218
- */
219
- integrations: {
220
- [k: string]: {
221
- enabled: boolean;
222
- /**
223
- * Name of the [Integration](#schema_integration)
224
- */
225
- name: string;
226
- /**
227
- * Version of the [Integration](#schema_integration)
228
- */
229
- version: string;
230
- webhookUrl: string;
231
- webhookId: string;
232
- identifier?: string;
233
- configuration: {
234
- [k: string]: any;
235
- };
236
- status: "registration_pending" | "registered" | "registration_failed" | "unregistration_pending" | "unregistered" | "unregistration_failed";
237
- statusReason: string | null;
238
- /**
239
- * ID of the [Integration](#schema_integration)
240
- */
241
- id: string;
242
- /**
243
- * Creation date of the [Integration](#schema_integration) in ISO 8601 format
244
- */
245
- createdAt: string;
246
- /**
247
- * Updating date of the [Integration](#schema_integration) in ISO 8601 format
248
- */
249
- updatedAt: string;
250
- /**
251
- * Title of the integration. This is the name that will be displayed in the UI
252
- */
253
- title: string;
254
- /**
255
- * Description of the integration. This is the description that will be displayed in the UI
256
- */
257
- description: string;
258
- /**
259
- * URL of the icon of the integration. This is the icon that will be displayed in the UI
260
- */
261
- iconUrl: string;
262
- /**
263
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
264
- */
265
- public: boolean;
266
- };
267
- };
268
- /**
269
- * User object configuration
270
- */
271
- user: {
272
- tags: {
273
- /**
274
- * Definition of a tag that can be provided on the object
275
- */
276
- [k: string]: {
277
- /**
278
- * Title of the tag
279
- */
280
- title?: string;
281
- /**
282
- * Description of the tag
283
- */
284
- description?: string;
285
- };
286
- };
287
- };
288
- /**
289
- * Conversation object configuration
290
- */
291
- conversation: {
292
- tags: {
293
- /**
294
- * Definition of a tag that can be provided on the object
295
- */
296
- [k: string]: {
297
- /**
298
- * Title of the tag
299
- */
300
- title?: string;
301
- /**
302
- * Description of the tag
303
- */
304
- description?: string;
305
- };
306
- };
307
- };
308
- /**
309
- * Message object configuration
310
- */
311
- message: {
312
- tags: {
313
- /**
314
- * Definition of a tag that can be provided on the object
315
- */
316
- [k: string]: {
317
- /**
318
- * Title of the tag
319
- */
320
- title?: string;
321
- /**
322
- * Description of the tag
323
- */
324
- description?: string;
325
- };
326
- };
327
- };
328
- /**
329
- * A mapping of states to their definition
330
- */
331
- states: {
332
- [k: string]: {
333
- /**
334
- * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
335
- */
336
- type: "conversation" | "user" | "bot" | "task";
337
- /**
338
- * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
339
- */
340
- schema: {
341
- [k: string]: any;
342
- };
343
- /**
344
- * 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.
345
- */
346
- expiry?: number;
347
- };
348
- };
349
- /**
350
- * Configuration of the bot
351
- */
352
- configuration: {
353
- /**
354
- * Configuration data
355
- */
356
- data: {
357
- [k: string]: any;
358
- };
359
- /**
360
- * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
361
- */
362
- schema: {
363
- [k: string]: any;
364
- };
365
- };
366
- /**
367
- * Events definition
368
- */
369
- events: {
370
- /**
371
- * Event Definition
372
- */
373
- [k: string]: {
374
- /**
375
- * Title of the event
376
- */
377
- title?: string;
378
- /**
379
- * Description of the event
380
- */
381
- description?: string;
382
- schema: {
383
- [k: string]: any;
384
- };
385
- };
386
- };
387
- /**
388
- * Recurring events
389
- */
390
- recurringEvents: {
391
- [k: string]: {
392
- schedule: {
393
- cron: string;
394
- };
395
- type: string;
396
- payload: {
397
- [k: string]: any;
398
- };
399
- /**
400
- * The number of times the recurring event failed to run. This counter resets once the recurring event runs successfully.
401
- */
402
- failedAttempts: number;
403
- /**
404
- * The reason why the recurring event failed to run in the last attempt.
405
- */
406
- lastFailureReason: string | null;
407
- };
408
- };
409
- /**
410
- * Subscriptions of the bot
411
- */
412
- subscriptions: {
413
- /**
414
- * Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.
415
- */
416
- events: {
417
- [k: string]: {};
418
- } | null;
419
- };
420
- /**
421
- * Actions definition
422
- */
423
- actions: {
424
- /**
425
- * Action definition
426
- */
427
- [k: string]: {
428
- /**
429
- * Title of the action
430
- */
431
- title?: string;
432
- /**
433
- * Description of the action
434
- */
435
- description?: string;
436
- input: {
437
- schema: {
438
- [k: string]: any;
439
- };
440
- };
441
- output: {
442
- schema: {
443
- [k: string]: any;
444
- };
445
- };
446
- };
447
- };
448
- /**
449
- * Name of the [Bot](#schema_bot)
450
- */
451
- name: string;
452
- /**
453
- * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format
454
- */
455
- deployedAt?: string;
456
- /**
457
- * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations
458
- */
459
- dev: boolean;
460
- /**
461
- * Id of the user that created the bot
462
- */
463
- createdBy?: string;
464
- /**
465
- * Indicates if the [Bot](#schema_bot) should be in always alive mode
466
- */
467
- alwaysAlive: boolean;
468
- /**
469
- * Status of the bot
470
- */
471
- status: "active" | "deploying";
472
- /**
473
- * Media files associated with the [Bot](#schema_bot)
474
- */
475
- medias: {
476
- /**
477
- * URL of the media file
478
- */
479
- url: string;
480
- /**
481
- * Name of the media file
482
- */
483
- name: string;
484
- }[];
485
- };
486
- }
@@ -1,63 +0,0 @@
1
- export interface UpdateConversationRequestHeaders {
2
- }
3
- export interface UpdateConversationRequestQuery {
4
- }
5
- export interface UpdateConversationRequestParams {
6
- id: string;
7
- }
8
- export interface UpdateConversationRequestBody {
9
- currentTaskId?: string;
10
- /**
11
- * Tags for the [Conversation](#schema_conversation)
12
- */
13
- tags?: {
14
- [k: string]: string;
15
- };
16
- }
17
- export type UpdateConversationInput = UpdateConversationRequestBody & UpdateConversationRequestHeaders & UpdateConversationRequestQuery & UpdateConversationRequestParams;
18
- export type UpdateConversationRequest = {
19
- headers: UpdateConversationRequestHeaders;
20
- query: UpdateConversationRequestQuery;
21
- params: UpdateConversationRequestParams;
22
- body: UpdateConversationRequestBody;
23
- };
24
- export declare const parseReq: (input: UpdateConversationInput) => UpdateConversationRequest & {
25
- path: string;
26
- };
27
- export interface UpdateConversationResponse {
28
- /**
29
- * 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.
30
- */
31
- conversation: {
32
- /**
33
- * Id of the [Conversation](#schema_conversation)
34
- */
35
- id: string;
36
- /**
37
- * Id of the current [Task](#schema_task)
38
- */
39
- currentTaskId?: string;
40
- /**
41
- * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
42
- */
43
- createdAt: string;
44
- /**
45
- * Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
46
- */
47
- updatedAt: string;
48
- /**
49
- * Name of the channel where the [Conversation](#schema_conversation) is happening
50
- */
51
- channel: string;
52
- /**
53
- * Name of the integration that created the [Conversation](#schema_conversation)
54
- */
55
- integration: string;
56
- /**
57
- * 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.
58
- */
59
- tags: {
60
- [k: string]: string;
61
- };
62
- };
63
- }
@@ -1,95 +0,0 @@
1
- export interface UpdateFileMetadataRequestHeaders {
2
- }
3
- export interface UpdateFileMetadataRequestQuery {
4
- }
5
- export interface UpdateFileMetadataRequestParams {
6
- id: string;
7
- }
8
- export interface UpdateFileMetadataRequestBody {
9
- /**
10
- * The file tags to update as an object of key-value pairs with `string` (text) values. Omit to keep existing tags intact. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`.
11
- */
12
- tags?: {
13
- [k: string]: string | null;
14
- };
15
- /**
16
- * New access policies to set for the file. Omit to keep existing policies intact.
17
- */
18
- accessPolicies?: ("integrations" | "public_content")[];
19
- }
20
- export type UpdateFileMetadataInput = UpdateFileMetadataRequestBody & UpdateFileMetadataRequestHeaders & UpdateFileMetadataRequestQuery & UpdateFileMetadataRequestParams;
21
- export type UpdateFileMetadataRequest = {
22
- headers: UpdateFileMetadataRequestHeaders;
23
- query: UpdateFileMetadataRequestQuery;
24
- params: UpdateFileMetadataRequestParams;
25
- body: UpdateFileMetadataRequestBody;
26
- };
27
- export declare const parseReq: (input: UpdateFileMetadataInput) => UpdateFileMetadataRequest & {
28
- path: string;
29
- };
30
- export interface UpdateFileMetadataResponse {
31
- file: {
32
- /**
33
- * File ID
34
- */
35
- id: string;
36
- /**
37
- * The ID of the bot the file belongs to
38
- */
39
- botId: string;
40
- /**
41
- * Unique key for the file. Must be unique across the bot (and the integration, when applicable).
42
- */
43
- key: string;
44
- /**
45
- * URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
46
- *
47
- * 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.
48
- */
49
- url: string;
50
- /**
51
- * File size in bytes. Non-null if file upload status is "COMPLETE".
52
- */
53
- size: number | null;
54
- /**
55
- * MIME type of the file's content
56
- */
57
- contentType: string;
58
- /**
59
- * The tags of the file as an object of key/value pairs
60
- */
61
- tags: {
62
- [k: string]: string;
63
- };
64
- /**
65
- * File creation timestamp in ISO 8601 format
66
- */
67
- createdAt: string;
68
- /**
69
- * File last update timestamp in ISO 8601 format
70
- */
71
- updatedAt: string;
72
- /**
73
- * Access policies configured for the file.
74
- */
75
- accessPolicies: ("integrations" | "public_content")[];
76
- /**
77
- * Whether the file was requested to be indexed for search or not.
78
- */
79
- index: boolean;
80
- /**
81
- * 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.
82
- *
83
- * 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.
84
- *
85
- * 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).
86
- *
87
- * 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.
88
- */
89
- status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
90
- /**
91
- * If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
92
- */
93
- failedStatusReason?: string;
94
- };
95
- }