@botpress/api 1.30.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.
@@ -2460,6 +2460,14 @@ export const state = {
2460
2460
  "eventId": {
2461
2461
  "type": "string",
2462
2462
  "description": "Event id must be specified if the workflow is created with the status in_progress"
2463
+ },
2464
+ "discriminateByTags": {
2465
+ "type": "array",
2466
+ "items": {
2467
+ "type": "string",
2468
+ "maxLength": 500
2469
+ },
2470
+ "description": "Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow whose tags are {\"foo\": \"a\", \"bar\": \"b\", baz: \"c\"}: Without this parameter, ALL tags must match exactly. With [\"bar\",\"baz\"], all listed tags must match their values, and other tags are not considered."
2463
2471
  }
2464
2472
  },
2465
2473
  "required": [
@@ -2602,7 +2610,7 @@ export const state = {
2602
2610
  "title": "Botpress API",
2603
2611
  "description": "API for Botpress Cloud",
2604
2612
  "server": "https://api.botpress.cloud",
2605
- "version": "1.30.0",
2613
+ "version": "1.32.0",
2606
2614
  "prefix": "v1"
2607
2615
  },
2608
2616
  "errors": [
package/src/gen/state.ts CHANGED
@@ -2460,6 +2460,14 @@ export const state = {
2460
2460
  "eventId": {
2461
2461
  "type": "string",
2462
2462
  "description": "Event id must be specified if the workflow is created with the status in_progress"
2463
+ },
2464
+ "discriminateByTags": {
2465
+ "type": "array",
2466
+ "items": {
2467
+ "type": "string",
2468
+ "maxLength": 500
2469
+ },
2470
+ "description": "Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow whose tags are {\"foo\": \"a\", \"bar\": \"b\", baz: \"c\"}: Without this parameter, ALL tags must match exactly. With [\"bar\",\"baz\"], all listed tags must match their values, and other tags are not considered."
2463
2471
  }
2464
2472
  },
2465
2473
  "required": [
@@ -9168,6 +9176,109 @@ export const state = {
9168
9176
  }
9169
9177
  }
9170
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
+ },
9171
9282
  "listWorkspaceInvoices": {
9172
9283
  "name": "listWorkspaceInvoices",
9173
9284
  "description": "List invoices billed to workspace",
@@ -16487,9 +16598,10 @@ export const state = {
16487
16598
  "stack": {
16488
16599
  "type": "string",
16489
16600
  "enum": [
16601
+ "legacy",
16490
16602
  "realtime-v1"
16491
16603
  ],
16492
- "description": "Internal setting, cannot be set manually."
16604
+ "description": "If not set, the default indexing stack will be used."
16493
16605
  },
16494
16606
  "vision": {
16495
16607
  "type": "object",
@@ -17503,6 +17615,11 @@ export const state = {
17503
17615
  "in": "query",
17504
17616
  "type": "boolean",
17505
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`."
17506
17623
  }
17507
17624
  },
17508
17625
  "response": {
@@ -17615,7 +17732,8 @@ export const state = {
17615
17732
  "properties": {
17616
17733
  "id": {
17617
17734
  "type": "string",
17618
- "format": "uuid"
17735
+ "format": "uuid",
17736
+ "description": "The ID of the vector that the context passage belongs to. Omitted for breadcrumbs."
17619
17737
  },
17620
17738
  "text": {
17621
17739
  "type": "string"
@@ -17629,17 +17747,18 @@ export const state = {
17629
17747
  "enum": [
17630
17748
  "preceding",
17631
17749
  "subsequent",
17750
+ "current",
17632
17751
  "breadcrumb"
17633
17752
  ],
17634
17753
  "description": "The type of context passage"
17635
17754
  }
17636
17755
  },
17637
17756
  "required": [
17638
- "id",
17639
17757
  "text",
17640
17758
  "type"
17641
17759
  ]
17642
- }
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."
17643
17762
  }
17644
17763
  },
17645
17764
  "required": [
@@ -19351,7 +19470,7 @@ export const state = {
19351
19470
  "title": "Botpress API",
19352
19471
  "description": "API for Botpress Cloud",
19353
19472
  "server": "https://api.botpress.cloud",
19354
- "version": "1.30.0",
19473
+ "version": "1.32.0",
19355
19474
  "prefix": "v1"
19356
19475
  },
19357
19476
  "errors": [
@@ -19515,6 +19634,7 @@ export const state = {
19515
19634
  "deployBotVersionBody": true,
19516
19635
  "createIntegrationShareableIdBody": true,
19517
19636
  "createBotApiKeyBody": true,
19637
+ "updateBotAllowlistBody": true,
19518
19638
  "chargeWorkspaceUnpaidInvoicesBody": true,
19519
19639
  "createWorkspaceBody": true,
19520
19640
  "updateWorkspaceBody": true,
@@ -19645,6 +19765,8 @@ export const state = {
19645
19765
  "listBotApiKeysResponse": true,
19646
19766
  "createBotApiKeyResponse": true,
19647
19767
  "deleteBotApiKeyResponse": true,
19768
+ "getBotAllowlistResponse": true,
19769
+ "updateBotAllowlistResponse": true,
19648
19770
  "listWorkspaceInvoicesResponse": true,
19649
19771
  "getUpcomingInvoiceResponse": true,
19650
19772
  "chargeWorkspaceUnpaidInvoicesResponse": true,
@@ -23413,7 +23535,9 @@ export const state = {
23413
23535
  "unlinkSandboxedConversations",
23414
23536
  "listBotApiKeys",
23415
23537
  "createBotApiKey",
23416
- "deleteBotApiKey"
23538
+ "deleteBotApiKey",
23539
+ "getBotAllowlist",
23540
+ "updateBotAllowlist"
23417
23541
  ],
23418
23542
  "schema": "Bot"
23419
23543
  },