@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @botpress/api@1.31.0 openapi /home/runner/work/skynet/skynet/packages/public-api
2
+ > @botpress/api@1.33.0 openapi /home/runner/work/skynet/skynet/packages/public-api
3
3
  > es-node openapi/generator.ts && pnpm run build
4
4
 
5
5
  Generating openapi content
@@ -34,18 +34,18 @@ Saving openapi.json file
34
34
 
35
35
  info: Exit with code {"category":"system","code":0,"label":"Shutdown"}
36
36
 
37
- > @botpress/api@1.31.0 build /home/runner/work/skynet/skynet/packages/public-api
37
+ > @botpress/api@1.33.0 build /home/runner/work/skynet/skynet/packages/public-api
38
38
  > pnpm run build:type && pnpm run build:impl
39
39
 
40
40
 
41
- > @botpress/api@1.31.0 build:type /home/runner/work/skynet/skynet/packages/public-api
41
+ > @botpress/api@1.33.0 build:type /home/runner/work/skynet/skynet/packages/public-api
42
42
  > tsc -p tsconfig.package.json --emitDeclarationOnly
43
43
 
44
44
 
45
- > @botpress/api@1.31.0 build:impl /home/runner/work/skynet/skynet/packages/public-api
45
+ > @botpress/api@1.33.0 build:impl /home/runner/work/skynet/skynet/packages/public-api
46
46
  > esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts
47
47
 
48
48
 
49
49
  dist/index.js 14.1mb ⚠️
50
50
 
51
- ⚡ Done in 913ms
51
+ ⚡ Done in 923ms
package/dist/index.js CHANGED
@@ -285334,7 +285334,7 @@ var state = {
285334
285334
  "title": "Botpress API",
285335
285335
  "description": "API for Botpress Cloud",
285336
285336
  "server": "https://api.botpress.cloud",
285337
- "version": "1.31.0",
285337
+ "version": "1.33.0",
285338
285338
  "prefix": "v1"
285339
285339
  },
285340
285340
  "errors": [
@@ -295837,6 +295837,103 @@ var state2 = {
295837
295837
  }
295838
295838
  }
295839
295839
  },
