@botpress/api 0.15.5 → 0.15.7

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.
@@ -3337,6 +3337,38 @@ export declare const state: {
3337
3337
  };
3338
3338
  };
3339
3339
  };
3340
+ getAllWorkspaceQuotaCompletion: {
3341
+ name: string;
3342
+ description: string;
3343
+ section: "workspace";
3344
+ method: "get";
3345
+ path: string;
3346
+ disableDefaultParameters: {
3347
+ "x-workspace-id": boolean;
3348
+ };
3349
+ response: {
3350
+ description: string;
3351
+ schema: {
3352
+ type: "object";
3353
+ additionalProperties: {
3354
+ type: "object";
3355
+ properties: {
3356
+ type: {
3357
+ type: "string";
3358
+ enum: string[];
3359
+ };
3360
+ completion: {
3361
+ type: "number";
3362
+ };
3363
+ };
3364
+ required: string[];
3365
+ additionalProperties: false;
3366
+ };
3367
+ title: string;
3368
+ };
3369
+ };
3370
+ parameters: {};
3371
+ };
3340
3372
  getWorkspaceQuota: {
3341
3373
  name: string;
3342
3374
  description: string;
@@ -5417,6 +5449,7 @@ export declare const state: {
5417
5449
  getWorkspaceResponse: true;
5418
5450
  listWorkspaceUsagesResponse: true;
5419
5451
  breakDownWorkspaceUsageByBotResponse: true;
5452
+ getAllWorkspaceQuotaCompletionResponse: true;
5420
5453
  getWorkspaceQuotaResponse: true;
5421
5454
  listWorkspaceQuotasResponse: true;
5422
5455
  updateWorkspaceResponse: true;
package/dist/index.js CHANGED
@@ -430155,6 +430155,51 @@ var state = {
430155
430155
  }
430156
430156
  }
430157
430157
  },
430158
+ getAllWorkspaceQuotaCompletion: {
430159
+ name: "getAllWorkspaceQuotaCompletion",
430160
+ description: "For a user, gets a map of workspace IDs to their highest quota completion rate",
430161
+ section: "workspace",
430162
+ method: "get",
430163
+ path: "/v1/admin/workspaces/usages/quota-completion",
430164
+ disableDefaultParameters: {
430165
+ "x-workspace-id": true
430166
+ },
430167
+ response: {
430168
+ description: "Success",
430169
+ schema: {
430170
+ type: "object",
430171
+ additionalProperties: {
430172
+ type: "object",
430173
+ properties: {
430174
+ type: {
430175
+ type: "string",
430176
+ enum: [
430177
+ "invocation_timeout",
430178
+ "invocation_calls",
430179
+ "storage_count",
430180
+ "bot_count",
430181
+ "knowledgebase_vector_storage",
430182
+ "workspace_ratelimit",
430183
+ "table_row_count",
430184
+ "workspace_member_count",
430185
+ "integrations_owned_count",
430186
+ "ai_spend",
430187
+ "openai_spend",
430188
+ "bing_search_spend"
430189
+ ]
430190
+ },
430191
+ completion: {
430192
+ type: "number"
430193
+ }
430194
+ },
430195
+ required: ["type", "completion"],
430196
+ additionalProperties: false
430197
+ },
430198
+ title: "getAllWorkspaceQuotaCompletionResponse"
430199
+ }
430200
+ },
430201
+ parameters: {}
430202
+ },
430158
430203
  getWorkspaceQuota: {
430159
430204
  name: "getWorkspaceQuota",
430160
430205
  description: "Get workspace quota",
@@ -432265,7 +432310,7 @@ var state = {
432265
432310
  title: "Botpress API",
432266
432311
  description: "API for Botpress Cloud",
432267
432312
  server: "https://api.botpress.cloud",
432268
- version: "0.15.5",
432313
+ version: "0.15.7",
432269
432314
  prefix: "v1"
432270
432315
  },
432271
432316
  errors: [
@@ -432468,6 +432513,7 @@ var state = {
432468
432513
  getWorkspaceResponse: true,
432469
432514
  listWorkspaceUsagesResponse: true,
432470
432515
  breakDownWorkspaceUsageByBotResponse: true,
432516
+ getAllWorkspaceQuotaCompletionResponse: true,
432471
432517
  getWorkspaceQuotaResponse: true,
432472
432518
  listWorkspaceQuotasResponse: true,
432473
432519
  updateWorkspaceResponse: true,
@@ -433968,6 +434014,7 @@ var state = {
433968
434014
  "getWorkspace",
433969
434015
  "listWorkspaceUsages",
433970
434016
  "breakDownWorkspaceUsageByBot",
434017
+ "getAllWorkspaceQuotaCompletion",
433971
434018
  "getWorkspaceQuota",
433972
434019
  "listWorkspaceQuotas",
433973
434020
  "updateWorkspace",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.15.5",
3
+ "version": "0.15.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/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":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["getState","setState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"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","chargeWorkspaceUnpaidInvoices","createWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","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","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]}],"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 not related with another resource. This is usually caused when providing two resources that aren't linked together."},{"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":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["getState","setState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"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","chargeWorkspaceUnpaidInvoices","createWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","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","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]}],"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 not related with another resource. This is usually caused when providing two resources that aren't linked together."},{"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."}]}