@botpress/api 0.10.0 → 0.11.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
@@ -428180,16 +428180,32 @@ var state = {
428180
428180
  description: "ISO 8601 date string of the end (exclusive) of the period"
428181
428181
  },
428182
428182
  returningUsers: {
428183
- type: "number"
428183
+ type: "integer"
428184
428184
  },
428185
428185
  newUsers: {
428186
- type: "number"
428186
+ type: "integer"
428187
428187
  },
428188
428188
  sessions: {
428189
- type: "number"
428189
+ type: "integer"
428190
428190
  },
428191
428191
  messages: {
428192
- type: "number"
428192
+ type: "integer",
428193
+ description: "Deprecated. Use `userMessages` instead."
428194
+ },
428195
+ userMessages: {
428196
+ type: "integer"
428197
+ },
428198
+ botMessages: {
428199
+ type: "integer"
428200
+ },
428201
+ events: {
428202
+ type: "integer"
428203
+ },
428204
+ eventTypes: {
428205
+ type: "object",
428206
+ additionalProperties: {
428207
+ type: "number"
428208
+ }
428193
428209
  }
428194
428210
  },
428195
428211
  required: [
@@ -428198,7 +428214,11 @@ var state = {
428198
428214
  "returningUsers",
428199
428215
  "newUsers",
428200
428216
  "sessions",
428201
- "messages"
428217
+ "messages",
428218
+ "userMessages",
428219
+ "botMessages",
428220
+ "events",
428221
+ "eventTypes"
428202
428222
  ]
428203
428223
  }
428204
428224
  }
@@ -428381,6 +428401,356 @@ var state = {
428381
428401
  }
428382
428402
  }
428383
428403
  },
