@botpress/api 0.43.1 → 0.44.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.
- package/dist/index.js +641 -9
- package/dist/src/gen/state.d.ts +534 -1
- package/dist/src/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +642 -10
package/src/gen/state.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/* prettier-ignore */
|
|
4
4
|
import * as opapi from '@bpinternal/opapi'
|
|
5
|
-
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'bot' | 'integration' | 'interface' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>
|
|
5
|
+
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'bot' | 'integration' | 'interface' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>
|
|
6
6
|
export const state = {
|
|
7
7
|
"operations": {
|
|
8
8
|
"createConversation": {
|
|
@@ -614,6 +614,13 @@ export const state = {
|
|
|
614
614
|
"status": {
|
|
615
615
|
"in": "query",
|
|
616
616
|
"type": "string",
|
|
617
|
+
"enum": [
|
|
618
|
+
"pending",
|
|
619
|
+
"ignored",
|
|
620
|
+
"processed",
|
|
621
|
+
"failed",
|
|
622
|
+
"scheduled"
|
|
623
|
+
],
|
|
617
624
|
"description": "Filter by status. Allowed values: pending, ignored, processed, failed."
|
|
618
625
|
}
|
|
619
626
|
},
|
|
@@ -1296,7 +1303,8 @@ export const state = {
|
|
|
1296
1303
|
"user",
|
|
1297
1304
|
"bot",
|
|
1298
1305
|
"integration",
|
|
1299
|
-
"task"
|
|
1306
|
+
"task",
|
|
1307
|
+
"workflow"
|
|
1300
1308
|
]
|
|
1301
1309
|
},
|
|
1302
1310
|
"id": {
|
|
@@ -1363,7 +1371,8 @@ export const state = {
|
|
|
1363
1371
|
"user",
|
|
1364
1372
|
"bot",
|
|
1365
1373
|
"integration",
|
|
1366
|
-
"task"
|
|
1374
|
+
"task",
|
|
1375
|
+
"workflow"
|
|
1367
1376
|
]
|
|
1368
1377
|
},
|
|
1369
1378
|
"id": {
|
|
@@ -1423,7 +1432,8 @@ export const state = {
|
|
|
1423
1432
|
"user",
|
|
1424
1433
|
"bot",
|
|
1425
1434
|
"integration",
|
|
1426
|
-
"task"
|
|
1435
|
+
"task",
|
|
1436
|
+
"workflow"
|
|
1427
1437
|
]
|
|
1428
1438
|
},
|
|
1429
1439
|
"id": {
|
|
@@ -1496,7 +1506,8 @@ export const state = {
|
|
|
1496
1506
|
"user",
|
|
1497
1507
|
"bot",
|
|
1498
1508
|
"integration",
|
|
1499
|
-
"task"
|
|
1509
|
+
"task",
|
|
1510
|
+
"workflow"
|
|
1500
1511
|
]
|
|
1501
1512
|
},
|
|
1502
1513
|
"id": {
|
|
@@ -1581,7 +1592,8 @@ export const state = {
|
|
|
1581
1592
|
"user",
|
|
1582
1593
|
"bot",
|
|
1583
1594
|
"integration",
|
|
1584
|
-
"task"
|
|
1595
|
+
"task",
|
|
1596
|
+
"workflow"
|
|
1585
1597
|
]
|
|
1586
1598
|
},
|
|
1587
1599
|
"id": {
|
|
@@ -2033,6 +2045,393 @@ export const state = {
|
|
|
2033
2045
|
}
|
|
2034
2046
|
}
|
|
2035
2047
|
},
|
|
2048
|
+
"createWorkflow": {
|
|
2049
|
+
"name": "createWorkflow",
|
|
2050
|
+
"description": "Creates a new [Workflow](#schema_workflow).",
|
|
2051
|
+
"method": "post",
|
|
2052
|
+
"path": "/v1/chat/workflows",
|
|
2053
|
+
"requestBody": {
|
|
2054
|
+
"description": "Workflow data",
|
|
2055
|
+
"schema": {
|
|
2056
|
+
"type": "object",
|
|
2057
|
+
"properties": {
|
|
2058
|
+
"name": {
|
|
2059
|
+
"type": "string",
|
|
2060
|
+
"description": "Name of the workflow"
|
|
2061
|
+
},
|
|
2062
|
+
"input": {
|
|
2063
|
+
"type": "object",
|
|
2064
|
+
"additionalProperties": true,
|
|
2065
|
+
"description": "Content related to the workflow"
|
|
2066
|
+
},
|
|
2067
|
+
"parentWorkflowId": {
|
|
2068
|
+
"type": "string",
|
|
2069
|
+
"description": "Parent workflow id is the parent workflow that created this workflow"
|
|
2070
|
+
},
|
|
2071
|
+
"conversationId": {
|
|
2072
|
+
"type": "string",
|
|
2073
|
+
"description": "Conversation id related to this workflow"
|
|
2074
|
+
},
|
|
2075
|
+
"userId": {
|
|
2076
|
+
"type": "string",
|
|
2077
|
+
"description": "Specific user related to this workflow"
|
|
2078
|
+
},
|
|
2079
|
+
"timeoutAt": {
|
|
2080
|
+
"type": "string",
|
|
2081
|
+
"format": "date-time",
|
|
2082
|
+
"description": "The timeout date where the workflow should be failed in the ISO 8601 format"
|
|
2083
|
+
},
|
|
2084
|
+
"tags": {
|
|
2085
|
+
"type": "object",
|
|
2086
|
+
"additionalProperties": {
|
|
2087
|
+
"type": "string",
|
|
2088
|
+
"maxLength": 500
|
|
2089
|
+
},
|
|
2090
|
+
"description": "Tags for the [Workflow](#schema_workflow)"
|
|
2091
|
+
},
|
|
2092
|
+
"status": {
|
|
2093
|
+
"type": "string",
|
|
2094
|
+
"enum": [
|
|
2095
|
+
"pending",
|
|
2096
|
+
"in_progress"
|
|
2097
|
+
]
|
|
2098
|
+
},
|
|
2099
|
+
"eventId": {
|
|
2100
|
+
"type": "string",
|
|
2101
|
+
"description": "Event id must be specified if the workflow is created with the status in_progress"
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
"required": [
|
|
2105
|
+
"name",
|
|
2106
|
+
"status"
|
|
2107
|
+
],
|
|
2108
|
+
"title": "createWorkflowBody",
|
|
2109
|
+
"additionalProperties": false
|
|
2110
|
+
}
|
|
2111
|
+
},
|
|
2112
|
+
"section": "workflow",
|
|
2113
|
+
"response": {
|
|
2114
|
+
"description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
|
|
2115
|
+
"status": 201,
|
|
2116
|
+
"schema": {
|
|
2117
|
+
"type": "object",
|
|
2118
|
+
"properties": {
|
|
2119
|
+
"workflow": {
|
|
2120
|
+
"$ref": "#/components/schemas/Workflow"
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
"required": [
|
|
2124
|
+
"workflow"
|
|
2125
|
+
],
|
|
2126
|
+
"title": "createWorkflowResponse",
|
|
2127
|
+
"additionalProperties": false
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
"parameters": {}
|
|
2131
|
+
},
|
|
2132
|
+
"getWorkflow": {
|
|
2133
|
+
"name": "getWorkflow",
|
|
2134
|
+
"description": "Retrieves the [Workflow](#schema_workflow) object for a valid identifier.",
|
|
2135
|
+
"method": "get",
|
|
2136
|
+
"path": "/v1/chat/workflows/{id}",
|
|
2137
|
+
"parameters": {
|
|
2138
|
+
"id": {
|
|
2139
|
+
"in": "path",
|
|
2140
|
+
"type": "string",
|
|
2141
|
+
"description": "Workflow id"
|
|
2142
|
+
}
|
|
2143
|
+
},
|
|
2144
|
+
"section": "workflow",
|
|
2145
|
+
"response": {
|
|
2146
|
+
"description": "Returns a [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
|
|
2147
|
+
"schema": {
|
|
2148
|
+
"type": "object",
|
|
2149
|
+
"properties": {
|
|
2150
|
+
"workflow": {
|
|
2151
|
+
"$ref": "#/components/schemas/Workflow"
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
"required": [
|
|
2155
|
+
"workflow"
|
|
2156
|
+
],
|
|
2157
|
+
"title": "getWorkflowResponse",
|
|
2158
|
+
"additionalProperties": false
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
},
|
|
2162
|
+
"updateWorkflow": {
|
|
2163
|
+
"name": "updateWorkflow",
|
|
2164
|
+
"description": "Update a [Workflow](#schema_workflow) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
|
|
2165
|
+
"method": "put",
|
|
2166
|
+
"path": "/v1/chat/workflows/{id}",
|
|
2167
|
+
"parameters": {
|
|
2168
|
+
"id": {
|
|
2169
|
+
"in": "path",
|
|
2170
|
+
"type": "string",
|
|
2171
|
+
"description": "Workflow id"
|
|
2172
|
+
}
|
|
2173
|
+
},
|
|
2174
|
+
"requestBody": {
|
|
2175
|
+
"description": "Workflow data",
|
|
2176
|
+
"schema": {
|
|
2177
|
+
"type": "object",
|
|
2178
|
+
"properties": {
|
|
2179
|
+
"output": {
|
|
2180
|
+
"type": "object",
|
|
2181
|
+
"additionalProperties": true,
|
|
2182
|
+
"description": "Content related to the workflow"
|
|
2183
|
+
},
|
|
2184
|
+
"timeoutAt": {
|
|
2185
|
+
"type": "string",
|
|
2186
|
+
"format": "date-time",
|
|
2187
|
+
"description": "The timeout date where the workflow should be failed in the ISO 8601 format"
|
|
2188
|
+
},
|
|
2189
|
+
"status": {
|
|
2190
|
+
"type": "string",
|
|
2191
|
+
"enum": [
|
|
2192
|
+
"completed",
|
|
2193
|
+
"cancelled",
|
|
2194
|
+
"listening",
|
|
2195
|
+
"paused",
|
|
2196
|
+
"failed"
|
|
2197
|
+
],
|
|
2198
|
+
"description": "Status of the workflow"
|
|
2199
|
+
},
|
|
2200
|
+
"failureReason": {
|
|
2201
|
+
"type": "string",
|
|
2202
|
+
"description": "Reason why the workflow failed"
|
|
2203
|
+
},
|
|
2204
|
+
"tags": {
|
|
2205
|
+
"type": "object",
|
|
2206
|
+
"additionalProperties": {
|
|
2207
|
+
"type": "string",
|
|
2208
|
+
"maxLength": 500
|
|
2209
|
+
},
|
|
2210
|
+
"description": "Tags for the [Workflow](#schema_workflow)"
|
|
2211
|
+
},
|
|
2212
|
+
"userId": {
|
|
2213
|
+
"type": "string",
|
|
2214
|
+
"description": "Specific user related to this workflow"
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
"title": "updateWorkflowBody",
|
|
2218
|
+
"additionalProperties": false
|
|
2219
|
+
}
|
|
2220
|
+
},
|
|
2221
|
+
"section": "workflow",
|
|
2222
|
+
"response": {
|
|
2223
|
+
"description": "Returns an updated [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
|
|
2224
|
+
"schema": {
|
|
2225
|
+
"type": "object",
|
|
2226
|
+
"properties": {
|
|
2227
|
+
"workflow": {
|
|
2228
|
+
"$ref": "#/components/schemas/Workflow"
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
"required": [
|
|
2232
|
+
"workflow"
|
|
2233
|
+
],
|
|
2234
|
+
"title": "updateWorkflowResponse",
|
|
2235
|
+
"additionalProperties": false
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
},
|
|
2239
|
+
"deleteWorkflow": {
|
|
2240
|
+
"name": "deleteWorkflow",
|
|
2241
|
+
"description": "Permanently deletes a [Workflow](#schema_workflow). It cannot be undone.",
|
|
2242
|
+
"method": "delete",
|
|
2243
|
+
"path": "/v1/chat/workflows/{id}",
|
|
2244
|
+
"parameters": {
|
|
2245
|
+
"id": {
|
|
2246
|
+
"in": "path",
|
|
2247
|
+
"type": "string",
|
|
2248
|
+
"description": "Workflow id"
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
"section": "workflow",
|
|
2252
|
+
"response": {
|
|
2253
|
+
"description": "Returns the [Workflow](#schema_workflow) object that was deleted",
|
|
2254
|
+
"schema": {
|
|
2255
|
+
"type": "object",
|
|
2256
|
+
"title": "deleteWorkflowResponse",
|
|
2257
|
+
"additionalProperties": false
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
},
|
|
2261
|
+
"listWorkflows": {
|
|
2262
|
+
"name": "listWorkflows",
|
|
2263
|
+
"description": "Retrieves a list of [Workflow](#schema_workflow) you've previously created. The workflows are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](/docs/developers/concepts/tags).",
|
|
2264
|
+
"method": "get",
|
|
2265
|
+
"path": "/v1/chat/workflows",
|
|
2266
|
+
"parameters": {
|
|
2267
|
+
"nextToken": {
|
|
2268
|
+
"in": "query",
|
|
2269
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
2270
|
+
"type": "string"
|
|
2271
|
+
},
|
|
2272
|
+
"tags": {
|
|
2273
|
+
"in": "query",
|
|
2274
|
+
"type": "object",
|
|
2275
|
+
"schema": {
|
|
2276
|
+
"type": "object",
|
|
2277
|
+
"additionalProperties": {
|
|
2278
|
+
"type": "string"
|
|
2279
|
+
}
|
|
2280
|
+
},
|
|
2281
|
+
"description": "Filter by tags"
|
|
2282
|
+
},
|
|
2283
|
+
"conversationId": {
|
|
2284
|
+
"in": "query",
|
|
2285
|
+
"type": "string",
|
|
2286
|
+
"description": "Conversation id"
|
|
2287
|
+
},
|
|
2288
|
+
"userId": {
|
|
2289
|
+
"in": "query",
|
|
2290
|
+
"type": "string",
|
|
2291
|
+
"description": "User id"
|
|
2292
|
+
},
|
|
2293
|
+
"parentWorkflowId": {
|
|
2294
|
+
"in": "query",
|
|
2295
|
+
"type": "string",
|
|
2296
|
+
"description": "Parent workflow id"
|
|
2297
|
+
},
|
|
2298
|
+
"statuses": {
|
|
2299
|
+
"in": "query",
|
|
2300
|
+
"type": "string[]",
|
|
2301
|
+
"description": "Status",
|
|
2302
|
+
"enum": [
|
|
2303
|
+
"pending",
|
|
2304
|
+
"in_progress",
|
|
2305
|
+
"failed",
|
|
2306
|
+
"completed",
|
|
2307
|
+
"listening",
|
|
2308
|
+
"paused",
|
|
2309
|
+
"timedout",
|
|
2310
|
+
"cancelled"
|
|
2311
|
+
]
|
|
2312
|
+
},
|
|
2313
|
+
"name": {
|
|
2314
|
+
"in": "query",
|
|
2315
|
+
"description": "Workflow name",
|
|
2316
|
+
"type": "string"
|
|
2317
|
+
}
|
|
2318
|
+
},
|
|
2319
|
+
"section": "workflow",
|
|
2320
|
+
"response": {
|
|
2321
|
+
"description": "Returns a list of [Workflow](#schema_workflow) objects",
|
|
2322
|
+
"schema": {
|
|
2323
|
+
"type": "object",
|
|
2324
|
+
"properties": {
|
|
2325
|
+
"workflows": {
|
|
2326
|
+
"type": "array",
|
|
2327
|
+
"items": {
|
|
2328
|
+
"$ref": "#/components/schemas/Workflow"
|
|
2329
|
+
}
|
|
2330
|
+
},
|
|
2331
|
+
"meta": {
|
|
2332
|
+
"type": "object",
|
|
2333
|
+
"properties": {
|
|
2334
|
+
"nextToken": {
|
|
2335
|
+
"type": "string",
|
|
2336
|
+
"description": "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."
|
|
2337
|
+
}
|
|
2338
|
+
},
|
|
2339
|
+
"additionalProperties": false
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
"required": [
|
|
2343
|
+
"workflows",
|
|
2344
|
+
"meta"
|
|
2345
|
+
],
|
|
2346
|
+
"title": "listWorkflowsResponse",
|
|
2347
|
+
"additionalProperties": false
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
"getOrCreateWorkflow": {
|
|
2352
|
+
"name": "getOrCreateWorkflow",
|
|
2353
|
+
"description": "Get a workflow by tags or creates a new [Workflow](#schema_workflow) if it doesn't exists.",
|
|
2354
|
+
"method": "post",
|
|
2355
|
+
"path": "/v1/chat/workflows/get-or-create",
|
|
2356
|
+
"requestBody": {
|
|
2357
|
+
"description": "Workflow data",
|
|
2358
|
+
"schema": {
|
|
2359
|
+
"type": "object",
|
|
2360
|
+
"properties": {
|
|
2361
|
+
"name": {
|
|
2362
|
+
"type": "string",
|
|
2363
|
+
"description": "Name of the workflow"
|
|
2364
|
+
},
|
|
2365
|
+
"input": {
|
|
2366
|
+
"type": "object",
|
|
2367
|
+
"additionalProperties": true,
|
|
2368
|
+
"description": "Content related to the workflow"
|
|
2369
|
+
},
|
|
2370
|
+
"parentWorkflowId": {
|
|
2371
|
+
"type": "string",
|
|
2372
|
+
"description": "Parent workflow id is the parent workflow that created this workflow"
|
|
2373
|
+
},
|
|
2374
|
+
"conversationId": {
|
|
2375
|
+
"type": "string",
|
|
2376
|
+
"description": "Conversation id related to this workflow"
|
|
2377
|
+
},
|
|
2378
|
+
"userId": {
|
|
2379
|
+
"type": "string",
|
|
2380
|
+
"description": "Specific user related to this workflow"
|
|
2381
|
+
},
|
|
2382
|
+
"timeoutAt": {
|
|
2383
|
+
"type": "string",
|
|
2384
|
+
"format": "date-time",
|
|
2385
|
+
"description": "The timeout date where the workflow should be failed in the ISO 8601 format"
|
|
2386
|
+
},
|
|
2387
|
+
"tags": {
|
|
2388
|
+
"type": "object",
|
|
2389
|
+
"additionalProperties": {
|
|
2390
|
+
"type": "string",
|
|
2391
|
+
"maxLength": 500
|
|
2392
|
+
},
|
|
2393
|
+
"description": "Tags for the [Workflow](#schema_workflow)"
|
|
2394
|
+
},
|
|
2395
|
+
"status": {
|
|
2396
|
+
"type": "string",
|
|
2397
|
+
"enum": [
|
|
2398
|
+
"pending",
|
|
2399
|
+
"in_progress"
|
|
2400
|
+
]
|
|
2401
|
+
},
|
|
2402
|
+
"eventId": {
|
|
2403
|
+
"type": "string",
|
|
2404
|
+
"description": "Event id must be specified if the workflow is created with the status in_progress"
|
|
2405
|
+
}
|
|
2406
|
+
},
|
|
2407
|
+
"required": [
|
|
2408
|
+
"name",
|
|
2409
|
+
"status"
|
|
2410
|
+
],
|
|
2411
|
+
"title": "getOrCreateWorkflowBody",
|
|
2412
|
+
"additionalProperties": false
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
"section": "workflow",
|
|
2416
|
+
"response": {
|
|
2417
|
+
"description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
|
|
2418
|
+
"status": 200,
|
|
2419
|
+
"schema": {
|
|
2420
|
+
"type": "object",
|
|
2421
|
+
"properties": {
|
|
2422
|
+
"workflow": {
|
|
2423
|
+
"$ref": "#/components/schemas/Workflow"
|
|
2424
|
+
}
|
|
2425
|
+
},
|
|
2426
|
+
"required": [
|
|
2427
|
+
"workflow"
|
|
2428
|
+
],
|
|
2429
|
+
"title": "getOrCreateWorkflowResponse",
|
|
2430
|
+
"additionalProperties": false
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2433
|
+
"parameters": {}
|
|
2434
|
+
},
|
|
2036
2435
|
"trackAnalytics": {
|
|
2037
2436
|
"name": "trackAnalytics",
|
|
2038
2437
|
"description": "Add an event to the analytics",
|
|
@@ -9661,6 +10060,97 @@ export const state = {
|
|
|
9661
10060
|
}
|
|
9662
10061
|
}
|
|
9663
10062
|
},
|
|
10063
|
+
"listUsageActivity": {
|
|
10064
|
+
"name": "listUsageActivity",
|
|
10065
|
+
"path": "/v1/admin/usages/{id}/activity",
|
|
10066
|
+
"method": "get",
|
|
10067
|
+
"description": "List the usage activity for a given usage type and ID. The most recent activity is listed first.",
|
|
10068
|
+
"parameters": {
|
|
10069
|
+
"type": {
|
|
10070
|
+
"in": "query",
|
|
10071
|
+
"description": "Usage type",
|
|
10072
|
+
"type": "string",
|
|
10073
|
+
"enum": [
|
|
10074
|
+
"invocation_timeout",
|
|
10075
|
+
"invocation_calls",
|
|
10076
|
+
"storage_count",
|
|
10077
|
+
"bot_count",
|
|
10078
|
+
"knowledgebase_vector_storage",
|
|
10079
|
+
"workspace_ratelimit",
|
|
10080
|
+
"table_row_count",
|
|
10081
|
+
"workspace_member_count",
|
|
10082
|
+
"integrations_owned_count",
|
|
10083
|
+
"ai_spend",
|
|
10084
|
+
"openai_spend",
|
|
10085
|
+
"bing_search_spend",
|
|
10086
|
+
"always_alive"
|
|
10087
|
+
],
|
|
10088
|
+
"required": true
|
|
10089
|
+
},
|
|
10090
|
+
"id": {
|
|
10091
|
+
"type": "string",
|
|
10092
|
+
"description": "ID of a bot or a workspace, depending on the \"type\" parameter",
|
|
10093
|
+
"in": "path"
|
|
10094
|
+
},
|
|
10095
|
+
"nextToken": {
|
|
10096
|
+
"in": "query",
|
|
10097
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
10098
|
+
"type": "string"
|
|
10099
|
+
}
|
|
10100
|
+
},
|
|
10101
|
+
"response": {
|
|
10102
|
+
"description": "Success",
|
|
10103
|
+
"schema": {
|
|
10104
|
+
"type": "object",
|
|
10105
|
+
"properties": {
|
|
10106
|
+
"data": {
|
|
10107
|
+
"type": "array",
|
|
10108
|
+
"items": {
|
|
10109
|
+
"type": "object",
|
|
10110
|
+
"properties": {
|
|
10111
|
+
"timestamp": {
|
|
10112
|
+
"type": "string"
|
|
10113
|
+
},
|
|
10114
|
+
"value": {
|
|
10115
|
+
"type": "number"
|
|
10116
|
+
},
|
|
10117
|
+
"period": {
|
|
10118
|
+
"type": "string"
|
|
10119
|
+
},
|
|
10120
|
+
"metadata": {
|
|
10121
|
+
"type": "object",
|
|
10122
|
+
"additionalProperties": {
|
|
10123
|
+
"nullable": true
|
|
10124
|
+
}
|
|
10125
|
+
}
|
|
10126
|
+
},
|
|
10127
|
+
"required": [
|
|
10128
|
+
"timestamp",
|
|
10129
|
+
"value",
|
|
10130
|
+
"period",
|
|
10131
|
+
"metadata"
|
|
10132
|
+
]
|
|
10133
|
+
}
|
|
10134
|
+
},
|
|
10135
|
+
"meta": {
|
|
10136
|
+
"type": "object",
|
|
10137
|
+
"properties": {
|
|
10138
|
+
"nextToken": {
|
|
10139
|
+
"type": "string"
|
|
10140
|
+
}
|
|
10141
|
+
},
|
|
10142
|
+
"additionalProperties": false
|
|
10143
|
+
}
|
|
10144
|
+
},
|
|
10145
|
+
"required": [
|
|
10146
|
+
"data",
|
|
10147
|
+
"meta"
|
|
10148
|
+
],
|
|
10149
|
+
"title": "listUsageActivityResponse",
|
|
10150
|
+
"additionalProperties": false
|
|
10151
|
+
}
|
|
10152
|
+
}
|
|
10153
|
+
},
|
|
9664
10154
|
"changeAISpendQuota": {
|
|
9665
10155
|
"name": "changeAISpendQuota",
|
|
9666
10156
|
"path": "/v1/admin/quotas/ai-spend",
|
|
@@ -11601,7 +12091,7 @@ export const state = {
|
|
|
11601
12091
|
"title": "Botpress API",
|
|
11602
12092
|
"description": "API for Botpress Cloud",
|
|
11603
12093
|
"server": "https://api.botpress.cloud",
|
|
11604
|
-
"version": "0.
|
|
12094
|
+
"version": "0.44.0",
|
|
11605
12095
|
"prefix": "v1"
|
|
11606
12096
|
},
|
|
11607
12097
|
"errors": [
|
|
@@ -11748,6 +12238,9 @@ export const state = {
|
|
|
11748
12238
|
"configureIntegrationBody": true,
|
|
11749
12239
|
"createTaskBody": true,
|
|
11750
12240
|
"updateTaskBody": true,
|
|
12241
|
+
"createWorkflowBody": true,
|
|
12242
|
+
"updateWorkflowBody": true,
|
|
12243
|
+
"getOrCreateWorkflowBody": true,
|
|
11751
12244
|
"trackAnalyticsBody": true,
|
|
11752
12245
|
"runVrlBody": true,
|
|
11753
12246
|
"updateAccountBody": true,
|
|
@@ -11824,6 +12317,12 @@ export const state = {
|
|
|
11824
12317
|
"updateTaskResponse": true,
|
|
11825
12318
|
"deleteTaskResponse": true,
|
|
11826
12319
|
"listTasksResponse": true,
|
|
12320
|
+
"createWorkflowResponse": true,
|
|
12321
|
+
"getWorkflowResponse": true,
|
|
12322
|
+
"updateWorkflowResponse": true,
|
|
12323
|
+
"deleteWorkflowResponse": true,
|
|
12324
|
+
"listWorkflowsResponse": true,
|
|
12325
|
+
"getOrCreateWorkflowResponse": true,
|
|
11827
12326
|
"trackAnalyticsResponse": true,
|
|
11828
12327
|
"runVrlResponse": true,
|
|
11829
12328
|
"getAccountResponse": true,
|
|
@@ -11896,6 +12395,7 @@ export const state = {
|
|
|
11896
12395
|
"getUsageResponse": true,
|
|
11897
12396
|
"getMultipleUsagesResponse": true,
|
|
11898
12397
|
"listUsageHistoryResponse": true,
|
|
12398
|
+
"listUsageActivityResponse": true,
|
|
11899
12399
|
"changeAISpendQuotaResponse": true,
|
|
11900
12400
|
"listActivitiesResponse": true,
|
|
11901
12401
|
"introspectResponse": true,
|
|
@@ -11939,6 +12439,7 @@ export const state = {
|
|
|
11939
12439
|
"Message": true,
|
|
11940
12440
|
"State": true,
|
|
11941
12441
|
"Task": true,
|
|
12442
|
+
"Workflow": true,
|
|
11942
12443
|
"Table": true,
|
|
11943
12444
|
"Column": true,
|
|
11944
12445
|
"Row": true,
|
|
@@ -13721,6 +14222,12 @@ export const state = {
|
|
|
13721
14222
|
"maxLength": 36,
|
|
13722
14223
|
"description": "Id of the current [Task](#schema_task)"
|
|
13723
14224
|
},
|
|
14225
|
+
"currentWorkflowId": {
|
|
14226
|
+
"type": "string",
|
|
14227
|
+
"minLength": 28,
|
|
14228
|
+
"maxLength": 36,
|
|
14229
|
+
"description": "Id of the current [Workflow](#schema_workflow)"
|
|
14230
|
+
},
|
|
13724
14231
|
"createdAt": {
|
|
13725
14232
|
"type": "string",
|
|
13726
14233
|
"format": "date-time",
|
|
@@ -13755,7 +14262,7 @@ export const state = {
|
|
|
13755
14262
|
"integration",
|
|
13756
14263
|
"tags"
|
|
13757
14264
|
],
|
|
13758
|
-
"description": "The
|
|
14265
|
+
"description": "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.",
|
|
13759
14266
|
"additionalProperties": false
|
|
13760
14267
|
}
|
|
13761
14268
|
},
|
|
@@ -13951,9 +14458,10 @@ export const state = {
|
|
|
13951
14458
|
"user",
|
|
13952
14459
|
"bot",
|
|
13953
14460
|
"task",
|
|
13954
|
-
"integration"
|
|
14461
|
+
"integration",
|
|
14462
|
+
"workflow"
|
|
13955
14463
|
],
|
|
13956
|
-
"description": "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
14464
|
+
"description": "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to"
|
|
13957
14465
|
},
|
|
13958
14466
|
"payload": {
|
|
13959
14467
|
"type": "object",
|
|
@@ -14080,6 +14588,112 @@ export const state = {
|
|
|
14080
14588
|
"additionalProperties": false
|
|
14081
14589
|
}
|
|
14082
14590
|
},
|
|
14591
|
+
"Workflow": {
|
|
14592
|
+
"section": "workflow",
|
|
14593
|
+
"schema": {
|
|
14594
|
+
"type": "object",
|
|
14595
|
+
"properties": {
|
|
14596
|
+
"id": {
|
|
14597
|
+
"type": "string",
|
|
14598
|
+
"minLength": 28,
|
|
14599
|
+
"maxLength": 36,
|
|
14600
|
+
"description": "Id of the [Workflow](#schema_workflow)"
|
|
14601
|
+
},
|
|
14602
|
+
"name": {
|
|
14603
|
+
"type": "string",
|
|
14604
|
+
"maxLength": 200,
|
|
14605
|
+
"description": "Name of the workflow"
|
|
14606
|
+
},
|
|
14607
|
+
"status": {
|
|
14608
|
+
"type": "string",
|
|
14609
|
+
"enum": [
|
|
14610
|
+
"pending",
|
|
14611
|
+
"in_progress",
|
|
14612
|
+
"failed",
|
|
14613
|
+
"completed",
|
|
14614
|
+
"listening",
|
|
14615
|
+
"paused",
|
|
14616
|
+
"timedout",
|
|
14617
|
+
"cancelled"
|
|
14618
|
+
],
|
|
14619
|
+
"description": "Status of the [Workflow](#schema_workflow)"
|
|
14620
|
+
},
|
|
14621
|
+
"input": {
|
|
14622
|
+
"type": "object",
|
|
14623
|
+
"additionalProperties": true,
|
|
14624
|
+
"description": "Input provided to the [Workflow](#schema_workflow)"
|
|
14625
|
+
},
|
|
14626
|
+
"output": {
|
|
14627
|
+
"type": "object",
|
|
14628
|
+
"additionalProperties": true,
|
|
14629
|
+
"description": "Data returned by the [Workflow](#schema_workflow) output"
|
|
14630
|
+
},
|
|
14631
|
+
"parentWorkflowId": {
|
|
14632
|
+
"type": "string",
|
|
14633
|
+
"minLength": 28,
|
|
14634
|
+
"maxLength": 36,
|
|
14635
|
+
"description": "Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)"
|
|
14636
|
+
},
|
|
14637
|
+
"conversationId": {
|
|
14638
|
+
"type": "string",
|
|
14639
|
+
"minLength": 28,
|
|
14640
|
+
"maxLength": 36,
|
|
14641
|
+
"description": "Conversation id related to this [Workflow](#schema_workflow)"
|
|
14642
|
+
},
|
|
14643
|
+
"userId": {
|
|
14644
|
+
"type": "string",
|
|
14645
|
+
"minLength": 28,
|
|
14646
|
+
"maxLength": 36,
|
|
14647
|
+
"description": "User id related to this [Workflow](#schema_workflow)"
|
|
14648
|
+
},
|
|
14649
|
+
"createdAt": {
|
|
14650
|
+
"type": "string",
|
|
14651
|
+
"format": "date-time",
|
|
14652
|
+
"description": "Creation date of the [Workflow](#schema_workflow) in ISO 8601 format"
|
|
14653
|
+
},
|
|
14654
|
+
"updatedAt": {
|
|
14655
|
+
"type": "string",
|
|
14656
|
+
"format": "date-time",
|
|
14657
|
+
"description": "Updating date of the [Workflow](#schema_workflow) in ISO 8601 format"
|
|
14658
|
+
},
|
|
14659
|
+
"completedAt": {
|
|
14660
|
+
"type": "string",
|
|
14661
|
+
"format": "date-time",
|
|
14662
|
+
"description": "The date when the [Workflow](#schema_workflow) completed in ISO 8601 format"
|
|
14663
|
+
},
|
|
14664
|
+
"failureReason": {
|
|
14665
|
+
"type": "string",
|
|
14666
|
+
"maxLength": 2000,
|
|
14667
|
+
"description": "If the [Workflow](#schema_workflow) fails this is the reason behind it"
|
|
14668
|
+
},
|
|
14669
|
+
"timeoutAt": {
|
|
14670
|
+
"type": "string",
|
|
14671
|
+
"format": "date-time",
|
|
14672
|
+
"description": "The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format"
|
|
14673
|
+
},
|
|
14674
|
+
"tags": {
|
|
14675
|
+
"type": "object",
|
|
14676
|
+
"additionalProperties": {
|
|
14677
|
+
"type": "string"
|
|
14678
|
+
},
|
|
14679
|
+
"description": "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."
|
|
14680
|
+
}
|
|
14681
|
+
},
|
|
14682
|
+
"required": [
|
|
14683
|
+
"id",
|
|
14684
|
+
"name",
|
|
14685
|
+
"status",
|
|
14686
|
+
"input",
|
|
14687
|
+
"output",
|
|
14688
|
+
"createdAt",
|
|
14689
|
+
"updatedAt",
|
|
14690
|
+
"timeoutAt",
|
|
14691
|
+
"tags"
|
|
14692
|
+
],
|
|
14693
|
+
"description": "Workflow definition",
|
|
14694
|
+
"additionalProperties": false
|
|
14695
|
+
}
|
|
14696
|
+
},
|
|
14083
14697
|
"Table": {
|
|
14084
14698
|
"section": "tables",
|
|
14085
14699
|
"schema": {
|
|
@@ -14221,6 +14835,10 @@ export const state = {
|
|
|
14221
14835
|
"type": "number",
|
|
14222
14836
|
"description": "Width of the column in the UI"
|
|
14223
14837
|
},
|
|
14838
|
+
"schemaId": {
|
|
14839
|
+
"type": "string",
|
|
14840
|
+
"description": "ID of the schema"
|
|
14841
|
+
},
|
|
14224
14842
|
"computed": {
|
|
14225
14843
|
"type": "object",
|
|
14226
14844
|
"properties": {
|
|
@@ -14705,6 +15323,20 @@ export const state = {
|
|
|
14705
15323
|
],
|
|
14706
15324
|
"schema": "Task"
|
|
14707
15325
|
},
|
|
15326
|
+
{
|
|
15327
|
+
"description": "",
|
|
15328
|
+
"title": "Workflow",
|
|
15329
|
+
"name": "workflow",
|
|
15330
|
+
"operations": [
|
|
15331
|
+
"createWorkflow",
|
|
15332
|
+
"getWorkflow",
|
|
15333
|
+
"updateWorkflow",
|
|
15334
|
+
"deleteWorkflow",
|
|
15335
|
+
"listWorkflows",
|
|
15336
|
+
"getOrCreateWorkflow"
|
|
15337
|
+
],
|
|
15338
|
+
"schema": "Workflow"
|
|
15339
|
+
},
|
|
14708
15340
|
{
|
|
14709
15341
|
"title": "Bot",
|
|
14710
15342
|
"description": "",
|