@botpress/api 0.19.3 → 0.20.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
@@ -273873,6 +273873,10 @@ var state = {
273873
273873
  "type": "string",
273874
273874
  "description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
273875
273875
  },
273876
+ "public": {
273877
+ "type": "boolean",
273878
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
273879
+ },
273876
273880
  "ownerWorkspace": {
273877
273881
  "type": "object",
273878
273882
  "properties": {
@@ -273903,6 +273907,7 @@ var state = {
273903
273907
  "title",
273904
273908
  "description",
273905
273909
  "iconUrl",
273910
+ "public",
273906
273911
  "ownerWorkspace"
273907
273912
  ]
273908
273913
  }
@@ -274360,6 +274365,10 @@ var state = {
274360
274365
  "type": "string",
274361
274366
  "description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
274362
274367
  },
274368
+ "public": {
274369
+ "type": "boolean",
274370
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
274371
+ },
274363
274372
  "secrets": {
274364
274373
  "type": "array",
274365
274374
  "items": {
@@ -274408,6 +274417,7 @@ var state = {
274408
274417
  "description",
274409
274418
  "iconUrl",
274410
274419
  "readmeUrl",
274420
+ "public",
274411
274421
  "secrets",
274412
274422
  "ownerWorkspace"
274413
274423
  ],
@@ -274860,6 +274870,10 @@ var state = {
274860
274870
  "type": "string",
274861
274871
  "description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
274862
274872
  },
274873
+ "public": {
274874
+ "type": "boolean",
274875
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
274876
+ },
274863
274877
  "secrets": {
274864
274878
  "type": "array",
274865
274879
  "items": {
@@ -274908,6 +274922,7 @@ var state = {
274908
274922
  "description",
274909
274923
  "iconUrl",
274910
274924
  "readmeUrl",
274925
+ "public",
274911
274926
  "secrets",
274912
274927
  "ownerWorkspace"
274913
274928
  ],
@@ -278602,6 +278617,10 @@ var state = {
278602
278617
  "type": "string",
278603
278618
  "maxLength": 256,
278604
278619
  "description": "Description of the integration. This is the description that will be displayed in the UI"
278620
+ },
278621
+ "public": {
278622
+ "type": "boolean",
278623
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
278605
278624
  }
278606
278625
  },
278607
278626
  "required": [
@@ -279025,6 +279044,10 @@ var state = {
279025
279044
  "url": {
279026
279045
  "type": "string",
279027
279046
  "description": "URL of the integration; Only available for dev integrations"
279047
+ },
279048
+ "public": {
279049
+ "type": "boolean",
279050
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
279028
279051
  }
279029
279052
  },
279030
279053
  "title": "updateIntegrationBody",
@@ -279127,6 +279150,10 @@ var state = {
279127
279150
  "iconUrl": {
279128
279151
  "type": "string",
279129
279152
  "description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
279153
+ },
279154
+ "public": {
279155
+ "type": "boolean",
279156
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
279130
279157
  }
279131
279158
  },
279132
279159
  "required": [
@@ -279137,7 +279164,8 @@ var state = {
279137
279164
  "updatedAt",
279138
279165
  "title",
279139
279166
  "description",
279140
- "iconUrl"
279167
+ "iconUrl",
279168
+ "public"
279141
279169
  ]
279142
279170
  }
279143
279171
  },
@@ -280053,6 +280081,11 @@ var state = {
280053
280081
  "description": "Query expressed in natural language to retrieve matching text passages within all files using semantical search.",
280054
280082
  "required": true
280055
280083
  },
280084
+ "contextDepth": {
280085
+ "in": "query",
280086
+ "type": "string",
280087
+ "description": "The number of neighbor passages to prepend and append as surrounding context to the content of each returned passage. Default: 0, Maximum: 10"
280088
+ },
280056
280089
  "limit": {
280057
280090
  "in": "query",
280058
280091
  "type": "string",
@@ -280812,7 +280845,7 @@ var state = {
280812
280845
  "title": "Botpress API",
280813
280846
  "description": "API for Botpress Cloud",
280814
280847
  "server": "https://api.botpress.cloud",
280815
- "version": "0.19.3",
280848
+ "version": "0.20.0",
280816
280849
  "prefix": "v1"
280817
280850
  },
280818
280851
  "errors": [
@@ -280925,6 +280958,11 @@ var state = {
280925
280958
  "status": 413,
280926
280959
  "type": "LimitExceeded",
280927
280960
  "description": "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."
280961
+ },
280962
+ {
280963
+ "status": 400,
280964
+ "type": "BreakingChanges",
280965
+ "description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
280928
280966
  }
280929
280967
  ],
280930
280968
  "refs": {
@@ -281226,6 +281264,10 @@ var state = {
281226
281264
  "iconUrl": {
281227
281265
  "type": "string",
281228
281266
  "description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
281267
+ },
281268
+ "public": {
281269
+ "type": "boolean",
281270
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
281229
281271
  }
281230
281272
  },
281231
281273
  "required": [
@@ -281242,7 +281284,8 @@ var state = {
281242
281284
  "updatedAt",
281243
281285
  "title",
281244
281286
  "description",
281245
- "iconUrl"
281287
+ "iconUrl",
281288
+ "public"
281246
281289
  ],
281247
281290
  "additionalProperties": false
281248
281291
  },
@@ -282032,6 +282075,10 @@ var state = {
282032
282075
  "type": "string",
282033
282076
  "description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
282034
282077
  },
282078
+ "public": {
282079
+ "type": "boolean",
282080
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
282081
+ },
282035
282082
  "secrets": {
282036
282083
  "type": "array",
282037
282084
  "items": {
@@ -282059,6 +282106,7 @@ var state = {
282059
282106
  "description",
282060
282107
  "iconUrl",
282061
282108
  "readmeUrl",
282109
+ "public",
282062
282110
  "secrets"
282063
282111
  ],
282064
282112
  "additionalProperties": false
@@ -2162,6 +2162,10 @@ export declare const state: {
2162
2162
  type: "string";
2163
2163
  description: string;
2164
2164
  };
2165
+ public: {
2166
+ type: "boolean";
2167
+ description: string;
2168
+ };
2165
2169
  ownerWorkspace: {
2166
2170
  type: "object";
2167
2171
  properties: {
@@ -2590,6 +2594,10 @@ export declare const state: {
2590
2594
  type: "string";
2591
2595
  description: string;
2592
2596
  };
2597
+ public: {
2598
+ type: "boolean";
2599
+ description: string;
2600
+ };
2593
2601
  secrets: {
2594
2602
  type: "array";
2595
2603
  items: {
@@ -3021,6 +3029,10 @@ export declare const state: {
3021
3029
  type: "string";
3022
3030
  description: string;
3023
3031
  };
3032
+ public: {
3033
+ type: "boolean";
3034
+ description: string;
3035
+ };
3024
3036
  secrets: {
3025
3037
  type: "array";
3026
3038
  items: {
@@ -6187,6 +6199,10 @@ export declare const state: {
6187
6199
  maxLength: number;
6188
6200
  description: string;
6189
6201
  };
6202
+ public: {
6203
+ type: "boolean";
6204
+ description: string;
6205
+ };
6190
6206
  };
6191
6207
  required: string[];
6192
6208
  title: string;
@@ -6579,6 +6595,10 @@ export declare const state: {
6579
6595
  type: "string";
6580
6596
  description: string;
6581
6597
  };
6598
+ public: {
6599
+ type: "boolean";
6600
+ description: string;
6601
+ };
6582
6602
  };
6583
6603
  title: string;
6584
6604
  additionalProperties: false;
@@ -6679,6 +6699,10 @@ export declare const state: {
6679
6699
  type: "string";
6680
6700
  description: string;
6681
6701
  };
6702
+ public: {
6703
+ type: "boolean";
6704
+ description: string;
6705
+ };
6682
6706
  };
6683
6707
  required: string[];
6684
6708
  };
@@ -7481,6 +7505,11 @@ export declare const state: {
7481
7505
  description: string;
7482
7506
  required: true;
7483
7507
  };
7508
+ contextDepth: {
7509
+ in: "query";
7510
+ type: "string";
7511
+ description: string;
7512
+ };
7484
7513
  limit: {
7485
7514
  in: "query";
7486
7515
  type: "string";
@@ -8529,6 +8558,10 @@ export declare const state: {
8529
8558
  type: "string";
8530
8559
  description: string;
8531
8560
  };
8561
+ public: {
8562
+ type: "boolean";
8563
+ description: string;
8564
+ };
8532
8565
  };
8533
8566
  required: string[];
8534
8567
  additionalProperties: false;
@@ -9215,6 +9248,10 @@ export declare const state: {
9215
9248
  type: "string";
9216
9249
  description: string;
9217
9250
  };
9251
+ public: {
9252
+ type: "boolean";
9253
+ description: string;
9254
+ };
9218
9255
  secrets: {
9219
9256
  type: "array";
9220
9257
  items: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.19.3",
3
+ "version": "0.20.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":"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","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","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","createTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"Operations related to file management.","name":"files","operations":["createFile","deleteFile","listFiles","getFileMetadata","getFileContent","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":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."}]}
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","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","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","createTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"Operations related to file management.","name":"files","operations":["createFile","deleteFile","listFiles","getFileMetadata","getFileContent","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":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."}]}