@botpress/api 0.45.2 → 0.46.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/src/gen/state.ts CHANGED
@@ -2977,6 +2977,21 @@ export const state = {
2977
2977
  "handle",
2978
2978
  "name"
2979
2979
  ]
2980
+ },
2981
+ "meta": {
2982
+ "type": "object",
2983
+ "properties": {
2984
+ "installs": {
2985
+ "type": "number"
2986
+ },
2987
+ "views": {
2988
+ "type": "number"
2989
+ }
2990
+ },
2991
+ "required": [
2992
+ "installs",
2993
+ "views"
2994
+ ]
2980
2995
  }
2981
2996
  },
2982
2997
  "required": [
@@ -2990,7 +3005,8 @@ export const state = {
2990
3005
  "iconUrl",
2991
3006
  "public",
2992
3007
  "verificationStatus",
2993
- "ownerWorkspace"
3008
+ "ownerWorkspace",
3009
+ "meta"
2994
3010
  ]
2995
3011
  }
2996
3012
  },
@@ -3647,6 +3663,22 @@ export const state = {
3647
3663
  "name"
3648
3664
  ],
3649
3665
  "additionalProperties": false
3666
+ },
3667
+ "meta": {
3668
+ "type": "object",
3669
+ "properties": {
3670
+ "installs": {
3671
+ "type": "number"
3672
+ },
3673
+ "views": {
3674
+ "type": "number"
3675
+ }
3676
+ },
3677
+ "required": [
3678
+ "installs",
3679
+ "views"
3680
+ ],
3681
+ "additionalProperties": false
3650
3682
  }
3651
3683
  },
3652
3684
  "required": [
@@ -3674,7 +3706,8 @@ export const state = {
3674
3706
  "public",
3675
3707
  "verificationStatus",
3676
3708
  "secrets",
3677
- "ownerWorkspace"
3709
+ "ownerWorkspace",
3710
+ "meta"
3678
3711
  ],
3679
3712
  "additionalProperties": false
3680
3713
  }
@@ -4325,6 +4358,22 @@ export const state = {
4325
4358
  "name"
4326
4359
  ],
4327
4360
  "additionalProperties": false
4361
+ },
4362
+ "meta": {
4363
+ "type": "object",
4364
+ "properties": {
4365
+ "installs": {
4366
+ "type": "number"
4367
+ },
4368
+ "views": {
4369
+ "type": "number"
4370
+ }
4371
+ },
4372
+ "required": [
4373
+ "installs",
4374
+ "views"
4375
+ ],
4376
+ "additionalProperties": false
4328
4377
  }
4329
4378
  },
4330
4379
  "required": [
@@ -4352,7 +4401,8 @@ export const state = {
4352
4401
  "public",
4353
4402
  "verificationStatus",
4354
4403
  "secrets",
4355
- "ownerWorkspace"
4404
+ "ownerWorkspace",
4405
+ "meta"
4356
4406
  ],
4357
4407
  "additionalProperties": false
4358
4408
  }
@@ -6091,100 +6141,6 @@ export const state = {
6091
6141
  }
6092
6142
  }
6093
6143
  },
6094
- "setWorkspacePaymentMethod": {
6095
- "name": "setWorkspacePaymentMethod",
6096
- "description": "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.",
6097
- "method": "put",
6098
- "path": "/v1/admin/workspaces/{id}/billing/payment-method",
6099
- "disableDefaultParameters": {
6100
- "x-workspace-id": true
6101
- },
6102
- "parameters": {
6103
- "id": {
6104
- "type": "string",
6105
- "description": "Workspace ID",
6106
- "in": "path"
6107
- }
6108
- },
6109
- "section": "workspace",
6110
- "requestBody": {
6111
- "description": "",
6112
- "schema": {
6113
- "type": "object",
6114
- "properties": {
6115
- "stripePaymentMethodId": {
6116
- "type": "string",
6117
- "description": "ID of the Stripe PaymentMethod to attach to the workspace."
6118
- }
6119
- },
6120
- "required": [
6121
- "stripePaymentMethodId"
6122
- ],
6123
- "title": "setWorkspacePaymentMethodBody",
6124
- "additionalProperties": false
6125
- }
6126
- },
6127
- "response": {
6128
- "description": "Success",
6129
- "schema": {
6130
- "type": "object",
6131
- "properties": {
6132
- "stripePaymentMethodId": {
6133
- "type": "string"
6134
- },
6135
- "paymentMethod": {
6136
- "type": "object",
6137
- "properties": {
6138
- "type": {
6139
- "type": "string"
6140
- },
6141
- "lastDigits": {
6142
- "type": "string"
6143
- }
6144
- },
6145
- "required": [
6146
- "type",
6147
- "lastDigits"
6148
- ],
6149
- "nullable": true,
6150
- "additionalProperties": false
6151
- },
6152
- "status": {
6153
- "type": "string",
6154
- "enum": [
6155
- "succeeded",
6156
- "processing",
6157
- "canceled",
6158
- "requires_confirmation",
6159
- "requires_action",
6160
- "requires_payment_method"
6161
- ]
6162
- },
6163
- "nextAction": {
6164
- "type": "object",
6165
- "properties": {
6166
- "redirectToUrl": {
6167
- "type": "string",
6168
- "format": "uri"
6169
- }
6170
- },
6171
- "required": [
6172
- "redirectToUrl"
6173
- ],
6174
- "description": "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.",
6175
- "additionalProperties": false
6176
- }
6177
- },
6178
- "required": [
6179
- "stripePaymentMethodId",
6180
- "paymentMethod",
6181
- "status"
6182
- ],
6183
- "title": "setWorkspacePaymentMethodResponse",
6184
- "additionalProperties": false
6185
- }
6186
- }
6187
- },
6188
6144
  "listWorkspaceInvoices": {
6189
6145
  "name": "listWorkspaceInvoices",
6190
6146
  "description": "List invoices billed to workspace",
@@ -12341,7 +12297,7 @@ export const state = {
12341
12297
  "title": "Botpress API",
12342
12298
  "description": "API for Botpress Cloud",
12343
12299
  "server": "https://api.botpress.cloud",
12344
- "version": "0.45.2",
12300
+ "version": "0.46.0",
12345
12301
  "prefix": "v1"
12346
12302
  },
12347
12303
  "errors": [
@@ -12501,7 +12457,6 @@ export const state = {
12501
12457
  "transferBotBody": true,
12502
12458
  "createBotVersionBody": true,
12503
12459
  "deployBotVersionBody": true,
12504
- "setWorkspacePaymentMethodBody": true,
12505
12460
  "chargeWorkspaceUnpaidInvoicesBody": true,
12506
12461
  "createWorkspaceBody": true,
12507
12462
  "updateWorkspaceBody": true,
@@ -12602,7 +12557,6 @@ export const state = {
12602
12557
  "getBotVersionResponse": true,
12603
12558
  "createBotVersionResponse": true,
12604
12559
  "deployBotVersionResponse": true,
12605
- "setWorkspacePaymentMethodResponse": true,
12606
12560
  "listWorkspaceInvoicesResponse": true,
12607
12561
  "getUpcomingInvoiceResponse": true,
12608
12562
  "chargeWorkspaceUnpaidInvoicesResponse": true,
@@ -15710,7 +15664,6 @@ export const state = {
15710
15664
  "description": "",
15711
15665
  "name": "workspace",
15712
15666
  "operations": [
15713
- "setWorkspacePaymentMethod",
15714
15667
  "listWorkspaceInvoices",
15715
15668
  "getUpcomingInvoice",
15716
15669
  "chargeWorkspaceUnpaidInvoices",