@botpress/api 0.30.1 → 0.30.3

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
@@ -6643,6 +6643,13 @@ export const state = {
6643
6643
  "administrator",
6644
6644
  "owner"
6645
6645
  ]
6646
+ },
6647
+ "profilePicture": {
6648
+ "type": "string"
6649
+ },
6650
+ "displayName": {
6651
+ "type": "string",
6652
+ "maxLength": 100
6646
6653
  }
6647
6654
  },
6648
6655
  "required": [
@@ -6707,6 +6714,13 @@ export const state = {
6707
6714
  "administrator",
6708
6715
  "owner"
6709
6716
  ]
6717
+ },
6718
+ "profilePicture": {
6719
+ "type": "string"
6720
+ },
6721
+ "displayName": {
6722
+ "type": "string",
6723
+ "maxLength": 100
6710
6724
  }
6711
6725
  },
6712
6726
  "required": [
@@ -6806,6 +6820,13 @@ export const state = {
6806
6820
  "administrator",
6807
6821
  "owner"
6808
6822
  ]
6823
+ },
6824
+ "profilePicture": {
6825
+ "type": "string"
6826
+ },
6827
+ "displayName": {
6828
+ "type": "string",
6829
+ "maxLength": 100
6809
6830
  }
6810
6831
  },
6811
6832
  "required": [
@@ -6882,6 +6903,13 @@ export const state = {
6882
6903
  "administrator",
6883
6904
  "owner"
6884
6905
  ]
6906
+ },
6907
+ "profilePicture": {
6908
+ "type": "string"
6909
+ },
6910
+ "displayName": {
6911
+ "type": "string",
6912
+ "maxLength": 100
6885
6913
  }
6886
6914
  },
6887
6915
  "required": [
@@ -8578,19 +8606,19 @@ export const state = {
8578
8606
  },
8579
8607
  "parameters": {}
8580
8608
  },
