@botpress/api 0.30.0 → 0.30.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 +155 -51
- package/dist/src/gen/state.d.ts +113 -23
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +155 -51
package/src/gen/state.ts
CHANGED
|
@@ -6353,6 +6353,113 @@ export const state = {
|
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
6355
|
},
|
|
6356
|
+
"listPublicWorkspaces": {
|
|
6357
|
+
"name": "listPublicWorkspaces",
|
|
6358
|
+
"description": "List public workspaces",
|
|
6359
|
+
"section": "workspace",
|
|
6360
|
+
"method": "get",
|
|
6361
|
+
"path": "/v1/admin/workspaces/public",
|
|
6362
|
+
"disableDefaultParameters": {
|
|
6363
|
+
"x-workspace-id": true
|
|
6364
|
+
},
|
|
6365
|
+
"parameters": {
|
|
6366
|
+
"nextToken": {
|
|
6367
|
+
"in": "query",
|
|
6368
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
6369
|
+
"type": "string"
|
|
6370
|
+
},
|
|
6371
|
+
"workspaceIds": {
|
|
6372
|
+
"in": "query",
|
|
6373
|
+
"description": "Ids of the workspaces to list",
|
|
6374
|
+
"type": "string[]",
|
|
6375
|
+
"required": false
|
|
6376
|
+
},
|
|
6377
|
+
"search": {
|
|
6378
|
+
"in": "query",
|
|
6379
|
+
"description": "Search query",
|
|
6380
|
+
"type": "string",
|
|
6381
|
+
"required": false
|
|
6382
|
+
}
|
|
6383
|
+
},
|
|
6384
|
+
"response": {
|
|
6385
|
+
"description": "Success",
|
|
6386
|
+
"schema": {
|
|
6387
|
+
"type": "object",
|
|
6388
|
+
"properties": {
|
|
6389
|
+
"workspaces": {
|
|
6390
|
+
"type": "array",
|
|
6391
|
+
"items": {
|
|
6392
|
+
"type": "object",
|
|
6393
|
+
"properties": {
|
|
6394
|
+
"id": {
|
|
6395
|
+
"type": "string"
|
|
6396
|
+
},
|
|
6397
|
+
"name": {
|
|
6398
|
+
"type": "string"
|
|
6399
|
+
},
|
|
6400
|
+
"createdAt": {
|
|
6401
|
+
"type": "string"
|
|
6402
|
+
},
|
|
6403
|
+
"updatedAt": {
|
|
6404
|
+
"type": "string"
|
|
6405
|
+
},
|
|
6406
|
+
"about": {
|
|
6407
|
+
"default": "",
|
|
6408
|
+
"type": "string"
|
|
6409
|
+
},
|
|
6410
|
+
"profilePicture": {
|
|
6411
|
+
"default": "",
|
|
6412
|
+
"type": "string"
|
|
6413
|
+
},
|
|
6414
|
+
"contactEmail": {
|
|
6415
|
+
"default": "",
|
|
6416
|
+
"type": "string"
|
|
6417
|
+
},
|
|
6418
|
+
"website": {
|
|
6419
|
+
"default": "",
|
|
6420
|
+
"type": "string"
|
|
6421
|
+
},
|
|
6422
|
+
"socialAccounts": {
|
|
6423
|
+
"default": [],
|
|
6424
|
+
"type": "array",
|
|
6425
|
+
"items": {
|
|
6426
|
+
"type": "string"
|
|
6427
|
+
}
|
|
6428
|
+
},
|
|
6429
|
+
"handle": {
|
|
6430
|
+
"default": "",
|
|
6431
|
+
"type": "string"
|
|
6432
|
+
}
|
|
6433
|
+
},
|
|
6434
|
+
"required": [
|
|
6435
|
+
"id",
|
|
6436
|
+
"name",
|
|
6437
|
+
"createdAt",
|
|
6438
|
+
"updatedAt"
|
|
6439
|
+
],
|
|
6440
|
+
"title": "getPublicWorkspaceResponse"
|
|
6441
|
+
}
|
|
6442
|
+
},
|
|
6443
|
+
"meta": {
|
|
6444
|
+
"type": "object",
|
|
6445
|
+
"properties": {
|
|
6446
|
+
"nextToken": {
|
|
6447
|
+
"type": "string",
|
|
6448
|
+
"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."
|
|
6449
|
+
}
|
|
6450
|
+
},
|
|
6451
|
+
"additionalProperties": false
|
|
6452
|
+
}
|
|
6453
|
+
},
|
|
6454
|
+
"required": [
|
|
6455
|
+
"workspaces",
|
|
6456
|
+
"meta"
|
|
6457
|
+
],
|
|
6458
|
+
"title": "listPublicWorkspacesResponse",
|
|
6459
|
+
"additionalProperties": false
|
|
6460
|
+
}
|
|
6461
|
+
}
|
|
6462
|
+
},
|
|
6356
6463
|
"deleteWorkspace": {
|
|
6357
6464
|
"name": "deleteWorkspace",
|
|
6358
6465
|
"description": "Delete workspace",
|
|
@@ -8471,19 +8578,19 @@ export const state = {
|
|
|
8471
8578
|
},
|
|
8472
8579
|
"parameters": {}
|
|
8473
8580
|
},
|
|
8474
|
-
"
|
|
8475
|
-
"name": "
|
|
8581
|
+
"upsertFile": {
|
|
8582
|
+
"name": "upsertFile",
|
|
8476
8583
|
"path": "/v1/files",
|
|
8477
|
-
"description": "Creates a file
|
|
8478
|
-
"method": "
|
|
8584
|
+
"description": "Creates or updates a file using the `key` parameter as unique identifier. Updating a file will erase the existing content of the file. Upload the file content by sending it in a PUT request to the `uploadUrl` returned in the response.",
|
|
8585
|
+
"method": "put",
|
|
8479
8586
|
"requestBody": {
|
|
8480
|
-
"description": "
|
|
8587
|
+
"description": "Properties of the file to create or update.",
|
|
8481
8588
|
"schema": {
|
|
8482
8589
|
"type": "object",
|
|
8483
8590
|
"properties": {
|
|
8484
|
-
"
|
|
8591
|
+
"key": {
|
|
8485
8592
|
"type": "string",
|
|
8486
|
-
"description": "
|
|
8593
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8487
8594
|
},
|
|
8488
8595
|
"tags": {
|
|
8489
8596
|
"type": "object",
|
|
@@ -8495,12 +8602,12 @@ export const state = {
|
|
|
8495
8602
|
},
|
|
8496
8603
|
"size": {
|
|
8497
8604
|
"type": "number",
|
|
8498
|
-
"description": "File size in bytes. This will count against your
|
|
8605
|
+
"description": "File size in bytes. This will count against your File Storage quota. If the `index` parameter is set to `true`, this will also count against your Vector DB Storage quota."
|
|
8499
8606
|
},
|
|
8500
8607
|
"index": {
|
|
8501
8608
|
"default": false,
|
|
8502
8609
|
"type": "boolean",
|
|
8503
|
-
"description": "Set to a value of 'true' to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota
|
|
8610
|
+
"description": "Set to a value of 'true' to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace."
|
|
8504
8611
|
},
|
|
8505
8612
|
"accessPolicies": {
|
|
8506
8613
|
"type": "array",
|
|
@@ -8515,20 +8622,21 @@ export const state = {
|
|
|
8515
8622
|
},
|
|
8516
8623
|
"contentType": {
|
|
8517
8624
|
"type": "string",
|
|
8518
|
-
"description": "File content type. If omitted, the content type will be inferred from the file extension
|
|
8625
|
+
"description": "File content type. If omitted, the content type will be inferred from the file extension (if any) specified in `key`. If a content type cannot be inferred, the default is \"application/octet-stream\"."
|
|
8519
8626
|
}
|
|
8520
8627
|
},
|
|
8521
8628
|
"required": [
|
|
8629
|
+
"key",
|
|
8522
8630
|
"size"
|
|
8523
8631
|
],
|
|
8524
|
-
"title": "
|
|
8632
|
+
"title": "upsertFileBody",
|
|
8525
8633
|
"additionalProperties": false
|
|
8526
8634
|
}
|
|
8527
8635
|
},
|
|
8528
8636
|
"contentType": "application/json",
|
|
8529
8637
|
"section": "files",
|
|
8530
8638
|
"response": {
|
|
8531
|
-
"description": "The created file",
|
|
8639
|
+
"description": "The created or updated file",
|
|
8532
8640
|
"schema": {
|
|
8533
8641
|
"type": "object",
|
|
8534
8642
|
"properties": {
|
|
@@ -8543,10 +8651,9 @@ export const state = {
|
|
|
8543
8651
|
"type": "string",
|
|
8544
8652
|
"description": "The ID of the bot the file belongs to"
|
|
8545
8653
|
},
|
|
8546
|
-
"
|
|
8654
|
+
"key": {
|
|
8547
8655
|
"type": "string",
|
|
8548
|
-
"description": "
|
|
8549
|
-
"nullable": true
|
|
8656
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8550
8657
|
},
|
|
8551
8658
|
"size": {
|
|
8552
8659
|
"type": "number",
|
|
@@ -8612,7 +8719,7 @@ export const state = {
|
|
|
8612
8719
|
"required": [
|
|
8613
8720
|
"id",
|
|
8614
8721
|
"botId",
|
|
8615
|
-
"
|
|
8722
|
+
"key",
|
|
8616
8723
|
"size",
|
|
8617
8724
|
"contentType",
|
|
8618
8725
|
"tags",
|
|
@@ -8629,7 +8736,7 @@ export const state = {
|
|
|
8629
8736
|
"required": [
|
|
8630
8737
|
"file"
|
|
8631
8738
|
],
|
|
8632
|
-
"title": "
|
|
8739
|
+
"title": "upsertFileResponse",
|
|
8633
8740
|
"additionalProperties": false
|
|
8634
8741
|
}
|
|
8635
8742
|
},
|
|
@@ -8699,10 +8806,9 @@ export const state = {
|
|
|
8699
8806
|
"type": "string",
|
|
8700
8807
|
"description": "The ID of the bot the file belongs to"
|
|
8701
8808
|
},
|
|
8702
|
-
"
|
|
8809
|
+
"key": {
|
|
8703
8810
|
"type": "string",
|
|
8704
|
-
"description": "
|
|
8705
|
-
"nullable": true
|
|
8811
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8706
8812
|
},
|
|
8707
8813
|
"url": {
|
|
8708
8814
|
"type": "string",
|
|
@@ -8769,7 +8875,7 @@ export const state = {
|
|
|
8769
8875
|
"required": [
|
|
8770
8876
|
"id",
|
|
8771
8877
|
"botId",
|
|
8772
|
-
"
|
|
8878
|
+
"key",
|
|
8773
8879
|
"url",
|
|
8774
8880
|
"size",
|
|
8775
8881
|
"contentType",
|
|
@@ -8831,10 +8937,9 @@ export const state = {
|
|
|
8831
8937
|
"type": "string",
|
|
8832
8938
|
"description": "The ID of the bot the file belongs to"
|
|
8833
8939
|
},
|
|
8834
|
-
"
|
|
8940
|
+
"key": {
|
|
8835
8941
|
"type": "string",
|
|
8836
|
-
"description": "
|
|
8837
|
-
"nullable": true
|
|
8942
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8838
8943
|
},
|
|
8839
8944
|
"url": {
|
|
8840
8945
|
"type": "string",
|
|
@@ -8901,7 +9006,7 @@ export const state = {
|
|
|
8901
9006
|
"required": [
|
|
8902
9007
|
"id",
|
|
8903
9008
|
"botId",
|
|
8904
|
-
"
|
|
9009
|
+
"key",
|
|
8905
9010
|
"url",
|
|
8906
9011
|
"size",
|
|
8907
9012
|
"contentType",
|
|
@@ -8923,10 +9028,10 @@ export const state = {
|
|
|
8923
9028
|
}
|
|
8924
9029
|
}
|
|
8925
9030
|
},
|
|
8926
|
-
"
|
|
8927
|
-
"name": "
|
|
9031
|
+
"updateFileMetadata": {
|
|
9032
|
+
"name": "updateFileMetadata",
|
|
8928
9033
|
"path": "/v1/files/{id}",
|
|
8929
|
-
"description": "Update file",
|
|
9034
|
+
"description": "Update file metadata, without updating the file content.",
|
|
8930
9035
|
"method": "put",
|
|
8931
9036
|
"section": "files",
|
|
8932
9037
|
"parameters": {
|
|
@@ -8962,7 +9067,7 @@ export const state = {
|
|
|
8962
9067
|
"description": "New access policies to set for the file. Omit to keep existing policies intact."
|
|
8963
9068
|
}
|
|
8964
9069
|
},
|
|
8965
|
-
"title": "
|
|
9070
|
+
"title": "updateFileMetadataBody",
|
|
8966
9071
|
"additionalProperties": false
|
|
8967
9072
|
}
|
|
8968
9073
|
},
|
|
@@ -8982,10 +9087,9 @@ export const state = {
|
|
|
8982
9087
|
"type": "string",
|
|
8983
9088
|
"description": "The ID of the bot the file belongs to"
|
|
8984
9089
|
},
|
|
8985
|
-
"
|
|
9090
|
+
"key": {
|
|
8986
9091
|
"type": "string",
|
|
8987
|
-
"description": "
|
|
8988
|
-
"nullable": true
|
|
9092
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8989
9093
|
},
|
|
8990
9094
|
"url": {
|
|
8991
9095
|
"type": "string",
|
|
@@ -9052,7 +9156,7 @@ export const state = {
|
|
|
9052
9156
|
"required": [
|
|
9053
9157
|
"id",
|
|
9054
9158
|
"botId",
|
|
9055
|
-
"
|
|
9159
|
+
"key",
|
|
9056
9160
|
"url",
|
|
9057
9161
|
"size",
|
|
9058
9162
|
"contentType",
|
|
@@ -9069,7 +9173,7 @@ export const state = {
|
|
|
9069
9173
|
"required": [
|
|
9070
9174
|
"file"
|
|
9071
9175
|
],
|
|
9072
|
-
"title": "
|
|
9176
|
+
"title": "updateFileMetadataResponse",
|
|
9073
9177
|
"additionalProperties": false
|
|
9074
9178
|
}
|
|
9075
9179
|
}
|
|
@@ -9134,11 +9238,6 @@ export const state = {
|
|
|
9134
9238
|
"type": "string",
|
|
9135
9239
|
"description": "File ID"
|
|
9136
9240
|
},
|
|
9137
|
-
"name": {
|
|
9138
|
-
"type": "string",
|
|
9139
|
-
"description": "File name",
|
|
9140
|
-
"nullable": true
|
|
9141
|
-
},
|
|
9142
9241
|
"tags": {
|
|
9143
9242
|
"type": "object",
|
|
9144
9243
|
"additionalProperties": {
|
|
@@ -9158,7 +9257,6 @@ export const state = {
|
|
|
9158
9257
|
},
|
|
9159
9258
|
"required": [
|
|
9160
9259
|
"id",
|
|
9161
|
-
"name",
|
|
9162
9260
|
"tags",
|
|
9163
9261
|
"createdAt",
|
|
9164
9262
|
"updatedAt"
|
|
@@ -10082,7 +10180,7 @@ export const state = {
|
|
|
10082
10180
|
"title": "Botpress API",
|
|
10083
10181
|
"description": "API for Botpress Cloud",
|
|
10084
10182
|
"server": "https://api.botpress.cloud",
|
|
10085
|
-
"version": "0.30.
|
|
10183
|
+
"version": "0.30.2",
|
|
10086
10184
|
"prefix": "v1"
|
|
10087
10185
|
},
|
|
10088
10186
|
"errors": [
|
|
@@ -10156,6 +10254,11 @@ export const state = {
|
|
|
10156
10254
|
"type": "ReferenceConstraint",
|
|
10157
10255
|
"description": "The resource cannot be deleted because it's referenced by another resource"
|
|
10158
10256
|
},
|
|
10257
|
+
{
|
|
10258
|
+
"status": 409,
|
|
10259
|
+
"type": "ResourceLockedConflict",
|
|
10260
|
+
"description": "The resource is current locked and cannot be operated on until the lock is released."
|
|
10261
|
+
},
|
|
10159
10262
|
{
|
|
10160
10263
|
"status": 400,
|
|
10161
10264
|
"type": "ReferenceNotFound",
|
|
@@ -10243,8 +10346,8 @@ export const state = {
|
|
|
10243
10346
|
"updateIntegrationBody": true,
|
|
10244
10347
|
"changeAISpendQuotaBody": true,
|
|
10245
10348
|
"introspectBody": true,
|
|
10246
|
-
"
|
|
10247
|
-
"
|
|
10349
|
+
"upsertFileBody": true,
|
|
10350
|
+
"updateFileMetadataBody": true,
|
|
10248
10351
|
"getOrCreateTableBody": true,
|
|
10249
10352
|
"createTableBody": true,
|
|
10250
10353
|
"duplicateTableBody": true,
|
|
@@ -10333,6 +10436,7 @@ export const state = {
|
|
|
10333
10436
|
"updateWorkspaceResponse": true,
|
|
10334
10437
|
"checkHandleAvailabilityResponse": true,
|
|
10335
10438
|
"listWorkspacesResponse": true,
|
|
10439
|
+
"listPublicWorkspacesResponse": true,
|
|
10336
10440
|
"deleteWorkspaceResponse": true,
|
|
10337
10441
|
"getAuditRecordsResponse": true,
|
|
10338
10442
|
"listWorkspaceMembersResponse": true,
|
|
@@ -10356,11 +10460,11 @@ export const state = {
|
|
|
10356
10460
|
"changeAISpendQuotaResponse": true,
|
|
10357
10461
|
"listActivitiesResponse": true,
|
|
10358
10462
|
"introspectResponse": true,
|
|
10359
|
-
"
|
|
10463
|
+
"upsertFileResponse": true,
|
|
10360
10464
|
"deleteFileResponse": true,
|
|
10361
10465
|
"listFilesResponse": true,
|
|
10362
10466
|
"getFileResponse": true,
|
|
10363
|
-
"
|
|
10467
|
+
"updateFileMetadataResponse": true,
|
|
10364
10468
|
"searchFilesResponse": true,
|
|
10365
10469
|
"listTablesResponse": true,
|
|
10366
10470
|
"getTableResponse": true,
|
|
@@ -12616,10 +12720,9 @@ export const state = {
|
|
|
12616
12720
|
"type": "string",
|
|
12617
12721
|
"description": "The ID of the bot the file belongs to"
|
|
12618
12722
|
},
|
|
12619
|
-
"
|
|
12723
|
+
"key": {
|
|
12620
12724
|
"type": "string",
|
|
12621
|
-
"description": "
|
|
12622
|
-
"nullable": true
|
|
12725
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
12623
12726
|
},
|
|
12624
12727
|
"url": {
|
|
12625
12728
|
"type": "string",
|
|
@@ -12686,7 +12789,7 @@ export const state = {
|
|
|
12686
12789
|
"required": [
|
|
12687
12790
|
"id",
|
|
12688
12791
|
"botId",
|
|
12689
|
-
"
|
|
12792
|
+
"key",
|
|
12690
12793
|
"url",
|
|
12691
12794
|
"size",
|
|
12692
12795
|
"contentType",
|
|
@@ -12867,6 +12970,7 @@ export const state = {
|
|
|
12867
12970
|
"updateWorkspace",
|
|
12868
12971
|
"checkHandleAvailability",
|
|
12869
12972
|
"listWorkspaces",
|
|
12973
|
+
"listPublicWorkspaces",
|
|
12870
12974
|
"deleteWorkspace",
|
|
12871
12975
|
"getAuditRecords"
|
|
12872
12976
|
],
|
|
@@ -12962,11 +13066,11 @@ export const state = {
|
|
|
12962
13066
|
"description": "The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Office, HTML, CSV, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.",
|
|
12963
13067
|
"name": "files",
|
|
12964
13068
|
"operations": [
|
|
12965
|
-
"
|
|
13069
|
+
"upsertFile",
|
|
12966
13070
|
"deleteFile",
|
|
12967
13071
|
"listFiles",
|
|
12968
13072
|
"getFile",
|
|
12969
|
-
"
|
|
13073
|
+
"updateFileMetadata",
|
|
12970
13074
|
"searchFiles"
|
|
12971
13075
|
],
|
|
12972
13076
|
"schema": "File"
|