428404
+ getWorkspaceBillingDetails: {
428405
+ name: "getWorkspaceBillingDetails",
428406
+ description: "Get billing details of workspace",
428407
+ method: "get",
428408
+ path: "/v1/admin/workspaces/{id}/billing/details",
428409
+ disableDefaultParameters: {
428410
+ "x-workspace-id": true
428411
+ },
428412
+ parameters: {
428413
+ id: {
428414
+ type: "string",
428415
+ description: "Workspace ID",
428416
+ in: "path"
428417
+ }
428418
+ },
428419
+ section: "workspace",
428420
+ response: {
428421
+ description: "Success",
428422
+ schema: {
428423
+ type: "object",
428424
+ properties: {
428425
+ currentPeriod: {
428426
+ type: "object",
428427
+ properties: {
428428
+ start: {
428429
+ type: "string"
428430
+ },
428431
+ end: {
428432
+ type: "string"
428433
+ },
428434
+ usage: {
428435
+ type: "object",
428436
+ properties: {
428437
+ userMessages: {
428438
+ type: "object",
428439
+ properties: {
428440
+ status: {
428441
+ type: "string",
428442
+ enum: ["OK", "Warning", "LimitReached"]
428443
+ },
428444
+ quantity: {
428445
+ type: "number"
428446
+ },
428447
+ price: {
428448
+ type: "number"
428449
+ },
428450
+ minimum: {
428451
+ type: "number"
428452
+ },
428453
+ maximum: {
428454
+ type: "number"
428455
+ }
428456
+ },
428457
+ required: [
428458
+ "status",
428459
+ "quantity",
428460
+ "price",
428461
+ "minimum",
428462
+ "maximum"
428463
+ ],
428464
+ additionalProperties: false
428465
+ }
428466
+ },
428467
+ required: ["userMessages"],
428468
+ additionalProperties: false
428469
+ }
428470
+ },
428471
+ required: ["start", "end", "usage"],
428472
+ additionalProperties: false
428473
+ },
428474
+ paymentMethod: {
428475
+ type: "object",
428476
+ properties: {
428477
+ type: {
428478
+ type: "string"
428479
+ },
428480
+ lastDigits: {
428481
+ type: "string"
428482
+ }
428483
+ },
428484
+ required: ["type", "lastDigits"],
428485
+ nullable: true,
428486
+ additionalProperties: false
428487
+ }
428488
+ },
428489
+ required: ["currentPeriod", "paymentMethod"],
428490
+ title: "getWorkspaceBillingDetailsResponse",
428491
+ additionalProperties: false
428492
+ }
428493
+ }
428494
+ },
428495
+ setWorkspacePaymentMethod: {
428496
+ name: "setWorkspacePaymentMethod",
428497
+ 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.",
428498
+ method: "put",
428499
+ path: "/v1/admin/workspaces/{id}/billing/payment-method",
428500
+ disableDefaultParameters: {
428501
+ "x-workspace-id": true
428502
+ },
428503
+ parameters: {
428504
+ id: {
428505
+ type: "string",
428506
+ description: "Workspace ID",
428507
+ in: "path"
428508
+ }
428509
+ },
428510
+ section: "workspace",
428511
+ requestBody: {
428512
+ description: "",
428513
+ schema: {
428514
+ type: "object",
428515
+ properties: {
428516
+ stripePaymentMethodId: {
428517
+ type: "string",
428518
+ description: "ID of the Stripe PaymentMethod to attach to the workspace."
428519
+ }
428520
+ },
428521
+ required: ["stripePaymentMethodId"],
428522
+ title: "setWorkspacePaymentMethodBody",
428523
+ additionalProperties: false
428524
+ }
428525
+ },
428526
+ response: {
428527
+ description: "Success",
428528
+ schema: {
428529
+ type: "object",
428530
+ properties: {
428531
+ stripePaymentMethodId: {
428532
+ type: "string"
428533
+ },
428534
+ paymentMethod: {
428535
+ type: "object",
428536
+ properties: {
428537
+ type: {
428538
+ type: "string"
428539
+ },
428540
+ lastDigits: {
428541
+ type: "string"
428542
+ }
428543
+ },
428544
+ required: ["type", "lastDigits"],
428545
+ nullable: true,
428546
+ additionalProperties: false
428547
+ },
428548
+ status: {
428549
+ type: "string",
428550
+ enum: [
428551
+ "succeeded",
428552
+ "processing",
428553
+ "canceled",
428554
+ "requires_confirmation",
428555
+ "requires_action",
428556
+ "requires_payment_method"
428557
+ ]
428558
+ },
428559
+ nextAction: {
428560
+ type: "object",
428561
+ properties: {
428562
+ redirectToUrl: {
428563
+ type: "string",
428564
+ format: "uri"
428565
+ }
428566
+ },
428567
+ required: ["redirectToUrl"],
428568
+ description: "If the payment needs to be confirmed, this will contain a URL to redirect the user to so they can complete the verification process to confirm it.",
428569
+ additionalProperties: false
428570
+ }
428571
+ },
428572
+ required: ["stripePaymentMethodId", "paymentMethod", "status"],
428573
+ title: "setWorkspacePaymentMethodResponse",
428574
+ additionalProperties: false
428575
+ }
428576
+ }
428577
+ },
428578
+ listWorkspaceInvoices: {
428579
+ name: "listWorkspaceInvoices",
428580
+ description: "List invoices billed to workspace",
428581
+ method: "get",
428582
+ path: "/v1/admin/workspaces/{id}/billing/invoices",
428583
+ disableDefaultParameters: {
428584
+ "x-workspace-id": true
428585
+ },
428586
+ parameters: {
428587
+ id: {
428588
+ type: "string",
428589
+ description: "Workspace ID",
428590
+ in: "path"
428591
+ }
428592
+ },
428593
+ section: "workspace",
428594
+ response: {
428595
+ description: "Success",
428596
+ schema: {
428597
+ type: "object",
428598
+ properties: {
428599
+ invoices: {
428600
+ type: "array",
428601
+ items: {
428602
+ type: "object",
428603
+ properties: {
428604
+ id: {
428605
+ type: "string"
428606
+ },
428607
+ period: {
428608
+ type: "object",
428609
+ properties: {
428610
+ month: {
428611
+ type: "number"
428612
+ },
428613
+ year: {
428614
+ type: "number"
428615
+ }
428616
+ },
428617
+ required: ["month", "year"]
428618
+ },
428619
+ date: {
428620
+ type: "string",
428621
+ format: "date-time",
428622
+ description: "Date on which the invoice was generated."
428623
+ },
428624
+ amount: {
428625
+ type: "number",
428626
+ description: "Total amount to pay of the invoice."
428627
+ },
428628
+ currency: {
428629
+ type: "string",
428630
+ maxLength: 3,
428631
+ description: "Currency of the invoice amount."
428632
+ },
428633
+ paymentStatus: {
428634
+ type: "string",
428635
+ enum: ["paid", "unpaid"]
428636
+ },
428637
+ paymentAttemptCount: {
428638
+ type: "number",
428639
+ description: "Number of times payment has been unsuccessfully attempted on the invoice.",
428640
+ nullable: true
428641
+ },
428642
+ nextPaymentAttemptDate: {
428643
+ type: "string",
428644
+ format: "date-time",
428645
+ description: "Date on which the next payment attempt will be made.",
428646
+ nullable: true
428647
+ },
428648
+ pdfUrl: {
428649
+ type: "string",
428650
+ format: "uri",
428651
+ description: "URL to download the PDF file of the invoice."
428652
+ }
428653
+ },
428654
+ required: [
428655
+ "id",
428656
+ "period",
428657
+ "date",
428658
+ "amount",
428659
+ "currency",
428660
+ "paymentStatus",
428661
+ "paymentAttemptCount",
428662
+ "nextPaymentAttemptDate",
428663
+ "pdfUrl"
428664
+ ]
428665
+ }
428666
+ }
428667
+ },
428668
+ required: ["invoices"],
428669
+ title: "listWorkspaceInvoicesResponse",
428670
+ additionalProperties: false
428671
+ }
428672
+ }
428673
+ },
428674
+ chargeWorkspaceUnpaidInvoices: {
428675
+ name: "chargeWorkspaceUnpaidInvoices",
428676
+ description: "Charge unpaid invoices of a workspace.",
428677
+ method: "post",
428678
+ path: "/v1/admin/workspaces/{id}/billing/invoices/charge-unpaid",
428679
+ disableDefaultParameters: {
428680
+ "x-workspace-id": true
428681
+ },
428682
+ parameters: {
428683
+ id: {
428684
+ type: "string",
428685
+ description: "Workspace ID",
428686
+ in: "path"
428687
+ }
428688
+ },
428689
+ section: "workspace",
428690
+ requestBody: {
428691
+ description: "",
428692
+ schema: {
428693
+ type: "object",
428694
+ properties: {
428695
+ invoiceIds: {
428696
+ type: "array",
428697
+ items: {
428698
+ type: "string"
428699
+ },
428700
+ minItems: 1
428701
+ }
428702
+ },
428703
+ title: "chargeWorkspaceUnpaidInvoicesBody",
428704
+ additionalProperties: false
428705
+ }
428706
+ },
428707
+ response: {
428708
+ description: "Success",
428709
+ schema: {
428710
+ type: "object",
428711
+ properties: {
428712
+ chargedInvoices: {
428713
+ type: "array",
428714
+ items: {
428715
+ type: "object",
428716
+ properties: {
428717
+ id: {
428718
+ type: "string"
428719
+ },
428720
+ amount: {
428721
+ type: "number"
428722
+ }
428723
+ },
428724
+ required: ["id", "amount"]
428725
+ },
428726
+ description: "Invoices that were successfully charged by this request."
428727
+ },
428728
+ failedInvoices: {
428729
+ type: "array",
428730
+ items: {
428731
+ type: "object",
428732
+ properties: {
428733
+ id: {
428734
+ type: "string"
428735
+ },
428736
+ amount: {
428737
+ type: "number"
428738
+ },
428739
+ failedReason: {
428740
+ type: "string"
428741
+ }
428742
+ },
428743
+ required: ["id", "amount", "failedReason"]
428744
+ },
428745
+ description: "Invoices that failed to be charged by this request."
428746
+ }
428747
+ },
428748
+ required: ["chargedInvoices", "failedInvoices"],
428749
+ title: "chargeWorkspaceUnpaidInvoicesResponse",
428750
+ additionalProperties: false
428751
+ }
428752
+ }
428753
+ },
428384
428754
  createWorkspace: {
428385
428755
  name: "createWorkspace",
428386
428756
  description: "Create workspace",
@@ -428549,7 +428919,9 @@ var state = {
428549
428919
  "bot_ratelimit",
428550
428920
  "table_row_count",
428551
428921
  "workspace_member_count",
428552
- "integrations_owned_count"
428922
+ "integrations_owned_count",
428923
+ "cognitive_calls",
428924
+ "model_credit"
428553
428925
  ],
428554
428926
  required: true
428555
428927
  },
