@botpress/cognitive 0.1.29 → 0.1.31
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-build.log +5 -5
- package/dist/index.d.ts +554 -10
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cognitive@0.1.
|
|
2
|
+
> @botpress/cognitive@0.1.31 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.
|
|
6
|
+
> @botpress/cognitive@0.1.31 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
|
|
14
|
-
DTS dist/index.d.ts
|
|
13
|
+
DTS ⚡️ Build success in 3669ms
|
|
14
|
+
DTS dist/index.d.ts 604.87 KB
|
|
15
15
|
|
|
16
|
-
> @botpress/cognitive@0.1.
|
|
16
|
+
> @botpress/cognitive@0.1.31 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
|
@@ -3,8 +3,11 @@ import { Unsubscribe } from 'nanoevents';
|
|
|
3
3
|
type GenerateContentInput = {
|
|
4
4
|
/** Model to use for content generation */
|
|
5
5
|
model?: any;
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Reasoning effort level to use for models that support reasoning. Specifying "none" will indicate the LLM to not use reasoning (for models that support optional reasoning). A "dynamic" effort will indicate the provider to automatically determine the reasoning effort (if supported by the provider). If not provided the model will not use reasoning for models with optional reasoning or use the default reasoning effort specified by the provider for reasoning-only models.
|
|
8
|
+
* Note: A higher reasoning effort will incur in higher output token charges from the LLM provider.
|
|
9
|
+
*/
|
|
10
|
+
reasoningEffort?: 'low' | 'medium' | 'high' | 'dynamic' | 'none';
|
|
8
11
|
/** Optional system prompt to guide the model */
|
|
9
12
|
systemPrompt?: string;
|
|
10
13
|
/** Array of messages for the model to process */
|
|
@@ -4360,6 +4363,10 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
4360
4363
|
*/
|
|
4361
4364
|
messageExtractScript?: string;
|
|
4362
4365
|
};
|
|
4366
|
+
/**
|
|
4367
|
+
* Maximum execution time of the integration (in seconds).
|
|
4368
|
+
*/
|
|
4369
|
+
maxExecutionTime?: number;
|
|
4363
4370
|
/**
|
|
4364
4371
|
* URL of the [Integration](#schema_integration)
|
|
4365
4372
|
*/
|
|
@@ -4763,6 +4770,10 @@ interface GetPublicIntegrationResponse {
|
|
|
4763
4770
|
*/
|
|
4764
4771
|
messageExtractScript?: string;
|
|
4765
4772
|
};
|
|
4773
|
+
/**
|
|
4774
|
+
* Maximum execution time of the integration (in seconds).
|
|
4775
|
+
*/
|
|
4776
|
+
maxExecutionTime?: number;
|
|
4766
4777
|
/**
|
|
4767
4778
|
* URL of the [Integration](#schema_integration)
|
|
4768
4779
|
*/
|
|
@@ -5392,6 +5403,226 @@ interface GetPublicPluginByIdResponse {
|
|
|
5392
5403
|
};
|
|
5393
5404
|
}
|
|
5394
5405
|
|
|
5406
|
+
interface GetDereferencedPublicPluginByIdRequestHeaders {
|
|
5407
|
+
}
|
|
5408
|
+
interface GetDereferencedPublicPluginByIdRequestQuery {
|
|
5409
|
+
/**
|
|
5410
|
+
* Mapping of interface aliases to integration IDs
|
|
5411
|
+
*/
|
|
5412
|
+
interfaces: {
|
|
5413
|
+
/**
|
|
5414
|
+
* integration id
|
|
5415
|
+
*/
|
|
5416
|
+
[k: string]: string;
|
|
5417
|
+
};
|
|
5418
|
+
}
|
|
5419
|
+
interface GetDereferencedPublicPluginByIdRequestParams {
|
|
5420
|
+
id: string;
|
|
5421
|
+
}
|
|
5422
|
+
interface GetDereferencedPublicPluginByIdRequestBody {
|
|
5423
|
+
}
|
|
5424
|
+
type GetDereferencedPublicPluginByIdInput = GetDereferencedPublicPluginByIdRequestBody & GetDereferencedPublicPluginByIdRequestHeaders & GetDereferencedPublicPluginByIdRequestQuery & GetDereferencedPublicPluginByIdRequestParams;
|
|
5425
|
+
interface GetDereferencedPublicPluginByIdResponse {
|
|
5426
|
+
plugin: {
|
|
5427
|
+
/**
|
|
5428
|
+
* ID of the [Plugin](#schema_plugin)
|
|
5429
|
+
*/
|
|
5430
|
+
id: string;
|
|
5431
|
+
/**
|
|
5432
|
+
* Name of the [Plugin](#schema_plugin)
|
|
5433
|
+
*/
|
|
5434
|
+
name: string;
|
|
5435
|
+
/**
|
|
5436
|
+
* Version of the [Plugin](#schema_plugin)
|
|
5437
|
+
*/
|
|
5438
|
+
version: string;
|
|
5439
|
+
/**
|
|
5440
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
5441
|
+
*/
|
|
5442
|
+
createdAt: string;
|
|
5443
|
+
/**
|
|
5444
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
5445
|
+
*/
|
|
5446
|
+
updatedAt: string;
|
|
5447
|
+
/**
|
|
5448
|
+
* Configuration definition
|
|
5449
|
+
*/
|
|
5450
|
+
configuration: {
|
|
5451
|
+
/**
|
|
5452
|
+
* Title of the configuration
|
|
5453
|
+
*/
|
|
5454
|
+
title?: string;
|
|
5455
|
+
/**
|
|
5456
|
+
* Description of the configuration
|
|
5457
|
+
*/
|
|
5458
|
+
description?: string;
|
|
5459
|
+
/**
|
|
5460
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
5461
|
+
*/
|
|
5462
|
+
schema: {
|
|
5463
|
+
[k: string]: any;
|
|
5464
|
+
};
|
|
5465
|
+
};
|
|
5466
|
+
states: {
|
|
5467
|
+
[k: string]: {
|
|
5468
|
+
/**
|
|
5469
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
5470
|
+
*/
|
|
5471
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
5472
|
+
/**
|
|
5473
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
5474
|
+
*/
|
|
5475
|
+
schema: {
|
|
5476
|
+
[k: string]: any;
|
|
5477
|
+
};
|
|
5478
|
+
/**
|
|
5479
|
+
* 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.
|
|
5480
|
+
*/
|
|
5481
|
+
expiry?: number;
|
|
5482
|
+
};
|
|
5483
|
+
};
|
|
5484
|
+
events: {
|
|
5485
|
+
/**
|
|
5486
|
+
* Event Definition
|
|
5487
|
+
*/
|
|
5488
|
+
[k: string]: {
|
|
5489
|
+
/**
|
|
5490
|
+
* Title of the event
|
|
5491
|
+
*/
|
|
5492
|
+
title?: string;
|
|
5493
|
+
/**
|
|
5494
|
+
* Description of the event
|
|
5495
|
+
*/
|
|
5496
|
+
description?: string;
|
|
5497
|
+
schema: {
|
|
5498
|
+
[k: string]: any;
|
|
5499
|
+
};
|
|
5500
|
+
/**
|
|
5501
|
+
* Optional attributes
|
|
5502
|
+
*/
|
|
5503
|
+
attributes?: {
|
|
5504
|
+
[k: string]: string;
|
|
5505
|
+
};
|
|
5506
|
+
};
|
|
5507
|
+
};
|
|
5508
|
+
actions: {
|
|
5509
|
+
/**
|
|
5510
|
+
* Action definition
|
|
5511
|
+
*/
|
|
5512
|
+
[k: string]: {
|
|
5513
|
+
/**
|
|
5514
|
+
* Title of the action
|
|
5515
|
+
*/
|
|
5516
|
+
title?: string;
|
|
5517
|
+
/**
|
|
5518
|
+
* Description of the action
|
|
5519
|
+
*/
|
|
5520
|
+
description?: string;
|
|
5521
|
+
billable?: boolean;
|
|
5522
|
+
cacheable?: boolean;
|
|
5523
|
+
input: {
|
|
5524
|
+
schema: {
|
|
5525
|
+
[k: string]: any;
|
|
5526
|
+
};
|
|
5527
|
+
};
|
|
5528
|
+
output: {
|
|
5529
|
+
schema: {
|
|
5530
|
+
[k: string]: any;
|
|
5531
|
+
};
|
|
5532
|
+
};
|
|
5533
|
+
/**
|
|
5534
|
+
* Optional attributes
|
|
5535
|
+
*/
|
|
5536
|
+
attributes?: {
|
|
5537
|
+
[k: string]: string;
|
|
5538
|
+
};
|
|
5539
|
+
};
|
|
5540
|
+
};
|
|
5541
|
+
dependencies: {
|
|
5542
|
+
interfaces: {
|
|
5543
|
+
[k: string]: {
|
|
5544
|
+
id: string;
|
|
5545
|
+
name: string;
|
|
5546
|
+
version: string;
|
|
5547
|
+
};
|
|
5548
|
+
};
|
|
5549
|
+
integrations: {
|
|
5550
|
+
[k: string]: {
|
|
5551
|
+
id: string;
|
|
5552
|
+
name: string;
|
|
5553
|
+
version: string;
|
|
5554
|
+
};
|
|
5555
|
+
};
|
|
5556
|
+
};
|
|
5557
|
+
/**
|
|
5558
|
+
* User object configuration
|
|
5559
|
+
*/
|
|
5560
|
+
user: {
|
|
5561
|
+
tags: {
|
|
5562
|
+
/**
|
|
5563
|
+
* Definition of a tag that can be provided on the object
|
|
5564
|
+
*/
|
|
5565
|
+
[k: string]: {
|
|
5566
|
+
/**
|
|
5567
|
+
* Title of the tag
|
|
5568
|
+
*/
|
|
5569
|
+
title?: string;
|
|
5570
|
+
/**
|
|
5571
|
+
* Description of the tag
|
|
5572
|
+
*/
|
|
5573
|
+
description?: string;
|
|
5574
|
+
};
|
|
5575
|
+
};
|
|
5576
|
+
};
|
|
5577
|
+
/**
|
|
5578
|
+
* Conversation object configuration
|
|
5579
|
+
*/
|
|
5580
|
+
conversation: {
|
|
5581
|
+
tags: {
|
|
5582
|
+
/**
|
|
5583
|
+
* Definition of a tag that can be provided on the object
|
|
5584
|
+
*/
|
|
5585
|
+
[k: string]: {
|
|
5586
|
+
/**
|
|
5587
|
+
* Title of the tag
|
|
5588
|
+
*/
|
|
5589
|
+
title?: string;
|
|
5590
|
+
/**
|
|
5591
|
+
* Description of the tag
|
|
5592
|
+
*/
|
|
5593
|
+
description?: string;
|
|
5594
|
+
};
|
|
5595
|
+
};
|
|
5596
|
+
};
|
|
5597
|
+
/**
|
|
5598
|
+
* Optional attributes
|
|
5599
|
+
*/
|
|
5600
|
+
attributes?: {
|
|
5601
|
+
[k: string]: string;
|
|
5602
|
+
};
|
|
5603
|
+
/**
|
|
5604
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
5605
|
+
*/
|
|
5606
|
+
title: string;
|
|
5607
|
+
/**
|
|
5608
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
5609
|
+
*/
|
|
5610
|
+
description: string;
|
|
5611
|
+
/**
|
|
5612
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
5613
|
+
*/
|
|
5614
|
+
iconUrl: string;
|
|
5615
|
+
/**
|
|
5616
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
5617
|
+
*/
|
|
5618
|
+
readmeUrl: string;
|
|
5619
|
+
/**
|
|
5620
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
5621
|
+
*/
|
|
5622
|
+
public: boolean;
|
|
5623
|
+
};
|
|
5624
|
+
}
|
|
5625
|
+
|
|
5395
5626
|
interface GetPublicPluginRequestHeaders {
|
|
5396
5627
|
}
|
|
5397
5628
|
interface GetPublicPluginRequestQuery {
|
|
@@ -6360,6 +6591,10 @@ interface CreateBotResponse {
|
|
|
6360
6591
|
public: boolean;
|
|
6361
6592
|
};
|
|
6362
6593
|
};
|
|
6594
|
+
/**
|
|
6595
|
+
* Maximum execution time of the bot (in seconds).
|
|
6596
|
+
*/
|
|
6597
|
+
maxExecutionTime?: number;
|
|
6363
6598
|
/**
|
|
6364
6599
|
* User object configuration
|
|
6365
6600
|
*/
|
|
@@ -6637,6 +6872,10 @@ interface UpdateBotRequestBody {
|
|
|
6637
6872
|
[k: string]: string;
|
|
6638
6873
|
};
|
|
6639
6874
|
blocked?: boolean;
|
|
6875
|
+
/**
|
|
6876
|
+
* Maximum execution time (in seconds).
|
|
6877
|
+
*/
|
|
6878
|
+
maxExecutionTime?: number;
|
|
6640
6879
|
/**
|
|
6641
6880
|
* Indicates if the [Bot](#schema_bot) should be in always alive mode
|
|
6642
6881
|
*/
|
|
@@ -6775,6 +7014,10 @@ interface UpdateBotRequestBody {
|
|
|
6775
7014
|
integrations?: {
|
|
6776
7015
|
[k: string]: {
|
|
6777
7016
|
enabled?: boolean;
|
|
7017
|
+
/**
|
|
7018
|
+
* Integration's definition ID. If defined, the record's key is treated as an alias for the integration instance.
|
|
7019
|
+
*/
|
|
7020
|
+
integrationId?: string;
|
|
6778
7021
|
/**
|
|
6779
7022
|
* Integration's configuration type. Set to default if null.
|
|
6780
7023
|
*/
|
|
@@ -6973,6 +7216,10 @@ interface UpdateBotResponse {
|
|
|
6973
7216
|
public: boolean;
|
|
6974
7217
|
};
|
|
6975
7218
|
};
|
|
7219
|
+
/**
|
|
7220
|
+
* Maximum execution time of the bot (in seconds).
|
|
7221
|
+
*/
|
|
7222
|
+
maxExecutionTime?: number;
|
|
6976
7223
|
/**
|
|
6977
7224
|
* User object configuration
|
|
6978
7225
|
*/
|
|
@@ -7280,6 +7527,7 @@ interface ListBotsResponse {
|
|
|
7280
7527
|
interface GetBotRequestHeaders {
|
|
7281
7528
|
}
|
|
7282
7529
|
interface GetBotRequestQuery {
|
|
7530
|
+
shouldMergePlugins?: boolean;
|
|
7283
7531
|
}
|
|
7284
7532
|
interface GetBotRequestParams {
|
|
7285
7533
|
id: string;
|
|
@@ -7425,6 +7673,10 @@ interface GetBotResponse {
|
|
|
7425
7673
|
public: boolean;
|
|
7426
7674
|
};
|
|
7427
7675
|
};
|
|
7676
|
+
/**
|
|
7677
|
+
* Maximum execution time of the bot (in seconds).
|
|
7678
|
+
*/
|
|
7679
|
+
maxExecutionTime?: number;
|
|
7428
7680
|
/**
|
|
7429
7681
|
* User object configuration
|
|
7430
7682
|
*/
|
|
@@ -8680,6 +8932,34 @@ interface GetAuditRecordsResponse {
|
|
|
8680
8932
|
};
|
|
8681
8933
|
}
|
|
8682
8934
|
|
|
8935
|
+
interface SetWorkspacePreferenceRequestHeaders {
|
|
8936
|
+
}
|
|
8937
|
+
interface SetWorkspacePreferenceRequestQuery {
|
|
8938
|
+
}
|
|
8939
|
+
interface SetWorkspacePreferenceRequestParams {
|
|
8940
|
+
key: string;
|
|
8941
|
+
}
|
|
8942
|
+
interface SetWorkspacePreferenceRequestBody {
|
|
8943
|
+
value?: any;
|
|
8944
|
+
}
|
|
8945
|
+
type SetWorkspacePreferenceInput = SetWorkspacePreferenceRequestBody & SetWorkspacePreferenceRequestHeaders & SetWorkspacePreferenceRequestQuery & SetWorkspacePreferenceRequestParams;
|
|
8946
|
+
interface SetWorkspacePreferenceResponse {
|
|
8947
|
+
}
|
|
8948
|
+
|
|
8949
|
+
interface GetWorkspacePreferenceRequestHeaders {
|
|
8950
|
+
}
|
|
8951
|
+
interface GetWorkspacePreferenceRequestQuery {
|
|
8952
|
+
}
|
|
8953
|
+
interface GetWorkspacePreferenceRequestParams {
|
|
8954
|
+
key: string;
|
|
8955
|
+
}
|
|
8956
|
+
interface GetWorkspacePreferenceRequestBody {
|
|
8957
|
+
}
|
|
8958
|
+
type GetWorkspacePreferenceInput = GetWorkspacePreferenceRequestBody & GetWorkspacePreferenceRequestHeaders & GetWorkspacePreferenceRequestQuery & GetWorkspacePreferenceRequestParams;
|
|
8959
|
+
interface GetWorkspacePreferenceResponse {
|
|
8960
|
+
value?: any;
|
|
8961
|
+
}
|
|
8962
|
+
|
|
8683
8963
|
interface ListWorkspaceMembersRequestHeaders {
|
|
8684
8964
|
}
|
|
8685
8965
|
interface ListWorkspaceMembersRequestQuery {
|
|
@@ -9128,9 +9408,13 @@ interface CreateIntegrationRequestBody {
|
|
|
9128
9408
|
};
|
|
9129
9409
|
};
|
|
9130
9410
|
/**
|
|
9131
|
-
* **EXPERIMENTAL**
|
|
9411
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
9132
9412
|
*/
|
|
9133
|
-
|
|
9413
|
+
extraOperations?: {
|
|
9414
|
+
[k: string]: {
|
|
9415
|
+
enabled: boolean;
|
|
9416
|
+
};
|
|
9417
|
+
};
|
|
9134
9418
|
/**
|
|
9135
9419
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
9136
9420
|
*/
|
|
@@ -9209,6 +9493,10 @@ interface CreateIntegrationResponse {
|
|
|
9209
9493
|
*/
|
|
9210
9494
|
messageExtractScript?: string;
|
|
9211
9495
|
};
|
|
9496
|
+
/**
|
|
9497
|
+
* Maximum execution time of the integration (in seconds).
|
|
9498
|
+
*/
|
|
9499
|
+
maxExecutionTime?: number;
|
|
9212
9500
|
/**
|
|
9213
9501
|
* URL of the [Integration](#schema_integration)
|
|
9214
9502
|
*/
|
|
@@ -9848,9 +10136,13 @@ interface ValidateIntegrationCreationRequestBody {
|
|
|
9848
10136
|
};
|
|
9849
10137
|
};
|
|
9850
10138
|
/**
|
|
9851
|
-
* **EXPERIMENTAL**
|
|
10139
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
9852
10140
|
*/
|
|
9853
|
-
|
|
10141
|
+
extraOperations?: {
|
|
10142
|
+
[k: string]: {
|
|
10143
|
+
enabled: boolean;
|
|
10144
|
+
};
|
|
10145
|
+
};
|
|
9854
10146
|
/**
|
|
9855
10147
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
9856
10148
|
*/
|
|
@@ -9952,9 +10244,13 @@ interface UpdateIntegrationRequestBody {
|
|
|
9952
10244
|
} | null;
|
|
9953
10245
|
};
|
|
9954
10246
|
/**
|
|
9955
|
-
* **EXPERIMENTAL**
|
|
10247
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
9956
10248
|
*/
|
|
9957
|
-
|
|
10249
|
+
extraOperations?: {
|
|
10250
|
+
[k: string]: {
|
|
10251
|
+
enabled: boolean;
|
|
10252
|
+
};
|
|
10253
|
+
};
|
|
9958
10254
|
channels?: {
|
|
9959
10255
|
[k: string]: {
|
|
9960
10256
|
/**
|
|
@@ -10024,6 +10320,10 @@ interface UpdateIntegrationRequestBody {
|
|
|
10024
10320
|
};
|
|
10025
10321
|
} | null;
|
|
10026
10322
|
};
|
|
10323
|
+
/**
|
|
10324
|
+
* Maximum execution time of the integration (in seconds).
|
|
10325
|
+
*/
|
|
10326
|
+
maxExecutionTime?: number;
|
|
10027
10327
|
identifier?: {
|
|
10028
10328
|
extractScript?: string | null;
|
|
10029
10329
|
fallbackHandlerScript?: string | null;
|
|
@@ -10252,6 +10552,10 @@ interface UpdateIntegrationResponse {
|
|
|
10252
10552
|
*/
|
|
10253
10553
|
messageExtractScript?: string;
|
|
10254
10554
|
};
|
|
10555
|
+
/**
|
|
10556
|
+
* Maximum execution time of the integration (in seconds).
|
|
10557
|
+
*/
|
|
10558
|
+
maxExecutionTime?: number;
|
|
10255
10559
|
/**
|
|
10256
10560
|
* URL of the [Integration](#schema_integration)
|
|
10257
10561
|
*/
|
|
@@ -10655,9 +10959,13 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
10655
10959
|
} | null;
|
|
10656
10960
|
};
|
|
10657
10961
|
/**
|
|
10658
|
-
* **EXPERIMENTAL**
|
|
10962
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
10659
10963
|
*/
|
|
10660
|
-
|
|
10964
|
+
extraOperations?: {
|
|
10965
|
+
[k: string]: {
|
|
10966
|
+
enabled: boolean;
|
|
10967
|
+
};
|
|
10968
|
+
};
|
|
10661
10969
|
channels?: {
|
|
10662
10970
|
[k: string]: {
|
|
10663
10971
|
/**
|
|
@@ -10727,6 +11035,10 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
10727
11035
|
};
|
|
10728
11036
|
} | null;
|
|
10729
11037
|
};
|
|
11038
|
+
/**
|
|
11039
|
+
* Maximum execution time of the integration (in seconds).
|
|
11040
|
+
*/
|
|
11041
|
+
maxExecutionTime?: number;
|
|
10730
11042
|
identifier?: {
|
|
10731
11043
|
extractScript?: string | null;
|
|
10732
11044
|
fallbackHandlerScript?: string | null;
|
|
@@ -11071,6 +11383,10 @@ interface GetIntegrationResponse {
|
|
|
11071
11383
|
*/
|
|
11072
11384
|
messageExtractScript?: string;
|
|
11073
11385
|
};
|
|
11386
|
+
/**
|
|
11387
|
+
* Maximum execution time of the integration (in seconds).
|
|
11388
|
+
*/
|
|
11389
|
+
maxExecutionTime?: number;
|
|
11074
11390
|
/**
|
|
11075
11391
|
* URL of the [Integration](#schema_integration)
|
|
11076
11392
|
*/
|
|
@@ -11494,6 +11810,10 @@ interface GetIntegrationByNameResponse {
|
|
|
11494
11810
|
*/
|
|
11495
11811
|
messageExtractScript?: string;
|
|
11496
11812
|
};
|
|
11813
|
+
/**
|
|
11814
|
+
* Maximum execution time of the integration (in seconds).
|
|
11815
|
+
*/
|
|
11816
|
+
maxExecutionTime?: number;
|
|
11497
11817
|
/**
|
|
11498
11818
|
* URL of the [Integration](#schema_integration)
|
|
11499
11819
|
*/
|
|
@@ -13475,6 +13795,226 @@ interface GetPluginResponse {
|
|
|
13475
13795
|
};
|
|
13476
13796
|
}
|
|
13477
13797
|
|
|
13798
|
+
interface GetDereferencedPluginRequestHeaders {
|
|
13799
|
+
}
|
|
13800
|
+
interface GetDereferencedPluginRequestQuery {
|
|
13801
|
+
/**
|
|
13802
|
+
* Mapping of interface aliases to integration IDs
|
|
13803
|
+
*/
|
|
13804
|
+
interfaces: {
|
|
13805
|
+
/**
|
|
13806
|
+
* integration id
|
|
13807
|
+
*/
|
|
13808
|
+
[k: string]: string;
|
|
13809
|
+
};
|
|
13810
|
+
}
|
|
13811
|
+
interface GetDereferencedPluginRequestParams {
|
|
13812
|
+
id: string;
|
|
13813
|
+
}
|
|
13814
|
+
interface GetDereferencedPluginRequestBody {
|
|
13815
|
+
}
|
|
13816
|
+
type GetDereferencedPluginInput = GetDereferencedPluginRequestBody & GetDereferencedPluginRequestHeaders & GetDereferencedPluginRequestQuery & GetDereferencedPluginRequestParams;
|
|
13817
|
+
interface GetDereferencedPluginResponse {
|
|
13818
|
+
plugin: {
|
|
13819
|
+
/**
|
|
13820
|
+
* ID of the [Plugin](#schema_plugin)
|
|
13821
|
+
*/
|
|
13822
|
+
id: string;
|
|
13823
|
+
/**
|
|
13824
|
+
* Name of the [Plugin](#schema_plugin)
|
|
13825
|
+
*/
|
|
13826
|
+
name: string;
|
|
13827
|
+
/**
|
|
13828
|
+
* Version of the [Plugin](#schema_plugin)
|
|
13829
|
+
*/
|
|
13830
|
+
version: string;
|
|
13831
|
+
/**
|
|
13832
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
13833
|
+
*/
|
|
13834
|
+
createdAt: string;
|
|
13835
|
+
/**
|
|
13836
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
13837
|
+
*/
|
|
13838
|
+
updatedAt: string;
|
|
13839
|
+
/**
|
|
13840
|
+
* Configuration definition
|
|
13841
|
+
*/
|
|
13842
|
+
configuration: {
|
|
13843
|
+
/**
|
|
13844
|
+
* Title of the configuration
|
|
13845
|
+
*/
|
|
13846
|
+
title?: string;
|
|
13847
|
+
/**
|
|
13848
|
+
* Description of the configuration
|
|
13849
|
+
*/
|
|
13850
|
+
description?: string;
|
|
13851
|
+
/**
|
|
13852
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
13853
|
+
*/
|
|
13854
|
+
schema: {
|
|
13855
|
+
[k: string]: any;
|
|
13856
|
+
};
|
|
13857
|
+
};
|
|
13858
|
+
states: {
|
|
13859
|
+
[k: string]: {
|
|
13860
|
+
/**
|
|
13861
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
13862
|
+
*/
|
|
13863
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
13864
|
+
/**
|
|
13865
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
13866
|
+
*/
|
|
13867
|
+
schema: {
|
|
13868
|
+
[k: string]: any;
|
|
13869
|
+
};
|
|
13870
|
+
/**
|
|
13871
|
+
* 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.
|
|
13872
|
+
*/
|
|
13873
|
+
expiry?: number;
|
|
13874
|
+
};
|
|
13875
|
+
};
|
|
13876
|
+
events: {
|
|
13877
|
+
/**
|
|
13878
|
+
* Event Definition
|
|
13879
|
+
*/
|
|
13880
|
+
[k: string]: {
|
|
13881
|
+
/**
|
|
13882
|
+
* Title of the event
|
|
13883
|
+
*/
|
|
13884
|
+
title?: string;
|
|
13885
|
+
/**
|
|
13886
|
+
* Description of the event
|
|
13887
|
+
*/
|
|
13888
|
+
description?: string;
|
|
13889
|
+
schema: {
|
|
13890
|
+
[k: string]: any;
|
|
13891
|
+
};
|
|
13892
|
+
/**
|
|
13893
|
+
* Optional attributes
|
|
13894
|
+
*/
|
|
13895
|
+
attributes?: {
|
|
13896
|
+
[k: string]: string;
|
|
13897
|
+
};
|
|
13898
|
+
};
|
|
13899
|
+
};
|
|
13900
|
+
actions: {
|
|
13901
|
+
/**
|
|
13902
|
+
* Action definition
|
|
13903
|
+
*/
|
|
13904
|
+
[k: string]: {
|
|
13905
|
+
/**
|
|
13906
|
+
* Title of the action
|
|
13907
|
+
*/
|
|
13908
|
+
title?: string;
|
|
13909
|
+
/**
|
|
13910
|
+
* Description of the action
|
|
13911
|
+
*/
|
|
13912
|
+
description?: string;
|
|
13913
|
+
billable?: boolean;
|
|
13914
|
+
cacheable?: boolean;
|
|
13915
|
+
input: {
|
|
13916
|
+
schema: {
|
|
13917
|
+
[k: string]: any;
|
|
13918
|
+
};
|
|
13919
|
+
};
|
|
13920
|
+
output: {
|
|
13921
|
+
schema: {
|
|
13922
|
+
[k: string]: any;
|
|
13923
|
+
};
|
|
13924
|
+
};
|
|
13925
|
+
/**
|
|
13926
|
+
* Optional attributes
|
|
13927
|
+
*/
|
|
13928
|
+
attributes?: {
|
|
13929
|
+
[k: string]: string;
|
|
13930
|
+
};
|
|
13931
|
+
};
|
|
13932
|
+
};
|
|
13933
|
+
dependencies: {
|
|
13934
|
+
interfaces: {
|
|
13935
|
+
[k: string]: {
|
|
13936
|
+
id: string;
|
|
13937
|
+
name: string;
|
|
13938
|
+
version: string;
|
|
13939
|
+
};
|
|
13940
|
+
};
|
|
13941
|
+
integrations: {
|
|
13942
|
+
[k: string]: {
|
|
13943
|
+
id: string;
|
|
13944
|
+
name: string;
|
|
13945
|
+
version: string;
|
|
13946
|
+
};
|
|
13947
|
+
};
|
|
13948
|
+
};
|
|
13949
|
+
/**
|
|
13950
|
+
* User object configuration
|
|
13951
|
+
*/
|
|
13952
|
+
user: {
|
|
13953
|
+
tags: {
|
|
13954
|
+
/**
|
|
13955
|
+
* Definition of a tag that can be provided on the object
|
|
13956
|
+
*/
|
|
13957
|
+
[k: string]: {
|
|
13958
|
+
/**
|
|
13959
|
+
* Title of the tag
|
|
13960
|
+
*/
|
|
13961
|
+
title?: string;
|
|
13962
|
+
/**
|
|
13963
|
+
* Description of the tag
|
|
13964
|
+
*/
|
|
13965
|
+
description?: string;
|
|
13966
|
+
};
|
|
13967
|
+
};
|
|
13968
|
+
};
|
|
13969
|
+
/**
|
|
13970
|
+
* Conversation object configuration
|
|
13971
|
+
*/
|
|
13972
|
+
conversation: {
|
|
13973
|
+
tags: {
|
|
13974
|
+
/**
|
|
13975
|
+
* Definition of a tag that can be provided on the object
|
|
13976
|
+
*/
|
|
13977
|
+
[k: string]: {
|
|
13978
|
+
/**
|
|
13979
|
+
* Title of the tag
|
|
13980
|
+
*/
|
|
13981
|
+
title?: string;
|
|
13982
|
+
/**
|
|
13983
|
+
* Description of the tag
|
|
13984
|
+
*/
|
|
13985
|
+
description?: string;
|
|
13986
|
+
};
|
|
13987
|
+
};
|
|
13988
|
+
};
|
|
13989
|
+
/**
|
|
13990
|
+
* Optional attributes
|
|
13991
|
+
*/
|
|
13992
|
+
attributes?: {
|
|
13993
|
+
[k: string]: string;
|
|
13994
|
+
};
|
|
13995
|
+
/**
|
|
13996
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
13997
|
+
*/
|
|
13998
|
+
title: string;
|
|
13999
|
+
/**
|
|
14000
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
14001
|
+
*/
|
|
14002
|
+
description: string;
|
|
14003
|
+
/**
|
|
14004
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
14005
|
+
*/
|
|
14006
|
+
iconUrl: string;
|
|
14007
|
+
/**
|
|
14008
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
14009
|
+
*/
|
|
14010
|
+
readmeUrl: string;
|
|
14011
|
+
/**
|
|
14012
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
14013
|
+
*/
|
|
14014
|
+
public: boolean;
|
|
14015
|
+
};
|
|
14016
|
+
}
|
|
14017
|
+
|
|
13478
14018
|
interface GetPluginByNameRequestHeaders {
|
|
13479
14019
|
}
|
|
13480
14020
|
interface GetPluginByNameRequestQuery {
|
|
@@ -17093,6 +17633,7 @@ declare class Client$1 {
|
|
|
17093
17633
|
readonly getPublicIntegration: (input: GetPublicIntegrationInput) => Promise<GetPublicIntegrationResponse>;
|
|
17094
17634
|
readonly listPublicPlugins: (input: ListPublicPluginsInput) => Promise<ListPublicPluginsResponse>;
|
|
17095
17635
|
readonly getPublicPluginById: (input: GetPublicPluginByIdInput) => Promise<GetPublicPluginByIdResponse>;
|
|
17636
|
+
readonly getDereferencedPublicPluginById: (input: GetDereferencedPublicPluginByIdInput) => Promise<GetDereferencedPublicPluginByIdResponse>;
|
|
17096
17637
|
readonly getPublicPlugin: (input: GetPublicPluginInput) => Promise<GetPublicPluginResponse>;
|
|
17097
17638
|
readonly getPublicPluginCode: (input: GetPublicPluginCodeInput) => Promise<GetPublicPluginCodeResponse>;
|
|
17098
17639
|
readonly listPublicInterfaces: (input: ListPublicInterfacesInput) => Promise<ListPublicInterfacesResponse>;
|
|
@@ -17142,6 +17683,8 @@ declare class Client$1 {
|
|
|
17142
17683
|
readonly listPublicWorkspaces: (input: ListPublicWorkspacesInput) => Promise<ListPublicWorkspacesResponse>;
|
|
17143
17684
|
readonly deleteWorkspace: (input: DeleteWorkspaceInput) => Promise<DeleteWorkspaceResponse>;
|
|
17144
17685
|
readonly getAuditRecords: (input: GetAuditRecordsInput) => Promise<GetAuditRecordsResponse>;
|
|
17686
|
+
readonly setWorkspacePreference: (input: SetWorkspacePreferenceInput) => Promise<SetWorkspacePreferenceResponse>;
|
|
17687
|
+
readonly getWorkspacePreference: (input: GetWorkspacePreferenceInput) => Promise<GetWorkspacePreferenceResponse>;
|
|
17145
17688
|
readonly listWorkspaceMembers: (input: ListWorkspaceMembersInput) => Promise<ListWorkspaceMembersResponse>;
|
|
17146
17689
|
readonly getWorkspaceMember: (input: GetWorkspaceMemberInput) => Promise<GetWorkspaceMemberResponse>;
|
|
17147
17690
|
readonly deleteWorkspaceMember: (input: DeleteWorkspaceMemberInput) => Promise<DeleteWorkspaceMemberResponse>;
|
|
@@ -17168,6 +17711,7 @@ declare class Client$1 {
|
|
|
17168
17711
|
readonly listInterfaces: (input: ListInterfacesInput) => Promise<ListInterfacesResponse>;
|
|
17169
17712
|
readonly createPlugin: (input: CreatePluginInput) => Promise<CreatePluginResponse>;
|
|
17170
17713
|
readonly getPlugin: (input: GetPluginInput) => Promise<GetPluginResponse>;
|
|
17714
|
+
readonly getDereferencedPlugin: (input: GetDereferencedPluginInput) => Promise<GetDereferencedPluginResponse>;
|
|
17171
17715
|
readonly getPluginByName: (input: GetPluginByNameInput) => Promise<GetPluginByNameResponse>;
|
|
17172
17716
|
readonly updatePlugin: (input: UpdatePluginInput) => Promise<UpdatePluginResponse>;
|
|
17173
17717
|
readonly deletePlugin: (input: DeletePluginInput) => Promise<DeletePluginResponse>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/cognitive",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Wrapper around the Botpress Client to call LLMs",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@botpress/client": "workspace:*",
|
|
32
32
|
"@botpress/common": "workspace:*",
|
|
33
|
-
"@bpinternal/zui": "^1.0.
|
|
33
|
+
"@bpinternal/zui": "^1.0.1",
|
|
34
34
|
"@size-limit/file": "^11.1.6",
|
|
35
35
|
"@types/axios": "^0.14.4",
|
|
36
36
|
"@types/debug": "^4.1.12",
|