@botpress/api 0.18.4 → 0.18.5

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/src/gen/state.ts CHANGED
@@ -2585,6 +2585,57 @@ export const state = {
2585
2585
  "description": "Subscriptions of the bot",
2586
2586
  "additionalProperties": false
2587
2587
  },
2588
+ "actions": {
2589
+ "type": "object",
2590
+ "additionalProperties": {
2591
+ "type": "object",
2592
+ "properties": {
2593
+ "title": {
2594
+ "type": "string",
2595
+ "maxLength": 64,
2596
+ "description": "Title of the action"
2597
+ },
2598
+ "description": {
2599
+ "type": "string",
2600
+ "maxLength": 256,
2601
+ "description": "Description of the action"
2602
+ },
2603
+ "input": {
2604
+ "type": "object",
2605
+ "properties": {
2606
+ "schema": {
2607
+ "type": "object",
2608
+ "additionalProperties": true
2609
+ }
2610
+ },
2611
+ "required": [
2612
+ "schema"
2613
+ ],
2614
+ "additionalProperties": false
2615
+ },
2616
+ "output": {
2617
+ "type": "object",
2618
+ "properties": {
2619
+ "schema": {
2620
+ "type": "object",
2621
+ "additionalProperties": true
2622
+ }
2623
+ },
2624
+ "required": [
2625
+ "schema"
2626
+ ],
2627
+ "additionalProperties": false
2628
+ }
2629
+ },
2630
+ "required": [
2631
+ "input",
2632
+ "output"
2633
+ ],
2634
+ "description": "Action definition",
2635
+ "additionalProperties": false
2636
+ },
2637
+ "description": "Actions definition"
2638
+ },
2588
2639
  "configuration": {
2589
2640
  "type": "object",
2590
2641
  "properties": {
@@ -2899,6 +2950,57 @@ export const state = {
2899
2950
  "additionalProperties": false
2900
2951
  }
2901
2952
  },
2953
+ "actions": {
2954
+ "type": "object",
2955
+ "additionalProperties": {
2956
+ "type": "object",
2957
+ "properties": {
2958
+ "title": {
2959
+ "type": "string",
2960
+ "maxLength": 64,
2961
+ "description": "Title of the action"
2962
+ },
2963
+ "description": {
2964
+ "type": "string",
2965
+ "maxLength": 256,
2966
+ "description": "Description of the action"
2967
+ },
2968
+ "input": {
2969
+ "type": "object",
2970
+ "properties": {
2971
+ "schema": {
2972
+ "type": "object",
2973
+ "additionalProperties": true
2974
+ }
2975
+ },
2976
+ "required": [
2977
+ "schema"
2978
+ ],
2979
+ "additionalProperties": false
2980
+ },
2981
+ "output": {
2982
+ "type": "object",
2983
+ "properties": {
2984
+ "schema": {
2985
+ "type": "object",
2986
+ "additionalProperties": true
2987
+ }
2988
+ },
2989
+ "required": [
2990
+ "schema"
2991
+ ],
2992
+ "additionalProperties": false
2993
+ }
2994
+ },
2995
+ "required": [
2996
+ "input",
2997
+ "output"
2998
+ ],
2999
+ "description": "Action definition",
3000
+ "nullable": true,
3001
+ "additionalProperties": false
3002
+ }
3003
+ },
2902
3004
  "states": {
2903
3005
  "type": "object",
2904
3006
  "additionalProperties": {
@@ -3955,6 +4057,45 @@ export const state = {
3955
4057
  }
3956
4058
  }
3957
4059
  },
4060
+ "getUpcomingInvoice": {
4061
+ "name": "getUpcomingInvoice",
4062
+ "description": "Get upcoming invoice for workspace",
4063
+ "method": "get",
4064
+ "path": "/v1/admin/workspaces/{id}/billing/upcoming-invoice",
4065
+ "disableDefaultParameters": {
4066
+ "x-workspace-id": true
4067
+ },
4068
+ "parameters": {
4069
+ "id": {
4070
+ "type": "string",
4071
+ "description": "Workspace ID",
4072
+ "in": "path"
4073
+ }
4074
+ },
4075
+ "section": "workspace",
4076
+ "response": {
4077
+ "description": "Success",
4078
+ "schema": {
4079
+ "type": "object",
4080
+ "properties": {
4081
+ "id": {
4082
+ "type": "string",
4083
+ "description": "ID of the invoice."
4084
+ },
4085
+ "total": {
4086
+ "type": "number",
4087
+ "description": "Total amount to pay of the invoice."
4088
+ }
4089
+ },
4090
+ "required": [
4091
+ "id",
4092
+ "total"
4093
+ ],
4094
+ "title": "getUpcomingInvoiceResponse",
4095
+ "additionalProperties": false
4096
+ }
4097
+ }
4098
+ },
3958
4099
  "chargeWorkspaceUnpaidInvoices": {
3959
4100
  "name": "chargeWorkspaceUnpaidInvoices",
3960
4101
  "description": "Charge unpaid invoices of a workspace.",
@@ -7852,7 +7993,7 @@ export const state = {
7852
7993
  "title": "Botpress API",
7853
7994
  "description": "API for Botpress Cloud",
7854
7995
  "server": "https://api.botpress.cloud",
7855
- "version": "0.18.4",
7996
+ "version": "0.18.5",
7856
7997
  "prefix": "v1"
7857
7998
  },
7858
7999
  "errors": [
@@ -8080,6 +8221,7 @@ export const state = {
8080
8221
  "getWorkspaceBillingDetailsResponse": true,
8081
8222
  "setWorkspacePaymentMethodResponse": true,
8082
8223
  "listWorkspaceInvoicesResponse": true,
8224
+ "getUpcomingInvoiceResponse": true,
8083
8225
  "chargeWorkspaceUnpaidInvoicesResponse": true,
8084
8226
  "createWorkspaceResponse": true,
8085
8227
  "getPublicWorkspaceResponse": true,
@@ -8528,6 +8670,57 @@ export const state = {
8528
8670
  "description": "Subscriptions of the bot",
8529
8671
  "additionalProperties": false
8530
8672
  },
8673
+ "actions": {
8674
+ "type": "object",
8675
+ "additionalProperties": {
8676
+ "type": "object",
8677
+ "properties": {
8678
+ "title": {
8679
+ "type": "string",
8680
+ "maxLength": 64,
8681
+ "description": "Title of the action"
8682
+ },
8683
+ "description": {
8684
+ "type": "string",
8685
+ "maxLength": 256,
8686
+ "description": "Description of the action"
8687
+ },
8688
+ "input": {
8689
+ "type": "object",
8690
+ "properties": {
8691
+ "schema": {
8692
+ "type": "object",
8693
+ "additionalProperties": true
8694
+ }
8695
+ },
8696
+ "required": [
8697
+ "schema"
8698
+ ],
8699
+ "additionalProperties": false
8700
+ },
8701
+ "output": {
8702
+ "type": "object",
8703
+ "properties": {
8704
+ "schema": {
8705
+ "type": "object",
8706
+ "additionalProperties": true
8707
+ }
8708
+ },
8709
+ "required": [
8710
+ "schema"
8711
+ ],
8712
+ "additionalProperties": false
8713
+ }
8714
+ },
8715
+ "required": [
8716
+ "input",
8717
+ "output"
8718
+ ],
8719
+ "description": "Action definition",
8720
+ "additionalProperties": false
8721
+ },
8722
+ "description": "Actions definition"
8723
+ },
8531
8724
  "name": {
8532
8725
  "type": "string",
8533
8726
  "description": "Name of the [Bot](#schema_bot)"
@@ -8593,6 +8786,7 @@ export const state = {
8593
8786
  "events",
8594
8787
  "recurringEvents",
8595
8788
  "subscriptions",
8789
+ "actions",
8596
8790
  "name",
8597
8791
  "dev",
8598
8792
  "alwaysAlive",
@@ -10286,6 +10480,7 @@ export const state = {
10286
10480
  "getWorkspaceBillingDetails",
10287
10481
  "setWorkspacePaymentMethod",
10288
10482
  "listWorkspaceInvoices",
10483
+ "getUpcomingInvoice",
10289
10484
  "chargeWorkspaceUnpaidInvoices",
10290
10485
  "createWorkspace",
10291
10486
  "getPublicWorkspace",