@botpress/api 0.80.0 → 0.83.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/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, installed)",
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",
@@ -12434,6 +12513,25 @@ export const state = {
12434
12513
  "type": "string",
12435
12514
  "maxLength": 200,
12436
12515
  "description": "Version of the [Plugin](#schema_plugin)"
12516
+ },
12517
+ "title": {
12518
+ "type": "string",
12519
+ "minLength": 1,
12520
+ "maxLength": 64,
12521
+ "description": "Title of the plugin. This is the name that will be displayed in the UI"
12522
+ },
12523
+ "description": {
12524
+ "type": "string",
12525
+ "maxLength": 256,
12526
+ "description": "Description of the plugin. This is the description that will be displayed in the UI"
12527
+ },
12528
+ "iconUrl": {
12529
+ "type": "string",
12530
+ "description": "URL of the icon of the plugin. This is the icon that will be displayed in the UI"
12531
+ },
12532
+ "readmeUrl": {
12533
+ "type": "string",
12534
+ "description": "URL of the readme of the plugin. This is the readme that will be displayed in the UI"
12437
12535
  }
12438
12536
  },
12439
12537
  "required": [
@@ -12441,7 +12539,11 @@ export const state = {
12441
12539
  "createdAt",
12442
12540
  "updatedAt",
12443
12541
  "name",
12444
- "version"
12542
+ "version",
12543
+ "title",
12544
+ "description",
12545
+ "iconUrl",
12546
+ "readmeUrl"
12445
12547
  ]
12446
12548
  }
12447
12549
  },
@@ -14318,6 +14420,211 @@ export const state = {
14318
14420
  }
14319
14421
  }
14320
14422
  },
