@botpress/api 0.45.3 → 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/dist/index.js +1 -98
- package/dist/src/gen/state.d.ts +0 -78
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +1 -98
package/src/gen/state.ts
CHANGED
|
@@ -6141,100 +6141,6 @@ export const state = {
|
|
|
6141
6141
|
}
|
|
6142
6142
|
}
|
|
6143
6143
|
},
|
|
6144
|
-
"setWorkspacePaymentMethod": {
|
|
6145
|
-
"name": "setWorkspacePaymentMethod",
|
|
6146
|
-
"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.",
|
|
6147
|
-
"method": "put",
|
|
6148
|
-
"path": "/v1/admin/workspaces/{id}/billing/payment-method",
|
|
6149
|
-
"disableDefaultParameters": {
|
|
6150
|
-
"x-workspace-id": true
|
|
6151
|
-
},
|
|
6152
|
-
"parameters": {
|
|
6153
|
-
"id": {
|
|
6154
|
-
"type": "string",
|
|
6155
|
-
"description": "Workspace ID",
|
|
6156
|
-
"in": "path"
|
|
6157
|
-
}
|
|
6158
|
-
},
|
|
6159
|
-
"section": "workspace",
|
|
6160
|
-
"requestBody": {
|
|
6161
|
-
"description": "",
|
|
6162
|
-
"schema": {
|
|
6163
|
-
"type": "object",
|
|
6164
|
-
"properties": {
|
|
6165
|
-
"stripePaymentMethodId": {
|
|
6166
|
-
"type": "string",
|
|
6167
|
-
"description": "ID of the Stripe PaymentMethod to attach to the workspace."
|
|
6168
|
-
}
|
|
6169
|
-
},
|
|
6170
|
-
"required": [
|
|
6171
|
-
"stripePaymentMethodId"
|
|
6172
|
-
],
|
|
6173
|
-
"title": "setWorkspacePaymentMethodBody",
|
|
6174
|
-
"additionalProperties": false
|
|
6175
|
-
}
|
|
6176
|
-
},
|
|
6177
|
-
"response": {
|
|
6178
|
-
"description": "Success",
|
|
6179
|
-
"schema": {
|
|
6180
|
-
"type": "object",
|
|
6181
|
-
"properties": {
|
|
6182
|
-
"stripePaymentMethodId": {
|
|
6183
|
-
"type": "string"
|
|
6184
|
-
},
|
|
6185
|
-
"paymentMethod": {
|
|
6186
|
-
"type": "object",
|
|
6187
|
-
"properties": {
|
|
6188
|
-
"type": {
|
|
6189
|
-
"type": "string"
|
|
6190
|
-
},
|
|
6191
|
-
"lastDigits": {
|
|
6192
|
-
"type": "string"
|
|
6193
|
-
}
|
|
6194
|
-
},
|
|
6195
|
-
"required": [
|
|
6196
|
-
"type",
|
|
6197
|
-
"lastDigits"
|
|
6198
|
-
],
|
|
6199
|
-
"nullable": true,
|
|
6200
|
-
"additionalProperties": false
|
|
6201
|
-
},
|
|
6202
|
-
"status": {
|
|
6203
|
-
"type": "string",
|
|
6204
|
-
"enum": [
|
|
6205
|
-
"succeeded",
|
|
6206
|
-
"processing",
|
|
6207
|
-
"canceled",
|
|
6208
|
-
"requires_confirmation",
|
|
6209
|
-
"requires_action",
|
|
6210
|
-
"requires_payment_method"
|
|
6211
|
-
]
|
|
6212
|
-
},
|
|
6213
|
-
"nextAction": {
|
|
6214
|
-
"type": "object",
|
|
6215
|
-
"properties": {
|
|
6216
|
-
"redirectToUrl": {
|
|
6217
|
-
"type": "string",
|
|
6218
|
-
"format": "uri"
|
|
6219
|
-
}
|
|
6220
|
-
},
|
|
6221
|
-
"required": [
|
|
6222
|
-
"redirectToUrl"
|
|
6223
|
-
],
|
|
6224
|
-
"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.",
|
|
6225
|
-
"additionalProperties": false
|
|
6226
|
-
}
|
|
6227
|
-
},
|
|
6228
|
-
"required": [
|
|
6229
|
-
"stripePaymentMethodId",
|
|
6230
|
-
"paymentMethod",
|
|
6231
|
-
"status"
|
|
6232
|
-
],
|
|
6233
|
-
"title": "setWorkspacePaymentMethodResponse",
|
|
6234
|
-
"additionalProperties": false
|
|
6235
|
-
}
|
|
6236
|
-
}
|
|
6237
|
-
},
|
|
6238
6144
|
"listWorkspaceInvoices": {
|
|
6239
6145
|
"name": "listWorkspaceInvoices",
|
|
6240
6146
|
"description": "List invoices billed to workspace",
|
|
@@ -12391,7 +12297,7 @@ export const state = {
|
|
|
12391
12297
|
"title": "Botpress API",
|
|
12392
12298
|
"description": "API for Botpress Cloud",
|
|
12393
12299
|
"server": "https://api.botpress.cloud",
|
|
12394
|
-
"version": "0.
|
|
12300
|
+
"version": "0.46.0",
|
|
12395
12301
|
"prefix": "v1"
|
|
12396
12302
|
},
|
|
12397
12303
|
"errors": [
|
|
@@ -12551,7 +12457,6 @@ export const state = {
|
|
|
12551
12457
|
"transferBotBody": true,
|
|
12552
12458
|
"createBotVersionBody": true,
|
|
12553
12459
|
"deployBotVersionBody": true,
|
|
12554
|
-
"setWorkspacePaymentMethodBody": true,
|
|
12555
12460
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
12556
12461
|
"createWorkspaceBody": true,
|
|
12557
12462
|
"updateWorkspaceBody": true,
|
|
@@ -12652,7 +12557,6 @@ export const state = {
|
|
|
12652
12557
|
"getBotVersionResponse": true,
|
|
12653
12558
|
"createBotVersionResponse": true,
|
|
12654
12559
|
"deployBotVersionResponse": true,
|
|
12655
|
-
"setWorkspacePaymentMethodResponse": true,
|
|
12656
12560
|
"listWorkspaceInvoicesResponse": true,
|
|
12657
12561
|
"getUpcomingInvoiceResponse": true,
|
|
12658
12562
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -15760,7 +15664,6 @@ export const state = {
|
|
|
15760
15664
|
"description": "",
|
|
15761
15665
|
"name": "workspace",
|
|
15762
15666
|
"operations": [
|
|
15763
|
-
"setWorkspacePaymentMethod",
|
|
15764
15667
|
"listWorkspaceInvoices",
|
|
15765
15668
|
"getUpcomingInvoice",
|
|
15766
15669
|
"chargeWorkspaceUnpaidInvoices",
|