@botpress/api 0.29.3 → 0.29.5
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 +17 -17
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +17 -17
package/dist/index.js
CHANGED
|
@@ -273116,7 +273116,7 @@ var state = {
|
|
|
273116
273116
|
"type": "string",
|
|
273117
273117
|
"maxLength": 1e3
|
|
273118
273118
|
},
|
|
273119
|
-
"description": "File tags as an object of key
|
|
273119
|
+
"description": "File tags as an object of key-value pairs. Tag values should be of `string` (text) type."
|
|
273120
273120
|
},
|
|
273121
273121
|
"size": {
|
|
273122
273122
|
"type": "number",
|
|
@@ -273223,11 +273223,11 @@ var state = {
|
|
|
273223
273223
|
"indexing_failed",
|
|
273224
273224
|
"indexing_completed"
|
|
273225
273225
|
],
|
|
273226
|
-
"description":
|
|
273226
|
+
"description": "Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.\n\nIf the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.\n\nHowever, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).\n\nOnce the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field."
|
|
273227
273227
|
},
|
|
273228
273228
|
"failedStatusReason": {
|
|
273229
273229
|
"type": "string",
|
|
273230
|
-
"description":
|
|
273230
|
+
"description": "If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure."
|
|
273231
273231
|
},
|
|
273232
273232
|
"uploadUrl": {
|
|
273233
273233
|
"type": "string",
|
|
@@ -273296,7 +273296,7 @@ var state = {
|
|
|
273296
273296
|
},
|
|
273297
273297
|
"tags": {
|
|
273298
273298
|
"in": "query",
|
|
273299
|
-
"description": "Filter by tags",
|
|
273299
|
+
"description": "Filter files by tags. Tags should be passed as a URL-encoded JSON object of key-value pairs that must be present in the tags of a file.",
|
|
273300
273300
|
"type": "object",
|
|
273301
273301
|
"schema": {
|
|
273302
273302
|
"type": "object",
|
|
@@ -273384,11 +273384,11 @@ var state = {
|
|
|
273384
273384
|
"indexing_failed",
|
|
273385
273385
|
"indexing_completed"
|
|
273386
273386
|
],
|
|
273387
|
-
"description":
|
|
273387
|
+
"description": "Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.\n\nIf the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.\n\nHowever, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).\n\nOnce the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field."
|
|
273388
273388
|
},
|
|
273389
273389
|
"failedStatusReason": {
|
|
273390
273390
|
"type": "string",
|
|
273391
|
-
"description":
|
|
273391
|
+
"description": "If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure."
|
|
273392
273392
|
}
|
|
273393
273393
|
},
|
|
273394
273394
|
"required": [
|
|
@@ -273516,11 +273516,11 @@ var state = {
|
|
|
273516
273516
|
"indexing_failed",
|
|
273517
273517
|
"indexing_completed"
|
|
273518
273518
|
],
|
|
273519
|
-
"description":
|
|
273519
|
+
"description": "Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.\n\nIf the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.\n\nHowever, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).\n\nOnce the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field."
|
|
273520
273520
|
},
|
|
273521
273521
|
"failedStatusReason": {
|
|
273522
273522
|
"type": "string",
|
|
273523
|
-
"description":
|
|
273523
|
+
"description": "If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure."
|
|
273524
273524
|
}
|
|
273525
273525
|
},
|
|
273526
273526
|
"required": [
|
|
@@ -273573,7 +273573,7 @@ var state = {
|
|
|
273573
273573
|
"maxLength": 1e3,
|
|
273574
273574
|
"nullable": true
|
|
273575
273575
|
},
|
|
273576
|
-
"description": "The file tags to update as an object of key
|
|
273576
|
+
"description": "The file tags to update as an object of key-value pairs with `string` (text) values. Omit to keep existing tags intact. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`."
|
|
273577
273577
|
},
|
|
273578
273578
|
"accessPolicies": {
|
|
273579
273579
|
"type": "array",
|
|
@@ -273667,11 +273667,11 @@ var state = {
|
|
|
273667
273667
|
"indexing_failed",
|
|
273668
273668
|
"indexing_completed"
|
|
273669
273669
|
],
|
|
273670
|
-
"description":
|
|
273670
|
+
"description": "Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.\n\nIf the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.\n\nHowever, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).\n\nOnce the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field."
|
|
273671
273671
|
},
|
|
273672
273672
|
"failedStatusReason": {
|
|
273673
273673
|
"type": "string",
|
|
273674
|
-
"description":
|
|
273674
|
+
"description": "If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure."
|
|
273675
273675
|
}
|
|
273676
273676
|
},
|
|
273677
273677
|
"required": [
|
|
@@ -273708,7 +273708,7 @@ var state = {
|
|
|
273708
273708
|
"parameters": {
|
|
273709
273709
|
"tags": {
|
|
273710
273710
|
"in": "query",
|
|
273711
|
-
"description": "Filter by tags",
|
|
273711
|
+
"description": "Filter files by tags. Tags should be passed as a URL-encoded JSON object of key-value pairs that must be present in the tags of a file.",
|
|
273712
273712
|
"type": "object",
|
|
273713
273713
|
"schema": {
|
|
273714
273714
|
"type": "object",
|
|
@@ -273770,7 +273770,7 @@ var state = {
|
|
|
273770
273770
|
"type": "string",
|
|
273771
273771
|
"maxLength": 1e3
|
|
273772
273772
|
},
|
|
273773
|
-
"description": "The tags of the file as an object of key
|
|
273773
|
+
"description": "The tags of the file as an object of key-value pairs."
|
|
273774
273774
|
},
|
|
273775
273775
|
"createdAt": {
|
|
273776
273776
|
"type": "string",
|
|
@@ -274707,7 +274707,7 @@ var state = {
|
|
|
274707
274707
|
"title": "Botpress API",
|
|
274708
274708
|
"description": "API for Botpress Cloud",
|
|
274709
274709
|
"server": "https://api.botpress.cloud",
|
|
274710
|
-
"version": "0.29.
|
|
274710
|
+
"version": "0.29.5",
|
|
274711
274711
|
"prefix": "v1"
|
|
274712
274712
|
},
|
|
274713
274713
|
"errors": [
|
|
@@ -277231,11 +277231,11 @@ var state = {
|
|
|
277231
277231
|
"indexing_failed",
|
|
277232
277232
|
"indexing_completed"
|
|
277233
277233
|
],
|
|
277234
|
-
"description":
|
|
277234
|
+
"description": "Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.\n\nIf the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.\n\nHowever, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).\n\nOnce the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field."
|
|
277235
277235
|
},
|
|
277236
277236
|
"failedStatusReason": {
|
|
277237
277237
|
"type": "string",
|
|
277238
|
-
"description":
|
|
277238
|
+
"description": "If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure."
|
|
277239
277239
|
}
|
|
277240
277240
|
},
|
|
277241
277241
|
"required": [
|
|
@@ -277513,7 +277513,7 @@ var state = {
|
|
|
277513
277513
|
},
|
|
277514
277514
|
{
|
|
277515
277515
|
"title": "Files",
|
|
277516
|
-
"description": "
|
|
277516
|
+
"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.",
|
|
277517
277517
|
"name": "files",
|
|
277518
277518
|
"operations": [
|
|
277519
277519
|
"createFile",
|
package/package.json
CHANGED
package/src/gen/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"File","name":"file","operations":[]},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"
|
|
1
|
+
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"File","name":"file","operations":[]},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","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.","name":"files","operations":["createFile","deleteFile","listFiles","getFile","updateFile","searchFiles"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
|