@botpress/api 0.64.0 → 0.65.0

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 CHANGED
@@ -294697,6 +294697,99 @@ var state = {
294697
294697
  }
294698
294698
  }
294699
294699
  },
294700
+ "listFileTags": {
294701
+ "name": "listFileTags",
294702
+ "path": "/v1/files/tags",
294703
+ "description": "List available tags",
294704
+ "method": "get",
294705
+ "section": "files",
294706
+ "parameters": {
294707
+ "nextToken": {
294708
+ "in": "query",
294709
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
294710
+ "type": "string"
294711
+ }
294712
+ },
294713
+ "response": {
294714
+ "description": "Returns the list of available tags used across all files of the bot.",
294715
+ "schema": {
294716
+ "type": "object",
294717
+ "properties": {
294718
+ "tags": {
294719
+ "type": "array",
294720
+ "items": {
294721
+ "type": "string"
294722
+ }
294723
+ },
294724
+ "meta": {
294725
+ "type": "object",
294726
+ "properties": {
294727
+ "nextToken": {
294728
+ "type": "string",
294729
+ "description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
294730
+ }
294731
+ },
294732
+ "additionalProperties": false
294733
+ }
294734
+ },
294735
+ "required": [
294736
+ "tags",
294737
+ "meta"
294738
+ ],
294739
+ "title": "listFileTagsResponse",
294740
+ "additionalProperties": false
294741
+ }
294742
+ }
294743
+ },
294744
+ "listFileTagValues": {
294745
+ "name": "listFileTagValues",
294746
+ "path": "/v1/files/tags/{tag}/values",
294747
+ "description": "List available tags",
294748
+ "method": "get",
294749
+ "section": "files",
294750
+ "parameters": {
294751
+ "nextToken": {
294752
+ "in": "query",
294753
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
294754
+ "type": "string"
294755
+ },
294756
+ "tag": {
294757
+ "type": "string",
294758
+ "description": "Tag name",
294759
+ "in": "path"
294760
+ }
294761
+ },
294762
+ "response": {
294763
+ "description": "Returns the list of available values used for a given tag across all files of the bot.",
294764
+ "schema": {
294765
+ "type": "object",
294766
+ "properties": {
294767
+ "values": {
294768
+ "type": "array",
294769
+ "items": {
294770
+ "type": "string"
294771
+ }
294772
+ },
294773
+ "meta": {
294774
+ "type": "object",
294775
+ "properties": {
294776
+ "nextToken": {
294777
+ "type": "string",
294778
+ "description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
294779
+ }
294780
+ },
294781
+ "additionalProperties": false
294782
+ }
294783
+ },
294784
+ "required": [
294785
+ "values",
294786
+ "meta"
294787
+ ],
294788
+ "title": "listFileTagValuesResponse",
294789
+ "additionalProperties": false
294790
+ }
294791
+ }
294792
+ },
294700
294793
  "listTables": {
294701
294794
  "name": "listTables",
294702
294795
  "path": "/v1/tables",
@@ -295908,7 +296001,7 @@ var state = {
295908
296001
  "title": "Botpress API",
295909
296002
  "description": "API for Botpress Cloud",
295910
296003
  "server": "https://api.botpress.cloud",
295911
- "version": "0.64.0",
296004
+ "version": "0.65.0",
295912
296005
  "prefix": "v1"
295913
296006
  },
295914
296007
  "errors": [
@@ -296234,6 +296327,8 @@ var state = {
296234
296327
  "copyFileResponse": true,
296235
296328
  "searchFilesResponse": true,
296236
296329
  "listFilePassagesResponse": true,
296330
+ "listFileTagsResponse": true,
296331
+ "listFileTagValuesResponse": true,
296237
296332
  "listTablesResponse": true,
296238
296333
  "getTableResponse": true,
296239
296334
  "getOrCreateTableResponse": true,
@@ -299746,7 +299841,9 @@ var state = {
299746
299841
  "updateFileMetadata",
299747
299842
  "copyFile",
299748
299843
  "searchFiles",
299749
- "listFilePassages"
299844
+ "listFilePassages",
299845
+ "listFileTags",
299846
+ "listFileTagValues"
299750
299847
  ],
299751
299848
  "schema": "File"
299752
299849
  }
@@ -11100,6 +11100,93 @@ export declare const state: {
11100
11100
  };
11101
11101
  };
11102
11102
  };
