@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,562 +0,0 @@
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
- interfaces?: {
203
- [k: string]: {
204
- id: string;
205
- entities: {
206
- [k: string]: {
207
- name: string;
208
- };
209
- };
210
- actions: {
211
- [k: string]: {
212
- name: string;
213
- };
214
- };
215
- events: {
216
- [k: string]: {
217
- name: string;
218
- };
219
- };
220
- } | null;
221
- };
222
- /**
223
- * 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.
224
- */
225
- secrets?: {
226
- [k: string]: string | null;
227
- };
228
- /**
229
- * JavaScript code of the integration
230
- */
231
- code?: string;
232
- /**
233
- * Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.
234
- */
235
- icon?: string;
236
- /**
237
- * Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.
238
- */
239
- readme?: string;
240
- /**
241
- * Title of the integration. This is the name that will be displayed in the UI
242
- */
243
- title?: string;
244
- /**
245
- * Description of the integration. This is the description that will be displayed in the UI
246
- */
247
- description?: string;
248
- /**
249
- * URL of the integration
250
- */
251
- url?: string | null;
252
- /**
253
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
254
- */
255
- public?: boolean;
256
- }
257
- export type UpdateIntegrationInput = UpdateIntegrationRequestBody & UpdateIntegrationRequestHeaders & UpdateIntegrationRequestQuery & UpdateIntegrationRequestParams;
258
- export type UpdateIntegrationRequest = {
259
- headers: UpdateIntegrationRequestHeaders;
260
- query: UpdateIntegrationRequestQuery;
261
- params: UpdateIntegrationRequestParams;
262
- body: UpdateIntegrationRequestBody;
263
- };
264
- export declare const parseReq: (input: UpdateIntegrationInput) => UpdateIntegrationRequest & {
265
- path: string;
266
- };
267
- export interface UpdateIntegrationResponse {
268
- integration: {
269
- /**
270
- * ID of the [Integration](#schema_integration)
271
- */
272
- id: string;
273
- /**
274
- * Creation date of the [Integration](#schema_integration) in ISO 8601 format
275
- */
276
- createdAt: string;
277
- /**
278
- * Updating date of the [Integration](#schema_integration) in ISO 8601 format
279
- */
280
- updatedAt: string;
281
- /**
282
- * Global identifier configuration of the [Integration](#schema_integration)
283
- */
284
- identifier: {
285
- /**
286
- * VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier
287
- */
288
- fallbackHandlerScript?: string;
289
- /**
290
- * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
291
- */
292
- extractScript?: string;
293
- };
294
- /**
295
- * URL of the [Integration](#schema_integration)
296
- */
297
- url: string;
298
- /**
299
- * Name of the [Integration](#schema_integration)
300
- */
301
- name: string;
302
- /**
303
- * Version of the [Integration](#schema_integration)
304
- */
305
- version: string;
306
- interfaces: {
307
- [k: string]: {
308
- id: string;
309
- entities: {
310
- [k: string]: {
311
- name: string;
312
- };
313
- };
314
- actions: {
315
- [k: string]: {
316
- name: string;
317
- };
318
- };
319
- events: {
320
- [k: string]: {
321
- name: string;
322
- };
323
- };
324
- };
325
- };
326
- /**
327
- * Configuration definition
328
- */
329
- configuration: {
330
- /**
331
- * Identifier configuration of the [Integration](#schema_integration)
332
- */
333
- identifier: {
334
- linkTemplateScript?: string;
335
- required: boolean;
336
- };
337
- /**
338
- * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
339
- */
340
- schema?: {
341
- [k: string]: any;
342
- };
343
- };
344
- channels: {
345
- /**
346
- * Channel definition
347
- */
348
- [k: string]: {
349
- /**
350
- * Title of the channel
351
- */
352
- title?: string;
353
- /**
354
- * Description of the channel
355
- */
356
- description?: string;
357
- messages: {
358
- /**
359
- * Message definition
360
- */
361
- [k: string]: {
362
- schema: {
363
- [k: string]: any;
364
- };
365
- };
366
- };
367
- /**
368
- * Conversation object configuration
369
- */
370
- conversation: {
371
- tags: {
372
- /**
373
- * Definition of a tag that can be provided on the object
374
- */
375
- [k: string]: {
376
- /**
377
- * Title of the tag
378
- */
379
- title?: string;
380
- /**
381
- * Description of the tag
382
- */
383
- description?: string;
384
- };
385
- };
386
- /**
387
- * 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.
388
- */
389
- creation: {
390
- /**
391
- * Enable conversation creation
392
- */
393
- enabled: boolean;
394
- /**
395
- * The list of tags that are required to be specified when calling the API directly to create a conversation.
396
- */
397
- requiredTags: string[];
398
- };
399
- };
400
- /**
401
- * Message object configuration
402
- */
403
- message: {
404
- tags: {
405
- /**
406
- * Definition of a tag that can be provided on the object
407
- */
408
- [k: string]: {
409
- /**
410
- * Title of the tag
411
- */
412
- title?: string;
413
- /**
414
- * Description of the tag
415
- */
416
- description?: string;
417
- };
418
- };
419
- };
420
- };
421
- };
422
- states: {
423
- /**
424
- * State definition
425
- */
426
- [k: string]: {
427
- /**
428
- * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
429
- */
430
- type: "conversation" | "user" | "integration";
431
- /**
432
- * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
433
- */
434
- schema: {
435
- [k: string]: any;
436
- };
437
- };
438
- };
439
- events: {
440
- /**
441
- * Event Definition
442
- */
443
- [k: string]: {
444
- /**
445
- * Title of the event
446
- */
447
- title?: string;
448
- /**
449
- * Description of the event
450
- */
451
- description?: string;
452
- schema: {
453
- [k: string]: any;
454
- };
455
- };
456
- };
457
- actions: {
458
- /**
459
- * Action definition
460
- */
461
- [k: string]: {
462
- /**
463
- * Title of the action
464
- */
465
- title?: string;
466
- /**
467
- * Description of the action
468
- */
469
- description?: string;
470
- input: {
471
- schema: {
472
- [k: string]: any;
473
- };
474
- };
475
- output: {
476
- schema: {
477
- [k: string]: any;
478
- };
479
- };
480
- };
481
- };
482
- /**
483
- * User object configuration
484
- */
485
- user: {
486
- tags: {
487
- /**
488
- * Definition of a tag that can be provided on the object
489
- */
490
- [k: string]: {
491
- /**
492
- * Title of the tag
493
- */
494
- title?: string;
495
- /**
496
- * Description of the tag
497
- */
498
- description?: string;
499
- };
500
- };
501
- /**
502
- * 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.
503
- */
504
- creation: {
505
- /**
506
- * Enable user creation
507
- */
508
- enabled: boolean;
509
- /**
510
- * The list of tags that are required to be specified when calling the API directly to create a user.
511
- */
512
- requiredTags: string[];
513
- };
514
- };
515
- entities: {
516
- /**
517
- * Entity definition
518
- */
519
- [k: string]: {
520
- /**
521
- * Title of the entity
522
- */
523
- title?: string;
524
- /**
525
- * Description of the entity
526
- */
527
- description?: string;
528
- schema: {
529
- [k: string]: any;
530
- };
531
- };
532
- };
533
- /**
534
- * Indicates if the integration is a development integration; Dev integrations run locally
535
- */
536
- dev: boolean;
537
- /**
538
- * Title of the integration. This is the name that will be displayed in the UI
539
- */
540
- title: string;
541
- /**
542
- * Description of the integration. This is the description that will be displayed in the UI
543
- */
544
- description: string;
545
- /**
546
- * URL of the icon of the integration. This is the icon that will be displayed in the UI
547
- */
548
- iconUrl: string;
549
- /**
550
- * URL of the readme of the integration. This is the readme that will be displayed in the UI
551
- */
552
- readmeUrl: string;
553
- /**
554
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
555
- */
556
- public: boolean;
557
- /**
558
- * 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.
559
- */
560
- secrets: string[];
561
- };
562
- }