@botpress/client 0.11.2 → 0.11.4
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/dist/bundle.cjs +9 -9
- package/dist/bundle.cjs.map +2 -2
- package/dist/gen/api.d.ts +104 -8
- package/dist/gen/base.d.ts +1 -1
- package/dist/gen/common.d.ts +1 -1
- package/dist/gen/configuration.d.ts +1 -1
- package/dist/gen/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/gen/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Botpress API
|
|
3
3
|
* API for Botpress Cloud
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.17.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1183,7 +1183,7 @@ export interface CreateBotBodyRecurringEventsValueSchedule {
|
|
|
1183
1183
|
*/
|
|
1184
1184
|
export interface CreateBotBodyStatesValue {
|
|
1185
1185
|
/**
|
|
1186
|
-
* Type of the [State](#schema_state) (`conversation`, `user` or `
|
|
1186
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
1187
1187
|
* @type {string}
|
|
1188
1188
|
* @memberof CreateBotBodyStatesValue
|
|
1189
1189
|
*/
|
|
@@ -1207,6 +1207,7 @@ export declare const CreateBotBodyStatesValueTypeEnum: {
|
|
|
1207
1207
|
readonly Conversation: "conversation";
|
|
1208
1208
|
readonly User: "user";
|
|
1209
1209
|
readonly Bot: "bot";
|
|
1210
|
+
readonly Task: "task";
|
|
1210
1211
|
};
|
|
1211
1212
|
export type CreateBotBodyStatesValueTypeEnum = typeof CreateBotBodyStatesValueTypeEnum[keyof typeof CreateBotBodyStatesValueTypeEnum];
|
|
1212
1213
|
/**
|
|
@@ -1488,6 +1489,14 @@ export interface CreateIntegrationBody {
|
|
|
1488
1489
|
'actions'?: {
|
|
1489
1490
|
[key: string]: CreateIntegrationBodyActionsValue;
|
|
1490
1491
|
};
|
|
1492
|
+
/**
|
|
1493
|
+
*
|
|
1494
|
+
* @type {{ [key: string]: CreateIntegrationBodyEntitiesValue; }}
|
|
1495
|
+
* @memberof CreateIntegrationBody
|
|
1496
|
+
*/
|
|
1497
|
+
'entities'?: {
|
|
1498
|
+
[key: string]: CreateIntegrationBodyEntitiesValue;
|
|
1499
|
+
};
|
|
1491
1500
|
/**
|
|
1492
1501
|
*
|
|
1493
1502
|
* @type {CreateIntegrationBodyIdentifier}
|
|
@@ -1739,6 +1748,33 @@ export interface CreateIntegrationBodyConfigurationIdentifier {
|
|
|
1739
1748
|
*/
|
|
1740
1749
|
'linkTemplateScript'?: string;
|
|
1741
1750
|
}
|
|
1751
|
+
/**
|
|
1752
|
+
* Entity definition
|
|
1753
|
+
* @export
|
|
1754
|
+
* @interface CreateIntegrationBodyEntitiesValue
|
|
1755
|
+
*/
|
|
1756
|
+
export interface CreateIntegrationBodyEntitiesValue {
|
|
1757
|
+
/**
|
|
1758
|
+
* Title of the entity
|
|
1759
|
+
* @type {string}
|
|
1760
|
+
* @memberof CreateIntegrationBodyEntitiesValue
|
|
1761
|
+
*/
|
|
1762
|
+
'title'?: string;
|
|
1763
|
+
/**
|
|
1764
|
+
* Description of the entity
|
|
1765
|
+
* @type {string}
|
|
1766
|
+
* @memberof CreateIntegrationBodyEntitiesValue
|
|
1767
|
+
*/
|
|
1768
|
+
'description'?: string;
|
|
1769
|
+
/**
|
|
1770
|
+
*
|
|
1771
|
+
* @type {{ [key: string]: any; }}
|
|
1772
|
+
* @memberof CreateIntegrationBodyEntitiesValue
|
|
1773
|
+
*/
|
|
1774
|
+
'schema': {
|
|
1775
|
+
[key: string]: any;
|
|
1776
|
+
};
|
|
1777
|
+
}
|
|
1742
1778
|
/**
|
|
1743
1779
|
*
|
|
1744
1780
|
* @export
|
|
@@ -3441,6 +3477,14 @@ export interface Integration {
|
|
|
3441
3477
|
* @memberof Integration
|
|
3442
3478
|
*/
|
|
3443
3479
|
'user': IntegrationUser;
|
|
3480
|
+
/**
|
|
3481
|
+
*
|
|
3482
|
+
* @type {{ [key: string]: CreateIntegrationBodyEntitiesValue; }}
|
|
3483
|
+
* @memberof Integration
|
|
3484
|
+
*/
|
|
3485
|
+
'entities': {
|
|
3486
|
+
[key: string]: CreateIntegrationBodyEntitiesValue;
|
|
3487
|
+
};
|
|
3444
3488
|
/**
|
|
3445
3489
|
* Indicates if the integration is a development integration; Dev integrations run locally
|
|
3446
3490
|
* @type {boolean}
|
|
@@ -4928,7 +4972,7 @@ export interface State {
|
|
|
4928
4972
|
*/
|
|
4929
4973
|
'name': string;
|
|
4930
4974
|
/**
|
|
4931
|
-
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot` or `integration`) that the state is related to
|
|
4975
|
+
* Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `integration`) that the state is related to
|
|
4932
4976
|
* @type {string}
|
|
4933
4977
|
* @memberof State
|
|
4934
4978
|
*/
|
|
@@ -4946,6 +4990,7 @@ export declare const StateTypeEnum: {
|
|
|
4946
4990
|
readonly Conversation: "conversation";
|
|
4947
4991
|
readonly User: "user";
|
|
4948
4992
|
readonly Bot: "bot";
|
|
4993
|
+
readonly Task: "task";
|
|
4949
4994
|
readonly Integration: "integration";
|
|
4950
4995
|
};
|
|
4951
4996
|
export type StateTypeEnum = typeof StateTypeEnum[keyof typeof StateTypeEnum];
|
|
@@ -5104,6 +5149,12 @@ export interface TableSchemaPropertiesValueXZui {
|
|
|
5104
5149
|
* @memberof TableSchemaPropertiesValueXZui
|
|
5105
5150
|
*/
|
|
5106
5151
|
'index': number;
|
|
5152
|
+
/**
|
|
5153
|
+
* [deprecated] ID of the column.
|
|
5154
|
+
* @type {string}
|
|
5155
|
+
* @memberof TableSchemaPropertiesValueXZui
|
|
5156
|
+
*/
|
|
5157
|
+
'id'?: string;
|
|
5107
5158
|
/**
|
|
5108
5159
|
* Indicates if the column is vectorized and searchable.
|
|
5109
5160
|
* @type {boolean}
|
|
@@ -5433,7 +5484,7 @@ export interface UpdateBotBodyRecurringEventsValue {
|
|
|
5433
5484
|
*/
|
|
5434
5485
|
export interface UpdateBotBodyStatesValue {
|
|
5435
5486
|
/**
|
|
5436
|
-
* Type of the [State](#schema_state) (`conversation`, `user` or `
|
|
5487
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
5437
5488
|
* @type {string}
|
|
5438
5489
|
* @memberof UpdateBotBodyStatesValue
|
|
5439
5490
|
*/
|
|
@@ -5457,6 +5508,7 @@ export declare const UpdateBotBodyStatesValueTypeEnum: {
|
|
|
5457
5508
|
readonly Conversation: "conversation";
|
|
5458
5509
|
readonly User: "user";
|
|
5459
5510
|
readonly Bot: "bot";
|
|
5511
|
+
readonly Task: "task";
|
|
5460
5512
|
};
|
|
5461
5513
|
export type UpdateBotBodyStatesValueTypeEnum = typeof UpdateBotBodyStatesValueTypeEnum[keyof typeof UpdateBotBodyStatesValueTypeEnum];
|
|
5462
5514
|
/**
|
|
@@ -5529,12 +5581,18 @@ export interface UpdateBotResponse {
|
|
|
5529
5581
|
* @interface UpdateConversationBody
|
|
5530
5582
|
*/
|
|
5531
5583
|
export interface UpdateConversationBody {
|
|
5584
|
+
/**
|
|
5585
|
+
*
|
|
5586
|
+
* @type {string}
|
|
5587
|
+
* @memberof UpdateConversationBody
|
|
5588
|
+
*/
|
|
5589
|
+
'currentTaskId'?: string;
|
|
5532
5590
|
/**
|
|
5533
5591
|
* Tags for the [Conversation](#schema_conversation)
|
|
5534
5592
|
* @type {{ [key: string]: string; }}
|
|
5535
5593
|
* @memberof UpdateConversationBody
|
|
5536
5594
|
*/
|
|
5537
|
-
'tags'
|
|
5595
|
+
'tags'?: {
|
|
5538
5596
|
[key: string]: string;
|
|
5539
5597
|
};
|
|
5540
5598
|
}
|
|
@@ -5607,6 +5665,14 @@ export interface UpdateIntegrationBody {
|
|
|
5607
5665
|
* @memberof UpdateIntegrationBody
|
|
5608
5666
|
*/
|
|
5609
5667
|
'user'?: UpdateIntegrationBodyUser;
|
|
5668
|
+
/**
|
|
5669
|
+
*
|
|
5670
|
+
* @type {{ [key: string]: UpdateIntegrationBodyEntitiesValue | null; }}
|
|
5671
|
+
* @memberof UpdateIntegrationBody
|
|
5672
|
+
*/
|
|
5673
|
+
'entities'?: {
|
|
5674
|
+
[key: string]: UpdateIntegrationBodyEntitiesValue | null;
|
|
5675
|
+
};
|
|
5610
5676
|
/**
|
|
5611
5677
|
* 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.
|
|
5612
5678
|
* @type {{ [key: string]: string | null; }}
|
|
@@ -5798,6 +5864,33 @@ export interface UpdateIntegrationBodyConfigurationIdentifier {
|
|
|
5798
5864
|
*/
|
|
5799
5865
|
'required'?: boolean;
|
|
5800
5866
|
}
|
|
5867
|
+
/**
|
|
5868
|
+
* Entity definition
|
|
5869
|
+
* @export
|
|
5870
|
+
* @interface UpdateIntegrationBodyEntitiesValue
|
|
5871
|
+
*/
|
|
5872
|
+
export interface UpdateIntegrationBodyEntitiesValue {
|
|
5873
|
+
/**
|
|
5874
|
+
* Title of the entity
|
|
5875
|
+
* @type {string}
|
|
5876
|
+
* @memberof UpdateIntegrationBodyEntitiesValue
|
|
5877
|
+
*/
|
|
5878
|
+
'title'?: string;
|
|
5879
|
+
/**
|
|
5880
|
+
* Description of the entity
|
|
5881
|
+
* @type {string}
|
|
5882
|
+
* @memberof UpdateIntegrationBodyEntitiesValue
|
|
5883
|
+
*/
|
|
5884
|
+
'description'?: string;
|
|
5885
|
+
/**
|
|
5886
|
+
*
|
|
5887
|
+
* @type {{ [key: string]: any; }}
|
|
5888
|
+
* @memberof UpdateIntegrationBodyEntitiesValue
|
|
5889
|
+
*/
|
|
5890
|
+
'schema': {
|
|
5891
|
+
[key: string]: any;
|
|
5892
|
+
};
|
|
5893
|
+
}
|
|
5801
5894
|
/**
|
|
5802
5895
|
*
|
|
5803
5896
|
* @export
|
|
@@ -9629,7 +9722,7 @@ export interface DefaultApiGetPublicIntegrationByIdRequest {
|
|
|
9629
9722
|
export interface DefaultApiGetStateRequest {
|
|
9630
9723
|
/**
|
|
9631
9724
|
* State type
|
|
9632
|
-
* @type {'conversation' | 'user' | 'bot' | 'integration'}
|
|
9725
|
+
* @type {'conversation' | 'user' | 'bot' | 'integration' | 'task'}
|
|
9633
9726
|
* @memberof DefaultApiGetState
|
|
9634
9727
|
*/
|
|
9635
9728
|
readonly type: GetStateTypeEnum;
|
|
@@ -10216,7 +10309,7 @@ export interface DefaultApiListWorkspacesRequest {
|
|
|
10216
10309
|
export interface DefaultApiPatchStateRequest {
|
|
10217
10310
|
/**
|
|
10218
10311
|
* State type
|
|
10219
|
-
* @type {'conversation' | 'user' | 'bot' | 'integration'}
|
|
10312
|
+
* @type {'conversation' | 'user' | 'bot' | 'integration' | 'task'}
|
|
10220
10313
|
* @memberof DefaultApiPatchState
|
|
10221
10314
|
*/
|
|
10222
10315
|
readonly type: PatchStateTypeEnum;
|
|
@@ -10298,7 +10391,7 @@ export interface DefaultApiSetAccountPreferenceRequest {
|
|
|
10298
10391
|
export interface DefaultApiSetStateRequest {
|
|
10299
10392
|
/**
|
|
10300
10393
|
* State type
|
|
10301
|
-
* @type {'conversation' | 'user' | 'bot' | 'integration'}
|
|
10394
|
+
* @type {'conversation' | 'user' | 'bot' | 'integration' | 'task'}
|
|
10302
10395
|
* @memberof DefaultApiSetState
|
|
10303
10396
|
*/
|
|
10304
10397
|
readonly type: SetStateTypeEnum;
|
|
@@ -11315,6 +11408,7 @@ export declare const GetStateTypeEnum: {
|
|
|
11315
11408
|
readonly User: "user";
|
|
11316
11409
|
readonly Bot: "bot";
|
|
11317
11410
|
readonly Integration: "integration";
|
|
11411
|
+
readonly Task: "task";
|
|
11318
11412
|
};
|
|
11319
11413
|
export type GetStateTypeEnum = typeof GetStateTypeEnum[keyof typeof GetStateTypeEnum];
|
|
11320
11414
|
/**
|
|
@@ -11415,6 +11509,7 @@ export declare const PatchStateTypeEnum: {
|
|
|
11415
11509
|
readonly User: "user";
|
|
11416
11510
|
readonly Bot: "bot";
|
|
11417
11511
|
readonly Integration: "integration";
|
|
11512
|
+
readonly Task: "task";
|
|
11418
11513
|
};
|
|
11419
11514
|
export type PatchStateTypeEnum = typeof PatchStateTypeEnum[keyof typeof PatchStateTypeEnum];
|
|
11420
11515
|
/**
|
|
@@ -11425,5 +11520,6 @@ export declare const SetStateTypeEnum: {
|
|
|
11425
11520
|
readonly User: "user";
|
|
11426
11521
|
readonly Bot: "bot";
|
|
11427
11522
|
readonly Integration: "integration";
|
|
11523
|
+
readonly Task: "task";
|
|
11428
11524
|
};
|
|
11429
11525
|
export type SetStateTypeEnum = typeof SetStateTypeEnum[keyof typeof SetStateTypeEnum];
|
package/dist/gen/base.d.ts
CHANGED
package/dist/gen/common.d.ts
CHANGED
package/dist/gen/index.d.ts
CHANGED