@@ -428606,7 +428978,9 @@ var state = {
428606
428978
  "bot_ratelimit",
428607
428979
  "table_row_count",
428608
428980
  "workspace_member_count",
428609
- "integrations_owned_count"
428981
+ "integrations_owned_count",
428982
+ "cognitive_calls",
428983
+ "model_credit"
428610
428984
  ],
428611
428985
  required: true
428612
428986
  },
@@ -428644,7 +429018,9 @@ var state = {
428644
429018
  "bot_ratelimit",
428645
429019
  "table_row_count",
428646
429020
  "workspace_member_count",
428647
- "integrations_owned_count"
429021
+ "integrations_owned_count",
429022
+ "cognitive_calls",
429023
+ "model_credit"
428648
429024
  ],
428649
429025
  description: "Usage type that can be used"
428650
429026
  }
@@ -428710,7 +429086,9 @@ var state = {
428710
429086
  "bot_ratelimit",
428711
429087
  "table_row_count",
428712
429088
  "workspace_member_count",
428713
- "integrations_owned_count"
429089
+ "integrations_owned_count",
429090
+ "cognitive_calls",
429091
+ "model_credit"
428714
429092
  ],
428715
429093
  description: "Usage type that can be used"
428716
429094
  }
@@ -430246,7 +430624,9 @@ var state = {
430246
430624
  "bot_ratelimit",
430247
430625
  "table_row_count",
430248
430626
  "workspace_member_count",
430249
- "integrations_owned_count"
430627
+ "integrations_owned_count",
430628
+ "cognitive_calls",
430629
+ "model_credit"
430250
430630
  ],
