@botpress/api 0.27.0 → 0.27.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
@@ -8070,7 +8070,7 @@ export const state = {
8070
8070
  "contentType": "application/json",
8071
8071
  "section": "files",
8072
8072
  "response": {
8073
- "description": "The file metadata.",
8073
+ "description": "The created file",
8074
8074
  "schema": {
8075
8075
  "type": "object",
8076
8076
  "properties": {
@@ -8335,10 +8335,10 @@ export const state = {
8335
8335
  }
8336
8336
  }
8337
8337
  },
8338
- "getFileMetadata": {
8339
- "name": "getFileMetadata",
8340
- "path": "/v1/files/{id}/metadata",
8341
- "description": "Get file metadata",
8338
+ "getFile": {
8339
+ "name": "getFile",
8340
+ "path": "/v1/files/{id}",
8341
+ "description": "Get file",
8342
8342
  "method": "get",
8343
8343
  "section": "files",
8344
8344
  "parameters": {
@@ -8349,7 +8349,7 @@ export const state = {
8349
8349
  }
8350
8350
  },
8351
8351
  "response": {
8352
- "description": "The metadata of the file.",
8352
+ "description": "File metadata and URL",
8353
8353
  "schema": {
8354
8354
  "type": "object",
8355
8355
  "properties": {
@@ -8436,43 +8436,18 @@ export const state = {
8436
8436
  "status"
8437
8437
  ],
8438
8438
  "additionalProperties": false
8439
- }
8440
- },
8441
- "required": [
8442
- "file"
8443
- ],
8444
- "title": "getFileMetadataResponse",
8445
- "additionalProperties": false
8446
- }
8447
- }
8448
- },
8449
- "getFileContent": {
8450
- "name": "getFileContent",
8451
- "path": "/v1/files/{id}/content",
8452
- "description": "Returns a presigned URL to download the file content.",
8453
- "method": "get",
8454
- "section": "files",
8455
- "parameters": {
8456
- "id": {
8457
- "type": "string",
8458
- "description": "File ID",
8459
- "in": "path"
8460
- }
8461
- },
8462
- "response": {
8463
- "description": "Returns a temporary pre-signed URL to download the file content.",
8464
- "schema": {
8465
- "type": "object",
8466
- "properties": {
8439
+ },
8467
8440
  "url": {
8468
8441
  "type": "string",
8469
- "description": "Temporary pre-signed URL to download the file, should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe."
8442
+ "description": "If the file is not uploaded yet, this will be set to a `null` value.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.",
8443
+ "nullable": true
8470
8444
  }
8471
8445
  },
8472
8446
  "required": [
8447
+ "file",
8473
8448
  "url"
8474
8449
  ],
8475
- "title": "getFileContentResponse",
8450
+ "title": "getFileResponse",
8476
8451
  "additionalProperties": false
8477
8452
  }
8478
8453
  }
@@ -9506,7 +9481,7 @@ export const state = {
9506
9481
  "title": "Botpress API",
9507
9482
  "description": "API for Botpress Cloud",
9508
9483
  "server": "https://api.botpress.cloud",
9509
- "version": "0.27.0",
9484
+ "version": "0.27.1",
9510
9485
  "prefix": "v1"
9511
9486
  },
9512
9487
  "errors": [
@@ -9780,8 +9755,7 @@ export const state = {
9780
9755
  "createFileResponse": true,
9781
9756
  "deleteFileResponse": true,
9782
9757
  "listFilesResponse": true,
9783
- "getFileMetadataResponse": true,
9784
- "getFileContentResponse": true,
9758
+ "getFileResponse": true,
9785
9759
  "updateFileMetadataResponse": true,
9786
9760
  "searchFilesResponse": true,
9787
9761
  "listTablesResponse": true,
@@ -12167,8 +12141,7 @@ export const state = {
12167
12141
  "createFile",
12168
12142
  "deleteFile",
12169
12143
  "listFiles",
12170
- "getFileMetadata",
12171
- "getFileContent",
12144
+ "getFile",
12172
12145
  "updateFileMetadata",
12173
12146
  "searchFiles"
12174
12147
  ],