@botpress/api 0.34.0 → 0.34.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 -7
- package/dist/src/gen/state.d.ts +30 -0
- 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 -7
package/dist/index.js
CHANGED
|
@@ -266206,10 +266206,23 @@ var state = {
|
|
|
266206
266206
|
"properties": {
|
|
266207
266207
|
"state": {
|
|
266208
266208
|
"$ref": "#/components/schemas/State"
|
|
266209
|
+
},
|
|
266210
|
+
"meta": {
|
|
266211
|
+
"type": "object",
|
|
266212
|
+
"properties": {
|
|
266213
|
+
"cached": {
|
|
266214
|
+
"type": "boolean"
|
|
266215
|
+
}
|
|
266216
|
+
},
|
|
266217
|
+
"required": [
|
|
266218
|
+
"cached"
|
|
266219
|
+
],
|
|
266220
|
+
"additionalProperties": false
|
|
266209
266221
|
}
|
|
266210
266222
|
},
|
|
266211
266223
|
"required": [
|
|
266212
|
-
"state"
|
|
266224
|
+
"state",
|
|
266225
|
+
"meta"
|
|
266213
266226
|
],
|
|
266214
266227
|
"title": "getStateResponse",
|
|
266215
266228
|
"additionalProperties": false
|
|
@@ -266349,10 +266362,23 @@ var state = {
|
|
|
266349
266362
|
"properties": {
|
|
266350
266363
|
"state": {
|
|
266351
266364
|
"$ref": "#/components/schemas/State"
|
|
266365
|
+
},
|
|
266366
|
+
"meta": {
|
|
266367
|
+
"type": "object",
|
|
266368
|
+
"properties": {
|
|
266369
|
+
"cached": {
|
|
266370
|
+
"type": "boolean"
|
|
266371
|
+
}
|
|
266372
|
+
},
|
|
266373
|
+
"required": [
|
|
266374
|
+
"cached"
|
|
266375
|
+
],
|
|
266376
|
+
"additionalProperties": false
|
|
266352
266377
|
}
|
|
266353
266378
|
},
|
|
266354
266379
|
"required": [
|
|
266355
|
-
"state"
|
|
266380
|
+
"state",
|
|
266381
|
+
"meta"
|
|
266356
266382
|
],
|
|
266357
266383
|
"title": "getOrSetStateResponse",
|
|
266358
266384
|
"additionalProperties": false
|
|
@@ -266463,10 +266489,23 @@ var state = {
|
|
|
266463
266489
|
"type": "object",
|
|
266464
266490
|
"additionalProperties": true,
|
|
266465
266491
|
"description": "Input of the action"
|
|
266492
|
+
},
|
|
266493
|
+
"meta": {
|
|
266494
|
+
"type": "object",
|
|
266495
|
+
"properties": {
|
|
266496
|
+
"cached": {
|
|
266497
|
+
"type": "boolean"
|
|
266498
|
+
}
|
|
266499
|
+
},
|
|
266500
|
+
"required": [
|
|
266501
|
+
"cached"
|
|
266502
|
+
],
|
|
266503
|
+
"additionalProperties": false
|
|
266466
266504
|
}
|
|
266467
266505
|
},
|
|
266468
266506
|
"required": [
|
|
266469
|
-
"output"
|
|
266507
|
+
"output",
|
|
266508
|
+
"meta"
|
|
266470
266509
|
],
|
|
266471
266510
|
"title": "callActionResponse",
|
|
266472
266511
|
"additionalProperties": false
|
|
@@ -274223,7 +274262,7 @@ var state = {
|
|
|
274223
274262
|
"index": {
|
|
274224
274263
|
"default": false,
|
|
274225
274264
|
"type": "boolean",
|
|
274226
|
-
"description": "Set to a value of 'true' to index the file in vector storage. Only
|
|
274265
|
+
"description": "Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. 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."
|
|
274227
274266
|
},
|
|
274228
274267
|
"accessPolicies": {
|
|
274229
274268
|
"type": "array",
|
|
@@ -274872,7 +274911,7 @@ var state = {
|
|
|
274872
274911
|
},
|
|
274873
274912
|
"pageNumber": {
|
|
274874
274913
|
"type": "integer",
|
|
274875
|
-
"description": "Page number the passage is located on
|
|
274914
|
+
"description": "Page number the passage is located on. Only applicable if the passage was extracted from a PDF file."
|
|
274876
274915
|
}
|
|
274877
274916
|
},
|
|
274878
274917
|
"description": "The passage metadata"
|
|
@@ -275827,7 +275866,7 @@ var state = {
|
|
|
275827
275866
|
"title": "Botpress API",
|
|
275828
275867
|
"description": "API for Botpress Cloud",
|
|
275829
275868
|
"server": "https://api.botpress.cloud",
|
|
275830
|
-
"version": "0.34.
|
|
275869
|
+
"version": "0.34.2",
|
|
275831
275870
|
"prefix": "v1"
|
|
275832
275871
|
},
|
|
275833
275872
|
"errors": [
|
|
@@ -278921,7 +278960,7 @@ var state = {
|
|
|
278921
278960
|
},
|
|
278922
278961
|
{
|
|
278923
278962
|
"title": "Files",
|
|
278924
|
-
"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
|
|
278963
|
+
"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 Word, HTML, Markdown, 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.",
|
|
278925
278964
|
"name": "files",
|
|
278926
278965
|
"operations": [
|
|
278927
278966
|
"upsertFile",
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1216,6 +1216,16 @@ export declare const state: {
|
|
|
1216
1216
|
state: {
|
|
1217
1217
|
$ref: string;
|
|
1218
1218
|
};
|
|
1219
|
+
meta: {
|
|
1220
|
+
type: "object";
|
|
1221
|
+
properties: {
|
|
1222
|
+
cached: {
|
|
1223
|
+
type: "boolean";
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
required: string[];
|
|
1227
|
+
additionalProperties: false;
|
|
1228
|
+
};
|
|
1219
1229
|
};
|
|
1220
1230
|
required: string[];
|
|
1221
1231
|
title: string;
|
|
@@ -1339,6 +1349,16 @@ export declare const state: {
|
|
|
1339
1349
|
state: {
|
|
1340
1350
|
$ref: string;
|
|
1341
1351
|
};
|
|
1352
|
+
meta: {
|
|
1353
|
+
type: "object";
|
|
1354
|
+
properties: {
|
|
1355
|
+
cached: {
|
|
1356
|
+
type: "boolean";
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
required: string[];
|
|
1360
|
+
additionalProperties: false;
|
|
1361
|
+
};
|
|
1342
1362
|
};
|
|
1343
1363
|
required: string[];
|
|
1344
1364
|
title: string;
|
|
@@ -1438,6 +1458,16 @@ export declare const state: {
|
|
|
1438
1458
|
additionalProperties: true;
|
|
1439
1459
|
description: string;
|
|
1440
1460
|
};
|
|
1461
|
+
meta: {
|
|
1462
|
+
type: "object";
|
|
1463
|
+
properties: {
|
|
1464
|
+
cached: {
|
|
1465
|
+
type: "boolean";
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
required: string[];
|
|
1469
|
+
additionalProperties: false;
|
|
1470
|
+
};
|
|
1441
1471
|
};
|
|
1442
1472
|
required: string[];
|
|
1443
1473
|
title: string;
|
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","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","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","getMultipleUsages"],"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
|
|
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","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","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","getMultipleUsages"],"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 Word, HTML, Markdown, 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":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","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":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"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."}]}
|