@botpress/api 1.31.0 → 1.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/.turbo/turbo-openapi.log +5 -5
- package/dist/index.js +235 -15
- package/dist/src/gen/admin/state.d.ts +89 -0
- package/dist/src/gen/files/state.d.ts +7 -0
- package/dist/src/gen/state.d.ts +96 -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 +104 -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 +116 -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,103 @@ 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
|
+
"users": {
|
|
9256
|
+
"type": "object",
|
|
9257
|
+
"additionalProperties": {
|
|
9258
|
+
"type": "boolean",
|
|
9259
|
+
"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"
|
|
9260
|
+
}
|
|
9261
|
+
}
|
|
9262
|
+
},
|
|
9263
|
+
"title": "updateBotAllowlistBody",
|
|
9264
|
+
"additionalProperties": false
|
|
9265
|
+
}
|
|
9266
|
+
},
|
|
9267
|
+
"response": {
|
|
9268
|
+
"description": "Success",
|
|
9269
|
+
"schema": {
|
|
9270
|
+
"type": "object",
|
|
9271
|
+
"title": "updateBotAllowlistResponse",
|
|
9272
|
+
"additionalProperties": false
|
|
9273
|
+
}
|
|
9274
|
+
}
|
|
9275
|
+
},
|
|
9179
9276
|
"listWorkspaceInvoices": {
|
|
9180
9277
|
"name": "listWorkspaceInvoices",
|
|
9181
9278
|
"description": "List invoices billed to workspace",
|
|
@@ -16495,9 +16592,10 @@ export const state = {
|
|
|
16495
16592
|
"stack": {
|
|
16496
16593
|
"type": "string",
|
|
16497
16594
|
"enum": [
|
|
16595
|
+
"legacy",
|
|
16498
16596
|
"realtime-v1"
|
|
16499
16597
|
],
|
|
16500
|
-
"description": "
|
|
16598
|
+
"description": "If not set, the default indexing stack will be used."
|
|
16501
16599
|
},
|
|
16502
16600
|
"vision": {
|
|
16503
16601
|
"type": "object",
|
|
@@ -17511,6 +17609,11 @@ export const state = {
|
|
|
17511
17609
|
"in": "query",
|
|
17512
17610
|
"type": "boolean",
|
|
17513
17611
|
"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`."
|
|
17612
|
+
},
|
|
17613
|
+
"withContext": {
|
|
17614
|
+
"in": "query",
|
|
17615
|
+
"type": "boolean",
|
|
17616
|
+
"description": "Include the surrounding context with each passage in the `context` property of each passage. Not supported when `consolidate` is set to `true`."
|
|
17514
17617
|
}
|
|
17515
17618
|
},
|
|
17516
17619
|
"response": {
|
|
@@ -17623,7 +17726,8 @@ export const state = {
|
|
|
17623
17726
|
"properties": {
|
|
17624
17727
|
"id": {
|
|
17625
17728
|
"type": "string",
|
|
17626
|
-
"format": "uuid"
|
|
17729
|
+
"format": "uuid",
|
|
17730
|
+
"description": "The ID of the vector that the context passage belongs to. Omitted for breadcrumbs."
|
|
17627
17731
|
},
|
|
17628
17732
|
"text": {
|
|
17629
17733
|
"type": "string"
|
|
@@ -17637,17 +17741,18 @@ export const state = {
|
|
|
17637
17741
|
"enum": [
|
|
17638
17742
|
"preceding",
|
|
17639
17743
|
"subsequent",
|
|
17744
|
+
"current",
|
|
17640
17745
|
"breadcrumb"
|
|
17641
17746
|
],
|
|
17642
17747
|
"description": "The type of context passage"
|
|
17643
17748
|
}
|
|
17644
17749
|
},
|
|
17645
17750
|
"required": [
|
|
17646
|
-
"id",
|
|
17647
17751
|
"text",
|
|
17648
17752
|
"type"
|
|
17649
17753
|
]
|
|
17650
|
-
}
|
|
17754
|
+
},
|
|
17755
|
+
"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
17756
|
}
|
|
17652
17757
|
},
|
|
17653
17758
|
"required": [
|
|
@@ -19359,7 +19464,7 @@ export const state = {
|
|
|
19359
19464
|
"title": "Botpress API",
|
|
19360
19465
|
"description": "API for Botpress Cloud",
|
|
19361
19466
|
"server": "https://api.botpress.cloud",
|
|
19362
|
-
"version": "1.
|
|
19467
|
+
"version": "1.33.0",
|
|
19363
19468
|
"prefix": "v1"
|
|
19364
19469
|
},
|
|
19365
19470
|
"errors": [
|
|
@@ -19523,6 +19628,7 @@ export const state = {
|
|
|
19523
19628
|
"deployBotVersionBody": true,
|
|
19524
19629
|
"createIntegrationShareableIdBody": true,
|
|
19525
19630
|
"createBotApiKeyBody": true,
|
|
19631
|
+
"updateBotAllowlistBody": true,
|
|
19526
19632
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
19527
19633
|
"createWorkspaceBody": true,
|
|
19528
19634
|
"updateWorkspaceBody": true,
|
|
@@ -19653,6 +19759,8 @@ export const state = {
|
|
|
19653
19759
|
"listBotApiKeysResponse": true,
|
|
19654
19760
|
"createBotApiKeyResponse": true,
|
|
19655
19761
|
"deleteBotApiKeyResponse": true,
|
|
19762
|
+
"getBotAllowlistResponse": true,
|
|
19763
|
+
"updateBotAllowlistResponse": true,
|
|
19656
19764
|
"listWorkspaceInvoicesResponse": true,
|
|
19657
19765
|
"getUpcomingInvoiceResponse": true,
|
|
19658
19766
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -23421,7 +23529,9 @@ export const state = {
|
|
|
23421
23529
|
"unlinkSandboxedConversations",
|
|
23422
23530
|
"listBotApiKeys",
|
|
23423
23531
|
"createBotApiKey",
|
|
23424
|
-
"deleteBotApiKey"
|
|
23532
|
+
"deleteBotApiKey",
|
|
23533
|
+
"getBotAllowlist",
|
|
23534
|
+
"updateBotAllowlist"
|
|
23425
23535
|
],
|
|
23426
23536
|
"schema": "Bot"
|
|
23427
23537
|
},
|