@botpress/api 1.11.0 → 1.13.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.
@@ -4978,6 +4978,617 @@ export declare const state: {
4978
4978
  };
4979
4979
  };
4980
4980
  };
4981
+ listPublicInterfaces: {
4982
+ name: string;
4983
+ description: string;
4984
+ method: "get";
4985
+ section: "hub";
4986
+ path: string;
4987
+ disableDefaultParameters: {
4988
+ "x-workspace-id": boolean;
4989
+ };
4990
+ parameters: {
4991
+ nextToken: {
4992
+ in: "query";
4993
+ description: string;
4994
+ type: "string";
4995
+ };
4996
+ name: {
4997
+ in: "query";
4998
+ type: "string";
4999
+ description: string;
5000
+ };
5001
+ version: {
5002
+ in: "query";
5003
+ type: "string";
5004
+ description: string;
5005
+ };
5006
+ };
5007
+ response: {
5008
+ description: string;
5009
+ schema: {
5010
+ type: "object";
5011
+ properties: {
5012
+ interfaces: {
5013
+ type: "array";
5014
+ items: {
5015
+ type: "object";
5016
+ properties: {
5017
+ id: {
5018
+ type: "string";
5019
+ minLength: number;
5020
+ maxLength: number;
5021
+ description: string;
5022
+ };
5023
+ createdAt: {
5024
+ type: "string";
5025
+ format: string;
5026
+ description: string;
5027
+ };
5028
+ updatedAt: {
5029
+ type: "string";
5030
+ format: string;
5031
+ description: string;
5032
+ };
5033
+ name: {
5034
+ type: "string";
5035
+ maxLength: number;
5036
+ description: string;
5037
+ };
5038
+ version: {
5039
+ type: "string";
5040
+ maxLength: number;
5041
+ description: string;
5042
+ };
5043
+ title: {
5044
+ type: "string";
5045
+ minLength: number;
5046
+ maxLength: number;
5047
+ description: string;
5048
+ };
5049
+ description: {
5050
+ type: "string";
5051
+ maxLength: number;
5052
+ description: string;
5053
+ };
5054
+ iconUrl: {
5055
+ type: "string";
5056
+ description: string;
5057
+ };
5058
+ readmeUrl: {
5059
+ type: "string";
5060
+ description: string;
5061
+ };
5062
+ public: {
5063
+ type: "boolean";
5064
+ description: string;
5065
+ };
5066
+ };
5067
+ required: string[];
5068
+ };
5069
+ };
5070
+ meta: {
5071
+ type: "object";
5072
+ properties: {
5073
+ nextToken: {
5074
+ type: "string";
5075
+ description: string;
5076
+ };
5077
+ };
5078
+ additionalProperties: false;
5079
+ };
5080
+ };
5081
+ required: string[];
5082
+ title: string;
5083
+ additionalProperties: false;
5084
+ };
5085
+ };
5086
+ };
5087
+ getPublicInterfaceById: {
5088
+ name: string;
5089
+ description: string;
5090
+ method: "get";
5091
+ section: "hub";
5092
+ path: string;
5093
+ disableDefaultParameters: {
5094
+ "x-workspace-id": boolean;
5095
+ };
5096
+ parameters: {
5097
+ id: {
5098
+ type: "string";
5099
+ description: string;
5100
+ in: "path";
5101
+ };
5102
+ };
5103
+ response: {
5104
+ description: string;
5105
+ schema: {
5106
+ type: "object";
5107
+ properties: {
5108
+ interface: {
5109
+ type: "object";
5110
+ properties: {
5111
+ id: {
5112
+ type: "string";
5113
+ minLength: number;
5114
+ maxLength: number;
5115
+ description: string;
5116
+ };
5117
+ createdAt: {
5118
+ type: "string";
5119
+ format: string;
5120
+ description: string;
5121
+ };
5122
+ updatedAt: {
5123
+ type: "string";
5124
+ format: string;
5125
+ description: string;
5126
+ };
5127
+ name: {
5128
+ type: "string";
5129
+ maxLength: number;
5130
+ description: string;
5131
+ };
5132
+ version: {
5133
+ type: "string";
5134
+ maxLength: number;
5135
+ description: string;
5136
+ };
5137
+ entities: {
5138
+ type: "object";
5139
+ additionalProperties: {
5140
+ type: "object";
5141
+ properties: {
5142
+ title: {
5143
+ type: "string";
5144
+ maxLength: number;
5145
+ description: string;
5146
+ };
5147
+ description: {
5148
+ type: "string";
5149
+ maxLength: number;
5150
+ description: string;
5151
+ };
5152
+ schema: {
5153
+ type: "object";
5154
+ additionalProperties: true;
5155
+ };
5156
+ };
5157
+ required: string[];
5158
+ description: string;
5159
+ additionalProperties: false;
5160
+ };
5161
+ };
5162
+ events: {
5163
+ type: "object";
5164
+ additionalProperties: {
5165
+ type: "object";
5166
+ properties: {
5167
+ title: {
5168
+ type: "string";
5169
+ maxLength: number;
5170
+ description: string;
5171
+ };
5172
+ description: {
5173
+ type: "string";
5174
+ maxLength: number;
5175
+ description: string;
5176
+ };
5177
+ schema: {
5178
+ type: "object";
5179
+ additionalProperties: true;
5180
+ };
5181
+ attributes: {
5182
+ type: "object";
5183
+ additionalProperties: {
5184
+ type: "string";
5185
+ maxLength: number;
5186
+ };
5187
+ description: string;
5188
+ };
5189
+ };
5190
+ required: string[];
5191
+ description: string;
5192
+ additionalProperties: false;
5193
+ };
5194
+ };
5195
+ actions: {
5196
+ type: "object";
5197
+ additionalProperties: {
5198
+ type: "object";
5199
+ properties: {
5200
+ title: {
5201
+ type: "string";
5202
+ maxLength: number;
5203
+ description: string;
5204
+ };
5205
+ description: {
5206
+ type: "string";
5207
+ maxLength: number;
5208
+ description: string;
5209
+ };
5210
+ billable: {
5211
+ type: "boolean";
5212
+ };
5213
+ cacheable: {
5214
+ type: "boolean";
5215
+ };
5216
+ input: {
5217
+ type: "object";
5218
+ properties: {
5219
+ schema: {
5220
+ type: "object";
5221
+ additionalProperties: true;
5222
+ };
5223
+ };
5224
+ required: string[];
5225
+ additionalProperties: false;
5226
+ };
5227
+ output: {
5228
+ type: "object";
5229
+ properties: {
5230
+ schema: {
5231
+ type: "object";
5232
+ additionalProperties: true;
5233
+ };
5234
+ };
5235
+ required: string[];
5236
+ additionalProperties: false;
5237
+ };
5238
+ attributes: {
5239
+ type: "object";
5240
+ additionalProperties: {
5241
+ type: "string";
5242
+ maxLength: number;
5243
+ };
5244
+ description: string;
5245
+ };
5246
+ };
5247
+ required: string[];
5248
+ description: string;
5249
+ additionalProperties: false;
5250
+ };
5251
+ };
5252
+ channels: {
5253
+ type: "object";
5254
+ additionalProperties: {
5255
+ type: "object";
5256
+ properties: {
5257
+ title: {
5258
+ type: "string";
5259
+ maxLength: number;
5260
+ description: string;
5261
+ };
5262
+ description: {
5263
+ type: "string";
5264
+ maxLength: number;
5265
+ description: string;
5266
+ };
5267
+ messages: {
5268
+ type: "object";
5269
+ additionalProperties: {
5270
+ type: "object";
5271
+ properties: {
5272
+ schema: {
5273
+ type: "object";
5274
+ additionalProperties: true;
5275
+ };
5276
+ };
5277
+ required: string[];
5278
+ description: string;
5279
+ additionalProperties: false;
5280
+ };
5281
+ };
5282
+ };
5283
+ required: string[];
5284
+ additionalProperties: false;
5285
+ };
5286
+ };
5287
+ nameTemplate: {
5288
+ type: "object";
5289
+ properties: {
5290
+ script: {
5291
+ type: "string";
5292
+ maxLength: number;
5293
+ };
5294
+ language: {
5295
+ type: "string";
5296
+ maxLength: number;
5297
+ };
5298
+ };
5299
+ required: string[];
5300
+ description: string;
5301
+ additionalProperties: false;
5302
+ };
5303
+ title: {
5304
+ type: "string";
5305
+ minLength: number;
5306
+ maxLength: number;
5307
+ description: string;
5308
+ };
5309
+ description: {
5310
+ type: "string";
5311
+ maxLength: number;
5312
+ description: string;
5313
+ };
5314
+ iconUrl: {
5315
+ type: "string";
5316
+ description: string;
5317
+ };
5318
+ readmeUrl: {
5319
+ type: "string";
5320
+ description: string;
5321
+ };
5322
+ public: {
5323
+ type: "boolean";
5324
+ description: string;
5325
+ };
5326
+ };
5327
+ required: string[];
5328
+ additionalProperties: false;
5329
+ };
5330
+ };
5331
+ required: string[];
5332
+ title: string;
5333
+ additionalProperties: false;
5334
+ };
5335
+ };
5336
+ };
5337
+ getPublicInterface: {
5338
+ name: string;
5339
+ description: string;
5340
+ method: "get";
5341
+ section: "hub";
5342
+ path: string;
5343
+ disableDefaultParameters: {
5344
+ "x-workspace-id": boolean;
5345
+ };
5346
+ parameters: {
5347
+ name: {
5348
+ type: "string";
5349
+ description: string;
5350
+ in: "path";
5351
+ };
5352
+ version: {
5353
+ type: "string";
5354
+ description: string;
5355
+ in: "path";
5356
+ };
5357
+ };
5358
+ response: {
5359
+ description: string;
5360
+ schema: {
5361
+ type: "object";
5362
+ properties: {
5363
+ interface: {
5364
+ type: "object";
5365
+ properties: {
5366
+ id: {
5367
+ type: "string";
5368
+ minLength: number;
5369
+ maxLength: number;
5370
+ description: string;
5371
+ };
5372
+ createdAt: {
5373
+ type: "string";
5374
+ format: string;
5375
+ description: string;
5376
+ };
5377
+ updatedAt: {
5378
+ type: "string";
5379
+ format: string;
5380
+ description: string;
5381
+ };
5382
+ name: {
5383
+ type: "string";
5384
+ maxLength: number;
5385
+ description: string;
5386
+ };
5387
+ version: {
5388
+ type: "string";
5389
+ maxLength: number;
5390
+ description: string;
5391
+ };
5392
+ entities: {
5393
+ type: "object";
5394
+ additionalProperties: {
5395
+ type: "object";
5396
+ properties: {
5397
+ title: {
5398
+ type: "string";
5399
+ maxLength: number;
5400
+ description: string;
5401
+ };
5402
+ description: {
5403
+ type: "string";
5404
+ maxLength: number;
5405
+ description: string;
5406
+ };
5407
+ schema: {
5408
+ type: "object";
5409
+ additionalProperties: true;
5410
+ };
5411
+ };
5412
+ required: string[];
5413
+ description: string;
5414
+ additionalProperties: false;
5415
+ };
5416
+ };
5417
+ events: {
5418
+ type: "object";
5419
+ additionalProperties: {
5420
+ type: "object";
5421
+ properties: {
5422
+ title: {
5423
+ type: "string";
5424
+ maxLength: number;
5425
+ description: string;
5426
+ };
5427
+ description: {
5428
+ type: "string";
5429
+ maxLength: number;
5430
+ description: string;
5431
+ };
5432
+ schema: {
5433
+ type: "object";
5434
+ additionalProperties: true;
5435
+ };
5436
+ attributes: {
5437
+ type: "object";
5438
+ additionalProperties: {
5439
+ type: "string";
5440
+ maxLength: number;
5441
+ };
5442
+ description: string;
5443
+ };
5444
+ };
5445
+ required: string[];
5446
+ description: string;
5447
+ additionalProperties: false;
5448
+ };
5449
+ };
5450
+ actions: {
5451
+ type: "object";
5452
+ additionalProperties: {
5453
+ type: "object";
5454
+ properties: {
5455
+ title: {
5456
+ type: "string";
5457
+ maxLength: number;
5458
+ description: string;
5459
+ };
5460
+ description: {
5461
+ type: "string";
5462
+ maxLength: number;
5463
+ description: string;
5464
+ };
5465
+ billable: {
5466
+ type: "boolean";
5467
+ };
5468
+ cacheable: {
5469
+ type: "boolean";
5470
+ };
5471
+ input: {
5472
+ type: "object";
5473
+ properties: {
5474
+ schema: {
5475
+ type: "object";
5476
+ additionalProperties: true;
5477
+ };
5478
+ };
5479
+ required: string[];
5480
+ additionalProperties: false;
5481
+ };
5482
+ output: {
5483
+ type: "object";
5484
+ properties: {
5485
+ schema: {
5486
+ type: "object";
5487
+ additionalProperties: true;
5488
+ };
5489
+ };
5490
+ required: string[];
5491
+ additionalProperties: false;
5492
+ };
5493
+ attributes: {
5494
+ type: "object";
5495
+ additionalProperties: {
5496
+ type: "string";
5497
+ maxLength: number;
5498
+ };
5499
+ description: string;
5500
+ };
5501
+ };
5502
+ required: string[];
5503
+ description: string;
5504
+ additionalProperties: false;
5505
+ };
5506
+ };
5507
+ channels: {
5508
+ type: "object";
5509
+ additionalProperties: {
5510
+ type: "object";
5511
+ properties: {
5512
+ title: {
5513
+ type: "string";
5514
+ maxLength: number;
5515
+ description: string;
5516
+ };
5517
+ description: {
5518
+ type: "string";
5519
+ maxLength: number;
5520
+ description: string;
5521
+ };
5522
+ messages: {
5523
+ type: "object";
5524
+ additionalProperties: {
5525
+ type: "object";
5526
+ properties: {
5527
+ schema: {
5528
+ type: "object";
5529
+ additionalProperties: true;
5530
+ };
5531
+ };
5532
+ required: string[];
5533
+ description: string;
5534
+ additionalProperties: false;
5535
+ };
5536
+ };
5537
+ };
5538
+ required: string[];
5539
+ additionalProperties: false;
5540
+ };
5541
+ };
5542
+ nameTemplate: {
5543
+ type: "object";
5544
+ properties: {
5545
+ script: {
5546
+ type: "string";
5547
+ maxLength: number;
5548
+ };
5549
+ language: {
5550
+ type: "string";
5551
+ maxLength: number;
5552
+ };
5553
+ };
5554
+ required: string[];
5555
+ description: string;
5556
+ additionalProperties: false;
5557
+ };
5558
+ title: {
5559
+ type: "string";
5560
+ minLength: number;
5561
+ maxLength: number;
5562
+ description: string;
5563
+ };
5564
+ description: {
5565
+ type: "string";
5566
+ maxLength: number;
5567
+ description: string;
5568
+ };
5569
+ iconUrl: {
5570
+ type: "string";
5571
+ description: string;
5572
+ };
5573
+ readmeUrl: {
5574
+ type: "string";
5575
+ description: string;
5576
+ };
5577
+ public: {
5578
+ type: "boolean";
5579
+ description: string;
5580
+ };
5581
+ };
5582
+ required: string[];
5583
+ additionalProperties: false;
5584
+ };
5585
+ };
5586
+ required: string[];
5587
+ title: string;
5588
+ additionalProperties: false;
5589
+ };
5590
+ };
5591
+ };
4981
5592
  createBot: {
4982
5593
  name: string;
4983
5594
  description: string;
@@ -11646,6 +12257,11 @@ export declare const state: {
11646
12257
  type: "string";
11647
12258
  description: string;
11648
12259
  };
12260
+ version: {
12261
+ in: "query";
12262
+ type: "string";
12263
+ description: string;
12264
+ };
11649
12265
  };
