@botpress/api 1.31.0 → 1.32.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/.turbo/turbo-openapi.log +5 -5
- package/dist/index.js +247 -15
- package/dist/src/gen/admin/state.d.ts +93 -0
- package/dist/src/gen/files/state.d.ts +7 -0
- package/dist/src/gen/state.d.ts +100 -0
- package/package.json +1 -1
- package/src/gen/admin/metadata.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +110 -2
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +13 -5
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/runtime/openapi.json +1 -1
- package/src/gen/runtime/state.ts +1 -1
- package/src/gen/state.ts +122 -6
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +1 -1
package/src/gen/runtime/state.ts
CHANGED
package/src/gen/state.ts
CHANGED
|
@@ -9176,6 +9176,109 @@ export const state = {
|
|
|
9176
9176
|
}
|
|
9177
9177
|
}
|
|
9178
9178
|
},
|
|
9179
|
+
"getBotAllowlist": {
|
|
9180
|
+
"name": "getBotAllowlist",
|
|
9181
|
+
"description": "Get the Bot Allowlist",
|
|
9182
|
+
"method": "get",
|
|
9183
|
+
"section": "bot",
|
|
9184
|
+
"path": "/v1/admin/bots/{botId}/allowlist",
|
|
9185
|
+
"parameters": {
|
|
9186
|
+
"botId": {
|
|
9187
|
+
"type": "string",
|
|
9188
|
+
"description": "Bot ID",
|
|
9189
|
+
"in": "path"
|
|
9190
|
+
}
|
|
9191
|
+
},
|
|
9192
|
+
"response": {
|
|
9193
|
+
"description": "Success",
|
|
9194
|
+
"schema": {
|
|
9195
|
+
"type": "object",
|
|
9196
|
+
"properties": {
|
|
9197
|
+
"setting": {
|
|
9198
|
+
"type": "string",
|
|
9199
|
+
"enum": [
|
|
9200
|
+
"ALL_WORKSPACE_USERS",
|
|
9201
|
+
"SELECTED_USERS"
|
|
9202
|
+
],
|
|
9203
|
+
"description": "Allowlist setting of the bot"
|
|
9204
|
+
},
|
|
9205
|
+
"users": {
|
|
9206
|
+
"type": "array",
|
|
9207
|
+
"items": {
|
|
9208
|
+
"type": "object",
|
|
9209
|
+
"properties": {
|
|
9210
|
+
"id": {
|
|
9211
|
+
"type": "string"
|
|
9212
|
+
}
|
|
9213
|
+
},
|
|
9214
|
+
"required": [
|
|
9215
|
+
"id"
|
|
9216
|
+
]
|
|
9217
|
+
}
|
|
9218
|
+
}
|
|
9219
|
+
},
|
|
9220
|
+
"required": [
|
|
9221
|
+
"setting",
|
|
9222
|
+
"users"
|
|
9223
|
+
],
|
|
9224
|
+
"title": "getBotAllowlistResponse",
|
|
9225
|
+
"additionalProperties": false
|
|
9226
|
+
}
|
|
9227
|
+
}
|
|
9228
|
+
},
|
|
9229
|
+
"updateBotAllowlist": {
|
|
9230
|
+
"name": "updateBotAllowlist",
|
|
9231
|
+
"description": "Update the Bot Allowlist",
|
|
9232
|
+
"method": "put",
|
|
9233
|
+
"section": "bot",
|
|
9234
|
+
"path": "/v1/admin/bots/{botId}/allowlist",
|
|
9235
|
+
"parameters": {
|
|
9236
|
+
"botId": {
|
|
9237
|
+
"type": "string",
|
|
9238
|
+
"description": "Bot ID",
|
|
9239
|
+
"in": "path"
|
|
9240
|
+
}
|
|
9241
|
+
},
|
|
9242
|
+
"requestBody": {
|
|
9243
|
+
"description": "Allowlist body",
|
|
9244
|
+
"schema": {
|
|
9245
|
+
"type": "object",
|
|
9246
|
+
"properties": {
|
|
9247
|
+
"setting": {
|
|
9248
|
+
"type": "string",
|
|
9249
|
+
"enum": [
|
|
9250
|
+
"ALL_WORKSPACE_USERS",
|
|
9251
|
+
"SELECTED_USERS"
|
|
9252
|
+
],
|
|
9253
|
+
"description": "Allowlist setting of the bot"
|
|
9254
|
+
},
|
|
9255
|
+
"modifiedUsers": {
|
|
9256
|
+
"type": "array",
|
|
9257
|
+
"items": {
|
|
9258
|
+
"type": "object",
|
|
9259
|
+
"additionalProperties": {
|
|
9260
|
+
"type": "boolean",
|
|
9261
|
+
"description": "If `true`, the user should be added to the allowlist. If `false`, the user should be removed from the allowlist. This performs a partial update, so any existing users not included here will be kept in the allowlist"
|
|
9262
|
+
}
|
|
9263
|
+
}
|
|
9264
|
+
}
|
|
9265
|
+
},
|
|
9266
|
+
"required": [
|
|
9267
|
+
"modifiedUsers"
|
|
9268
|
+
],
|
|
9269
|
+
"title": "updateBotAllowlistBody",
|
|
9270
|
+
"additionalProperties": false
|
|
9271
|
+
}
|
|
9272
|
+
},
|
|
9273
|
+
"response": {
|
|
9274
|
+
"description": "Success",
|
|
9275
|
+
"schema": {
|
|
9276
|
+
"type": "object",
|
|
9277
|
+
"title": "updateBotAllowlistResponse",
|
|
9278
|
+
"additionalProperties": false
|
|
9279
|
+
}
|
|
9280
|
+
}
|
|
9281
|
+
},
|
|
9179
9282
|
"listWorkspaceInvoices": {
|
|
9180
9283
|
"name": "listWorkspaceInvoices",
|
|
9181
9284
|
"description": "List invoices billed to workspace",
|
|
@@ -16495,9 +16598,10 @@ export const state = {
|
|
|
16495
16598
|
"stack": {
|
|
16496
16599
|
"type": "string",
|
|
16497
16600
|
"enum": [
|
|
16601
|
+
"legacy",
|
|
16498
16602
|
"realtime-v1"
|
|
16499
16603
|
],
|
|
16500
|
-
"description": "
|
|
16604
|
+
"description": "If not set, the default indexing stack will be used."
|
|
16501
16605
|
},
|
|
16502
16606
|
"vision": {
|
|
16503
16607
|
"type": "object",
|
|
@@ -17511,6 +17615,11 @@ export const state = {
|
|
|
17511
17615
|
"in": "query",
|
|
17512
17616
|
"type": "boolean",
|
|
17513
17617
|
"description": "Prepend a breadcrumb to each passage, containing the title and subtitle(s) the passage belongs to in the file. This option is ignored when the `consolidate` option is set to `true`."
|
|
17618
|
+
},
|
|
17619
|
+
"withContext": {
|
|
17620
|
+
"in": "query",
|
|
17621
|
+
"type": "boolean",
|
|
17622
|
+
"description": "Include the surrounding context with each passage in the `context` property of each passage. Not supported when `consolidate` is set to `true`."
|
|
17514
17623
|
}
|
|
17515
17624
|
},
|
|
17516
17625
|
"response": {
|
|
@@ -17623,7 +17732,8 @@ export const state = {
|
|
|
17623
17732
|
"properties": {
|
|
17624
17733
|
"id": {
|
|
17625
17734
|
"type": "string",
|
|
17626
|
-
"format": "uuid"
|
|
17735
|
+
"format": "uuid",
|
|
17736
|
+
"description": "The ID of the vector that the context passage belongs to. Omitted for breadcrumbs."
|
|
17627
17737
|
},
|
|
17628
17738
|
"text": {
|
|
17629
17739
|
"type": "string"
|
|
@@ -17637,17 +17747,18 @@ export const state = {
|
|
|
17637
17747
|
"enum": [
|
|
17638
17748
|
"preceding",
|
|
17639
17749
|
"subsequent",
|
|
17750
|
+
"current",
|
|
17640
17751
|
"breadcrumb"
|
|
17641
17752
|
],
|
|
17642
17753
|
"description": "The type of context passage"
|
|
17643
17754
|
}
|
|
17644
17755
|
},
|
|
17645
17756
|
"required": [
|
|
17646
|
-
"id",
|
|
17647
17757
|
"text",
|
|
17648
17758
|
"type"
|
|
17649
17759
|
]
|
|
17650
|
-
}
|
|
17760
|
+
},
|
|
17761
|
+
"description": "Surrounding passages including the current passage, based on the requested `contextDepth`. Only returned if the `withContext` parameter is set to `true`. Not supported when using the `consolidate` option."
|
|
17651
17762
|
}
|
|
17652
17763
|
},
|
|
17653
17764
|
"required": [
|
|
@@ -19359,7 +19470,7 @@ export const state = {
|
|
|
19359
19470
|
"title": "Botpress API",
|
|
19360
19471
|
"description": "API for Botpress Cloud",
|
|
19361
19472
|
"server": "https://api.botpress.cloud",
|
|
19362
|
-
"version": "1.
|
|
19473
|
+
"version": "1.32.0",
|
|
19363
19474
|
"prefix": "v1"
|
|
19364
19475
|
},
|
|
19365
19476
|
"errors": [
|
|
@@ -19523,6 +19634,7 @@ export const state = {
|
|
|
19523
19634
|
"deployBotVersionBody": true,
|
|
19524
19635
|
"createIntegrationShareableIdBody": true,
|
|
19525
19636
|
"createBotApiKeyBody": true,
|
|
19637
|
+
"updateBotAllowlistBody": true,
|
|
19526
19638
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
19527
19639
|
"createWorkspaceBody": true,
|
|
19528
19640
|
"updateWorkspaceBody": true,
|
|
@@ -19653,6 +19765,8 @@ export const state = {
|
|
|
19653
19765
|
"listBotApiKeysResponse": true,
|
|
19654
19766
|
"createBotApiKeyResponse": true,
|
|
19655
19767
|
"deleteBotApiKeyResponse": true,
|
|
19768
|
+
"getBotAllowlistResponse": true,
|
|
19769
|
+
"updateBotAllowlistResponse": true,
|
|
19656
19770
|
"listWorkspaceInvoicesResponse": true,
|
|
19657
19771
|
"getUpcomingInvoiceResponse": true,
|
|
19658
19772
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -23421,7 +23535,9 @@ export const state = {
|
|
|
23421
23535
|
"unlinkSandboxedConversations",
|
|
23422
23536
|
"listBotApiKeys",
|
|
23423
23537
|
"createBotApiKey",
|
|
23424
|
-
"deleteBotApiKey"
|
|
23538
|
+
"deleteBotApiKey",
|
|
23539
|
+
"getBotAllowlist",
|
|
23540
|
+
"updateBotAllowlist"
|
|
23425
23541
|
],
|
|
23426
23542
|
"schema": "Bot"
|
|
23427
23543
|
},
|