430251
430631
  required: true
430252
430632
  },
@@ -430296,7 +430676,9 @@ var state = {
430296
430676
  "bot_ratelimit",
430297
430677
  "table_row_count",
430298
430678
  "workspace_member_count",
430299
- "integrations_owned_count"
430679
+ "integrations_owned_count",
430680
+ "cognitive_calls",
430681
+ "model_credit"
430300
430682
  ],
430301
430683
  required: true
430302
430684
  },
@@ -430542,7 +430924,7 @@ var state = {
430542
430924
  title: "Botpress API",
430543
430925
  description: "API for Botpress Cloud",
430544
430926
  server: "https://api.botpress.cloud",
430545
- version: "0.10.0",
430927
+ version: "0.11.0",
430546
430928
  prefix: "v1"
430547
430929
  },
430548
430930
  errors: [
@@ -430673,6 +431055,8 @@ var state = {
430673
431055
  createBotBody: true,
430674
431056
  updateBotBody: true,
430675
431057
  transferBotBody: true,
431058
+ setWorkspacePaymentMethodBody: true,
431059
+ chargeWorkspaceUnpaidInvoicesBody: true,
430676
431060
  createWorkspaceBody: true,
430677
431061
  updateWorkspaceBody: true,
430678
431062
  changeWorkspacePlanBody: true,
@@ -430729,6 +431113,10 @@ var state = {
430729
431113
  listBotIssuesResponse: true,
430730
431114
  deleteBotIssueResponse: true,
430731
431115
  listBotIssueEventsResponse: true,
431116
+ getWorkspaceBillingDetailsResponse: true,
431117
+ setWorkspacePaymentMethodResponse: true,
431118
+ listWorkspaceInvoicesResponse: true,
431119
+ chargeWorkspaceUnpaidInvoicesResponse: true,
430732
431120
  createWorkspaceResponse: true,
430733
431121
  getWorkspaceResponse: true,
430734
431122
  listWorkspaceUsagesResponse: true,
@@ -430820,6 +431208,9 @@ var state = {
430820
431208
  webhookUrl: {
430821
431209
  type: "string"
430822
431210
  },
431211
+ webhookId: {
431212
+ type: "string"
431213
+ },
430823
431214
  configuration: {
430824
431215
  type: "object",
430825
431216
  additionalProperties: true
@@ -430874,6 +431265,7 @@ var state = {
430874
431265
  "name",
430875
431266
  "version",
430876
431267
  "webhookUrl",
431268
+ "webhookId",
430877
431269
  "configuration",
430878
431270
  "status",
430879
431271
  "statusReason",
@@ -431590,7 +431982,9 @@ var state = {
431590
431982
  "bot_ratelimit",
431591
431983
  "table_row_count",
431592
431984
  "workspace_member_count",
431593
- "integrations_owned_count"
431985
+ "integrations_owned_count",
431986
+ "cognitive_calls",
431987
+ "model_credit"
431594
431988
  ],
431595
431989
  description: "Usage type that can be used"
431596
431990
  }
@@ -432068,6 +432462,10 @@ var state = {
432068
432462
  title: "Workspace",
432069
432463
  name: "workspace",
432070
432464
  operations: [
432465
+ "getWorkspaceBillingDetails",
432466
+ "setWorkspacePaymentMethod",
432467
+ "listWorkspaceInvoices",
432468
+ "chargeWorkspaceUnpaidInvoices",
432071
432469
  "createWorkspace",
432072
432470
  "getWorkspace",
432073
432471
  "listWorkspaceUsages",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
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"],"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"},{"description":"","title":"Hub","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Bot","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"description":"","title":"Integration","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"description":"","title":"Workspace","name":"workspace","operations":["createWorkspace","getWorkspace","listWorkspaceUsages","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"description":"","title":"Workspace Member","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"description":"","title":"Account","name":"account","operations":["getAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken"],"schema":"Account"},{"description":"","title":"Usage","name":"usage","operations":["getUsage"],"schema":"Usage"}],"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"],"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"},{"description":"","title":"Hub","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Bot","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"description":"","title":"Integration","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"description":"","title":"Workspace","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","chargeWorkspaceUnpaidInvoices","createWorkspace","getWorkspace","listWorkspaceUsages","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"description":"","title":"Workspace Member","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"description":"","title":"Account","name":"account","operations":["getAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken"],"schema":"Account"},{"description":"","title":"Usage","name":"usage","operations":["getUsage"],"schema":"Usage"}],"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."}]}