11650
12266
  response: {
11651
12267
  description: string;
@@ -12810,12 +13426,34 @@ export declare const state: {
12810
13426
  items: {
12811
13427
  type: "object";
12812
13428
  properties: {
13429
+ key: {
13430
+ type: "string";
13431
+ };
12813
13432
  date: {
12814
13433
  type: "string";
12815
13434
  };
12816
13435
  value: {
12817
13436
  type: "number";
12818
13437
  };
13438
+ metadata: {
13439
+ type: "object";
13440
+ properties: {
13441
+ botId: {
13442
+ type: "string";
13443
+ };
13444
+ type: {
13445
+ type: "string";
13446
+ enum: string[];
13447
+ };
13448
+ subtype: {
13449
+ type: "string";
13450
+ };
13451
+ source: {
13452
+ type: "string";
13453
+ };
13454
+ };
13455
+ required: string[];
13456
+ };
12819
13457
  };
12820
13458
  required: string[];
12821
13459
  };
@@ -15558,6 +16196,9 @@ export declare const state: {
15558
16196
  getPublicPluginByIdResponse: true;
15559
16197
  getPublicPluginResponse: true;
15560
16198
  getPublicPluginCodeResponse: true;
16199
+ listPublicInterfacesResponse: true;
16200
+ getPublicInterfaceByIdResponse: true;
16201
+ getPublicInterfaceResponse: true;
15561
16202
  createBotResponse: true;
15562
16203
  updateBotResponse: true;
15563
16204
  transferBotResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {