@botpress/api 0.9.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/gen/state.d.ts +587 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +674 -19
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +676 -10
package/dist/index.js
CHANGED
|
@@ -427321,7 +427321,7 @@ var state = {
|
|
|
427321
427321
|
parameters: {
|
|
427322
427322
|
id: {
|
|
427323
427323
|
type: "string",
|
|
427324
|
-
description: "Integration
|
|
427324
|
+
description: "Integration ID",
|
|
427325
427325
|
in: "path"
|
|
427326
427326
|
}
|
|
427327
427327
|
},
|
|
@@ -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: "
|
|
428183
|
+
type: "integer"
|
|
428184
428184
|
},
|
|
428185
428185
|
newUsers: {
|
|
428186
|
-
type: "
|
|
428186
|
+
type: "integer"
|
|
428187
428187
|
},
|
|
428188
428188
|
sessions: {
|
|
428189
|
-
type: "
|
|
428189
|
+
type: "integer"
|
|
428190
428190
|
},
|
|
428191
428191
|
messages: {
|
|
428192
|
-
type: "
|
|
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
|
}
|
|
@@ -428209,6 +428229,528 @@ var state = {
|
|
|
428209
428229
|
}
|
|
428210
428230
|
}
|
|
428211
428231
|
},
|
|
428232
|
+
listBotIssues: {
|
|
428233
|
+
name: "listBotIssues",
|
|
428234
|
+
description: "List Bot Issues",
|
|
428235
|
+
method: "get",
|
|
428236
|
+
path: "/v1/admin/bots/{id}/issues",
|
|
428237
|
+
section: "bot",
|
|
428238
|
+
parameters: {
|
|
428239
|
+
id: {
|
|
428240
|
+
type: "string",
|
|
428241
|
+
description: "Bot ID",
|
|
428242
|
+
in: "path"
|
|
428243
|
+
},
|
|
428244
|
+
nextToken: {
|
|
428245
|
+
in: "query",
|
|
428246
|
+
description: "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
428247
|
+
type: "string"
|
|
428248
|
+
}
|
|
428249
|
+
},
|
|
428250
|
+
response: {
|
|
428251
|
+
description: "Success",
|
|
428252
|
+
schema: {
|
|
428253
|
+
type: "object",
|
|
428254
|
+
properties: {
|
|
428255
|
+
issues: {
|
|
428256
|
+
type: "array",
|
|
428257
|
+
items: {
|
|
428258
|
+
type: "object",
|
|
428259
|
+
properties: {
|
|
428260
|
+
id: {
|
|
428261
|
+
type: "string"
|
|
428262
|
+
},
|
|
428263
|
+
code: {
|
|
428264
|
+
type: "string"
|
|
428265
|
+
},
|
|
428266
|
+
createdAt: {
|
|
428267
|
+
type: "string",
|
|
428268
|
+
format: "date-time"
|
|
428269
|
+
},
|
|
428270
|
+
lastSeenAt: {
|
|
428271
|
+
type: "string",
|
|
428272
|
+
format: "date-time"
|
|
428273
|
+
},
|
|
428274
|
+
title: {
|
|
428275
|
+
type: "string"
|
|
428276
|
+
},
|
|
428277
|
+
description: {
|
|
428278
|
+
type: "string"
|
|
428279
|
+
},
|
|
428280
|
+
groupedData: {
|
|
428281
|
+
type: "object",
|
|
428282
|
+
properties: {}
|
|
428283
|
+
},
|
|
428284
|
+
eventsCount: {
|
|
428285
|
+
type: "number"
|
|
428286
|
+
},
|
|
428287
|
+
category: {
|
|
428288
|
+
type: "string",
|
|
428289
|
+
enum: ["user_code", "limits", "configuration", "other"]
|
|
428290
|
+
},
|
|
428291
|
+
resolutionLink: {
|
|
428292
|
+
type: "string",
|
|
428293
|
+
nullable: true
|
|
428294
|
+
}
|
|
428295
|
+
},
|
|
428296
|
+
required: [
|
|
428297
|
+
"id",
|
|
428298
|
+
"code",
|
|
428299
|
+
"createdAt",
|
|
428300
|
+
"lastSeenAt",
|
|
428301
|
+
"title",
|
|
428302
|
+
"description",
|
|
428303
|
+
"groupedData",
|
|
428304
|
+
"eventsCount",
|
|
428305
|
+
"category",
|
|
428306
|
+
"resolutionLink"
|
|
428307
|
+
]
|
|
428308
|
+
}
|
|
428309
|
+
},
|
|
428310
|
+
meta: {
|
|
428311
|
+
type: "object",
|
|
428312
|
+
properties: {
|
|
428313
|
+
nextToken: {
|
|
428314
|
+
type: "string",
|
|
428315
|
+
description: "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
428316
|
+
}
|
|
428317
|
+
},
|
|
428318
|
+
additionalProperties: false
|
|
428319
|
+
}
|
|
428320
|
+
},
|
|
428321
|
+
required: ["issues", "meta"],
|
|
428322
|
+
title: "listBotIssuesResponse",
|
|
428323
|
+
additionalProperties: false
|
|
428324
|
+
}
|
|
428325
|
+
}
|
|
428326
|
+
},
|
|
428327
|
+
deleteBotIssue: {
|
|
428328
|
+
name: "deleteBotIssue",
|
|
428329
|
+
description: "Delete Bot Issue",
|
|
428330
|
+
method: "delete",
|
|
428331
|
+
path: "/v1/admin/bots/{id}/issues/{issueId}",
|
|
428332
|
+
section: "bot",
|
|
428333
|
+
parameters: {
|
|
428334
|
+
id: {
|
|
428335
|
+
type: "string",
|
|
428336
|
+
description: "Bot ID",
|
|
428337
|
+
in: "path"
|
|
428338
|
+
},
|
|
428339
|
+
issueId: {
|
|
428340
|
+
in: "path",
|
|
428341
|
+
description: "Issue ID",
|
|
428342
|
+
type: "string"
|
|
428343
|
+
}
|
|
428344
|
+
},
|
|
428345
|
+
response: {
|
|
428346
|
+
description: "Success",
|
|
428347
|
+
schema: {
|
|
428348
|
+
type: "object",
|
|
428349
|
+
title: "deleteBotIssueResponse",
|
|
428350
|
+
additionalProperties: false
|
|
428351
|
+
}
|
|
428352
|
+
}
|
|
428353
|
+
},
|
|
428354
|
+
listBotIssueEvents: {
|
|
428355
|
+
name: "listBotIssueEvents",
|
|
428356
|
+
description: "List Events for a Bot Issue",
|
|
428357
|
+
method: "get",
|
|
428358
|
+
path: "/v1/admin/bots/{id}/issues/{issueId}/events",
|
|
428359
|
+
section: "bot",
|
|
428360
|
+
parameters: {
|
|
428361
|
+
id: {
|
|
428362
|
+
type: "string",
|
|
428363
|
+
description: "Bot ID",
|
|
428364
|
+
in: "path"
|
|
428365
|
+
},
|
|
428366
|
+
issueId: {
|
|
428367
|
+
in: "path",
|
|
428368
|
+
description: "Issue ID",
|
|
428369
|
+
type: "string"
|
|
428370
|
+
}
|
|
428371
|
+
},
|
|
428372
|
+
response: {
|
|
428373
|
+
description: "Success",
|
|
428374
|
+
schema: {
|
|
428375
|
+
type: "object",
|
|
428376
|
+
properties: {
|
|
428377
|
+
issueEvents: {
|
|
428378
|
+
type: "array",
|
|
428379
|
+
items: {
|
|
428380
|
+
type: "object",
|
|
428381
|
+
properties: {
|
|
428382
|
+
id: {
|
|
428383
|
+
type: "string"
|
|
428384
|
+
},
|
|
428385
|
+
createdAt: {
|
|
428386
|
+
type: "string",
|
|
428387
|
+
format: "date-time"
|
|
428388
|
+
},
|
|
428389
|
+
data: {
|
|
428390
|
+
type: "object",
|
|
428391
|
+
properties: {}
|
|
428392
|
+
}
|
|
428393
|
+
},
|
|
428394
|
+
required: ["id", "createdAt", "data"]
|
|
428395
|
+
}
|
|
428396
|
+
}
|
|
428397
|
+
},
|
|
428398
|
+
required: ["issueEvents"],
|
|
428399
|
+
title: "listBotIssueEventsResponse",
|
|
428400
|
+
additionalProperties: false
|
|
428401
|
+
}
|
|
428402
|
+
}
|
|
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
|
+
},
|
|
428212
428754
|
createWorkspace: {
|
|
428213
428755
|
name: "createWorkspace",
|
|
428214
428756
|
description: "Create workspace",
|
|
@@ -428377,7 +428919,9 @@ var state = {
|
|
|
428377
428919
|
"bot_ratelimit",
|
|
428378
428920
|
"table_row_count",
|
|
428379
428921
|
"workspace_member_count",
|
|
428380
|
-
"integrations_owned_count"
|
|
428922
|
+
"integrations_owned_count",
|
|
428923
|
+
"cognitive_calls",
|
|
428924
|
+
"model_credit"
|
|
428381
428925
|
],
|
|
428382
428926
|
required: true
|
|
428383
428927
|
},
|
|
@@ -428434,7 +428978,9 @@ var state = {
|
|
|
428434
428978
|
"bot_ratelimit",
|
|
428435
428979
|
"table_row_count",
|
|
428436
428980
|
"workspace_member_count",
|
|
428437
|
-
"integrations_owned_count"
|
|
428981
|
+
"integrations_owned_count",
|
|
428982
|
+
"cognitive_calls",
|
|
428983
|
+
"model_credit"
|
|
428438
428984
|
],
|
|
428439
428985
|
required: true
|
|
428440
428986
|
},
|
|
@@ -428472,7 +429018,9 @@ var state = {
|
|
|
428472
429018
|
"bot_ratelimit",
|
|
428473
429019
|
"table_row_count",
|
|
428474
429020
|
"workspace_member_count",
|
|
428475
|
-
"integrations_owned_count"
|
|
429021
|
+
"integrations_owned_count",
|
|
429022
|
+
"cognitive_calls",
|
|
429023
|
+
"model_credit"
|
|
428476
429024
|
],
|
|
428477
429025
|
description: "Usage type that can be used"
|
|
428478
429026
|
}
|
|
@@ -428538,7 +429086,9 @@ var state = {
|
|
|
428538
429086
|
"bot_ratelimit",
|
|
428539
429087
|
"table_row_count",
|
|
428540
429088
|
"workspace_member_count",
|
|
428541
|
-
"integrations_owned_count"
|
|
429089
|
+
"integrations_owned_count",
|
|
429090
|
+
"cognitive_calls",
|
|
429091
|
+
"model_credit"
|
|
428542
429092
|
],
|
|
428543
429093
|
description: "Usage type that can be used"
|
|
428544
429094
|
}
|
|
@@ -429491,7 +430041,7 @@ var state = {
|
|
|
429491
430041
|
parameters: {
|
|
429492
430042
|
id: {
|
|
429493
430043
|
type: "string",
|
|
429494
|
-
description: "Integration
|
|
430044
|
+
description: "Integration ID",
|
|
429495
430045
|
in: "path"
|
|
429496
430046
|
}
|
|
429497
430047
|
},
|
|
@@ -429916,7 +430466,7 @@ var state = {
|
|
|
429916
430466
|
parameters: {
|
|
429917
430467
|
id: {
|
|
429918
430468
|
type: "string",
|
|
429919
|
-
description: "Integration
|
|
430469
|
+
description: "Integration ID",
|
|
429920
430470
|
in: "path"
|
|
429921
430471
|
}
|
|
429922
430472
|
},
|
|
@@ -429944,7 +430494,7 @@ var state = {
|
|
|
429944
430494
|
parameters: {
|
|
429945
430495
|
id: {
|
|
429946
430496
|
type: "string",
|
|
429947
|
-
description: "Integration
|
|
430497
|
+
description: "Integration ID",
|
|
429948
430498
|
in: "path"
|
|
429949
430499
|
},
|
|
429950
430500
|
timeStart: {
|
|
@@ -430041,7 +430591,7 @@ var state = {
|
|
|
430041
430591
|
parameters: {
|
|
430042
430592
|
id: {
|
|
430043
430593
|
type: "string",
|
|
430044
|
-
description: "Integration
|
|
430594
|
+
description: "Integration ID",
|
|
430045
430595
|
in: "path"
|
|
430046
430596
|
}
|
|
430047
430597
|
},
|
|
@@ -430074,7 +430624,9 @@ var state = {
|
|
|
430074
430624
|
"bot_ratelimit",
|
|
430075
430625
|
"table_row_count",
|
|
430076
430626
|
"workspace_member_count",
|
|
430077
|
-
"integrations_owned_count"
|
|
430627
|
+
"integrations_owned_count",
|
|
430628
|
+
"cognitive_calls",
|
|
430629
|
+
"model_credit"
|
|
430078
430630
|
],
|
|
430079
430631
|
required: true
|
|
430080
430632
|
},
|
|
@@ -430124,7 +430676,9 @@ var state = {
|
|
|
430124
430676
|
"bot_ratelimit",
|
|
430125
430677
|
"table_row_count",
|
|
430126
430678
|
"workspace_member_count",
|
|
430127
|
-
"integrations_owned_count"
|
|
430679
|
+
"integrations_owned_count",
|
|
430680
|
+
"cognitive_calls",
|
|
430681
|
+
"model_credit"
|
|
430128
430682
|
],
|
|
430129
430683
|
required: true
|
|
430130
430684
|
},
|
|
@@ -430370,7 +430924,7 @@ var state = {
|
|
|
430370
430924
|
title: "Botpress API",
|
|
430371
430925
|
description: "API for Botpress Cloud",
|
|
430372
430926
|
server: "https://api.botpress.cloud",
|
|
430373
|
-
version: "0.
|
|
430927
|
+
version: "0.11.0",
|
|
430374
430928
|
prefix: "v1"
|
|
430375
430929
|
},
|
|
430376
430930
|
errors: [
|
|
@@ -430501,6 +431055,8 @@ var state = {
|
|
|
430501
431055
|
createBotBody: true,
|
|
430502
431056
|
updateBotBody: true,
|
|
430503
431057
|
transferBotBody: true,
|
|
431058
|
+
setWorkspacePaymentMethodBody: true,
|
|
431059
|
+
chargeWorkspaceUnpaidInvoicesBody: true,
|
|
430504
431060
|
createWorkspaceBody: true,
|
|
430505
431061
|
updateWorkspaceBody: true,
|
|
430506
431062
|
changeWorkspacePlanBody: true,
|
|
@@ -430554,6 +431110,13 @@ var state = {
|
|
|
430554
431110
|
getBotLogsResponse: true,
|
|
430555
431111
|
getBotWebchatResponse: true,
|
|
430556
431112
|
getBotAnalyticsResponse: true,
|
|
431113
|
+
listBotIssuesResponse: true,
|
|
431114
|
+
deleteBotIssueResponse: true,
|
|
431115
|
+
listBotIssueEventsResponse: true,
|
|
431116
|
+
getWorkspaceBillingDetailsResponse: true,
|
|
431117
|
+
setWorkspacePaymentMethodResponse: true,
|
|
431118
|
+
listWorkspaceInvoicesResponse: true,
|
|
431119
|
+
chargeWorkspaceUnpaidInvoicesResponse: true,
|
|
430557
431120
|
createWorkspaceResponse: true,
|
|
430558
431121
|
getWorkspaceResponse: true,
|
|
430559
431122
|
listWorkspaceUsagesResponse: true,
|
|
@@ -430591,6 +431154,8 @@ var state = {
|
|
|
430591
431154
|
WorkspaceMember: true,
|
|
430592
431155
|
Account: true,
|
|
430593
431156
|
Usage: true,
|
|
431157
|
+
Issue: true,
|
|
431158
|
+
IssueEvent: true,
|
|
430594
431159
|
User: true,
|
|
430595
431160
|
Conversation: true,
|
|
430596
431161
|
Event: true,
|
|
@@ -430643,6 +431208,9 @@ var state = {
|
|
|
430643
431208
|
webhookUrl: {
|
|
430644
431209
|
type: "string"
|
|
430645
431210
|
},
|
|
431211
|
+
webhookId: {
|
|
431212
|
+
type: "string"
|
|
431213
|
+
},
|
|
430646
431214
|
configuration: {
|
|
430647
431215
|
type: "object",
|
|
430648
431216
|
additionalProperties: true
|
|
@@ -430697,6 +431265,7 @@ var state = {
|
|
|
430697
431265
|
"name",
|
|
430698
431266
|
"version",
|
|
430699
431267
|
"webhookUrl",
|
|
431268
|
+
"webhookId",
|
|
430700
431269
|
"configuration",
|
|
430701
431270
|
"status",
|
|
430702
431271
|
"statusReason",
|
|
@@ -431413,7 +431982,9 @@ var state = {
|
|
|
431413
431982
|
"bot_ratelimit",
|
|
431414
431983
|
"table_row_count",
|
|
431415
431984
|
"workspace_member_count",
|
|
431416
|
-
"integrations_owned_count"
|
|
431985
|
+
"integrations_owned_count",
|
|
431986
|
+
"cognitive_calls",
|
|
431987
|
+
"model_credit"
|
|
431417
431988
|
],
|
|
431418
431989
|
description: "Usage type that can be used"
|
|
431419
431990
|
}
|
|
@@ -431422,6 +431993,83 @@ var state = {
|
|
|
431422
431993
|
additionalProperties: false
|
|
431423
431994
|
}
|
|
431424
431995
|
},
|
|
431996
|
+
Issue: {
|
|
431997
|
+
section: "bot",
|
|
431998
|
+
schema: {
|
|
431999
|
+
type: "object",
|
|
432000
|
+
properties: {
|
|
432001
|
+
id: {
|
|
432002
|
+
type: "string"
|
|
432003
|
+
},
|
|
432004
|
+
code: {
|
|
432005
|
+
type: "string"
|
|
432006
|
+
},
|
|
432007
|
+
createdAt: {
|
|
432008
|
+
type: "string",
|
|
432009
|
+
format: "date-time"
|
|
432010
|
+
},
|
|
432011
|
+
lastSeenAt: {
|
|
432012
|
+
type: "string",
|
|
432013
|
+
format: "date-time"
|
|
432014
|
+
},
|
|
432015
|
+
title: {
|
|
432016
|
+
type: "string"
|
|
432017
|
+
},
|
|
432018
|
+
description: {
|
|
432019
|
+
type: "string"
|
|
432020
|
+
},
|
|
432021
|
+
groupedData: {
|
|
432022
|
+
type: "object",
|
|
432023
|
+
additionalProperties: false
|
|
432024
|
+
},
|
|
432025
|
+
eventsCount: {
|
|
432026
|
+
type: "number"
|
|
432027
|
+
},
|
|
432028
|
+
category: {
|
|
432029
|
+
type: "string",
|
|
432030
|
+
enum: ["user_code", "limits", "configuration", "other"]
|
|
432031
|
+
},
|
|
432032
|
+
resolutionLink: {
|
|
432033
|
+
type: "string",
|
|
432034
|
+
nullable: true
|
|
432035
|
+
}
|
|
432036
|
+
},
|
|
432037
|
+
required: [
|
|
432038
|
+
"id",
|
|
432039
|
+
"code",
|
|
432040
|
+
"createdAt",
|
|
432041
|
+
"lastSeenAt",
|
|
432042
|
+
"title",
|
|
432043
|
+
"description",
|
|
432044
|
+
"groupedData",
|
|
432045
|
+
"eventsCount",
|
|
432046
|
+
"category",
|
|
432047
|
+
"resolutionLink"
|
|
432048
|
+
],
|
|
432049
|
+
additionalProperties: false
|
|
432050
|
+
}
|
|
432051
|
+
},
|
|
432052
|
+
IssueEvent: {
|
|
432053
|
+
section: "bot",
|
|
432054
|
+
schema: {
|
|
432055
|
+
type: "object",
|
|
432056
|
+
properties: {
|
|
432057
|
+
id: {
|
|
432058
|
+
type: "string"
|
|
432059
|
+
},
|
|
432060
|
+
createdAt: {
|
|
432061
|
+
type: "string",
|
|
432062
|
+
format: "date-time"
|
|
432063
|
+
},
|
|
432064
|
+
data: {
|
|
432065
|
+
type: "object",
|
|
432066
|
+
additionalProperties: false
|
|
432067
|
+
}
|
|
432068
|
+
},
|
|
432069
|
+
required: ["id", "createdAt", "data"],
|
|
432070
|
+
additionalProperties: false
|
|
432071
|
+
}
|
|
432072
|
+
},
|
|
431425
432073
|
User: {
|
|
431426
432074
|
section: "user",
|
|
431427
432075
|
schema: {
|
|
@@ -431787,7 +432435,10 @@ var state = {
|
|
|
431787
432435
|
"deleteBot",
|
|
431788
432436
|
"getBotLogs",
|
|
431789
432437
|
"getBotWebchat",
|
|
431790
|
-
"getBotAnalytics"
|
|
432438
|
+
"getBotAnalytics",
|
|
432439
|
+
"listBotIssues",
|
|
432440
|
+
"deleteBotIssue",
|
|
432441
|
+
"listBotIssueEvents"
|
|
431791
432442
|
],
|
|
431792
432443
|
schema: "Bot"
|
|
431793
432444
|
},
|
|
@@ -431811,6 +432462,10 @@ var state = {
|
|
|
431811
432462
|
title: "Workspace",
|
|
431812
432463
|
name: "workspace",
|
|
431813
432464
|
operations: [
|
|
432465
|
+
"getWorkspaceBillingDetails",
|
|
432466
|
+
"setWorkspacePaymentMethod",
|
|
432467
|
+
"listWorkspaceInvoices",
|
|
432468
|
+
"chargeWorkspaceUnpaidInvoices",
|
|
431814
432469
|
"createWorkspace",
|
|
431815
432470
|
"getWorkspace",
|
|
431816
432471
|
"listWorkspaceUsages",
|