@botpress/api 0.32.2 → 0.32.4
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 +80 -2
- package/dist/src/gen/state.d.ts +69 -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 +81 -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,54 @@ 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
|
+
},
|
|
5048
5096
|
"setWorkspacePaymentMethod": {
|
|
5049
5097
|
"name": "setWorkspacePaymentMethod",
|
|
5050
5098
|
"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.",
|
|
@@ -9178,6 +9226,10 @@ export const state = {
|
|
|
9178
9226
|
"type": "string",
|
|
9179
9227
|
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
9180
9228
|
},
|
|
9229
|
+
"url": {
|
|
9230
|
+
"type": "string",
|
|
9231
|
+
"description": "URL to retrieve the file content. This URL will be ready to use once the file is uploaded.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe."
|
|
9232
|
+
},
|
|
9181
9233
|
"size": {
|
|
9182
9234
|
"type": "number",
|
|
9183
9235
|
"description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
|
|
@@ -9243,6 +9295,7 @@ export const state = {
|
|
|
9243
9295
|
"id",
|
|
9244
9296
|
"botId",
|
|
9245
9297
|
"key",
|
|
9298
|
+
"url",
|
|
9246
9299
|
"size",
|
|
9247
9300
|
"contentType",
|
|
9248
9301
|
"tags",
|
|
@@ -10700,7 +10753,7 @@ export const state = {
|
|
|
10700
10753
|
"title": "Botpress API",
|
|
10701
10754
|
"description": "API for Botpress Cloud",
|
|
10702
10755
|
"server": "https://api.botpress.cloud",
|
|
10703
|
-
"version": "0.32.
|
|
10756
|
+
"version": "0.32.4",
|
|
10704
10757
|
"prefix": "v1"
|
|
10705
10758
|
},
|
|
10706
10759
|
"errors": [
|
|
@@ -10943,6 +10996,7 @@ export const state = {
|
|
|
10943
10996
|
"listBotIssuesResponse": true,
|
|
10944
10997
|
"deleteBotIssueResponse": true,
|
|
10945
10998
|
"listBotIssueEventsResponse": true,
|
|
10999
|
+
"listBotVersionsResponse": true,
|
|
10946
11000
|
"setWorkspacePaymentMethodResponse": true,
|
|
10947
11001
|
"listWorkspaceInvoicesResponse": true,
|
|
10948
11002
|
"getUpcomingInvoiceResponse": true,
|
|
@@ -11020,6 +11074,7 @@ export const state = {
|
|
|
11020
11074
|
"Issue": true,
|
|
11021
11075
|
"IssueEvent": true,
|
|
11022
11076
|
"Activity": true,
|
|
11077
|
+
"Version": true,
|
|
11023
11078
|
"User": true,
|
|
11024
11079
|
"Conversation": true,
|
|
11025
11080
|
"Event": true,
|
|
@@ -12593,6 +12648,28 @@ export const state = {
|
|
|
12593
12648
|
"additionalProperties": false
|
|
12594
12649
|
}
|
|
12595
12650
|
},
|
|
12651
|
+
"Version": {
|
|
12652
|
+
"section": "bot",
|
|
12653
|
+
"schema": {
|
|
12654
|
+
"type": "object",
|
|
12655
|
+
"properties": {
|
|
12656
|
+
"id": {
|
|
12657
|
+
"type": "string"
|
|
12658
|
+
},
|
|
12659
|
+
"name": {
|
|
12660
|
+
"type": "string"
|
|
12661
|
+
},
|
|
12662
|
+
"description": {
|
|
12663
|
+
"type": "string"
|
|
12664
|
+
}
|
|
12665
|
+
},
|
|
12666
|
+
"required": [
|
|
12667
|
+
"id",
|
|
12668
|
+
"name"
|
|
12669
|
+
],
|
|
12670
|
+
"additionalProperties": false
|
|
12671
|
+
}
|
|
12672
|
+
},
|
|
12596
12673
|
"User": {
|
|
12597
12674
|
"section": "user",
|
|
12598
12675
|
"schema": {
|
|
@@ -13612,7 +13689,8 @@ export const state = {
|
|
|
13612
13689
|
"getBotIssue",
|
|
13613
13690
|
"listBotIssues",
|
|
13614
13691
|
"deleteBotIssue",
|
|
13615
|
-
"listBotIssueEvents"
|
|
13692
|
+
"listBotIssueEvents",
|
|
13693
|
+
"listBotVersions"
|
|
13616
13694
|
],
|
|
13617
13695
|
"schema": "Bot"
|
|
13618
13696
|
},
|