@botpress/cognitive 0.1.29 → 0.1.30
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 +519 -8
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cognitive@0.1.
|
|
2
|
+
> @botpress/cognitive@0.1.30 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.30 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 11594ms
|
|
14
|
+
DTS dist/index.d.ts 603.20 KB
|
|
15
15
|
|
|
16
|
-
> @botpress/cognitive@0.1.
|
|
16
|
+
> @botpress/cognitive@0.1.30 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
|
@@ -4360,6 +4360,10 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
4360
4360
|
*/
|
|
4361
4361
|
messageExtractScript?: string;
|
|
4362
4362
|
};
|
|
4363
|
+
/**
|
|
4364
|
+
* Maximum execution time of the integration (in seconds).
|
|
4365
|
+
*/
|
|
4366
|
+
maxExecutionTime?: number;
|
|
4363
4367
|
/**
|
|
4364
4368
|
* URL of the [Integration](#schema_integration)
|
|
4365
4369
|
*/
|
|
@@ -4763,6 +4767,10 @@ interface GetPublicIntegrationResponse {
|
|
|
4763
4767
|
*/
|
|
4764
4768
|
messageExtractScript?: string;
|
|
4765
4769
|
};
|
|
4770
|
+
/**
|
|
4771
|
+
* Maximum execution time of the integration (in seconds).
|
|
4772
|
+
*/
|
|
4773
|
+
maxExecutionTime?: number;
|
|
4766
4774
|
/**
|
|
4767
4775
|
* URL of the [Integration](#schema_integration)
|
|
4768
4776
|
*/
|
|
@@ -5392,6 +5400,226 @@ interface GetPublicPluginByIdResponse {
|
|
|
5392
5400
|
};
|
|
5393
5401
|
}
|
|
5394
5402
|
|
|
5403
|
+
interface GetDereferencedPublicPluginByIdRequestHeaders {
|
|
5404
|
+
}
|
|
5405
|
+
interface GetDereferencedPublicPluginByIdRequestQuery {
|
|
5406
|
+
/**
|
|
5407
|
+
* Mapping of interface aliases to integration IDs
|
|
5408
|
+
*/
|
|
5409
|
+
interfaces: {
|
|
5410
|
+
/**
|
|
5411
|
+
* integration id
|
|
5412
|
+
*/
|
|
5413
|
+
[k: string]: string;
|
|
5414
|
+
};
|
|
5415
|
+
}
|
|
5416
|
+
interface GetDereferencedPublicPluginByIdRequestParams {
|
|
5417
|
+
id: string;
|
|
5418
|
+
}
|
|
5419
|
+
interface GetDereferencedPublicPluginByIdRequestBody {
|
|
5420
|
+
}
|
|
5421
|
+
type GetDereferencedPublicPluginByIdInput = GetDereferencedPublicPluginByIdRequestBody & GetDereferencedPublicPluginByIdRequestHeaders & GetDereferencedPublicPluginByIdRequestQuery & GetDereferencedPublicPluginByIdRequestParams;
|
|
5422
|
+
interface GetDereferencedPublicPluginByIdResponse {
|
|
5423
|
+
plugin: {
|
|
5424
|
+
/**
|
|
5425
|
+
* ID of the [Plugin](#schema_plugin)
|
|
5426
|
+
*/
|
|
5427
|
+
id: string;
|
|
5428
|
+
/**
|
|
5429
|
+
* Name of the [Plugin](#schema_plugin)
|
|
5430
|
+
*/
|
|
5431
|
+
name: string;
|
|
5432
|
+
/**
|
|
5433
|
+
* Version of the [Plugin](#schema_plugin)
|
|
5434
|
+
*/
|
|
5435
|
+
version: string;
|
|
5436
|
+
/**
|
|
5437
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
5438
|
+
*/
|
|
5439
|
+
createdAt: string;
|
|
5440
|
+
/**
|
|
5441
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
5442
|
+
*/
|
|
5443
|
+
updatedAt: string;
|
|
5444
|
+
/**
|
|
5445
|
+
* Configuration definition
|
|
5446
|
+
*/
|
|
5447
|
+
configuration: {
|
|
5448
|
+
/**
|
|
5449
|
+
* Title of the configuration
|
|
5450
|
+
*/
|
|
5451
|
+
title?: string;
|
|
5452
|
+
/**
|
|
5453
|
+
* Description of the configuration
|
|
5454
|
+
*/
|
|
5455
|
+
description?: string;
|
|
5456
|
+
/**
|
|
5457
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
5458
|
+
*/
|
|
5459
|
+
schema: {
|
|
5460
|
+
[k: string]: any;
|
|
5461
|
+
};
|
|
5462
|
+
};
|
|
5463
|
+
states: {
|
|
5464
|
+
[k: string]: {
|
|
5465
|
+
/**
|
|
5466
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
5467
|
+
*/
|
|
5468
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
5469
|
+
/**
|
|
5470
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
5471
|
+
*/
|
|
5472
|
+
schema: {
|
|
5473
|
+
[k: string]: any;
|
|
5474
|
+
};
|
|
5475
|
+
/**
|
|
5476
|
+
* 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.
|
|
5477
|
+
*/
|
|
5478
|
+
expiry?: number;
|
|
5479
|
+
};
|
|
5480
|
+
};
|
|
5481
|
+
events: {
|
|
5482
|
+
/**
|
|
5483
|
+
* Event Definition
|
|
5484
|
+
*/
|
|
5485
|
+
[k: string]: {
|
|
5486
|
+
/**
|
|
5487
|
+
* Title of the event
|
|
5488
|
+
*/
|
|
5489
|
+
title?: string;
|
|
5490
|
+
/**
|
|
5491
|
+
* Description of the event
|
|
5492
|
+
*/
|
|
5493
|
+
description?: string;
|
|
5494
|
+
schema: {
|
|
5495
|
+
[k: string]: any;
|
|
5496
|
+
};
|
|
5497
|
+
/**
|
|
5498
|
+
* Optional attributes
|
|
5499
|
+
*/
|
|
5500
|
+
attributes?: {
|
|
5501
|
+
[k: string]: string;
|
|
5502
|
+
};
|
|
5503
|
+
};
|
|
5504
|
+
};
|
|
5505
|
+
actions: {
|
|
5506
|
+
/**
|
|
5507
|
+
* Action definition
|
|
5508
|
+
*/
|
|
5509
|
+
[k: string]: {
|
|
5510
|
+
/**
|
|
5511
|
+
* Title of the action
|
|
5512
|
+
*/
|
|
5513
|
+
title?: string;
|
|
5514
|
+
/**
|
|
5515
|
+
* Description of the action
|
|
5516
|
+
*/
|
|
5517
|
+
description?: string;
|
|
5518
|
+
billable?: boolean;
|
|
5519
|
+
cacheable?: boolean;
|
|
5520
|
+
input: {
|
|
5521
|
+
schema: {
|
|
5522
|
+
[k: string]: any;
|
|
5523
|
+
};
|
|
5524
|
+
};
|
|
5525
|
+
output: {
|
|
5526
|
+
schema: {
|
|
5527
|
+
[k: string]: any;
|
|
5528
|
+
};
|
|
5529
|
+
};
|
|
5530
|
+
/**
|
|
5531
|
+
* Optional attributes
|
|
5532
|
+
*/
|
|
5533
|
+
attributes?: {
|
|
5534
|
+
[k: string]: string;
|
|
5535
|
+
};
|
|
5536
|
+
};
|
|
5537
|
+
};
|
|
5538
|
+
dependencies: {
|
|
5539
|
+
interfaces: {
|
|
5540
|
+
[k: string]: {
|
|
5541
|
+
id: string;
|
|
5542
|
+
name: string;
|
|
5543
|
+
version: string;
|
|
5544
|
+
};
|
|
5545
|
+
};
|
|
5546
|
+
integrations: {
|
|
5547
|
+
[k: string]: {
|
|
5548
|
+
id: string;
|
|
5549
|
+
name: string;
|
|
5550
|
+
version: string;
|
|
5551
|
+
};
|
|
5552
|
+
};
|
|
5553
|
+
};
|
|
5554
|
+
/**
|
|
5555
|
+
* User object configuration
|
|
5556
|
+
*/
|
|
5557
|
+
user: {
|
|
5558
|
+
tags: {
|
|
5559
|
+
/**
|
|
5560
|
+
* Definition of a tag that can be provided on the object
|
|
5561
|
+
*/
|
|
5562
|
+
[k: string]: {
|
|
5563
|
+
/**
|
|
5564
|
+
* Title of the tag
|
|
5565
|
+
*/
|
|
5566
|
+
title?: string;
|
|
5567
|
+
/**
|
|
5568
|
+
* Description of the tag
|
|
5569
|
+
*/
|
|
5570
|
+
description?: string;
|
|
5571
|
+
};
|
|
5572
|
+
};
|
|
5573
|
+
};
|
|
5574
|
+
/**
|
|
5575
|
+
* Conversation object configuration
|
|
5576
|
+
*/
|
|
5577
|
+
conversation: {
|
|
5578
|
+
tags: {
|
|
5579
|
+
/**
|
|
5580
|
+
* Definition of a tag that can be provided on the object
|
|
5581
|
+
*/
|
|
5582
|
+
[k: string]: {
|
|
5583
|
+
/**
|
|
5584
|
+
* Title of the tag
|
|
5585
|
+
*/
|
|
5586
|
+
title?: string;
|
|
5587
|
+
/**
|
|
5588
|
+
* Description of the tag
|
|
5589
|
+
*/
|
|
5590
|
+
description?: string;
|
|
5591
|
+
};
|
|
5592
|
+
};
|
|
5593
|
+
};
|
|
5594
|
+
/**
|
|
5595
|
+
* Optional attributes
|
|
5596
|
+
*/
|
|
5597
|
+
attributes?: {
|
|
5598
|
+
[k: string]: string;
|
|
5599
|
+
};
|
|
5600
|
+
/**
|
|
5601
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
5602
|
+
*/
|
|
5603
|
+
title: string;
|
|
5604
|
+
/**
|
|
5605
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
5606
|
+
*/
|
|
5607
|
+
description: string;
|
|
5608
|
+
/**
|
|
5609
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
5610
|
+
*/
|
|
5611
|
+
iconUrl: string;
|
|
5612
|
+
/**
|
|
5613
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
5614
|
+
*/
|
|
5615
|
+
readmeUrl: string;
|
|
5616
|
+
/**
|
|
5617
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
5618
|
+
*/
|
|
5619
|
+
public: boolean;
|
|
5620
|
+
};
|
|
5621
|
+
}
|
|
5622
|
+
|
|
5395
5623
|
interface GetPublicPluginRequestHeaders {
|
|
5396
5624
|
}
|
|
5397
5625
|
interface GetPublicPluginRequestQuery {
|
|
@@ -6360,6 +6588,10 @@ interface CreateBotResponse {
|
|
|
6360
6588
|
public: boolean;
|
|
6361
6589
|
};
|
|
6362
6590
|
};
|
|
6591
|
+
/**
|
|
6592
|
+
* Maximum execution time of the bot (in seconds).
|
|
6593
|
+
*/
|
|
6594
|
+
maxExecutionTime?: number;
|
|
6363
6595
|
/**
|
|
6364
6596
|
* User object configuration
|
|
6365
6597
|
*/
|
|
@@ -6637,6 +6869,10 @@ interface UpdateBotRequestBody {
|
|
|
6637
6869
|
[k: string]: string;
|
|
6638
6870
|
};
|
|
6639
6871
|
blocked?: boolean;
|
|
6872
|
+
/**
|
|
6873
|
+
* Maximum execution time (in seconds).
|
|
6874
|
+
*/
|
|
6875
|
+
maxExecutionTime?: number;
|
|
6640
6876
|
/**
|
|
6641
6877
|
* Indicates if the [Bot](#schema_bot) should be in always alive mode
|
|
6642
6878
|
*/
|
|
@@ -6775,6 +7011,10 @@ interface UpdateBotRequestBody {
|
|
|
6775
7011
|
integrations?: {
|
|
6776
7012
|
[k: string]: {
|
|
6777
7013
|
enabled?: boolean;
|
|
7014
|
+
/**
|
|
7015
|
+
* Integration's definition ID. If defined, the record's key is treated as an alias for the integration instance.
|
|
7016
|
+
*/
|
|
7017
|
+
integrationId?: string;
|
|
6778
7018
|
/**
|
|
6779
7019
|
* Integration's configuration type. Set to default if null.
|
|
6780
7020
|
*/
|
|
@@ -6973,6 +7213,10 @@ interface UpdateBotResponse {
|
|
|
6973
7213
|
public: boolean;
|
|
6974
7214
|
};
|
|
6975
7215
|
};
|
|
7216
|
+
/**
|
|
7217
|
+
* Maximum execution time of the bot (in seconds).
|
|
7218
|
+
*/
|
|
7219
|
+
maxExecutionTime?: number;
|
|
6976
7220
|
/**
|
|
6977
7221
|
* User object configuration
|
|
6978
7222
|
*/
|
|
@@ -7280,6 +7524,7 @@ interface ListBotsResponse {
|
|
|
7280
7524
|
interface GetBotRequestHeaders {
|
|
7281
7525
|
}
|
|
7282
7526
|
interface GetBotRequestQuery {
|
|
7527
|
+
shouldMergePlugins?: boolean;
|
|
7283
7528
|
}
|
|
7284
7529
|
interface GetBotRequestParams {
|
|
7285
7530
|
id: string;
|
|
@@ -7425,6 +7670,10 @@ interface GetBotResponse {
|
|
|
7425
7670
|
public: boolean;
|
|
7426
7671
|
};
|
|
7427
7672
|
};
|
|
7673
|
+
/**
|
|
7674
|
+
* Maximum execution time of the bot (in seconds).
|
|
7675
|
+
*/
|
|
7676
|
+
maxExecutionTime?: number;
|
|
7428
7677
|
/**
|
|
7429
7678
|
* User object configuration
|
|
7430
7679
|
*/
|
|
@@ -9128,9 +9377,13 @@ interface CreateIntegrationRequestBody {
|
|
|
9128
9377
|
};
|
|
9129
9378
|
};
|
|
9130
9379
|
/**
|
|
9131
|
-
* **EXPERIMENTAL**
|
|
9380
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
9132
9381
|
*/
|
|
9133
|
-
|
|
9382
|
+
extraOperations?: {
|
|
9383
|
+
[k: string]: {
|
|
9384
|
+
enabled: boolean;
|
|
9385
|
+
};
|
|
9386
|
+
};
|
|
9134
9387
|
/**
|
|
9135
9388
|
* 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
9389
|
*/
|
|
@@ -9209,6 +9462,10 @@ interface CreateIntegrationResponse {
|
|
|
9209
9462
|
*/
|
|
9210
9463
|
messageExtractScript?: string;
|
|
9211
9464
|
};
|
|
9465
|
+
/**
|
|
9466
|
+
* Maximum execution time of the integration (in seconds).
|
|
9467
|
+
*/
|
|
9468
|
+
maxExecutionTime?: number;
|
|
9212
9469
|
/**
|
|
9213
9470
|
* URL of the [Integration](#schema_integration)
|
|
9214
9471
|
*/
|
|
@@ -9848,9 +10105,13 @@ interface ValidateIntegrationCreationRequestBody {
|
|
|
9848
10105
|
};
|
|
9849
10106
|
};
|
|
9850
10107
|
/**
|
|
9851
|
-
* **EXPERIMENTAL**
|
|
10108
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
9852
10109
|
*/
|
|
9853
|
-
|
|
10110
|
+
extraOperations?: {
|
|
10111
|
+
[k: string]: {
|
|
10112
|
+
enabled: boolean;
|
|
10113
|
+
};
|
|
10114
|
+
};
|
|
9854
10115
|
/**
|
|
9855
10116
|
* 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
10117
|
*/
|
|
@@ -9952,9 +10213,13 @@ interface UpdateIntegrationRequestBody {
|
|
|
9952
10213
|
} | null;
|
|
9953
10214
|
};
|
|
9954
10215
|
/**
|
|
9955
|
-
* **EXPERIMENTAL**
|
|
10216
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
9956
10217
|
*/
|
|
9957
|
-
|
|
10218
|
+
extraOperations?: {
|
|
10219
|
+
[k: string]: {
|
|
10220
|
+
enabled: boolean;
|
|
10221
|
+
};
|
|
10222
|
+
};
|
|
9958
10223
|
channels?: {
|
|
9959
10224
|
[k: string]: {
|
|
9960
10225
|
/**
|
|
@@ -10024,6 +10289,10 @@ interface UpdateIntegrationRequestBody {
|
|
|
10024
10289
|
};
|
|
10025
10290
|
} | null;
|
|
10026
10291
|
};
|
|
10292
|
+
/**
|
|
10293
|
+
* Maximum execution time of the integration (in seconds).
|
|
10294
|
+
*/
|
|
10295
|
+
maxExecutionTime?: number;
|
|
10027
10296
|
identifier?: {
|
|
10028
10297
|
extractScript?: string | null;
|
|
10029
10298
|
fallbackHandlerScript?: string | null;
|
|
@@ -10252,6 +10521,10 @@ interface UpdateIntegrationResponse {
|
|
|
10252
10521
|
*/
|
|
10253
10522
|
messageExtractScript?: string;
|
|
10254
10523
|
};
|
|
10524
|
+
/**
|
|
10525
|
+
* Maximum execution time of the integration (in seconds).
|
|
10526
|
+
*/
|
|
10527
|
+
maxExecutionTime?: number;
|
|
10255
10528
|
/**
|
|
10256
10529
|
* URL of the [Integration](#schema_integration)
|
|
10257
10530
|
*/
|
|
@@ -10655,9 +10928,13 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
10655
10928
|
} | null;
|
|
10656
10929
|
};
|
|
10657
10930
|
/**
|
|
10658
|
-
* **EXPERIMENTAL**
|
|
10931
|
+
* **EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name.
|
|
10659
10932
|
*/
|
|
10660
|
-
|
|
10933
|
+
extraOperations?: {
|
|
10934
|
+
[k: string]: {
|
|
10935
|
+
enabled: boolean;
|
|
10936
|
+
};
|
|
10937
|
+
};
|
|
10661
10938
|
channels?: {
|
|
10662
10939
|
[k: string]: {
|
|
10663
10940
|
/**
|
|
@@ -10727,6 +11004,10 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
10727
11004
|
};
|
|
10728
11005
|
} | null;
|
|
10729
11006
|
};
|
|
11007
|
+
/**
|
|
11008
|
+
* Maximum execution time of the integration (in seconds).
|
|
11009
|
+
*/
|
|
11010
|
+
maxExecutionTime?: number;
|
|
10730
11011
|
identifier?: {
|
|
10731
11012
|
extractScript?: string | null;
|
|
10732
11013
|
fallbackHandlerScript?: string | null;
|
|
@@ -11071,6 +11352,10 @@ interface GetIntegrationResponse {
|
|
|
11071
11352
|
*/
|
|
11072
11353
|
messageExtractScript?: string;
|
|
11073
11354
|
};
|
|
11355
|
+
/**
|
|
11356
|
+
* Maximum execution time of the integration (in seconds).
|
|
11357
|
+
*/
|
|
11358
|
+
maxExecutionTime?: number;
|
|
11074
11359
|
/**
|
|
11075
11360
|
* URL of the [Integration](#schema_integration)
|
|
11076
11361
|
*/
|
|
@@ -11494,6 +11779,10 @@ interface GetIntegrationByNameResponse {
|
|
|
11494
11779
|
*/
|
|
11495
11780
|
messageExtractScript?: string;
|
|
11496
11781
|
};
|
|
11782
|
+
/**
|
|
11783
|
+
* Maximum execution time of the integration (in seconds).
|
|
11784
|
+
*/
|
|
11785
|
+
maxExecutionTime?: number;
|
|
11497
11786
|
/**
|
|
11498
11787
|
* URL of the [Integration](#schema_integration)
|
|
11499
11788
|
*/
|
|
@@ -13475,6 +13764,226 @@ interface GetPluginResponse {
|
|
|
13475
13764
|
};
|
|
13476
13765
|
}
|
|
13477
13766
|
|
|
13767
|
+
interface GetDereferencedPluginRequestHeaders {
|
|
13768
|
+
}
|
|
13769
|
+
interface GetDereferencedPluginRequestQuery {
|
|
13770
|
+
/**
|
|
13771
|
+
* Mapping of interface aliases to integration IDs
|
|
13772
|
+
*/
|
|
13773
|
+
interfaces: {
|
|
13774
|
+
/**
|
|
13775
|
+
* integration id
|
|
13776
|
+
*/
|
|
13777
|
+
[k: string]: string;
|
|
13778
|
+
};
|
|
13779
|
+
}
|
|
13780
|
+
interface GetDereferencedPluginRequestParams {
|
|
13781
|
+
id: string;
|
|
13782
|
+
}
|
|
13783
|
+
interface GetDereferencedPluginRequestBody {
|
|
13784
|
+
}
|
|
13785
|
+
type GetDereferencedPluginInput = GetDereferencedPluginRequestBody & GetDereferencedPluginRequestHeaders & GetDereferencedPluginRequestQuery & GetDereferencedPluginRequestParams;
|
|
13786
|
+
interface GetDereferencedPluginResponse {
|
|
13787
|
+
plugin: {
|
|
13788
|
+
/**
|
|
13789
|
+
* ID of the [Plugin](#schema_plugin)
|
|
13790
|
+
*/
|
|
13791
|
+
id: string;
|
|
13792
|
+
/**
|
|
13793
|
+
* Name of the [Plugin](#schema_plugin)
|
|
13794
|
+
*/
|
|
13795
|
+
name: string;
|
|
13796
|
+
/**
|
|
13797
|
+
* Version of the [Plugin](#schema_plugin)
|
|
13798
|
+
*/
|
|
13799
|
+
version: string;
|
|
13800
|
+
/**
|
|
13801
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
13802
|
+
*/
|
|
13803
|
+
createdAt: string;
|
|
13804
|
+
/**
|
|
13805
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
13806
|
+
*/
|
|
13807
|
+
updatedAt: string;
|
|
13808
|
+
/**
|
|
13809
|
+
* Configuration definition
|
|
13810
|
+
*/
|
|
13811
|
+
configuration: {
|
|
13812
|
+
/**
|
|
13813
|
+
* Title of the configuration
|
|
13814
|
+
*/
|
|
13815
|
+
title?: string;
|
|
13816
|
+
/**
|
|
13817
|
+
* Description of the configuration
|
|
13818
|
+
*/
|
|
13819
|
+
description?: string;
|
|
13820
|
+
/**
|
|
13821
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
13822
|
+
*/
|
|
13823
|
+
schema: {
|
|
13824
|
+
[k: string]: any;
|
|
13825
|
+
};
|
|
13826
|
+
};
|
|
13827
|
+
states: {
|
|
13828
|
+
[k: string]: {
|
|
13829
|
+
/**
|
|
13830
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
13831
|
+
*/
|
|
13832
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
13833
|
+
/**
|
|
13834
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
13835
|
+
*/
|
|
13836
|
+
schema: {
|
|
13837
|
+
[k: string]: any;
|
|
13838
|
+
};
|
|
13839
|
+
/**
|
|
13840
|
+
* 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.
|
|
13841
|
+
*/
|
|
13842
|
+
expiry?: number;
|
|
13843
|
+
};
|
|
13844
|
+
};
|
|
13845
|
+
events: {
|
|
13846
|
+
/**
|
|
13847
|
+
* Event Definition
|
|
13848
|
+
*/
|
|
13849
|
+
[k: string]: {
|
|
13850
|
+
/**
|
|
13851
|
+
* Title of the event
|
|
13852
|
+
*/
|
|
13853
|
+
title?: string;
|
|
13854
|
+
/**
|
|
13855
|
+
* Description of the event
|
|
13856
|
+
*/
|
|
13857
|
+
description?: string;
|
|
13858
|
+
schema: {
|
|
13859
|
+
[k: string]: any;
|
|
13860
|
+
};
|
|
13861
|
+
/**
|
|
13862
|
+
* Optional attributes
|
|
13863
|
+
*/
|
|
13864
|
+
attributes?: {
|
|
13865
|
+
[k: string]: string;
|
|
13866
|
+
};
|
|
13867
|
+
};
|
|
13868
|
+
};
|
|
13869
|
+
actions: {
|
|
13870
|
+
/**
|
|
13871
|
+
* Action definition
|
|
13872
|
+
*/
|
|
13873
|
+
[k: string]: {
|
|
13874
|
+
/**
|
|
13875
|
+
* Title of the action
|
|
13876
|
+
*/
|
|
13877
|
+
title?: string;
|
|
13878
|
+
/**
|
|
13879
|
+
* Description of the action
|
|
13880
|
+
*/
|
|
13881
|
+
description?: string;
|
|
13882
|
+
billable?: boolean;
|
|
13883
|
+
cacheable?: boolean;
|
|
13884
|
+
input: {
|
|
13885
|
+
schema: {
|
|
13886
|
+
[k: string]: any;
|
|
13887
|
+
};
|
|
13888
|
+
};
|
|
13889
|
+
output: {
|
|
13890
|
+
schema: {
|
|
13891
|
+
[k: string]: any;
|
|
13892
|
+
};
|
|
13893
|
+
};
|
|
13894
|
+
/**
|
|
13895
|
+
* Optional attributes
|
|
13896
|
+
*/
|
|
13897
|
+
attributes?: {
|
|
13898
|
+
[k: string]: string;
|
|
13899
|
+
};
|
|
13900
|
+
};
|
|
13901
|
+
};
|
|
13902
|
+
dependencies: {
|
|
13903
|
+
interfaces: {
|
|
13904
|
+
[k: string]: {
|
|
13905
|
+
id: string;
|
|
13906
|
+
name: string;
|
|
13907
|
+
version: string;
|
|
13908
|
+
};
|
|
13909
|
+
};
|
|
13910
|
+
integrations: {
|
|
13911
|
+
[k: string]: {
|
|
13912
|
+
id: string;
|
|
13913
|
+
name: string;
|
|
13914
|
+
version: string;
|
|
13915
|
+
};
|
|
13916
|
+
};
|
|
13917
|
+
};
|
|
13918
|
+
/**
|
|
13919
|
+
* User object configuration
|
|
13920
|
+
*/
|
|
13921
|
+
user: {
|
|
13922
|
+
tags: {
|
|
13923
|
+
/**
|
|
13924
|
+
* Definition of a tag that can be provided on the object
|
|
13925
|
+
*/
|
|
13926
|
+
[k: string]: {
|
|
13927
|
+
/**
|
|
13928
|
+
* Title of the tag
|
|
13929
|
+
*/
|
|
13930
|
+
title?: string;
|
|
13931
|
+
/**
|
|
13932
|
+
* Description of the tag
|
|
13933
|
+
*/
|
|
13934
|
+
description?: string;
|
|
13935
|
+
};
|
|
13936
|
+
};
|
|
13937
|
+
};
|
|
13938
|
+
/**
|
|
13939
|
+
* Conversation object configuration
|
|
13940
|
+
*/
|
|
13941
|
+
conversation: {
|
|
13942
|
+
tags: {
|
|
13943
|
+
/**
|
|
13944
|
+
* Definition of a tag that can be provided on the object
|
|
13945
|
+
*/
|
|
13946
|
+
[k: string]: {
|
|
13947
|
+
/**
|
|
13948
|
+
* Title of the tag
|
|
13949
|
+
*/
|
|
13950
|
+
title?: string;
|
|
13951
|
+
/**
|
|
13952
|
+
* Description of the tag
|
|
13953
|
+
*/
|
|
13954
|
+
description?: string;
|
|
13955
|
+
};
|
|
13956
|
+
};
|
|
13957
|
+
};
|
|
13958
|
+
/**
|
|
13959
|
+
* Optional attributes
|
|
13960
|
+
*/
|
|
13961
|
+
attributes?: {
|
|
13962
|
+
[k: string]: string;
|
|
13963
|
+
};
|
|
13964
|
+
/**
|
|
13965
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
13966
|
+
*/
|
|
13967
|
+
title: string;
|
|
13968
|
+
/**
|
|
13969
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
13970
|
+
*/
|
|
13971
|
+
description: string;
|
|
13972
|
+
/**
|
|
13973
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
13974
|
+
*/
|
|
13975
|
+
iconUrl: string;
|
|
13976
|
+
/**
|
|
13977
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
13978
|
+
*/
|
|
13979
|
+
readmeUrl: string;
|
|
13980
|
+
/**
|
|
13981
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
13982
|
+
*/
|
|
13983
|
+
public: boolean;
|
|
13984
|
+
};
|
|
13985
|
+
}
|
|
13986
|
+
|
|
13478
13987
|
interface GetPluginByNameRequestHeaders {
|
|
13479
13988
|
}
|
|
13480
13989
|
interface GetPluginByNameRequestQuery {
|
|
@@ -17093,6 +17602,7 @@ declare class Client$1 {
|
|
|
17093
17602
|
readonly getPublicIntegration: (input: GetPublicIntegrationInput) => Promise<GetPublicIntegrationResponse>;
|
|
17094
17603
|
readonly listPublicPlugins: (input: ListPublicPluginsInput) => Promise<ListPublicPluginsResponse>;
|
|
17095
17604
|
readonly getPublicPluginById: (input: GetPublicPluginByIdInput) => Promise<GetPublicPluginByIdResponse>;
|
|
17605
|
+
readonly getDereferencedPublicPluginById: (input: GetDereferencedPublicPluginByIdInput) => Promise<GetDereferencedPublicPluginByIdResponse>;
|
|
17096
17606
|
readonly getPublicPlugin: (input: GetPublicPluginInput) => Promise<GetPublicPluginResponse>;
|
|
17097
17607
|
readonly getPublicPluginCode: (input: GetPublicPluginCodeInput) => Promise<GetPublicPluginCodeResponse>;
|
|
17098
17608
|
readonly listPublicInterfaces: (input: ListPublicInterfacesInput) => Promise<ListPublicInterfacesResponse>;
|
|
@@ -17168,6 +17678,7 @@ declare class Client$1 {
|
|
|
17168
17678
|
readonly listInterfaces: (input: ListInterfacesInput) => Promise<ListInterfacesResponse>;
|
|
17169
17679
|
readonly createPlugin: (input: CreatePluginInput) => Promise<CreatePluginResponse>;
|
|
17170
17680
|
readonly getPlugin: (input: GetPluginInput) => Promise<GetPluginResponse>;
|
|
17681
|
+
readonly getDereferencedPlugin: (input: GetDereferencedPluginInput) => Promise<GetDereferencedPluginResponse>;
|
|
17171
17682
|
readonly getPluginByName: (input: GetPluginByNameInput) => Promise<GetPluginByNameResponse>;
|
|
17172
17683
|
readonly updatePlugin: (input: UpdatePluginInput) => Promise<UpdatePluginResponse>;
|
|
17173
17684
|
readonly deletePlugin: (input: DeletePluginInput) => Promise<DeletePluginResponse>;
|