8581
- "createFile": {
8582
- "name": "createFile",
8609
+ "upsertFile": {
8610
+ "name": "upsertFile",
8583
8611
  "path": "/v1/files",
8584
- "description": "Creates a file. Once the file is created, use the uploadUrl from the response body to upload the file content, using a PUT request.",
8585
- "method": "post",
8612
+ "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.",
8613
+ "method": "put",
8586
8614
  "requestBody": {
8587
- "description": "The file to upload.",
8615
+ "description": "Properties of the file to create or update.",
8588
8616
  "schema": {
8589
8617
  "type": "object",
8590
8618
  "properties": {
8591
- "name": {
8619
+ "key": {
8592
8620
  "type": "string",
8593
- "description": "File name"
8621
+ "description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
8594
8622
  },
8595
8623
  "tags": {
8596
8624
  "type": "object",
@@ -8602,12 +8630,12 @@ export const state = {
8602
8630
  },
8603
8631
  "size": {
8604
8632
  "type": "number",
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 database storage quota."
8633
+ "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
8634
  },
8607
8635
  "index": {
8608
8636
  "default": false,
8609
8637
  "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 of the workspace rather than the File Storage quota."
8638
+ "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
8639
  },
8612
8640
  "accessPolicies": {
8613
8641
  "type": "array",
@@ -8622,20 +8650,21 @@ export const state = {
8622
8650
  },
8623
8651
  "contentType": {
8624
8652
  "type": "string",
8625
- "description": "File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is \"application/octet-stream\"."
8653
+ "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
8654
  }
8627
8655
  },
8628
8656
  "required": [
8657
+ "key",
8629
8658
  "size"
8630
8659
  ],
8631
- "title": "createFileBody",
8660
+ "title": "upsertFileBody",
8632
8661
  "additionalProperties": false
8633
8662
  }
8634
8663
  },
8635
8664
  "contentType": "application/json",
8636
8665
  "section": "files",
8637
8666
  "response": {
8638
- "description": "The created file",
8667
+ "description": "The created or updated file",
8639
8668
  "schema": {
8640
8669
  "type": "object",
8641
8670
  "properties": {
@@ -8650,10 +8679,9 @@ export const state = {
8650
8679
  "type": "string",
8651
8680
  "description": "The ID of the bot the file belongs to"
8652
8681
  },
8653
- "name": {
8682
+ "key": {
8654
8683
  "type": "string",
8655
- "description": "File name",
8656
- "nullable": true
8684
+ "description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
8657
8685
  },
8658
8686
  "size": {
8659
8687
  "type": "number",
@@ -8719,7 +8747,7 @@ export const state = {
8719
8747
  "required": [
8720
8748
  "id",
8721
8749
  "botId",
8722
- "name",
8750
+ "key",
8723
8751
  "size",
8724
8752
  "contentType",
8725
8753
  "tags",
@@ -8736,7 +8764,7 @@ export const state = {
8736
8764
  "required": [
8737
8765
  "file"
8738
8766
  ],
8739
- "title": "createFileResponse",
8767
+ "title": "upsertFileResponse",
8740
8768
  "additionalProperties": false
8741
8769
  }
8742
8770
  },
@@ -8806,10 +8834,9 @@ export const state = {
8806
8834
  "type": "string",
8807
8835
  "description": "The ID of the bot the file belongs to"
8808
8836
  },
8809
- "name": {
8837
+ "key": {
8810
8838
  "type": "string",
8811
- "description": "File name",
8812
- "nullable": true
8839
+ "description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
8813
8840
  },
8814
8841
  "url": {
8815
8842
  "type": "string",
@@ -8876,7 +8903,7 @@ export const state = {
8876
8903
  "required": [
8877
8904
  "id",
8878
8905
  "botId",
8879
- "name",
8906
+ "key",
8880
8907
  "url",
8881
8908
  "size",
8882
8909
  "contentType",
@@ -8938,10 +8965,9 @@ export const state = {
8938
8965
  "type": "string",
8939
8966
  "description": "The ID of the bot the file belongs to"
8940
8967
  },
8941
- "name": {
8968
+ "key": {
8942
8969
  "type": "string",
8943
- "description": "File name",
8944
- "nullable": true
8970
+ "description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
8945
8971
  },
8946
8972
  "url": {
8947
8973
  "type": "string",
@@ -9008,7 +9034,7 @@ export const state = {
9008
9034
  "required": [
9009
9035
  "id",
9010
9036
  "botId",
9011
- "name",
9037
+ "key",
9012
9038
  "url",
9013
9039
  "size",
9014
9040
  "contentType",
@@ -9030,10 +9056,10 @@ export const state = {
9030
9056
  }
9031
9057
  }
9032
9058
  },
9033
- "updateFile": {
9034
- "name": "updateFile",
9059
+ "updateFileMetadata": {
9060
+ "name": "updateFileMetadata",
9035
9061
  "path": "/v1/files/{id}",
9036
- "description": "Update file",
9062
+ "description": "Update file metadata, without updating the file content.",
9037
9063
  "method": "put",
9038
9064
  "section": "files",
9039
9065
  "parameters": {
@@ -9069,7 +9095,7 @@ export const state = {
9069
9095
  "description": "New access policies to set for the file. Omit to keep existing policies intact."
9070
9096
  }
9071
9097
  },
9072
- "title": "updateFileBody",
9098
+ "title": "updateFileMetadataBody",
9073
9099
  "additionalProperties": false
9074
9100
  }
9075
9101
  },
@@ -9089,10 +9115,9 @@ export const state = {
9089
9115
  "type": "string",
9090
9116
  "description": "The ID of the bot the file belongs to"
9091
9117
  },
9092
- "name": {
9118
+ "key": {
9093
9119
  "type": "string",
9094
- "description": "File name",
9095
- "nullable": true
9120
+ "description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
9096
9121
  },
9097
9122
  "url": {
9098
9123
  "type": "string",
@@ -9159,7 +9184,7 @@ export const state = {
9159
9184
  "required": [
9160
9185
  "id",
9161
9186
  "botId",
9162
- "name",
9187
+ "key",
9163
9188
  "url",
9164
9189
  "size",
9165
9190
  "contentType",
@@ -9176,7 +9201,7 @@ export const state = {
9176
9201
  "required": [
9177
9202
  "file"
9178
9203
  ],
9179
- "title": "updateFileResponse",
9204
+ "title": "updateFileMetadataResponse",
9180
9205
  "additionalProperties": false
9181
9206
  }
9182
9207
  }
@@ -9241,11 +9266,6 @@ export const state = {
9241
9266
  "type": "string",
9242
9267
  "description": "File ID"
9243
9268
  },
9244
- "name": {
9245
- "type": "string",
9246
- "description": "File name",
9247
- "nullable": true
9248
- },
9249
9269
  "tags": {
9250
9270
  "type": "object",
9251
9271
  "additionalProperties": {
@@ -9265,7 +9285,6 @@ export const state = {
9265
9285
  },
9266
9286
  "required": [
9267
9287
  "id",
9268
- "name",
9269
9288
  "tags",
9270
9289
  "createdAt",
9271
9290
  "updatedAt"
@@ -10189,7 +10208,7 @@ export const state = {
10189
10208
  "title": "Botpress API",
10190
10209
  "description": "API for Botpress Cloud",
10191
10210
  "server": "https://api.botpress.cloud",
10192
- "version": "0.30.1",
10211
+ "version": "0.30.3",
10193
10212
  "prefix": "v1"
10194
10213
  },
10195
10214
  "errors": [
@@ -10263,6 +10282,11 @@ export const state = {
10263
10282
  "type": "ReferenceConstraint",
10264
10283
  "description": "The resource cannot be deleted because it's referenced by another resource"
10265
10284
  },
10285
+ {
10286
+ "status": 409,
10287
+ "type": "ResourceLockedConflict",
10288
+ "description": "The resource is current locked and cannot be operated on until the lock is released."
10289
+ },
10266
10290
  {
10267
10291
  "status": 400,
10268
10292
  "type": "ReferenceNotFound",
@@ -10350,8 +10374,8 @@ export const state = {
10350
10374
  "updateIntegrationBody": true,
10351
10375
  "changeAISpendQuotaBody": true,
10352
10376
  "introspectBody": true,
10353
- "createFileBody": true,
10354
- "updateFileBody": true,
10377
+ "upsertFileBody": true,
10378
+ "updateFileMetadataBody": true,
10355
10379
  "getOrCreateTableBody": true,
10356
10380
  "createTableBody": true,
10357
10381
  "duplicateTableBody": true,
@@ -10464,11 +10488,11 @@ export const state = {
10464
10488
  "changeAISpendQuotaResponse": true,
10465
10489
  "listActivitiesResponse": true,
10466
10490
  "introspectResponse": true,
10467
- "createFileResponse": true,
10491
+ "upsertFileResponse": true,
10468
10492
  "deleteFileResponse": true,
10469
10493
  "listFilesResponse": true,
10470
10494
  "getFileResponse": true,
10471
- "updateFileResponse": true,
10495
+ "updateFileMetadataResponse": true,
10472
10496
  "searchFilesResponse": true,
10473
10497
  "listTablesResponse": true,
10474
10498
  "getTableResponse": true,
@@ -11650,6 +11674,13 @@ export const state = {
11650
11674
  "administrator",
11651
11675
  "owner"
11652
11676
  ]
11677
+ },
11678
+ "profilePicture": {
11679
+ "type": "string"
11680
+ },
11681
+ "displayName": {
11682
+ "type": "string",
11683
+ "maxLength": 100
11653
11684
  }
11654
11685
  },
11655
11686
  "required": [
@@ -12724,10 +12755,9 @@ export const state = {
12724
12755
  "type": "string",
12725
12756
  "description": "The ID of the bot the file belongs to"
12726
12757
  },
12727
- "name": {
12758
+ "key": {
12728
12759
  "type": "string",
12729
- "description": "File name",
12730
- "nullable": true
12760
+ "description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
12731
12761
  },
12732
12762
  "url": {
12733
12763
  "type": "string",
@@ -12794,7 +12824,7 @@ export const state = {
12794
12824
  "required": [
12795
12825
  "id",
12796
12826
  "botId",
12797
- "name",
12827
+ "key",
12798
12828
  "url",
12799
12829
  "size",
12800
12830
  "contentType",
@@ -13071,11 +13101,11 @@ export const state = {
13071
13101
  "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
13102
  "name": "files",
13073
13103
  "operations": [
13074
- "createFile",
13104
+ "upsertFile",
13075
13105
  "deleteFile",
13076
13106
  "listFiles",
13077
13107
  "getFile",
13078
- "updateFile",
13108
+ "updateFileMetadata",
13079
13109
  "searchFiles"
13080
13110
  ],
13081
13111
  "schema": "File"