@botpress/client 0.17.0 → 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 -14260
  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,108 @@
1
+ export interface CreateFileRequestHeaders {
2
+ }
3
+ export interface CreateFileRequestQuery {
4
+ }
5
+ export interface CreateFileRequestParams {
6
+ }
7
+ export interface CreateFileRequestBody {
8
+ /**
9
+ * File name
10
+ */
11
+ name?: string;
12
+ /**
13
+ * File tags as an object of key/value pairs
14
+ */
15
+ tags?: {
16
+ [k: string]: string;
17
+ };
18
+ /**
19
+ * File size in bytes. This will count against your file storage quota. If the `index` parameter is set to `true`, this will also count against your vector database storage quota.
20
+ */
21
+ size: number;
22
+ /**
23
+ * Set to a value of 'true' to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota of the workspace rather than the File Storage quota.
24
+ */
25
+ index?: boolean;
26
+ /**
27
+ * File access policies. Add "public_content" to allow public access to the file content. Add "integrations" to allow read, search and list operations for any integration installed in the bot.
28
+ */
29
+ accessPolicies?: ("public_content" | "integrations")[];
30
+ /**
31
+ * File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is "application/octet-stream".
32
+ */
33
+ contentType?: string;
34
+ }
35
+ export type CreateFileInput = CreateFileRequestBody & CreateFileRequestHeaders & CreateFileRequestQuery & CreateFileRequestParams;
36
+ export type CreateFileRequest = {
37
+ headers: CreateFileRequestHeaders;
38
+ query: CreateFileRequestQuery;
39
+ params: CreateFileRequestParams;
40
+ body: CreateFileRequestBody;
41
+ };
42
+ export declare const parseReq: (input: CreateFileInput) => CreateFileRequest & {
43
+ path: string;
44
+ };
45
+ export interface CreateFileResponse {
46
+ file: {
47
+ /**
48
+ * File ID
49
+ */
50
+ id: string;
51
+ /**
52
+ * The ID of the bot the file belongs to
53
+ */
54
+ botId: string;
55
+ /**
56
+ * File name
57
+ */
58
+ name: string | null;
59
+ /**
60
+ * File size in bytes. Non-null if file upload status is "COMPLETE".
61
+ */
62
+ size: number | null;
63
+ /**
64
+ * MIME type of the file's content
65
+ */
66
+ contentType: string;
67
+ /**
68
+ * The tags of the file as an object of key/value pairs
69
+ */
70
+ tags: {
71
+ [k: string]: string;
72
+ };
73
+ /**
74
+ * File creation timestamp in ISO 8601 format
75
+ */
76
+ createdAt: string;
77
+ /**
78
+ * File last update timestamp in ISO 8601 format
79
+ */
80
+ updatedAt: string;
81
+ /**
82
+ * Access policies configured for the file.
83
+ */
84
+ accessPolicies: ("integrations" | "public_content")[];
85
+ /**
86
+ * Whether the file was requested to be indexed for search or not.
87
+ */
88
+ index: boolean;
89
+ /**
90
+ * 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.
91
+ *
92
+ * 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.
93
+ *
94
+ * 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).
95
+ *
96
+ * 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.
97
+ */
98
+ status: "UPLOAD_PENDING" | "UPLOAD_FAILED" | "UPLOAD_COMPLETED" | "INDEXING_PENDING" | "INDEXING_FAILED" | "INDEXING_COMPLETED";
99
+ /**
100
+ * If the file status is "UPLOAD_FAILED" or "INDEXING_FAILED" this will contain the reason of the failure.
101
+ */
102
+ failedStatusReason?: string;
103
+ /**
104
+ * URL to upload the file content. File content needs to be sent to this URL via a PUT request.
105
+ */
106
+ uploadUrl: string;
107
+ };
108
+ }
@@ -0,0 +1,533 @@
1
+ export interface CreateIntegrationRequestHeaders {
2
+ }
3
+ export interface CreateIntegrationRequestQuery {
4
+ }
5
+ export interface CreateIntegrationRequestParams {
6
+ }
7
+ export interface CreateIntegrationRequestBody {
8
+ /**
9
+ * Name of the [Integration](#schema_integration)
10
+ */
11
+ name: string;
12
+ /**
13
+ * Version of the [Integration](#schema_integration)
14
+ */
15
+ version: string;
16
+ configuration?: {
17
+ /**
18
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
19
+ */
20
+ schema?: {
21
+ [k: string]: any;
22
+ };
23
+ identifier?: {
24
+ required?: boolean;
25
+ linkTemplateScript?: string;
26
+ };
27
+ };
28
+ states?: {
29
+ /**
30
+ * State definition
31
+ */
32
+ [k: string]: {
33
+ /**
34
+ * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
35
+ */
36
+ type: "conversation" | "user" | "integration";
37
+ /**
38
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
39
+ */
40
+ schema: {
41
+ [k: string]: any;
42
+ };
43
+ };
44
+ };
45
+ events?: {
46
+ /**
47
+ * Event Definition
48
+ */
49
+ [k: string]: {
50
+ /**
51
+ * Title of the event
52
+ */
53
+ title?: string;
54
+ /**
55
+ * Description of the event
56
+ */
57
+ description?: string;
58
+ schema: {
59
+ [k: string]: any;
60
+ };
61
+ };
62
+ };
63
+ actions?: {
64
+ /**
65
+ * Action definition
66
+ */
67
+ [k: string]: {
68
+ /**
69
+ * Title of the action
70
+ */
71
+ title?: string;
72
+ /**
73
+ * Description of the action
74
+ */
75
+ description?: string;
76
+ input: {
77
+ schema: {
78
+ [k: string]: any;
79
+ };
80
+ };
81
+ output: {
82
+ schema: {
83
+ [k: string]: any;
84
+ };
85
+ };
86
+ };
87
+ };
88
+ entities?: {
89
+ /**
90
+ * Entity definition
91
+ */
92
+ [k: string]: {
93
+ /**
94
+ * Title of the entity
95
+ */
96
+ title?: string;
97
+ /**
98
+ * Description of the entity
99
+ */
100
+ description?: string;
101
+ schema: {
102
+ [k: string]: any;
103
+ };
104
+ };
105
+ };
106
+ identifier?: {
107
+ fallbackHandlerScript?: string;
108
+ extractScript?: string;
109
+ };
110
+ channels?: {
111
+ [k: string]: {
112
+ /**
113
+ * Title of the channel
114
+ */
115
+ title?: string;
116
+ /**
117
+ * Description of the channel
118
+ */
119
+ description?: string;
120
+ messages: {
121
+ /**
122
+ * Message definition
123
+ */
124
+ [k: string]: {
125
+ schema: {
126
+ [k: string]: any;
127
+ };
128
+ };
129
+ };
130
+ conversation?: {
131
+ /**
132
+ * 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.
133
+ */
134
+ creation?: {
135
+ /**
136
+ * Enable conversation creation
137
+ */
138
+ enabled: boolean;
139
+ /**
140
+ * The list of tags that are required to be specified when calling the API directly to create a conversation.
141
+ */
142
+ requiredTags: string[];
143
+ };
144
+ tags?: {
145
+ /**
146
+ * Definition of a tag that can be provided on the object
147
+ */
148
+ [k: string]: {
149
+ /**
150
+ * Title of the tag
151
+ */
152
+ title?: string;
153
+ /**
154
+ * Description of the tag
155
+ */
156
+ description?: string;
157
+ };
158
+ };
159
+ };
160
+ message?: {
161
+ tags?: {
162
+ /**
163
+ * Definition of a tag that can be provided on the object
164
+ */
165
+ [k: string]: {
166
+ /**
167
+ * Title of the tag
168
+ */
169
+ title?: string;
170
+ /**
171
+ * Description of the tag
172
+ */
173
+ description?: string;
174
+ };
175
+ };
176
+ };
177
+ };
178
+ };
179
+ user?: {
180
+ /**
181
+ * 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.
182
+ */
183
+ creation?: {
184
+ /**
185
+ * Enable user creation
186
+ */
187
+ enabled: boolean;
188
+ /**
189
+ * The list of tags that are required to be specified when calling the API directly to create a user.
190
+ */
191
+ requiredTags: string[];
192
+ };
193
+ tags?: {
194
+ /**
195
+ * Definition of a tag that can be provided on the object
196
+ */
197
+ [k: string]: {
198
+ /**
199
+ * Title of the tag
200
+ */
201
+ title?: string;
202
+ /**
203
+ * Description of the tag
204
+ */
205
+ description?: string;
206
+ };
207
+ };
208
+ };
209
+ /**
210
+ * 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.
211
+ */
212
+ secrets?: {
213
+ [k: string]: string;
214
+ };
215
+ /**
216
+ * JavaScript code of the integration
217
+ */
218
+ code?: string;
219
+ /**
220
+ * URL of the integration
221
+ */
222
+ url?: string;
223
+ /**
224
+ * Indicates if the integration is a development integration; Dev integrations run locally
225
+ */
226
+ dev?: boolean;
227
+ /**
228
+ * Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.
229
+ */
230
+ icon?: string;
231
+ /**
232
+ * Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.
233
+ */
234
+ readme?: string;
235
+ /**
236
+ * Title of the integration. This is the name that will be displayed in the UI
237
+ */
238
+ title?: string;
239
+ /**
240
+ * Description of the integration. This is the description that will be displayed in the UI
241
+ */
242
+ description?: string;
243
+ /**
244
+ * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
245
+ */
246
+ public?: boolean;
247
+ }
248
+ export type CreateIntegrationInput = CreateIntegrationRequestBody & CreateIntegrationRequestHeaders & CreateIntegrationRequestQuery & CreateIntegrationRequestParams;
249
+ export type CreateIntegrationRequest = {
250
+ headers: CreateIntegrationRequestHeaders;
251
+ query: CreateIntegrationRequestQuery;
252
+ params: CreateIntegrationRequestParams;
253
+ body: CreateIntegrationRequestBody;
254
+ };
255
+ export declare const parseReq: (input: CreateIntegrationInput) => CreateIntegrationRequest & {
256
+ path: string;
257
+ };
258
+ export interface CreateIntegrationResponse {
259
+ integration: {
260
+ /**
261
+ * ID of the [Integration](#schema_integration)
262
+ */
263
+ id: string;
264
+ /**
265
+ * Creation date of the [Integration](#schema_integration) in ISO 8601 format
266
+ */
267
+ createdAt: string;
268
+ /**
269
+ * Updating date of the [Integration](#schema_integration) in ISO 8601 format
270
+ */
271
+ updatedAt: string;
272
+ /**
273
+ * Global identifier configuration of the [Integration](#schema_integration)
274
+ */
275
+ identifier: {
276
+ /**
277
+ * VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier
278
+ */
279
+ fallbackHandlerScript?: string;
280
+ /**
281
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
282
+ */
283
+ extractScript?: string;
284
+ };
285
+ /**
286
+ * URL of the [Integration](#schema_integration)
287
+ */
288
+ url: string;
289
+ /**
290
+ * Name of the [Integration](#schema_integration)
291
+ */
292
+ name: string;
293
+ /**
294
+ * Version of the [Integration](#schema_integration)
295
+ */
296
+ version: string;
297
+ /**
298
+ * Configuration definition
299
+ */
300
+ configuration: {
301
+ /**
302
+ * Identifier configuration of the [Integration](#schema_integration)
303
+ */
304
+ identifier: {
305
+ linkTemplateScript?: string;
306
+ required: boolean;
307
+ };
308
+ /**
309
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
310
+ */
311
+ schema?: {
312
+ [k: string]: any;
313
+ };
314
+ };
315
+ channels: {
316
+ /**
317
+ * Channel definition
318
+ */
319
+ [k: string]: {
320
+ /**
321
+ * Title of the channel
322
+ */
323
+ title?: string;
324
+ /**
325
+ * Description of the channel
326
+ */
327
+ description?: string;
328
+ messages: {
329
+ /**
330
+ * Message definition
331
+ */
332
+ [k: string]: {
333
+ schema: {
334
+ [k: string]: any;
335
+ };
336
+ };
337
+ };
338
+ /**
339
+ * Conversation object configuration
340
+ */
341
+ conversation: {
342
+ tags: {
343
+ /**
344
+ * Definition of a tag that can be provided on the object
345
+ */
346
+ [k: string]: {
347
+ /**
348
+ * Title of the tag
349
+ */
350
+ title?: string;
351
+ /**
352
+ * Description of the tag
353
+ */
354
+ description?: string;
355
+ };
356
+ };
357
+ /**
358
+ * 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.
359
+ */
360
+ creation: {
361
+ /**
362
+ * Enable conversation creation
363
+ */
364
+ enabled: boolean;
365
+ /**
366
+ * The list of tags that are required to be specified when calling the API directly to create a conversation.
367
+ */
368
+ requiredTags: string[];
369
+ };
370
+ };
371
+ /**
372
+ * Message object configuration
373
+ */
374
+ message: {
375
+ tags: {
376
+ /**
377
+ * Definition of a tag that can be provided on the object
378
+ */
379
+ [k: string]: {
380
+ /**
381
+ * Title of the tag
382
+ */
383
+ title?: string;
384
+ /**
385
+ * Description of the tag
386
+ */
387
+ description?: string;
388
+ };
389
+ };
390
+ };
391
+ };
392
+ };
393
+ states: {
394
+ /**
395
+ * State definition
396
+ */
397
+ [k: string]: {
398
+ /**
399
+ * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
400
+ */
401
+ type: "conversation" | "user" | "integration";
402
+ /**
403
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
404
+ */
405
+ schema: {
406
+ [k: string]: any;
407
+ };
408
+ };
409
+ };
410
+ events: {
411
+ /**
412
+ * Event Definition
413
+ */
414
+ [k: string]: {
415
+ /**
416
+ * Title of the event
417
+ */
418
+ title?: string;
419
+ /**
420
+ * Description of the event
421
+ */
422
+ description?: string;
423
+ schema: {
424
+ [k: string]: any;
425
+ };
426
+ };
427
+ };
428
+ actions: {
429
+ /**
430
+ * Action definition
431
+ */
432
+ [k: string]: {
433
+ /**
434
+ * Title of the action
435
+ */
436
+ title?: string;
437
+ /**
438
+ * Description of the action
439
+ */
440
+ description?: string;
441
+ input: {
442
+ schema: {
443
+ [k: string]: any;
444
+ };
445
+ };
446
+ output: {
447
+ schema: {
448
+ [k: string]: any;
449
+ };
450
+ };
451
+ };
452
+ };
453
+ /**
454
+ * User object configuration
455
+ */
456
+ user: {
457
+ tags: {
458
+ /**
459
+ * Definition of a tag that can be provided on the object
460
+ */
461
+ [k: string]: {
462
+ /**
463
+ * Title of the tag
464
+ */
465
+ title?: string;
466
+ /**
467
+ * Description of the tag
468
+ */
469
+ description?: string;
470
+ };
471
+ };
472
+ /**
473
+ * 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.
474
+ */
475
+ creation: {
476
+ /**
477
+ * Enable user creation
478
+ */
479
+ enabled: boolean;
480
+ /**
481
+ * The list of tags that are required to be specified when calling the API directly to create a user.
482
+ */
483
+ requiredTags: string[];
484
+ };
485
+ };
486
+ entities: {
487
+ /**
488
+ * Entity definition
489
+ */
490
+ [k: string]: {
491
+ /**
492
+ * Title of the entity
493
+ */
494
+ title?: string;
495
+ /**
496
+ * Description of the entity
497
+ */
498
+ description?: string;
499
+ schema: {
500
+ [k: string]: any;
501
+ };
502
+ };
503
+ };
504
+ /**
505
+ * Indicates if the integration is a development integration; Dev integrations run locally
506
+ */
507
+ dev: boolean;
508
+ /**
509
+ * Title of the integration. This is the name that will be displayed in the UI
510
+ */
511
+ title: string;
512
+ /**
513
+ * Description of the integration. This is the description that will be displayed in the UI
514
+ */
515
+ description: string;
516
+ /**
517
+ * URL of the icon of the integration. This is the icon that will be displayed in the UI
518
+ */
519
+ iconUrl: string;
520
+ /**
521
+ * URL of the readme of the integration. This is the readme that will be displayed in the UI
522
+ */
523
+ readmeUrl: string;
524
+ /**
525
+ * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
526
+ */
527
+ public: boolean;
528
+ /**
529
+ * 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.
530
+ */
531
+ secrets: string[];
532
+ };
533
+ }
@@ -0,0 +1,29 @@
1
+ export interface CreateIntegrationApiKeyRequestHeaders {
2
+ }
3
+ export interface CreateIntegrationApiKeyRequestQuery {
4
+ }
5
+ export interface CreateIntegrationApiKeyRequestParams {
6
+ }
7
+ export interface CreateIntegrationApiKeyRequestBody {
8
+ integrationId: string;
9
+ note?: string;
10
+ }
11
+ export type CreateIntegrationApiKeyInput = CreateIntegrationApiKeyRequestBody & CreateIntegrationApiKeyRequestHeaders & CreateIntegrationApiKeyRequestQuery & CreateIntegrationApiKeyRequestParams;
12
+ export type CreateIntegrationApiKeyRequest = {
13
+ headers: CreateIntegrationApiKeyRequestHeaders;
14
+ query: CreateIntegrationApiKeyRequestQuery;
15
+ params: CreateIntegrationApiKeyRequestParams;
16
+ body: CreateIntegrationApiKeyRequestBody;
17
+ };
18
+ export declare const parseReq: (input: CreateIntegrationApiKeyInput) => CreateIntegrationApiKeyRequest & {
19
+ path: string;
20
+ };
21
+ export interface CreateIntegrationApiKeyResponse {
22
+ id: string;
23
+ createdAt: string;
24
+ note: string;
25
+ /**
26
+ * The IAK value. This will only be returned here when created and cannot be retrieved later.
27
+ */
28
+ value: string;
29
+ }