14423
+ "createKnowledgeBase": {
14424
+ "name": "createKnowledgeBase",
14425
+ "path": "/v1/files/knowledge-bases",
14426
+ "description": "Creates a knowledge base for grouping files.",
14427
+ "method": "post",
14428
+ "requestBody": {
14429
+ "description": "Properties of the knowledge base.",
14430
+ "schema": {
14431
+ "type": "object",
14432
+ "properties": {
14433
+ "name": {
14434
+ "type": "string",
14435
+ "description": "Name of the knowledge base."
14436
+ }
14437
+ },
14438
+ "required": [
14439
+ "name"
14440
+ ],
14441
+ "title": "createKnowledgeBaseBody",
14442
+ "additionalProperties": false
14443
+ }
14444
+ },
14445
+ "contentType": "application/json",
14446
+ "section": "files",
14447
+ "response": {
14448
+ "description": "The created knowledge base",
14449
+ "schema": {
14450
+ "type": "object",
14451
+ "properties": {
14452
+ "knowledgeBase": {
14453
+ "type": "object",
14454
+ "properties": {
14455
+ "id": {
14456
+ "type": "string",
14457
+ "description": "Knowledge base ID"
14458
+ },
14459
+ "name": {
14460
+ "type": "string",
14461
+ "description": "Name of the knowledge base."
14462
+ }
14463
+ },
14464
+ "required": [
14465
+ "id",
14466
+ "name"
14467
+ ],
14468
+ "additionalProperties": false
14469
+ }
14470
+ },
14471
+ "required": [
14472
+ "knowledgeBase"
14473
+ ],
14474
+ "title": "createKnowledgeBaseResponse",
14475
+ "additionalProperties": false
14476
+ }
14477
+ },
14478
+ "parameters": {}
14479
+ },
14480
+ "deleteKnowledgeBase": {
14481
+ "name": "deleteKnowledgeBase",
14482
+ "path": "/v1/files/knowledge-bases/{id}",
14483
+ "description": "Deletes a knowledge base.",
14484
+ "method": "delete",
14485
+ "section": "files",
14486
+ "parameters": {
14487
+ "id": {
14488
+ "type": "string",
14489
+ "description": "Knowledge base ID",
14490
+ "in": "path"
14491
+ }
14492
+ },
14493
+ "response": {
14494
+ "description": "Empty response.",
14495
+ "schema": {
14496
+ "type": "object",
14497
+ "title": "deleteKnowledgeBaseResponse",
14498
+ "additionalProperties": false
14499
+ }
14500
+ }
14501
+ },
14502
+ "updateKnowledgeBase": {
14503
+ "name": "updateKnowledgeBase",
14504
+ "path": "/v1/files/knowledge-bases/{id}",
14505
+ "description": "Updates a knowledge base.",
14506
+ "method": "put",
14507
+ "section": "files",
14508
+ "parameters": {
14509
+ "id": {
14510
+ "type": "string",
14511
+ "description": "Knowledge base ID",
14512
+ "in": "path"
14513
+ }
14514
+ },
14515
+ "requestBody": {
14516
+ "description": "Properties of the knowledge base to update.",
14517
+ "schema": {
14518
+ "type": "object",
14519
+ "properties": {
14520
+ "name": {
14521
+ "type": "string",
14522
+ "description": "New name of the knowledge base."
14523
+ }
14524
+ },
14525
+ "required": [
14526
+ "name"
14527
+ ],
14528
+ "title": "updateKnowledgeBaseBody",
14529
+ "additionalProperties": false
14530
+ }
14531
+ },
14532
+ "contentType": "application/json",
14533
+ "response": {
14534
+ "description": "The updated knowledge base",
14535
+ "schema": {
14536
+ "type": "object",
14537
+ "properties": {
14538
+ "knowledgeBase": {
14539
+ "type": "object",
14540
+ "properties": {
14541
+ "id": {
14542
+ "type": "string",
14543
+ "description": "Knowledge base ID"
14544
+ },
14545
+ "name": {
14546
+ "type": "string",
14547
+ "description": "Name of the knowledge base."
14548
+ }
14549
+ },
14550
+ "required": [
14551
+ "id",
14552
+ "name"
14553
+ ],
14554
+ "additionalProperties": false
14555
+ }
14556
+ },
14557
+ "required": [
14558
+ "knowledgeBase"
14559
+ ],
14560
+ "title": "updateKnowledgeBaseResponse",
14561
+ "additionalProperties": false
14562
+ }
14563
+ }
14564
+ },
14565
+ "listKnowledgeBases": {
14566
+ "name": "listKnowledgeBases",
14567
+ "path": "/v1/files/knowledge-bases",
14568
+ "description": "List knowledge bases for bot",
14569
+ "method": "get",
14570
+ "section": "files",
14571
+ "parameters": {
14572
+ "nextToken": {
14573
+ "in": "query",
14574
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
14575
+ "type": "string"
14576
+ }
14577
+ },
14578
+ "response": {
14579
+ "description": "Returns the list of knowledge bases for the bot.",
14580
+ "schema": {
14581
+ "type": "object",
14582
+ "properties": {
14583
+ "knowledgeBases": {
14584
+ "type": "array",
14585
+ "items": {
14586
+ "type": "object",
14587
+ "properties": {
14588
+ "id": {
14589
+ "type": "string",
14590
+ "description": "Knowledge base ID"
14591
+ },
14592
+ "name": {
14593
+ "type": "string",
14594
+ "description": "Name of the knowledge base."
14595
+ },
14596
+ "createdAt": {
14597
+ "type": "string",
14598
+ "description": "Knowledge base creation timestamp in ISO 8601 format"
14599
+ }
14600
+ },
14601
+ "required": [
14602
+ "id",
14603
+ "name",
14604
+ "createdAt"
14605
+ ]
14606
+ }
14607
+ },
14608
+ "meta": {
14609
+ "type": "object",
14610
+ "properties": {
14611
+ "nextToken": {
14612
+ "type": "string",
14613
+ "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."
14614
+ }
14615
+ },
14616
+ "additionalProperties": false
14617
+ }
14618
+ },
14619
+ "required": [
14620
+ "knowledgeBases",
14621
+ "meta"
14622
+ ],
14623
+ "title": "listKnowledgeBasesResponse",
14624
+ "additionalProperties": false
14625
+ }
14626
+ }
14627
+ },
14321
14628
  "listTables": {
14322
14629
  "name": "listTables",
14323
14630
  "path": "/v1/tables",
@@ -15529,7 +15836,7 @@ export const state = {
15529
15836
  "title": "Botpress API",
15530
15837
  "description": "API for Botpress Cloud",
15531
15838
  "server": "https://api.botpress.cloud",
15532
- "version": "0.80.0",
15839
+ "version": "0.83.1",
15533
15840
  "prefix": "v1"
15534
15841
  },
15535
15842
  "errors": [
@@ -15710,6 +16017,8 @@ export const state = {
15710
16017
  "upsertFileBody": true,
15711
16018
  "updateFileMetadataBody": true,
15712
16019
  "copyFileBody": true,
16020
+ "createKnowledgeBaseBody": true,
16021
+ "updateKnowledgeBaseBody": true,
15713
16022
  "getOrCreateTableBody": true,
15714
16023
  "createTableBody": true,
15715
16024
  "duplicateTableBody": true,
@@ -15862,6 +16171,10 @@ export const state = {
15862
16171
  "listFilePassagesResponse": true,
15863
16172
  "listFileTagsResponse": true,
15864
16173
  "listFileTagValuesResponse": true,
16174
+ "createKnowledgeBaseResponse": true,
16175
+ "deleteKnowledgeBaseResponse": true,
16176
+ "updateKnowledgeBaseResponse": true,
16177
+ "listKnowledgeBasesResponse": true,
15865
16178
  "listTablesResponse": true,
15866
16179
  "getTableResponse": true,
15867
16180
  "getOrCreateTableResponse": true,
@@ -16475,6 +16788,22 @@ export const state = {
16475
16788
  "description": "Global identifier configuration of the [Integration](#schema_integration)",
16476
16789
  "additionalProperties": false
16477
16790
  },
16791
+ "sandbox": {
16792
+ "type": "object",
16793
+ "properties": {
16794
+ "identifierExtractScript": {
16795
+ "type": "string",
16796
+ "maxLength": 2000,
16797
+ "description": "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook used specifically for the sandbox"
16798
+ },
16799
+ "messageExtractScript": {
16800
+ "type": "string",
16801
+ "maxLength": 2000,
16802
+ "description": "VRL Script of the [Integration](#schema_integration) to extract the message from an incoming webhook used specifically for the sandbox"
16803
+ }
16804
+ },
16805
+ "additionalProperties": false
16806
+ },
16478
16807
  "url": {
16479
16808
  "type": "string",
16480
16809
  "maxLength": 2000,
@@ -19428,7 +19757,11 @@ export const state = {
19428
19757
  "searchFiles",
19429
19758
  "listFilePassages",
19430
19759
  "listFileTags",
19431
- "listFileTagValues"
19760
+ "listFileTagValues",
19761
+ "createKnowledgeBase",
19762
+ "deleteKnowledgeBase",
19763
+ "updateKnowledgeBase",
19764
+ "listKnowledgeBases"
19432
19765
  ],
19433
19766
  "schema": "File"
19434
19767
  }