@botpress/api 0.32.4 → 0.33.1
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 +155 -8
- package/dist/src/gen/state.d.ts +135 -2
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +155 -8
package/src/gen/state.ts
CHANGED
|
@@ -5093,6 +5093,145 @@ export const state = {
|
|
|
5093
5093
|
}
|
|
5094
5094
|
}
|
|
5095
5095
|
},
|
|
5096
|
+
"getBotVersion": {
|
|
5097
|
+
"name": "getBotVersion",
|
|
5098
|
+
"description": "Get a specific version of a bot",
|
|
5099
|
+
"method": "get",
|
|
5100
|
+
"path": "/v1/admin/bots/{id}/versions/{versionId}",
|
|
5101
|
+
"section": "bot",
|
|
5102
|
+
"parameters": {
|
|
5103
|
+
"id": {
|
|
5104
|
+
"type": "string",
|
|
5105
|
+
"description": "Bot ID",
|
|
5106
|
+
"in": "path"
|
|
5107
|
+
},
|
|
5108
|
+
"versionId": {
|
|
5109
|
+
"type": "string",
|
|
5110
|
+
"description": "Version ID",
|
|
5111
|
+
"in": "path"
|
|
5112
|
+
}
|
|
5113
|
+
},
|
|
5114
|
+
"response": {
|
|
5115
|
+
"description": "Success",
|
|
5116
|
+
"schema": {
|
|
5117
|
+
"type": "object",
|
|
5118
|
+
"properties": {
|
|
5119
|
+
"url": {
|
|
5120
|
+
"type": "string",
|
|
5121
|
+
"format": "uri"
|
|
5122
|
+
}
|
|
5123
|
+
},
|
|
5124
|
+
"required": [
|
|
5125
|
+
"url"
|
|
5126
|
+
],
|
|
5127
|
+
"title": "getBotVersionResponse",
|
|
5128
|
+
"additionalProperties": false
|
|
5129
|
+
}
|
|
5130
|
+
}
|
|
5131
|
+
},
|
|
5132
|
+
"createBotVersion": {
|
|
5133
|
+
"name": "createBotVersion",
|
|
5134
|
+
"description": "Create a new version for a bot",
|
|
5135
|
+
"method": "post",
|
|
5136
|
+
"path": "/v1/admin/bots/{id}/versions",
|
|
5137
|
+
"section": "bot",
|
|
5138
|
+
"parameters": {
|
|
5139
|
+
"id": {
|
|
5140
|
+
"type": "string",
|
|
5141
|
+
"description": "Bot ID",
|
|
5142
|
+
"in": "path"
|
|
5143
|
+
}
|
|
5144
|
+
},
|
|
5145
|
+
"requestBody": {
|
|
5146
|
+
"description": "Version metadata",
|
|
5147
|
+
"schema": {
|
|
5148
|
+
"type": "object",
|
|
5149
|
+
"properties": {
|
|
5150
|
+
"name": {
|
|
5151
|
+
"type": "string"
|
|
5152
|
+
},
|
|
5153
|
+
"description": {
|
|
5154
|
+
"type": "string"
|
|
5155
|
+
}
|
|
5156
|
+
},
|
|
5157
|
+
"required": [
|
|
5158
|
+
"name"
|
|
5159
|
+
],
|
|
5160
|
+
"title": "createBotVersionBody",
|
|
5161
|
+
"additionalProperties": false
|
|
5162
|
+
}
|
|
5163
|
+
},
|
|
5164
|
+
"response": {
|
|
5165
|
+
"description": "Success",
|
|
5166
|
+
"schema": {
|
|
5167
|
+
"type": "object",
|
|
5168
|
+
"properties": {
|
|
5169
|
+
"version": {
|
|
5170
|
+
"type": "object",
|
|
5171
|
+
"properties": {
|
|
5172
|
+
"id": {
|
|
5173
|
+
"type": "string"
|
|
5174
|
+
},
|
|
5175
|
+
"name": {
|
|
5176
|
+
"type": "string"
|
|
5177
|
+
},
|
|
5178
|
+
"description": {
|
|
5179
|
+
"type": "string"
|
|
5180
|
+
}
|
|
5181
|
+
},
|
|
5182
|
+
"required": [
|
|
5183
|
+
"id",
|
|
5184
|
+
"name"
|
|
5185
|
+
],
|
|
5186
|
+
"additionalProperties": false
|
|
5187
|
+
}
|
|
5188
|
+
},
|
|
5189
|
+
"required": [
|
|
5190
|
+
"version"
|
|
5191
|
+
],
|
|
5192
|
+
"title": "createBotVersionResponse",
|
|
5193
|
+
"additionalProperties": false
|
|
5194
|
+
}
|
|
5195
|
+
}
|
|
5196
|
+
},
|
|
5197
|
+
"deployBotVersion": {
|
|
5198
|
+
"name": "deployBotVersion",
|
|
5199
|
+
"description": "Deploys a version for a bot",
|
|
5200
|
+
"method": "post",
|
|
5201
|
+
"path": "/v1/admin/bots/{id}/versions/deploy",
|
|
5202
|
+
"section": "bot",
|
|
5203
|
+
"parameters": {
|
|
5204
|
+
"id": {
|
|
5205
|
+
"type": "string",
|
|
5206
|
+
"description": "Bot ID",
|
|
5207
|
+
"in": "path"
|
|
5208
|
+
}
|
|
5209
|
+
},
|
|
5210
|
+
"requestBody": {
|
|
5211
|
+
"description": "Version metadata",
|
|
5212
|
+
"schema": {
|
|
5213
|
+
"type": "object",
|
|
5214
|
+
"properties": {
|
|
5215
|
+
"versionId": {
|
|
5216
|
+
"type": "string"
|
|
5217
|
+
}
|
|
5218
|
+
},
|
|
5219
|
+
"required": [
|
|
5220
|
+
"versionId"
|
|
5221
|
+
],
|
|
5222
|
+
"title": "deployBotVersionBody",
|
|
5223
|
+
"additionalProperties": false
|
|
5224
|
+
}
|
|
5225
|
+
},
|
|
5226
|
+
"response": {
|
|
5227
|
+
"description": "Success",
|
|
5228
|
+
"schema": {
|
|
5229
|
+
"type": "object",
|
|
5230
|
+
"title": "deployBotVersionResponse",
|
|
5231
|
+
"additionalProperties": false
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
},
|
|
5096
5235
|
"setWorkspacePaymentMethod": {
|
|
5097
5236
|
"name": "setWorkspacePaymentMethod",
|
|
5098
5237
|
"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.",
|
|
@@ -10753,7 +10892,7 @@ export const state = {
|
|
|
10753
10892
|
"title": "Botpress API",
|
|
10754
10893
|
"description": "API for Botpress Cloud",
|
|
10755
10894
|
"server": "https://api.botpress.cloud",
|
|
10756
|
-
"version": "0.
|
|
10895
|
+
"version": "0.33.1",
|
|
10757
10896
|
"prefix": "v1"
|
|
10758
10897
|
},
|
|
10759
10898
|
"errors": [
|
|
@@ -10907,6 +11046,8 @@ export const state = {
|
|
|
10907
11046
|
"createBotBody": true,
|
|
10908
11047
|
"updateBotBody": true,
|
|
10909
11048
|
"transferBotBody": true,
|
|
11049
|
+
"createBotVersionBody": true,
|
|
11050
|
+
"deployBotVersionBody": true,
|
|
10910
11051
|
"setWorkspacePaymentMethodBody": true,
|
|
10911
11052
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
10912
11053
|
"createWorkspaceBody": true,
|
|
@@ -10997,6 +11138,9 @@ export const state = {
|
|
|
10997
11138
|
"deleteBotIssueResponse": true,
|
|
10998
11139
|
"listBotIssueEventsResponse": true,
|
|
10999
11140
|
"listBotVersionsResponse": true,
|
|
11141
|
+
"getBotVersionResponse": true,
|
|
11142
|
+
"createBotVersionResponse": true,
|
|
11143
|
+
"deployBotVersionResponse": true,
|
|
11000
11144
|
"setWorkspacePaymentMethodResponse": true,
|
|
11001
11145
|
"listWorkspaceInvoicesResponse": true,
|
|
11002
11146
|
"getUpcomingInvoiceResponse": true,
|
|
@@ -13186,7 +13330,7 @@ export const state = {
|
|
|
13186
13330
|
"type": "string",
|
|
13187
13331
|
"enum": [
|
|
13188
13332
|
"ai",
|
|
13189
|
-
"
|
|
13333
|
+
"workflow"
|
|
13190
13334
|
]
|
|
13191
13335
|
},
|
|
13192
13336
|
"dependencies": {
|
|
@@ -13216,9 +13360,9 @@ export const state = {
|
|
|
13216
13360
|
],
|
|
13217
13361
|
"description": "Model to use when action is \"ai\""
|
|
13218
13362
|
},
|
|
13219
|
-
"
|
|
13363
|
+
"workflowId": {
|
|
13220
13364
|
"type": "string",
|
|
13221
|
-
"description": "
|
|
13365
|
+
"description": "ID of Workflow to execute when action is \"workflow\""
|
|
13222
13366
|
},
|
|
13223
13367
|
"enabled": {
|
|
13224
13368
|
"type": "boolean"
|
|
@@ -13352,7 +13496,7 @@ export const state = {
|
|
|
13352
13496
|
"type": "string",
|
|
13353
13497
|
"enum": [
|
|
13354
13498
|
"ai",
|
|
13355
|
-
"
|
|
13499
|
+
"workflow"
|
|
13356
13500
|
]
|
|
13357
13501
|
},
|
|
13358
13502
|
"dependencies": {
|
|
@@ -13382,9 +13526,9 @@ export const state = {
|
|
|
13382
13526
|
],
|
|
13383
13527
|
"description": "Model to use when action is \"ai\""
|
|
13384
13528
|
},
|
|
13385
|
-
"
|
|
13529
|
+
"workflowId": {
|
|
13386
13530
|
"type": "string",
|
|
13387
|
-
"description": "
|
|
13531
|
+
"description": "ID of Workflow to execute when action is \"workflow\""
|
|
13388
13532
|
},
|
|
13389
13533
|
"enabled": {
|
|
13390
13534
|
"type": "boolean"
|
|
@@ -13690,7 +13834,10 @@ export const state = {
|
|
|
13690
13834
|
"listBotIssues",
|
|
13691
13835
|
"deleteBotIssue",
|
|
13692
13836
|
"listBotIssueEvents",
|
|
13693
|
-
"listBotVersions"
|
|
13837
|
+
"listBotVersions",
|
|
13838
|
+
"getBotVersion",
|
|
13839
|
+
"createBotVersion",
|
|
13840
|
+
"deployBotVersion"
|
|
13694
13841
|
],
|
|
13695
13842
|
"schema": "Bot"
|
|
13696
13843
|
},
|