@botpress/client 0.32.0 → 0.33.1
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.
- package/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +970 -92
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ interface CreateConversationRequestBody {
|
|
|
47
47
|
type CreateConversationInput = CreateConversationRequestBody & CreateConversationRequestHeaders & CreateConversationRequestQuery & CreateConversationRequestParams;
|
|
48
48
|
interface CreateConversationResponse {
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The [Conversation](#schema_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.
|
|
51
51
|
*/
|
|
52
52
|
conversation: {
|
|
53
53
|
/**
|
|
@@ -58,6 +58,10 @@ interface CreateConversationResponse {
|
|
|
58
58
|
* Id of the current [Task](#schema_task)
|
|
59
59
|
*/
|
|
60
60
|
currentTaskId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Id of the current [Workflow](#schema_workflow)
|
|
63
|
+
*/
|
|
64
|
+
currentWorkflowId?: string;
|
|
61
65
|
/**
|
|
62
66
|
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
63
67
|
*/
|
|
@@ -95,7 +99,7 @@ interface GetConversationRequestBody {
|
|
|
95
99
|
type GetConversationInput = GetConversationRequestBody & GetConversationRequestHeaders & GetConversationRequestQuery & GetConversationRequestParams;
|
|
96
100
|
interface GetConversationResponse {
|
|
97
101
|
/**
|
|
98
|
-
* The
|
|
102
|
+
* The [Conversation](#schema_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.
|
|
99
103
|
*/
|
|
100
104
|
conversation: {
|
|
101
105
|
/**
|
|
@@ -106,6 +110,10 @@ interface GetConversationResponse {
|
|
|
106
110
|
* Id of the current [Task](#schema_task)
|
|
107
111
|
*/
|
|
108
112
|
currentTaskId?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Id of the current [Workflow](#schema_workflow)
|
|
115
|
+
*/
|
|
116
|
+
currentWorkflowId?: string;
|
|
109
117
|
/**
|
|
110
118
|
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
111
119
|
*/
|
|
@@ -158,6 +166,10 @@ interface ListConversationsResponse {
|
|
|
158
166
|
* Id of the current [Task](#schema_task)
|
|
159
167
|
*/
|
|
160
168
|
currentTaskId?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Id of the current [Workflow](#schema_workflow)
|
|
171
|
+
*/
|
|
172
|
+
currentWorkflowId?: string;
|
|
161
173
|
/**
|
|
162
174
|
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
163
175
|
*/
|
|
@@ -215,7 +227,7 @@ interface GetOrCreateConversationRequestBody {
|
|
|
215
227
|
type GetOrCreateConversationInput = GetOrCreateConversationRequestBody & GetOrCreateConversationRequestHeaders & GetOrCreateConversationRequestQuery & GetOrCreateConversationRequestParams;
|
|
216
228
|
interface GetOrCreateConversationResponse {
|
|
217
229
|
/**
|
|
218
|
-
* The
|
|
230
|
+
* The [Conversation](#schema_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.
|
|
219
231
|
*/
|
|
220
232
|
conversation: {
|
|
221
233
|
/**
|
|
@@ -226,6 +238,10 @@ interface GetOrCreateConversationResponse {
|
|
|
226
238
|
* Id of the current [Task](#schema_task)
|
|
227
239
|
*/
|
|
228
240
|
currentTaskId?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Id of the current [Workflow](#schema_workflow)
|
|
243
|
+
*/
|
|
244
|
+
currentWorkflowId?: string;
|
|
229
245
|
/**
|
|
230
246
|
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
231
247
|
*/
|
|
@@ -270,7 +286,7 @@ interface UpdateConversationRequestBody {
|
|
|
270
286
|
type UpdateConversationInput = UpdateConversationRequestBody & UpdateConversationRequestHeaders & UpdateConversationRequestQuery & UpdateConversationRequestParams;
|
|
271
287
|
interface UpdateConversationResponse {
|
|
272
288
|
/**
|
|
273
|
-
* The
|
|
289
|
+
* The [Conversation](#schema_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.
|
|
274
290
|
*/
|
|
275
291
|
conversation: {
|
|
276
292
|
/**
|
|
@@ -281,6 +297,10 @@ interface UpdateConversationResponse {
|
|
|
281
297
|
* Id of the current [Task](#schema_task)
|
|
282
298
|
*/
|
|
283
299
|
currentTaskId?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Id of the current [Workflow](#schema_workflow)
|
|
302
|
+
*/
|
|
303
|
+
currentWorkflowId?: string;
|
|
284
304
|
/**
|
|
285
305
|
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
286
306
|
*/
|
|
@@ -553,7 +573,7 @@ interface CreateEventResponse {
|
|
|
553
573
|
* ID of the [Message](#schema_message) to link the event to.
|
|
554
574
|
*/
|
|
555
575
|
messageId?: string;
|
|
556
|
-
status: "pending" | "processed" | "ignored" | "failed";
|
|
576
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
557
577
|
/**
|
|
558
578
|
* Reason why the event failed to be processed
|
|
559
579
|
*/
|
|
@@ -606,7 +626,7 @@ interface GetEventResponse {
|
|
|
606
626
|
* ID of the [Message](#schema_message) to link the event to.
|
|
607
627
|
*/
|
|
608
628
|
messageId?: string;
|
|
609
|
-
status: "pending" | "processed" | "ignored" | "failed";
|
|
629
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
610
630
|
/**
|
|
611
631
|
* Reason why the event failed to be processed
|
|
612
632
|
*/
|
|
@@ -622,7 +642,7 @@ interface ListEventsRequestQuery {
|
|
|
622
642
|
conversationId?: string;
|
|
623
643
|
userId?: string;
|
|
624
644
|
messageId?: string;
|
|
625
|
-
status?:
|
|
645
|
+
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled";
|
|
626
646
|
}
|
|
627
647
|
interface ListEventsRequestParams {
|
|
628
648
|
}
|
|
@@ -661,7 +681,7 @@ interface ListEventsResponse {
|
|
|
661
681
|
* ID of the [Message](#schema_message) to link the event to.
|
|
662
682
|
*/
|
|
663
683
|
messageId?: string;
|
|
664
|
-
status: "pending" | "processed" | "ignored" | "failed";
|
|
684
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
665
685
|
/**
|
|
666
686
|
* Reason why the event failed to be processed
|
|
667
687
|
*/
|
|
@@ -1338,7 +1358,7 @@ interface SetStateExpiryRequestHeaders {
|
|
|
1338
1358
|
interface SetStateExpiryRequestQuery {
|
|
1339
1359
|
}
|
|
1340
1360
|
interface SetStateExpiryRequestParams {
|
|
1341
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
1361
|
+
type: "conversation" | "user" | "bot" | "integration" | "task" | "workflow";
|
|
1342
1362
|
id: string;
|
|
1343
1363
|
name: string;
|
|
1344
1364
|
}
|
|
@@ -1383,9 +1403,9 @@ interface SetStateExpiryResponse {
|
|
|
1383
1403
|
*/
|
|
1384
1404
|
name: string;
|
|
1385
1405
|
/**
|
|
1386
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
1406
|
+
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to
|
|
1387
1407
|
*/
|
|
1388
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
1408
|
+
type: "conversation" | "user" | "bot" | "task" | "integration" | "workflow";
|
|
1389
1409
|
/**
|
|
1390
1410
|
* Payload is the content of the state defined by your bot.
|
|
1391
1411
|
*/
|
|
@@ -1400,7 +1420,7 @@ interface GetStateRequestHeaders {
|
|
|
1400
1420
|
interface GetStateRequestQuery {
|
|
1401
1421
|
}
|
|
1402
1422
|
interface GetStateRequestParams {
|
|
1403
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
1423
|
+
type: "conversation" | "user" | "bot" | "integration" | "task" | "workflow";
|
|
1404
1424
|
id: string;
|
|
1405
1425
|
name: string;
|
|
1406
1426
|
}
|
|
@@ -1441,9 +1461,9 @@ interface GetStateResponse {
|
|
|
1441
1461
|
*/
|
|
1442
1462
|
name: string;
|
|
1443
1463
|
/**
|
|
1444
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
1464
|
+
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to
|
|
1445
1465
|
*/
|
|
1446
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
1466
|
+
type: "conversation" | "user" | "bot" | "task" | "integration" | "workflow";
|
|
1447
1467
|
/**
|
|
1448
1468
|
* Payload is the content of the state defined by your bot.
|
|
1449
1469
|
*/
|
|
@@ -1461,7 +1481,7 @@ interface SetStateRequestHeaders {
|
|
|
1461
1481
|
interface SetStateRequestQuery {
|
|
1462
1482
|
}
|
|
1463
1483
|
interface SetStateRequestParams {
|
|
1464
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
1484
|
+
type: "conversation" | "user" | "bot" | "integration" | "task" | "workflow";
|
|
1465
1485
|
id: string;
|
|
1466
1486
|
name: string;
|
|
1467
1487
|
}
|
|
@@ -1512,9 +1532,9 @@ interface SetStateResponse {
|
|
|
1512
1532
|
*/
|
|
1513
1533
|
name: string;
|
|
1514
1534
|
/**
|
|
1515
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
1535
|
+
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to
|
|
1516
1536
|
*/
|
|
1517
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
1537
|
+
type: "conversation" | "user" | "bot" | "task" | "integration" | "workflow";
|
|
1518
1538
|
/**
|
|
1519
1539
|
* Payload is the content of the state defined by your bot.
|
|
1520
1540
|
*/
|
|
@@ -1529,7 +1549,7 @@ interface GetOrSetStateRequestHeaders {
|
|
|
1529
1549
|
interface GetOrSetStateRequestQuery {
|
|
1530
1550
|
}
|
|
1531
1551
|
interface GetOrSetStateRequestParams {
|
|
1532
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
1552
|
+
type: "conversation" | "user" | "bot" | "integration" | "task" | "workflow";
|
|
1533
1553
|
id: string;
|
|
1534
1554
|
name: string;
|
|
1535
1555
|
}
|
|
@@ -1580,9 +1600,9 @@ interface GetOrSetStateResponse {
|
|
|
1580
1600
|
*/
|
|
1581
1601
|
name: string;
|
|
1582
1602
|
/**
|
|
1583
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
1603
|
+
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to
|
|
1584
1604
|
*/
|
|
1585
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
1605
|
+
type: "conversation" | "user" | "bot" | "task" | "integration" | "workflow";
|
|
1586
1606
|
/**
|
|
1587
1607
|
* Payload is the content of the state defined by your bot.
|
|
1588
1608
|
*/
|
|
@@ -1600,7 +1620,7 @@ interface PatchStateRequestHeaders {
|
|
|
1600
1620
|
interface PatchStateRequestQuery {
|
|
1601
1621
|
}
|
|
1602
1622
|
interface PatchStateRequestParams {
|
|
1603
|
-
type: "conversation" | "user" | "bot" | "integration" | "task";
|
|
1623
|
+
type: "conversation" | "user" | "bot" | "integration" | "task" | "workflow";
|
|
1604
1624
|
id: string;
|
|
1605
1625
|
name: string;
|
|
1606
1626
|
}
|
|
@@ -1647,9 +1667,9 @@ interface PatchStateResponse {
|
|
|
1647
1667
|
*/
|
|
1648
1668
|
name: string;
|
|
1649
1669
|
/**
|
|
1650
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
1670
|
+
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to
|
|
1651
1671
|
*/
|
|
1652
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
1672
|
+
type: "conversation" | "user" | "bot" | "task" | "integration" | "workflow";
|
|
1653
1673
|
/**
|
|
1654
1674
|
* Payload is the content of the state defined by your bot.
|
|
1655
1675
|
*/
|
|
@@ -2109,6 +2129,534 @@ interface ListTasksResponse {
|
|
|
2109
2129
|
};
|
|
2110
2130
|
}
|
|
2111
2131
|
|
|
2132
|
+
interface CreateWorkflowRequestHeaders {
|
|
2133
|
+
}
|
|
2134
|
+
interface CreateWorkflowRequestQuery {
|
|
2135
|
+
}
|
|
2136
|
+
interface CreateWorkflowRequestParams {
|
|
2137
|
+
}
|
|
2138
|
+
interface CreateWorkflowRequestBody {
|
|
2139
|
+
/**
|
|
2140
|
+
* Name of the workflow
|
|
2141
|
+
*/
|
|
2142
|
+
name: string;
|
|
2143
|
+
/**
|
|
2144
|
+
* Content related to the workflow
|
|
2145
|
+
*/
|
|
2146
|
+
input?: {
|
|
2147
|
+
[k: string]: any;
|
|
2148
|
+
};
|
|
2149
|
+
/**
|
|
2150
|
+
* Parent workflow id is the parent workflow that created this workflow
|
|
2151
|
+
*/
|
|
2152
|
+
parentWorkflowId?: string;
|
|
2153
|
+
/**
|
|
2154
|
+
* Conversation id related to this workflow
|
|
2155
|
+
*/
|
|
2156
|
+
conversationId?: string;
|
|
2157
|
+
/**
|
|
2158
|
+
* Specific user related to this workflow
|
|
2159
|
+
*/
|
|
2160
|
+
userId?: string;
|
|
2161
|
+
/**
|
|
2162
|
+
* The timeout date where the workflow should be failed in the ISO 8601 format
|
|
2163
|
+
*/
|
|
2164
|
+
timeoutAt?: string;
|
|
2165
|
+
/**
|
|
2166
|
+
* Tags for the [Workflow](#schema_workflow)
|
|
2167
|
+
*/
|
|
2168
|
+
tags?: {
|
|
2169
|
+
[k: string]: string;
|
|
2170
|
+
};
|
|
2171
|
+
status: "pending" | "in_progress";
|
|
2172
|
+
/**
|
|
2173
|
+
* Event id must be specified if the workflow is created with the status in_progress
|
|
2174
|
+
*/
|
|
2175
|
+
eventId?: string;
|
|
2176
|
+
}
|
|
2177
|
+
type CreateWorkflowInput = CreateWorkflowRequestBody & CreateWorkflowRequestHeaders & CreateWorkflowRequestQuery & CreateWorkflowRequestParams;
|
|
2178
|
+
interface CreateWorkflowResponse {
|
|
2179
|
+
/**
|
|
2180
|
+
* Workflow definition
|
|
2181
|
+
*/
|
|
2182
|
+
workflow: {
|
|
2183
|
+
/**
|
|
2184
|
+
* Id of the [Workflow](#schema_workflow)
|
|
2185
|
+
*/
|
|
2186
|
+
id: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* Name of the workflow
|
|
2189
|
+
*/
|
|
2190
|
+
name: string;
|
|
2191
|
+
/**
|
|
2192
|
+
* Status of the [Workflow](#schema_workflow)
|
|
2193
|
+
*/
|
|
2194
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled";
|
|
2195
|
+
/**
|
|
2196
|
+
* Input provided to the [Workflow](#schema_workflow)
|
|
2197
|
+
*/
|
|
2198
|
+
input: {
|
|
2199
|
+
[k: string]: any;
|
|
2200
|
+
};
|
|
2201
|
+
/**
|
|
2202
|
+
* Data returned by the [Workflow](#schema_workflow) output
|
|
2203
|
+
*/
|
|
2204
|
+
output: {
|
|
2205
|
+
[k: string]: any;
|
|
2206
|
+
};
|
|
2207
|
+
/**
|
|
2208
|
+
* Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)
|
|
2209
|
+
*/
|
|
2210
|
+
parentWorkflowId?: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Conversation id related to this [Workflow](#schema_workflow)
|
|
2213
|
+
*/
|
|
2214
|
+
conversationId?: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* User id related to this [Workflow](#schema_workflow)
|
|
2217
|
+
*/
|
|
2218
|
+
userId?: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* Creation date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2221
|
+
*/
|
|
2222
|
+
createdAt: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Updating date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2225
|
+
*/
|
|
2226
|
+
updatedAt: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* The date when the [Workflow](#schema_workflow) completed in ISO 8601 format
|
|
2229
|
+
*/
|
|
2230
|
+
completedAt?: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* If the [Workflow](#schema_workflow) fails this is the reason behind it
|
|
2233
|
+
*/
|
|
2234
|
+
failureReason?: string;
|
|
2235
|
+
/**
|
|
2236
|
+
* The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format
|
|
2237
|
+
*/
|
|
2238
|
+
timeoutAt: string;
|
|
2239
|
+
/**
|
|
2240
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them.
|
|
2241
|
+
*/
|
|
2242
|
+
tags: {
|
|
2243
|
+
[k: string]: string;
|
|
2244
|
+
};
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
interface GetWorkflowRequestHeaders {
|
|
2249
|
+
}
|
|
2250
|
+
interface GetWorkflowRequestQuery {
|
|
2251
|
+
}
|
|
2252
|
+
interface GetWorkflowRequestParams {
|
|
2253
|
+
id: string;
|
|
2254
|
+
}
|
|
2255
|
+
interface GetWorkflowRequestBody {
|
|
2256
|
+
}
|
|
2257
|
+
type GetWorkflowInput = GetWorkflowRequestBody & GetWorkflowRequestHeaders & GetWorkflowRequestQuery & GetWorkflowRequestParams;
|
|
2258
|
+
interface GetWorkflowResponse {
|
|
2259
|
+
/**
|
|
2260
|
+
* Workflow definition
|
|
2261
|
+
*/
|
|
2262
|
+
workflow: {
|
|
2263
|
+
/**
|
|
2264
|
+
* Id of the [Workflow](#schema_workflow)
|
|
2265
|
+
*/
|
|
2266
|
+
id: string;
|
|
2267
|
+
/**
|
|
2268
|
+
* Name of the workflow
|
|
2269
|
+
*/
|
|
2270
|
+
name: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* Status of the [Workflow](#schema_workflow)
|
|
2273
|
+
*/
|
|
2274
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled";
|
|
2275
|
+
/**
|
|
2276
|
+
* Input provided to the [Workflow](#schema_workflow)
|
|
2277
|
+
*/
|
|
2278
|
+
input: {
|
|
2279
|
+
[k: string]: any;
|
|
2280
|
+
};
|
|
2281
|
+
/**
|
|
2282
|
+
* Data returned by the [Workflow](#schema_workflow) output
|
|
2283
|
+
*/
|
|
2284
|
+
output: {
|
|
2285
|
+
[k: string]: any;
|
|
2286
|
+
};
|
|
2287
|
+
/**
|
|
2288
|
+
* Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)
|
|
2289
|
+
*/
|
|
2290
|
+
parentWorkflowId?: string;
|
|
2291
|
+
/**
|
|
2292
|
+
* Conversation id related to this [Workflow](#schema_workflow)
|
|
2293
|
+
*/
|
|
2294
|
+
conversationId?: string;
|
|
2295
|
+
/**
|
|
2296
|
+
* User id related to this [Workflow](#schema_workflow)
|
|
2297
|
+
*/
|
|
2298
|
+
userId?: string;
|
|
2299
|
+
/**
|
|
2300
|
+
* Creation date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2301
|
+
*/
|
|
2302
|
+
createdAt: string;
|
|
2303
|
+
/**
|
|
2304
|
+
* Updating date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2305
|
+
*/
|
|
2306
|
+
updatedAt: string;
|
|
2307
|
+
/**
|
|
2308
|
+
* The date when the [Workflow](#schema_workflow) completed in ISO 8601 format
|
|
2309
|
+
*/
|
|
2310
|
+
completedAt?: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* If the [Workflow](#schema_workflow) fails this is the reason behind it
|
|
2313
|
+
*/
|
|
2314
|
+
failureReason?: string;
|
|
2315
|
+
/**
|
|
2316
|
+
* The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format
|
|
2317
|
+
*/
|
|
2318
|
+
timeoutAt: string;
|
|
2319
|
+
/**
|
|
2320
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them.
|
|
2321
|
+
*/
|
|
2322
|
+
tags: {
|
|
2323
|
+
[k: string]: string;
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
interface UpdateWorkflowRequestHeaders {
|
|
2329
|
+
}
|
|
2330
|
+
interface UpdateWorkflowRequestQuery {
|
|
2331
|
+
}
|
|
2332
|
+
interface UpdateWorkflowRequestParams {
|
|
2333
|
+
id: string;
|
|
2334
|
+
}
|
|
2335
|
+
interface UpdateWorkflowRequestBody {
|
|
2336
|
+
/**
|
|
2337
|
+
* Content related to the workflow
|
|
2338
|
+
*/
|
|
2339
|
+
output?: {
|
|
2340
|
+
[k: string]: any;
|
|
2341
|
+
};
|
|
2342
|
+
/**
|
|
2343
|
+
* The timeout date where the workflow should be failed in the ISO 8601 format
|
|
2344
|
+
*/
|
|
2345
|
+
timeoutAt?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* Status of the workflow
|
|
2348
|
+
*/
|
|
2349
|
+
status?: "completed" | "cancelled" | "listening" | "paused" | "failed" | "in_progress";
|
|
2350
|
+
/**
|
|
2351
|
+
* Reason why the workflow failed
|
|
2352
|
+
*/
|
|
2353
|
+
failureReason?: string;
|
|
2354
|
+
/**
|
|
2355
|
+
* Tags for the [Workflow](#schema_workflow)
|
|
2356
|
+
*/
|
|
2357
|
+
tags?: {
|
|
2358
|
+
[k: string]: string;
|
|
2359
|
+
};
|
|
2360
|
+
/**
|
|
2361
|
+
* Specific user related to this workflow
|
|
2362
|
+
*/
|
|
2363
|
+
userId?: string;
|
|
2364
|
+
/**
|
|
2365
|
+
* Event id must be specified if the workflow is updated with the status in_progress
|
|
2366
|
+
*/
|
|
2367
|
+
eventId?: string;
|
|
2368
|
+
}
|
|
2369
|
+
type UpdateWorkflowInput = UpdateWorkflowRequestBody & UpdateWorkflowRequestHeaders & UpdateWorkflowRequestQuery & UpdateWorkflowRequestParams;
|
|
2370
|
+
interface UpdateWorkflowResponse {
|
|
2371
|
+
/**
|
|
2372
|
+
* Workflow definition
|
|
2373
|
+
*/
|
|
2374
|
+
workflow: {
|
|
2375
|
+
/**
|
|
2376
|
+
* Id of the [Workflow](#schema_workflow)
|
|
2377
|
+
*/
|
|
2378
|
+
id: string;
|
|
2379
|
+
/**
|
|
2380
|
+
* Name of the workflow
|
|
2381
|
+
*/
|
|
2382
|
+
name: string;
|
|
2383
|
+
/**
|
|
2384
|
+
* Status of the [Workflow](#schema_workflow)
|
|
2385
|
+
*/
|
|
2386
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled";
|
|
2387
|
+
/**
|
|
2388
|
+
* Input provided to the [Workflow](#schema_workflow)
|
|
2389
|
+
*/
|
|
2390
|
+
input: {
|
|
2391
|
+
[k: string]: any;
|
|
2392
|
+
};
|
|
2393
|
+
/**
|
|
2394
|
+
* Data returned by the [Workflow](#schema_workflow) output
|
|
2395
|
+
*/
|
|
2396
|
+
output: {
|
|
2397
|
+
[k: string]: any;
|
|
2398
|
+
};
|
|
2399
|
+
/**
|
|
2400
|
+
* Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)
|
|
2401
|
+
*/
|
|
2402
|
+
parentWorkflowId?: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* Conversation id related to this [Workflow](#schema_workflow)
|
|
2405
|
+
*/
|
|
2406
|
+
conversationId?: string;
|
|
2407
|
+
/**
|
|
2408
|
+
* User id related to this [Workflow](#schema_workflow)
|
|
2409
|
+
*/
|
|
2410
|
+
userId?: string;
|
|
2411
|
+
/**
|
|
2412
|
+
* Creation date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2413
|
+
*/
|
|
2414
|
+
createdAt: string;
|
|
2415
|
+
/**
|
|
2416
|
+
* Updating date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2417
|
+
*/
|
|
2418
|
+
updatedAt: string;
|
|
2419
|
+
/**
|
|
2420
|
+
* The date when the [Workflow](#schema_workflow) completed in ISO 8601 format
|
|
2421
|
+
*/
|
|
2422
|
+
completedAt?: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* If the [Workflow](#schema_workflow) fails this is the reason behind it
|
|
2425
|
+
*/
|
|
2426
|
+
failureReason?: string;
|
|
2427
|
+
/**
|
|
2428
|
+
* The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format
|
|
2429
|
+
*/
|
|
2430
|
+
timeoutAt: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them.
|
|
2433
|
+
*/
|
|
2434
|
+
tags: {
|
|
2435
|
+
[k: string]: string;
|
|
2436
|
+
};
|
|
2437
|
+
};
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
interface DeleteWorkflowRequestHeaders {
|
|
2441
|
+
}
|
|
2442
|
+
interface DeleteWorkflowRequestQuery {
|
|
2443
|
+
}
|
|
2444
|
+
interface DeleteWorkflowRequestParams {
|
|
2445
|
+
id: string;
|
|
2446
|
+
}
|
|
2447
|
+
interface DeleteWorkflowRequestBody {
|
|
2448
|
+
}
|
|
2449
|
+
type DeleteWorkflowInput = DeleteWorkflowRequestBody & DeleteWorkflowRequestHeaders & DeleteWorkflowRequestQuery & DeleteWorkflowRequestParams;
|
|
2450
|
+
interface DeleteWorkflowResponse {
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
interface ListWorkflowsRequestHeaders {
|
|
2454
|
+
}
|
|
2455
|
+
interface ListWorkflowsRequestQuery {
|
|
2456
|
+
nextToken?: string;
|
|
2457
|
+
tags?: {
|
|
2458
|
+
[k: string]: string;
|
|
2459
|
+
};
|
|
2460
|
+
conversationId?: string;
|
|
2461
|
+
userId?: string;
|
|
2462
|
+
parentWorkflowId?: string;
|
|
2463
|
+
statuses?: ("pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled")[];
|
|
2464
|
+
name?: string;
|
|
2465
|
+
}
|
|
2466
|
+
interface ListWorkflowsRequestParams {
|
|
2467
|
+
}
|
|
2468
|
+
interface ListWorkflowsRequestBody {
|
|
2469
|
+
}
|
|
2470
|
+
type ListWorkflowsInput = ListWorkflowsRequestBody & ListWorkflowsRequestHeaders & ListWorkflowsRequestQuery & ListWorkflowsRequestParams;
|
|
2471
|
+
interface ListWorkflowsResponse {
|
|
2472
|
+
workflows: {
|
|
2473
|
+
/**
|
|
2474
|
+
* Id of the [Workflow](#schema_workflow)
|
|
2475
|
+
*/
|
|
2476
|
+
id: string;
|
|
2477
|
+
/**
|
|
2478
|
+
* Name of the workflow
|
|
2479
|
+
*/
|
|
2480
|
+
name: string;
|
|
2481
|
+
/**
|
|
2482
|
+
* Status of the [Workflow](#schema_workflow)
|
|
2483
|
+
*/
|
|
2484
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled";
|
|
2485
|
+
/**
|
|
2486
|
+
* Input provided to the [Workflow](#schema_workflow)
|
|
2487
|
+
*/
|
|
2488
|
+
input: {
|
|
2489
|
+
[k: string]: any;
|
|
2490
|
+
};
|
|
2491
|
+
/**
|
|
2492
|
+
* Data returned by the [Workflow](#schema_workflow) output
|
|
2493
|
+
*/
|
|
2494
|
+
output: {
|
|
2495
|
+
[k: string]: any;
|
|
2496
|
+
};
|
|
2497
|
+
/**
|
|
2498
|
+
* Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)
|
|
2499
|
+
*/
|
|
2500
|
+
parentWorkflowId?: string;
|
|
2501
|
+
/**
|
|
2502
|
+
* Conversation id related to this [Workflow](#schema_workflow)
|
|
2503
|
+
*/
|
|
2504
|
+
conversationId?: string;
|
|
2505
|
+
/**
|
|
2506
|
+
* User id related to this [Workflow](#schema_workflow)
|
|
2507
|
+
*/
|
|
2508
|
+
userId?: string;
|
|
2509
|
+
/**
|
|
2510
|
+
* Creation date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2511
|
+
*/
|
|
2512
|
+
createdAt: string;
|
|
2513
|
+
/**
|
|
2514
|
+
* Updating date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2515
|
+
*/
|
|
2516
|
+
updatedAt: string;
|
|
2517
|
+
/**
|
|
2518
|
+
* The date when the [Workflow](#schema_workflow) completed in ISO 8601 format
|
|
2519
|
+
*/
|
|
2520
|
+
completedAt?: string;
|
|
2521
|
+
/**
|
|
2522
|
+
* If the [Workflow](#schema_workflow) fails this is the reason behind it
|
|
2523
|
+
*/
|
|
2524
|
+
failureReason?: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format
|
|
2527
|
+
*/
|
|
2528
|
+
timeoutAt: string;
|
|
2529
|
+
/**
|
|
2530
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them.
|
|
2531
|
+
*/
|
|
2532
|
+
tags: {
|
|
2533
|
+
[k: string]: string;
|
|
2534
|
+
};
|
|
2535
|
+
}[];
|
|
2536
|
+
meta: {
|
|
2537
|
+
/**
|
|
2538
|
+
* The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
|
|
2539
|
+
*/
|
|
2540
|
+
nextToken?: string;
|
|
2541
|
+
};
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
interface GetOrCreateWorkflowRequestHeaders {
|
|
2545
|
+
}
|
|
2546
|
+
interface GetOrCreateWorkflowRequestQuery {
|
|
2547
|
+
}
|
|
2548
|
+
interface GetOrCreateWorkflowRequestParams {
|
|
2549
|
+
}
|
|
2550
|
+
interface GetOrCreateWorkflowRequestBody {
|
|
2551
|
+
/**
|
|
2552
|
+
* Name of the workflow
|
|
2553
|
+
*/
|
|
2554
|
+
name: string;
|
|
2555
|
+
/**
|
|
2556
|
+
* Content related to the workflow
|
|
2557
|
+
*/
|
|
2558
|
+
input?: {
|
|
2559
|
+
[k: string]: any;
|
|
2560
|
+
};
|
|
2561
|
+
/**
|
|
2562
|
+
* Parent workflow id is the parent workflow that created this workflow
|
|
2563
|
+
*/
|
|
2564
|
+
parentWorkflowId?: string;
|
|
2565
|
+
/**
|
|
2566
|
+
* Conversation id related to this workflow
|
|
2567
|
+
*/
|
|
2568
|
+
conversationId?: string;
|
|
2569
|
+
/**
|
|
2570
|
+
* Specific user related to this workflow
|
|
2571
|
+
*/
|
|
2572
|
+
userId?: string;
|
|
2573
|
+
/**
|
|
2574
|
+
* The timeout date where the workflow should be failed in the ISO 8601 format
|
|
2575
|
+
*/
|
|
2576
|
+
timeoutAt?: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* Tags for the [Workflow](#schema_workflow)
|
|
2579
|
+
*/
|
|
2580
|
+
tags?: {
|
|
2581
|
+
[k: string]: string;
|
|
2582
|
+
};
|
|
2583
|
+
status: "pending" | "in_progress";
|
|
2584
|
+
/**
|
|
2585
|
+
* Event id must be specified if the workflow is created with the status in_progress
|
|
2586
|
+
*/
|
|
2587
|
+
eventId?: string;
|
|
2588
|
+
}
|
|
2589
|
+
type GetOrCreateWorkflowInput = GetOrCreateWorkflowRequestBody & GetOrCreateWorkflowRequestHeaders & GetOrCreateWorkflowRequestQuery & GetOrCreateWorkflowRequestParams;
|
|
2590
|
+
interface GetOrCreateWorkflowResponse {
|
|
2591
|
+
/**
|
|
2592
|
+
* Workflow definition
|
|
2593
|
+
*/
|
|
2594
|
+
workflow: {
|
|
2595
|
+
/**
|
|
2596
|
+
* Id of the [Workflow](#schema_workflow)
|
|
2597
|
+
*/
|
|
2598
|
+
id: string;
|
|
2599
|
+
/**
|
|
2600
|
+
* Name of the workflow
|
|
2601
|
+
*/
|
|
2602
|
+
name: string;
|
|
2603
|
+
/**
|
|
2604
|
+
* Status of the [Workflow](#schema_workflow)
|
|
2605
|
+
*/
|
|
2606
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled";
|
|
2607
|
+
/**
|
|
2608
|
+
* Input provided to the [Workflow](#schema_workflow)
|
|
2609
|
+
*/
|
|
2610
|
+
input: {
|
|
2611
|
+
[k: string]: any;
|
|
2612
|
+
};
|
|
2613
|
+
/**
|
|
2614
|
+
* Data returned by the [Workflow](#schema_workflow) output
|
|
2615
|
+
*/
|
|
2616
|
+
output: {
|
|
2617
|
+
[k: string]: any;
|
|
2618
|
+
};
|
|
2619
|
+
/**
|
|
2620
|
+
* Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)
|
|
2621
|
+
*/
|
|
2622
|
+
parentWorkflowId?: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* Conversation id related to this [Workflow](#schema_workflow)
|
|
2625
|
+
*/
|
|
2626
|
+
conversationId?: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* User id related to this [Workflow](#schema_workflow)
|
|
2629
|
+
*/
|
|
2630
|
+
userId?: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* Creation date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2633
|
+
*/
|
|
2634
|
+
createdAt: string;
|
|
2635
|
+
/**
|
|
2636
|
+
* Updating date of the [Workflow](#schema_workflow) in ISO 8601 format
|
|
2637
|
+
*/
|
|
2638
|
+
updatedAt: string;
|
|
2639
|
+
/**
|
|
2640
|
+
* The date when the [Workflow](#schema_workflow) completed in ISO 8601 format
|
|
2641
|
+
*/
|
|
2642
|
+
completedAt?: string;
|
|
2643
|
+
/**
|
|
2644
|
+
* If the [Workflow](#schema_workflow) fails this is the reason behind it
|
|
2645
|
+
*/
|
|
2646
|
+
failureReason?: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format
|
|
2649
|
+
*/
|
|
2650
|
+
timeoutAt: string;
|
|
2651
|
+
/**
|
|
2652
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them.
|
|
2653
|
+
*/
|
|
2654
|
+
tags: {
|
|
2655
|
+
[k: string]: string;
|
|
2656
|
+
};
|
|
2657
|
+
};
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2112
2660
|
interface TrackAnalyticsRequestHeaders {
|
|
2113
2661
|
}
|
|
2114
2662
|
interface TrackAnalyticsRequestQuery {
|
|
@@ -2394,6 +2942,9 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
2394
2942
|
version: string;
|
|
2395
2943
|
interfaces: {
|
|
2396
2944
|
[k: string]: {
|
|
2945
|
+
/**
|
|
2946
|
+
* ID of the interface
|
|
2947
|
+
*/
|
|
2397
2948
|
id: string;
|
|
2398
2949
|
/**
|
|
2399
2950
|
* Name of the interface
|
|
@@ -2414,6 +2965,11 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
2414
2965
|
name: string;
|
|
2415
2966
|
};
|
|
2416
2967
|
};
|
|
2968
|
+
channels: {
|
|
2969
|
+
[k: string]: {
|
|
2970
|
+
name: string;
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2417
2973
|
};
|
|
2418
2974
|
};
|
|
2419
2975
|
/**
|
|
@@ -2753,6 +3309,9 @@ interface GetPublicIntegrationResponse {
|
|
|
2753
3309
|
version: string;
|
|
2754
3310
|
interfaces: {
|
|
2755
3311
|
[k: string]: {
|
|
3312
|
+
/**
|
|
3313
|
+
* ID of the interface
|
|
3314
|
+
*/
|
|
2756
3315
|
id: string;
|
|
2757
3316
|
/**
|
|
2758
3317
|
* Name of the interface
|
|
@@ -2773,6 +3332,11 @@ interface GetPublicIntegrationResponse {
|
|
|
2773
3332
|
name: string;
|
|
2774
3333
|
};
|
|
2775
3334
|
};
|
|
3335
|
+
channels: {
|
|
3336
|
+
[k: string]: {
|
|
3337
|
+
name: string;
|
|
3338
|
+
};
|
|
3339
|
+
};
|
|
2776
3340
|
};
|
|
2777
3341
|
};
|
|
2778
3342
|
/**
|
|
@@ -4489,6 +5053,40 @@ interface GetBotAnalyticsResponse {
|
|
|
4489
5053
|
customEvents: {
|
|
4490
5054
|
[k: string]: number;
|
|
4491
5055
|
};
|
|
5056
|
+
llm: {
|
|
5057
|
+
calls: number;
|
|
5058
|
+
errors: number;
|
|
5059
|
+
inputTokens: number;
|
|
5060
|
+
outputTokens: number;
|
|
5061
|
+
/**
|
|
5062
|
+
* The time it took for the LLM to complete its response. Values are expressed in milliseconds
|
|
5063
|
+
*/
|
|
5064
|
+
latency: {
|
|
5065
|
+
mean: number;
|
|
5066
|
+
sd: number;
|
|
5067
|
+
min: number;
|
|
5068
|
+
max: number;
|
|
5069
|
+
};
|
|
5070
|
+
/**
|
|
5071
|
+
* LLM response generation speed expressed in output tokens per second.
|
|
5072
|
+
*/
|
|
5073
|
+
tokensPerSecond: {
|
|
5074
|
+
mean: number;
|
|
5075
|
+
sd: number;
|
|
5076
|
+
min: number;
|
|
5077
|
+
max: number;
|
|
5078
|
+
};
|
|
5079
|
+
/**
|
|
5080
|
+
* Values are expressed in U.S. dollars
|
|
5081
|
+
*/
|
|
5082
|
+
cost: {
|
|
5083
|
+
sum: number;
|
|
5084
|
+
mean: number;
|
|
5085
|
+
sd: number;
|
|
5086
|
+
min: number;
|
|
5087
|
+
max: number;
|
|
5088
|
+
};
|
|
5089
|
+
};
|
|
4492
5090
|
}[];
|
|
4493
5091
|
}
|
|
4494
5092
|
|
|
@@ -5580,18 +6178,26 @@ interface CreateIntegrationRequestBody {
|
|
|
5580
6178
|
};
|
|
5581
6179
|
interfaces?: {
|
|
5582
6180
|
[k: string]: {
|
|
6181
|
+
/**
|
|
6182
|
+
* ID of the interface
|
|
6183
|
+
*/
|
|
5583
6184
|
id: string;
|
|
5584
|
-
entities
|
|
6185
|
+
entities?: {
|
|
5585
6186
|
[k: string]: {
|
|
5586
6187
|
name: string;
|
|
5587
6188
|
};
|
|
5588
6189
|
};
|
|
5589
|
-
actions
|
|
6190
|
+
actions?: {
|
|
5590
6191
|
[k: string]: {
|
|
5591
6192
|
name: string;
|
|
5592
6193
|
};
|
|
5593
6194
|
};
|
|
5594
|
-
events
|
|
6195
|
+
events?: {
|
|
6196
|
+
[k: string]: {
|
|
6197
|
+
name: string;
|
|
6198
|
+
};
|
|
6199
|
+
};
|
|
6200
|
+
channels?: {
|
|
5595
6201
|
[k: string]: {
|
|
5596
6202
|
name: string;
|
|
5597
6203
|
};
|
|
@@ -5679,6 +6285,9 @@ interface CreateIntegrationResponse {
|
|
|
5679
6285
|
version: string;
|
|
5680
6286
|
interfaces: {
|
|
5681
6287
|
[k: string]: {
|
|
6288
|
+
/**
|
|
6289
|
+
* ID of the interface
|
|
6290
|
+
*/
|
|
5682
6291
|
id: string;
|
|
5683
6292
|
/**
|
|
5684
6293
|
* Name of the interface
|
|
@@ -5699,6 +6308,11 @@ interface CreateIntegrationResponse {
|
|
|
5699
6308
|
name: string;
|
|
5700
6309
|
};
|
|
5701
6310
|
};
|
|
6311
|
+
channels: {
|
|
6312
|
+
[k: string]: {
|
|
6313
|
+
name: string;
|
|
6314
|
+
};
|
|
6315
|
+
};
|
|
5702
6316
|
};
|
|
5703
6317
|
};
|
|
5704
6318
|
/**
|
|
@@ -6222,18 +6836,26 @@ interface UpdateIntegrationRequestBody {
|
|
|
6222
6836
|
};
|
|
6223
6837
|
interfaces?: {
|
|
6224
6838
|
[k: string]: {
|
|
6839
|
+
/**
|
|
6840
|
+
* ID of the interface
|
|
6841
|
+
*/
|
|
6225
6842
|
id: string;
|
|
6226
|
-
entities
|
|
6843
|
+
entities?: {
|
|
6227
6844
|
[k: string]: {
|
|
6228
6845
|
name: string;
|
|
6229
6846
|
};
|
|
6230
6847
|
};
|
|
6231
|
-
actions
|
|
6848
|
+
actions?: {
|
|
6232
6849
|
[k: string]: {
|
|
6233
6850
|
name: string;
|
|
6234
6851
|
};
|
|
6235
6852
|
};
|
|
6236
|
-
events
|
|
6853
|
+
events?: {
|
|
6854
|
+
[k: string]: {
|
|
6855
|
+
name: string;
|
|
6856
|
+
};
|
|
6857
|
+
};
|
|
6858
|
+
channels?: {
|
|
6237
6859
|
[k: string]: {
|
|
6238
6860
|
name: string;
|
|
6239
6861
|
};
|
|
@@ -6317,6 +6939,9 @@ interface UpdateIntegrationResponse {
|
|
|
6317
6939
|
version: string;
|
|
6318
6940
|
interfaces: {
|
|
6319
6941
|
[k: string]: {
|
|
6942
|
+
/**
|
|
6943
|
+
* ID of the interface
|
|
6944
|
+
*/
|
|
6320
6945
|
id: string;
|
|
6321
6946
|
/**
|
|
6322
6947
|
* Name of the interface
|
|
@@ -6337,6 +6962,11 @@ interface UpdateIntegrationResponse {
|
|
|
6337
6962
|
name: string;
|
|
6338
6963
|
};
|
|
6339
6964
|
};
|
|
6965
|
+
channels: {
|
|
6966
|
+
[k: string]: {
|
|
6967
|
+
name: string;
|
|
6968
|
+
};
|
|
6969
|
+
};
|
|
6340
6970
|
};
|
|
6341
6971
|
};
|
|
6342
6972
|
/**
|
|
@@ -6734,6 +7364,9 @@ interface GetIntegrationResponse {
|
|
|
6734
7364
|
version: string;
|
|
6735
7365
|
interfaces: {
|
|
6736
7366
|
[k: string]: {
|
|
7367
|
+
/**
|
|
7368
|
+
* ID of the interface
|
|
7369
|
+
*/
|
|
6737
7370
|
id: string;
|
|
6738
7371
|
/**
|
|
6739
7372
|
* Name of the interface
|
|
@@ -6754,6 +7387,11 @@ interface GetIntegrationResponse {
|
|
|
6754
7387
|
name: string;
|
|
6755
7388
|
};
|
|
6756
7389
|
};
|
|
7390
|
+
channels: {
|
|
7391
|
+
[k: string]: {
|
|
7392
|
+
name: string;
|
|
7393
|
+
};
|
|
7394
|
+
};
|
|
6757
7395
|
};
|
|
6758
7396
|
};
|
|
6759
7397
|
/**
|
|
@@ -7110,6 +7748,9 @@ interface GetIntegrationByNameResponse {
|
|
|
7110
7748
|
version: string;
|
|
7111
7749
|
interfaces: {
|
|
7112
7750
|
[k: string]: {
|
|
7751
|
+
/**
|
|
7752
|
+
* ID of the interface
|
|
7753
|
+
*/
|
|
7113
7754
|
id: string;
|
|
7114
7755
|
/**
|
|
7115
7756
|
* Name of the interface
|
|
@@ -7130,6 +7771,11 @@ interface GetIntegrationByNameResponse {
|
|
|
7130
7771
|
name: string;
|
|
7131
7772
|
};
|
|
7132
7773
|
};
|
|
7774
|
+
channels: {
|
|
7775
|
+
[k: string]: {
|
|
7776
|
+
name: string;
|
|
7777
|
+
};
|
|
7778
|
+
};
|
|
7133
7779
|
};
|
|
7134
7780
|
};
|
|
7135
7781
|
/**
|
|
@@ -7453,7 +8099,25 @@ interface CreateInterfaceRequestBody {
|
|
|
7453
8099
|
* Version of the [Interface](#schema_interface)
|
|
7454
8100
|
*/
|
|
7455
8101
|
version: string;
|
|
7456
|
-
|
|
8102
|
+
entities?: {
|
|
8103
|
+
/**
|
|
8104
|
+
* Entity definition
|
|
8105
|
+
*/
|
|
8106
|
+
[k: string]: {
|
|
8107
|
+
/**
|
|
8108
|
+
* Title of the entity
|
|
8109
|
+
*/
|
|
8110
|
+
title?: string;
|
|
8111
|
+
/**
|
|
8112
|
+
* Description of the entity
|
|
8113
|
+
*/
|
|
8114
|
+
description?: string;
|
|
8115
|
+
schema: {
|
|
8116
|
+
[k: string]: any;
|
|
8117
|
+
};
|
|
8118
|
+
};
|
|
8119
|
+
};
|
|
8120
|
+
events?: {
|
|
7457
8121
|
/**
|
|
7458
8122
|
* Event Definition
|
|
7459
8123
|
*/
|
|
@@ -7471,7 +8135,7 @@ interface CreateInterfaceRequestBody {
|
|
|
7471
8135
|
};
|
|
7472
8136
|
};
|
|
7473
8137
|
};
|
|
7474
|
-
actions
|
|
8138
|
+
actions?: {
|
|
7475
8139
|
/**
|
|
7476
8140
|
* Action definition
|
|
7477
8141
|
*/
|
|
@@ -7498,21 +8162,25 @@ interface CreateInterfaceRequestBody {
|
|
|
7498
8162
|
};
|
|
7499
8163
|
};
|
|
7500
8164
|
};
|
|
7501
|
-
|
|
7502
|
-
/**
|
|
7503
|
-
* Entity definition
|
|
7504
|
-
*/
|
|
8165
|
+
channels?: {
|
|
7505
8166
|
[k: string]: {
|
|
7506
8167
|
/**
|
|
7507
|
-
* Title of the
|
|
8168
|
+
* Title of the channel
|
|
7508
8169
|
*/
|
|
7509
8170
|
title?: string;
|
|
7510
8171
|
/**
|
|
7511
|
-
* Description of the
|
|
8172
|
+
* Description of the channel
|
|
7512
8173
|
*/
|
|
7513
8174
|
description?: string;
|
|
7514
|
-
|
|
7515
|
-
|
|
8175
|
+
messages: {
|
|
8176
|
+
/**
|
|
8177
|
+
* Message definition
|
|
8178
|
+
*/
|
|
8179
|
+
[k: string]: {
|
|
8180
|
+
schema: {
|
|
8181
|
+
[k: string]: any;
|
|
8182
|
+
};
|
|
8183
|
+
};
|
|
7516
8184
|
};
|
|
7517
8185
|
};
|
|
7518
8186
|
};
|
|
@@ -7547,6 +8215,24 @@ interface CreateInterfaceResponse {
|
|
|
7547
8215
|
* Version of the [Interface](#schema_interface)
|
|
7548
8216
|
*/
|
|
7549
8217
|
version: string;
|
|
8218
|
+
entities: {
|
|
8219
|
+
/**
|
|
8220
|
+
* Entity definition
|
|
8221
|
+
*/
|
|
8222
|
+
[k: string]: {
|
|
8223
|
+
/**
|
|
8224
|
+
* Title of the entity
|
|
8225
|
+
*/
|
|
8226
|
+
title?: string;
|
|
8227
|
+
/**
|
|
8228
|
+
* Description of the entity
|
|
8229
|
+
*/
|
|
8230
|
+
description?: string;
|
|
8231
|
+
schema: {
|
|
8232
|
+
[k: string]: any;
|
|
8233
|
+
};
|
|
8234
|
+
};
|
|
8235
|
+
};
|
|
7550
8236
|
events: {
|
|
7551
8237
|
/**
|
|
7552
8238
|
* Event Definition
|
|
@@ -7592,21 +8278,25 @@ interface CreateInterfaceResponse {
|
|
|
7592
8278
|
};
|
|
7593
8279
|
};
|
|
7594
8280
|
};
|
|
7595
|
-
|
|
7596
|
-
/**
|
|
7597
|
-
* Entity definition
|
|
7598
|
-
*/
|
|
8281
|
+
channels: {
|
|
7599
8282
|
[k: string]: {
|
|
7600
8283
|
/**
|
|
7601
|
-
* Title of the
|
|
8284
|
+
* Title of the channel
|
|
7602
8285
|
*/
|
|
7603
8286
|
title?: string;
|
|
7604
8287
|
/**
|
|
7605
|
-
* Description of the
|
|
8288
|
+
* Description of the channel
|
|
7606
8289
|
*/
|
|
7607
8290
|
description?: string;
|
|
7608
|
-
|
|
7609
|
-
|
|
8291
|
+
messages: {
|
|
8292
|
+
/**
|
|
8293
|
+
* Message definition
|
|
8294
|
+
*/
|
|
8295
|
+
[k: string]: {
|
|
8296
|
+
schema: {
|
|
8297
|
+
[k: string]: any;
|
|
8298
|
+
};
|
|
8299
|
+
};
|
|
7610
8300
|
};
|
|
7611
8301
|
};
|
|
7612
8302
|
};
|
|
@@ -7652,6 +8342,24 @@ interface GetInterfaceResponse {
|
|
|
7652
8342
|
* Version of the [Interface](#schema_interface)
|
|
7653
8343
|
*/
|
|
7654
8344
|
version: string;
|
|
8345
|
+
entities: {
|
|
8346
|
+
/**
|
|
8347
|
+
* Entity definition
|
|
8348
|
+
*/
|
|
8349
|
+
[k: string]: {
|
|
8350
|
+
/**
|
|
8351
|
+
* Title of the entity
|
|
8352
|
+
*/
|
|
8353
|
+
title?: string;
|
|
8354
|
+
/**
|
|
8355
|
+
* Description of the entity
|
|
8356
|
+
*/
|
|
8357
|
+
description?: string;
|
|
8358
|
+
schema: {
|
|
8359
|
+
[k: string]: any;
|
|
8360
|
+
};
|
|
8361
|
+
};
|
|
8362
|
+
};
|
|
7655
8363
|
events: {
|
|
7656
8364
|
/**
|
|
7657
8365
|
* Event Definition
|
|
@@ -7697,21 +8405,25 @@ interface GetInterfaceResponse {
|
|
|
7697
8405
|
};
|
|
7698
8406
|
};
|
|
7699
8407
|
};
|
|
7700
|
-
|
|
7701
|
-
/**
|
|
7702
|
-
* Entity definition
|
|
7703
|
-
*/
|
|
8408
|
+
channels: {
|
|
7704
8409
|
[k: string]: {
|
|
7705
8410
|
/**
|
|
7706
|
-
* Title of the
|
|
8411
|
+
* Title of the channel
|
|
7707
8412
|
*/
|
|
7708
8413
|
title?: string;
|
|
7709
8414
|
/**
|
|
7710
|
-
* Description of the
|
|
8415
|
+
* Description of the channel
|
|
7711
8416
|
*/
|
|
7712
8417
|
description?: string;
|
|
7713
|
-
|
|
7714
|
-
|
|
8418
|
+
messages: {
|
|
8419
|
+
/**
|
|
8420
|
+
* Message definition
|
|
8421
|
+
*/
|
|
8422
|
+
[k: string]: {
|
|
8423
|
+
schema: {
|
|
8424
|
+
[k: string]: any;
|
|
8425
|
+
};
|
|
8426
|
+
};
|
|
7715
8427
|
};
|
|
7716
8428
|
};
|
|
7717
8429
|
};
|
|
@@ -7758,6 +8470,24 @@ interface GetInterfaceByNameResponse {
|
|
|
7758
8470
|
* Version of the [Interface](#schema_interface)
|
|
7759
8471
|
*/
|
|
7760
8472
|
version: string;
|
|
8473
|
+
entities: {
|
|
8474
|
+
/**
|
|
8475
|
+
* Entity definition
|
|
8476
|
+
*/
|
|
8477
|
+
[k: string]: {
|
|
8478
|
+
/**
|
|
8479
|
+
* Title of the entity
|
|
8480
|
+
*/
|
|
8481
|
+
title?: string;
|
|
8482
|
+
/**
|
|
8483
|
+
* Description of the entity
|
|
8484
|
+
*/
|
|
8485
|
+
description?: string;
|
|
8486
|
+
schema: {
|
|
8487
|
+
[k: string]: any;
|
|
8488
|
+
};
|
|
8489
|
+
};
|
|
8490
|
+
};
|
|
7761
8491
|
events: {
|
|
7762
8492
|
/**
|
|
7763
8493
|
* Event Definition
|
|
@@ -7803,21 +8533,25 @@ interface GetInterfaceByNameResponse {
|
|
|
7803
8533
|
};
|
|
7804
8534
|
};
|
|
7805
8535
|
};
|
|
7806
|
-
|
|
7807
|
-
/**
|
|
7808
|
-
* Entity definition
|
|
7809
|
-
*/
|
|
8536
|
+
channels: {
|
|
7810
8537
|
[k: string]: {
|
|
7811
8538
|
/**
|
|
7812
|
-
* Title of the
|
|
8539
|
+
* Title of the channel
|
|
7813
8540
|
*/
|
|
7814
8541
|
title?: string;
|
|
7815
8542
|
/**
|
|
7816
|
-
* Description of the
|
|
8543
|
+
* Description of the channel
|
|
7817
8544
|
*/
|
|
7818
8545
|
description?: string;
|
|
7819
|
-
|
|
7820
|
-
|
|
8546
|
+
messages: {
|
|
8547
|
+
/**
|
|
8548
|
+
* Message definition
|
|
8549
|
+
*/
|
|
8550
|
+
[k: string]: {
|
|
8551
|
+
schema: {
|
|
8552
|
+
[k: string]: any;
|
|
8553
|
+
};
|
|
8554
|
+
};
|
|
7821
8555
|
};
|
|
7822
8556
|
};
|
|
7823
8557
|
};
|
|
@@ -7839,6 +8573,24 @@ interface UpdateInterfaceRequestParams {
|
|
|
7839
8573
|
id: string;
|
|
7840
8574
|
}
|
|
7841
8575
|
interface UpdateInterfaceRequestBody {
|
|
8576
|
+
entities?: {
|
|
8577
|
+
/**
|
|
8578
|
+
* Entity definition
|
|
8579
|
+
*/
|
|
8580
|
+
[k: string]: {
|
|
8581
|
+
/**
|
|
8582
|
+
* Title of the entity
|
|
8583
|
+
*/
|
|
8584
|
+
title?: string;
|
|
8585
|
+
/**
|
|
8586
|
+
* Description of the entity
|
|
8587
|
+
*/
|
|
8588
|
+
description?: string;
|
|
8589
|
+
schema: {
|
|
8590
|
+
[k: string]: any;
|
|
8591
|
+
};
|
|
8592
|
+
} | null;
|
|
8593
|
+
};
|
|
7842
8594
|
events?: {
|
|
7843
8595
|
/**
|
|
7844
8596
|
* Event Definition
|
|
@@ -7884,21 +8636,25 @@ interface UpdateInterfaceRequestBody {
|
|
|
7884
8636
|
};
|
|
7885
8637
|
} | null;
|
|
7886
8638
|
};
|
|
7887
|
-
|
|
7888
|
-
/**
|
|
7889
|
-
* Entity definition
|
|
7890
|
-
*/
|
|
8639
|
+
channels?: {
|
|
7891
8640
|
[k: string]: {
|
|
7892
8641
|
/**
|
|
7893
|
-
* Title of the
|
|
8642
|
+
* Title of the channel
|
|
7894
8643
|
*/
|
|
7895
8644
|
title?: string;
|
|
7896
8645
|
/**
|
|
7897
|
-
* Description of the
|
|
8646
|
+
* Description of the channel
|
|
7898
8647
|
*/
|
|
7899
8648
|
description?: string;
|
|
7900
|
-
|
|
7901
|
-
|
|
8649
|
+
messages?: {
|
|
8650
|
+
/**
|
|
8651
|
+
* Message definition
|
|
8652
|
+
*/
|
|
8653
|
+
[k: string]: {
|
|
8654
|
+
schema: {
|
|
8655
|
+
[k: string]: any;
|
|
8656
|
+
};
|
|
8657
|
+
} | null;
|
|
7902
8658
|
};
|
|
7903
8659
|
} | null;
|
|
7904
8660
|
};
|
|
@@ -7933,6 +8689,24 @@ interface UpdateInterfaceResponse {
|
|
|
7933
8689
|
* Version of the [Interface](#schema_interface)
|
|
7934
8690
|
*/
|
|
7935
8691
|
version: string;
|
|
8692
|
+
entities: {
|
|
8693
|
+
/**
|
|
8694
|
+
* Entity definition
|
|
8695
|
+
*/
|
|
8696
|
+
[k: string]: {
|
|
8697
|
+
/**
|
|
8698
|
+
* Title of the entity
|
|
8699
|
+
*/
|
|
8700
|
+
title?: string;
|
|
8701
|
+
/**
|
|
8702
|
+
* Description of the entity
|
|
8703
|
+
*/
|
|
8704
|
+
description?: string;
|
|
8705
|
+
schema: {
|
|
8706
|
+
[k: string]: any;
|
|
8707
|
+
};
|
|
8708
|
+
};
|
|
8709
|
+
};
|
|
7936
8710
|
events: {
|
|
7937
8711
|
/**
|
|
7938
8712
|
* Event Definition
|
|
@@ -7978,21 +8752,25 @@ interface UpdateInterfaceResponse {
|
|
|
7978
8752
|
};
|
|
7979
8753
|
};
|
|
7980
8754
|
};
|
|
7981
|
-
|
|
7982
|
-
/**
|
|
7983
|
-
* Entity definition
|
|
7984
|
-
*/
|
|
8755
|
+
channels: {
|
|
7985
8756
|
[k: string]: {
|
|
7986
8757
|
/**
|
|
7987
|
-
* Title of the
|
|
8758
|
+
* Title of the channel
|
|
7988
8759
|
*/
|
|
7989
8760
|
title?: string;
|
|
7990
8761
|
/**
|
|
7991
|
-
* Description of the
|
|
8762
|
+
* Description of the channel
|
|
7992
8763
|
*/
|
|
7993
8764
|
description?: string;
|
|
7994
|
-
|
|
7995
|
-
|
|
8765
|
+
messages: {
|
|
8766
|
+
/**
|
|
8767
|
+
* Message definition
|
|
8768
|
+
*/
|
|
8769
|
+
[k: string]: {
|
|
8770
|
+
schema: {
|
|
8771
|
+
[k: string]: any;
|
|
8772
|
+
};
|
|
8773
|
+
};
|
|
7996
8774
|
};
|
|
7997
8775
|
};
|
|
7998
8776
|
};
|
|
@@ -8170,6 +8948,32 @@ interface ListUsageHistoryResponse {
|
|
|
8170
8948
|
}[];
|
|
8171
8949
|
}
|
|
8172
8950
|
|
|
8951
|
+
interface ListUsageActivityRequestHeaders {
|
|
8952
|
+
}
|
|
8953
|
+
interface ListUsageActivityRequestQuery {
|
|
8954
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive";
|
|
8955
|
+
nextToken?: string;
|
|
8956
|
+
}
|
|
8957
|
+
interface ListUsageActivityRequestParams {
|
|
8958
|
+
id: string;
|
|
8959
|
+
}
|
|
8960
|
+
interface ListUsageActivityRequestBody {
|
|
8961
|
+
}
|
|
8962
|
+
type ListUsageActivityInput = ListUsageActivityRequestBody & ListUsageActivityRequestHeaders & ListUsageActivityRequestQuery & ListUsageActivityRequestParams;
|
|
8963
|
+
interface ListUsageActivityResponse {
|
|
8964
|
+
data: {
|
|
8965
|
+
timestamp: string;
|
|
8966
|
+
value: number;
|
|
8967
|
+
period: string;
|
|
8968
|
+
metadata: {
|
|
8969
|
+
[k: string]: any | null;
|
|
8970
|
+
};
|
|
8971
|
+
}[];
|
|
8972
|
+
meta: {
|
|
8973
|
+
nextToken?: string;
|
|
8974
|
+
};
|
|
8975
|
+
}
|
|
8976
|
+
|
|
8173
8977
|
interface ChangeAispendQuotaRequestHeaders {
|
|
8174
8978
|
}
|
|
8175
8979
|
interface ChangeAispendQuotaRequestQuery {
|
|
@@ -8847,6 +9651,10 @@ interface ListTablesResponse {
|
|
|
8847
9651
|
* Width of the column in the UI
|
|
8848
9652
|
*/
|
|
8849
9653
|
width?: number;
|
|
9654
|
+
/**
|
|
9655
|
+
* ID of the schema
|
|
9656
|
+
*/
|
|
9657
|
+
schemaId?: string;
|
|
8850
9658
|
computed?: {
|
|
8851
9659
|
action: "ai" | "code" | "workflow";
|
|
8852
9660
|
dependencies?: string[];
|
|
@@ -8988,6 +9796,10 @@ interface GetTableResponse {
|
|
|
8988
9796
|
* Width of the column in the UI
|
|
8989
9797
|
*/
|
|
8990
9798
|
width?: number;
|
|
9799
|
+
/**
|
|
9800
|
+
* ID of the schema
|
|
9801
|
+
*/
|
|
9802
|
+
schemaId?: string;
|
|
8991
9803
|
computed?: {
|
|
8992
9804
|
action: "ai" | "code" | "workflow";
|
|
8993
9805
|
dependencies?: string[];
|
|
@@ -9165,6 +9977,10 @@ interface GetOrCreateTableResponse {
|
|
|
9165
9977
|
* Width of the column in the UI
|
|
9166
9978
|
*/
|
|
9167
9979
|
width?: number;
|
|
9980
|
+
/**
|
|
9981
|
+
* ID of the schema
|
|
9982
|
+
*/
|
|
9983
|
+
schemaId?: string;
|
|
9168
9984
|
computed?: {
|
|
9169
9985
|
action: "ai" | "code" | "workflow";
|
|
9170
9986
|
dependencies?: string[];
|
|
@@ -9349,6 +10165,10 @@ interface CreateTableResponse {
|
|
|
9349
10165
|
* Width of the column in the UI
|
|
9350
10166
|
*/
|
|
9351
10167
|
width?: number;
|
|
10168
|
+
/**
|
|
10169
|
+
* ID of the schema
|
|
10170
|
+
*/
|
|
10171
|
+
schemaId?: string;
|
|
9352
10172
|
computed?: {
|
|
9353
10173
|
action: "ai" | "code" | "workflow";
|
|
9354
10174
|
dependencies?: string[];
|
|
@@ -9499,6 +10319,10 @@ interface DuplicateTableResponse {
|
|
|
9499
10319
|
* Width of the column in the UI
|
|
9500
10320
|
*/
|
|
9501
10321
|
width?: number;
|
|
10322
|
+
/**
|
|
10323
|
+
* ID of the schema
|
|
10324
|
+
*/
|
|
10325
|
+
schemaId?: string;
|
|
9502
10326
|
computed?: {
|
|
9503
10327
|
action: "ai" | "code" | "workflow";
|
|
9504
10328
|
dependencies?: string[];
|
|
@@ -9668,6 +10492,10 @@ interface UpdateTableResponse {
|
|
|
9668
10492
|
* Width of the column in the UI
|
|
9669
10493
|
*/
|
|
9670
10494
|
width?: number;
|
|
10495
|
+
/**
|
|
10496
|
+
* ID of the schema
|
|
10497
|
+
*/
|
|
10498
|
+
schemaId?: string;
|
|
9671
10499
|
computed?: {
|
|
9672
10500
|
action: "ai" | "code" | "workflow";
|
|
9673
10501
|
dependencies?: string[];
|
|
@@ -9821,6 +10649,10 @@ interface RenameTableColumnResponse {
|
|
|
9821
10649
|
* Width of the column in the UI
|
|
9822
10650
|
*/
|
|
9823
10651
|
width?: number;
|
|
10652
|
+
/**
|
|
10653
|
+
* ID of the schema
|
|
10654
|
+
*/
|
|
10655
|
+
schemaId?: string;
|
|
9824
10656
|
computed?: {
|
|
9825
10657
|
action: "ai" | "code" | "workflow";
|
|
9826
10658
|
dependencies?: string[];
|
|
@@ -10614,6 +11446,9 @@ interface Integration {
|
|
|
10614
11446
|
version: string;
|
|
10615
11447
|
interfaces: {
|
|
10616
11448
|
[k: string]: {
|
|
11449
|
+
/**
|
|
11450
|
+
* ID of the interface
|
|
11451
|
+
*/
|
|
10617
11452
|
id: string;
|
|
10618
11453
|
/**
|
|
10619
11454
|
* Name of the interface
|
|
@@ -10634,6 +11469,11 @@ interface Integration {
|
|
|
10634
11469
|
name: string;
|
|
10635
11470
|
};
|
|
10636
11471
|
};
|
|
11472
|
+
channels: {
|
|
11473
|
+
[k: string]: {
|
|
11474
|
+
name: string;
|
|
11475
|
+
};
|
|
11476
|
+
};
|
|
10637
11477
|
};
|
|
10638
11478
|
};
|
|
10639
11479
|
/**
|
|
@@ -10935,6 +11775,24 @@ interface Interface {
|
|
|
10935
11775
|
* Version of the [Interface](#schema_interface)
|
|
10936
11776
|
*/
|
|
10937
11777
|
version: string;
|
|
11778
|
+
entities: {
|
|
11779
|
+
/**
|
|
11780
|
+
* Entity definition
|
|
11781
|
+
*/
|
|
11782
|
+
[k: string]: {
|
|
11783
|
+
/**
|
|
11784
|
+
* Title of the entity
|
|
11785
|
+
*/
|
|
11786
|
+
title?: string;
|
|
11787
|
+
/**
|
|
11788
|
+
* Description of the entity
|
|
11789
|
+
*/
|
|
11790
|
+
description?: string;
|
|
11791
|
+
schema: {
|
|
11792
|
+
[k: string]: any;
|
|
11793
|
+
};
|
|
11794
|
+
};
|
|
11795
|
+
};
|
|
10938
11796
|
events: {
|
|
10939
11797
|
/**
|
|
10940
11798
|
* Event Definition
|
|
@@ -10980,21 +11838,25 @@ interface Interface {
|
|
|
10980
11838
|
};
|
|
10981
11839
|
};
|
|
10982
11840
|
};
|
|
10983
|
-
|
|
10984
|
-
/**
|
|
10985
|
-
* Entity definition
|
|
10986
|
-
*/
|
|
11841
|
+
channels: {
|
|
10987
11842
|
[k: string]: {
|
|
10988
11843
|
/**
|
|
10989
|
-
* Title of the
|
|
11844
|
+
* Title of the channel
|
|
10990
11845
|
*/
|
|
10991
11846
|
title?: string;
|
|
10992
11847
|
/**
|
|
10993
|
-
* Description of the
|
|
11848
|
+
* Description of the channel
|
|
10994
11849
|
*/
|
|
10995
11850
|
description?: string;
|
|
10996
|
-
|
|
10997
|
-
|
|
11851
|
+
messages: {
|
|
11852
|
+
/**
|
|
11853
|
+
* Message definition
|
|
11854
|
+
*/
|
|
11855
|
+
[k: string]: {
|
|
11856
|
+
schema: {
|
|
11857
|
+
[k: string]: any;
|
|
11858
|
+
};
|
|
11859
|
+
};
|
|
10998
11860
|
};
|
|
10999
11861
|
};
|
|
11000
11862
|
};
|
|
@@ -11126,7 +11988,7 @@ interface User {
|
|
|
11126
11988
|
pictureUrl?: string;
|
|
11127
11989
|
}
|
|
11128
11990
|
/**
|
|
11129
|
-
* The
|
|
11991
|
+
* The [Conversation](#schema_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.
|
|
11130
11992
|
*/
|
|
11131
11993
|
interface Conversation {
|
|
11132
11994
|
/**
|
|
@@ -11137,6 +11999,10 @@ interface Conversation {
|
|
|
11137
11999
|
* Id of the current [Task](#schema_task)
|
|
11138
12000
|
*/
|
|
11139
12001
|
currentTaskId?: string;
|
|
12002
|
+
/**
|
|
12003
|
+
* Id of the current [Workflow](#schema_workflow)
|
|
12004
|
+
*/
|
|
12005
|
+
currentWorkflowId?: string;
|
|
11140
12006
|
/**
|
|
11141
12007
|
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
11142
12008
|
*/
|
|
@@ -11194,7 +12060,7 @@ interface Event {
|
|
|
11194
12060
|
* ID of the [Message](#schema_message) to link the event to.
|
|
11195
12061
|
*/
|
|
11196
12062
|
messageId?: string;
|
|
11197
|
-
status: "pending" | "processed" | "ignored" | "failed";
|
|
12063
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
11198
12064
|
/**
|
|
11199
12065
|
* Reason why the event failed to be processed
|
|
11200
12066
|
*/
|
|
@@ -11274,9 +12140,9 @@ interface State {
|
|
|
11274
12140
|
*/
|
|
11275
12141
|
name: string;
|
|
11276
12142
|
/**
|
|
11277
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
12143
|
+
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to
|
|
11278
12144
|
*/
|
|
11279
|
-
type: "conversation" | "user" | "bot" | "task" | "integration";
|
|
12145
|
+
type: "conversation" | "user" | "bot" | "task" | "integration" | "workflow";
|
|
11280
12146
|
/**
|
|
11281
12147
|
* Payload is the content of the state defined by your bot.
|
|
11282
12148
|
*/
|
|
@@ -11355,6 +12221,10 @@ interface Table {
|
|
|
11355
12221
|
* Width of the column in the UI
|
|
11356
12222
|
*/
|
|
11357
12223
|
width?: number;
|
|
12224
|
+
/**
|
|
12225
|
+
* ID of the schema
|
|
12226
|
+
*/
|
|
12227
|
+
schemaId?: string;
|
|
11358
12228
|
computed?: {
|
|
11359
12229
|
action: "ai" | "code" | "workflow";
|
|
11360
12230
|
dependencies?: string[];
|
|
@@ -11606,6 +12476,12 @@ declare class Client$1 {
|
|
|
11606
12476
|
readonly updateTask: (input: UpdateTaskInput) => Promise<UpdateTaskResponse>;
|
|
11607
12477
|
readonly deleteTask: (input: DeleteTaskInput) => Promise<DeleteTaskResponse>;
|
|
11608
12478
|
readonly listTasks: (input: ListTasksInput) => Promise<ListTasksResponse>;
|
|
12479
|
+
readonly createWorkflow: (input: CreateWorkflowInput) => Promise<CreateWorkflowResponse>;
|
|
12480
|
+
readonly getWorkflow: (input: GetWorkflowInput) => Promise<GetWorkflowResponse>;
|
|
12481
|
+
readonly updateWorkflow: (input: UpdateWorkflowInput) => Promise<UpdateWorkflowResponse>;
|
|
12482
|
+
readonly deleteWorkflow: (input: DeleteWorkflowInput) => Promise<DeleteWorkflowResponse>;
|
|
12483
|
+
readonly listWorkflows: (input: ListWorkflowsInput) => Promise<ListWorkflowsResponse>;
|
|
12484
|
+
readonly getOrCreateWorkflow: (input: GetOrCreateWorkflowInput) => Promise<GetOrCreateWorkflowResponse>;
|
|
11609
12485
|
readonly trackAnalytics: (input: TrackAnalyticsInput) => Promise<TrackAnalyticsResponse>;
|
|
11610
12486
|
readonly runVrl: (input: RunVrlInput) => Promise<RunVrlResponse>;
|
|
11611
12487
|
readonly getAccount: (input: GetAccountInput) => Promise<GetAccountResponse>;
|
|
@@ -11678,6 +12554,7 @@ declare class Client$1 {
|
|
|
11678
12554
|
readonly getUsage: (input: GetUsageInput) => Promise<GetUsageResponse>;
|
|
11679
12555
|
readonly getMultipleUsages: (input: GetMultipleUsagesInput) => Promise<GetMultipleUsagesResponse>;
|
|
11680
12556
|
readonly listUsageHistory: (input: ListUsageHistoryInput) => Promise<ListUsageHistoryResponse>;
|
|
12557
|
+
readonly listUsageActivity: (input: ListUsageActivityInput) => Promise<ListUsageActivityResponse>;
|
|
11681
12558
|
readonly changeAISpendQuota: (input: ChangeAispendQuotaInput) => Promise<ChangeAispendQuotaResponse>;
|
|
11682
12559
|
readonly listActivities: (input: ListActivitiesInput) => Promise<ListActivitiesResponse>;
|
|
11683
12560
|
readonly introspect: (input: IntrospectInput) => Promise<IntrospectResponse>;
|
|
@@ -12035,6 +12912,7 @@ declare class Lister {
|
|
|
12035
12912
|
readonly conversations: (props: ListInputs['listConversations']) => AsyncCollection<{
|
|
12036
12913
|
id: string;
|
|
12037
12914
|
currentTaskId?: string | undefined;
|
|
12915
|
+
currentWorkflowId?: string | undefined;
|
|
12038
12916
|
createdAt: string;
|
|
12039
12917
|
updatedAt: string;
|
|
12040
12918
|
channel: string;
|
|
@@ -12063,7 +12941,7 @@ declare class Lister {
|
|
|
12063
12941
|
conversationId?: string | undefined;
|
|
12064
12942
|
userId?: string | undefined;
|
|
12065
12943
|
messageId?: string | undefined;
|
|
12066
|
-
status: "pending" | "processed" | "ignored" | "failed";
|
|
12944
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
12067
12945
|
failureReason: string | null;
|
|
12068
12946
|
}>;
|
|
12069
12947
|
readonly messages: (props: ListInputs['listMessages']) => AsyncCollection<{
|