@botpress/api 1.22.0 → 1.24.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.
@@ -3978,6 +3978,20 @@ export declare const state: {
3978
3978
  type: "object";
3979
3979
  additionalProperties: true;
3980
3980
  };
3981
+ interfaces: {
3982
+ type: "object";
3983
+ additionalProperties: {
3984
+ type: "object";
3985
+ properties: {
3986
+ integrationId: {
3987
+ type: "string";
3988
+ };
3989
+ };
3990
+ required: string[];
3991
+ additionalProperties: false;
3992
+ };
3993
+ description: string;
3994
+ };
3981
3995
  };
3982
3996
  required: string[];
3983
3997
  nullable: true;
@@ -3985,6 +3999,10 @@ export declare const state: {
3985
3999
  };
3986
4000
  description: string;
3987
4001
  };
4002
+ shouldMergePlugins: {
4003
+ type: "boolean";
4004
+ description: string;
4005
+ };
3988
4006
  subscriptions: {
3989
4007
  type: "object";
3990
4008
  properties: {
@@ -4992,6 +5010,65 @@ export declare const state: {
4992
5010
  };
4993
5011
  };
4994
5012
  };
5013
+ getBotJson: {
5014
+ name: string;
5015
+ description: string;
5016
+ method: "get";
5017
+ path: string;
5018
+ section: "bot";
5019
+ parameters: {
5020
+ id: {
5021
+ type: "string";
5022
+ description: string;
5023
+ in: "path";
5024
+ };
5025
+ };
5026
+ response: {
5027
+ description: string;
5028
+ schema: {
5029
+ type: "object";
5030
+ additionalProperties: true;
5031
+ title: string;
5032
+ };
5033
+ };
5034
+ };
5035
+ publishFromBotJson: {
5036
+ name: string;
5037
+ description: string;
5038
+ method: "post";
5039
+ path: string;
5040
+ section: "bot";
5041
+ parameters: {
5042
+ id: {
5043
+ type: "string";
5044
+ description: string;
5045
+ in: "path";
5046
+ };
5047
+ };
5048
+ requestBody: {
5049
+ description: string;
5050
+ schema: {
5051
+ type: "object";
5052
+ properties: {
5053
+ botJson: {
5054
+ type: "object";
5055
+ additionalProperties: true;
5056
+ };
5057
+ };
5058
+ required: string[];
5059
+ title: string;
5060
+ additionalProperties: false;
5061
+ };
5062
+ };
5063
+ response: {
5064
+ description: string;
5065
+ schema: {
5066
+ type: "object";
5067
+ additionalProperties: true;
5068
+ title: string;
5069
+ };
5070
+ };
5071
+ };
4995
5072
  createBotVersion: {
4996
5073
  name: string;
4997
5074
  description: string;
@@ -11599,6 +11676,7 @@ export declare const state: {
11599
11676
  createBotBody: true;
11600
11677
  updateBotBody: true;
11601
11678
  transferBotBody: true;
11679
+ publishFromBotJsonBody: true;
11602
11680
  createBotVersionBody: true;
11603
11681
  deployBotVersionBody: true;
11604
11682
  createIntegrationShareableIdBody: true;
@@ -11658,6 +11736,8 @@ export declare const state: {
11658
11736
  listBotIssueEventsResponse: true;
11659
11737
  listBotVersionsResponse: true;
11660
11738
  getBotVersionResponse: true;
11739
+ getBotJsonResponse: true;
11740
+ publishFromBotJsonResponse: true;
11661
11741
  createBotVersionResponse: true;
11662
11742
  deployBotVersionResponse: true;
11663
11743
  createIntegrationShareableIdResponse: true;
@@ -11901,6 +11981,20 @@ export declare const state: {
11901
11981
  type: "object";
11902
11982
  additionalProperties: true;
11903
11983
  };
11984
+ interfaces: {
11985
+ type: "object";
11986
+ additionalProperties: {
11987
+ type: "object";
11988
+ properties: {
11989
+ integrationId: {
11990
+ type: "string";
11991
+ };
11992
+ };
11993
+ required: string[];
11994
+ additionalProperties: false;
11995
+ };
11996
+ description: string;
11997
+ };
11904
11998
  id: {
11905
11999
  type: "string";
11906
12000
  minLength: number;
@@ -1735,6 +1735,20 @@ export declare const state: {
1735
1735
  type: "object";
1736
1736
  additionalProperties: true;
1737
1737
  };
1738
+ interfaces: {
1739
+ type: "object";
1740
+ additionalProperties: {
1741
+ type: "object";
1742
+ properties: {
1743
+ integrationId: {
1744
+ type: "string";
1745
+ };
1746
+ };
1747
+ required: string[];
1748
+ additionalProperties: false;
1749
+ };
1750
+ description: string;
1751
+ };
1738
1752
  id: {
1739
1753
  type: "string";
1740
1754
  minLength: number;
@@ -2653,6 +2653,20 @@ export declare const state: {
2653
2653
  type: "object";
2654
2654
  additionalProperties: true;
2655
2655
  };
2656
+ interfaces: {
2657
+ type: "object";
2658
+ additionalProperties: {
2659
+ type: "object";
2660
+ properties: {
2661
+ integrationId: {
2662
+ type: "string";
2663
+ };
2664
+ };
2665
+ required: string[];
2666
+ additionalProperties: false;
2667
+ };
2668
+ description: string;
2669
+ };
2656
2670
  id: {
2657
2671
  type: "string";
2658
2672
  minLength: number;
@@ -6325,6 +6325,20 @@ export declare const state: {
6325
6325
  type: "object";
6326
6326
  additionalProperties: true;
6327
6327
  };
6328
+ interfaces: {
6329
+ type: "object";
6330
+ additionalProperties: {
6331
+ type: "object";
6332
+ properties: {
6333
+ integrationId: {
6334
+ type: "string";
6335
+ };
6336
+ };
6337
+ required: string[];
6338
+ additionalProperties: false;
6339
+ };
6340
+ description: string;
6341
+ };
6328
6342
  };
6329
6343
  required: string[];
6330
6344
  nullable: true;
@@ -6332,6 +6346,10 @@ export declare const state: {
6332
6346
  };
6333
6347
  description: string;
6334
6348
  };
6349
+ shouldMergePlugins: {
6350
+ type: "boolean";
6351
+ description: string;
6352
+ };
6335
6353
  subscriptions: {
6336
6354
  type: "object";
6337
6355
  properties: {
@@ -7339,6 +7357,65 @@ export declare const state: {
7339
7357
  };
7340
7358
  };
7341
7359
  };
7360
+ getBotJson: {
7361
+ name: string;
7362
+ description: string;
7363
+ method: "get";
7364
+ path: string;
7365
+ section: "bot";
7366
+ parameters: {
7367
+ id: {
7368
+ type: "string";
7369
+ description: string;
7370
+ in: "path";
7371
+ };
7372
+ };
7373
+ response: {
7374
+ description: string;
7375
+ schema: {
7376
+ type: "object";
7377
+ additionalProperties: true;
7378
+ title: string;
7379
+ };
7380
+ };
7381
+ };
7382
+ publishFromBotJson: {
7383
+ name: string;
7384
+ description: string;
7385
+ method: "post";
7386
+ path: string;
7387
+ section: "bot";
7388
+ parameters: {
7389
+ id: {
7390
+ type: "string";
7391
+ description: string;
7392
+ in: "path";
7393
+ };
7394
+ };
7395
+ requestBody: {
7396
+ description: string;
7397
+ schema: {
7398
+ type: "object";
7399
+ properties: {
7400
+ botJson: {
7401
+ type: "object";
7402
+ additionalProperties: true;
7403
+ };
7404
+ };
7405
+ required: string[];
7406
+ title: string;
7407
+ additionalProperties: false;
7408
+ };
7409
+ };
7410
+ response: {
7411
+ description: string;
7412
+ schema: {
7413
+ type: "object";
7414
+ additionalProperties: true;
7415
+ title: string;
7416
+ };
7417
+ };
7418
+ };
7342
7419
  createBotVersion: {
7343
7420
  name: string;
7344
7421
  description: string;
@@ -16527,6 +16604,7 @@ export declare const state: {
16527
16604
  createBotBody: true;
16528
16605
  updateBotBody: true;
16529
16606
  transferBotBody: true;
16607
+ publishFromBotJsonBody: true;
16530
16608
  createBotVersionBody: true;
16531
16609
  deployBotVersionBody: true;
16532
16610
  createIntegrationShareableIdBody: true;
@@ -16648,6 +16726,8 @@ export declare const state: {
16648
16726
  listBotIssueEventsResponse: true;
16649
16727
  listBotVersionsResponse: true;
16650
16728
  getBotVersionResponse: true;
16729
+ getBotJsonResponse: true;
16730
+ publishFromBotJsonResponse: true;
16651
16731
  createBotVersionResponse: true;
16652
16732
  deployBotVersionResponse: true;
16653
16733
  createIntegrationShareableIdResponse: true;
@@ -16923,6 +17003,20 @@ export declare const state: {
16923
17003
  type: "object";
16924
17004
  additionalProperties: true;
16925
17005
  };
17006
+ interfaces: {
17007
+ type: "object";
17008
+ additionalProperties: {
17009
+ type: "object";
17010
+ properties: {
17011
+ integrationId: {
17012
+ type: "string";
17013
+ };
17014
+ };
17015
+ required: string[];
17016
+ additionalProperties: false;
17017
+ };
17018
+ description: string;
17019
+ };
16926
17020
  id: {
16927
17021
  type: "string";
16928
17022
  minLength: number;
@@ -1347,6 +1347,20 @@ export declare const state: {
1347
1347
  type: "object";
1348
1348
  additionalProperties: true;
1349
1349
  };
1350
+ interfaces: {
1351
+ type: "object";
1352
+ additionalProperties: {
1353
+ type: "object";
1354
+ properties: {
1355
+ integrationId: {
1356
+ type: "string";
1357
+ };
1358
+ };
1359
+ required: string[];
1360
+ additionalProperties: false;
1361
+ };
1362
+ description: string;
1363
+ };
1350
1364
  id: {
1351
1365
  type: "string";
1352
1366
  minLength: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.22.0",
3
+ "version": "1.24.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":[],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":[],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":[],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":[],"schema":"Message"},{"description":"","title":"State","name":"state","operations":[],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration","listPublicPlugins","getPublicPluginById","getPublicPlugin","getPublicPluginCode","listPublicInterfaces","getPublicInterfaceById","getPublicInterface"]},{"description":"","title":"Action","name":"action","operations":[]},{"description":"","title":"Task","name":"task","operations":[],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":[],"schema":"Workflow"},{"description":"","title":"Tag","name":"tag","operations":[]},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","listActionRuns","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion","createIntegrationShareableId","deleteIntegrationShareableId","getIntegrationShareableId","unlinkSandboxedConversations","listBotApiKeys","createBotApiKey","deleteBotApiKey"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","validateIntegrationCreation","updateIntegration","validateIntegrationUpdate","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","getPluginCode"],"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","deleteAccount","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":[],"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":[],"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":[],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":[],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":[],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":[],"schema":"Message"},{"description":"","title":"State","name":"state","operations":[],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration","listPublicPlugins","getPublicPluginById","getPublicPlugin","getPublicPluginCode","listPublicInterfaces","getPublicInterfaceById","getPublicInterface"]},{"description":"","title":"Action","name":"action","operations":[]},{"description":"","title":"Task","name":"task","operations":[],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":[],"schema":"Workflow"},{"description":"","title":"Tag","name":"tag","operations":[]},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","listActionRuns","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","getBotJson","publishFromBotJson","createBotVersion","deployBotVersion","createIntegrationShareableId","deleteIntegrationShareableId","getIntegrationShareableId","unlinkSandboxedConversations","listBotApiKeys","createBotApiKey","deleteBotApiKey"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","validateIntegrationCreation","updateIntegration","validateIntegrationUpdate","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","getPluginCode"],"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","deleteAccount","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":[],"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":[],"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."}]}