@botpress/client 0.16.2 → 0.18.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 (134) hide show
  1. package/dist/bundle.cjs +13 -10
  2. package/dist/bundle.cjs.map +4 -4
  3. package/dist/gen/index.d.ts +372 -13
  4. package/dist/gen/models.d.ts +1160 -0
  5. package/dist/gen/operations/addParticipant.d.ts +56 -0
  6. package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +27 -0
  7. package/dist/gen/operations/callAction.d.ts +36 -0
  8. package/dist/gen/operations/changeAISpendQuota.d.ts +21 -0
  9. package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +40 -0
  10. package/dist/gen/operations/checkHandleAvailability.d.ts +24 -0
  11. package/dist/gen/operations/configureIntegration.d.ts +24 -0
  12. package/dist/gen/operations/createBot.d.ts +487 -0
  13. package/dist/gen/operations/createConversation.d.ts +70 -0
  14. package/dist/gen/operations/createEvent.d.ts +95 -0
  15. package/dist/gen/operations/createFile.d.ts +108 -0
  16. package/dist/gen/operations/createIntegration.d.ts +533 -0
  17. package/dist/gen/operations/createIntegrationApiKey.d.ts +29 -0
  18. package/dist/gen/operations/createMessage.d.ts +98 -0
  19. package/dist/gen/operations/createPersonalAccessToken.d.ts +33 -0
  20. package/dist/gen/operations/createTable.d.ts +151 -0
  21. package/dist/gen/operations/createTableRows.d.ts +71 -0
  22. package/dist/gen/operations/createTask.d.ts +125 -0
  23. package/dist/gen/operations/createUser.d.ts +70 -0
  24. package/dist/gen/operations/createWorkspace.d.ts +39 -0
  25. package/dist/gen/operations/createWorkspaceMember.d.ts +27 -0
  26. package/dist/gen/operations/deleteBot.d.ts +21 -0
  27. package/dist/gen/operations/deleteBotIssue.d.ts +22 -0
  28. package/dist/gen/operations/deleteConversation.d.ts +21 -0
  29. package/dist/gen/operations/deleteFile.d.ts +21 -0
  30. package/dist/gen/operations/deleteIntegration.d.ts +21 -0
  31. package/dist/gen/operations/deleteIntegrationApiKey.d.ts +21 -0
  32. package/dist/gen/operations/deleteMessage.d.ts +21 -0
  33. package/dist/gen/operations/deletePersonalAccessToken.d.ts +21 -0
  34. package/dist/gen/operations/deleteTable.d.ts +21 -0
  35. package/dist/gen/operations/deleteTableRows.d.ts +36 -0
  36. package/dist/gen/operations/deleteTask.d.ts +21 -0
  37. package/dist/gen/operations/deleteUser.d.ts +21 -0
  38. package/dist/gen/operations/deleteWorkspace.d.ts +21 -0
  39. package/dist/gen/operations/deleteWorkspaceMember.d.ts +21 -0
  40. package/dist/gen/operations/duplicateTable.d.ts +137 -0
  41. package/dist/gen/operations/findTableRows.d.ts +94 -0
  42. package/dist/gen/operations/getAccount.d.ts +31 -0
  43. package/dist/gen/operations/getAccountPreference.d.ts +22 -0
  44. package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +24 -0
  45. package/dist/gen/operations/getAuditRecords.d.ts +38 -0
  46. package/dist/gen/operations/getBot.d.ts +308 -0
  47. package/dist/gen/operations/getBotAnalytics.d.ts +49 -0
  48. package/dist/gen/operations/getBotLogs.d.ts +30 -0
  49. package/dist/gen/operations/getBotWebchat.d.ts +23 -0
  50. package/dist/gen/operations/getConversation.d.ts +56 -0
  51. package/dist/gen/operations/getEvent.d.ts +61 -0
  52. package/dist/gen/operations/getFile.d.ts +85 -0
  53. package/dist/gen/operations/getIntegration.d.ts +295 -0
  54. package/dist/gen/operations/getIntegrationByName.d.ts +296 -0
  55. package/dist/gen/operations/getIntegrationLogs.d.ts +30 -0
  56. package/dist/gen/operations/getMessage.d.ts +62 -0
  57. package/dist/gen/operations/getOrCreateConversation.d.ts +70 -0
  58. package/dist/gen/operations/getOrCreateMessage.d.ts +98 -0
  59. package/dist/gen/operations/getOrCreateTable.d.ts +164 -0
  60. package/dist/gen/operations/getOrCreateUser.d.ts +70 -0
  61. package/dist/gen/operations/getOrSetState.d.ts +76 -0
  62. package/dist/gen/operations/getParticipant.d.ts +53 -0
  63. package/dist/gen/operations/getPublicIntegration.d.ts +301 -0
  64. package/dist/gen/operations/getPublicIntegrationById.d.ts +300 -0
  65. package/dist/gen/operations/getPublicWorkspace.d.ts +31 -0
  66. package/dist/gen/operations/getState.d.ts +66 -0
  67. package/dist/gen/operations/getTable.d.ts +136 -0
  68. package/dist/gen/operations/getTableRow.d.ts +53 -0
  69. package/dist/gen/operations/getTask.d.ts +86 -0
  70. package/dist/gen/operations/getUpcomingInvoice.d.ts +29 -0
  71. package/dist/gen/operations/getUsage.d.ts +45 -0
  72. package/dist/gen/operations/getUser.d.ts +52 -0
  73. package/dist/gen/operations/getWorkspace.d.ts +39 -0
  74. package/dist/gen/operations/getWorkspaceMember.d.ts +25 -0
  75. package/dist/gen/operations/getWorkspaceQuota.d.ts +37 -0
  76. package/dist/gen/operations/introspect.d.ts +24 -0
  77. package/dist/gen/operations/listActivities.d.ts +42 -0
  78. package/dist/gen/operations/listBotIssueEvents.d.ts +32 -0
  79. package/dist/gen/operations/listBotIssues.d.ts +45 -0
  80. package/dist/gen/operations/listBots.d.ts +44 -0
  81. package/dist/gen/operations/listConversations.d.ts +64 -0
  82. package/dist/gen/operations/listEvents.d.ts +69 -0
  83. package/dist/gen/operations/listFiles.d.ts +94 -0
  84. package/dist/gen/operations/listIntegrationApiKeys.d.ts +26 -0
  85. package/dist/gen/operations/listIntegrations.d.ts +68 -0
  86. package/dist/gen/operations/listMessages.d.ts +69 -0
  87. package/dist/gen/operations/listParticipants.d.ts +56 -0
  88. package/dist/gen/operations/listPersonalAccessTokens.d.ts +25 -0
  89. package/dist/gen/operations/listPublicIntegrations.d.ts +72 -0
  90. package/dist/gen/operations/listTables.d.ts +126 -0
  91. package/dist/gen/operations/listTasks.d.ts +97 -0
  92. package/dist/gen/operations/listUsageHistory.d.ts +44 -0
  93. package/dist/gen/operations/listUsers.d.ts +59 -0
  94. package/dist/gen/operations/listWorkspaceInvoices.d.ts +53 -0
  95. package/dist/gen/operations/listWorkspaceMembers.d.ts +34 -0
  96. package/dist/gen/operations/listWorkspaceQuotas.d.ts +36 -0
  97. package/dist/gen/operations/listWorkspaceUsages.d.ts +45 -0
  98. package/dist/gen/operations/listWorkspaces.d.ts +48 -0
  99. package/dist/gen/operations/patchState.d.ts +72 -0
  100. package/dist/gen/operations/removeParticipant.d.ts +22 -0
  101. package/dist/gen/operations/renameTableColumn.d.ts +132 -0
  102. package/dist/gen/operations/runVrl.d.ts +28 -0
  103. package/dist/gen/operations/searchFiles.d.ts +60 -0
  104. package/dist/gen/operations/setAccountPreference.d.ts +22 -0
  105. package/dist/gen/operations/setState.d.ts +76 -0
  106. package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +37 -0
  107. package/dist/gen/operations/trackAnalytics.d.ts +22 -0
  108. package/dist/gen/operations/transferBot.d.ts +25 -0
  109. package/dist/gen/operations/updateAccount.d.ts +34 -0
  110. package/dist/gen/operations/updateBot.d.ts +486 -0
  111. package/dist/gen/operations/updateConversation.d.ts +63 -0
  112. package/dist/gen/operations/updateFile.d.ts +95 -0
  113. package/dist/gen/operations/updateIntegration.d.ts +522 -0
  114. package/dist/gen/operations/updateMessage.d.ts +68 -0
  115. package/dist/gen/operations/updateTable.d.ts +152 -0
  116. package/dist/gen/operations/updateTableRows.d.ts +74 -0
  117. package/dist/gen/operations/updateTask.d.ts +114 -0
  118. package/dist/gen/operations/updateUser.d.ts +66 -0
  119. package/dist/gen/operations/updateWorkspace.d.ts +51 -0
  120. package/dist/gen/operations/updateWorkspaceMember.d.ts +27 -0
  121. package/dist/gen/operations/upsertTableRows.d.ts +107 -0
  122. package/dist/index.cjs +4 -1
  123. package/dist/index.cjs.map +4 -4
  124. package/dist/index.d.ts +5 -14
  125. package/dist/index.mjs +4 -1
  126. package/dist/index.mjs.map +4 -4
  127. package/openapi.ts +3 -3
  128. package/package.json +4 -2
  129. package/readme.md +2 -3
  130. package/dist/gen/api.d.ts +0 -14072
  131. package/dist/gen/base.d.ts +0 -54
  132. package/dist/gen/client.d.ts +0 -255
  133. package/dist/gen/common.d.ts +0 -65
  134. package/dist/gen/configuration.d.ts +0 -83
