@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,295 @@
1
+ export interface GetIntegrationRequestHeaders {
2
+ }
3
+ export interface GetIntegrationRequestQuery {
4
+ }
5
+ export interface GetIntegrationRequestParams {
6
+ id: string;
7
+ }
8
+ export interface GetIntegrationRequestBody {
9
+ }
10
+ export type GetIntegrationInput = GetIntegrationRequestBody & GetIntegrationRequestHeaders & GetIntegrationRequestQuery & GetIntegrationRequestParams;
11
+ export type GetIntegrationRequest = {
12
+ headers: GetIntegrationRequestHeaders;
13
+ query: GetIntegrationRequestQuery;
14
+ params: GetIntegrationRequestParams;
15
+ body: GetIntegrationRequestBody;
16
+ };
17
+ export declare const parseReq: (input: GetIntegrationInput) => GetIntegrationRequest & {
18
+ path: string;
19
+ };
20
+ export interface GetIntegrationResponse {
21
+ integration: {
22
+ /**
23
+ * ID of the [Integration](#schema_integration)
24
+ */
25
+ id: string;
26
+ /**
27
+ * Creation date of the [Integration](#schema_integration) in ISO 8601 format
28
+ */
29
+ createdAt: string;
30
+ /**
31
+ * Updating date of the [Integration](#schema_integration) in ISO 8601 format
32
+ */
33
+ updatedAt: string;
34
+ /**
35
+ * Global identifier configuration of the [Integration](#schema_integration)
36
+ */
37
+ identifier: {
38
+ /**
39
+ * VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier
40
+ */
41
+ fallbackHandlerScript?: string;
42
+ /**
43
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
44
+ */
45
+ extractScript?: string;
46
+ };
47
+ /**
48
+ * URL of the [Integration](#schema_integration)
49
+ */
50
+ url: string;
51
+ /**
52
+ * Name of the [Integration](#schema_integration)
53
+ */
54
+ name: string;
55
+ /**
56
+ * Version of the [Integration](#schema_integration)
57
+ */
58
+ version: string;
59
+ /**
60
+ * Configuration definition
61
+ */
62
+ configuration: {
63
+ /**
64
+ * Identifier configuration of the [Integration](#schema_integration)
65
+ */
66
+ identifier: {
67
+ linkTemplateScript?: string;
68
+ required: boolean;
69
+ };
70
+ /**
71
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
72
+ */
73
+ schema?: {
74
+ [k: string]: any;
75
+ };
76
+ };
77
+ channels: {
78
+ /**
79
+ * Channel definition
80
+ */
81
+ [k: string]: {
82
+ /**
83
+ * Title of the channel
84
+ */
85
+ title?: string;
86
+ /**
87
+ * Description of the channel
88
+ */
89
+ description?: string;
90
+ messages: {
91
+ /**
92
+ * Message definition
93
+ */
94
+ [k: string]: {
95
+ schema: {
96
+ [k: string]: any;
97
+ };
98
+ };
99
+ };
100
+ /**
101
+ * Conversation object configuration
102
+ */
103
+ conversation: {
104
+ tags: {
105
+ /**
106
+ * Definition of a tag that can be provided on the object
107
+ */
108
+ [k: string]: {
109
+ /**
110
+ * Title of the tag
111
+ */
112
+ title?: string;
113
+ /**
114
+ * Description of the tag
115
+ */
116
+ description?: string;
117
+ };
118
+ };
119
+ /**
120
+ * 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.
121
+ */
122
+ creation: {
123
+ /**
124
+ * Enable conversation creation
125
+ */
126
+ enabled: boolean;
127
+ /**
128
+ * The list of tags that are required to be specified when calling the API directly to create a conversation.
129
+ */
130
+ requiredTags: string[];
131
+ };
132
+ };
133
+ /**
134
+ * Message object configuration
135
+ */
136
+ message: {
137
+ tags: {
138
+ /**
139
+ * Definition of a tag that can be provided on the object
140
+ */
141
+ [k: string]: {
142
+ /**
143
+ * Title of the tag
144
+ */
145
+ title?: string;
146
+ /**
147
+ * Description of the tag
148
+ */
149
+ description?: string;
150
+ };
151
+ };
152
+ };
153
+ };
154
+ };
155
+ states: {
156
+ /**
157
+ * State definition
158
+ */
159
+ [k: string]: {
160
+ /**
161
+ * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
162
+ */
163
+ type: "conversation" | "user" | "integration";
164
+ /**
165
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
166
+ */
167
+ schema: {
168
+ [k: string]: any;
169
+ };
170
+ };
171
+ };
172
+ events: {
173
+ /**
174
+ * Event Definition
175
+ */
176
+ [k: string]: {
177
+ /**
178
+ * Title of the event
179
+ */
180
+ title?: string;
181
+ /**
182
+ * Description of the event
183
+ */
184
+ description?: string;
185
+ schema: {
186
+ [k: string]: any;
187
+ };
188
+ };
189
+ };
190
+ actions: {
191
+ /**
192
+ * Action definition
193
+ */
194
+ [k: string]: {
195
+ /**
196
+ * Title of the action
197
+ */
198
+ title?: string;
199
+ /**
200
+ * Description of the action
201
+ */
202
+ description?: string;
203
+ input: {
204
+ schema: {
205
+ [k: string]: any;
206
+ };
207
+ };
208
+ output: {
209
+ schema: {
210
+ [k: string]: any;
211
+ };
212
+ };
213
+ };
214
+ };
215
+ /**
216
+ * User object configuration
217
+ */
218
+ user: {
219
+ tags: {
220
+ /**
221
+ * Definition of a tag that can be provided on the object
222
+ */
223
+ [k: string]: {
224
+ /**
225
+ * Title of the tag
226
+ */
227
+ title?: string;
228
+ /**
229
+ * Description of the tag
230
+ */
231
+ description?: string;
232
+ };
233
+ };
234
+ /**
235
+ * 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.
236
+ */
237
+ creation: {
238
+ /**
239
+ * Enable user creation
240
+ */
241
+ enabled: boolean;
242
+ /**
243
+ * The list of tags that are required to be specified when calling the API directly to create a user.
244
+ */
245
+ requiredTags: string[];
246
+ };
247
+ };
248
+ entities: {
249
+ /**
250
+ * Entity definition
251
+ */
252
+ [k: string]: {
253
+ /**
254
+ * Title of the entity
255
+ */
256
+ title?: string;
257
+ /**
258
+ * Description of the entity
259
+ */
260
+ description?: string;
261
+ schema: {
262
+ [k: string]: any;
263
+ };
264
+ };
265
+ };
266
+ /**
267
+ * Indicates if the integration is a development integration; Dev integrations run locally
268
+ */
269
+ dev: boolean;
270
+ /**
271
+ * Title of the integration. This is the name that will be displayed in the UI
272
+ */
273
+ title: string;
274
+ /**
275
+ * Description of the integration. This is the description that will be displayed in the UI
276
+ */
277
+ description: string;
278
+ /**
279
+ * URL of the icon of the integration. This is the icon that will be displayed in the UI
280
+ */
281
+ iconUrl: string;
282
+ /**
283
+ * URL of the readme of the integration. This is the readme that will be displayed in the UI
284
+ */
285
+ readmeUrl: string;
286
+ /**
287
+ * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
288
+ */
289
+ public: boolean;
290
+ /**
291
+ * 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.
292
+ */
293
+ secrets: string[];
294
+ };
295
+ }
@@ -0,0 +1,296 @@
1
+ export interface GetIntegrationByNameRequestHeaders {
2
+ }
3
+ export interface GetIntegrationByNameRequestQuery {
4
+ }
5
+ export interface GetIntegrationByNameRequestParams {
6
+ name: string;
7
+ version: string;
8
+ }
9
+ export interface GetIntegrationByNameRequestBody {
10
+ }
11
+ export type GetIntegrationByNameInput = GetIntegrationByNameRequestBody & GetIntegrationByNameRequestHeaders & GetIntegrationByNameRequestQuery & GetIntegrationByNameRequestParams;
12
+ export type GetIntegrationByNameRequest = {
13
+ headers: GetIntegrationByNameRequestHeaders;
14
+ query: GetIntegrationByNameRequestQuery;
15
+ params: GetIntegrationByNameRequestParams;
16
+ body: GetIntegrationByNameRequestBody;
17
+ };
18
+ export declare const parseReq: (input: GetIntegrationByNameInput) => GetIntegrationByNameRequest & {
19
+ path: string;
20
+ };
21
+ export interface GetIntegrationByNameResponse {
22
+ integration: {
23
+ /**
24
+ * ID of the [Integration](#schema_integration)
25
+ */
26
+ id: string;
27
+ /**
28
+ * Creation date of the [Integration](#schema_integration) in ISO 8601 format
29
+ */
30
+ createdAt: string;
31
+ /**
32
+ * Updating date of the [Integration](#schema_integration) in ISO 8601 format
33
+ */
34
+ updatedAt: string;
35
+ /**
36
+ * Global identifier configuration of the [Integration](#schema_integration)
37
+ */
38
+ identifier: {
39
+ /**
40
+ * VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier
41
+ */
42
+ fallbackHandlerScript?: string;
43
+ /**
44
+ * VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth
45
+ */
46
+ extractScript?: string;
47
+ };
48
+ /**
49
+ * URL of the [Integration](#schema_integration)
50
+ */
51
+ url: string;
52
+ /**
53
+ * Name of the [Integration](#schema_integration)
54
+ */
55
+ name: string;
56
+ /**
57
+ * Version of the [Integration](#schema_integration)
58
+ */
59
+ version: string;
60
+ /**
61
+ * Configuration definition
62
+ */
63
+ configuration: {
64
+ /**
65
+ * Identifier configuration of the [Integration](#schema_integration)
66
+ */
67
+ identifier: {
68
+ linkTemplateScript?: string;
69
+ required: boolean;
70
+ };
71
+ /**
72
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
73
+ */
74
+ schema?: {
75
+ [k: string]: any;
76
+ };
77
+ };
78
+ channels: {
79
+ /**
80
+ * Channel definition
81
+ */
82
+ [k: string]: {
83
+ /**
84
+ * Title of the channel
85
+ */
86
+ title?: string;
87
+ /**
88
+ * Description of the channel
89
+ */
90
+ description?: string;
91
+ messages: {
92
+ /**
93
+ * Message definition
94
+ */
95
+ [k: string]: {
96
+ schema: {
97
+ [k: string]: any;
98
+ };
99
+ };
100
+ };
101
+ /**
102
+ * Conversation object configuration
103
+ */
104
+ conversation: {
105
+ tags: {
106
+ /**
107
+ * Definition of a tag that can be provided on the object
108
+ */
109
+ [k: string]: {
110
+ /**
111
+ * Title of the tag
112
+ */
113
+ title?: string;
114
+ /**
115
+ * Description of the tag
116
+ */
117
+ description?: string;
118
+ };
119
+ };
120
+ /**
121
+ * 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.
122
+ */
123
+ creation: {
124
+ /**
125
+ * Enable conversation creation
126
+ */
127
+ enabled: boolean;
128
+ /**
129
+ * The list of tags that are required to be specified when calling the API directly to create a conversation.
130
+ */
131
+ requiredTags: string[];
132
+ };
133
+ };
134
+ /**
135
+ * Message object configuration
136
+ */
137
+ message: {
138
+ tags: {
139
+ /**
140
+ * Definition of a tag that can be provided on the object
141
+ */
142
+ [k: string]: {
143
+ /**
144
+ * Title of the tag
145
+ */
146
+ title?: string;
147
+ /**
148
+ * Description of the tag
149
+ */
150
+ description?: string;
151
+ };
152
+ };
153
+ };
154
+ };
155
+ };
156
+ states: {
157
+ /**
158
+ * State definition
159
+ */
160
+ [k: string]: {
161
+ /**
162
+ * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)
163
+ */
164
+ type: "conversation" | "user" | "integration";
165
+ /**
166
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
167
+ */
168
+ schema: {
169
+ [k: string]: any;
170
+ };
171
+ };
172
+ };
173
+ events: {
174
+ /**
175
+ * Event Definition
176
+ */
177
+ [k: string]: {
178
+ /**
179
+ * Title of the event
180
+ */
181
+ title?: string;
182
+ /**
183
+ * Description of the event
184
+ */
185
+ description?: string;
186
+ schema: {
187
+ [k: string]: any;
188
+ };
189
+ };
190
+ };
191
+ actions: {
192
+ /**
193
+ * Action definition
194
+ */
195
+ [k: string]: {
196
+ /**
197
+ * Title of the action
198
+ */
199
+ title?: string;
200
+ /**
201
+ * Description of the action
202
+ */
203
+ description?: string;
204
+ input: {
205
+ schema: {
206
+ [k: string]: any;
207
+ };
208
+ };
209
+ output: {
210
+ schema: {
211
+ [k: string]: any;
212
+ };
213
+ };
214
+ };
215
+ };
216
+ /**
217
+ * User object configuration
218
+ */
219
+ user: {
220
+ tags: {
221
+ /**
222
+ * Definition of a tag that can be provided on the object
223
+ */
224
+ [k: string]: {
225
+ /**
226
+ * Title of the tag
227
+ */
228
+ title?: string;
229
+ /**
230
+ * Description of the tag
231
+ */
232
+ description?: string;
233
+ };
234
+ };
235
+ /**
236
+ * 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.
237
+ */
238
+ creation: {
239
+ /**
240
+ * Enable user creation
241
+ */
242
+ enabled: boolean;
243
+ /**
244
+ * The list of tags that are required to be specified when calling the API directly to create a user.
245
+ */
246
+ requiredTags: string[];
247
+ };
248
+ };
249
+ entities: {
250
+ /**
251
+ * Entity definition
252
+ */
253
+ [k: string]: {
254
+ /**
255
+ * Title of the entity
256
+ */
257
+ title?: string;
258
+ /**
259
+ * Description of the entity
260
+ */
261
+ description?: string;
262
+ schema: {
263
+ [k: string]: any;
264
+ };
265
+ };
266
+ };
267
+ /**
268
+ * Indicates if the integration is a development integration; Dev integrations run locally
269
+ */
270
+ dev: boolean;
271
+ /**
272
+ * Title of the integration. This is the name that will be displayed in the UI
273
+ */
274
+ title: string;
275
+ /**
276
+ * Description of the integration. This is the description that will be displayed in the UI
277
+ */
278
+ description: string;
279
+ /**
280
+ * URL of the icon of the integration. This is the icon that will be displayed in the UI
281
+ */
282
+ iconUrl: string;
283
+ /**
284
+ * URL of the readme of the integration. This is the readme that will be displayed in the UI
285
+ */
286
+ readmeUrl: string;
287
+ /**
288
+ * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
289
+ */
290
+ public: boolean;
291
+ /**
292
+ * 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.
293
+ */
294
+ secrets: string[];
295
+ };
296
+ }
@@ -0,0 +1,30 @@
1
+ export interface GetIntegrationLogsRequestHeaders {
2
+ }
3
+ export interface GetIntegrationLogsRequestQuery {
4
+ timeStart: string;
5
+ timeEnd: string;
6
+ nextToken?: string;
7
+ }
8
+ export interface GetIntegrationLogsRequestParams {
9
+ id: string;
10
+ }
11
+ export interface GetIntegrationLogsRequestBody {
12
+ }
13
+ export type GetIntegrationLogsInput = GetIntegrationLogsRequestBody & GetIntegrationLogsRequestHeaders & GetIntegrationLogsRequestQuery & GetIntegrationLogsRequestParams;
14
+ export type GetIntegrationLogsRequest = {
15
+ headers: GetIntegrationLogsRequestHeaders;
16
+ query: GetIntegrationLogsRequestQuery;
17
+ params: GetIntegrationLogsRequestParams;
18
+ body: GetIntegrationLogsRequestBody;
19
+ };
20
+ export declare const parseReq: (input: GetIntegrationLogsInput) => GetIntegrationLogsRequest & {
21
+ path: string;
22
+ };
23
+ export interface GetIntegrationLogsResponse {
24
+ logs: {
25
+ timestamp: string;
26
+ level: string;
27
+ message: string;
28
+ }[];
29
+ nextToken?: string;
30
+ }
@@ -0,0 +1,62 @@
1
+ export interface GetMessageRequestHeaders {
2
+ }
3
+ export interface GetMessageRequestQuery {
4
+ }
5
+ export interface GetMessageRequestParams {
6
+ id: string;
7
+ }
8
+ export interface GetMessageRequestBody {
9
+ }
10
+ export type GetMessageInput = GetMessageRequestBody & GetMessageRequestHeaders & GetMessageRequestQuery & GetMessageRequestParams;
11
+ export type GetMessageRequest = {
12
+ headers: GetMessageRequestHeaders;
13
+ query: GetMessageRequestQuery;
14
+ params: GetMessageRequestParams;
15
+ body: GetMessageRequestBody;
16
+ };
17
+ export declare const parseReq: (input: GetMessageInput) => GetMessageRequest & {
18
+ path: string;
19
+ };
20
+ export interface GetMessageResponse {
21
+ /**
22
+ * The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
23
+ */
24
+ message: {
25
+ /**
26
+ * Id of the [Message](#schema_message)
27
+ */
28
+ id: string;
29
+ /**
30
+ * Creation date of the [Message](#schema_message) in ISO 8601 format
31
+ */
32
+ createdAt: string;
33
+ /**
34
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
35
+ */
36
+ type: string;
37
+ /**
38
+ * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
39
+ */
40
+ payload: {
41
+ [k: string]: any;
42
+ };
43
+ /**
44
+ * Direction of the message (`incoming` or `outgoing`).
45
+ */
46
+ direction: "incoming" | "outgoing";
47
+ /**
48
+ * ID of the [User](#schema_user)
49
+ */
50
+ userId: string;
51
+ /**
52
+ * ID of the [Conversation](#schema_conversation)
53
+ */
54
+ conversationId: string;
55
+ /**
56
+ * 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.
57
+ */
58
+ tags: {
59
+ [k: string]: string;
60
+ };
61
+ };
62
+ }