@botpress/cognitive 0.1.15 → 0.1.16

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,19 +1,19 @@
1
1
 
2
- > @botpress/cognitive@0.1.15 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.1.16 build /home/runner/work/botpress/botpress/packages/cognitive
3
3
  > pnpm build:type && pnpm build:neutral && size-limit
4
4
 
5
5
 
6
- > @botpress/cognitive@0.1.15 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.1.16 build:type /home/runner/work/botpress/botpress/packages/cognitive
7
7
  > tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
8
8
 
9
9
  CLI Building entry: ./src/index.ts
10
10
  CLI Using tsconfig: tsconfig.build.json
11
11
  CLI tsup v8.0.2
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 10556ms
14
- DTS dist/index.d.ts 525.26 KB
13
+ DTS ⚡️ Build success in 9136ms
14
+ DTS dist/index.d.ts 539.34 KB
15
15
 
16
- > @botpress/cognitive@0.1.15 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.1.16 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
17
17
  > ts-node -T ./build.ts --neutral
18
18
 
19
19
  Done
package/dist/index.d.ts CHANGED
@@ -5058,6 +5058,471 @@ interface GetPublicIntegrationResponse {
5058
5058
  };
5059
5059
  }
5060
5060
 
5061
+ interface ListPublicPluginsRequestHeaders {
5062
+ }
5063
+ interface ListPublicPluginsRequestQuery {
5064
+ nextToken?: string;
5065
+ name?: string;
5066
+ version?: string;
5067
+ }
5068
+ interface ListPublicPluginsRequestParams {
5069
+ }
5070
+ interface ListPublicPluginsRequestBody {
5071
+ }
5072
+ type ListPublicPluginsInput = ListPublicPluginsRequestBody & ListPublicPluginsRequestHeaders & ListPublicPluginsRequestQuery & ListPublicPluginsRequestParams;
5073
+ interface ListPublicPluginsResponse {
5074
+ plugins: {
5075
+ /**
5076
+ * ID of the [Plugin](#schema_plugin)
5077
+ */
5078
+ id: string;
5079
+ /**
5080
+ * Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
5081
+ */
5082
+ createdAt: string;
5083
+ /**
5084
+ * Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
5085
+ */
5086
+ updatedAt: string;
5087
+ /**
5088
+ * Name of the [Plugin](#schema_plugin)
5089
+ */
5090
+ name: string;
5091
+ /**
5092
+ * Version of the [Plugin](#schema_plugin)
5093
+ */
5094
+ version: string;
5095
+ /**
5096
+ * Title of the plugin. This is the name that will be displayed in the UI
5097
+ */
5098
+ title: string;
5099
+ /**
5100
+ * Description of the plugin. This is the description that will be displayed in the UI
5101
+ */
5102
+ description: string;
5103
+ /**
5104
+ * URL of the icon of the plugin. This is the icon that will be displayed in the UI
5105
+ */
5106
+ iconUrl: string;
5107
+ /**
5108
+ * URL of the readme of the plugin. This is the readme that will be displayed in the UI
5109
+ */
5110
+ readmeUrl: string;
5111
+ /**
5112
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5113
+ */
5114
+ public: boolean;
5115
+ }[];
5116
+ meta: {
5117
+ /**
5118
+ * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
5119
+ */
5120
+ nextToken?: string;
5121
+ };
5122
+ }
5123
+
5124
+ interface GetPublicPluginByIdRequestHeaders {
5125
+ }
5126
+ interface GetPublicPluginByIdRequestQuery {
5127
+ }
5128
+ interface GetPublicPluginByIdRequestParams {
5129
+ id: string;
5130
+ }
5131
+ interface GetPublicPluginByIdRequestBody {
5132
+ }
5133
+ type GetPublicPluginByIdInput = GetPublicPluginByIdRequestBody & GetPublicPluginByIdRequestHeaders & GetPublicPluginByIdRequestQuery & GetPublicPluginByIdRequestParams;
5134
+ interface GetPublicPluginByIdResponse {
5135
+ plugin: {
5136
+ /**
5137
+ * ID of the [Plugin](#schema_plugin)
5138
+ */
5139
+ id: string;
5140
+ /**
5141
+ * Name of the [Plugin](#schema_plugin)
5142
+ */
5143
+ name: string;
5144
+ /**
5145
+ * Version of the [Plugin](#schema_plugin)
5146
+ */
5147
+ version: string;
5148
+ /**
5149
+ * Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
5150
+ */
5151
+ createdAt: string;
5152
+ /**
5153
+ * Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
5154
+ */
5155
+ updatedAt: string;
5156
+ /**
5157
+ * Configuration definition
5158
+ */
5159
+ configuration: {
5160
+ /**
5161
+ * Title of the configuration
5162
+ */
5163
+ title?: string;
5164
+ /**
5165
+ * Description of the configuration
5166
+ */
5167
+ description?: string;
5168
+ /**
5169
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
5170
+ */
5171
+ schema: {
5172
+ [k: string]: any;
5173
+ };
5174
+ };
5175
+ states: {
5176
+ [k: string]: {
5177
+ /**
5178
+ * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
5179
+ */
5180
+ type: "conversation" | "user" | "bot" | "task";
5181
+ /**
5182
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
5183
+ */
5184
+ schema: {
5185
+ [k: string]: any;
5186
+ };
5187
+ /**
5188
+ * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
5189
+ */
5190
+ expiry?: number;
5191
+ };
5192
+ };
5193
+ events: {
5194
+ /**
5195
+ * Event Definition
5196
+ */
5197
+ [k: string]: {
5198
+ /**
5199
+ * Title of the event
5200
+ */
5201
+ title?: string;
5202
+ /**
5203
+ * Description of the event
5204
+ */
5205
+ description?: string;
5206
+ schema: {
5207
+ [k: string]: any;
5208
+ };
5209
+ };
5210
+ };
5211
+ actions: {
5212
+ /**
5213
+ * Action definition
5214
+ */
5215
+ [k: string]: {
5216
+ /**
5217
+ * Title of the action
5218
+ */
5219
+ title?: string;
5220
+ /**
5221
+ * Description of the action
5222
+ */
5223
+ description?: string;
5224
+ billable?: boolean;
5225
+ cacheable?: boolean;
5226
+ input: {
5227
+ schema: {
5228
+ [k: string]: any;
5229
+ };
5230
+ };
5231
+ output: {
5232
+ schema: {
5233
+ [k: string]: any;
5234
+ };
5235
+ };
5236
+ };
5237
+ };
5238
+ dependencies: {
5239
+ interfaces: {
5240
+ [k: string]: {
5241
+ id: string;
5242
+ name: string;
5243
+ version: string;
5244
+ };
5245
+ };
5246
+ integrations: {
5247
+ [k: string]: {
5248
+ id: string;
5249
+ name: string;
5250
+ version: string;
5251
+ };
5252
+ };
5253
+ };
5254
+ /**
5255
+ * User object configuration
5256
+ */
5257
+ user: {
5258
+ tags: {
5259
+ /**
5260
+ * Definition of a tag that can be provided on the object
5261
+ */
5262
+ [k: string]: {
5263
+ /**
5264
+ * Title of the tag
5265
+ */
5266
+ title?: string;
5267
+ /**
5268
+ * Description of the tag
5269
+ */
5270
+ description?: string;
5271
+ };
5272
+ };
5273
+ };
5274
+ /**
5275
+ * Conversation object configuration
5276
+ */
5277
+ conversation: {
5278
+ tags: {
5279
+ /**
5280
+ * Definition of a tag that can be provided on the object
5281
+ */
5282
+ [k: string]: {
5283
+ /**
5284
+ * Title of the tag
5285
+ */
5286
+ title?: string;
5287
+ /**
5288
+ * Description of the tag
5289
+ */
5290
+ description?: string;
5291
+ };
5292
+ };
5293
+ };
5294
+ /**
5295
+ * Title of the plugin. This is the name that will be displayed in the UI
5296
+ */
5297
+ title: string;
5298
+ /**
5299
+ * Description of the plugin. This is the description that will be displayed in the UI
5300
+ */
5301
+ description: string;
5302
+ /**
5303
+ * URL of the icon of the plugin. This is the icon that will be displayed in the UI
5304
+ */
5305
+ iconUrl: string;
5306
+ /**
5307
+ * URL of the readme of the plugin. This is the readme that will be displayed in the UI
5308
+ */
5309
+ readmeUrl: string;
5310
+ /**
5311
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5312
+ */
5313
+ public: boolean;
5314
+ };
5315
+ }
5316
+
5317
+ interface GetPublicPluginRequestHeaders {
5318
+ }
5319
+ interface GetPublicPluginRequestQuery {
5320
+ }
5321
+ interface GetPublicPluginRequestParams {
5322
+ name: string;
5323
+ version: string;
5324
+ }
5325
+ interface GetPublicPluginRequestBody {
5326
+ }
5327
+ type GetPublicPluginInput = GetPublicPluginRequestBody & GetPublicPluginRequestHeaders & GetPublicPluginRequestQuery & GetPublicPluginRequestParams;
5328
+ interface GetPublicPluginResponse {
5329
+ plugin: {
5330
+ /**
5331
+ * ID of the [Plugin](#schema_plugin)
5332
+ */
5333
+ id: string;
5334
+ /**
5335
+ * Name of the [Plugin](#schema_plugin)
5336
+ */
5337
+ name: string;
5338
+ /**
5339
+ * Version of the [Plugin](#schema_plugin)
5340
+ */
5341
+ version: string;
5342
+ /**
5343
+ * Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
5344
+ */
5345
+ createdAt: string;
5346
+ /**
5347
+ * Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
5348
+ */
5349
+ updatedAt: string;
5350
+ /**
5351
+ * Configuration definition
5352
+ */
5353
+ configuration: {
5354
+ /**
5355
+ * Title of the configuration
5356
+ */
5357
+ title?: string;
5358
+ /**
5359
+ * Description of the configuration
5360
+ */
5361
+ description?: string;
5362
+ /**
5363
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
5364
+ */
5365
+ schema: {
5366
+ [k: string]: any;
5367
+ };
5368
+ };
5369
+ states: {
5370
+ [k: string]: {
5371
+ /**
5372
+ * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
5373
+ */
5374
+ type: "conversation" | "user" | "bot" | "task";
5375
+ /**
5376
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
5377
+ */
5378
+ schema: {
5379
+ [k: string]: any;
5380
+ };
5381
+ /**
5382
+ * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
5383
+ */
5384
+ expiry?: number;
5385
+ };
5386
+ };
5387
+ events: {
5388
+ /**
5389
+ * Event Definition
5390
+ */
5391
+ [k: string]: {
5392
+ /**
5393
+ * Title of the event
5394
+ */
5395
+ title?: string;
5396
+ /**
5397
+ * Description of the event
5398
+ */
5399
+ description?: string;
5400
+ schema: {
5401
+ [k: string]: any;
5402
+ };
5403
+ };
5404
+ };
5405
+ actions: {
5406
+ /**
5407
+ * Action definition
5408
+ */
5409
+ [k: string]: {
5410
+ /**
5411
+ * Title of the action
5412
+ */
5413
+ title?: string;
5414
+ /**
5415
+ * Description of the action
5416
+ */
5417
+ description?: string;
5418
+ billable?: boolean;
5419
+ cacheable?: boolean;
5420
+ input: {
5421
+ schema: {
5422
+ [k: string]: any;
5423
+ };
5424
+ };
5425
+ output: {
5426
+ schema: {
5427
+ [k: string]: any;
5428
+ };
5429
+ };
5430
+ };
5431
+ };
5432
+ dependencies: {
5433
+ interfaces: {
5434
+ [k: string]: {
5435
+ id: string;
5436
+ name: string;
5437
+ version: string;
5438
+ };
5439
+ };
5440
+ integrations: {
5441
+ [k: string]: {
5442
+ id: string;
5443
+ name: string;
5444
+ version: string;
5445
+ };
5446
+ };
5447
+ };
5448
+ /**
5449
+ * User object configuration
5450
+ */
5451
+ user: {
5452
+ tags: {
5453
+ /**
5454
+ * Definition of a tag that can be provided on the object
5455
+ */
5456
+ [k: string]: {
5457
+ /**
5458
+ * Title of the tag
5459
+ */
5460
+ title?: string;
5461
+ /**
5462
+ * Description of the tag
5463
+ */
5464
+ description?: string;
5465
+ };
5466
+ };
5467
+ };
5468
+ /**
5469
+ * Conversation object configuration
5470
+ */
5471
+ conversation: {
5472
+ tags: {
5473
+ /**
5474
+ * Definition of a tag that can be provided on the object
5475
+ */
5476
+ [k: string]: {
5477
+ /**
5478
+ * Title of the tag
5479
+ */
5480
+ title?: string;
5481
+ /**
5482
+ * Description of the tag
5483
+ */
5484
+ description?: string;
5485
+ };
5486
+ };
5487
+ };
5488
+ /**
5489
+ * Title of the plugin. This is the name that will be displayed in the UI
5490
+ */
5491
+ title: string;
5492
+ /**
5493
+ * Description of the plugin. This is the description that will be displayed in the UI
5494
+ */
5495
+ description: string;
5496
+ /**
5497
+ * URL of the icon of the plugin. This is the icon that will be displayed in the UI
5498
+ */
5499
+ iconUrl: string;
5500
+ /**
5501
+ * URL of the readme of the plugin. This is the readme that will be displayed in the UI
5502
+ */
5503
+ readmeUrl: string;
5504
+ /**
5505
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5506
+ */
5507
+ public: boolean;
5508
+ };
5509
+ }
5510
+
5511
+ interface GetPublicPluginCodeRequestHeaders {
5512
+ }
5513
+ interface GetPublicPluginCodeRequestQuery {
5514
+ }
5515
+ interface GetPublicPluginCodeRequestParams {
5516
+ id: string;
5517
+ platform: "node" | "browser";
5518
+ }
5519
+ interface GetPublicPluginCodeRequestBody {
5520
+ }
5521
+ type GetPublicPluginCodeInput = GetPublicPluginCodeRequestBody & GetPublicPluginCodeRequestHeaders & GetPublicPluginCodeRequestQuery & GetPublicPluginCodeRequestParams;
5522
+ interface GetPublicPluginCodeResponse {
5523
+ code: string;
5524
+ }
5525
+
5061
5526
  interface CreateBotRequestHeaders {
5062
5527
  }
