@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/gen/state.d.ts +356 -4
- package/dist/index.js +411 -13
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +410 -5
package/dist/gen/state.d.ts
CHANGED
|
@@ -2287,16 +2287,32 @@ export declare const state: {
|
|
|
2287
2287
|
description: string;
|
|
2288
2288
|
};
|
|
2289
2289
|
returningUsers: {
|
|
2290
|
-
type: "
|
|
2290
|
+
type: "integer";
|
|
2291
2291
|
};
|
|
2292
2292
|
newUsers: {
|
|
2293
|
-
type: "
|
|
2293
|
+
type: "integer";
|
|
2294
2294
|
};
|
|
2295
2295
|
sessions: {
|
|
2296
|
-
type: "
|
|
2296
|
+
type: "integer";
|
|
2297
2297
|
};
|
|
2298
2298
|
messages: {
|
|
2299
|
-
type: "
|
|
2299
|
+
type: "integer";
|
|
2300
|
+
description: string;
|
|
2301
|
+
};
|
|
2302
|
+
userMessages: {
|
|
2303
|
+
type: "integer";
|
|
2304
|
+
};
|
|
2305
|
+
botMessages: {
|
|
2306
|
+
type: "integer";
|
|
2307
|
+
};
|
|
2308
|
+
events: {
|
|
2309
|
+
type: "integer";
|
|
2310
|
+
};
|
|
2311
|
+
eventTypes: {
|
|
2312
|
+
type: "object";
|
|
2313
|
+
additionalProperties: {
|
|
2314
|
+
type: "number";
|
|
2315
|
+
};
|
|
2300
2316
|
};
|
|
2301
2317
|
};
|
|
2302
2318
|
required: string[];
|
|
@@ -2470,6 +2486,333 @@ export declare const state: {
|
|
|
2470
2486
|
};
|
|
2471
2487
|
};
|
|
2472
2488
|
};
|
|
2489
|
+
getWorkspaceBillingDetails: {
|
|
2490
|
+
name: string;
|
|
2491
|
+
description: string;
|
|
2492
|
+
method: "get";
|
|
2493
|
+
path: string;
|
|
2494
|
+
disableDefaultParameters: {
|
|
2495
|
+
"x-workspace-id": boolean;
|
|
2496
|
+
};
|
|
2497
|
+
parameters: {
|
|
2498
|
+
id: {
|
|
2499
|
+
type: "string";
|
|
2500
|
+
description: string;
|
|
2501
|
+
in: "path";
|
|
2502
|
+
};
|
|
2503
|
+
};
|
|
2504
|
+
section: "workspace";
|
|
2505
|
+
response: {
|
|
2506
|
+
description: string;
|
|
2507
|
+
schema: {
|
|
2508
|
+
type: "object";
|
|
2509
|
+
properties: {
|
|
2510
|
+
currentPeriod: {
|
|
2511
|
+
type: "object";
|
|
2512
|
+
properties: {
|
|
2513
|
+
start: {
|
|
2514
|
+
type: "string";
|
|
2515
|
+
};
|
|
2516
|
+
end: {
|
|
2517
|
+
type: "string";
|
|
2518
|
+
};
|
|
2519
|
+
usage: {
|
|
2520
|
+
type: "object";
|
|
2521
|
+
properties: {
|
|
2522
|
+
userMessages: {
|
|
2523
|
+
type: "object";
|
|
2524
|
+
properties: {
|
|
2525
|
+
status: {
|
|
2526
|
+
type: "string";
|
|
2527
|
+
enum: string[];
|
|
2528
|
+
};
|
|
2529
|
+
quantity: {
|
|
2530
|
+
type: "number";
|
|
2531
|
+
};
|
|
2532
|
+
price: {
|
|
2533
|
+
type: "number";
|
|
2534
|
+
};
|
|
2535
|
+
minimum: {
|
|
2536
|
+
type: "number";
|
|
2537
|
+
};
|
|
2538
|
+
maximum: {
|
|
2539
|
+
type: "number";
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
required: string[];
|
|
2543
|
+
additionalProperties: false;
|
|
2544
|
+
};
|
|
2545
|
+
};
|
|
2546
|
+
required: string[];
|
|
2547
|
+
additionalProperties: false;
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
required: string[];
|
|
2551
|
+
additionalProperties: false;
|
|
2552
|
+
};
|
|
2553
|
+
paymentMethod: {
|
|
2554
|
+
type: "object";
|
|
2555
|
+
properties: {
|
|
2556
|
+
type: {
|
|
2557
|
+
type: "string";
|
|
2558
|
+
};
|
|
2559
|
+
lastDigits: {
|
|
2560
|
+
type: "string";
|
|
2561
|
+
};
|
|
2562
|
+
};
|
|
2563
|
+
required: string[];
|
|
2564
|
+
nullable: true;
|
|
2565
|
+
additionalProperties: false;
|
|
2566
|
+
};
|
|
2567
|
+
};
|
|
2568
|
+
required: string[];
|
|
2569
|
+
title: string;
|
|
2570
|
+
additionalProperties: false;
|
|
2571
|
+
};
|
|
2572
|
+
};
|
|
2573
|
+
};
|
|
2574
|
+
setWorkspacePaymentMethod: {
|
|
2575
|
+
name: string;
|
|
2576
|
+
description: string;
|
|
2577
|
+
method: "put";
|
|
2578
|
+
path: string;
|
|
2579
|
+
disableDefaultParameters: {
|
|
2580
|
+
"x-workspace-id": boolean;
|
|
2581
|
+
};
|
|
2582
|
+
parameters: {
|
|
2583
|
+
id: {
|
|
2584
|
+
type: "string";
|
|
2585
|
+
description: string;
|
|
2586
|
+
in: "path";
|
|
2587
|
+
};
|
|
2588
|
+
};
|
|
2589
|
+
section: "workspace";
|
|
2590
|
+
requestBody: {
|
|
2591
|
+
description: string;
|
|
2592
|
+
schema: {
|
|
2593
|
+
type: "object";
|
|
2594
|
+
properties: {
|
|
2595
|
+
stripePaymentMethodId: {
|
|
2596
|
+
type: "string";
|
|
2597
|
+
description: string;
|
|
2598
|
+
};
|
|
2599
|
+
};
|
|
2600
|
+
required: string[];
|
|
2601
|
+
title: string;
|
|
2602
|
+
additionalProperties: false;
|
|
2603
|
+
};
|
|
2604
|
+
};
|
|
2605
|
+
response: {
|
|
2606
|
+
description: string;
|
|
2607
|
+
schema: {
|
|
2608
|
+
type: "object";
|
|
2609
|
+
properties: {
|
|
2610
|
+
stripePaymentMethodId: {
|
|
2611
|
+
type: "string";
|
|
2612
|
+
};
|
|
2613
|
+
paymentMethod: {
|
|
2614
|
+
type: "object";
|
|
2615
|
+
properties: {
|
|
2616
|
+
type: {
|
|
2617
|
+
type: "string";
|
|
2618
|
+
};
|
|
2619
|
+
lastDigits: {
|
|
2620
|
+
type: "string";
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
required: string[];
|
|
2624
|
+
nullable: true;
|
|
2625
|
+
additionalProperties: false;
|
|
2626
|
+
};
|
|
2627
|
+
status: {
|
|
2628
|
+
type: "string";
|
|
2629
|
+
enum: string[];
|
|
2630
|
+
};
|
|
2631
|
+
nextAction: {
|
|
2632
|
+
type: "object";
|
|
2633
|
+
properties: {
|
|
2634
|
+
redirectToUrl: {
|
|
2635
|
+
type: "string";
|
|
2636
|
+
format: string;
|
|
2637
|
+
};
|
|
2638
|
+
};
|
|
2639
|
+
required: string[];
|
|
2640
|
+
description: string;
|
|
2641
|
+
additionalProperties: false;
|
|
2642
|
+
};
|
|
2643
|
+
};
|
|
2644
|
+
required: string[];
|
|
2645
|
+
title: string;
|
|
2646
|
+
additionalProperties: false;
|
|
2647
|
+
};
|
|
2648
|
+
};
|
|
2649
|
+
};
|
|
2650
|
+
listWorkspaceInvoices: {
|
|
2651
|
+
name: string;
|
|
2652
|
+
description: string;
|
|
2653
|
+
method: "get";
|
|
2654
|
+
path: string;
|
|
2655
|
+
disableDefaultParameters: {
|
|
2656
|
+
"x-workspace-id": boolean;
|
|
2657
|
+
};
|
|
2658
|
+
parameters: {
|
|
2659
|
+
id: {
|
|
2660
|
+
type: "string";
|
|
2661
|
+
description: string;
|
|
2662
|
+
in: "path";
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
section: "workspace";
|
|
2666
|
+
response: {
|
|
2667
|
+
description: string;
|
|
2668
|
+
schema: {
|
|
2669
|
+
type: "object";
|
|
2670
|
+
properties: {
|
|
2671
|
+
invoices: {
|
|
2672
|
+
type: "array";
|
|
2673
|
+
items: {
|
|
2674
|
+
type: "object";
|
|
2675
|
+
properties: {
|
|
2676
|
+
id: {
|
|
2677
|
+
type: "string";
|
|
2678
|
+
};
|
|
2679
|
+
period: {
|
|
2680
|
+
type: "object";
|
|
2681
|
+
properties: {
|
|
2682
|
+
month: {
|
|
2683
|
+
type: "number";
|
|
2684
|
+
};
|
|
2685
|
+
year: {
|
|
2686
|
+
type: "number";
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
required: string[];
|
|
2690
|
+
};
|
|
2691
|
+
date: {
|
|
2692
|
+
type: "string";
|
|
2693
|
+
format: string;
|
|
2694
|
+
description: string;
|
|
2695
|
+
};
|
|
2696
|
+
amount: {
|
|
2697
|
+
type: "number";
|
|
2698
|
+
description: string;
|
|
2699
|
+
};
|
|
2700
|
+
currency: {
|
|
2701
|
+
type: "string";
|
|
2702
|
+
maxLength: number;
|
|
2703
|
+
description: string;
|
|
2704
|
+
};
|
|
2705
|
+
paymentStatus: {
|
|
2706
|
+
type: "string";
|
|
2707
|
+
enum: string[];
|
|
2708
|
+
};
|
|
2709
|
+
paymentAttemptCount: {
|
|
2710
|
+
type: "number";
|
|
2711
|
+
description: string;
|
|
2712
|
+
nullable: true;
|
|
2713
|
+
};
|
|
2714
|
+
nextPaymentAttemptDate: {
|
|
2715
|
+
type: "string";
|
|
2716
|
+
format: string;
|
|
2717
|
+
description: string;
|
|
2718
|
+
nullable: true;
|
|
2719
|
+
};
|
|
2720
|
+
pdfUrl: {
|
|
2721
|
+
type: "string";
|
|
2722
|
+
format: string;
|
|
2723
|
+
description: string;
|
|
2724
|
+
};
|
|
2725
|
+
};
|
|
2726
|
+
required: string[];
|
|
2727
|
+
};
|
|
2728
|
+
};
|
|
2729
|
+
};
|
|
2730
|
+
required: string[];
|
|
2731
|
+
title: string;
|
|
2732
|
+
additionalProperties: false;
|
|
2733
|
+
};
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
chargeWorkspaceUnpaidInvoices: {
|
|
2737
|
+
name: string;
|
|
2738
|
+
description: string;
|
|
2739
|
+
method: "post";
|
|
2740
|
+
path: string;
|
|
2741
|
+
disableDefaultParameters: {
|
|
2742
|
+
"x-workspace-id": boolean;
|
|
2743
|
+
};
|
|
2744
|
+
parameters: {
|
|
2745
|
+
id: {
|
|
2746
|
+
type: "string";
|
|
2747
|
+
description: string;
|
|
2748
|
+
in: "path";
|
|
2749
|
+
};
|
|
2750
|
+
};
|
|
2751
|
+
section: "workspace";
|
|
2752
|
+
requestBody: {
|
|
2753
|
+
description: string;
|
|
2754
|
+
schema: {
|
|
2755
|
+
type: "object";
|
|
2756
|
+
properties: {
|
|
2757
|
+
invoiceIds: {
|
|
2758
|
+
type: "array";
|
|
2759
|
+
items: {
|
|
2760
|
+
type: "string";
|
|
2761
|
+
};
|
|
2762
|
+
minItems: number;
|
|
2763
|
+
};
|
|
2764
|
+
};
|
|
2765
|
+
title: string;
|
|
2766
|
+
additionalProperties: false;
|
|
2767
|
+
};
|
|
2768
|
+
};
|
|
2769
|
+
response: {
|
|
2770
|
+
description: string;
|
|
2771
|
+
schema: {
|
|
2772
|
+
type: "object";
|
|
2773
|
+
properties: {
|
|
2774
|
+
chargedInvoices: {
|
|
2775
|
+
type: "array";
|
|
2776
|
+
items: {
|
|
2777
|
+
type: "object";
|
|
2778
|
+
properties: {
|
|
2779
|
+
id: {
|
|
2780
|
+
type: "string";
|
|
2781
|
+
};
|
|
2782
|
+
amount: {
|
|
2783
|
+
type: "number";
|
|
2784
|
+
};
|
|
2785
|
+
};
|
|
2786
|
+
required: string[];
|
|
2787
|
+
};
|
|
2788
|
+
description: string;
|
|
2789
|
+
};
|
|
2790
|
+
failedInvoices: {
|
|
2791
|
+
type: "array";
|
|
2792
|
+
items: {
|
|
2793
|
+
type: "object";
|
|
2794
|
+
properties: {
|
|
2795
|
+
id: {
|
|
2796
|
+
type: "string";
|
|
2797
|
+
};
|
|
2798
|
+
amount: {
|
|
2799
|
+
type: "number";
|
|
2800
|
+
};
|
|
2801
|
+
failedReason: {
|
|
2802
|
+
type: "string";
|
|
2803
|
+
};
|
|
2804
|
+
};
|
|
2805
|
+
required: string[];
|
|
2806
|
+
};
|
|
2807
|
+
description: string;
|
|
2808
|
+
};
|
|
2809
|
+
};
|
|
2810
|
+
required: string[];
|
|
2811
|
+
title: string;
|
|
2812
|
+
additionalProperties: false;
|
|
2813
|
+
};
|
|
2814
|
+
};
|
|
2815
|
+
};
|
|
2473
2816
|
createWorkspace: {
|
|
2474
2817
|
name: string;
|
|
2475
2818
|
description: string;
|
|
@@ -4520,6 +4863,8 @@ export declare const state: {
|
|
|
4520
4863
|
createBotBody: true;
|
|
4521
4864
|
updateBotBody: true;
|
|
4522
4865
|
transferBotBody: true;
|
|
4866
|
+
setWorkspacePaymentMethodBody: true;
|
|
4867
|
+
chargeWorkspaceUnpaidInvoicesBody: true;
|
|
4523
4868
|
createWorkspaceBody: true;
|
|
4524
4869
|
updateWorkspaceBody: true;
|
|
4525
4870
|
changeWorkspacePlanBody: true;
|
|
@@ -4576,6 +4921,10 @@ export declare const state: {
|
|
|
4576
4921
|
listBotIssuesResponse: true;
|
|
4577
4922
|
deleteBotIssueResponse: true;
|
|
4578
4923
|
listBotIssueEventsResponse: true;
|
|
4924
|
+
getWorkspaceBillingDetailsResponse: true;
|
|
4925
|
+
setWorkspacePaymentMethodResponse: true;
|
|
4926
|
+
listWorkspaceInvoicesResponse: true;
|
|
4927
|
+
chargeWorkspaceUnpaidInvoicesResponse: true;
|
|
4579
4928
|
createWorkspaceResponse: true;
|
|
4580
4929
|
getWorkspaceResponse: true;
|
|
4581
4930
|
listWorkspaceUsagesResponse: true;
|
|
@@ -4667,6 +5016,9 @@ export declare const state: {
|
|
|
4667
5016
|
webhookUrl: {
|
|
4668
5017
|
type: "string";
|
|
4669
5018
|
};
|
|
5019
|
+
webhookId: {
|
|
5020
|
+
type: "string";
|
|
5021
|
+
};
|
|
4670
5022
|
configuration: {
|
|
4671
5023
|
type: "object";
|
|
4672
5024
|
additionalProperties: true;
|