@botpress/api 0.20.0 → 0.20.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/dist/index.js +365 -61
- package/dist/src/gen/state.d.ts +251 -3
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +280 -4
package/src/gen/state.ts
CHANGED
|
@@ -6700,6 +6700,136 @@ export const state = {
|
|
|
6700
6700
|
}
|
|
6701
6701
|
}
|
|
6702
6702
|
},
|
|
6703
|
+
"listIntegrationApiKeys": {
|
|
6704
|
+
"name": "listIntegrationApiKeys",
|
|
6705
|
+
"description": "List IAKs (Integration Api Keys) of an integration",
|
|
6706
|
+
"method": "get",
|
|
6707
|
+
"section": "integration",
|
|
6708
|
+
"path": "/v1/admin/integrations/iaks",
|
|
6709
|
+
"parameters": {
|
|
6710
|
+
"integrationVersionId": {
|
|
6711
|
+
"in": "query",
|
|
6712
|
+
"description": "ID of the integration version",
|
|
6713
|
+
"type": "string",
|
|
6714
|
+
"required": true
|
|
6715
|
+
}
|
|
6716
|
+
},
|
|
6717
|
+
"response": {
|
|
6718
|
+
"description": "Success",
|
|
6719
|
+
"schema": {
|
|
6720
|
+
"type": "object",
|
|
6721
|
+
"properties": {
|
|
6722
|
+
"iaks": {
|
|
6723
|
+
"type": "array",
|
|
6724
|
+
"items": {
|
|
6725
|
+
"type": "object",
|
|
6726
|
+
"properties": {
|
|
6727
|
+
"id": {
|
|
6728
|
+
"type": "string"
|
|
6729
|
+
},
|
|
6730
|
+
"createdAt": {
|
|
6731
|
+
"type": "string",
|
|
6732
|
+
"format": "date-time"
|
|
6733
|
+
},
|
|
6734
|
+
"note": {
|
|
6735
|
+
"type": "string"
|
|
6736
|
+
}
|
|
6737
|
+
},
|
|
6738
|
+
"required": [
|
|
6739
|
+
"id",
|
|
6740
|
+
"createdAt",
|
|
6741
|
+
"note"
|
|
6742
|
+
]
|
|
6743
|
+
}
|
|
6744
|
+
}
|
|
6745
|
+
},
|
|
6746
|
+
"required": [
|
|
6747
|
+
"iaks"
|
|
6748
|
+
],
|
|
6749
|
+
"title": "listIntegrationApiKeysResponse",
|
|
6750
|
+
"additionalProperties": false
|
|
6751
|
+
}
|
|
6752
|
+
}
|
|
6753
|
+
},
|
|
6754
|
+
"createIntegrationApiKey": {
|
|
6755
|
+
"name": "createIntegrationApiKey",
|
|
6756
|
+
"description": "Create an IAK",
|
|
6757
|
+
"method": "post",
|
|
6758
|
+
"section": "integration",
|
|
6759
|
+
"path": "/v1/admin/integrations/iaks",
|
|
6760
|
+
"requestBody": {
|
|
6761
|
+
"description": "IAK metadata",
|
|
6762
|
+
"schema": {
|
|
6763
|
+
"type": "object",
|
|
6764
|
+
"properties": {
|
|
6765
|
+
"integrationVersionId": {
|
|
6766
|
+
"type": "string"
|
|
6767
|
+
},
|
|
6768
|
+
"note": {
|
|
6769
|
+
"type": "string"
|
|
6770
|
+
}
|
|
6771
|
+
},
|
|
6772
|
+
"required": [
|
|
6773
|
+
"integrationVersionId"
|
|
6774
|
+
],
|
|
6775
|
+
"title": "createIntegrationApiKeyBody",
|
|
6776
|
+
"additionalProperties": false
|
|
6777
|
+
}
|
|
6778
|
+
},
|
|
6779
|
+
"response": {
|
|
6780
|
+
"description": "Success",
|
|
6781
|
+
"schema": {
|
|
6782
|
+
"type": "object",
|
|
6783
|
+
"properties": {
|
|
6784
|
+
"id": {
|
|
6785
|
+
"type": "string"
|
|
6786
|
+
},
|
|
6787
|
+
"createdAt": {
|
|
6788
|
+
"type": "string",
|
|
6789
|
+
"format": "date-time"
|
|
6790
|
+
},
|
|
6791
|
+
"note": {
|
|
6792
|
+
"type": "string"
|
|
6793
|
+
},
|
|
6794
|
+
"value": {
|
|
6795
|
+
"type": "string",
|
|
6796
|
+
"description": "The IAK value. This will only be returned here when created and cannot be retrieved later."
|
|
6797
|
+
}
|
|
6798
|
+
},
|
|
6799
|
+
"required": [
|
|
6800
|
+
"id",
|
|
6801
|
+
"createdAt",
|
|
6802
|
+
"note",
|
|
6803
|
+
"value"
|
|
6804
|
+
],
|
|
6805
|
+
"title": "createIntegrationApiKeyResponse",
|
|
6806
|
+
"additionalProperties": false
|
|
6807
|
+
}
|
|
6808
|
+
},
|
|
6809
|
+
"parameters": {}
|
|
6810
|
+
},
|
|
6811
|
+
"deleteIntegrationApiKey": {
|
|
6812
|
+
"name": "deleteIntegrationApiKey",
|
|
6813
|
+
"description": "Delete an IAK",
|
|
6814
|
+
"method": "delete",
|
|
6815
|
+
"section": "integration",
|
|
6816
|
+
"path": "/v1/admin/integrations/iaks/{id}",
|
|
6817
|
+
"parameters": {
|
|
6818
|
+
"id": {
|
|
6819
|
+
"type": "string",
|
|
6820
|
+
"description": "ID of Integration Api Key",
|
|
6821
|
+
"in": "path"
|
|
6822
|
+
}
|
|
6823
|
+
},
|
|
6824
|
+
"response": {
|
|
6825
|
+
"description": "Success",
|
|
6826
|
+
"schema": {
|
|
6827
|
+
"type": "object",
|
|
6828
|
+
"title": "deleteIntegrationApiKeyResponse",
|
|
6829
|
+
"additionalProperties": false
|
|
6830
|
+
}
|
|
6831
|
+
}
|
|
6832
|
+
},
|
|
6703
6833
|
"createIntegration": {
|
|
6704
6834
|
"name": "createIntegration",
|
|
6705
6835
|
"description": "Create integration",
|
|
@@ -8109,7 +8239,7 @@ export const state = {
|
|
|
8109
8239
|
"in": "header"
|
|
8110
8240
|
},
|
|
8111
8241
|
"x-index": {
|
|
8112
|
-
"type": "
|
|
8242
|
+
"type": "boolean",
|
|
8113
8243
|
"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.",
|
|
8114
8244
|
"in": "header"
|
|
8115
8245
|
},
|
|
@@ -8558,12 +8688,12 @@ export const state = {
|
|
|
8558
8688
|
},
|
|
8559
8689
|
"contextDepth": {
|
|
8560
8690
|
"in": "query",
|
|
8561
|
-
"type": "
|
|
8691
|
+
"type": "integer",
|
|
8562
8692
|
"description": "The number of neighbor passages to prepend and append as surrounding context to the content of each returned passage. Default: 0, Maximum: 10"
|
|
8563
8693
|
},
|
|
8564
8694
|
"limit": {
|
|
8565
8695
|
"in": "query",
|
|
8566
|
-
"type": "
|
|
8696
|
+
"type": "integer",
|
|
8567
8697
|
"description": "The maximum number of passages to return."
|
|
8568
8698
|
}
|
|
8569
8699
|
},
|
|
@@ -8691,6 +8821,83 @@ export const state = {
|
|
|
8691
8821
|
}
|
|
8692
8822
|
}
|
|
8693
8823
|
},
|
|
8824
|
+
"getOrCreateTable": {
|
|
8825
|
+
"name": "getOrCreateTable",
|
|
8826
|
+
"path": "/v1/tables/{table}",
|
|
8827
|
+
"description": "Retrieves information about a specific table if it exists; otherwise, creates a new table based on the provided schema.",
|
|
8828
|
+
"parameters": {
|
|
8829
|
+
"table": {
|
|
8830
|
+
"type": "string",
|
|
8831
|
+
"description": "The table's name or unique identifier for targeting specific table operations.",
|
|
8832
|
+
"in": "path"
|
|
8833
|
+
}
|
|
8834
|
+
},
|
|
8835
|
+
"method": "post",
|
|
8836
|
+
"requestBody": {
|
|
8837
|
+
"description": "Schema defining the structure of the table",
|
|
8838
|
+
"schema": {
|
|
8839
|
+
"type": "object",
|
|
8840
|
+
"properties": {
|
|
8841
|
+
"factor": {
|
|
8842
|
+
"default": 1,
|
|
8843
|
+
"type": "number",
|
|
8844
|
+
"minimum": 1,
|
|
8845
|
+
"maximum": 30,
|
|
8846
|
+
"description": "The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1."
|
|
8847
|
+
},
|
|
8848
|
+
"schema": {
|
|
8849
|
+
"type": "object",
|
|
8850
|
+
"additionalProperties": true,
|
|
8851
|
+
"description": "Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed."
|
|
8852
|
+
},
|
|
8853
|
+
"tags": {
|
|
8854
|
+
"type": "object",
|
|
8855
|
+
"additionalProperties": {
|
|
8856
|
+
"type": "string"
|
|
8857
|
+
},
|
|
8858
|
+
"description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
|
|
8859
|
+
}
|
|
8860
|
+
},
|
|
8861
|
+
"required": [
|
|
8862
|
+
"schema"
|
|
8863
|
+
],
|
|
8864
|
+
"title": "getOrCreateTableBody",
|
|
8865
|
+
"additionalProperties": false
|
|
8866
|
+
}
|
|
8867
|
+
},
|
|
8868
|
+
"section": "tables",
|
|
8869
|
+
"response": {
|
|
8870
|
+
"description": "The retrieved or created table object.",
|
|
8871
|
+
"schema": {
|
|
8872
|
+
"type": "object",
|
|
8873
|
+
"properties": {
|
|
8874
|
+
"table": {
|
|
8875
|
+
"$ref": "#/components/schemas/Table"
|
|
8876
|
+
},
|
|
8877
|
+
"created": {
|
|
8878
|
+
"type": "boolean",
|
|
8879
|
+
"description": "Flag indicating if the table was newly created."
|
|
8880
|
+
},
|
|
8881
|
+
"rows": {
|
|
8882
|
+
"type": "number",
|
|
8883
|
+
"description": "The total number of rows present in the table."
|
|
8884
|
+
},
|
|
8885
|
+
"indexingCount": {
|
|
8886
|
+
"type": "number",
|
|
8887
|
+
"description": "The number of rows pending indexing, relevant for search functionalities."
|
|
8888
|
+
}
|
|
8889
|
+
},
|
|
8890
|
+
"required": [
|
|
8891
|
+
"table",
|
|
8892
|
+
"created",
|
|
8893
|
+
"rows",
|
|
8894
|
+
"indexingCount"
|
|
8895
|
+
],
|
|
8896
|
+
"title": "getOrCreateTableResponse",
|
|
8897
|
+
"additionalProperties": false
|
|
8898
|
+
}
|
|
8899
|
+
}
|
|
8900
|
+
},
|
|
8694
8901
|
"createTable": {
|
|
8695
8902
|
"name": "createTable",
|
|
8696
8903
|
"path": "/v1/tables",
|
|
@@ -8753,6 +8960,62 @@ export const state = {
|
|
|
8753
8960
|
},
|
|
8754
8961
|
"parameters": {}
|
|
8755
8962
|
},
|
|
8963
|
+
"duplicateTable": {
|
|
8964
|
+
"name": "duplicateTable",
|
|
8965
|
+
"path": "/v1/tables/{sourceTableId}/duplicate",
|
|
8966
|
+
"description": "Duplicates the table schema & content",
|
|
8967
|
+
"parameters": {
|
|
8968
|
+
"sourceTableId": {
|
|
8969
|
+
"type": "string",
|
|
8970
|
+
"description": "The table's unique identifier",
|
|
8971
|
+
"in": "path"
|
|
8972
|
+
}
|
|
8973
|
+
},
|
|
8974
|
+
"method": "post",
|
|
8975
|
+
"requestBody": {
|
|
8976
|
+
"description": "Schema defining the structure of the new table",
|
|
8977
|
+
"schema": {
|
|
8978
|
+
"type": "object",
|
|
8979
|
+
"properties": {
|
|
8980
|
+
"tableName": {
|
|
8981
|
+
"type": "string"
|
|
8982
|
+
},
|
|
8983
|
+
"schemaOnly": {
|
|
8984
|
+
"type": "boolean",
|
|
8985
|
+
"description": "Only duplicate the schema, not the content"
|
|
8986
|
+
},
|
|
8987
|
+
"factor": {
|
|
8988
|
+
"type": "number",
|
|
8989
|
+
"description": "Use a different factor for the table. Leave empty to use the same as the duplicated table."
|
|
8990
|
+
}
|
|
8991
|
+
},
|
|
8992
|
+
"title": "duplicateTableBody",
|
|
8993
|
+
"additionalProperties": false
|
|
8994
|
+
}
|
|
8995
|
+
},
|
|
8996
|
+
"section": "tables",
|
|
8997
|
+
"response": {
|
|
8998
|
+
"description": "The created table object.",
|
|
8999
|
+
"schema": {
|
|
9000
|
+
"type": "object",
|
|
9001
|
+
"properties": {
|
|
9002
|
+
"table": {
|
|
9003
|
+
"$ref": "#/components/schemas/Table"
|
|
9004
|
+
},
|
|
9005
|
+
"rows": {
|
|
9006
|
+
"type": "number",
|
|
9007
|
+
"description": "The total number of rows present in the table."
|
|
9008
|
+
}
|
|
9009
|
+
},
|
|
9010
|
+
"required": [
|
|
9011
|
+
"table",
|
|
9012
|
+
"rows"
|
|
9013
|
+
],
|
|
9014
|
+
"title": "duplicateTableResponse",
|
|
9015
|
+
"additionalProperties": false
|
|
9016
|
+
}
|
|
9017
|
+
}
|
|
9018
|
+
},
|
|
8756
9019
|
"updateTable": {
|
|
8757
9020
|
"name": "updateTable",
|
|
8758
9021
|
"path": "/v1/tables/{table}",
|
|
@@ -9320,7 +9583,7 @@ export const state = {
|
|
|
9320
9583
|
"title": "Botpress API",
|
|
9321
9584
|
"description": "API for Botpress Cloud",
|
|
9322
9585
|
"server": "https://api.botpress.cloud",
|
|
9323
|
-
"version": "0.20.
|
|
9586
|
+
"version": "0.20.3",
|
|
9324
9587
|
"prefix": "v1"
|
|
9325
9588
|
},
|
|
9326
9589
|
"errors": [
|
|
@@ -9476,13 +9739,16 @@ export const state = {
|
|
|
9476
9739
|
"changeWorkspacePlanBody": true,
|
|
9477
9740
|
"createWorkspaceMemberBody": true,
|
|
9478
9741
|
"updateWorkspaceMemberBody": true,
|
|
9742
|
+
"createIntegrationApiKeyBody": true,
|
|
9479
9743
|
"createIntegrationBody": true,
|
|
9480
9744
|
"updateIntegrationBody": true,
|
|
9481
9745
|
"changeAISpendQuotaBody": true,
|
|
9482
9746
|
"introspectBody": true,
|
|
9483
9747
|
"createFileBody": true,
|
|
9484
9748
|
"updateFileMetadataBody": true,
|
|
9749
|
+
"getOrCreateTableBody": true,
|
|
9485
9750
|
"createTableBody": true,
|
|
9751
|
+
"duplicateTableBody": true,
|
|
9486
9752
|
"updateTableBody": true,
|
|
9487
9753
|
"renameTableColumnBody": true,
|
|
9488
9754
|
"findTableRowsBody": true,
|
|
@@ -9574,6 +9840,9 @@ export const state = {
|
|
|
9574
9840
|
"deleteWorkspaceMemberResponse": true,
|
|
9575
9841
|
"createWorkspaceMemberResponse": true,
|
|
9576
9842
|
"updateWorkspaceMemberResponse": true,
|
|
9843
|
+
"listIntegrationApiKeysResponse": true,
|
|
9844
|
+
"createIntegrationApiKeyResponse": true,
|
|
9845
|
+
"deleteIntegrationApiKeyResponse": true,
|
|
9577
9846
|
"createIntegrationResponse": true,
|
|
9578
9847
|
"updateIntegrationResponse": true,
|
|
9579
9848
|
"listIntegrationsResponse": true,
|
|
@@ -9595,7 +9864,9 @@ export const state = {
|
|
|
9595
9864
|
"searchFilesResponse": true,
|
|
9596
9865
|
"listTablesResponse": true,
|
|
9597
9866
|
"getTableResponse": true,
|
|
9867
|
+
"getOrCreateTableResponse": true,
|
|
9598
9868
|
"createTableResponse": true,
|
|
9869
|
+
"duplicateTableResponse": true,
|
|
9599
9870
|
"updateTableResponse": true,
|
|
9600
9871
|
"renameTableColumnResponse": true,
|
|
9601
9872
|
"deleteTableResponse": true,
|
|
@@ -11818,6 +12089,9 @@ export const state = {
|
|
|
11818
12089
|
"description": "",
|
|
11819
12090
|
"name": "integration",
|
|
11820
12091
|
"operations": [
|
|
12092
|
+
"listIntegrationApiKeys",
|
|
12093
|
+
"createIntegrationApiKey",
|
|
12094
|
+
"deleteIntegrationApiKey",
|
|
11821
12095
|
"createIntegration",
|
|
11822
12096
|
"updateIntegration",
|
|
11823
12097
|
"listIntegrations",
|
|
@@ -11923,7 +12197,9 @@ export const state = {
|
|
|
11923
12197
|
"operations": [
|
|
11924
12198
|
"listTables",
|
|
11925
12199
|
"getTable",
|
|
12200
|
+
"getOrCreateTable",
|
|
11926
12201
|
"createTable",
|
|
12202
|
+
"duplicateTable",
|
|
11927
12203
|
"updateTable",
|
|
11928
12204
|
"renameTableColumn",
|
|
11929
12205
|
"deleteTable",
|