@botpress/api 0.16.0 → 0.16.2
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 +582 -46
- package/dist/src/gen/state.d.ts +531 -42
- package/dist/src/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +604 -50
package/dist/index.js
CHANGED
|
@@ -428298,6 +428298,293 @@ var state = {
|
|
|
428298
428298
|
},
|
|
428299
428299
|
parameters: {}
|
|
428300
428300
|
},
|
|
428301
|
+
getTask: {
|
|
428302
|
+
name: "getTask",
|
|
428303
|
+
description: "Retrieves the [Task](#schema_task) object for a valid identifier.",
|
|
428304
|
+
method: "get",
|
|
428305
|
+
path: "/v1/chat/tasks/{id}",
|
|
428306
|
+
parameters: {
|
|
428307
|
+
id: {
|
|
428308
|
+
in: "path",
|
|
428309
|
+
type: "string",
|
|
428310
|
+
description: "Task id"
|
|
428311
|
+
}
|
|
428312
|
+
},
|
|
428313
|
+
section: "task",
|
|
428314
|
+
response: {
|
|
428315
|
+
description: "Returns a [Task](#schema_task) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
|
|
428316
|
+
schema: {
|
|
428317
|
+
type: "object",
|
|
428318
|
+
properties: {
|
|
428319
|
+
task: {
|
|
428320
|
+
$ref: "#/components/schemas/Task"
|
|
428321
|
+
}
|
|
428322
|
+
},
|
|
428323
|
+
required: ["task"],
|
|
428324
|
+
title: "getTaskResponse",
|
|
428325
|
+
additionalProperties: false
|
|
428326
|
+
}
|
|
428327
|
+
}
|
|
428328
|
+
},
|
|
428329
|
+
createTask: {
|
|
428330
|
+
name: "createTask",
|
|
428331
|
+
description: "Creates a new [Task](#schema_task). When creating a new [Task](#schema_task), the required tags must be provided. See the specific integration for more details.",
|
|
428332
|
+
method: "post",
|
|
428333
|
+
path: "/v1/chat/tasks",
|
|
428334
|
+
requestBody: {
|
|
428335
|
+
description: "Task data",
|
|
428336
|
+
schema: {
|
|
428337
|
+
type: "object",
|
|
428338
|
+
properties: {
|
|
428339
|
+
title: {
|
|
428340
|
+
type: "string",
|
|
428341
|
+
description: "Title describing the task"
|
|
428342
|
+
},
|
|
428343
|
+
instruction: {
|
|
428344
|
+
type: "string",
|
|
428345
|
+
description: "All the notes related to the execution of the current task"
|
|
428346
|
+
},
|
|
428347
|
+
type: {
|
|
428348
|
+
type: "string",
|
|
428349
|
+
description: "Type of the task"
|
|
428350
|
+
},
|
|
428351
|
+
data: {
|
|
428352
|
+
type: "object",
|
|
428353
|
+
additionalProperties: true,
|
|
428354
|
+
description: "Content related to the task"
|
|
428355
|
+
},
|
|
428356
|
+
parentTaskId: {
|
|
428357
|
+
type: "string",
|
|
428358
|
+
description: "Parent task id is the parent task that created this task"
|
|
428359
|
+
},
|
|
428360
|
+
conversationId: {
|
|
428361
|
+
type: "string",
|
|
428362
|
+
description: "Conversation id related to this task"
|
|
428363
|
+
},
|
|
428364
|
+
userId: {
|
|
428365
|
+
type: "string",
|
|
428366
|
+
description: "Specific user related to this task"
|
|
428367
|
+
},
|
|
428368
|
+
timeoutAt: {
|
|
428369
|
+
type: "string",
|
|
428370
|
+
format: "date-time",
|
|
428371
|
+
description: "The timeout date where the task should be failed in the ISO 8601 format"
|
|
428372
|
+
},
|
|
428373
|
+
tags: {
|
|
428374
|
+
type: "object",
|
|
428375
|
+
additionalProperties: {
|
|
428376
|
+
type: "string",
|
|
428377
|
+
maxLength: 500
|
|
428378
|
+
},
|
|
428379
|
+
description: "Tags for the [Task](#schema_task)"
|
|
428380
|
+
}
|
|
428381
|
+
},
|
|
428382
|
+
required: ["title", "type", "conversationId"],
|
|
428383
|
+
title: "createTaskBody",
|
|
428384
|
+
additionalProperties: false
|
|
428385
|
+
}
|
|
428386
|
+
},
|
|
428387
|
+
section: "task",
|
|
428388
|
+
response: {
|
|
428389
|
+
description: "Returns a [Task](#schema_task) object if creation succeeds. Returns [an error](#errors) otherwise",
|
|
428390
|
+
status: 201,
|
|
428391
|
+
schema: {
|
|
428392
|
+
type: "object",
|
|
428393
|
+
properties: {
|
|
428394
|
+
task: {
|
|
428395
|
+
$ref: "#/components/schemas/Task"
|
|
428396
|
+
}
|
|
428397
|
+
},
|
|
428398
|
+
required: ["task"],
|
|
428399
|
+
title: "createTaskResponse",
|
|
428400
|
+
additionalProperties: false
|
|
428401
|
+
}
|
|
428402
|
+
},
|
|
428403
|
+
parameters: {}
|
|
428404
|
+
},
|
|
428405
|
+
updateTask: {
|
|
428406
|
+
name: "updateTask",
|
|
428407
|
+
description: "Update a [Task](#schema_task) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
|
|
428408
|
+
method: "put",
|
|
428409
|
+
path: "/v1/chat/tasks/{id}",
|
|
428410
|
+
parameters: {
|
|
428411
|
+
id: {
|
|
428412
|
+
in: "path",
|
|
428413
|
+
type: "string",
|
|
428414
|
+
description: "Task id"
|
|
428415
|
+
}
|
|
428416
|
+
},
|
|
428417
|
+
requestBody: {
|
|
428418
|
+
description: "Task data",
|
|
428419
|
+
schema: {
|
|
428420
|
+
type: "object",
|
|
428421
|
+
properties: {
|
|
428422
|
+
title: {
|
|
428423
|
+
type: "string",
|
|
428424
|
+
description: "Title describing the task"
|
|
428425
|
+
},
|
|
428426
|
+
instruction: {
|
|
428427
|
+
type: "string",
|
|
428428
|
+
description: "All the notes related to the execution of the current task"
|
|
428429
|
+
},
|
|
428430
|
+
data: {
|
|
428431
|
+
type: "object",
|
|
428432
|
+
additionalProperties: true,
|
|
428433
|
+
description: "Content related to the task"
|
|
428434
|
+
},
|
|
428435
|
+
timeoutAt: {
|
|
428436
|
+
type: "string",
|
|
428437
|
+
format: "date-time",
|
|
428438
|
+
description: "The timeout date where the task should be failed in the ISO 8601 format"
|
|
428439
|
+
},
|
|
428440
|
+
status: {
|
|
428441
|
+
type: "string",
|
|
428442
|
+
enum: [
|
|
428443
|
+
"pending",
|
|
428444
|
+
"in_progress",
|
|
428445
|
+
"failed",
|
|
428446
|
+
"completed",
|
|
428447
|
+
"blocked",
|
|
428448
|
+
"paused"
|
|
428449
|
+
],
|
|
428450
|
+
description: "Status of the task"
|
|
428451
|
+
},
|
|
428452
|
+
tags: {
|
|
428453
|
+
type: "object",
|
|
428454
|
+
additionalProperties: {
|
|
428455
|
+
type: "string",
|
|
428456
|
+
maxLength: 500
|
|
428457
|
+
},
|
|
428458
|
+
description: "Tags for the [Task](#schema_task)"
|
|
428459
|
+
}
|
|
428460
|
+
},
|
|
428461
|
+
title: "updateTaskBody",
|
|
428462
|
+
additionalProperties: false
|
|
428463
|
+
}
|
|
428464
|
+
},
|
|
428465
|
+
section: "task",
|
|
428466
|
+
response: {
|
|
428467
|
+
description: "Returns an updated [Task](#schema_task) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
|
|
428468
|
+
schema: {
|
|
428469
|
+
type: "object",
|
|
428470
|
+
properties: {
|
|
428471
|
+
task: {
|
|
428472
|
+
$ref: "#/components/schemas/Task"
|
|
428473
|
+
}
|
|
428474
|
+
},
|
|
428475
|
+
required: ["task"],
|
|
428476
|
+
title: "updateTaskResponse",
|
|
428477
|
+
additionalProperties: false
|
|
428478
|
+
}
|
|
428479
|
+
}
|
|
428480
|
+
},
|
|
428481
|
+
deleteTask: {
|
|
428482
|
+
name: "deleteTask",
|
|
428483
|
+
description: "Permanently deletes a [Task](#schema_task). It cannot be undone.",
|
|
428484
|
+
method: "delete",
|
|
428485
|
+
path: "/v1/chat/tasks/{id}",
|
|
428486
|
+
parameters: {
|
|
428487
|
+
id: {
|
|
428488
|
+
in: "path",
|
|
428489
|
+
type: "string",
|
|
428490
|
+
description: "Task id"
|
|
428491
|
+
}
|
|
428492
|
+
},
|
|
428493
|
+
section: "task",
|
|
428494
|
+
response: {
|
|
428495
|
+
description: "Returns the [Task](#schema_task) object that was deleted",
|
|
428496
|
+
schema: {
|
|
428497
|
+
type: "object",
|
|
428498
|
+
title: "deleteTaskResponse",
|
|
428499
|
+
additionalProperties: false
|
|
428500
|
+
}
|
|
428501
|
+
}
|
|
428502
|
+
},
|
|
428503
|
+
listTasks: {
|
|
428504
|
+
name: "listTasks",
|
|
428505
|
+
description: "Retrieves a list of [Task](#schema_task) you've previously created. The tasks are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).",
|
|
428506
|
+
method: "get",
|
|
428507
|
+
path: "/v1/chat/tasks",
|
|
428508
|
+
parameters: {
|
|
428509
|
+
nextToken: {
|
|
428510
|
+
in: "query",
|
|
428511
|
+
description: "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
428512
|
+
type: "string"
|
|
428513
|
+
},
|
|
428514
|
+
tags: {
|
|
428515
|
+
in: "query",
|
|
428516
|
+
type: "object",
|
|
428517
|
+
schema: {
|
|
428518
|
+
type: "object",
|
|
428519
|
+
additionalProperties: {
|
|
428520
|
+
type: "string"
|
|
428521
|
+
}
|
|
428522
|
+
},
|
|
428523
|
+
description: "Filter by tags"
|
|
428524
|
+
},
|
|
428525
|
+
conversationId: {
|
|
428526
|
+
in: "query",
|
|
428527
|
+
type: "string",
|
|
428528
|
+
description: "Conversation id"
|
|
428529
|
+
},
|
|
428530
|
+
userId: {
|
|
428531
|
+
in: "query",
|
|
428532
|
+
type: "string",
|
|
428533
|
+
description: "User id"
|
|
428534
|
+
},
|
|
428535
|
+
parentTaskId: {
|
|
428536
|
+
in: "query",
|
|
428537
|
+
type: "string",
|
|
428538
|
+
description: "Parent task id"
|
|
428539
|
+
},
|
|
428540
|
+
status: {
|
|
428541
|
+
in: "query",
|
|
428542
|
+
type: "string",
|
|
428543
|
+
description: "Status",
|
|
428544
|
+
enum: [
|
|
428545
|
+
"pending",
|
|
428546
|
+
"in_progress",
|
|
428547
|
+
"failed",
|
|
428548
|
+
"completed",
|
|
428549
|
+
"blocked",
|
|
428550
|
+
"paused"
|
|
428551
|
+
]
|
|
428552
|
+
},
|
|
428553
|
+
type: {
|
|
428554
|
+
in: "query",
|
|
428555
|
+
type: "string",
|
|
428556
|
+
description: "Type"
|
|
428557
|
+
}
|
|
428558
|
+
},
|
|
428559
|
+
section: "task",
|
|
428560
|
+
response: {
|
|
428561
|
+
description: "Returns a list of [Task](#schema_task) objects",
|
|
428562
|
+
schema: {
|
|
428563
|
+
type: "object",
|
|
428564
|
+
properties: {
|
|
428565
|
+
tasks: {
|
|
428566
|
+
type: "array",
|
|
428567
|
+
items: {
|
|
428568
|
+
$ref: "#/components/schemas/Task"
|
|
428569
|
+
}
|
|
428570
|
+
},
|
|
428571
|
+
meta: {
|
|
428572
|
+
type: "object",
|
|
428573
|
+
properties: {
|
|
428574
|
+
nextToken: {
|
|
428575
|
+
type: "string",
|
|
428576
|
+
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."
|
|
428577
|
+
}
|
|
428578
|
+
},
|
|
428579
|
+
additionalProperties: false
|
|
428580
|
+
}
|
|
428581
|
+
},
|
|
428582
|
+
required: ["tasks", "meta"],
|
|
428583
|
+
title: "listTasksResponse",
|
|
428584
|
+
additionalProperties: false
|
|
428585
|
+
}
|
|
428586
|
+
}
|
|
428587
|
+
},
|
|
428301
428588
|
runVrl: {
|
|
428302
428589
|
name: "runVrl",
|
|
428303
428590
|
description: "Run a VRL script",
|
|
@@ -430290,6 +430577,10 @@ var state = {
|
|
|
430290
430577
|
},
|
|
430291
430578
|
isPublic: {
|
|
430292
430579
|
type: "boolean"
|
|
430580
|
+
},
|
|
430581
|
+
handle: {
|
|
430582
|
+
default: "",
|
|
430583
|
+
type: "string"
|
|
430293
430584
|
}
|
|
430294
430585
|
},
|
|
430295
430586
|
required: [
|
|
@@ -430393,6 +430684,10 @@ var state = {
|
|
|
430393
430684
|
},
|
|
430394
430685
|
isPublic: {
|
|
430395
430686
|
type: "boolean"
|
|
430687
|
+
},
|
|
430688
|
+
handle: {
|
|
430689
|
+
default: "",
|
|
430690
|
+
type: "string"
|
|
430396
430691
|
}
|
|
430397
430692
|
},
|
|
430398
430693
|
required: [
|
|
@@ -430801,6 +431096,12 @@ var state = {
|
|
|
430801
431096
|
},
|
|
430802
431097
|
isPublic: {
|
|
430803
431098
|
type: "boolean"
|
|
431099
|
+
},
|
|
431100
|
+
handle: {
|
|
431101
|
+
type: "string",
|
|
431102
|
+
minLength: 1,
|
|
431103
|
+
maxLength: 64,
|
|
431104
|
+
pattern: "^[0-9a-z][a-z0-9-]+[0-9a-z]$"
|
|
430804
431105
|
}
|
|
430805
431106
|
},
|
|
430806
431107
|
additionalProperties: false,
|
|
@@ -430873,6 +431174,10 @@ var state = {
|
|
|
430873
431174
|
},
|
|
430874
431175
|
isPublic: {
|
|
430875
431176
|
type: "boolean"
|
|
431177
|
+
},
|
|
431178
|
+
handle: {
|
|
431179
|
+
default: "",
|
|
431180
|
+
type: "string"
|
|
430876
431181
|
}
|
|
430877
431182
|
},
|
|
430878
431183
|
required: [
|
|
@@ -430893,6 +431198,57 @@ var state = {
|
|
|
430893
431198
|
}
|
|
430894
431199
|
}
|
|
430895
431200
|
},
|
|
431201
|
+
checkHandleAvailability: {
|
|
431202
|
+
name: "checkHandleAvailability",
|
|
431203
|
+
description: "Check if a workspace handle is available",
|
|
431204
|
+
section: "workspace",
|
|
431205
|
+
method: "put",
|
|
431206
|
+
disableDefaultParameters: {
|
|
431207
|
+
"x-workspace-id": true
|
|
431208
|
+
},
|
|
431209
|
+
path: "/v1/admin/workspaces/handle-availability",
|
|
431210
|
+
requestBody: {
|
|
431211
|
+
description: "Workspace handle availability",
|
|
431212
|
+
schema: {
|
|
431213
|
+
type: "object",
|
|
431214
|
+
properties: {
|
|
431215
|
+
handle: {
|
|
431216
|
+
type: "string",
|
|
431217
|
+
minLength: 1,
|
|
431218
|
+
maxLength: 50,
|
|
431219
|
+
pattern: "^[a-z0-9-_]+$"
|
|
431220
|
+
}
|
|
431221
|
+
},
|
|
431222
|
+
required: ["handle"],
|
|
431223
|
+
title: "checkHandleAvailabilityBody",
|
|
431224
|
+
additionalProperties: false
|
|
431225
|
+
}
|
|
431226
|
+
},
|
|
431227
|
+
response: {
|
|
431228
|
+
description: "Success",
|
|
431229
|
+
schema: {
|
|
431230
|
+
type: "object",
|
|
431231
|
+
properties: {
|
|
431232
|
+
available: {
|
|
431233
|
+
type: "boolean"
|
|
431234
|
+
},
|
|
431235
|
+
suggestions: {
|
|
431236
|
+
type: "array",
|
|
431237
|
+
items: {
|
|
431238
|
+
type: "string"
|
|
431239
|
+
}
|
|
431240
|
+
},
|
|
431241
|
+
usedBy: {
|
|
431242
|
+
type: "string"
|
|
431243
|
+
}
|
|
431244
|
+
},
|
|
431245
|
+
required: ["available", "suggestions"],
|
|
431246
|
+
title: "checkHandleAvailabilityResponse",
|
|
431247
|
+
additionalProperties: false
|
|
431248
|
+
}
|
|
431249
|
+
},
|
|
431250
|
+
parameters: {}
|
|
431251
|
+
},
|
|
430896
431252
|
listWorkspaces: {
|
|
430897
431253
|
name: "listWorkspaces",
|
|
430898
431254
|
description: "List workspaces the user has access to",
|
|
@@ -430980,6 +431336,10 @@ var state = {
|
|
|
430980
431336
|
},
|
|
430981
431337
|
isPublic: {
|
|
430982
431338
|
type: "boolean"
|
|
431339
|
+
},
|
|
431340
|
+
handle: {
|
|
431341
|
+
default: "",
|
|
431342
|
+
type: "string"
|
|
430983
431343
|
}
|
|
430984
431344
|
},
|
|
430985
431345
|
required: [
|
|
@@ -431112,6 +431472,10 @@ var state = {
|
|
|
431112
431472
|
},
|
|
431113
431473
|
isPublic: {
|
|
431114
431474
|
type: "boolean"
|
|
431475
|
+
},
|
|
431476
|
+
handle: {
|
|
431477
|
+
default: "",
|
|
431478
|
+
type: "string"
|
|
431115
431479
|
}
|
|
431116
431480
|
},
|
|
431117
431481
|
required: [
|
|
@@ -432829,7 +433193,7 @@ var state = {
|
|
|
432829
433193
|
title: "Botpress API",
|
|
432830
433194
|
description: "API for Botpress Cloud",
|
|
432831
433195
|
server: "https://api.botpress.cloud",
|
|
432832
|
-
version: "0.16.
|
|
433196
|
+
version: "0.16.2",
|
|
432833
433197
|
prefix: "v1"
|
|
432834
433198
|
},
|
|
432835
433199
|
errors: [
|
|
@@ -432957,6 +433321,8 @@ var state = {
|
|
|
432957
433321
|
patchStateBody: true,
|
|
432958
433322
|
callActionBody: true,
|
|
432959
433323
|
configureIntegrationBody: true,
|
|
433324
|
+
createTaskBody: true,
|
|
433325
|
+
updateTaskBody: true,
|
|
432960
433326
|
runVrlBody: true,
|
|
432961
433327
|
createPersonalAccessTokenBody: true,
|
|
432962
433328
|
setAccountPreferenceBody: true,
|
|
@@ -432967,6 +433333,7 @@ var state = {
|
|
|
432967
433333
|
chargeWorkspaceUnpaidInvoicesBody: true,
|
|
432968
433334
|
createWorkspaceBody: true,
|
|
432969
433335
|
updateWorkspaceBody: true,
|
|
433336
|
+
checkHandleAvailabilityBody: true,
|
|
432970
433337
|
changeWorkspacePlanBody: true,
|
|
432971
433338
|
createWorkspaceMemberBody: true,
|
|
432972
433339
|
updateWorkspaceMemberBody: true,
|
|
@@ -433007,6 +433374,11 @@ var state = {
|
|
|
433007
433374
|
patchStateResponse: true,
|
|
433008
433375
|
callActionResponse: true,
|
|
433009
433376
|
configureIntegrationResponse: true,
|
|
433377
|
+
getTaskResponse: true,
|
|
433378
|
+
createTaskResponse: true,
|
|
433379
|
+
updateTaskResponse: true,
|
|
433380
|
+
deleteTaskResponse: true,
|
|
433381
|
+
listTasksResponse: true,
|
|
433010
433382
|
runVrlResponse: true,
|
|
433011
433383
|
getAccountResponse: true,
|
|
433012
433384
|
listPersonalAccessTokensResponse: true,
|
|
@@ -433041,6 +433413,7 @@ var state = {
|
|
|
433041
433413
|
getWorkspaceQuotaResponse: true,
|
|
433042
433414
|
listWorkspaceQuotasResponse: true,
|
|
433043
433415
|
updateWorkspaceResponse: true,
|
|
433416
|
+
checkHandleAvailabilityResponse: true,
|
|
433044
433417
|
listWorkspacesResponse: true,
|
|
433045
433418
|
changeWorkspacePlanResponse: true,
|
|
433046
433419
|
deleteWorkspaceResponse: true,
|
|
@@ -433080,6 +433453,7 @@ var state = {
|
|
|
433080
433453
|
Event: true,
|
|
433081
433454
|
Message: true,
|
|
433082
433455
|
State: true,
|
|
433456
|
+
Task: true,
|
|
433083
433457
|
File: true,
|
|
433084
433458
|
Table: true,
|
|
433085
433459
|
Column: true,
|
|
@@ -433952,6 +434326,10 @@ var state = {
|
|
|
433952
434326
|
},
|
|
433953
434327
|
isPublic: {
|
|
433954
434328
|
type: "boolean"
|
|
434329
|
+
},
|
|
434330
|
+
handle: {
|
|
434331
|
+
default: "",
|
|
434332
|
+
type: "string"
|
|
433955
434333
|
}
|
|
433956
434334
|
},
|
|
433957
434335
|
required: [
|
|
@@ -434226,6 +434604,12 @@ var state = {
|
|
|
434226
434604
|
maxLength: 36,
|
|
434227
434605
|
description: "ID of the [Conversation](#schema_conversation)"
|
|
434228
434606
|
},
|
|
434607
|
+
currentTaskId: {
|
|
434608
|
+
type: "string",
|
|
434609
|
+
minLength: 28,
|
|
434610
|
+
maxLength: 36,
|
|
434611
|
+
description: "Id of the current [Task](#schema_task)"
|
|
434612
|
+
},
|
|
434229
434613
|
createdAt: {
|
|
434230
434614
|
type: "string",
|
|
434231
434615
|
format: "date-time",
|
|
@@ -434310,10 +434694,23 @@ var state = {
|
|
|
434310
434694
|
},
|
|
434311
434695
|
status: {
|
|
434312
434696
|
type: "string",
|
|
434313
|
-
|
|
434697
|
+
enum: ["pending", "processed", "ignored", "failed"]
|
|
434698
|
+
},
|
|
434699
|
+
failureReason: {
|
|
434700
|
+
type: "string",
|
|
434701
|
+
maxLength: 2e3,
|
|
434702
|
+
description: "Reason why the event failed to be processed",
|
|
434703
|
+
nullable: true
|
|
434314
434704
|
}
|
|
434315
434705
|
},
|
|
434316
|
-
required: [
|
|
434706
|
+
required: [
|
|
434707
|
+
"id",
|
|
434708
|
+
"createdAt",
|
|
434709
|
+
"type",
|
|
434710
|
+
"payload",
|
|
434711
|
+
"status",
|
|
434712
|
+
"failureReason"
|
|
434713
|
+
],
|
|
434317
434714
|
description: "The event object represents an action or an occurrence.",
|
|
434318
434715
|
additionalProperties: false
|
|
434319
434716
|
}
|
|
@@ -434451,6 +434848,110 @@ var state = {
|
|
|
434451
434848
|
additionalProperties: false
|
|
434452
434849
|
}
|
|
434453
434850
|
},
|
|
434851
|
+
Task: {
|
|
434852
|
+
section: "task",
|
|
434853
|
+
schema: {
|
|
434854
|
+
type: "object",
|
|
434855
|
+
properties: {
|
|
434856
|
+
id: {
|
|
434857
|
+
type: "string",
|
|
434858
|
+
minLength: 28,
|
|
434859
|
+
maxLength: 36,
|
|
434860
|
+
description: "ID of the [Conversation](#schema_conversation)"
|
|
434861
|
+
},
|
|
434862
|
+
title: {
|
|
434863
|
+
type: "string",
|
|
434864
|
+
maxLength: 64,
|
|
434865
|
+
description: "Title describing the task"
|
|
434866
|
+
},
|
|
434867
|
+
instruction: {
|
|
434868
|
+
type: "string",
|
|
434869
|
+
maxLength: 256,
|
|
434870
|
+
description: "All the notes related to the execution of the current task"
|
|
434871
|
+
},
|
|
434872
|
+
type: {
|
|
434873
|
+
type: "string",
|
|
434874
|
+
description: "Type of the task"
|
|
434875
|
+
},
|
|
434876
|
+
data: {
|
|
434877
|
+
type: "object",
|
|
434878
|
+
additionalProperties: true,
|
|
434879
|
+
description: "Content related to the task"
|
|
434880
|
+
},
|
|
434881
|
+
status: {
|
|
434882
|
+
type: "string",
|
|
434883
|
+
enum: [
|
|
434884
|
+
"pending",
|
|
434885
|
+
"in_progress",
|
|
434886
|
+
"failed",
|
|
434887
|
+
"completed",
|
|
434888
|
+
"blocked",
|
|
434889
|
+
"paused"
|
|
434890
|
+
],
|
|
434891
|
+
description: "Status of the task"
|
|
434892
|
+
},
|
|
434893
|
+
parentTaskId: {
|
|
434894
|
+
type: "string",
|
|
434895
|
+
minLength: 28,
|
|
434896
|
+
maxLength: 36,
|
|
434897
|
+
description: "Parent task id is the parent task that created this task"
|
|
434898
|
+
},
|
|
434899
|
+
conversationId: {
|
|
434900
|
+
type: "string",
|
|
434901
|
+
minLength: 28,
|
|
434902
|
+
maxLength: 36,
|
|
434903
|
+
description: "Conversation id related to this task"
|
|
434904
|
+
},
|
|
434905
|
+
userId: {
|
|
434906
|
+
type: "string",
|
|
434907
|
+
minLength: 28,
|
|
434908
|
+
maxLength: 36,
|
|
434909
|
+
description: "Specific user related to this task"
|
|
434910
|
+
},
|
|
434911
|
+
timeoutAt: {
|
|
434912
|
+
type: "string",
|
|
434913
|
+
format: "date-time",
|
|
434914
|
+
description: "The timeout date where the task should be failed in the ISO 8601 format"
|
|
434915
|
+
},
|
|
434916
|
+
createdAt: {
|
|
434917
|
+
type: "string",
|
|
434918
|
+
format: "date-time",
|
|
434919
|
+
description: "Creation date of the task in ISO 8601 format"
|
|
434920
|
+
},
|
|
434921
|
+
updatedAt: {
|
|
434922
|
+
type: "string",
|
|
434923
|
+
format: "date-time",
|
|
434924
|
+
description: "Updating date of the task in ISO 8601 format"
|
|
434925
|
+
},
|
|
434926
|
+
failureReason: {
|
|
434927
|
+
type: "string",
|
|
434928
|
+
maxLength: 2e3,
|
|
434929
|
+
description: "If the task fails this is the reason behind it"
|
|
434930
|
+
},
|
|
434931
|
+
tags: {
|
|
434932
|
+
type: "object",
|
|
434933
|
+
additionalProperties: {
|
|
434934
|
+
type: "string"
|
|
434935
|
+
},
|
|
434936
|
+
description: "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Task](#schema_task). Individual keys can be unset by posting an empty value to them."
|
|
434937
|
+
}
|
|
434938
|
+
},
|
|
434939
|
+
required: [
|
|
434940
|
+
"id",
|
|
434941
|
+
"title",
|
|
434942
|
+
"instruction",
|
|
434943
|
+
"type",
|
|
434944
|
+
"data",
|
|
434945
|
+
"status",
|
|
434946
|
+
"timeoutAt",
|
|
434947
|
+
"createdAt",
|
|
434948
|
+
"updatedAt",
|
|
434949
|
+
"tags"
|
|
434950
|
+
],
|
|
434951
|
+
description: "Task definition",
|
|
434952
|
+
additionalProperties: false
|
|
434953
|
+
}
|
|
434954
|
+
},
|
|
434454
434955
|
File: {
|
|
434455
434956
|
section: "file",
|
|
434456
434957
|
schema: {
|
|
@@ -434511,53 +435012,74 @@ var state = {
|
|
|
434511
435012
|
maximum: 30,
|
|
434512
435013
|
description: "The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1."
|
|
434513
435014
|
},
|
|
434514
|
-
|
|
434515
|
-
type: "
|
|
434516
|
-
|
|
434517
|
-
|
|
435015
|
+
schema: {
|
|
435016
|
+
type: "object",
|
|
435017
|
+
properties: {
|
|
435018
|
+
$schema: {
|
|
435019
|
+
type: "string"
|
|
435020
|
+
},
|
|
434518
435021
|
properties: {
|
|
434519
|
-
|
|
434520
|
-
|
|
434521
|
-
|
|
434522
|
-
|
|
434523
|
-
|
|
434524
|
-
|
|
434525
|
-
|
|
434526
|
-
|
|
434527
|
-
|
|
434528
|
-
|
|
434529
|
-
|
|
434530
|
-
|
|
434531
|
-
|
|
434532
|
-
|
|
434533
|
-
|
|
434534
|
-
|
|
434535
|
-
|
|
434536
|
-
|
|
434537
|
-
|
|
434538
|
-
|
|
434539
|
-
|
|
434540
|
-
|
|
435022
|
+
type: "object",
|
|
435023
|
+
additionalProperties: {
|
|
435024
|
+
type: "object",
|
|
435025
|
+
properties: {
|
|
435026
|
+
type: {
|
|
435027
|
+
type: "string",
|
|
435028
|
+
enum: ["string", "number", "boolean", "object", "null"]
|
|
435029
|
+
},
|
|
435030
|
+
format: {
|
|
435031
|
+
type: "string",
|
|
435032
|
+
enum: ["date-time"]
|
|
435033
|
+
},
|
|
435034
|
+
description: {
|
|
435035
|
+
type: "string"
|
|
435036
|
+
},
|
|
435037
|
+
nullable: {
|
|
435038
|
+
default: true,
|
|
435039
|
+
type: "boolean"
|
|
435040
|
+
},
|
|
435041
|
+
"x-zui": {
|
|
435042
|
+
type: "object",
|
|
435043
|
+
properties: {
|
|
435044
|
+
index: {
|
|
435045
|
+
type: "integer"
|
|
435046
|
+
},
|
|
435047
|
+
searchable: {
|
|
435048
|
+
type: "boolean",
|
|
435049
|
+
description: "Indicates if the column is vectorized and searchable."
|
|
435050
|
+
},
|
|
435051
|
+
typings: {
|
|
435052
|
+
type: "string",
|
|
435053
|
+
description: 'TypeScript typings for the column. Recommended if the type is "object", ex: "\\{ foo: string; bar: number \\}"'
|
|
435054
|
+
}
|
|
435055
|
+
},
|
|
435056
|
+
required: ["index"],
|
|
435057
|
+
additionalProperties: false
|
|
435058
|
+
}
|
|
435059
|
+
},
|
|
435060
|
+
required: ["type", "x-zui"],
|
|
435061
|
+
additionalProperties: false
|
|
434541
435062
|
},
|
|
434542
|
-
|
|
434543
|
-
|
|
434544
|
-
|
|
435063
|
+
description: "List of keys/columns in the table."
|
|
435064
|
+
},
|
|
435065
|
+
additionalProperties: {
|
|
435066
|
+
type: "boolean",
|
|
435067
|
+
enum: [false]
|
|
435068
|
+
},
|
|
435069
|
+
required: {
|
|
435070
|
+
type: "array",
|
|
435071
|
+
items: {
|
|
435072
|
+
type: "string"
|
|
434545
435073
|
},
|
|
434546
|
-
|
|
434547
|
-
type: "object",
|
|
434548
|
-
properties: {},
|
|
434549
|
-
additionalProperties: true
|
|
434550
|
-
}
|
|
435074
|
+
description: "Array of required properties."
|
|
434551
435075
|
},
|
|
434552
|
-
|
|
435076
|
+
type: {
|
|
435077
|
+
type: "string",
|
|
435078
|
+
enum: ["object"]
|
|
435079
|
+
}
|
|
434553
435080
|
},
|
|
434554
|
-
|
|
434555
|
-
|
|
434556
|
-
},
|
|
434557
|
-
schema: {
|
|
434558
|
-
type: "object",
|
|
434559
|
-
additionalProperties: true,
|
|
434560
|
-
description: "Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed."
|
|
435081
|
+
required: ["$schema", "properties", "additionalProperties", "type"],
|
|
435082
|
+
additionalProperties: false
|
|
434561
435083
|
},
|
|
434562
435084
|
tags: {
|
|
434563
435085
|
type: "object",
|
|
@@ -434575,7 +435097,7 @@ var state = {
|
|
|
434575
435097
|
description: "Timestamp of the last table update."
|
|
434576
435098
|
}
|
|
434577
435099
|
},
|
|
434578
|
-
required: ["id", "name", "
|
|
435100
|
+
required: ["id", "name", "schema"],
|
|
434579
435101
|
additionalProperties: false
|
|
434580
435102
|
}
|
|
434581
435103
|
},
|
|
@@ -434737,6 +435259,19 @@ var state = {
|
|
|
434737
435259
|
name: "action",
|
|
434738
435260
|
operations: ["callAction"]
|
|
434739
435261
|
},
|
|
435262
|
+
{
|
|
435263
|
+
description: "",
|
|
435264
|
+
title: "Task",
|
|
435265
|
+
name: "task",
|
|
435266
|
+
operations: [
|
|
435267
|
+
"getTask",
|
|
435268
|
+
"createTask",
|
|
435269
|
+
"updateTask",
|
|
435270
|
+
"deleteTask",
|
|
435271
|
+
"listTasks"
|
|
435272
|
+
],
|
|
435273
|
+
schema: "Task"
|
|
435274
|
+
},
|
|
434740
435275
|
{
|
|
434741
435276
|
title: "Bot",
|
|
434742
435277
|
description: "",
|
|
@@ -434789,6 +435324,7 @@ var state = {
|
|
|
434789
435324
|
"getWorkspaceQuota",
|
|
434790
435325
|
"listWorkspaceQuotas",
|
|
434791
435326
|
"updateWorkspace",
|
|
435327
|
+
"checkHandleAvailability",
|
|
434792
435328
|
"listWorkspaces",
|
|
434793
435329
|
"changeWorkspacePlan",
|
|
434794
435330
|
"deleteWorkspace",
|