@botpress/api 0.22.0 → 0.23.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
@@ -276263,113 +276263,6 @@ var state = {
276263
276263
  }
276264
276264
  }
276265
276265
  },
276266
- "getWorkspaceBillingDetails": {
276267
- "name": "getWorkspaceBillingDetails",
276268
- "description": "Get billing details of workspace",
276269
- "method": "get",
276270
- "path": "/v1/admin/workspaces/{id}/billing/details",
276271
- "disableDefaultParameters": {
276272
- "x-workspace-id": true
276273
- },
276274
- "parameters": {
276275
- "id": {
276276
- "type": "string",
276277
- "description": "Workspace ID",
276278
- "in": "path"
276279
- }
276280
- },
276281
- "section": "workspace",
276282
- "response": {
276283
- "description": "Success",
276284
- "schema": {
276285
- "type": "object",
276286
- "properties": {
276287
- "currentPeriod": {
276288
- "type": "object",
276289
- "properties": {
276290
- "start": {
276291
- "type": "string"
276292
- },
276293
- "end": {
276294
- "type": "string"
276295
- },
276296
- "usage": {
276297
- "type": "object",
276298
- "properties": {
276299
- "userMessages": {
276300
- "type": "object",
276301
- "properties": {
276302
- "status": {
276303
- "type": "string",
276304
- "enum": [
276305
- "OK",
276306
- "Warning",
276307
- "LimitReached"
276308
- ]
276309
- },
276310
- "quantity": {
276311
- "type": "number"
276312
- },
276313
- "price": {
276314
- "type": "number"
276315
- },
276316
- "minimum": {
276317
- "type": "number"
276318
- },
276319
- "maximum": {
276320
- "type": "number"
276321
- }
276322
- },
276323
- "required": [
276324
- "status",
276325
- "quantity",
276326
- "price",
276327
- "minimum",
276328
- "maximum"
276329
- ],
276330
- "additionalProperties": false
276331
- }
276332
- },
276333
- "required": [
276334
- "userMessages"
276335
- ],
276336
- "additionalProperties": false
276337
- }
276338
- },
276339
- "required": [
276340
- "start",
276341
- "end",
276342
- "usage"
276343
- ],
276344
- "additionalProperties": false
276345
- },
276346
- "paymentMethod": {
276347
- "type": "object",
276348
- "properties": {
276349
- "type": {
276350
- "type": "string"
276351
- },
276352
- "lastDigits": {
276353
- "type": "string"
276354
- }
276355
- },
276356
- "required": [
276357
- "type",
276358
- "lastDigits"
276359
- ],
276360
- "nullable": true,
276361
- "additionalProperties": false
276362
- }
276363
- },
276364
- "required": [
276365
- "currentPeriod",
276366
- "paymentMethod"
276367
- ],
276368
- "title": "getWorkspaceBillingDetailsResponse",
276369
- "additionalProperties": false
276370
- }
276371
- }
276372
- },
276373
276266
  "setWorkspacePaymentMethod": {
276374
276267
  "name": "setWorkspacePaymentMethod",
276375
276268
  "description": "Set the Stripe PaymentMethod to use for billing the workspace. To create a PaymentMethod, use the Stripe API or SDK with our Stripe Publishable Key which is listed in this documentation.",
@@ -281207,7 +281100,7 @@ var state = {
281207
281100
  "title": "Botpress API",
281208
281101
  "description": "API for Botpress Cloud",
281209
281102
  "server": "https://api.botpress.cloud",
281210
- "version": "0.22.0",
281103
+ "version": "0.23.0",
281211
281104
  "prefix": "v1"
281212
281105
  },
281213
281106
  "errors": [
@@ -281441,7 +281334,6 @@ var state = {
281441
281334
  "listBotIssuesResponse": true,
281442
281335
  "deleteBotIssueResponse": true,
281443
281336
  "listBotIssueEventsResponse": true,
281444
- "getWorkspaceBillingDetailsResponse": true,
281445
281337
  "setWorkspacePaymentMethodResponse": true,
281446
281338
  "listWorkspaceInvoicesResponse": true,
281447
281339
  "getUpcomingInvoiceResponse": true,
@@ -283746,7 +283638,6 @@ var state = {
283746
283638
  "description": "",
283747
283639
  "name": "workspace",
283748
283640
  "operations": [
283749
- "getWorkspaceBillingDetails",
283750
283641
  "setWorkspacePaymentMethod",
283751
283642
  "listWorkspaceInvoices",
283752
283643
  "getUpcomingInvoice",
@@ -4237,91 +4237,6 @@ export declare const state: {
4237
4237
  };
4238
4238
  };
4239
4239
  };
4240
- getWorkspaceBillingDetails: {
4241
- name: string;
4242
- description: string;
4243
- method: "get";
4244
- path: string;
4245
- disableDefaultParameters: {
4246
- "x-workspace-id": boolean;
4247
- };
4248
- parameters: {
4249
- id: {
4250
- type: "string";
4251
- description: string;
4252
- in: "path";
4253
- };
4254
- };
4255
- section: "workspace";
4256
- response: {
4257
- description: string;
4258
- schema: {
4259
- type: "object";
4260
- properties: {
4261
- currentPeriod: {
4262
- type: "object";
4263
- properties: {
4264
- start: {
4265
- type: "string";
4266
- };
4267
- end: {
4268
- type: "string";
4269
- };
4270
- usage: {
4271
- type: "object";
4272
- properties: {
4273
- userMessages: {
4274
- type: "object";
4275
- properties: {
4276
- status: {
4277
- type: "string";
4278
- enum: string[];
4279
- };
4280
- quantity: {
4281
- type: "number";
4282
- };
4283
- price: {
4284
- type: "number";
4285
- };
4286
- minimum: {
4287
- type: "number";
4288
- };
4289
- maximum: {
4290
- type: "number";
4291
- };
4292
- };
4293
- required: string[];
4294
- additionalProperties: false;
4295
- };
4296
- };
4297
- required: string[];
4298
- additionalProperties: false;
4299
- };
4300
- };
4301
- required: string[];
4302
- additionalProperties: false;
4303
- };
4304
- paymentMethod: {
4305
- type: "object";
4306
- properties: {
4307
- type: {
4308
- type: "string";
4309
- };
4310
- lastDigits: {
4311
- type: "string";
4312
- };
4313
- };
4314
- required: string[];
4315
- nullable: true;
4316
- additionalProperties: false;
4317
- };
4318
- };
4319
- required: string[];
4320
- title: string;
4321
- additionalProperties: false;
4322
- };
4323
- };
4324
- };
4325
4240
  setWorkspacePaymentMethod: {
4326
4241
  name: string;
4327
4242
  description: string;
@@ -8685,7 +8600,6 @@ export declare const state: {
8685
8600
  listBotIssuesResponse: true;
8686
8601
  deleteBotIssueResponse: true;
8687
8602
  listBotIssueEventsResponse: true;
8688
- getWorkspaceBillingDetailsResponse: true;
8689
8603
  setWorkspacePaymentMethodResponse: true;
8690
8604
  listWorkspaceInvoicesResponse: true;
8691
8605
  getUpcomingInvoiceResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.22.0",
3
+ "version": "0.23.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":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","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","getOrCreateTable","createTable","duplicateTable","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."}]}
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":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["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","getOrCreateTable","createTable","duplicateTable","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."}]}