@botpress/api 0.30.1 → 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 +46 -51
- package/dist/src/gen/state.d.ts +13 -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 +46 -51
package/src/gen/state.ts
CHANGED
|
@@ -8578,19 +8578,19 @@ export const state = {
|
|
|
8578
8578
|
},
|
|
8579
8579
|
"parameters": {}
|
|
8580
8580
|
},
|
|
8581
|
-
"
|
|
8582
|
-
"name": "
|
|
8581
|
+
"upsertFile": {
|
|
8582
|
+
"name": "upsertFile",
|
|
8583
8583
|
"path": "/v1/files",
|
|
8584
|
-
"description": "Creates a file
|
|
8585
|
-
"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",
|
|
8586
8586
|
"requestBody": {
|
|
8587
|
-
"description": "
|
|
8587
|
+
"description": "Properties of the file to create or update.",
|
|
8588
8588
|
"schema": {
|
|
8589
8589
|
"type": "object",
|
|
8590
8590
|
"properties": {
|
|
8591
|
-
"
|
|
8591
|
+
"key": {
|
|
8592
8592
|
"type": "string",
|
|
8593
|
-
"description": "
|
|
8593
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8594
8594
|
},
|
|
8595
8595
|
"tags": {
|
|
8596
8596
|
"type": "object",
|
|
@@ -8602,12 +8602,12 @@ export const state = {
|
|
|
8602
8602
|
},
|
|
8603
8603
|
"size": {
|
|
8604
8604
|
"type": "number",
|
|
8605
|
-
"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."
|
|
8606
8606
|
},
|
|
8607
8607
|
"index": {
|
|
8608
8608
|
"default": false,
|
|
8609
8609
|
"type": "boolean",
|
|
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 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."
|
|
8611
8611
|
},
|
|
8612
8612
|
"accessPolicies": {
|
|
8613
8613
|
"type": "array",
|
|
@@ -8622,20 +8622,21 @@ export const state = {
|
|
|
8622
8622
|
},
|
|
8623
8623
|
"contentType": {
|
|
8624
8624
|
"type": "string",
|
|
8625
|
-
"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\"."
|
|
8626
8626
|
}
|
|
8627
8627
|
},
|
|
8628
8628
|
"required": [
|
|
8629
|
+
"key",
|
|
8629
8630
|
"size"
|
|
8630
8631
|
],
|
|
8631
|
-
"title": "
|
|
8632
|
+
"title": "upsertFileBody",
|
|
8632
8633
|
"additionalProperties": false
|
|
8633
8634
|
}
|
|
8634
8635
|
},
|
|
8635
8636
|
"contentType": "application/json",
|
|
8636
8637
|
"section": "files",
|
|
8637
8638
|
"response": {
|
|
8638
|
-
"description": "The created file",
|
|
8639
|
+
"description": "The created or updated file",
|
|
8639
8640
|
"schema": {
|
|
8640
8641
|
"type": "object",
|
|
8641
8642
|
"properties": {
|
|
@@ -8650,10 +8651,9 @@ export const state = {
|
|
|
8650
8651
|
"type": "string",
|
|
8651
8652
|
"description": "The ID of the bot the file belongs to"
|
|
8652
8653
|
},
|
|
8653
|
-
"
|
|
8654
|
+
"key": {
|
|
8654
8655
|
"type": "string",
|
|
8655
|
-
"description": "
|
|
8656
|
-
"nullable": true
|
|
8656
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8657
8657
|
},
|
|
8658
8658
|
"size": {
|
|
8659
8659
|
"type": "number",
|
|
@@ -8719,7 +8719,7 @@ export const state = {
|
|
|
8719
8719
|
"required": [
|
|
8720
8720
|
"id",
|
|
8721
8721
|
"botId",
|
|
8722
|
-
"
|
|
8722
|
+
"key",
|
|
8723
8723
|
"size",
|
|
8724
8724
|
"contentType",
|
|
8725
8725
|
"tags",
|
|
@@ -8736,7 +8736,7 @@ export const state = {
|
|
|
8736
8736
|
"required": [
|
|
8737
8737
|
"file"
|
|
8738
8738
|
],
|
|
8739
|
-
"title": "
|
|
8739
|
+
"title": "upsertFileResponse",
|
|
8740
8740
|
"additionalProperties": false
|
|
8741
8741
|
}
|
|
8742
8742
|
},
|
|
@@ -8806,10 +8806,9 @@ export const state = {
|
|
|
8806
8806
|
"type": "string",
|
|
8807
8807
|
"description": "The ID of the bot the file belongs to"
|
|
8808
8808
|
},
|
|
8809
|
-
"
|
|
8809
|
+
"key": {
|
|
8810
8810
|
"type": "string",
|
|
8811
|
-
"description": "
|
|
8812
|
-
"nullable": true
|
|
8811
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8813
8812
|
},
|
|
8814
8813
|
"url": {
|
|
8815
8814
|
"type": "string",
|
|
@@ -8876,7 +8875,7 @@ export const state = {
|
|
|
8876
8875
|
"required": [
|
|
8877
8876
|
"id",
|
|
8878
8877
|
"botId",
|
|
8879
|
-
"
|
|
8878
|
+
"key",
|
|
8880
8879
|
"url",
|
|
8881
8880
|
"size",
|
|
8882
8881
|
"contentType",
|
|
@@ -8938,10 +8937,9 @@ export const state = {
|
|
|
8938
8937
|
"type": "string",
|
|
8939
8938
|
"description": "The ID of the bot the file belongs to"
|
|
8940
8939
|
},
|
|
8941
|
-
"
|
|
8940
|
+
"key": {
|
|
8942
8941
|
"type": "string",
|
|
8943
|
-
"description": "
|
|
8944
|
-
"nullable": true
|
|
8942
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
8945
8943
|
},
|
|
8946
8944
|
"url": {
|
|
8947
8945
|
"type": "string",
|
|
@@ -9008,7 +9006,7 @@ export const state = {
|
|
|
9008
9006
|
"required": [
|
|
9009
9007
|
"id",
|
|
9010
9008
|
"botId",
|
|
9011
|
-
"
|
|
9009
|
+
"key",
|
|
9012
9010
|
"url",
|
|
9013
9011
|
"size",
|
|
9014
9012
|
"contentType",
|
|
@@ -9030,10 +9028,10 @@ export const state = {
|
|
|
9030
9028
|
}
|
|
9031
9029
|
}
|
|
9032
9030
|
},
|
|
9033
|
-
"
|
|
9034
|
-
"name": "
|
|
9031
|
+
"updateFileMetadata": {
|
|
9032
|
+
"name": "updateFileMetadata",
|
|
9035
9033
|
"path": "/v1/files/{id}",
|
|
9036
|
-
"description": "Update file",
|
|
9034
|
+
"description": "Update file metadata, without updating the file content.",
|
|
9037
9035
|
"method": "put",
|
|
9038
9036
|
"section": "files",
|
|
9039
9037
|
"parameters": {
|
|
@@ -9069,7 +9067,7 @@ export const state = {
|
|
|
9069
9067
|
"description": "New access policies to set for the file. Omit to keep existing policies intact."
|
|
9070
9068
|
}
|
|
9071
9069
|
},
|
|
9072
|
-
"title": "
|
|
9070
|
+
"title": "updateFileMetadataBody",
|
|
9073
9071
|
"additionalProperties": false
|
|
9074
9072
|
}
|
|
9075
9073
|
},
|
|
@@ -9089,10 +9087,9 @@ export const state = {
|
|
|
9089
9087
|
"type": "string",
|
|
9090
9088
|
"description": "The ID of the bot the file belongs to"
|
|
9091
9089
|
},
|
|
9092
|
-
"
|
|
9090
|
+
"key": {
|
|
9093
9091
|
"type": "string",
|
|
9094
|
-
"description": "
|
|
9095
|
-
"nullable": true
|
|
9092
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
9096
9093
|
},
|
|
9097
9094
|
"url": {
|
|
9098
9095
|
"type": "string",
|
|
@@ -9159,7 +9156,7 @@ export const state = {
|
|
|
9159
9156
|
"required": [
|
|
9160
9157
|
"id",
|
|
9161
9158
|
"botId",
|
|
9162
|
-
"
|
|
9159
|
+
"key",
|
|
9163
9160
|
"url",
|
|
9164
9161
|
"size",
|
|
9165
9162
|
"contentType",
|
|
@@ -9176,7 +9173,7 @@ export const state = {
|
|
|
9176
9173
|
"required": [
|
|
9177
9174
|
"file"
|
|
9178
9175
|
],
|
|
9179
|
-
"title": "
|
|
9176
|
+
"title": "updateFileMetadataResponse",
|
|
9180
9177
|
"additionalProperties": false
|
|
9181
9178
|
}
|
|
9182
9179
|
}
|
|
@@ -9241,11 +9238,6 @@ export const state = {
|
|
|
9241
9238
|
"type": "string",
|
|
9242
9239
|
"description": "File ID"
|
|
9243
9240
|
},
|
|
9244
|
-
"name": {
|
|
9245
|
-
"type": "string",
|
|
9246
|
-
"description": "File name",
|
|
9247
|
-
"nullable": true
|
|
9248
|
-
},
|
|
9249
9241
|
"tags": {
|
|
9250
9242
|
"type": "object",
|
|
9251
9243
|
"additionalProperties": {
|
|
@@ -9265,7 +9257,6 @@ export const state = {
|
|
|
9265
9257
|
},
|
|
9266
9258
|
"required": [
|
|
9267
9259
|
"id",
|
|
9268
|
-
"name",
|
|
9269
9260
|
"tags",
|
|
9270
9261
|
"createdAt",
|
|
9271
9262
|
"updatedAt"
|
|
@@ -10189,7 +10180,7 @@ export const state = {
|
|
|
10189
10180
|
"title": "Botpress API",
|
|
10190
10181
|
"description": "API for Botpress Cloud",
|
|
10191
10182
|
"server": "https://api.botpress.cloud",
|
|
10192
|
-
"version": "0.30.
|
|
10183
|
+
"version": "0.30.2",
|
|
10193
10184
|
"prefix": "v1"
|
|
10194
10185
|
},
|
|
10195
10186
|
"errors": [
|
|
@@ -10263,6 +10254,11 @@ export const state = {
|
|
|
10263
10254
|
"type": "ReferenceConstraint",
|
|
10264
10255
|
"description": "The resource cannot be deleted because it's referenced by another resource"
|
|
10265
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
|
+
},
|
|
10266
10262
|
{
|
|
10267
10263
|
"status": 400,
|
|
10268
10264
|
"type": "ReferenceNotFound",
|
|
@@ -10350,8 +10346,8 @@ export const state = {
|
|
|
10350
10346
|
"updateIntegrationBody": true,
|
|
10351
10347
|
"changeAISpendQuotaBody": true,
|
|
10352
10348
|
"introspectBody": true,
|
|
10353
|
-
"
|
|
10354
|
-
"
|
|
10349
|
+
"upsertFileBody": true,
|
|
10350
|
+
"updateFileMetadataBody": true,
|
|
10355
10351
|
"getOrCreateTableBody": true,
|
|
10356
10352
|
"createTableBody": true,
|
|
10357
10353
|
"duplicateTableBody": true,
|
|
@@ -10464,11 +10460,11 @@ export const state = {
|
|
|
10464
10460
|
"changeAISpendQuotaResponse": true,
|
|
10465
10461
|
"listActivitiesResponse": true,
|
|
10466
10462
|
"introspectResponse": true,
|
|
10467
|
-
"
|
|
10463
|
+
"upsertFileResponse": true,
|
|
10468
10464
|
"deleteFileResponse": true,
|
|
10469
10465
|
"listFilesResponse": true,
|
|
10470
10466
|
"getFileResponse": true,
|
|
10471
|
-
"
|
|
10467
|
+
"updateFileMetadataResponse": true,
|
|
10472
10468
|
"searchFilesResponse": true,
|
|
10473
10469
|
"listTablesResponse": true,
|
|
10474
10470
|
"getTableResponse": true,
|
|
@@ -12724,10 +12720,9 @@ export const state = {
|
|
|
12724
12720
|
"type": "string",
|
|
12725
12721
|
"description": "The ID of the bot the file belongs to"
|
|
12726
12722
|
},
|
|
12727
|
-
"
|
|
12723
|
+
"key": {
|
|
12728
12724
|
"type": "string",
|
|
12729
|
-
"description": "
|
|
12730
|
-
"nullable": true
|
|
12725
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
12731
12726
|
},
|
|
12732
12727
|
"url": {
|
|
12733
12728
|
"type": "string",
|
|
@@ -12794,7 +12789,7 @@ export const state = {
|
|
|
12794
12789
|
"required": [
|
|
12795
12790
|
"id",
|
|
12796
12791
|
"botId",
|
|
12797
|
-
"
|
|
12792
|
+
"key",
|
|
12798
12793
|
"url",
|
|
12799
12794
|
"size",
|
|
12800
12795
|
"contentType",
|
|
@@ -13071,11 +13066,11 @@ export const state = {
|
|
|
13071
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.",
|
|
13072
13067
|
"name": "files",
|
|
13073
13068
|
"operations": [
|
|
13074
|
-
"
|
|
13069
|
+
"upsertFile",
|
|
13075
13070
|
"deleteFile",
|
|
13076
13071
|
"listFiles",
|
|
13077
13072
|
"getFile",
|
|
13078
|
-
"
|
|
13073
|
+
"updateFileMetadata",
|
|
13079
13074
|
"searchFiles"
|
|
13080
13075
|
],
|
|
13081
13076
|
"schema": "File"
|