@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,487 +0,0 @@
1
- export interface CreateBotRequestHeaders {
2
- }
3
- export interface CreateBotRequestQuery {
4
- }
5
- export interface CreateBotRequestParams {
6
- }
7
- export interface CreateBotRequestBody {
8
- /**
9
- * A mapping of states to their definition
10
- */
11
- states?: {
12
- [k: string]: {
13
- /**
14
- * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
15
- */
16
- type: "conversation" | "user" | "bot" | "task";
17
- /**
18
- * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
19
- */
20
- schema: {
21
- [k: string]: any;
22
- };
23
- /**
24
- * 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.
25
- */
26
- expiry?: number;
27
- };
28
- };
29
- /**
30
- * Events definition
31
- */
32
- events?: {
33
- /**
34
- * Event Definition
35
- */
36
- [k: string]: {
37
- /**
38
- * Title of the event
39
- */
40
- title?: string;
41
- /**
42
- * Description of the event
43
- */
44
- description?: string;
45
- schema: {
46
- [k: string]: any;
47
- };
48
- };
49
- };
50
- recurringEvents?: {
51
- [k: string]: {
52
- schedule: {
53
- cron: string;
54
- };
55
- type: string;
56
- payload: {
57
- [k: string]: any;
58
- };
59
- };
60
- };
61
- /**
62
- * Subscriptions of the bot
63
- */
64
- subscriptions?: {
65
- /**
66
- * Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.
67
- */
68
- events: {
69
- [k: string]: {};
70
- } | null;
71
- };
72
- /**
73
- * Actions definition
74
- */
75
- actions?: {
76
- /**
77
- * Action definition
78
- */
79
- [k: string]: {
80
- /**
81
- * Title of the action
82
- */
83
- title?: string;
84
- /**
85
- * Description of the action
86
- */
87
- description?: string;
88
- input: {
89
- schema: {
90
- [k: string]: any;
91
- };
92
- };
93
- output: {
94
- schema: {
95
- [k: string]: any;
96
- };
97
- };
98
- };
99
- };
100
- configuration?: {
101
- /**
102
- * Configuration data
103
- */
104
- data?: {
105
- [k: string]: any;
106
- };
107
- /**
108
- * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
109
- */
110
- schema?: {
111
- [k: string]: any;
112
- };
113
- };
114
- user?: {
115
- tags?: {
116
- /**
117
- * Definition of a tag that can be provided on the object
118
- */
119
- [k: string]: {
120
- /**
121
- * Title of the tag
122
- */
123
- title?: string;
124
- /**
125
- * Description of the tag
126
- */
127
- description?: string;
128
- };
129
- };
130
- };
131
- conversation?: {
132
- tags?: {
133
- /**
134
- * Definition of a tag that can be provided on the object
135
- */
136
- [k: string]: {
137
- /**
138
- * Title of the tag
139
- */
140
- title?: string;
141
- /**
142
- * Description of the tag
143
- */
144
- description?: string;
145
- };
146
- };
147
- };
148
- message?: {
149
- tags?: {
150
- /**
151
- * Definition of a tag that can be provided on the object
152
- */
153
- [k: string]: {
154
- /**
155
- * Title of the tag
156
- */
157
- title?: string;
158
- /**
159
- * Description of the tag
160
- */
161
- description?: string;
162
- };
163
- };
164
- };
165
- /**
166
- * JavaScript code of the bot
167
- */
168
- code?: string;
169
- /**
170
- * Optional name for the bot, if not provided will be auto-generated
171
- */
172
- name?: string;
173
- /**
174
- * Media files associated with the [Bot](#schema_bot)
175
- */
176
- medias?: {
177
- url: string;
178
- name: string;
179
- }[];
180
- /**
181
- * URL of the [Bot](#schema_bot); Only available for dev bots
182
- */
183
- url?: string;
184
- /**
185
- * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations
186
- */
187
- dev?: boolean;
188
- }
189
- export type CreateBotInput = CreateBotRequestBody & CreateBotRequestHeaders & CreateBotRequestQuery & CreateBotRequestParams;
190
- export type CreateBotRequest = {
191
- headers: CreateBotRequestHeaders;
192
- query: CreateBotRequestQuery;
193
- params: CreateBotRequestParams;
194
- body: CreateBotRequestBody;
195
- };
196
- export declare const parseReq: (input: CreateBotInput) => CreateBotRequest & {
197
- path: string;
198
- };
199
- export interface CreateBotResponse {
200
- bot: {
201
- /**
202
- * Id of the [Bot](#schema_bot)
203
- */
204
- id: string;
205
- /**
206
- * Creation date of the [Bot](#schema_bot) in ISO 8601 format
207
- */
208
- createdAt: string;
209
- /**
210
- * Updating date of the [Bot](#schema_bot) in ISO 8601 format
211
- */
212
- updatedAt: string;
213
- /**
214
- * Signing secret of the [Bot](#schema_bot)
215
- */
216
- signingSecret: string;
217
- /**
218
- * A mapping of integrations to their configuration
219
- */
220
- integrations: {
221
- [k: string]: {
222
- enabled: boolean;
223
- /**
224
- * Name of the [Integration](#schema_integration)
225
- */
226
- name: string;
227
- /**
228
- * Version of the [Integration](#schema_integration)
229
- */
230
- version: string;
231
- webhookUrl: string;
232
- webhookId: string;
233
- identifier?: string;
234
- configuration: {
235
- [k: string]: any;
236
- };
237
- status: "registration_pending" | "registered" | "registration_failed" | "unregistration_pending" | "unregistered" | "unregistration_failed";
238
- statusReason: string | null;
239
- /**
240
- * ID of the [Integration](#schema_integration)
241
- */
242
- id: string;
243
- /**
244
- * Creation date of the [Integration](#schema_integration) in ISO 8601 format
245
- */
246
- createdAt: string;
247
- /**
248
- * Updating date of the [Integration](#schema_integration) in ISO 8601 format
249
- */
250
- updatedAt: string;
251
- /**
252
- * Title of the integration. This is the name that will be displayed in the UI
253
- */
254
- title: string;
255
- /**
256
- * Description of the integration. This is the description that will be displayed in the UI
257
- */
258
- description: string;
259
- /**
260
- * URL of the icon of the integration. This is the icon that will be displayed in the UI
261
- */
262
- iconUrl: string;
263
- /**
264
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
265
- */
266
- public: boolean;
267
- };
268
- };
269
- /**
270
- * User object configuration
271
- */
272
- user: {
273
- tags: {
274
- /**
275
- * Definition of a tag that can be provided on the object
276
- */
277
- [k: string]: {
278
- /**
279
- * Title of the tag
280
- */
281
- title?: string;
282
- /**
283
- * Description of the tag
284
- */
285
- description?: string;
286
- };
287
- };
288
- };
289
- /**
290
- * Conversation object configuration
291
- */
292
- conversation: {
293
- tags: {
294
- /**
295
- * Definition of a tag that can be provided on the object
296
- */
297
- [k: string]: {
298
- /**
299
- * Title of the tag
300
- */
301
- title?: string;
302
- /**
303
- * Description of the tag
304
- */
305
- description?: string;
306
- };
307
- };
308
- };
309
- /**
310
- * Message object configuration
311
- */
312
- message: {
313
- tags: {
314
- /**
315
- * Definition of a tag that can be provided on the object
316
- */
317
- [k: string]: {
318
- /**
319
- * Title of the tag
320
- */
321
- title?: string;
322
- /**
323
- * Description of the tag
324
- */
325
- description?: string;
326
- };
327
- };
328
- };
329
- /**
330
- * A mapping of states to their definition
331
- */
332
- states: {
333
- [k: string]: {
334
- /**
335
- * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
336
- */
337
- type: "conversation" | "user" | "bot" | "task";
338
- /**
339
- * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
340
- */
341
- schema: {
342
- [k: string]: any;
343
- };
344
- /**
345
- * 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.
346
- */
347
- expiry?: number;
348
- };
349
- };
350
- /**
351
- * Configuration of the bot
352
- */
353
- configuration: {
354
- /**
355
- * Configuration data
356
- */
357
- data: {
358
- [k: string]: any;
359
- };
360
- /**
361
- * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
362
- */
363
- schema: {
364
- [k: string]: any;
365
- };
366
- };
367
- /**
368
- * Events definition
369
- */
370
- events: {
371
- /**
372
- * Event Definition
373
- */
374
- [k: string]: {
375
- /**
376
- * Title of the event
377
- */
378
- title?: string;
379
- /**
380
- * Description of the event
381
- */
382
- description?: string;
383
- schema: {
384
- [k: string]: any;
385
- };
386
- };
387
- };
388
- /**
389
- * Recurring events
390
- */
391
- recurringEvents: {
392
- [k: string]: {
393
- schedule: {
394
- cron: string;
395
- };
396
- type: string;
397
- payload: {
398
- [k: string]: any;
399
- };
400
- /**
401
- * The number of times the recurring event failed to run. This counter resets once the recurring event runs successfully.
402
- */
403
- failedAttempts: number;
404
- /**
405
- * The reason why the recurring event failed to run in the last attempt.
406
- */
407
- lastFailureReason: string | null;
408
- };
409
- };
410
- /**
411
- * Subscriptions of the bot
412
- */
413
- subscriptions: {
414
- /**
415
- * Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.
416
- */
417
- events: {
418
- [k: string]: {};
419
- } | null;
420
- };
421
- /**
422
- * Actions definition
423
- */
424
- actions: {
425
- /**
426
- * Action definition
427
- */
428
- [k: string]: {
429
- /**
430
- * Title of the action
431
- */
432
- title?: string;
433
- /**
434
- * Description of the action
435
- */
436
- description?: string;
437
- input: {
438
- schema: {
439
- [k: string]: any;
440
- };
441
- };
442
- output: {
443
- schema: {
444
- [k: string]: any;
445
- };
446
- };
447
- };
448
- };
449
- /**
450
- * Name of the [Bot](#schema_bot)
451
- */
452
- name: string;
453
- /**
454
- * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format
455
- */
456
- deployedAt?: string;
457
- /**
458
- * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations
459
- */
460
- dev: boolean;
461
- /**
462
- * Id of the user that created the bot
463
- */
464
- createdBy?: string;
465
- /**
466
- * Indicates if the [Bot](#schema_bot) should be in always alive mode
467
- */
468
- alwaysAlive: boolean;
469
- /**
470
- * Status of the bot
471
- */
472
- status: "active" | "deploying";
473
- /**
474
- * Media files associated with the [Bot](#schema_bot)
475
- */
476
- medias: {
477
- /**
478
- * URL of the media file
479
- */
480
- url: string;
481
- /**
482
- * Name of the media file
483
- */
484
- name: string;
485
- }[];
486
- };
487
- }
@@ -1,70 +0,0 @@
1
- export interface CreateConversationRequestHeaders {
2
- }
3
- export interface CreateConversationRequestQuery {
4
- }
5
- export interface CreateConversationRequestParams {
6
- }
7
- export interface CreateConversationRequestBody {
8
- /**
9
- * Channel name
10
- */
11
- channel: string;
12
- /**
13
- * Tags for the [Conversation](#schema_conversation)
14
- */
15
- tags: {
16
- [k: string]: string;
17
- };
18
- /**
19
- * @deprecated
20
- * [DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.
21
- */
22
- integrationName?: string;
23
- }
24
- export type CreateConversationInput = CreateConversationRequestBody & CreateConversationRequestHeaders & CreateConversationRequestQuery & CreateConversationRequestParams;
25
- export type CreateConversationRequest = {
26
- headers: CreateConversationRequestHeaders;
27
- query: CreateConversationRequestQuery;
28
- params: CreateConversationRequestParams;
29
- body: CreateConversationRequestBody;
30
- };
31
- export declare const parseReq: (input: CreateConversationInput) => CreateConversationRequest & {
32
- path: string;
33
- };
34
- export interface CreateConversationResponse {
35
- /**
36
- * 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.
37
- */
38
- conversation: {
39
- /**
40
- * Id of the [Conversation](#schema_conversation)
41
- */
42
- id: string;
43
- /**
44
- * Id of the current [Task](#schema_task)
45
- */
46
- currentTaskId?: string;
47
- /**
48
- * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
49
- */
50
- createdAt: string;
51
- /**
52
- * Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
53
- */
54
- updatedAt: string;
55
- /**
56
- * Name of the channel where the [Conversation](#schema_conversation) is happening
57
- */
58
- channel: string;
59
- /**
60
- * Name of the integration that created the [Conversation](#schema_conversation)
61
- */
62
- integration: string;
63
- /**
64
- * 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.
65
- */
66
- tags: {
67
- [k: string]: string;
68
- };
69
- };
70
- }
@@ -1,95 +0,0 @@
1
- export interface CreateEventRequestHeaders {
2
- }
3
- export interface CreateEventRequestQuery {
4
- }
5
- export interface CreateEventRequestParams {
6
- }
7
- export interface CreateEventRequestBody {
8
- /**
9
- * Type of the [Event](#schema_event).
10
- */
11
- type: string;
12
- /**
13
- * 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.
14
- */
15
- payload: {
16
- [k: string]: any;
17
- };
18
- /**
19
- * Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.
20
- */
21
- schedule?: {
22
- /**
23
- * When the [Event](#schema_event) will be sent, in the ISO 8601 format
24
- */
25
- dateTime?: string;
26
- /**
27
- * Delay in milliseconds before sending the [Event](#schema_event)
28
- */
29
- delay?: number;
30
- };
31
- /**
32
- * ID of the [Conversation](#schema_conversation) to link the event to.
33
- */
34
- conversationId?: string;
35
- /**
36
- * ID of the [User](#schema_user) to link the event to.
37
- */
38
- userId?: string;
39
- /**
40
- * ID of the [Message](#schema_message) to link the event to.
41
- */
42
- messageId?: string;
43
- }
44
- export type CreateEventInput = CreateEventRequestBody & CreateEventRequestHeaders & CreateEventRequestQuery & CreateEventRequestParams;
45
- export type CreateEventRequest = {
46
- headers: CreateEventRequestHeaders;
47
- query: CreateEventRequestQuery;
48
- params: CreateEventRequestParams;
49
- body: CreateEventRequestBody;
50
- };
51
- export declare const parseReq: (input: CreateEventInput) => CreateEventRequest & {
52
- path: string;
53
- };
54
- export interface CreateEventResponse {
55
- /**
56
- * The event object represents an action or an occurrence.
57
- */
58
- event: {
59
- /**
60
- * Id of the [Event](#schema_event)
61
- */
62
- id: string;
63
- /**
64
- * Creation date of the [Event](#schema_event) in ISO 8601 format
65
- */
66
- createdAt: string;
67
- /**
68
- * Type of the [Event](#schema_event).
69
- */
70
- type: string;
71
- /**
72
- * 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.
73
- */
74
- payload: {
75
- [k: string]: any;
76
- };
77
- /**
78
- * ID of the [Conversation](#schema_conversation) to link the event to.
79
- */
80
- conversationId?: string;
81
- /**
82
- * ID of the [User](#schema_user) to link the event to.
83
- */
84
- userId?: string;
85
- /**
86
- * ID of the [Message](#schema_message) to link the event to.
87
- */
88
- messageId?: string;
89
- status: "pending" | "processed" | "ignored" | "failed";
90
- /**
91
- * Reason why the event failed to be processed
92
- */
93
- failureReason: string | null;
94
- };
95
- }