@botpress/client 0.29.1 → 0.29.3
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 +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +12 -12
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +186 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { AxiosRequestConfig, AxiosInstance, AxiosError } from 'axios';
|
|
|
2
2
|
import * as axios from 'axios';
|
|
3
3
|
export { axios };
|
|
4
4
|
import { IAxiosRetryConfig } from 'axios-retry';
|
|
5
|
+
import * as axiosRetry from 'axios-retry';
|
|
6
|
+
export { axiosRetry };
|
|
5
7
|
|
|
6
8
|
type Primitive = string | number | boolean;
|
|
7
9
|
type Value<P extends Primitive> = P | P[] | Record<string, P>;
|
|
@@ -2366,6 +2368,26 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
2366
2368
|
[k: string]: any;
|
|
2367
2369
|
};
|
|
2368
2370
|
};
|
|
2371
|
+
configurations: {
|
|
2372
|
+
/**
|
|
2373
|
+
* Configuration definition
|
|
2374
|
+
*/
|
|
2375
|
+
[k: string]: {
|
|
2376
|
+
/**
|
|
2377
|
+
* Identifier configuration of the [Integration](#schema_integration)
|
|
2378
|
+
*/
|
|
2379
|
+
identifier: {
|
|
2380
|
+
linkTemplateScript?: string;
|
|
2381
|
+
required: boolean;
|
|
2382
|
+
};
|
|
2383
|
+
/**
|
|
2384
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
2385
|
+
*/
|
|
2386
|
+
schema?: {
|
|
2387
|
+
[k: string]: any;
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2369
2391
|
channels: {
|
|
2370
2392
|
/**
|
|
2371
2393
|
* Channel definition
|
|
@@ -2683,6 +2705,26 @@ interface GetPublicIntegrationResponse {
|
|
|
2683
2705
|
[k: string]: any;
|
|
2684
2706
|
};
|
|
2685
2707
|
};
|
|
2708
|
+
configurations: {
|
|
2709
|
+
/**
|
|
2710
|
+
* Configuration definition
|
|
2711
|
+
*/
|
|
2712
|
+
[k: string]: {
|
|
2713
|
+
/**
|
|
2714
|
+
* Identifier configuration of the [Integration](#schema_integration)
|
|
2715
|
+
*/
|
|
2716
|
+
identifier: {
|
|
2717
|
+
linkTemplateScript?: string;
|
|
2718
|
+
required: boolean;
|
|
2719
|
+
};
|
|
2720
|
+
/**
|
|
2721
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
2722
|
+
*/
|
|
2723
|
+
schema?: {
|
|
2724
|
+
[k: string]: any;
|
|
2725
|
+
};
|
|
2726
|
+
};
|
|
2727
|
+
};
|
|
2686
2728
|
channels: {
|
|
2687
2729
|
/**
|
|
2688
2730
|
* Channel definition
|
|
@@ -3556,6 +3598,10 @@ interface UpdateBotRequestBody {
|
|
|
3556
3598
|
integrations?: {
|
|
3557
3599
|
[k: string]: {
|
|
3558
3600
|
enabled?: boolean;
|
|
3601
|
+
/**
|
|
3602
|
+
* Integration's configuration type. Set to default if null.
|
|
3603
|
+
*/
|
|
3604
|
+
configurationType?: string | null;
|
|
3559
3605
|
configuration?: {
|
|
3560
3606
|
[k: string]: any;
|
|
3561
3607
|
};
|
|
@@ -5206,6 +5252,9 @@ interface CreateIntegrationRequestBody {
|
|
|
5206
5252
|
};
|
|
5207
5253
|
};
|
|
5208
5254
|
};
|
|
5255
|
+
/**
|
|
5256
|
+
* Default configuration definition of the integration
|
|
5257
|
+
*/
|
|
5209
5258
|
configuration?: {
|
|
5210
5259
|
/**
|
|
5211
5260
|
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
@@ -5218,6 +5267,23 @@ interface CreateIntegrationRequestBody {
|
|
|
5218
5267
|
linkTemplateScript?: string;
|
|
5219
5268
|
};
|
|
5220
5269
|
};
|
|
5270
|
+
/**
|
|
5271
|
+
* Additional configuration definitions of the integration
|
|
5272
|
+
*/
|
|
5273
|
+
configurations?: {
|
|
5274
|
+
[k: string]: {
|
|
5275
|
+
/**
|
|
5276
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
5277
|
+
*/
|
|
5278
|
+
schema?: {
|
|
5279
|
+
[k: string]: any;
|
|
5280
|
+
};
|
|
5281
|
+
identifier?: {
|
|
5282
|
+
required?: boolean;
|
|
5283
|
+
linkTemplateScript?: string;
|
|
5284
|
+
};
|
|
5285
|
+
};
|
|
5286
|
+
};
|
|
5221
5287
|
states?: {
|
|
5222
5288
|
/**
|
|
5223
5289
|
* State definition
|
|
@@ -5516,6 +5582,26 @@ interface CreateIntegrationResponse {
|
|
|
5516
5582
|
[k: string]: any;
|
|
5517
5583
|
};
|
|
5518
5584
|
};
|
|
5585
|
+
configurations: {
|
|
5586
|
+
/**
|
|
5587
|
+
* Configuration definition
|
|
5588
|
+
*/
|
|
5589
|
+
[k: string]: {
|
|
5590
|
+
/**
|
|
5591
|
+
* Identifier configuration of the [Integration](#schema_integration)
|
|
5592
|
+
*/
|
|
5593
|
+
identifier: {
|
|
5594
|
+
linkTemplateScript?: string;
|
|
5595
|
+
required: boolean;
|
|
5596
|
+
};
|
|
5597
|
+
/**
|
|
5598
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
5599
|
+
*/
|
|
5600
|
+
schema?: {
|
|
5601
|
+
[k: string]: any;
|
|
5602
|
+
};
|
|
5603
|
+
};
|
|
5604
|
+
};
|
|
5519
5605
|
channels: {
|
|
5520
5606
|
/**
|
|
5521
5607
|
* Channel definition
|
|
@@ -5748,6 +5834,9 @@ interface UpdateIntegrationRequestParams {
|
|
|
5748
5834
|
id: string;
|
|
5749
5835
|
}
|
|
5750
5836
|
interface UpdateIntegrationRequestBody {
|
|
5837
|
+
/**
|
|
5838
|
+
* Default configuration definition of the integration
|
|
5839
|
+
*/
|
|
5751
5840
|
configuration?: {
|
|
5752
5841
|
/**
|
|
5753
5842
|
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
@@ -5760,6 +5849,23 @@ interface UpdateIntegrationRequestBody {
|
|
|
5760
5849
|
required?: boolean;
|
|
5761
5850
|
};
|
|
5762
5851
|
};
|
|
5852
|
+
/**
|
|
5853
|
+
* Additional configuration definitions of the integration
|
|
5854
|
+
*/
|
|
5855
|
+
configurations?: {
|
|
5856
|
+
[k: string]: {
|
|
5857
|
+
/**
|
|
5858
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
5859
|
+
*/
|
|
5860
|
+
schema?: {
|
|
5861
|
+
[k: string]: any;
|
|
5862
|
+
};
|
|
5863
|
+
identifier?: {
|
|
5864
|
+
linkTemplateScript?: string | null;
|
|
5865
|
+
required?: boolean;
|
|
5866
|
+
};
|
|
5867
|
+
} | null;
|
|
5868
|
+
};
|
|
5763
5869
|
channels?: {
|
|
5764
5870
|
[k: string]: {
|
|
5765
5871
|
/**
|
|
@@ -6074,6 +6180,26 @@ interface UpdateIntegrationResponse {
|
|
|
6074
6180
|
[k: string]: any;
|
|
6075
6181
|
};
|
|
6076
6182
|
};
|
|
6183
|
+
configurations: {
|
|
6184
|
+
/**
|
|
6185
|
+
* Configuration definition
|
|
6186
|
+
*/
|
|
6187
|
+
[k: string]: {
|
|
6188
|
+
/**
|
|
6189
|
+
* Identifier configuration of the [Integration](#schema_integration)
|
|
6190
|
+
*/
|
|
6191
|
+
identifier: {
|
|
6192
|
+
linkTemplateScript?: string;
|
|
6193
|
+
required: boolean;
|
|
6194
|
+
};
|
|
6195
|
+
/**
|
|
6196
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
6197
|
+
*/
|
|
6198
|
+
schema?: {
|
|
6199
|
+
[k: string]: any;
|
|
6200
|
+
};
|
|
6201
|
+
};
|
|
6202
|
+
};
|
|
6077
6203
|
channels: {
|
|
6078
6204
|
/**
|
|
6079
6205
|
* Channel definition
|
|
@@ -6449,6 +6575,26 @@ interface GetIntegrationResponse {
|
|
|
6449
6575
|
[k: string]: any;
|
|
6450
6576
|
};
|
|
6451
6577
|
};
|
|
6578
|
+
configurations: {
|
|
6579
|
+
/**
|
|
6580
|
+
* Configuration definition
|
|
6581
|
+
*/
|
|
6582
|
+
[k: string]: {
|
|
6583
|
+
/**
|
|
6584
|
+
* Identifier configuration of the [Integration](#schema_integration)
|
|
6585
|
+
*/
|
|
6586
|
+
identifier: {
|
|
6587
|
+
linkTemplateScript?: string;
|
|
6588
|
+
required: boolean;
|
|
6589
|
+
};
|
|
6590
|
+
/**
|
|
6591
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
6592
|
+
*/
|
|
6593
|
+
schema?: {
|
|
6594
|
+
[k: string]: any;
|
|
6595
|
+
};
|
|
6596
|
+
};
|
|
6597
|
+
};
|
|
6452
6598
|
channels: {
|
|
6453
6599
|
/**
|
|
6454
6600
|
* Channel definition
|
|
@@ -6783,6 +6929,26 @@ interface GetIntegrationByNameResponse {
|
|
|
6783
6929
|
[k: string]: any;
|
|
6784
6930
|
};
|
|
6785
6931
|
};
|
|
6932
|
+
configurations: {
|
|
6933
|
+
/**
|
|
6934
|
+
* Configuration definition
|
|
6935
|
+
*/
|
|
6936
|
+
[k: string]: {
|
|
6937
|
+
/**
|
|
6938
|
+
* Identifier configuration of the [Integration](#schema_integration)
|
|
6939
|
+
*/
|
|
6940
|
+
identifier: {
|
|
6941
|
+
linkTemplateScript?: string;
|
|
6942
|
+
required: boolean;
|
|
6943
|
+
};
|
|
6944
|
+
/**
|
|
6945
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
6946
|
+
*/
|
|
6947
|
+
schema?: {
|
|
6948
|
+
[k: string]: any;
|
|
6949
|
+
};
|
|
6950
|
+
};
|
|
6951
|
+
};
|
|
6786
6952
|
channels: {
|
|
6787
6953
|
/**
|
|
6788
6954
|
* Channel definition
|
|
@@ -10034,6 +10200,26 @@ interface Integration {
|
|
|
10034
10200
|
[k: string]: any;
|
|
10035
10201
|
};
|
|
10036
10202
|
};
|
|
10203
|
+
configurations: {
|
|
10204
|
+
/**
|
|
10205
|
+
* Configuration definition
|
|
10206
|
+
*/
|
|
10207
|
+
[k: string]: {
|
|
10208
|
+
/**
|
|
10209
|
+
* Identifier configuration of the [Integration](#schema_integration)
|
|
10210
|
+
*/
|
|
10211
|
+
identifier: {
|
|
10212
|
+
linkTemplateScript?: string;
|
|
10213
|
+
required: boolean;
|
|
10214
|
+
};
|
|
10215
|
+
/**
|
|
10216
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
10217
|
+
*/
|
|
10218
|
+
schema?: {
|
|
10219
|
+
[k: string]: any;
|
|
10220
|
+
};
|
|
10221
|
+
};
|
|
10222
|
+
};
|
|
10037
10223
|
channels: {
|
|
10038
10224
|
/**
|
|
10039
10225
|
* Channel definition
|