@@ -0,0 +1,522 @@
1
+ export interface UpdateIntegrationRequestHeaders {
2
+ }
3
+ export interface UpdateIntegrationRequestQuery {
4
+ }
5
+ export interface UpdateIntegrationRequestParams {
6
+ id: string;
7
+ }
8
+ export interface UpdateIntegrationRequestBody {
9
+ configuration?: {
10
+ /**
11
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
12
+ */
13
+ schema?: {
14
+ [k: string]: any;
15
+ };
16
+ identifier?: {
17
+ linkTemplateScript?: string | null;
18
+ required?: boolean;
19
+ };
20
+ };
21
+ channels?: {
22
+ [k: string]: {
23
+ /**
24
+ * Title of the channel
25
+ */
26
+ title?: string;
27
+ /**
28
+ * Description of the channel
29
+ */
30
+ description?: string;
31
+ messages?: {
32
+ /**
33
+ * Message definition
34
+ */
35
+ [k: string]: {
36
+ schema: {
37
+ [k: string]: any;
38
+ };
39
+ } | null;
40
+ };
41
+ conversation?: {
42
+ /**
43
+ * 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.
44
+ */
45
+ creation?: {
46
+ /**
47
+ * Enable conversation creation
48
+ */
49
+ enabled: boolean;
50
+ /**
51
+ * The list of tags that are required to be specified when calling the API directly to create a conversation.
52
+ */
53
+ requiredTags: string[];
54
+ };
55
+ tags?: {
56
+ /**
57
+ * Definition of a tag that can be provided on the object
58
+ */
59
+ [k: string]: {
60
+ /**
61
+ * Title of the tag
62
+ */
63
+ title?: string;
64
+ /**
65
+ * Description of the tag
66
+ */
67
+ description?: string;
68
+ } | null;
69
+ };
70
+ };
71
+ message?: {
72
+ tags?: {
73
+ /**
74
+ * Definition of a tag that can be provided on the object
75
+ */
76
+ [k: string]: {
77
+ /**
78
+ * Title of the tag
79
+ */
80
+ title?: string;
81
+ /**
82
+ * Description of the tag
83
+ */
84
+ description?: string;
85
+ } | null;
86
+ };
87
+ };
88
+ } | null;
89
+ };
90
+ identifier?: {
91
+ extractScript?: string | null;
92
+ fallbackHandlerScript?: string | null;
93
+ };
94
+ actions?: {
95
+ /**
96
+ * Action definition
97
+ */
98
+ [k: string]: {
99
+ /**
100
+ * Title of the action
101
+ */
102
+ title?: string;
103
+ /**
104
+ * Description of the action
105
+ */
106
+ description?: string;
107
+ input: {
108
+ schema: {
109
+ [k: string]: any;
110
+ };
111
+ };
112
+ output: {
113
+ schema: {
114
+ [k: string]: any;
115
+ };
116
+ };
117
+ } | null;
118
+ };
119
+ events?: {
120
+ /**
121
+ * Event Definition
122
+ */
123
+ [k: string]: {
124
+ /**
125
+ * Title of the event
126
+ */
127
+ title?: string;
128
+ /**
129
+ * Description of the event
130
+ */
131
+ description?: string;
132
+ schema: {
133
+ [k: string]: any;
134
+ };
135
+ } | null;
136
+ };
137
+ states?: {
138
+ /**
139
+ * State definition
140
+ */
141
+ [k: string]: {
142
+ /**
143
+ * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
144
+ */
145
+ type: "conversation" | "user" | "integration";
146
+ /**
147
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
148
+ */
149
+ schema: {
150
+ [k: string]: any;
151
+ };
152
+ } | null;
153
+ };
154
+ user?: {
155
+ /**
156
+ * 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.
157
+ */
158
+ creation?: {
159
+ /**
160
+ * Enable user creation
161
+ */
162
+ enabled: boolean;
163
+ /**
164
+ * The list of tags that are required to be specified when calling the API directly to create a user.
165
+ */
166
+ requiredTags: string[];
167
+ };
168
+ tags?: {
169
+ /**
170
+ * Definition of a tag that can be provided on the object
171
+ */
172
+ [k: string]: {
173
+ /**
174
+ * Title of the tag
175
+ */
176
+ title?: string;
177
+ /**
178
+ * Description of the tag
179
+ */
180
+ description?: string;
181
+ } | null;
182
+ };
183
+ };
184
+ entities?: {
185
+ /**
186
+ * Entity definition
187
+ */
188
+ [k: string]: {
189
+ /**
190
+ * Title of the entity
191
+ */
192
+ title?: string;
193
+ /**
194
+ * Description of the entity
195
+ */
196
+ description?: string;
197
+ schema: {
198
+ [k: string]: any;
199
+ };
200
+ } | null;
201
+ };
202
+ /**
203
+ * 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.
204
+ */
205
+ secrets?: {
206
+ [k: string]: string | null;
207
+ };
208
+ /**
209
+ * JavaScript code of the integration
210
+ */
211
+ code?: string;
212
+ /**
213
+ * Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.
214
+ */
215
+ icon?: string;
216
+ /**
217
+ * Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.
218
+ */
219
+ readme?: string;
220
+ /**
221
+ * Title of the integration. This is the name that will be displayed in the UI
222
+ */
223
+ title?: string;
224
+ /**
225
+ * Description of the integration. This is the description that will be displayed in the UI
226
+ */
227
+ description?: string;
228
+ /**
229
+ * URL of the integration
230
+ */
231
+ url?: string | null;
232
+ /**
233
+ * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
234
+ */
235
+ public?: boolean;
236
+ }
237
+ export type UpdateIntegrationInput = UpdateIntegrationRequestBody & UpdateIntegrationRequestHeaders & UpdateIntegrationRequestQuery & UpdateIntegrationRequestParams;
238
+ export type UpdateIntegrationRequest = {
239
+ headers: UpdateIntegrationRequestHeaders;
240
+ query: UpdateIntegrationRequestQuery;
241
+ params: UpdateIntegrationRequestParams;
242
+ body: UpdateIntegrationRequestBody;
243
+ };
244
+ export declare const parseReq: (input: UpdateIntegrationInput) => UpdateIntegrationRequest & {
245
+ path: string;
246
+ };
247
+ export interface UpdateIntegrationResponse {
248
+ integration: {
249
+ /**
250
+ * ID of the [Integration](#schema_integration)
251
+ */
252
+ id: string;
253
+ /**
254
+ * Creation date of the [Integration](#schema_integration) in ISO 8601 format
255
+ */
256
+ createdAt: string;
257
+ /**
258
+ * Updating date of the [Integration](#schema_integration) in ISO 8601 format
259
+ */
260
+ updatedAt: string;
261
+ /**
262
+ * Global identifier configuration of the [Integration](#schema_integration)
263
+ */
264
+ identifier: {
265
+ /**
266
+ * VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier
267
+ */
268
+ fallbackHandlerScript?: string;
269
+ /**
270
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
271
+ */
272
+ extractScript?: string;
273
+ };
274
+ /**
275
+ * URL of the [Integration](#schema_integration)
276
+ */
277
+ url: string;
278
+ /**
279
+ * Name of the [Integration](#schema_integration)
280
+ */
281
+ name: string;
282
+ /**
283
+ * Version of the [Integration](#schema_integration)
284
+ */
285
+ version: string;
286
+ /**
287
+ * Configuration definition
288
+ */
289
+ configuration: {
290
+ /**
291
+ * Identifier configuration of the [Integration](#schema_integration)
292
+ */
293
+ identifier: {
294
+ linkTemplateScript?: string;
295
+ required: boolean;
296
+ };
297
+ /**
298
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
299
+ */
300
+ schema?: {
301
+ [k: string]: any;
302
+ };
303
+ };
304
+ channels: {
305
+ /**
306
+ * Channel definition
307
+ */
308
+ [k: string]: {
309
+ /**
310
+ * Title of the channel
311
+ */
312
+ title?: string;
313
+ /**
314
+ * Description of the channel
315
+ */
316
+ description?: string;
317
+ messages: {
318
+ /**
319
+ * Message definition
320
+ */
321
+ [k: string]: {
322
+ schema: {
323
+ [k: string]: any;
324
+ };
325
+ };
326
+ };
327
+ /**
328
+ * Conversation object configuration
329
+ */
330
+ conversation: {
331
+ tags: {
332
+ /**
333
+ * Definition of a tag that can be provided on the object
334
+ */
335
+ [k: string]: {
336
+ /**
337
+ * Title of the tag
338
+ */
339
+ title?: string;
340
+ /**
341
+ * Description of the tag
342
+ */
343
+ description?: string;
344
+ };
345
+ };
346
+ /**
347
+ * 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.
348
+ */
349
+ creation: {
350
+ /**
351
+ * Enable conversation creation
352
+ */
353
+ enabled: boolean;
354
+ /**
355
+ * The list of tags that are required to be specified when calling the API directly to create a conversation.
356
+ */
357
+ requiredTags: string[];
358
+ };
359
+ };
360
+ /**
361
+ * Message object configuration
362
+ */
363
+ message: {
364
+ tags: {
365
+ /**
366
+ * Definition of a tag that can be provided on the object
367
+ */
368
+ [k: string]: {
369
+ /**
370
+ * Title of the tag
371
+ */
372
+ title?: string;
373
+ /**
374
+ * Description of the tag
375
+ */
376
+ description?: string;
377
+ };
378
+ };
379
+ };
380
+ };
381
+ };
382
+ states: {
383
+ /**
384
+ * State definition
385
+ */
386
+ [k: string]: {
387
+ /**
388
+ * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
389
+ */
390
+ type: "conversation" | "user" | "integration";
391
+ /**
392
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
393
+ */
394
+ schema: {
395
+ [k: string]: any;
396
+ };
397
+ };
398
+ };
399
+ events: {
400
+ /**
401
+ * Event Definition
402
+ */
403
+ [k: string]: {
404
+ /**
405
+ * Title of the event
406
+ */
407
+ title?: string;
408
+ /**
409
+ * Description of the event
410
+ */
411
+ description?: string;
412
+ schema: {
413
+ [k: string]: any;
414
+ };
415
+ };
416
+ };
417
+ actions: {
418
+ /**
419
+ * Action definition
420
+ */
421
+ [k: string]: {
422
+ /**
423
+ * Title of the action
424
+ */
425
+ title?: string;
426
+ /**
427
+ * Description of the action
428
+ */
429
+ description?: string;
430
+ input: {
431
+ schema: {
432
+ [k: string]: any;
433
+ };
434
+ };
435
+ output: {
436
+ schema: {
437
+ [k: string]: any;
438
+ };
439
+ };
440
+ };
441
+ };
442
+ /**
443
+ * User object configuration
444
+ */
445
+ user: {
446
+ tags: {
447
+ /**
448
+ * Definition of a tag that can be provided on the object
449
+ */
450
+ [k: string]: {
451
+ /**
452
+ * Title of the tag
453
+ */
454
+ title?: string;
455
+ /**
456
+ * Description of the tag
457
+ */
458
+ description?: string;
459
+ };
460
+ };
461
+ /**
462
+ * 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.
463
+ */
464
+ creation: {
465
+ /**
466
+ * Enable user creation
467
+ */
468
+ enabled: boolean;
469
+ /**
470
+ * The list of tags that are required to be specified when calling the API directly to create a user.
471
+ */
472
+ requiredTags: string[];
473
+ };
474
+ };
475
+ entities: {
476
+ /**
477
+ * Entity definition
478
+ */
479
+ [k: string]: {
480
+ /**
481
+ * Title of the entity
482
+ */
483
+ title?: string;
484
+ /**
485
+ * Description of the entity
486
+ */
487
+ description?: string;
488
+ schema: {
489
+ [k: string]: any;
490
+ };
491
+ };
492
+ };
493
+ /**
494
+ * Indicates if the integration is a development integration; Dev integrations run locally
495
+ */
496
+ dev: boolean;
497
+ /**
498
+ * Title of the integration. This is the name that will be displayed in the UI
499
+ */
500
+ title: string;
501
+ /**
502
+ * Description of the integration. This is the description that will be displayed in the UI
503
+ */
504
+ description: string;
505
+ /**
506
+ * URL of the icon of the integration. This is the icon that will be displayed in the UI
507
+ */
508
+ iconUrl: string;
509
+ /**
510
+ * URL of the readme of the integration. This is the readme that will be displayed in the UI
511
+ */
512
+ readmeUrl: string;
513
+ /**
514
+ * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
515
+ */
516
+ public: boolean;
517
+ /**
518
+ * 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.
519
+ */
520
+ secrets: string[];
521
+ };
522
+ }
@@ -0,0 +1,68 @@
1
+ export interface UpdateMessageRequestHeaders {
2
+ }
3
+ export interface UpdateMessageRequestQuery {
4
+ }
5
+ export interface UpdateMessageRequestParams {
6
+ id: string;
7
+ }
8
+ export interface UpdateMessageRequestBody {
9
+ /**
10
+ * 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.
11
+ */
12
+ tags: {
13
+ [k: string]: string;
14
+ };
15
+ }
16
+ export type UpdateMessageInput = UpdateMessageRequestBody & UpdateMessageRequestHeaders & UpdateMessageRequestQuery & UpdateMessageRequestParams;
17
+ export type UpdateMessageRequest = {
18
+ headers: UpdateMessageRequestHeaders;
19
+ query: UpdateMessageRequestQuery;
20
+ params: UpdateMessageRequestParams;
21
+ body: UpdateMessageRequestBody;
22
+ };
23
+ export declare const parseReq: (input: UpdateMessageInput) => UpdateMessageRequest & {
24
+ path: string;
25
+ };
26
+ export interface UpdateMessageResponse {
27
+ /**
28
+ * The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
29
+ */
30
+ message: {
31
+ /**
32
+ * Id of the [Message](#schema_message)
33
+ */
34
+ id: string;
35
+ /**
36
+ * Creation date of the [Message](#schema_message) in ISO 8601 format
37
+ */
38
+ createdAt: string;
39
+ /**
40
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
41
+ */
42
+ type: string;
43
+ /**
44
+ * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
45
+ */
46
+ payload: {
47
+ [k: string]: any;
48
+ };
49
+ /**
50
+ * Direction of the message (`incoming` or `outgoing`).
51
+ */
52
+ direction: "incoming" | "outgoing";
53
+ /**
54
+ * ID of the [User](#schema_user)
55
+ */
56
+ userId: string;
57
+ /**
58
+ * ID of the [Conversation](#schema_conversation)
59
+ */
60
+ conversationId: string;
61
+ /**
62
+ * 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.
63
+ */
64
+ tags: {
65
+ [k: string]: string;
66
+ };
67
+ };
68
+ }