@botpress/api 0.10.0 → 0.12.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.
@@ -2287,16 +2287,32 @@ export declare const state: {
2287
2287
  description: string;
2288
2288
  };
2289
2289
  returningUsers: {
2290
- type: "number";
2290
+ type: "integer";
2291
2291
  };
2292
2292
  newUsers: {
2293
- type: "number";
2293
+ type: "integer";
2294
2294
  };
2295
2295
  sessions: {
2296
- type: "number";
2296
+ type: "integer";
2297
2297
  };
2298
2298
  messages: {
2299
- type: "number";
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;
@@ -2520,6 +2863,10 @@ export declare const state: {
2520
2863
  type: "string";
2521
2864
  enum: string[];
2522
2865
  };
2866
+ plan: {
2867
+ type: "string";
2868
+ enum: string[];
2869
+ };
2523
2870
  blocked: {
2524
2871
  type: "boolean";
2525
2872
  };
@@ -2577,6 +2924,10 @@ export declare const state: {
2577
2924
  type: "string";
2578
2925
  enum: string[];
2579
2926
  };
2927
+ plan: {
2928
+ type: "string";
2929
+ enum: string[];
2930
+ };
2580
2931
  blocked: {
2581
2932
  type: "boolean";
2582
2933
  };
@@ -2817,6 +3168,10 @@ export declare const state: {
2817
3168
  type: "string";
2818
3169
  enum: string[];
2819
3170
  };
3171
+ plan: {
3172
+ type: "string";
3173
+ enum: string[];
3174
+ };
2820
3175
  blocked: {
2821
3176
  type: "boolean";
2822
3177
  };
@@ -2878,6 +3233,10 @@ export declare const state: {
2878
3233
  type: "string";
2879
3234
  enum: string[];
2880
3235
  };
3236
+ plan: {
3237
+ type: "string";
3238
+ enum: string[];
3239
+ };
2881
3240
  blocked: {
2882
3241
  type: "boolean";
2883
3242
  };
@@ -2964,6 +3323,10 @@ export declare const state: {
2964
3323
  type: "string";
2965
3324
  enum: string[];
2966
3325
  };
3326
+ plan: {
3327
+ type: "string";
3328
+ enum: string[];
3329
+ };
2967
3330
  blocked: {
2968
3331
  type: "boolean";
2969
3332
  };
@@ -3294,9 +3657,19 @@ export declare const state: {
3294
3657
  additionalProperties: true;
3295
3658
  description: string;
3296
3659
  };
3660
+ identifier: {
3661
+ type: "object";
3662
+ properties: {
3663
+ required: {
3664
+ type: "boolean";
3665
+ };
3666
+ linkTemplateScript: {
3667
+ type: "string";
3668
+ };
3669
+ };
3670
+ additionalProperties: false;
3671
+ };
3297
3672
  };
3298
- required: string[];
3299
- description: string;
3300
3673
  additionalProperties: false;
3301
3674
  };
3302
3675
  states: {
@@ -3388,6 +3761,15 @@ export declare const state: {
3388
3761
  additionalProperties: false;
3389
3762
  };
3390
3763
  };
3764
+ identifier: {
3765
+ type: "object";
3766
+ properties: {
3767
+ extractScript: {
3768
+ type: "string";
3769
+ };
3770
+ };
3771
+ additionalProperties: false;
3772
+ };
3391
3773
  channels: {
3392
3774
  type: "object";
3393
3775
  additionalProperties: {
@@ -3618,9 +4000,20 @@ export declare const state: {
3618
4000
  additionalProperties: true;
3619
4001
  description: string;
3620
4002
  };
4003
+ identifier: {
4004
+ type: "object";
4005
+ properties: {
4006
+ linkTemplateScript: {
4007
+ type: "string";
4008
+ nullable: true;
4009
+ };
4010
+ required: {
4011
+ type: "boolean";
4012
+ };
4013
+ };
4014
+ additionalProperties: false;
4015
+ };
3621
4016
  };
3622
- required: string[];
3623
- description: string;
3624
4017
  additionalProperties: false;
3625
4018
  };
3626
4019
  channels: {
@@ -3732,6 +4125,16 @@ export declare const state: {
3732
4125
  additionalProperties: false;
3733
4126
  };
3734
4127
  };
4128
+ identifier: {
4129
+ type: "object";
4130
+ properties: {
4131
+ extractScript: {
4132
+ type: "string";
4133
+ nullable: true;
4134
+ };
4135
+ };
4136
+ additionalProperties: false;
4137
+ };
3735
4138
  actions: {
3736
4139
  type: "object";
3737
4140
  additionalProperties: {
@@ -4520,6 +4923,8 @@ export declare const state: {
4520
4923
  createBotBody: true;
4521
4924
  updateBotBody: true;
4522
4925
  transferBotBody: true;
4926
+ setWorkspacePaymentMethodBody: true;
4927
+ chargeWorkspaceUnpaidInvoicesBody: true;
4523
4928
  createWorkspaceBody: true;
4524
4929
  updateWorkspaceBody: true;
4525
4930
  changeWorkspacePlanBody: true;
@@ -4576,6 +4981,10 @@ export declare const state: {
4576
4981
  listBotIssuesResponse: true;
4577
4982
  deleteBotIssueResponse: true;
4578
4983
  listBotIssueEventsResponse: true;
4984
+ getWorkspaceBillingDetailsResponse: true;
4985
+ setWorkspacePaymentMethodResponse: true;
4986
+ listWorkspaceInvoicesResponse: true;
4987
+ chargeWorkspaceUnpaidInvoicesResponse: true;
4579
4988
  createWorkspaceResponse: true;
4580
4989
  getWorkspaceResponse: true;
4581
4990
  listWorkspaceUsagesResponse: true;
@@ -4667,6 +5076,9 @@ export declare const state: {
4667
5076
  webhookUrl: {
4668
5077
  type: "string";
4669
5078
  };
5079
+ webhookId: {
5080
+ type: "string";
5081
+ };
4670
5082
  configuration: {
4671
5083
  type: "object";
4672
5084
  additionalProperties: true;
@@ -4955,6 +5367,17 @@ export declare const state: {
4955
5367
  format: string;
4956
5368
  description: string;
4957
5369
  };
5370
+ identifier: {
5371
+ type: "object";
5372
+ properties: {
5373
+ extractScript: {
5374
+ type: "string";
5375
+ description: string;
5376
+ };
5377
+ };
5378
+ description: string;
5379
+ additionalProperties: false;
5380
+ };
4958
5381
  name: {
4959
5382
  type: "string";
4960
5383
  description: string;
@@ -4966,6 +5389,20 @@ export declare const state: {
4966
5389
  configuration: {
4967
5390
  type: "object";
4968
5391
  properties: {
5392
+ identifier: {
5393
+ type: "object";
5394
+ properties: {
5395
+ linkTemplateScript: {
5396
+ type: "string";
5397
+ };
5398
+ required: {
5399
+ type: "boolean";
5400
+ };
5401
+ };
5402
+ required: string[];
5403
+ description: string;
5404
+ additionalProperties: false;
5405
+ };
4969
5406
  schema: {
4970
5407
  type: "object";
4971
5408
  additionalProperties: true;
@@ -5278,6 +5715,10 @@ export declare const state: {
5278
5715
  type: "string";
5279
5716
  enum: string[];
5280
5717
  };
5718
+ plan: {
5719
+ type: "string";
5720
+ enum: string[];
5721
+ };
5281
5722
  blocked: {
5282
5723
  type: "boolean";
5283
5724
  };