@botpress/api 0.15.6 → 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.
@@ -2226,10 +2226,6 @@ export declare const state: {
2226
2226
  };
2227
2227
  description: string;
2228
2228
  };
2229
- alwaysAlive: {
2230
- type: "boolean";
2231
- description: string;
2232
- };
2233
2229
  };
2234
2230
  title: string;
2235
2231
  additionalProperties: false;
@@ -3341,6 +3337,38 @@ export declare const state: {
3341
3337
  };
3342
3338
  };
3343
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
+ };
3344
3372
  getWorkspaceQuota: {
3345
3373
  name: string;
3346
3374
  description: string;
@@ -5421,6 +5449,7 @@ export declare const state: {
5421
5449
  getWorkspaceResponse: true;
5422
5450
  listWorkspaceUsagesResponse: true;
5423
5451
  breakDownWorkspaceUsageByBotResponse: true;
5452
+ getAllWorkspaceQuotaCompletionResponse: true;
5424
5453
  getWorkspaceQuotaResponse: true;
5425
5454
  listWorkspaceQuotasResponse: true;
5426
5455
  updateWorkspaceResponse: true;
@@ -5780,15 +5809,6 @@ export declare const state: {
5780
5809
  type: "string";
5781
5810
  description: string;
5782
5811
  };
5783
- alwaysAlive: {
5784
- type: "boolean";
5785
- description: string;
5786
- };
5787
- status: {
5788
- type: "string";
5789
- enum: string[];
5790
- description: string;
5791
- };
5792
5812
  medias: {
5793
5813
  type: "array";
5794
5814
  items: {
package/dist/index.js CHANGED
@@ -428948,10 +428948,6 @@ var state = {
428948
428948
  required: ["url", "name"]
428949
428949
  },
428950
428950
  description: "Media files associated with the [Bot](#schema_bot)"
428951
- },
428952
- alwaysAlive: {
428953
- type: "boolean",
428954
- description: "Indicates if the [Bot](#schema_bot) should be executed in accelerated mode"
428955
428951
  }
428956
428952
  },
428957
428953
  title: "updateBotBody",
@@ -430061,8 +430057,7 @@ var state = {
430061
430057
  "integrations_owned_count",
430062
430058
  "ai_spend",
430063
430059
  "openai_spend",
430064
- "bing_search_spend",
430065
- "always_alive"
430060
+ "bing_search_spend"
430066
430061
  ],
430067
430062
  required: true
430068
430063
  },
@@ -430122,8 +430117,7 @@ var state = {
430122
430117
  "integrations_owned_count",
430123
430118
  "ai_spend",
430124
430119
  "openai_spend",
430125
- "bing_search_spend",
430126
- "always_alive"
430120
+ "bing_search_spend"
430127
430121
  ],
430128
430122
  required: true
430129
430123
  },
@@ -430161,6 +430155,51 @@ var state = {
430161
430155
  }
430162
430156
  }
430163
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
+ },
430164
430203
  getWorkspaceQuota: {
430165
430204
  name: "getWorkspaceQuota",
430166
430205
  description: "Get workspace quota",
@@ -430192,8 +430231,7 @@ var state = {
430192
430231
  "integrations_owned_count",
430193
430232
  "ai_spend",
430194
430233
  "openai_spend",
430195
- "bing_search_spend",
430196
- "always_alive"
430234
+ "bing_search_spend"
430197
430235
  ],
430198
430236
  required: true
430199
430237
  },
@@ -430234,8 +430272,7 @@ var state = {
430234
430272
  "integrations_owned_count",
430235
430273
  "ai_spend",
430236
430274
  "openai_spend",
430237
- "bing_search_spend",
430238
- "always_alive"
430275
+ "bing_search_spend"
430239
430276
  ],
430240
430277
  description: "Usage type that can be used"
430241
430278
  }
@@ -430304,8 +430341,7 @@ var state = {
430304
430341
  "integrations_owned_count",
430305
430342
  "ai_spend",
430306
430343
  "openai_spend",
430307
- "bing_search_spend",
430308
- "always_alive"
430344
+ "bing_search_spend"
430309
430345
  ],
430310
430346
  description: "Usage type that can be used"
430311
430347
  }
@@ -431945,8 +431981,7 @@ var state = {
431945
431981
  "integrations_owned_count",
431946
431982
  "ai_spend",
431947
431983
  "openai_spend",
431948
- "bing_search_spend",
431949
- "always_alive"
431984
+ "bing_search_spend"
431950
431985
  ],
431951
431986
  required: true
431952
431987
  },
@@ -431999,8 +432034,7 @@ var state = {
431999
432034
  "integrations_owned_count",
432000
432035
  "ai_spend",
432001
432036
  "openai_spend",
432002
- "bing_search_spend",
432003
- "always_alive"
432037
+ "bing_search_spend"
432004
432038
  ],
432005
432039
  required: true
432006
432040
  },
@@ -432276,7 +432310,7 @@ var state = {
432276
432310
  title: "Botpress API",
432277
432311
  description: "API for Botpress Cloud",
432278
432312
  server: "https://api.botpress.cloud",
432279
- version: "0.15.6",
432313
+ version: "0.15.7",
432280
432314
  prefix: "v1"
432281
432315
  },
432282
432316
  errors: [
@@ -432479,6 +432513,7 @@ var state = {
432479
432513
  getWorkspaceResponse: true,
432480
432514
  listWorkspaceUsagesResponse: true,
432481
432515
  breakDownWorkspaceUsageByBotResponse: true,
432516
+ getAllWorkspaceQuotaCompletionResponse: true,
432482
432517
  getWorkspaceQuotaResponse: true,
432483
432518
  listWorkspaceQuotasResponse: true,
432484
432519
  updateWorkspaceResponse: true,
@@ -432860,15 +432895,6 @@ var state = {
432860
432895
  type: "string",
432861
432896
  description: "Id of the user that created the bot"
432862
432897
  },
432863
- alwaysAlive: {
432864
- type: "boolean",
432865
- description: "Indicates if the [Bot](#schema_bot) should be executed in accelerated mode"
432866
- },
432867
- status: {
432868
- type: "string",
432869
- enum: ["active", "deploying"],
432870
- description: "Status of the bot"
432871
- },
432872
432898
  medias: {
432873
432899
  type: "array",
432874
432900
  items: {
@@ -432903,8 +432929,6 @@ var state = {
432903
432929
  "recurringEvents",
432904
432930
  "name",
432905
432931
  "dev",
432906
- "alwaysAlive",
432907
- "status",
432908
432932
  "medias"
432909
432933
  ],
432910
432934
  additionalProperties: false
@@ -433425,8 +433449,7 @@ var state = {
433425
433449
  "integrations_owned_count",
433426
433450
  "ai_spend",
433427
433451
  "openai_spend",
433428
- "bing_search_spend",
433429
- "always_alive"
433452
+ "bing_search_spend"
433430
433453
  ],
433431
433454
  description: "Usage type that can be used"
433432
433455
  }
@@ -433991,6 +434014,7 @@ var state = {
433991
434014
  "getWorkspace",
433992
434015
  "listWorkspaceUsages",
433993
434016
  "breakDownWorkspaceUsageByBot",
434017
+ "getAllWorkspaceQuotaCompletion",
433994
434018
  "getWorkspaceQuota",
433995
434019
  "listWorkspaceQuotas",
433996
434020
  "updateWorkspace",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.15.6",
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."}]}