295840
+ "getBotAllowlist": {
295841
+ "name": "getBotAllowlist",
295842
+ "description": "Get the Bot Allowlist",
295843
+ "method": "get",
295844
+ "section": "bot",
295845
+ "path": "/v1/admin/bots/{botId}/allowlist",
295846
+ "parameters": {
295847
+ "botId": {
295848
+ "type": "string",
295849
+ "description": "Bot ID",
295850
+ "in": "path"
295851
+ }
295852
+ },
295853
+ "response": {
295854
+ "description": "Success",
295855
+ "schema": {
295856
+ "type": "object",
295857
+ "properties": {
295858
+ "setting": {
295859
+ "type": "string",
295860
+ "enum": [
295861
+ "ALL_WORKSPACE_USERS",
295862
+ "SELECTED_USERS"
295863
+ ],
295864
+ "description": "Allowlist setting of the bot"
295865
+ },
295866
+ "users": {
295867
+ "type": "array",
295868
+ "items": {
295869
+ "type": "object",
295870
+ "properties": {
295871
+ "id": {
295872
+ "type": "string"
295873
+ }
295874
+ },
295875
+ "required": [
295876
+ "id"
295877
+ ]
295878
+ }
295879
+ }
295880
+ },
295881
+ "required": [
295882
+ "setting",
295883
+ "users"
295884
+ ],
295885
+ "title": "getBotAllowlistResponse",
295886
+ "additionalProperties": false
295887
+ }
295888
+ }
295889
+ },
295890
+ "updateBotAllowlist": {
295891
+ "name": "updateBotAllowlist",
295892
+ "description": "Update the Bot Allowlist",
295893
+ "method": "put",
295894
+ "section": "bot",
295895
+ "path": "/v1/admin/bots/{botId}/allowlist",
295896
+ "parameters": {
295897
+ "botId": {
295898
+ "type": "string",
295899
+ "description": "Bot ID",
295900
+ "in": "path"
295901
+ }
295902
+ },
295903
+ "requestBody": {
295904
+ "description": "Allowlist body",
295905
+ "schema": {
295906
+ "type": "object",
295907
+ "properties": {
295908
+ "setting": {
295909
+ "type": "string",
295910
+ "enum": [
295911
+ "ALL_WORKSPACE_USERS",
295912
+ "SELECTED_USERS"
295913
+ ],
295914
+ "description": "Allowlist setting of the bot"
295915
+ },
295916
+ "users": {
295917
+ "type": "object",
295918
+ "additionalProperties": {
295919
+ "type": "boolean",
295920
+ "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"
295921
+ }
295922
+ }
295923
+ },
295924
+ "title": "updateBotAllowlistBody",
295925
+ "additionalProperties": false
295926
+ }
295927
+ },
295928
+ "response": {
295929
+ "description": "Success",
295930
+ "schema": {
295931
+ "type": "object",
295932
+ "title": "updateBotAllowlistResponse",
295933
+ "additionalProperties": false
295934
+ }
295935
+ }
295936
+ },
295840
295937
  "listWorkspaceInvoices": {
295841
295938
  "name": "listWorkspaceInvoices",
295842
295939
  "description": "List invoices billed to workspace",
@@ -303045,7 +303142,7 @@ var state2 = {
303045
303142
  "title": "Botpress API",
303046
303143
  "description": "API for Botpress Cloud",
303047
303144
  "server": "https://api.botpress.cloud",
303048
- "version": "1.31.0",
303145
+ "version": "1.33.0",
303049
303146
  "prefix": "v1"
303050
303147
  },
303051
303148
  "errors": [
@@ -303186,6 +303283,7 @@ var state2 = {
303186
303283
  "deployBotVersionBody": true,
303187
303284
  "createIntegrationShareableIdBody": true,
303188
303285
  "createBotApiKeyBody": true,
303286
+ "updateBotAllowlistBody": true,
303189
303287
  "chargeWorkspaceUnpaidInvoicesBody": true,
303190
303288
  "createWorkspaceBody": true,
303191
303289
  "updateWorkspaceBody": true,
@@ -303254,6 +303352,8 @@ var state2 = {
303254
303352
  "listBotApiKeysResponse": true,
303255
303353
  "createBotApiKeyResponse": true,
303256
303354
  "deleteBotApiKeyResponse": true,
303355
+ "getBotAllowlistResponse": true,
303356
+ "updateBotAllowlistResponse": true,
303257
303357
  "listWorkspaceInvoicesResponse": true,
303258
303358
  "getUpcomingInvoiceResponse": true,
303259
303359
  "chargeWorkspaceUnpaidInvoicesResponse": true,
@@ -306936,7 +307036,9 @@ var state2 = {
306936
307036
  "unlinkSandboxedConversations",
306937
307037
  "listBotApiKeys",
306938
307038
  "createBotApiKey",
306939
- "deleteBotApiKey"
307039
+ "deleteBotApiKey",
307040
+ "getBotAllowlist",
307041
+ "updateBotAllowlist"
306940
307042
  ],
306941
307043
  "schema": "Bot"
306942
307044
  },
@@ -307225,9 +307327,10 @@ var state3 = {
307225
307327
  "stack": {
307226
307328
  "type": "string",
307227
307329
  "enum": [
307330
+ "legacy",
307228
307331
  "realtime-v1"
307229
307332
  ],
307230
- "description": "Internal setting, cannot be set manually."
307333
+ "description": "If not set, the default indexing stack will be used."
307231
307334
  },
307232
307335
  "vision": {
307233
307336
  "type": "object",
@@ -308241,6 +308344,11 @@ var state3 = {
308241
308344
  "in": "query",
308242
308345
  "type": "boolean",
308243
308346
  "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`."
308347
+ },
308348
+ "withContext": {
308349
+ "in": "query",
308350
+ "type": "boolean",
308351
+ "description": "Include the surrounding context with each passage in the `context` property of each passage. Not supported when `consolidate` is set to `true`."
308244
308352
  }
308245
308353
  },
308246
308354
  "response": {
@@ -308353,7 +308461,8 @@ var state3 = {
308353
308461
  "properties": {
308354
308462
  "id": {
308355
308463
  "type": "string",
308356
- "format": "uuid"
308464
+ "format": "uuid",
308465
+ "description": "The ID of the vector that the context passage belongs to. Omitted for breadcrumbs."
308357
308466
  },
308358
308467
  "text": {
308359
308468
  "type": "string"
@@ -308367,17 +308476,18 @@ var state3 = {
308367
308476
  "enum": [
308368
308477
  "preceding",
308369
308478
  "subsequent",
308479
+ "current",
308370
308480
  "breadcrumb"
308371
308481
  ],
308372
308482
  "description": "The type of context passage"
308373
308483
  }
308374
308484
  },
308375
308485
  "required": [
308376
- "id",
308377
308486
  "text",
308378
308487
  "type"
308379
308488
  ]
308380
- }
308489
+ },
308490
+ "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."
308381
308491
  }
308382
308492
  },
308383
308493
  "required": [
@@ -308883,7 +308993,7 @@ var state3 = {
308883
308993
  "title": "Botpress API",
308884
308994
  "description": "API for Botpress Cloud",
308885
308995
  "server": "https://api.botpress.cloud",
308886
- "version": "1.31.0",
308996
+ "version": "1.33.0",
308887
308997
  "prefix": "v1"
308888
308998
  },
308889
308999
  "errors": [
@@ -313945,7 +314055,7 @@ var state4 = {
313945
314055
  "title": "Botpress API",
313946
314056
  "description": "API for Botpress Cloud",
313947
314057
  "server": "https://api.botpress.cloud",
313948
- "version": "1.31.0",
314058
+ "version": "1.33.0",
313949
314059
  "prefix": "v1"
313950
314060
  },
313951
314061
  "errors": [
@@ -326972,6 +327082,103 @@ var state5 = {
326972
327082
  }
326973
327083
  }
326974
327084
  },
327085
+ "getBotAllowlist": {
327086
+ "name": "getBotAllowlist",
327087
+ "description": "Get the Bot Allowlist",
327088
+ "method": "get",
327089
+ "section": "bot",
327090
+ "path": "/v1/admin/bots/{botId}/allowlist",
327091
+ "parameters": {
327092
+ "botId": {
327093
+ "type": "string",
327094
+ "description": "Bot ID",
327095
+ "in": "path"
327096
+ }
327097
+ },
327098
+ "response": {
327099
+ "description": "Success",
327100
+ "schema": {
327101
+ "type": "object",
327102
+ "properties": {
327103
+ "setting": {
327104
+ "type": "string",
327105
+ "enum": [
327106
+ "ALL_WORKSPACE_USERS",
327107
+ "SELECTED_USERS"
327108
+ ],
327109
+ "description": "Allowlist setting of the bot"
327110
+ },
327111
+ "users": {
327112
+ "type": "array",
327113
+ "items": {
327114
+ "type": "object",
327115
+ "properties": {
327116
+ "id": {
327117
+ "type": "string"
327118
+ }
327119
+ },
327120
+ "required": [
327121
+ "id"
327122
+ ]
327123
+ }
327124
+ }
327125
+ },
327126
+ "required": [
327127
+ "setting",
327128
+ "users"
327129
+ ],
327130
+ "title": "getBotAllowlistResponse",
327131
+ "additionalProperties": false
327132
+ }
327133
+ }
327134
+ },
327135
+ "updateBotAllowlist": {
327136
+ "name": "updateBotAllowlist",
327137
+ "description": "Update the Bot Allowlist",
327138
+ "method": "put",
327139
+ "section": "bot",
327140
+ "path": "/v1/admin/bots/{botId}/allowlist",
327141
+ "parameters": {
327142
+ "botId": {
327143
+ "type": "string",
327144
+ "description": "Bot ID",
327145
+ "in": "path"
327146
+ }
327147
+ },
327148
+ "requestBody": {
327149
+ "description": "Allowlist body",
327150
+ "schema": {
327151
+ "type": "object",
327152
+ "properties": {
327153
+ "setting": {
327154
+ "type": "string",
327155
+ "enum": [
327156
+ "ALL_WORKSPACE_USERS",
327157
+ "SELECTED_USERS"
327158
+ ],
327159
+ "description": "Allowlist setting of the bot"
327160
+ },
327161
+ "users": {
327162
+ "type": "object",
327163
+ "additionalProperties": {
327164
+ "type": "boolean",
327165
+ "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"
327166
+ }
327167
+ }
327168
+ },
327169
+ "title": "updateBotAllowlistBody",
327170
+ "additionalProperties": false
327171
+ }
327172
+ },
327173
+ "response": {
327174
+ "description": "Success",
327175
+ "schema": {
327176
+ "type": "object",
327177
+ "title": "updateBotAllowlistResponse",
327178
+ "additionalProperties": false
327179
+ }
327180
+ }
327181
+ },
326975
327182
  "listWorkspaceInvoices": {
326976
327183
  "name": "listWorkspaceInvoices",
326977
327184
  "description": "List invoices billed to workspace",
@@ -334291,9 +334498,10 @@ var state5 = {
334291
334498
  "stack": {
334292
334499
  "type": "string",
334293
334500
  "enum": [
334501
+ "legacy",
334294
334502
  "realtime-v1"
334295
334503
  ],
334296
- "description": "Internal setting, cannot be set manually."
334504
+ "description": "If not set, the default indexing stack will be used."
334297
334505
  },
334298
334506
  "vision": {
334299
334507
  "type": "object",
@@ -335307,6 +335515,11 @@ var state5 = {
335307
335515
  "in": "query",
335308
335516
  "type": "boolean",
335309
335517
  "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`."
335518
+ },
335519
+ "withContext": {
335520
+ "in": "query",
335521
+ "type": "boolean",
335522
+ "description": "Include the surrounding context with each passage in the `context` property of each passage. Not supported when `consolidate` is set to `true`."
335310
335523
  }
335311
335524
  },
335312
335525
  "response": {
@@ -335419,7 +335632,8 @@ var state5 = {
335419
335632
  "properties": {
335420
335633
  "id": {
335421
335634
  "type": "string",
335422
- "format": "uuid"
335635
+ "format": "uuid",
335636
+ "description": "The ID of the vector that the context passage belongs to. Omitted for breadcrumbs."
335423
335637
  },
335424
335638
  "text": {
335425
335639
  "type": "string"
@@ -335433,17 +335647,18 @@ var state5 = {
335433
335647
  "enum": [
335434
335648
  "preceding",
335435
335649
  "subsequent",
335650
+ "current",
335436
335651
  "breadcrumb"
335437
335652
  ],
335438
335653
  "description": "The type of context passage"
335439
335654
  }
335440
335655
  },
335441
335656
  "required": [
335442
- "id",
335443
335657
  "text",
335444
335658
  "type"
335445
335659
  ]
335446
- }
335660
+ },
335661
+ "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."
335447
335662
  }
335448
335663
  },
335449
335664
  "required": [
@@ -337155,7 +337370,7 @@ var state5 = {
337155
337370
  "title": "Botpress API",
337156
337371
  "description": "API for Botpress Cloud",
337157
337372
  "server": "https://api.botpress.cloud",
337158
- "version": "1.31.0",
337373
+ "version": "1.33.0",
337159
337374
  "prefix": "v1"
337160
337375
  },
337161
337376
  "errors": [
@@ -337319,6 +337534,7 @@ var state5 = {
337319
337534
  "deployBotVersionBody": true,
337320
337535
  "createIntegrationShareableIdBody": true,
337321
337536
  "createBotApiKeyBody": true,
337537
+ "updateBotAllowlistBody": true,
337322
337538
  "chargeWorkspaceUnpaidInvoicesBody": true,
337323
337539
  "createWorkspaceBody": true,
337324
337540
  "updateWorkspaceBody": true,
@@ -337449,6 +337665,8 @@ var state5 = {
337449
337665
  "listBotApiKeysResponse": true,
337450
337666
  "createBotApiKeyResponse": true,
337451
337667
  "deleteBotApiKeyResponse": true,
337668
+ "getBotAllowlistResponse": true,
337669
+ "updateBotAllowlistResponse": true,
337452
337670
  "listWorkspaceInvoicesResponse": true,
337453
337671
  "getUpcomingInvoiceResponse": true,
337454
337672
  "chargeWorkspaceUnpaidInvoicesResponse": true,
@@ -341217,7 +341435,9 @@ var state5 = {
341217
341435
  "unlinkSandboxedConversations",
341218
341436
  "listBotApiKeys",
341219
341437
  "createBotApiKey",
341220
- "deleteBotApiKey"
341438
+ "deleteBotApiKey",
341439
+ "getBotAllowlist",
341440
+ "updateBotAllowlist"
341221
341441
  ],
341222
341442
  "schema": "Bot"
341223
341443
  },
@@ -5786,6 +5786,92 @@ export declare const state: {
5786
5786
  };
5787
5787
  };
5788
5788
  };
5789
+ getBotAllowlist: {
5790
+ name: string;
5791
+ description: string;
5792
+ method: "get";
5793
+ section: "bot";
5794
+ path: string;
5795
+ parameters: {
5796
+ botId: {
5797
+ type: "string";
5798
+ description: string;
5799
+ in: "path";
5800
+ };
5801
+ };
5802
+ response: {
5803
+ description: string;
5804
+ schema: {
5805
+ type: "object";
5806
+ properties: {
5807
+ setting: {
5808
+ type: "string";
5809
+ enum: string[];
5810
+ description: string;
5811
+ };
5812
+ users: {
5813
+ type: "array";
5814
+ items: {
5815
+ type: "object";
5816
+ properties: {
5817
+ id: {
5818
+ type: "string";
5819
+ };
5820
+ };
5821
+ required: string[];
5822
+ };
5823
+ };
5824
+ };
5825
+ required: string[];
5826
+ title: string;
5827
+ additionalProperties: false;
5828
+ };
5829
+ };
5830
+ };
5831
+ updateBotAllowlist: {
5832
+ name: string;
5833
+ description: string;
5834
+ method: "put";
5835
+ section: "bot";
5836
+ path: string;
5837
+ parameters: {
5838
+ botId: {
5839
+ type: "string";
5840
+ description: string;
5841
+ in: "path";
5842
+ };
5843
+ };
5844
+ requestBody: {
5845
+ description: string;
5846
+ schema: {
5847
+ type: "object";
5848
+ properties: {
5849
+ setting: {
5850
+ type: "string";
5851
+ enum: string[];
5852
+ description: string;
5853
+ };
5854
+ users: {
5855
+ type: "object";
5856
+ additionalProperties: {
5857
+ type: "boolean";
5858
+ description: string;
5859
+ };
5860
+ };
5861
+ };
5862
+ title: string;
5863
+ additionalProperties: false;
5864
+ };
5865
+ };
5866
+ response: {
5867
+ description: string;
5868
+ schema: {
5869
+ type: "object";
5870
+ title: string;
5871
+ additionalProperties: false;
5872
+ };
5873
+ };
5874
+ };
5789
5875
  listWorkspaceInvoices: {
5790
5876
  name: string;
5791
5877
  description: string;
@@ -12228,6 +12314,7 @@ export declare const state: {
12228
12314
  deployBotVersionBody: true;
12229
12315
  createIntegrationShareableIdBody: true;
12230
12316
  createBotApiKeyBody: true;
12317
+ updateBotAllowlistBody: true;
12231
12318
  chargeWorkspaceUnpaidInvoicesBody: true;
12232
12319
  createWorkspaceBody: true;
12233
12320
  updateWorkspaceBody: true;
@@ -12296,6 +12383,8 @@ export declare const state: {
12296
12383
  listBotApiKeysResponse: true;
12297
12384
  createBotApiKeyResponse: true;
12298
12385
  deleteBotApiKeyResponse: true;
12386
+ getBotAllowlistResponse: true;
12387
+ updateBotAllowlistResponse: true;
12299
12388
  listWorkspaceInvoicesResponse: true;
12300
12389
  getUpcomingInvoiceResponse: true;
12301
12390
  chargeWorkspaceUnpaidInvoicesResponse: true;
@@ -941,6 +941,11 @@ export declare const state: {
941
941
  type: "boolean";
942
942
  description: string;
943
943
  };
944
+ withContext: {
945
+ in: "query";
946
+ type: "boolean";
947
+ description: string;
948
+ };
944
949
  };
945
950
  response: {
946
951
  description: string;
@@ -1031,6 +1036,7 @@ export declare const state: {
1031
1036
  id: {
1032
1037
  type: "string";
1033
1038
  format: string;
1039
+ description: string;
1034
1040
  };
1035
1041
  text: {
1036
1042
  type: "string";
@@ -1047,6 +1053,7 @@ export declare const state: {
1047
1053
  };
1048
1054
  required: string[];
1049
1055
  };
1056
+ description: string;
1050
1057
  };
1051
1058
  };
1052
1059
  required: string[];