@botpress/api 0.32.3 → 0.33.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 +222 -2
- package/dist/src/gen/state.d.ts +198 -1
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +223 -3
package/src/gen/state.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/* prettier-ignore */
|
|
4
4
|
import * as opapi from '@bpinternal/opapi'
|
|
5
|
-
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'file' | 'state' | 'hub' | 'action' | 'task' | 'bot' | 'integration' | 'interface' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>
|
|
5
|
+
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'file' | 'state' | 'hub' | 'action' | 'task' | 'bot' | 'integration' | 'interface' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>
|
|
6
6
|
export const state = {
|
|
7
7
|
"operations": {
|
|
8
8
|
"createConversation": {
|
|
@@ -5045,6 +5045,193 @@ export const state = {
|
|
|
5045
5045
|
}
|
|
5046
5046
|
}
|
|
5047
5047
|
},
|
|
5048
|
+
"listBotVersions": {
|
|
5049
|
+
"name": "listBotVersions",
|
|
5050
|
+
"description": "List Versions for a Bot",
|
|
5051
|
+
"method": "get",
|
|
5052
|
+
"path": "/v1/admin/bots/{id}/versions",
|
|
5053
|
+
"section": "bot",
|
|
5054
|
+
"parameters": {
|
|
5055
|
+
"id": {
|
|
5056
|
+
"type": "string",
|
|
5057
|
+
"description": "Bot ID",
|
|
5058
|
+
"in": "path"
|
|
5059
|
+
}
|
|
5060
|
+
},
|
|
5061
|
+
"response": {
|
|
5062
|
+
"description": "Success",
|
|
5063
|
+
"schema": {
|
|
5064
|
+
"type": "object",
|
|
5065
|
+
"properties": {
|
|
5066
|
+
"versions": {
|
|
5067
|
+
"type": "array",
|
|
5068
|
+
"items": {
|
|
5069
|
+
"type": "object",
|
|
5070
|
+
"properties": {
|
|
5071
|
+
"id": {
|
|
5072
|
+
"type": "string"
|
|
5073
|
+
},
|
|
5074
|
+
"name": {
|
|
5075
|
+
"type": "string"
|
|
5076
|
+
},
|
|
5077
|
+
"description": {
|
|
5078
|
+
"type": "string"
|
|
5079
|
+
}
|
|
5080
|
+
},
|
|
5081
|
+
"required": [
|
|
5082
|
+
"id",
|
|
5083
|
+
"name"
|
|
5084
|
+
]
|
|
5085
|
+
}
|
|
5086
|
+
}
|
|
5087
|
+
},
|
|
5088
|
+
"required": [
|
|
5089
|
+
"versions"
|
|
5090
|
+
],
|
|
5091
|
+
"title": "listBotVersionsResponse",
|
|
5092
|
+
"additionalProperties": false
|
|
5093
|
+
}
|
|
5094
|
+
}
|
|
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
|
+
},
|
|
5048
5235
|
"setWorkspacePaymentMethod": {
|
|
5049
5236
|
"name": "setWorkspacePaymentMethod",
|
|
5050
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.",
|
|
@@ -10705,7 +10892,7 @@ export const state = {
|
|
|
10705
10892
|
"title": "Botpress API",
|
|
10706
10893
|
"description": "API for Botpress Cloud",
|
|
10707
10894
|
"server": "https://api.botpress.cloud",
|
|
10708
|
-
"version": "0.
|
|
10895
|
+
"version": "0.33.0",
|
|
10709
10896
|
"prefix": "v1"
|
|
10710
10897
|
},
|
|
10711
10898
|
"errors": [
|
|
@@ -10859,6 +11046,8 @@ export const state = {
|
|
|
10859
11046
|
"createBotBody": true,
|
|
10860
11047
|
"updateBotBody": true,
|
|
10861
11048
|
"transferBotBody": true,
|
|
11049
|
+
"createBotVersionBody": true,
|
|
11050
|
+
"deployBotVersionBody": true,
|
|
10862
11051
|
"setWorkspacePaymentMethodBody": true,
|
|
10863
11052
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
10864
11053
|
"createWorkspaceBody": true,
|
|
@@ -10948,6 +11137,10 @@ export const state = {
|
|
|
10948
11137
|
"listBotIssuesResponse": true,
|
|
10949
11138
|
"deleteBotIssueResponse": true,
|
|
10950
11139
|
"listBotIssueEventsResponse": true,
|
|
11140
|
+
"listBotVersionsResponse": true,
|
|
11141
|
+
"getBotVersionResponse": true,
|
|
11142
|
+
"createBotVersionResponse": true,
|
|
11143
|
+
"deployBotVersionResponse": true,
|
|
10951
11144
|
"setWorkspacePaymentMethodResponse": true,
|
|
10952
11145
|
"listWorkspaceInvoicesResponse": true,
|
|
10953
11146
|
"getUpcomingInvoiceResponse": true,
|
|
@@ -11025,6 +11218,7 @@ export const state = {
|
|
|
11025
11218
|
"Issue": true,
|
|
11026
11219
|
"IssueEvent": true,
|
|
11027
11220
|
"Activity": true,
|
|
11221
|
+
"Version": true,
|
|
11028
11222
|
"User": true,
|
|
11029
11223
|
"Conversation": true,
|
|
11030
11224
|
"Event": true,
|
|
@@ -12598,6 +12792,28 @@ export const state = {
|
|
|
12598
12792
|
"additionalProperties": false
|
|
12599
12793
|
}
|
|
12600
12794
|
},
|
|
12795
|
+
"Version": {
|
|
12796
|
+
"section": "bot",
|
|
12797
|
+
"schema": {
|
|
12798
|
+
"type": "object",
|
|
12799
|
+
"properties": {
|
|
12800
|
+
"id": {
|
|
12801
|
+
"type": "string"
|
|
12802
|
+
},
|
|
12803
|
+
"name": {
|
|
12804
|
+
"type": "string"
|
|
12805
|
+
},
|
|
12806
|
+
"description": {
|
|
12807
|
+
"type": "string"
|
|
12808
|
+
}
|
|
12809
|
+
},
|
|
12810
|
+
"required": [
|
|
12811
|
+
"id",
|
|
12812
|
+
"name"
|
|
12813
|
+
],
|
|
12814
|
+
"additionalProperties": false
|
|
12815
|
+
}
|
|
12816
|
+
},
|
|
12601
12817
|
"User": {
|
|
12602
12818
|
"section": "user",
|
|
12603
12819
|
"schema": {
|
|
@@ -13617,7 +13833,11 @@ export const state = {
|
|
|
13617
13833
|
"getBotIssue",
|
|
13618
13834
|
"listBotIssues",
|
|
13619
13835
|
"deleteBotIssue",
|
|
13620
|
-
"listBotIssueEvents"
|
|
13836
|
+
"listBotIssueEvents",
|
|
13837
|
+
"listBotVersions",
|
|
13838
|
+
"getBotVersion",
|
|
13839
|
+
"createBotVersion",
|
|
13840
|
+
"deployBotVersion"
|
|
13621
13841
|
],
|
|
13622
13842
|
"schema": "Bot"
|
|
13623
13843
|
},
|