5063
5528
  interface CreateBotRequestQuery {
@@ -12232,6 +12697,7 @@ interface ListPluginsRequestHeaders {
12232
12697
  interface ListPluginsRequestQuery {
12233
12698
  nextToken?: string;
12234
12699
  name?: string;
12700
+ version?: string;
12235
12701
  }
12236
12702
  interface ListPluginsRequestParams {
12237
12703
  }
@@ -15146,6 +15612,10 @@ declare class Client$1 {
15146
15612
  readonly listPublicIntegrations: (input: ListPublicIntegrationsInput) => Promise<ListPublicIntegrationsResponse>;
15147
15613
  readonly getPublicIntegrationById: (input: GetPublicIntegrationByIdInput) => Promise<GetPublicIntegrationByIdResponse>;
15148
15614
  readonly getPublicIntegration: (input: GetPublicIntegrationInput) => Promise<GetPublicIntegrationResponse>;
15615
+ readonly listPublicPlugins: (input: ListPublicPluginsInput) => Promise<ListPublicPluginsResponse>;
15616
+ readonly getPublicPluginById: (input: GetPublicPluginByIdInput) => Promise<GetPublicPluginByIdResponse>;
15617
+ readonly getPublicPlugin: (input: GetPublicPluginInput) => Promise<GetPublicPluginResponse>;
15618
+ readonly getPublicPluginCode: (input: GetPublicPluginCodeInput) => Promise<GetPublicPluginCodeResponse>;
15149
15619
  readonly createBot: (input: CreateBotInput) => Promise<CreateBotResponse>;
15150
15620
  readonly updateBot: (input: UpdateBotInput) => Promise<UpdateBotResponse>;
15151
15621
  readonly transferBot: (input: TransferBotInput) => Promise<TransferBotResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",