@botpress/api 0.53.0 → 0.55.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.
@@ -9905,6 +9905,9 @@ export declare const state: {
9905
9905
  transcribePages: {
9906
9906
  description: string;
9907
9907
  };
9908
+ indexPages: {
9909
+ description: string;
9910
+ };
9908
9911
  };
9909
9912
  additionalProperties: false;
9910
9913
  };
@@ -10527,6 +10530,11 @@ export declare const state: {
10527
10530
  type: "integer";
10528
10531
  description: string;
10529
10532
  };
10533
+ sourceUrl: {
10534
+ type: "string";
10535
+ format: string;
10536
+ description: string;
10537
+ };
10530
10538
  };
10531
10539
  description: string;
10532
10540
  };
@@ -10637,6 +10645,11 @@ export declare const state: {
10637
10645
  type: "integer";
10638
10646
  description: string;
10639
10647
  };
10648
+ sourceUrl: {
10649
+ type: "string";
10650
+ format: string;
10651
+ description: string;
10652
+ };
10640
10653
  };
10641
10654
  description: string;
10642
10655
  };
@@ -10938,6 +10951,248 @@ export declare const state: {
10938
10951
  };
10939
10952
  };
10940
10953
  };
10954
+ exportTable: {
10955
+ name: string;
10956
+ path: string;
10957
+ description: string;
10958
+ parameters: {
10959
+ table: {
10960
+ type: "string";
10961
+ description: string;
10962
+ in: "path";
10963
+ };
10964
+ format: {
10965
+ in: "query";
10966
+ type: "object";
10967
+ description: string;
10968
+ schema: {
10969
+ type: "string";
10970
+ enum: string[];
10971
+ };
10972
+ };
10973
+ compress: {
10974
+ in: "query";
10975
+ type: "object";
10976
+ description: string;
10977
+ schema: {
10978
+ default: boolean;
10979
+ type: "boolean";
10980
+ };
10981
+ };
10982
+ };
10983
+ method: "get";
10984
+ section: "tables";
10985
+ response: {
10986
+ description: string;
10987
+ schema: {
10988
+ type: "object";
10989
+ properties: {
10990
+ job: {
10991
+ type: "object";
10992
+ properties: {
10993
+ id: {
10994
+ type: "string";
10995
+ };
10996
+ botId: {
10997
+ type: "string";
10998
+ };
10999
+ tableId: {
11000
+ type: "string";
11001
+ };
11002
+ type: {
11003
+ type: "string";
11004
+ enum: string[];
11005
+ };
11006
+ status: {
11007
+ type: "string";
11008
+ enum: string[];
11009
+ };
11010
+ progress: {
11011
+ default: number;
11012
+ type: "number";
11013
+ };
11014
+ inputFileId: {
11015
+ type: "string";
11016
+ nullable: true;
11017
+ };
11018
+ outputFileId: {
11019
+ type: "string";
11020
+ nullable: true;
11021
+ };
11022
+ createdAt: {
11023
+ type: "string";
11024
+ format: string;
11025
+ };
11026
+ updatedAt: {
11027
+ type: "string";
11028
+ format: string;
11029
+ };
11030
+ };
11031
+ required: string[];
11032
+ additionalProperties: false;
11033
+ };
11034
+ };
11035
+ required: string[];
11036
+ title: string;
11037
+ additionalProperties: false;
11038
+ };
11039
+ };
11040
+ };
11041
+ getTableJobs: {
11042
+ name: string;
11043
+ path: string;
11044
+ description: string;
11045
+ parameters: {
11046
+ table: {
11047
+ type: "string";
11048
+ description: string;
11049
+ in: "path";
11050
+ };
11051
+ };
11052
+ method: "get";
11053
+ section: "tables";
11054
+ response: {
11055
+ description: string;
11056
+ schema: {
11057
+ type: "object";
11058
+ properties: {
11059
+ jobs: {
11060
+ type: "array";
11061
+ items: {
11062
+ type: "object";
11063
+ properties: {
11064
+ id: {
11065
+ type: "string";
11066
+ };
11067
+ botId: {
11068
+ type: "string";
11069
+ };
11070
+ tableId: {
11071
+ type: "string";
11072
+ };
11073
+ type: {
11074
+ type: "string";
11075
+ enum: string[];
11076
+ };
11077
+ status: {
11078
+ type: "string";
11079
+ enum: string[];
11080
+ };
11081
+ progress: {
11082
+ default: number;
11083
+ type: "number";
11084
+ };
11085
+ inputFileId: {
11086
+ type: "string";
11087
+ nullable: true;
11088
+ };
11089
+ outputFileId: {
11090
+ type: "string";
11091
+ nullable: true;
11092
+ };
11093
+ createdAt: {
11094
+ type: "string";
11095
+ format: string;
11096
+ };
11097
+ updatedAt: {
11098
+ type: "string";
11099
+ format: string;
11100
+ };
11101
+ };
11102
+ required: string[];
11103
+ };
11104
+ };
11105
+ };
11106
+ required: string[];
11107
+ title: string;
11108
+ additionalProperties: false;
11109
+ };
11110
+ };
11111
+ };
11112
+ importTable: {
11113
+ name: string;
11114
+ path: string;
11115
+ description: string;
11116
+ method: "post";
11117
+ parameters: {
11118
+ table: {
11119
+ type: "string";
11120
+ description: string;
11121
+ in: "path";
11122
+ };
11123
+ };
11124
+ requestBody: {
11125
+ description: string;
11126
+ schema: {
11127
+ type: "object";
11128
+ properties: {
11129
+ fileId: {
11130
+ type: "string";
11131
+ description: string;
11132
+ };
11133
+ };
11134
+ required: string[];
11135
+ title: string;
11136
+ additionalProperties: false;
11137
+ };
11138
+ };
11139
+ section: "tables";
11140
+ response: {
11141
+ description: string;
11142
+ schema: {
11143
+ type: "object";
11144
+ properties: {
11145
+ job: {
11146
+ type: "object";
11147
+ properties: {
11148
+ id: {
11149
+ type: "string";
11150
+ };
11151
+ botId: {
11152
+ type: "string";
11153
+ };
11154
+ tableId: {
11155
+ type: "string";
11156
+ };
11157
+ type: {
11158
+ type: "string";
11159
+ enum: string[];
11160
+ };
11161
+ status: {
11162
+ type: "string";
11163
+ enum: string[];
11164
+ };
11165
+ progress: {
11166
+ default: number;
11167
+ type: "number";
11168
+ };
11169
+ inputFileId: {
11170
+ type: "string";
11171
+ nullable: true;
11172
+ };
11173
+ outputFileId: {
11174
+ type: "string";
11175
+ nullable: true;
11176
+ };
11177
+ createdAt: {
11178
+ type: "string";
11179
+ format: string;
11180
+ };
11181
+ updatedAt: {
11182
+ type: "string";
11183
+ format: string;
11184
+ };
11185
+ };
11186
+ required: string[];
11187
+ additionalProperties: false;
11188
+ };
11189
+ };
11190
+ required: string[];
11191
+ title: string;
11192
+ additionalProperties: false;
11193
+ };
11194
+ };
11195
+ };
10941
11196
  updateTable: {
10942
11197
  name: string;
10943
11198
  path: string;
@@ -11609,6 +11864,7 @@ export declare const state: {
11609
11864
  getOrCreateTableBody: true;
11610
11865
  createTableBody: true;
11611
11866
  duplicateTableBody: true;
11867
+ importTableBody: true;
11612
11868
  updateTableBody: true;
11613
11869
  renameTableColumnBody: true;
11614
11870
  findTableRowsBody: true;
@@ -11754,6 +12010,9 @@ export declare const state: {
11754
12010
  getOrCreateTableResponse: true;
11755
12011
  createTableResponse: true;
11756
12012
  duplicateTableResponse: true;
12013
+ exportTableResponse: true;
12014
+ getTableJobsResponse: true;
12015
+ importTableResponse: true;
11757
12016
  updateTableResponse: true;
11758
12017
  renameTableColumnResponse: true;
11759
12018
  deleteTableResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.53.0",
3
+ "version": "0.55.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"},{"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"],"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","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"},{"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"],"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","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."}]}