@botpress/api 0.18.3 → 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/dist/index.js +202 -2
- package/dist/src/gen/state.d.ts +173 -0
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +202 -2
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.",
|
|
@@ -5292,6 +5433,10 @@ export const state = {
|
|
|
5292
5433
|
"type": "string",
|
|
5293
5434
|
"nullable": true
|
|
5294
5435
|
},
|
|
5436
|
+
"value": {
|
|
5437
|
+
"type": "string",
|
|
5438
|
+
"nullable": true
|
|
5439
|
+
},
|
|
5295
5440
|
"action": {
|
|
5296
5441
|
"type": "string",
|
|
5297
5442
|
"enum": [
|
|
@@ -5313,7 +5458,8 @@ export const state = {
|
|
|
5313
5458
|
"UPDATE_PAYMENT_METHOD",
|
|
5314
5459
|
"UPDATE_WORKSPACE",
|
|
5315
5460
|
"UPGRADE_WORKSPACE_PLAN",
|
|
5316
|
-
"SET_SPENDING_LIMIT"
|
|
5461
|
+
"SET_SPENDING_LIMIT",
|
|
5462
|
+
"SET_AI_SPENDING_LIMIT"
|
|
5317
5463
|
]
|
|
5318
5464
|
}
|
|
5319
5465
|
},
|
|
@@ -7847,7 +7993,7 @@ export const state = {
|
|
|
7847
7993
|
"title": "Botpress API",
|
|
7848
7994
|
"description": "API for Botpress Cloud",
|
|
7849
7995
|
"server": "https://api.botpress.cloud",
|
|
7850
|
-
"version": "0.18.
|
|
7996
|
+
"version": "0.18.5",
|
|
7851
7997
|
"prefix": "v1"
|
|
7852
7998
|
},
|
|
7853
7999
|
"errors": [
|
|
@@ -8075,6 +8221,7 @@ export const state = {
|
|
|
8075
8221
|
"getWorkspaceBillingDetailsResponse": true,
|
|
8076
8222
|
"setWorkspacePaymentMethodResponse": true,
|
|
8077
8223
|
"listWorkspaceInvoicesResponse": true,
|
|
8224
|
+
"getUpcomingInvoiceResponse": true,
|
|
8078
8225
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
8079
8226
|
"createWorkspaceResponse": true,
|
|
8080
8227
|
"getPublicWorkspaceResponse": true,
|
|
@@ -8523,6 +8670,57 @@ export const state = {
|
|
|
8523
8670
|
"description": "Subscriptions of the bot",
|
|
8524
8671
|
"additionalProperties": false
|
|
8525
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
|
+
},
|
|
8526
8724
|
"name": {
|
|
8527
8725
|
"type": "string",
|
|
8528
8726
|
"description": "Name of the [Bot](#schema_bot)"
|
|
@@ -8588,6 +8786,7 @@ export const state = {
|
|
|
8588
8786
|
"events",
|
|
8589
8787
|
"recurringEvents",
|
|
8590
8788
|
"subscriptions",
|
|
8789
|
+
"actions",
|
|
8591
8790
|
"name",
|
|
8592
8791
|
"dev",
|
|
8593
8792
|
"alwaysAlive",
|
|
@@ -10281,6 +10480,7 @@ export const state = {
|
|
|
10281
10480
|
"getWorkspaceBillingDetails",
|
|
10282
10481
|
"setWorkspacePaymentMethod",
|
|
10283
10482
|
"listWorkspaceInvoices",
|
|
10483
|
+
"getUpcomingInvoice",
|
|
10284
10484
|
"chargeWorkspaceUnpaidInvoices",
|
|
10285
10485
|
"createWorkspace",
|
|
10286
10486
|
"getPublicWorkspace",
|