@botpress/api 0.80.0 → 0.83.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 +472 -739
- package/dist/src/gen/state.d.ts +286 -0
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +315 -5
package/src/gen/state.ts
CHANGED
|
@@ -1763,6 +1763,16 @@ export const state = {
|
|
|
1763
1763
|
"yearly"
|
|
1764
1764
|
],
|
|
1765
1765
|
"description": "Recurring schedule on which `register()` will be called on the integration"
|
|
1766
|
+
},
|
|
1767
|
+
"sandboxIdentifiers": {
|
|
1768
|
+
"type": "object",
|
|
1769
|
+
"additionalProperties": {
|
|
1770
|
+
"type": "object",
|
|
1771
|
+
"nullable": true,
|
|
1772
|
+
"additionalProperties": false
|
|
1773
|
+
},
|
|
1774
|
+
"nullable": true,
|
|
1775
|
+
"description": "Sandbox identifiers for the integration. Setting this to null will remove all sandbox identifiers. Setting an individual sandbox identifier to null will remove that sandbox identifier. This is an experimental feature meant to be used by specific integrations."
|
|
1766
1776
|
}
|
|
1767
1777
|
},
|
|
1768
1778
|
"title": "configureIntegrationBody",
|
|
@@ -3195,6 +3205,22 @@ export const state = {
|
|
|
3195
3205
|
"description": "Global identifier configuration of the [Integration](#schema_integration)",
|
|
3196
3206
|
"additionalProperties": false
|
|
3197
3207
|
},
|
|
3208
|
+
"sandbox": {
|
|
3209
|
+
"type": "object",
|
|
3210
|
+
"properties": {
|
|
3211
|
+
"identifierExtractScript": {
|
|
3212
|
+
"type": "string",
|
|
3213
|
+
"maxLength": 2000,
|
|
3214
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox"
|
|
3215
|
+
},
|
|
3216
|
+
"messageExtractScript": {
|
|
3217
|
+
"type": "string",
|
|
3218
|
+
"maxLength": 2000,
|
|
3219
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox"
|
|
3220
|
+
}
|
|
3221
|
+
},
|
|
3222
|
+
"additionalProperties": false
|
|
3223
|
+
},
|
|
3198
3224
|
"url": {
|
|
3199
3225
|
"type": "string",
|
|
3200
3226
|
"maxLength": 2000,
|
|
@@ -3896,6 +3922,22 @@ export const state = {
|
|
|
3896
3922
|
"description": "Global identifier configuration of the [Integration](#schema_integration)",
|
|
3897
3923
|
"additionalProperties": false
|
|
3898
3924
|
},
|
|
3925
|
+
"sandbox": {
|
|
3926
|
+
"type": "object",
|
|
3927
|
+
"properties": {
|
|
3928
|
+
"identifierExtractScript": {
|
|
3929
|
+
"type": "string",
|
|
3930
|
+
"maxLength": 2000,
|
|
3931
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox"
|
|
3932
|
+
},
|
|
3933
|
+
"messageExtractScript": {
|
|
3934
|
+
"type": "string",
|
|
3935
|
+
"maxLength": 2000,
|
|
3936
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox"
|
|
3937
|
+
}
|
|
3938
|
+
},
|
|
3939
|
+
"additionalProperties": false
|
|
3940
|
+
},
|
|
3899
3941
|
"url": {
|
|
3900
3942
|
"type": "string",
|
|
3901
3943
|
"maxLength": 2000,
|
|
@@ -9969,6 +10011,22 @@ export const state = {
|
|
|
9969
10011
|
"additionalProperties": false
|
|
9970
10012
|
}
|
|
9971
10013
|
},
|
|
10014
|
+
"sandbox": {
|
|
10015
|
+
"type": "object",
|
|
10016
|
+
"properties": {
|
|
10017
|
+
"identifierExtractScript": {
|
|
10018
|
+
"type": "string",
|
|
10019
|
+
"maxLength": 2000,
|
|
10020
|
+
"nullable": true
|
|
10021
|
+
},
|
|
10022
|
+
"messageExtractScript": {
|
|
10023
|
+
"type": "string",
|
|
10024
|
+
"maxLength": 2000,
|
|
10025
|
+
"nullable": true
|
|
10026
|
+
}
|
|
10027
|
+
},
|
|
10028
|
+
"additionalProperties": false
|
|
10029
|
+
},
|
|
9972
10030
|
"secrets": {
|
|
9973
10031
|
"type": "object",
|
|
9974
10032
|
"additionalProperties": {
|
|
@@ -10536,6 +10594,22 @@ export const state = {
|
|
|
10536
10594
|
"additionalProperties": false
|
|
10537
10595
|
}
|
|
10538
10596
|
},
|
|
10597
|
+
"sandbox": {
|
|
10598
|
+
"type": "object",
|
|
10599
|
+
"properties": {
|
|
10600
|
+
"identifierExtractScript": {
|
|
10601
|
+
"type": "string",
|
|
10602
|
+
"maxLength": 2000,
|
|
10603
|
+
"nullable": true
|
|
10604
|
+
},
|
|
10605
|
+
"messageExtractScript": {
|
|
10606
|
+
"type": "string",
|
|
10607
|
+
"maxLength": 2000,
|
|
10608
|
+
"nullable": true
|
|
10609
|
+
}
|
|
10610
|
+
},
|
|
10611
|
+
"additionalProperties": false
|
|
10612
|
+
},
|
|
10539
10613
|
"secrets": {
|
|
10540
10614
|
"type": "object",
|
|
10541
10615
|
"additionalProperties": {
|
|
@@ -10637,14 +10711,19 @@ export const state = {
|
|
|
10637
10711
|
},
|
|
10638
10712
|
"visibility": {
|
|
10639
10713
|
"type": "string",
|
|
10640
|
-
"description": "Filter integrations by visibility (public, private
|
|
10714
|
+
"description": "Filter integrations by visibility (public, private)",
|
|
10641
10715
|
"in": "query",
|
|
10642
10716
|
"enum": [
|
|
10643
10717
|
"public",
|
|
10644
|
-
"private"
|
|
10645
|
-
"installed"
|
|
10718
|
+
"private"
|
|
10646
10719
|
]
|
|
10647
10720
|
},
|
|
10721
|
+
"installedByBotId": {
|
|
10722
|
+
"in": "query",
|
|
10723
|
+
"description": "Bot ID. Required when filtering for installed integrations",
|
|
10724
|
+
"type": "string",
|
|
10725
|
+
"required": false
|
|
10726
|
+
},
|
|
10648
10727
|
"verificationStatus": {
|
|
10649
10728
|
"type": "string",
|
|
10650
10729
|
"description": "Filter integrations by verification status",
|
|
@@ -14318,6 +14397,211 @@ export const state = {
|
|
|
14318
14397
|
}
|
|
14319
14398
|
}
|
|
14320
14399
|
},
|
|
14400
|
+
"createKnowledgeBase": {
|
|
14401
|
+
"name": "createKnowledgeBase",
|
|
14402
|
+
"path": "/v1/files/knowledge-bases",
|
|
14403
|
+
"description": "Creates a knowledge base for grouping files.",
|
|
14404
|
+
"method": "post",
|
|
14405
|
+
"requestBody": {
|
|
14406
|
+
"description": "Properties of the knowledge base.",
|
|
14407
|
+
"schema": {
|
|
14408
|
+
"type": "object",
|
|
14409
|
+
"properties": {
|
|
14410
|
+
"name": {
|
|
14411
|
+
"type": "string",
|
|
14412
|
+
"description": "Name of the knowledge base."
|
|
14413
|
+
}
|
|
14414
|
+
},
|
|
14415
|
+
"required": [
|
|
14416
|
+
"name"
|
|
14417
|
+
],
|
|
14418
|
+
"title": "createKnowledgeBaseBody",
|
|
14419
|
+
"additionalProperties": false
|
|
14420
|
+
}
|
|
14421
|
+
},
|
|
14422
|
+
"contentType": "application/json",
|
|
14423
|
+
"section": "files",
|
|
14424
|
+
"response": {
|
|
14425
|
+
"description": "The created knowledge base",
|
|
14426
|
+
"schema": {
|
|
14427
|
+
"type": "object",
|
|
14428
|
+
"properties": {
|
|
14429
|
+
"knowledgeBase": {
|
|
14430
|
+
"type": "object",
|
|
14431
|
+
"properties": {
|
|
14432
|
+
"id": {
|
|
14433
|
+
"type": "string",
|
|
14434
|
+
"description": "Knowledge base ID"
|
|
14435
|
+
},
|
|
14436
|
+
"name": {
|
|
14437
|
+
"type": "string",
|
|
14438
|
+
"description": "Name of the knowledge base."
|
|
14439
|
+
}
|
|
14440
|
+
},
|
|
14441
|
+
"required": [
|
|
14442
|
+
"id",
|
|
14443
|
+
"name"
|
|
14444
|
+
],
|
|
14445
|
+
"additionalProperties": false
|
|
14446
|
+
}
|
|
14447
|
+
},
|
|
14448
|
+
"required": [
|
|
14449
|
+
"knowledgeBase"
|
|
14450
|
+
],
|
|
14451
|
+
"title": "createKnowledgeBaseResponse",
|
|
14452
|
+
"additionalProperties": false
|
|
14453
|
+
}
|
|
14454
|
+
},
|
|
14455
|
+
"parameters": {}
|
|
14456
|
+
},
|
|
14457
|
+
"deleteKnowledgeBase": {
|
|
14458
|
+
"name": "deleteKnowledgeBase",
|
|
14459
|
+
"path": "/v1/files/knowledge-bases/{id}",
|
|
14460
|
+
"description": "Deletes a knowledge base.",
|
|
14461
|
+
"method": "delete",
|
|
14462
|
+
"section": "files",
|
|
14463
|
+
"parameters": {
|
|
14464
|
+
"id": {
|
|
14465
|
+
"type": "string",
|
|
14466
|
+
"description": "Knowledge base ID",
|
|
14467
|
+
"in": "path"
|
|
14468
|
+
}
|
|
14469
|
+
},
|
|
14470
|
+
"response": {
|
|
14471
|
+
"description": "Empty response.",
|
|
14472
|
+
"schema": {
|
|
14473
|
+
"type": "object",
|
|
14474
|
+
"title": "deleteKnowledgeBaseResponse",
|
|
14475
|
+
"additionalProperties": false
|
|
14476
|
+
}
|
|
14477
|
+
}
|
|
14478
|
+
},
|
|
14479
|
+
"updateKnowledgeBase": {
|
|
14480
|
+
"name": "updateKnowledgeBase",
|
|
14481
|
+
"path": "/v1/files/knowledge-bases/{id}",
|
|
14482
|
+
"description": "Updates a knowledge base.",
|
|
14483
|
+
"method": "put",
|
|
14484
|
+
"section": "files",
|
|
14485
|
+
"parameters": {
|
|
14486
|
+
"id": {
|
|
14487
|
+
"type": "string",
|
|
14488
|
+
"description": "Knowledge base ID",
|
|
14489
|
+
"in": "path"
|
|
14490
|
+
}
|
|
14491
|
+
},
|
|
14492
|
+
"requestBody": {
|
|
14493
|
+
"description": "Properties of the knowledge base to update.",
|
|
14494
|
+
"schema": {
|
|
14495
|
+
"type": "object",
|
|
14496
|
+
"properties": {
|
|
14497
|
+
"name": {
|
|
14498
|
+
"type": "string",
|
|
14499
|
+
"description": "New name of the knowledge base."
|
|
14500
|
+
}
|
|
14501
|
+
},
|
|
14502
|
+
"required": [
|
|
14503
|
+
"name"
|
|
14504
|
+
],
|
|
14505
|
+
"title": "updateKnowledgeBaseBody",
|
|
14506
|
+
"additionalProperties": false
|
|
14507
|
+
}
|
|
14508
|
+
},
|
|
14509
|
+
"contentType": "application/json",
|
|
14510
|
+
"response": {
|
|
14511
|
+
"description": "The updated knowledge base",
|
|
14512
|
+
"schema": {
|
|
14513
|
+
"type": "object",
|
|
14514
|
+
"properties": {
|
|
14515
|
+
"knowledgeBase": {
|
|
14516
|
+
"type": "object",
|
|
14517
|
+
"properties": {
|
|
14518
|
+
"id": {
|
|
14519
|
+
"type": "string",
|
|
14520
|
+
"description": "Knowledge base ID"
|
|
14521
|
+
},
|
|
14522
|
+
"name": {
|
|
14523
|
+
"type": "string",
|
|
14524
|
+
"description": "Name of the knowledge base."
|
|
14525
|
+
}
|
|
14526
|
+
},
|
|
14527
|
+
"required": [
|
|
14528
|
+
"id",
|
|
14529
|
+
"name"
|
|
14530
|
+
],
|
|
14531
|
+
"additionalProperties": false
|
|
14532
|
+
}
|
|
14533
|
+
},
|
|
14534
|
+
"required": [
|
|
14535
|
+
"knowledgeBase"
|
|
14536
|
+
],
|
|
14537
|
+
"title": "updateKnowledgeBaseResponse",
|
|
14538
|
+
"additionalProperties": false
|
|
14539
|
+
}
|
|
14540
|
+
}
|
|
14541
|
+
},
|
|
14542
|
+
"listKnowledgeBases": {
|
|
14543
|
+
"name": "listKnowledgeBases",
|
|
14544
|
+
"path": "/v1/files/knowledge-bases",
|
|
14545
|
+
"description": "List knowledge bases for bot",
|
|
14546
|
+
"method": "get",
|
|
14547
|
+
"section": "files",
|
|
14548
|
+
"parameters": {
|
|
14549
|
+
"nextToken": {
|
|
14550
|
+
"in": "query",
|
|
14551
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
14552
|
+
"type": "string"
|
|
14553
|
+
}
|
|
14554
|
+
},
|
|
14555
|
+
"response": {
|
|
14556
|
+
"description": "Returns the list of knowledge bases for the bot.",
|
|
14557
|
+
"schema": {
|
|
14558
|
+
"type": "object",
|
|
14559
|
+
"properties": {
|
|
14560
|
+
"knowledgeBases": {
|
|
14561
|
+
"type": "array",
|
|
14562
|
+
"items": {
|
|
14563
|
+
"type": "object",
|
|
14564
|
+
"properties": {
|
|
14565
|
+
"id": {
|
|
14566
|
+
"type": "string",
|
|
14567
|
+
"description": "Knowledge base ID"
|
|
14568
|
+
},
|
|
14569
|
+
"name": {
|
|
14570
|
+
"type": "string",
|
|
14571
|
+
"description": "Name of the knowledge base."
|
|
14572
|
+
},
|
|
14573
|
+
"createdAt": {
|
|
14574
|
+
"type": "string",
|
|
14575
|
+
"description": "Knowledge base creation timestamp in ISO 8601 format"
|
|
14576
|
+
}
|
|
14577
|
+
},
|
|
14578
|
+
"required": [
|
|
14579
|
+
"id",
|
|
14580
|
+
"name",
|
|
14581
|
+
"createdAt"
|
|
14582
|
+
]
|
|
14583
|
+
}
|
|
14584
|
+
},
|
|
14585
|
+
"meta": {
|
|
14586
|
+
"type": "object",
|
|
14587
|
+
"properties": {
|
|
14588
|
+
"nextToken": {
|
|
14589
|
+
"type": "string",
|
|
14590
|
+
"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."
|
|
14591
|
+
}
|
|
14592
|
+
},
|
|
14593
|
+
"additionalProperties": false
|
|
14594
|
+
}
|
|
14595
|
+
},
|
|
14596
|
+
"required": [
|
|
14597
|
+
"knowledgeBases",
|
|
14598
|
+
"meta"
|
|
14599
|
+
],
|
|
14600
|
+
"title": "listKnowledgeBasesResponse",
|
|
14601
|
+
"additionalProperties": false
|
|
14602
|
+
}
|
|
14603
|
+
}
|
|
14604
|
+
},
|
|
14321
14605
|
"listTables": {
|
|
14322
14606
|
"name": "listTables",
|
|
14323
14607
|
"path": "/v1/tables",
|
|
@@ -15529,7 +15813,7 @@ export const state = {
|
|
|
15529
15813
|
"title": "Botpress API",
|
|
15530
15814
|
"description": "API for Botpress Cloud",
|
|
15531
15815
|
"server": "https://api.botpress.cloud",
|
|
15532
|
-
"version": "0.
|
|
15816
|
+
"version": "0.83.0",
|
|
15533
15817
|
"prefix": "v1"
|
|
15534
15818
|
},
|
|
15535
15819
|
"errors": [
|
|
@@ -15710,6 +15994,8 @@ export const state = {
|
|
|
15710
15994
|
"upsertFileBody": true,
|
|
15711
15995
|
"updateFileMetadataBody": true,
|
|
15712
15996
|
"copyFileBody": true,
|
|
15997
|
+
"createKnowledgeBaseBody": true,
|
|
15998
|
+
"updateKnowledgeBaseBody": true,
|
|
15713
15999
|
"getOrCreateTableBody": true,
|
|
15714
16000
|
"createTableBody": true,
|
|
15715
16001
|
"duplicateTableBody": true,
|
|
@@ -15862,6 +16148,10 @@ export const state = {
|
|
|
15862
16148
|
"listFilePassagesResponse": true,
|
|
15863
16149
|
"listFileTagsResponse": true,
|
|
15864
16150
|
"listFileTagValuesResponse": true,
|
|
16151
|
+
"createKnowledgeBaseResponse": true,
|
|
16152
|
+
"deleteKnowledgeBaseResponse": true,
|
|
16153
|
+
"updateKnowledgeBaseResponse": true,
|
|
16154
|
+
"listKnowledgeBasesResponse": true,
|
|
15865
16155
|
"listTablesResponse": true,
|
|
15866
16156
|
"getTableResponse": true,
|
|
15867
16157
|
"getOrCreateTableResponse": true,
|
|
@@ -16475,6 +16765,22 @@ export const state = {
|
|
|
16475
16765
|
"description": "Global identifier configuration of the [Integration](#schema_integration)",
|
|
16476
16766
|
"additionalProperties": false
|
|
16477
16767
|
},
|
|
16768
|
+
"sandbox": {
|
|
16769
|
+
"type": "object",
|
|
16770
|
+
"properties": {
|
|
16771
|
+
"identifierExtractScript": {
|
|
16772
|
+
"type": "string",
|
|
16773
|
+
"maxLength": 2000,
|
|
16774
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox"
|
|
16775
|
+
},
|
|
16776
|
+
"messageExtractScript": {
|
|
16777
|
+
"type": "string",
|
|
16778
|
+
"maxLength": 2000,
|
|
16779
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox"
|
|
16780
|
+
}
|
|
16781
|
+
},
|
|
16782
|
+
"additionalProperties": false
|
|
16783
|
+
},
|
|
16478
16784
|
"url": {
|
|
16479
16785
|
"type": "string",
|
|
16480
16786
|
"maxLength": 2000,
|
|
@@ -19428,7 +19734,11 @@ export const state = {
|
|
|
19428
19734
|
"searchFiles",
|
|
19429
19735
|
"listFilePassages",
|
|
19430
19736
|
"listFileTags",
|
|
19431
|
-
"listFileTagValues"
|
|
19737
|
+
"listFileTagValues",
|
|
19738
|
+
"createKnowledgeBase",
|
|
19739
|
+
"deleteKnowledgeBase",
|
|
19740
|
+
"updateKnowledgeBase",
|
|
19741
|
+
"listKnowledgeBases"
|
|
19432
19742
|
],
|
|
19433
19743
|
"schema": "File"
|
|
19434
19744
|
}
|