@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/src/gen/state.ts
CHANGED
|
@@ -1530,7 +1530,7 @@ export const state = {
|
|
|
1530
1530
|
parameters: {
|
|
1531
1531
|
id: {
|
|
1532
1532
|
type: "string",
|
|
1533
|
-
description: "Integration
|
|
1533
|
+
description: "Integration ID",
|
|
1534
1534
|
in: "path",
|
|
1535
1535
|
},
|
|
1536
1536
|
},
|
|
@@ -2418,16 +2418,32 @@ export const state = {
|
|
|
2418
2418
|
"ISO 8601 date string of the end (exclusive) of the period",
|
|
2419
2419
|
},
|
|
2420
2420
|
returningUsers: {
|
|
2421
|
-
type: "
|
|
2421
|
+
type: "integer",
|
|
2422
2422
|
},
|
|
2423
2423
|
newUsers: {
|
|
2424
|
-
type: "
|
|
2424
|
+
type: "integer",
|
|
2425
2425
|
},
|
|
2426
2426
|
sessions: {
|
|
2427
|
-
type: "
|
|
2427
|
+
type: "integer",
|
|
2428
2428
|
},
|
|
2429
2429
|
messages: {
|
|
2430
|
-
type: "
|
|
2430
|
+
type: "integer",
|
|
2431
|
+
description: "Deprecated. Use `userMessages` instead.",
|
|
2432
|
+
},
|
|
2433
|
+
userMessages: {
|
|
2434
|
+
type: "integer",
|
|
2435
|
+
},
|
|
2436
|
+
botMessages: {
|
|
2437
|
+
type: "integer",
|
|
2438
|
+
},
|
|
2439
|
+
events: {
|
|
2440
|
+
type: "integer",
|
|
2441
|
+
},
|
|
2442
|
+
eventTypes: {
|
|
2443
|
+
type: "object",
|
|
2444
|
+
additionalProperties: {
|
|
2445
|
+
type: "number",
|
|
2446
|
+
},
|
|
2431
2447
|
},
|
|
2432
2448
|
},
|
|
2433
2449
|
required: [
|
|
@@ -2437,6 +2453,10 @@ export const state = {
|
|
|
2437
2453
|
"newUsers",
|
|
2438
2454
|
"sessions",
|
|
2439
2455
|
"messages",
|
|
2456
|
+
"userMessages",
|
|
2457
|
+
"botMessages",
|
|
2458
|
+
"events",
|
|
2459
|
+
"eventTypes",
|
|
2440
2460
|
],
|
|
2441
2461
|
},
|
|
2442
2462
|
},
|
|
@@ -2447,6 +2467,537 @@ export const state = {
|
|
|
2447
2467
|
},
|
|
2448
2468
|
},
|
|
2449
2469
|
},
|
|
2470
|
+
listBotIssues: {
|
|
2471
|
+
name: "listBotIssues",
|
|
2472
|
+
description: "List Bot Issues",
|
|
2473
|
+
method: "get",
|
|
2474
|
+
path: "/v1/admin/bots/{id}/issues",
|
|
2475
|
+
section: "bot",
|
|
2476
|
+
parameters: {
|
|
2477
|
+
id: {
|
|
2478
|
+
type: "string",
|
|
2479
|
+
description: "Bot ID",
|
|
2480
|
+
in: "path",
|
|
2481
|
+
},
|
|
2482
|
+
nextToken: {
|
|
2483
|
+
in: "query",
|
|
2484
|
+
description:
|
|
2485
|
+
"Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
2486
|
+
type: "string",
|
|
2487
|
+
},
|
|
2488
|
+
},
|
|
2489
|
+
response: {
|
|
2490
|
+
description: "Success",
|
|
2491
|
+
schema: {
|
|
2492
|
+
type: "object",
|
|
2493
|
+
properties: {
|
|
2494
|
+
issues: {
|
|
2495
|
+
type: "array",
|
|
2496
|
+
items: {
|
|
2497
|
+
type: "object",
|
|
2498
|
+
properties: {
|
|
2499
|
+
id: {
|
|
2500
|
+
type: "string",
|
|
2501
|
+
},
|
|
2502
|
+
code: {
|
|
2503
|
+
type: "string",
|
|
2504
|
+
},
|
|
2505
|
+
createdAt: {
|
|
2506
|
+
type: "string",
|
|
2507
|
+
format: "date-time",
|
|
2508
|
+
},
|
|
2509
|
+
lastSeenAt: {
|
|
2510
|
+
type: "string",
|
|
2511
|
+
format: "date-time",
|
|
2512
|
+
},
|
|
2513
|
+
title: {
|
|
2514
|
+
type: "string",
|
|
2515
|
+
},
|
|
2516
|
+
description: {
|
|
2517
|
+
type: "string",
|
|
2518
|
+
},
|
|
2519
|
+
groupedData: {
|
|
2520
|
+
type: "object",
|
|
2521
|
+
properties: {},
|
|
2522
|
+
},
|
|
2523
|
+
eventsCount: {
|
|
2524
|
+
type: "number",
|
|
2525
|
+
},
|
|
2526
|
+
category: {
|
|
2527
|
+
type: "string",
|
|
2528
|
+
enum: ["user_code", "limits", "configuration", "other"],
|
|
2529
|
+
},
|
|
2530
|
+
resolutionLink: {
|
|
2531
|
+
type: "string",
|
|
2532
|
+
nullable: true,
|
|
2533
|
+
},
|
|
2534
|
+
},
|
|
2535
|
+
required: [
|
|
2536
|
+
"id",
|
|
2537
|
+
"code",
|
|
2538
|
+
"createdAt",
|
|
2539
|
+
"lastSeenAt",
|
|
2540
|
+
"title",
|
|
2541
|
+
"description",
|
|
2542
|
+
"groupedData",
|
|
2543
|
+
"eventsCount",
|
|
2544
|
+
"category",
|
|
2545
|
+
"resolutionLink",
|
|
2546
|
+
],
|
|
2547
|
+
},
|
|
2548
|
+
},
|
|
2549
|
+
meta: {
|
|
2550
|
+
type: "object",
|
|
2551
|
+
properties: {
|
|
2552
|
+
nextToken: {
|
|
2553
|
+
type: "string",
|
|
2554
|
+
description:
|
|
2555
|
+
"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.",
|
|
2556
|
+
},
|
|
2557
|
+
},
|
|
2558
|
+
additionalProperties: false,
|
|
2559
|
+
},
|
|
2560
|
+
},
|
|
2561
|
+
required: ["issues", "meta"],
|
|
2562
|
+
title: "listBotIssuesResponse",
|
|
2563
|
+
additionalProperties: false,
|
|
2564
|
+
},
|
|
2565
|
+
},
|
|
2566
|
+
},
|
|
2567
|
+
deleteBotIssue: {
|
|
2568
|
+
name: "deleteBotIssue",
|
|
2569
|
+
description: "Delete Bot Issue",
|
|
2570
|
+
method: "delete",
|
|
2571
|
+
path: "/v1/admin/bots/{id}/issues/{issueId}",
|
|
2572
|
+
section: "bot",
|
|
2573
|
+
parameters: {
|
|
2574
|
+
id: {
|
|
2575
|
+
type: "string",
|
|
2576
|
+
description: "Bot ID",
|
|
2577
|
+
in: "path",
|
|
2578
|
+
},
|
|
2579
|
+
issueId: {
|
|
2580
|
+
in: "path",
|
|
2581
|
+
description: "Issue ID",
|
|
2582
|
+
type: "string",
|
|
2583
|
+
},
|
|
2584
|
+
},
|
|
2585
|
+
response: {
|
|
2586
|
+
description: "Success",
|
|
2587
|
+
schema: {
|
|
2588
|
+
type: "object",
|
|
2589
|
+
title: "deleteBotIssueResponse",
|
|
2590
|
+
additionalProperties: false,
|
|
2591
|
+
},
|
|
2592
|
+
},
|
|
2593
|
+
},
|
|
2594
|
+
listBotIssueEvents: {
|
|
2595
|
+
name: "listBotIssueEvents",
|
|
2596
|
+
description: "List Events for a Bot Issue",
|
|
2597
|
+
method: "get",
|
|
2598
|
+
path: "/v1/admin/bots/{id}/issues/{issueId}/events",
|
|
2599
|
+
section: "bot",
|
|
2600
|
+
parameters: {
|
|
2601
|
+
id: {
|
|
2602
|
+
type: "string",
|
|
2603
|
+
description: "Bot ID",
|
|
2604
|
+
in: "path",
|
|
2605
|
+
},
|
|
2606
|
+
issueId: {
|
|
2607
|
+
in: "path",
|
|
2608
|
+
description: "Issue ID",
|
|
2609
|
+
type: "string",
|
|
2610
|
+
},
|
|
2611
|
+
},
|
|
2612
|
+
response: {
|
|
2613
|
+
description: "Success",
|
|
2614
|
+
schema: {
|
|
2615
|
+
type: "object",
|
|
2616
|
+
properties: {
|
|
2617
|
+
issueEvents: {
|
|
2618
|
+
type: "array",
|
|
2619
|
+
items: {
|
|
2620
|
+
type: "object",
|
|
2621
|
+
properties: {
|
|
2622
|
+
id: {
|
|
2623
|
+
type: "string",
|
|
2624
|
+
},
|
|
2625
|
+
createdAt: {
|
|
2626
|
+
type: "string",
|
|
2627
|
+
format: "date-time",
|
|
2628
|
+
},
|
|
2629
|
+
data: {
|
|
2630
|
+
type: "object",
|
|
2631
|
+
properties: {},
|
|
2632
|
+
},
|
|
2633
|
+
},
|
|
2634
|
+
required: ["id", "createdAt", "data"],
|
|
2635
|
+
},
|
|
2636
|
+
},
|
|
2637
|
+
},
|
|
2638
|
+
required: ["issueEvents"],
|
|
2639
|
+
title: "listBotIssueEventsResponse",
|
|
2640
|
+
additionalProperties: false,
|
|
2641
|
+
},
|
|
2642
|
+
},
|
|
2643
|
+
},
|
|
2644
|
+
getWorkspaceBillingDetails: {
|
|
2645
|
+
name: "getWorkspaceBillingDetails",
|
|
2646
|
+
description: "Get billing details of workspace",
|
|
2647
|
+
method: "get",
|
|
2648
|
+
path: "/v1/admin/workspaces/{id}/billing/details",
|
|
2649
|
+
disableDefaultParameters: {
|
|
2650
|
+
"x-workspace-id": true,
|
|
2651
|
+
},
|
|
2652
|
+
parameters: {
|
|
2653
|
+
id: {
|
|
2654
|
+
type: "string",
|
|
2655
|
+
description: "Workspace ID",
|
|
2656
|
+
in: "path",
|
|
2657
|
+
},
|
|
2658
|
+
},
|
|
2659
|
+
section: "workspace",
|
|
2660
|
+
response: {
|
|
2661
|
+
description: "Success",
|
|
2662
|
+
schema: {
|
|
2663
|
+
type: "object",
|
|
2664
|
+
properties: {
|
|
2665
|
+
currentPeriod: {
|
|
2666
|
+
type: "object",
|
|
2667
|
+
properties: {
|
|
2668
|
+
start: {
|
|
2669
|
+
type: "string",
|
|
2670
|
+
},
|
|
2671
|
+
end: {
|
|
2672
|
+
type: "string",
|
|
2673
|
+
},
|
|
2674
|
+
usage: {
|
|
2675
|
+
type: "object",
|
|
2676
|
+
properties: {
|
|
2677
|
+
userMessages: {
|
|
2678
|
+
type: "object",
|
|
2679
|
+
properties: {
|
|
2680
|
+
status: {
|
|
2681
|
+
type: "string",
|
|
2682
|
+
enum: ["OK", "Warning", "LimitReached"],
|
|
2683
|
+
},
|
|
2684
|
+
quantity: {
|
|
2685
|
+
type: "number",
|
|
2686
|
+
},
|
|
2687
|
+
price: {
|
|
2688
|
+
type: "number",
|
|
2689
|
+
},
|
|
2690
|
+
minimum: {
|
|
2691
|
+
type: "number",
|
|
2692
|
+
},
|
|
2693
|
+
maximum: {
|
|
2694
|
+
type: "number",
|
|
2695
|
+
},
|
|
2696
|
+
},
|
|
2697
|
+
required: [
|
|
2698
|
+
"status",
|
|
2699
|
+
"quantity",
|
|
2700
|
+
"price",
|
|
2701
|
+
"minimum",
|
|
2702
|
+
"maximum",
|
|
2703
|
+
],
|
|
2704
|
+
additionalProperties: false,
|
|
2705
|
+
},
|
|
2706
|
+
},
|
|
2707
|
+
required: ["userMessages"],
|
|
2708
|
+
additionalProperties: false,
|
|
2709
|
+
},
|
|
2710
|
+
},
|
|
2711
|
+
required: ["start", "end", "usage"],
|
|
2712
|
+
additionalProperties: false,
|
|
2713
|
+
},
|
|
2714
|
+
paymentMethod: {
|
|
2715
|
+
type: "object",
|
|
2716
|
+
properties: {
|
|
2717
|
+
type: {
|
|
2718
|
+
type: "string",
|
|
2719
|
+
},
|
|
2720
|
+
lastDigits: {
|
|
2721
|
+
type: "string",
|
|
2722
|
+
},
|
|
2723
|
+
},
|
|
2724
|
+
required: ["type", "lastDigits"],
|
|
2725
|
+
nullable: true,
|
|
2726
|
+
additionalProperties: false,
|
|
2727
|
+
},
|
|
2728
|
+
},
|
|
2729
|
+
required: ["currentPeriod", "paymentMethod"],
|
|
2730
|
+
title: "getWorkspaceBillingDetailsResponse",
|
|
2731
|
+
additionalProperties: false,
|
|
2732
|
+
},
|
|
2733
|
+
},
|
|
2734
|
+
},
|
|
2735
|
+
setWorkspacePaymentMethod: {
|
|
2736
|
+
name: "setWorkspacePaymentMethod",
|
|
2737
|
+
description:
|
|
2738
|
+
"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.",
|
|
2739
|
+
method: "put",
|
|
2740
|
+
path: "/v1/admin/workspaces/{id}/billing/payment-method",
|
|
2741
|
+
disableDefaultParameters: {
|
|
2742
|
+
"x-workspace-id": true,
|
|
2743
|
+
},
|
|
2744
|
+
parameters: {
|
|
2745
|
+
id: {
|
|
2746
|
+
type: "string",
|
|
2747
|
+
description: "Workspace ID",
|
|
2748
|
+
in: "path",
|
|
2749
|
+
},
|
|
2750
|
+
},
|
|
2751
|
+
section: "workspace",
|
|
2752
|
+
requestBody: {
|
|
2753
|
+
description: "",
|
|
2754
|
+
schema: {
|
|
2755
|
+
type: "object",
|
|
2756
|
+
properties: {
|
|
2757
|
+
stripePaymentMethodId: {
|
|
2758
|
+
type: "string",
|
|
2759
|
+
description:
|
|
2760
|
+
"ID of the Stripe PaymentMethod to attach to the workspace.",
|
|
2761
|
+
},
|
|
2762
|
+
},
|
|
2763
|
+
required: ["stripePaymentMethodId"],
|
|
2764
|
+
title: "setWorkspacePaymentMethodBody",
|
|
2765
|
+
additionalProperties: false,
|
|
2766
|
+
},
|
|
2767
|
+
},
|
|
2768
|
+
response: {
|
|
2769
|
+
description: "Success",
|
|
2770
|
+
schema: {
|
|
2771
|
+
type: "object",
|
|
2772
|
+
properties: {
|
|
2773
|
+
stripePaymentMethodId: {
|
|
2774
|
+
type: "string",
|
|
2775
|
+
},
|
|
2776
|
+
paymentMethod: {
|
|
2777
|
+
type: "object",
|
|
2778
|
+
properties: {
|
|
2779
|
+
type: {
|
|
2780
|
+
type: "string",
|
|
2781
|
+
},
|
|
2782
|
+
lastDigits: {
|
|
2783
|
+
type: "string",
|
|
2784
|
+
},
|
|
2785
|
+
},
|
|
2786
|
+
required: ["type", "lastDigits"],
|
|
2787
|
+
nullable: true,
|
|
2788
|
+
additionalProperties: false,
|
|
2789
|
+
},
|
|
2790
|
+
status: {
|
|
2791
|
+
type: "string",
|
|
2792
|
+
enum: [
|
|
2793
|
+
"succeeded",
|
|
2794
|
+
"processing",
|
|
2795
|
+
"canceled",
|
|
2796
|
+
"requires_confirmation",
|
|
2797
|
+
"requires_action",
|
|
2798
|
+
"requires_payment_method",
|
|
2799
|
+
],
|
|
2800
|
+
},
|
|
2801
|
+
nextAction: {
|
|
2802
|
+
type: "object",
|
|
2803
|
+
properties: {
|
|
2804
|
+
redirectToUrl: {
|
|
2805
|
+
type: "string",
|
|
2806
|
+
format: "uri",
|
|
2807
|
+
},
|
|
2808
|
+
},
|
|
2809
|
+
required: ["redirectToUrl"],
|
|
2810
|
+
description:
|
|
2811
|
+
"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.",
|
|
2812
|
+
additionalProperties: false,
|
|
2813
|
+
},
|
|
2814
|
+
},
|
|
2815
|
+
required: ["stripePaymentMethodId", "paymentMethod", "status"],
|
|
2816
|
+
title: "setWorkspacePaymentMethodResponse",
|
|
2817
|
+
additionalProperties: false,
|
|
2818
|
+
},
|
|
2819
|
+
},
|
|
2820
|
+
},
|
|
2821
|
+
listWorkspaceInvoices: {
|
|
2822
|
+
name: "listWorkspaceInvoices",
|
|
2823
|
+
description: "List invoices billed to workspace",
|
|
2824
|
+
method: "get",
|
|
2825
|
+
path: "/v1/admin/workspaces/{id}/billing/invoices",
|
|
2826
|
+
disableDefaultParameters: {
|
|
2827
|
+
"x-workspace-id": true,
|
|
2828
|
+
},
|
|
2829
|
+
parameters: {
|
|
2830
|
+
id: {
|
|
2831
|
+
type: "string",
|
|
2832
|
+
description: "Workspace ID",
|
|
2833
|
+
in: "path",
|
|
2834
|
+
},
|
|
2835
|
+
},
|
|
2836
|
+
section: "workspace",
|
|
2837
|
+
response: {
|
|
2838
|
+
description: "Success",
|
|
2839
|
+
schema: {
|
|
2840
|
+
type: "object",
|
|
2841
|
+
properties: {
|
|
2842
|
+
invoices: {
|
|
2843
|
+
type: "array",
|
|
2844
|
+
items: {
|
|
2845
|
+
type: "object",
|
|
2846
|
+
properties: {
|
|
2847
|
+
id: {
|
|
2848
|
+
type: "string",
|
|
2849
|
+
},
|
|
2850
|
+
period: {
|
|
2851
|
+
type: "object",
|
|
2852
|
+
properties: {
|
|
2853
|
+
month: {
|
|
2854
|
+
type: "number",
|
|
2855
|
+
},
|
|
2856
|
+
year: {
|
|
2857
|
+
type: "number",
|
|
2858
|
+
},
|
|
2859
|
+
},
|
|
2860
|
+
required: ["month", "year"],
|
|
2861
|
+
},
|
|
2862
|
+
date: {
|
|
2863
|
+
type: "string",
|
|
2864
|
+
format: "date-time",
|
|
2865
|
+
description: "Date on which the invoice was generated.",
|
|
2866
|
+
},
|
|
2867
|
+
amount: {
|
|
2868
|
+
type: "number",
|
|
2869
|
+
description: "Total amount to pay of the invoice.",
|
|
2870
|
+
},
|
|
2871
|
+
currency: {
|
|
2872
|
+
type: "string",
|
|
2873
|
+
maxLength: 3,
|
|
2874
|
+
description: "Currency of the invoice amount.",
|
|
2875
|
+
},
|
|
2876
|
+
paymentStatus: {
|
|
2877
|
+
type: "string",
|
|
2878
|
+
enum: ["paid", "unpaid"],
|
|
2879
|
+
},
|
|
2880
|
+
paymentAttemptCount: {
|
|
2881
|
+
type: "number",
|
|
2882
|
+
description:
|
|
2883
|
+
"Number of times payment has been unsuccessfully attempted on the invoice.",
|
|
2884
|
+
nullable: true,
|
|
2885
|
+
},
|
|
2886
|
+
nextPaymentAttemptDate: {
|
|
2887
|
+
type: "string",
|
|
2888
|
+
format: "date-time",
|
|
2889
|
+
description:
|
|
2890
|
+
"Date on which the next payment attempt will be made.",
|
|
2891
|
+
nullable: true,
|
|
2892
|
+
},
|
|
2893
|
+
pdfUrl: {
|
|
2894
|
+
type: "string",
|
|
2895
|
+
format: "uri",
|
|
2896
|
+
description: "URL to download the PDF file of the invoice.",
|
|
2897
|
+
},
|
|
2898
|
+
},
|
|
2899
|
+
required: [
|
|
2900
|
+
"id",
|
|
2901
|
+
"period",
|
|
2902
|
+
"date",
|
|
2903
|
+
"amount",
|
|
2904
|
+
"currency",
|
|
2905
|
+
"paymentStatus",
|
|
2906
|
+
"paymentAttemptCount",
|
|
2907
|
+
"nextPaymentAttemptDate",
|
|
2908
|
+
"pdfUrl",
|
|
2909
|
+
],
|
|
2910
|
+
},
|
|
2911
|
+
},
|
|
2912
|
+
},
|
|
2913
|
+
required: ["invoices"],
|
|
2914
|
+
title: "listWorkspaceInvoicesResponse",
|
|
2915
|
+
additionalProperties: false,
|
|
2916
|
+
},
|
|
2917
|
+
},
|
|
2918
|
+
},
|
|
2919
|
+
chargeWorkspaceUnpaidInvoices: {
|
|
2920
|
+
name: "chargeWorkspaceUnpaidInvoices",
|
|
2921
|
+
description: "Charge unpaid invoices of a workspace.",
|
|
2922
|
+
method: "post",
|
|
2923
|
+
path: "/v1/admin/workspaces/{id}/billing/invoices/charge-unpaid",
|
|
2924
|
+
disableDefaultParameters: {
|
|
2925
|
+
"x-workspace-id": true,
|
|
2926
|
+
},
|
|
2927
|
+
parameters: {
|
|
2928
|
+
id: {
|
|
2929
|
+
type: "string",
|
|
2930
|
+
description: "Workspace ID",
|
|
2931
|
+
in: "path",
|
|
2932
|
+
},
|
|
2933
|
+
},
|
|
2934
|
+
section: "workspace",
|
|
2935
|
+
requestBody: {
|
|
2936
|
+
description: "",
|
|
2937
|
+
schema: {
|
|
2938
|
+
type: "object",
|
|
2939
|
+
properties: {
|
|
2940
|
+
invoiceIds: {
|
|
2941
|
+
type: "array",
|
|
2942
|
+
items: {
|
|
2943
|
+
type: "string",
|
|
2944
|
+
},
|
|
2945
|
+
minItems: 1,
|
|
2946
|
+
},
|
|
2947
|
+
},
|
|
2948
|
+
title: "chargeWorkspaceUnpaidInvoicesBody",
|
|
2949
|
+
additionalProperties: false,
|
|
2950
|
+
},
|
|
2951
|
+
},
|
|
2952
|
+
response: {
|
|
2953
|
+
description: "Success",
|
|
2954
|
+
schema: {
|
|
2955
|
+
type: "object",
|
|
2956
|
+
properties: {
|
|
2957
|
+
chargedInvoices: {
|
|
2958
|
+
type: "array",
|
|
2959
|
+
items: {
|
|
2960
|
+
type: "object",
|
|
2961
|
+
properties: {
|
|
2962
|
+
id: {
|
|
2963
|
+
type: "string",
|
|
2964
|
+
},
|
|
2965
|
+
amount: {
|
|
2966
|
+
type: "number",
|
|
2967
|
+
},
|
|
2968
|
+
},
|
|
2969
|
+
required: ["id", "amount"],
|
|
2970
|
+
},
|
|
2971
|
+
description:
|
|
2972
|
+
"Invoices that were successfully charged by this request.",
|
|
2973
|
+
},
|
|
2974
|
+
failedInvoices: {
|
|
2975
|
+
type: "array",
|
|
2976
|
+
items: {
|
|
2977
|
+
type: "object",
|
|
2978
|
+
properties: {
|
|
2979
|
+
id: {
|
|
2980
|
+
type: "string",
|
|
2981
|
+
},
|
|
2982
|
+
amount: {
|
|
2983
|
+
type: "number",
|
|
2984
|
+
},
|
|
2985
|
+
failedReason: {
|
|
2986
|
+
type: "string",
|
|
2987
|
+
},
|
|
2988
|
+
},
|
|
2989
|
+
required: ["id", "amount", "failedReason"],
|
|
2990
|
+
},
|
|
2991
|
+
description:
|
|
2992
|
+
"Invoices that failed to be charged by this request.",
|
|
2993
|
+
},
|
|
2994
|
+
},
|
|
2995
|
+
required: ["chargedInvoices", "failedInvoices"],
|
|
2996
|
+
title: "chargeWorkspaceUnpaidInvoicesResponse",
|
|
2997
|
+
additionalProperties: false,
|
|
2998
|
+
},
|
|
2999
|
+
},
|
|
3000
|
+
},
|
|
2450
3001
|
createWorkspace: {
|
|
2451
3002
|
name: "createWorkspace",
|
|
2452
3003
|
description: "Create workspace",
|
|
@@ -2616,6 +3167,8 @@ export const state = {
|
|
|
2616
3167
|
"table_row_count",
|
|
2617
3168
|
"workspace_member_count",
|
|
2618
3169
|
"integrations_owned_count",
|
|
3170
|
+
"cognitive_calls",
|
|
3171
|
+
"model_credit",
|
|
2619
3172
|
],
|
|
2620
3173
|
required: true,
|
|
2621
3174
|
},
|
|
@@ -2673,6 +3226,8 @@ export const state = {
|
|
|
2673
3226
|
"table_row_count",
|
|
2674
3227
|
"workspace_member_count",
|
|
2675
3228
|
"integrations_owned_count",
|
|
3229
|
+
"cognitive_calls",
|
|
3230
|
+
"model_credit",
|
|
2676
3231
|
],
|
|
2677
3232
|
required: true,
|
|
2678
3233
|
},
|
|
@@ -2711,6 +3266,8 @@ export const state = {
|
|
|
2711
3266
|
"table_row_count",
|
|
2712
3267
|
"workspace_member_count",
|
|
2713
3268
|
"integrations_owned_count",
|
|
3269
|
+
"cognitive_calls",
|
|
3270
|
+
"model_credit",
|
|
2714
3271
|
],
|
|
2715
3272
|
description: "Usage type that can be used",
|
|
2716
3273
|
},
|
|
@@ -2777,6 +3334,8 @@ export const state = {
|
|
|
2777
3334
|
"table_row_count",
|
|
2778
3335
|
"workspace_member_count",
|
|
2779
3336
|
"integrations_owned_count",
|
|
3337
|
+
"cognitive_calls",
|
|
3338
|
+
"model_credit",
|
|
2780
3339
|
],
|
|
2781
3340
|
description: "Usage type that can be used",
|
|
2782
3341
|
},
|
|
@@ -3752,7 +4311,7 @@ export const state = {
|
|
|
3752
4311
|
parameters: {
|
|
3753
4312
|
id: {
|
|
3754
4313
|
type: "string",
|
|
3755
|
-
description: "Integration
|
|
4314
|
+
description: "Integration ID",
|
|
3756
4315
|
in: "path",
|
|
3757
4316
|
},
|
|
3758
4317
|
},
|
|
@@ -4202,7 +4761,7 @@ export const state = {
|
|
|
4202
4761
|
parameters: {
|
|
4203
4762
|
id: {
|
|
4204
4763
|
type: "string",
|
|
4205
|
-
description: "Integration
|
|
4764
|
+
description: "Integration ID",
|
|
4206
4765
|
in: "path",
|
|
4207
4766
|
},
|
|
4208
4767
|
},
|
|
@@ -4230,7 +4789,7 @@ export const state = {
|
|
|
4230
4789
|
parameters: {
|
|
4231
4790
|
id: {
|
|
4232
4791
|
type: "string",
|
|
4233
|
-
description: "Integration
|
|
4792
|
+
description: "Integration ID",
|
|
4234
4793
|
in: "path",
|
|
4235
4794
|
},
|
|
4236
4795
|
timeStart: {
|
|
@@ -4328,7 +4887,7 @@ export const state = {
|
|
|
4328
4887
|
parameters: {
|
|
4329
4888
|
id: {
|
|
4330
4889
|
type: "string",
|
|
4331
|
-
description: "Integration
|
|
4890
|
+
description: "Integration ID",
|
|
4332
4891
|
in: "path",
|
|
4333
4892
|
},
|
|
4334
4893
|
},
|
|
@@ -4362,6 +4921,8 @@ export const state = {
|
|
|
4362
4921
|
"table_row_count",
|
|
4363
4922
|
"workspace_member_count",
|
|
4364
4923
|
"integrations_owned_count",
|
|
4924
|
+
"cognitive_calls",
|
|
4925
|
+
"model_credit",
|
|
4365
4926
|
],
|
|
4366
4927
|
required: true,
|
|
4367
4928
|
},
|
|
@@ -4412,6 +4973,8 @@ export const state = {
|
|
|
4412
4973
|
"table_row_count",
|
|
4413
4974
|
"workspace_member_count",
|
|
4414
4975
|
"integrations_owned_count",
|
|
4976
|
+
"cognitive_calls",
|
|
4977
|
+
"model_credit",
|
|
4415
4978
|
],
|
|
4416
4979
|
required: true,
|
|
4417
4980
|
},
|
|
@@ -4660,7 +5223,7 @@ export const state = {
|
|
|
4660
5223
|
title: "Botpress API",
|
|
4661
5224
|
description: "API for Botpress Cloud",
|
|
4662
5225
|
server: "https://api.botpress.cloud",
|
|
4663
|
-
version: "0.
|
|
5226
|
+
version: "0.11.0",
|
|
4664
5227
|
prefix: "v1",
|
|
4665
5228
|
},
|
|
4666
5229
|
errors: [
|
|
@@ -4800,6 +5363,8 @@ export const state = {
|
|
|
4800
5363
|
createBotBody: true,
|
|
4801
5364
|
updateBotBody: true,
|
|
4802
5365
|
transferBotBody: true,
|
|
5366
|
+
setWorkspacePaymentMethodBody: true,
|
|
5367
|
+
chargeWorkspaceUnpaidInvoicesBody: true,
|
|
4803
5368
|
createWorkspaceBody: true,
|
|
4804
5369
|
updateWorkspaceBody: true,
|
|
4805
5370
|
changeWorkspacePlanBody: true,
|
|
@@ -4853,6 +5418,13 @@ export const state = {
|
|
|
4853
5418
|
getBotLogsResponse: true,
|
|
4854
5419
|
getBotWebchatResponse: true,
|
|
4855
5420
|
getBotAnalyticsResponse: true,
|
|
5421
|
+
listBotIssuesResponse: true,
|
|
5422
|
+
deleteBotIssueResponse: true,
|
|
5423
|
+
listBotIssueEventsResponse: true,
|
|
5424
|
+
getWorkspaceBillingDetailsResponse: true,
|
|
5425
|
+
setWorkspacePaymentMethodResponse: true,
|
|
5426
|
+
listWorkspaceInvoicesResponse: true,
|
|
5427
|
+
chargeWorkspaceUnpaidInvoicesResponse: true,
|
|
4856
5428
|
createWorkspaceResponse: true,
|
|
4857
5429
|
getWorkspaceResponse: true,
|
|
4858
5430
|
listWorkspaceUsagesResponse: true,
|
|
@@ -4890,6 +5462,8 @@ export const state = {
|
|
|
4890
5462
|
WorkspaceMember: true,
|
|
4891
5463
|
Account: true,
|
|
4892
5464
|
Usage: true,
|
|
5465
|
+
Issue: true,
|
|
5466
|
+
IssueEvent: true,
|
|
4893
5467
|
User: true,
|
|
4894
5468
|
Conversation: true,
|
|
4895
5469
|
Event: true,
|
|
@@ -4945,6 +5519,9 @@ export const state = {
|
|
|
4945
5519
|
webhookUrl: {
|
|
4946
5520
|
type: "string",
|
|
4947
5521
|
},
|
|
5522
|
+
webhookId: {
|
|
5523
|
+
type: "string",
|
|
5524
|
+
},
|
|
4948
5525
|
configuration: {
|
|
4949
5526
|
type: "object",
|
|
4950
5527
|
additionalProperties: true,
|
|
@@ -5004,6 +5581,7 @@ export const state = {
|
|
|
5004
5581
|
"name",
|
|
5005
5582
|
"version",
|
|
5006
5583
|
"webhookUrl",
|
|
5584
|
+
"webhookId",
|
|
5007
5585
|
"configuration",
|
|
5008
5586
|
"status",
|
|
5009
5587
|
"statusReason",
|
|
@@ -5749,6 +6327,8 @@ export const state = {
|
|
|
5749
6327
|
"table_row_count",
|
|
5750
6328
|
"workspace_member_count",
|
|
5751
6329
|
"integrations_owned_count",
|
|
6330
|
+
"cognitive_calls",
|
|
6331
|
+
"model_credit",
|
|
5752
6332
|
],
|
|
5753
6333
|
description: "Usage type that can be used",
|
|
5754
6334
|
},
|
|
@@ -5757,6 +6337,83 @@ export const state = {
|
|
|
5757
6337
|
additionalProperties: false,
|
|
5758
6338
|
},
|
|
5759
6339
|
},
|
|
6340
|
+
Issue: {
|
|
6341
|
+
section: "bot",
|
|
6342
|
+
schema: {
|
|
6343
|
+
type: "object",
|
|
6344
|
+
properties: {
|
|
6345
|
+
id: {
|
|
6346
|
+
type: "string",
|
|
6347
|
+
},
|
|
6348
|
+
code: {
|
|
6349
|
+
type: "string",
|
|
6350
|
+
},
|
|
6351
|
+
createdAt: {
|
|
6352
|
+
type: "string",
|
|
6353
|
+
format: "date-time",
|
|
6354
|
+
},
|
|
6355
|
+
lastSeenAt: {
|
|
6356
|
+
type: "string",
|
|
6357
|
+
format: "date-time",
|
|
6358
|
+
},
|
|
6359
|
+
title: {
|
|
6360
|
+
type: "string",
|
|
6361
|
+
},
|
|
6362
|
+
description: {
|
|
6363
|
+
type: "string",
|
|
6364
|
+
},
|
|
6365
|
+
groupedData: {
|
|
6366
|
+
type: "object",
|
|
6367
|
+
additionalProperties: false,
|
|
6368
|
+
},
|
|
6369
|
+
eventsCount: {
|
|
6370
|
+
type: "number",
|
|
6371
|
+
},
|
|
6372
|
+
category: {
|
|
6373
|
+
type: "string",
|
|
6374
|
+
enum: ["user_code", "limits", "configuration", "other"],
|
|
6375
|
+
},
|
|
6376
|
+
resolutionLink: {
|
|
6377
|
+
type: "string",
|
|
6378
|
+
nullable: true,
|
|
6379
|
+
},
|
|
6380
|
+
},
|
|
6381
|
+
required: [
|
|
6382
|
+
"id",
|
|
6383
|
+
"code",
|
|
6384
|
+
"createdAt",
|
|
6385
|
+
"lastSeenAt",
|
|
6386
|
+
"title",
|
|
6387
|
+
"description",
|
|
6388
|
+
"groupedData",
|
|
6389
|
+
"eventsCount",
|
|
6390
|
+
"category",
|
|
6391
|
+
"resolutionLink",
|
|
6392
|
+
],
|
|
6393
|
+
additionalProperties: false,
|
|
6394
|
+
},
|
|
6395
|
+
},
|
|
6396
|
+
IssueEvent: {
|
|
6397
|
+
section: "bot",
|
|
6398
|
+
schema: {
|
|
6399
|
+
type: "object",
|
|
6400
|
+
properties: {
|
|
6401
|
+
id: {
|
|
6402
|
+
type: "string",
|
|
6403
|
+
},
|
|
6404
|
+
createdAt: {
|
|
6405
|
+
type: "string",
|
|
6406
|
+
format: "date-time",
|
|
6407
|
+
},
|
|
6408
|
+
data: {
|
|
6409
|
+
type: "object",
|
|
6410
|
+
additionalProperties: false,
|
|
6411
|
+
},
|
|
6412
|
+
},
|
|
6413
|
+
required: ["id", "createdAt", "data"],
|
|
6414
|
+
additionalProperties: false,
|
|
6415
|
+
},
|
|
6416
|
+
},
|
|
5760
6417
|
User: {
|
|
5761
6418
|
section: "user",
|
|
5762
6419
|
schema: {
|
|
@@ -6149,6 +6806,9 @@ export const state = {
|
|
|
6149
6806
|
"getBotLogs",
|
|
6150
6807
|
"getBotWebchat",
|
|
6151
6808
|
"getBotAnalytics",
|
|
6809
|
+
"listBotIssues",
|
|
6810
|
+
"deleteBotIssue",
|
|
6811
|
+
"listBotIssueEvents",
|
|
6152
6812
|
],
|
|
6153
6813
|
schema: "Bot",
|
|
6154
6814
|
},
|
|
@@ -6172,6 +6832,10 @@ export const state = {
|
|
|
6172
6832
|
title: "Workspace",
|
|
6173
6833
|
name: "workspace",
|
|
6174
6834
|
operations: [
|
|
6835
|
+
"getWorkspaceBillingDetails",
|
|
6836
|
+
"setWorkspacePaymentMethod",
|
|
6837
|
+
"listWorkspaceInvoices",
|
|
6838
|
+
"chargeWorkspaceUnpaidInvoices",
|
|
6175
6839
|
"createWorkspace",
|
|
6176
6840
|
"getWorkspace",
|
|
6177
6841
|
"listWorkspaceUsages",
|
|
@@ -6227,6 +6891,8 @@ export const state = {
|
|
|
6227
6891
|
| "WorkspaceMember"
|
|
6228
6892
|
| "Account"
|
|
6229
6893
|
| "Usage"
|
|
6894
|
+
| "Issue"
|
|
6895
|
+
| "IssueEvent"
|
|
6230
6896
|
| "User"
|
|
6231
6897
|
| "Conversation"
|
|
6232
6898
|
| "Event"
|