11103
+ listFileTags: {
11104
+ name: string;
11105
+ path: string;
11106
+ description: string;
11107
+ method: "get";
11108
+ section: "files";
11109
+ parameters: {
11110
+ nextToken: {
11111
+ in: "query";
11112
+ description: string;
11113
+ type: "string";
11114
+ };
11115
+ };
11116
+ response: {
11117
+ description: string;
11118
+ schema: {
11119
+ type: "object";
11120
+ properties: {
11121
+ tags: {
11122
+ type: "array";
11123
+ items: {
11124
+ type: "string";
11125
+ };
11126
+ };
11127
+ meta: {
11128
+ type: "object";
11129
+ properties: {
11130
+ nextToken: {
11131
+ type: "string";
11132
+ description: string;
11133
+ };
11134
+ };
11135
+ additionalProperties: false;
11136
+ };
11137
+ };
11138
+ required: string[];
11139
+ title: string;
11140
+ additionalProperties: false;
11141
+ };
11142
+ };
11143
+ };
11144
+ listFileTagValues: {
11145
+ name: string;
11146
+ path: string;
11147
+ description: string;
11148
+ method: "get";
11149
+ section: "files";
11150
+ parameters: {
11151
+ nextToken: {
11152
+ in: "query";
11153
+ description: string;
11154
+ type: "string";
11155
+ };
11156
+ tag: {
11157
+ type: "string";
11158
+ description: string;
11159
+ in: "path";
11160
+ };
11161
+ };
11162
+ response: {
11163
+ description: string;
11164
+ schema: {
11165
+ type: "object";
11166
+ properties: {
11167
+ values: {
11168
+ type: "array";
11169
+ items: {
11170
+ type: "string";
11171
+ };
11172
+ };
11173
+ meta: {
11174
+ type: "object";
11175
+ properties: {
11176
+ nextToken: {
11177
+ type: "string";
11178
+ description: string;
11179
+ };
11180
+ };
11181
+ additionalProperties: false;
11182
+ };
11183
+ };
11184
+ required: string[];
11185
+ title: string;
11186
+ additionalProperties: false;
11187
+ };
11188
+ };
11189
+ };
11103
11190
  listTables: {
11104
11191
  name: string;
11105
11192
  path: string;
@@ -12435,6 +12522,8 @@ export declare const state: {
12435
12522
  copyFileResponse: true;
12436
12523
  searchFilesResponse: true;
12437
12524
  listFilePassagesResponse: true;
12525
+ listFileTagsResponse: true;
12526
+ listFileTagValuesResponse: true;
12438
12527
  listTablesResponse: true;
12439
12528
  getTableResponse: true;
12440
12529
  getOrCreateTableResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.64.0",
3
+ "version": "0.65.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -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":"State","name":"state","operations":["setStateExpiry","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"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"description":"","title":"Tag","name":"tag","operations":["listTagValues"]},{"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","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"title":"Workspace","description":"","name":"workspace","operations":["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","listUsageActivityDaily"],"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","exportTable","getTableJobs","importTable","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","copyFile","searchFiles","listFilePassages"],"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."}]}
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":"State","name":"state","operations":["setStateExpiry","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"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"description":"","title":"Tag","name":"tag","operations":["listTagValues"]},{"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","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"title":"Workspace","description":"","name":"workspace","operations":["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","listUsageActivityDaily"],"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","exportTable","getTableJobs","importTable","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","copyFile","searchFiles","listFilePassages","listFileTags","listFileTagValues"],"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."}]}