@botpress/client 0.0.11 → 0.0.12
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 +6 -6
- package/dist/bundle.cjs.map +2 -2
- package/dist/gen/api.d.ts +325 -0
- package/dist/gen/client.d.ts +7 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
- package/dist/oauth.d.ts +0 -24
package/dist/gen/api.d.ts
CHANGED
|
@@ -104,6 +104,12 @@ export interface Bot {
|
|
|
104
104
|
* @memberof Bot
|
|
105
105
|
*/
|
|
106
106
|
'dev': boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Id of the user that created the bot
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof Bot
|
|
111
|
+
*/
|
|
112
|
+
'createdBy'?: string;
|
|
107
113
|
/**
|
|
108
114
|
* Media files associated with the [Bot](#schema_bot)
|
|
109
115
|
* @type {Array<BotMediasInner>}
|
|
@@ -782,6 +788,30 @@ export interface CreateIntegrationBody {
|
|
|
782
788
|
* @memberof CreateIntegrationBody
|
|
783
789
|
*/
|
|
784
790
|
'dev'?: boolean;
|
|
791
|
+
/**
|
|
792
|
+
* Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.
|
|
793
|
+
* @type {string}
|
|
794
|
+
* @memberof CreateIntegrationBody
|
|
795
|
+
*/
|
|
796
|
+
'icon'?: string;
|
|
797
|
+
/**
|
|
798
|
+
* Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.
|
|
799
|
+
* @type {string}
|
|
800
|
+
* @memberof CreateIntegrationBody
|
|
801
|
+
*/
|
|
802
|
+
'readme'?: string;
|
|
803
|
+
/**
|
|
804
|
+
* Title of the integration. This is the name that will be displayed in the UI
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof CreateIntegrationBody
|
|
807
|
+
*/
|
|
808
|
+
'title'?: string;
|
|
809
|
+
/**
|
|
810
|
+
* Description of the integration. This is the description that will be displayed in the UI
|
|
811
|
+
* @type {string}
|
|
812
|
+
* @memberof CreateIntegrationBody
|
|
813
|
+
*/
|
|
814
|
+
'description'?: string;
|
|
785
815
|
}
|
|
786
816
|
/**
|
|
787
817
|
*
|
|
@@ -1313,6 +1343,19 @@ export interface GetIntegrationByNameResponse {
|
|
|
1313
1343
|
*/
|
|
1314
1344
|
'integration': Integration;
|
|
1315
1345
|
}
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @export
|
|
1349
|
+
* @interface GetIntegrationLogsResponse
|
|
1350
|
+
*/
|
|
1351
|
+
export interface GetIntegrationLogsResponse {
|
|
1352
|
+
/**
|
|
1353
|
+
*
|
|
1354
|
+
* @type {Array<GetBotLogsResponseLogsInner>}
|
|
1355
|
+
* @memberof GetIntegrationLogsResponse
|
|
1356
|
+
*/
|
|
1357
|
+
'logs': Array<GetBotLogsResponseLogsInner>;
|
|
1358
|
+
}
|
|
1316
1359
|
/**
|
|
1317
1360
|
*
|
|
1318
1361
|
* @export
|
|
@@ -1419,6 +1462,12 @@ export interface GetOrCreateMessageBody {
|
|
|
1419
1462
|
'tags': {
|
|
1420
1463
|
[key: string]: string;
|
|
1421
1464
|
};
|
|
1465
|
+
/**
|
|
1466
|
+
*
|
|
1467
|
+
* @type {CreateMessageBodySchedule}
|
|
1468
|
+
* @memberof GetOrCreateMessageBody
|
|
1469
|
+
*/
|
|
1470
|
+
'schedule'?: CreateMessageBodySchedule;
|
|
1422
1471
|
}
|
|
1423
1472
|
/**
|
|
1424
1473
|
*
|
|
@@ -1519,6 +1568,61 @@ export interface GetUserResponse {
|
|
|
1519
1568
|
*/
|
|
1520
1569
|
'user': User;
|
|
1521
1570
|
}
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
* @export
|
|
1574
|
+
* @interface GetWorkspaceResponse
|
|
1575
|
+
*/
|
|
1576
|
+
export interface GetWorkspaceResponse {
|
|
1577
|
+
/**
|
|
1578
|
+
*
|
|
1579
|
+
* @type {string}
|
|
1580
|
+
* @memberof GetWorkspaceResponse
|
|
1581
|
+
*/
|
|
1582
|
+
'id': string;
|
|
1583
|
+
/**
|
|
1584
|
+
*
|
|
1585
|
+
* @type {string}
|
|
1586
|
+
* @memberof GetWorkspaceResponse
|
|
1587
|
+
*/
|
|
1588
|
+
'name': string;
|
|
1589
|
+
/**
|
|
1590
|
+
*
|
|
1591
|
+
* @type {string}
|
|
1592
|
+
* @memberof GetWorkspaceResponse
|
|
1593
|
+
*/
|
|
1594
|
+
'ownerId': string;
|
|
1595
|
+
/**
|
|
1596
|
+
*
|
|
1597
|
+
* @type {string}
|
|
1598
|
+
* @memberof GetWorkspaceResponse
|
|
1599
|
+
*/
|
|
1600
|
+
'createdAt': string;
|
|
1601
|
+
/**
|
|
1602
|
+
*
|
|
1603
|
+
* @type {string}
|
|
1604
|
+
* @memberof GetWorkspaceResponse
|
|
1605
|
+
*/
|
|
1606
|
+
'updatedAt': string;
|
|
1607
|
+
/**
|
|
1608
|
+
*
|
|
1609
|
+
* @type {string}
|
|
1610
|
+
* @memberof GetWorkspaceResponse
|
|
1611
|
+
*/
|
|
1612
|
+
'accountType': string;
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @type {boolean}
|
|
1616
|
+
* @memberof GetWorkspaceResponse
|
|
1617
|
+
*/
|
|
1618
|
+
'blocked': boolean;
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @type {number}
|
|
1622
|
+
* @memberof GetWorkspaceResponse
|
|
1623
|
+
*/
|
|
1624
|
+
'spendingLimit': number;
|
|
1625
|
+
}
|
|
1522
1626
|
/**
|
|
1523
1627
|
*
|
|
1524
1628
|
* @export
|
|
@@ -1605,6 +1709,30 @@ export interface Integration {
|
|
|
1605
1709
|
* @memberof Integration
|
|
1606
1710
|
*/
|
|
1607
1711
|
'dev': boolean;
|
|
1712
|
+
/**
|
|
1713
|
+
* Title of the integration. This is the name that will be displayed in the UI
|
|
1714
|
+
* @type {string}
|
|
1715
|
+
* @memberof Integration
|
|
1716
|
+
*/
|
|
1717
|
+
'title': string;
|
|
1718
|
+
/**
|
|
1719
|
+
* Description of the integration. This is the description that will be displayed in the UI
|
|
1720
|
+
* @type {string}
|
|
1721
|
+
* @memberof Integration
|
|
1722
|
+
*/
|
|
1723
|
+
'description': string;
|
|
1724
|
+
/**
|
|
1725
|
+
* URL of the icon of the integration. This is the icon that will be displayed in the UI
|
|
1726
|
+
* @type {string}
|
|
1727
|
+
* @memberof Integration
|
|
1728
|
+
*/
|
|
1729
|
+
'iconUrl': string;
|
|
1730
|
+
/**
|
|
1731
|
+
* URL of the readme of the integration. This is the readme that will be displayed in the UI
|
|
1732
|
+
* @type {string}
|
|
1733
|
+
* @memberof Integration
|
|
1734
|
+
*/
|
|
1735
|
+
'readmeUrl': string;
|
|
1608
1736
|
}
|
|
1609
1737
|
/**
|
|
1610
1738
|
*
|
|
@@ -1890,6 +2018,24 @@ export interface ListPublicIntegrationsResponseIntegrationsInner {
|
|
|
1890
2018
|
* @memberof ListPublicIntegrationsResponseIntegrationsInner
|
|
1891
2019
|
*/
|
|
1892
2020
|
'updatedAt': string;
|
|
2021
|
+
/**
|
|
2022
|
+
* Title of the integration. This is the name that will be displayed in the UI
|
|
2023
|
+
* @type {string}
|
|
2024
|
+
* @memberof ListPublicIntegrationsResponseIntegrationsInner
|
|
2025
|
+
*/
|
|
2026
|
+
'title': string;
|
|
2027
|
+
/**
|
|
2028
|
+
* Description of the integration. This is the description that will be displayed in the UI
|
|
2029
|
+
* @type {string}
|
|
2030
|
+
* @memberof ListPublicIntegrationsResponseIntegrationsInner
|
|
2031
|
+
*/
|
|
2032
|
+
'description': string;
|
|
2033
|
+
/**
|
|
2034
|
+
* URL of the icon of the integration. This is the icon that will be displayed in the UI
|
|
2035
|
+
* @type {string}
|
|
2036
|
+
* @memberof ListPublicIntegrationsResponseIntegrationsInner
|
|
2037
|
+
*/
|
|
2038
|
+
'iconUrl': string;
|
|
1893
2039
|
}
|
|
1894
2040
|
/**
|
|
1895
2041
|
*
|
|
@@ -2462,6 +2608,30 @@ export interface UpdateIntegrationBody {
|
|
|
2462
2608
|
* @memberof UpdateIntegrationBody
|
|
2463
2609
|
*/
|
|
2464
2610
|
'url'?: string;
|
|
2611
|
+
/**
|
|
2612
|
+
* Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.
|
|
2613
|
+
* @type {string}
|
|
2614
|
+
* @memberof UpdateIntegrationBody
|
|
2615
|
+
*/
|
|
2616
|
+
'icon'?: string;
|
|
2617
|
+
/**
|
|
2618
|
+
* Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.
|
|
2619
|
+
* @type {string}
|
|
2620
|
+
* @memberof UpdateIntegrationBody
|
|
2621
|
+
*/
|
|
2622
|
+
'readme'?: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* Title of the integration. This is the name that will be displayed in the UI
|
|
2625
|
+
* @type {string}
|
|
2626
|
+
* @memberof UpdateIntegrationBody
|
|
2627
|
+
*/
|
|
2628
|
+
'title'?: string;
|
|
2629
|
+
/**
|
|
2630
|
+
* Description of the integration. This is the description that will be displayed in the UI
|
|
2631
|
+
* @type {string}
|
|
2632
|
+
* @memberof UpdateIntegrationBody
|
|
2633
|
+
*/
|
|
2634
|
+
'description'?: string;
|
|
2465
2635
|
}
|
|
2466
2636
|
/**
|
|
2467
2637
|
*
|
|
@@ -2565,6 +2735,61 @@ export interface User {
|
|
|
2565
2735
|
[key: string]: string;
|
|
2566
2736
|
};
|
|
2567
2737
|
}
|
|
2738
|
+
/**
|
|
2739
|
+
*
|
|
2740
|
+
* @export
|
|
2741
|
+
* @interface Workspace
|
|
2742
|
+
*/
|
|
2743
|
+
export interface Workspace {
|
|
2744
|
+
/**
|
|
2745
|
+
*
|
|
2746
|
+
* @type {string}
|
|
2747
|
+
* @memberof Workspace
|
|
2748
|
+
*/
|
|
2749
|
+
'id': string;
|
|
2750
|
+
/**
|
|
2751
|
+
*
|
|
2752
|
+
* @type {string}
|
|
2753
|
+
* @memberof Workspace
|
|
2754
|
+
*/
|
|
2755
|
+
'name': string;
|
|
2756
|
+
/**
|
|
2757
|
+
*
|
|
2758
|
+
* @type {string}
|
|
2759
|
+
* @memberof Workspace
|
|
2760
|
+
*/
|
|
2761
|
+
'ownerId': string;
|
|
2762
|
+
/**
|
|
2763
|
+
*
|
|
2764
|
+
* @type {string}
|
|
2765
|
+
* @memberof Workspace
|
|
2766
|
+
*/
|
|
2767
|
+
'createdAt': string;
|
|
2768
|
+
/**
|
|
2769
|
+
*
|
|
2770
|
+
* @type {string}
|
|
2771
|
+
* @memberof Workspace
|
|
2772
|
+
*/
|
|
2773
|
+
'updatedAt': string;
|
|
2774
|
+
/**
|
|
2775
|
+
*
|
|
2776
|
+
* @type {string}
|
|
2777
|
+
* @memberof Workspace
|
|
2778
|
+
*/
|
|
2779
|
+
'accountType': string;
|
|
2780
|
+
/**
|
|
2781
|
+
*
|
|
2782
|
+
* @type {boolean}
|
|
2783
|
+
* @memberof Workspace
|
|
2784
|
+
*/
|
|
2785
|
+
'blocked': boolean;
|
|
2786
|
+
/**
|
|
2787
|
+
*
|
|
2788
|
+
* @type {number}
|
|
2789
|
+
* @memberof Workspace
|
|
2790
|
+
*/
|
|
2791
|
+
'spendingLimit': number;
|
|
2792
|
+
}
|
|
2568
2793
|
/**
|
|
2569
2794
|
* DefaultApi - axios parameter creator
|
|
2570
2795
|
* @export
|
|
@@ -2749,6 +2974,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2749
2974
|
* @throws {RequiredError}
|
|
2750
2975
|
*/
|
|
2751
2976
|
getIntegrationByName: (name: string, version: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2977
|
+
/**
|
|
2978
|
+
* Get integration logs
|
|
2979
|
+
* @param {string} id Integration Id
|
|
2980
|
+
* @param {*} [options] Override http request option.
|
|
2981
|
+
* @throws {RequiredError}
|
|
2982
|
+
*/
|
|
2983
|
+
getIntegrationLogs: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2752
2984
|
/**
|
|
2753
2985
|
* Retrieves the [Message](#schema_message) object for a valid identifier.
|
|
2754
2986
|
* @param {string} id Id of the Message
|
|
@@ -2808,6 +3040,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2808
3040
|
* @throws {RequiredError}
|
|
2809
3041
|
*/
|
|
2810
3042
|
getUser: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3043
|
+
/**
|
|
3044
|
+
* Get workspace details
|
|
3045
|
+
* @param {string} id Workspace ID
|
|
3046
|
+
* @param {*} [options] Override http request option.
|
|
3047
|
+
* @throws {RequiredError}
|
|
3048
|
+
*/
|
|
3049
|
+
getWorkspace: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2811
3050
|
/**
|
|
2812
3051
|
* Introspect the API
|
|
2813
3052
|
* @param {IntrospectBody} [introspectBody]
|
|
@@ -3148,6 +3387,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3148
3387
|
* @throws {RequiredError}
|
|
3149
3388
|
*/
|
|
3150
3389
|
getIntegrationByName(name: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationByNameResponse>>;
|
|
3390
|
+
/**
|
|
3391
|
+
* Get integration logs
|
|
3392
|
+
* @param {string} id Integration Id
|
|
3393
|
+
* @param {*} [options] Override http request option.
|
|
3394
|
+
* @throws {RequiredError}
|
|
3395
|
+
*/
|
|
3396
|
+
getIntegrationLogs(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationLogsResponse>>;
|
|
3151
3397
|
/**
|
|
3152
3398
|
* Retrieves the [Message](#schema_message) object for a valid identifier.
|
|
3153
3399
|
* @param {string} id Id of the Message
|
|
@@ -3207,6 +3453,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3207
3453
|
* @throws {RequiredError}
|
|
3208
3454
|
*/
|
|
3209
3455
|
getUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponse>>;
|
|
3456
|
+
/**
|
|
3457
|
+
* Get workspace details
|
|
3458
|
+
* @param {string} id Workspace ID
|
|
3459
|
+
* @param {*} [options] Override http request option.
|
|
3460
|
+
* @throws {RequiredError}
|
|
3461
|
+
*/
|
|
3462
|
+
getWorkspace(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetWorkspaceResponse>>;
|
|
3210
3463
|
/**
|
|
3211
3464
|
* Introspect the API
|
|
3212
3465
|
* @param {IntrospectBody} [introspectBody]
|
|
@@ -3547,6 +3800,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3547
3800
|
* @throws {RequiredError}
|
|
3548
3801
|
*/
|
|
3549
3802
|
getIntegrationByName(name: string, version: string, options?: any): AxiosPromise<GetIntegrationByNameResponse>;
|
|
3803
|
+
/**
|
|
3804
|
+
* Get integration logs
|
|
3805
|
+
* @param {string} id Integration Id
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
getIntegrationLogs(id: string, options?: any): AxiosPromise<GetIntegrationLogsResponse>;
|
|
3550
3810
|
/**
|
|
3551
3811
|
* Retrieves the [Message](#schema_message) object for a valid identifier.
|
|
3552
3812
|
* @param {string} id Id of the Message
|
|
@@ -3606,6 +3866,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3606
3866
|
* @throws {RequiredError}
|
|
3607
3867
|
*/
|
|
3608
3868
|
getUser(id: string, options?: any): AxiosPromise<GetUserResponse>;
|
|
3869
|
+
/**
|
|
3870
|
+
* Get workspace details
|
|
3871
|
+
* @param {string} id Workspace ID
|
|
3872
|
+
* @param {*} [options] Override http request option.
|
|
3873
|
+
* @throws {RequiredError}
|
|
3874
|
+
*/
|
|
3875
|
+
getWorkspace(id: string, options?: any): AxiosPromise<GetWorkspaceResponse>;
|
|
3609
3876
|
/**
|
|
3610
3877
|
* Introspect the API
|
|
3611
3878
|
* @param {IntrospectBody} [introspectBody]
|
|
@@ -3972,6 +4239,14 @@ export interface DefaultApiInterface {
|
|
|
3972
4239
|
* @memberof DefaultApiInterface
|
|
3973
4240
|
*/
|
|
3974
4241
|
getIntegrationByName(name: string, version: string, options?: AxiosRequestConfig): AxiosPromise<GetIntegrationByNameResponse>;
|
|
4242
|
+
/**
|
|
4243
|
+
* Get integration logs
|
|
4244
|
+
* @param {string} id Integration Id
|
|
4245
|
+
* @param {*} [options] Override http request option.
|
|
4246
|
+
* @throws {RequiredError}
|
|
4247
|
+
* @memberof DefaultApiInterface
|
|
4248
|
+
*/
|
|
4249
|
+
getIntegrationLogs(id: string, options?: AxiosRequestConfig): AxiosPromise<GetIntegrationLogsResponse>;
|
|
3975
4250
|
/**
|
|
3976
4251
|
* Retrieves the [Message](#schema_message) object for a valid identifier.
|
|
3977
4252
|
* @param {string} id Id of the Message
|
|
@@ -4039,6 +4314,14 @@ export interface DefaultApiInterface {
|
|
|
4039
4314
|
* @memberof DefaultApiInterface
|
|
4040
4315
|
*/
|
|
4041
4316
|
getUser(id: string, options?: AxiosRequestConfig): AxiosPromise<GetUserResponse>;
|
|
4317
|
+
/**
|
|
4318
|
+
* Get workspace details
|
|
4319
|
+
* @param {string} id Workspace ID
|
|
4320
|
+
* @param {*} [options] Override http request option.
|
|
4321
|
+
* @throws {RequiredError}
|
|
4322
|
+
* @memberof DefaultApiInterface
|
|
4323
|
+
*/
|
|
4324
|
+
getWorkspace(id: string, options?: AxiosRequestConfig): AxiosPromise<GetWorkspaceResponse>;
|
|
4042
4325
|
/**
|
|
4043
4326
|
* Introspect the API
|
|
4044
4327
|
* @param {IntrospectBody} [introspectBody]
|
|
@@ -4562,6 +4845,19 @@ export interface DefaultApiGetIntegrationByNameRequest {
|
|
|
4562
4845
|
*/
|
|
4563
4846
|
readonly version: string;
|
|
4564
4847
|
}
|
|
4848
|
+
/**
|
|
4849
|
+
* Request parameters for getIntegrationLogs operation in DefaultApi.
|
|
4850
|
+
* @export
|
|
4851
|
+
* @interface DefaultApiGetIntegrationLogsRequest
|
|
4852
|
+
*/
|
|
4853
|
+
export interface DefaultApiGetIntegrationLogsRequest {
|
|
4854
|
+
/**
|
|
4855
|
+
* Integration Id
|
|
4856
|
+
* @type {string}
|
|
4857
|
+
* @memberof DefaultApiGetIntegrationLogs
|
|
4858
|
+
*/
|
|
4859
|
+
readonly id: string;
|
|
4860
|
+
}
|
|
4565
4861
|
/**
|
|
4566
4862
|
* Request parameters for getMessage operation in DefaultApi.
|
|
4567
4863
|
* @export
|
|
@@ -4684,6 +4980,19 @@ export interface DefaultApiGetUserRequest {
|
|
|
4684
4980
|
*/
|
|
4685
4981
|
readonly id: string;
|
|
4686
4982
|
}
|
|
4983
|
+
/**
|
|
4984
|
+
* Request parameters for getWorkspace operation in DefaultApi.
|
|
4985
|
+
* @export
|
|
4986
|
+
* @interface DefaultApiGetWorkspaceRequest
|
|
4987
|
+
*/
|
|
4988
|
+
export interface DefaultApiGetWorkspaceRequest {
|
|
4989
|
+
/**
|
|
4990
|
+
* Workspace ID
|
|
4991
|
+
* @type {string}
|
|
4992
|
+
* @memberof DefaultApiGetWorkspace
|
|
4993
|
+
*/
|
|
4994
|
+
readonly id: string;
|
|
4995
|
+
}
|
|
4687
4996
|
/**
|
|
4688
4997
|
* Request parameters for introspect operation in DefaultApi.
|
|
4689
4998
|
* @export
|
|
@@ -5269,6 +5578,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
5269
5578
|
* @memberof DefaultApi
|
|
5270
5579
|
*/
|
|
5271
5580
|
getIntegrationByName(requestParameters: DefaultApiGetIntegrationByNameRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetIntegrationByNameResponse, any>>;
|
|
5581
|
+
/**
|
|
5582
|
+
* Get integration logs
|
|
5583
|
+
* @param {DefaultApiGetIntegrationLogsRequest} requestParameters Request parameters.
|
|
5584
|
+
* @param {*} [options] Override http request option.
|
|
5585
|
+
* @throws {RequiredError}
|
|
5586
|
+
* @memberof DefaultApi
|
|
5587
|
+
*/
|
|
5588
|
+
getIntegrationLogs(requestParameters: DefaultApiGetIntegrationLogsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetIntegrationLogsResponse, any>>;
|
|
5272
5589
|
/**
|
|
5273
5590
|
* Retrieves the [Message](#schema_message) object for a valid identifier.
|
|
5274
5591
|
* @param {DefaultApiGetMessageRequest} requestParameters Request parameters.
|
|
@@ -5333,6 +5650,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
5333
5650
|
* @memberof DefaultApi
|
|
5334
5651
|
*/
|
|
5335
5652
|
getUser(requestParameters: DefaultApiGetUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserResponse, any>>;
|
|
5653
|
+
/**
|
|
5654
|
+
* Get workspace details
|
|
5655
|
+
* @param {DefaultApiGetWorkspaceRequest} requestParameters Request parameters.
|
|
5656
|
+
* @param {*} [options] Override http request option.
|
|
5657
|
+
* @throws {RequiredError}
|
|
5658
|
+
* @memberof DefaultApi
|
|
5659
|
+
*/
|
|
5660
|
+
getWorkspace(requestParameters: DefaultApiGetWorkspaceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetWorkspaceResponse, any>>;
|
|
5336
5661
|
/**
|
|
5337
5662
|
* Introspect the API
|
|
5338
5663
|
* @param {DefaultApiIntrospectRequest} requestParameters Request parameters.
|
package/dist/gen/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import type { Merge, Except } from 'type-fest';
|
|
3
|
-
import { Configuration, DefaultApiCreateConversationRequest, DefaultApiGetConversationRequest, DefaultApiListConversationsRequest, DefaultApiGetOrCreateConversationRequest, DefaultApiUpdateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest, DefaultApiListEventsRequest, DefaultApiCreateMessageRequest, DefaultApiGetOrCreateMessageRequest, DefaultApiGetMessageRequest, DefaultApiUpdateMessageRequest, DefaultApiListMessagesRequest, DefaultApiDeleteMessageRequest, DefaultApiCreateUserRequest, DefaultApiGetUserRequest, DefaultApiListUsersRequest, DefaultApiGetOrCreateUserRequest, DefaultApiUpdateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetStateRequest, DefaultApiSetStateRequest, DefaultApiPatchStateRequest, DefaultApiCallActionRequest, DefaultApiConfigureIntegrationRequest, DefaultApiListPublicIntegrationsRequest, DefaultApiGetPublicIntegrationByIdRequest, DefaultApiGetPublicIntegrationRequest, DefaultApiCreateBotRequest, DefaultApiUpdateBotRequest, DefaultApiTransferBotRequest, DefaultApiListBotsRequest, DefaultApiGetBotRequest, DefaultApiDeleteBotRequest, DefaultApiGetBotLogsRequest, DefaultApiGetBotWebchatRequest, DefaultApiGetBotAnalyticsRequest, DefaultApiCreateIntegrationRequest, DefaultApiUpdateIntegrationRequest, DefaultApiListIntegrationsRequest, DefaultApiGetIntegrationRequest, DefaultApiGetIntegrationByNameRequest, DefaultApiDeleteIntegrationRequest,
|
|
3
|
+
import { Configuration, DefaultApiCreateConversationRequest, DefaultApiGetConversationRequest, DefaultApiListConversationsRequest, DefaultApiGetOrCreateConversationRequest, DefaultApiUpdateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest, DefaultApiListEventsRequest, DefaultApiCreateMessageRequest, DefaultApiGetOrCreateMessageRequest, DefaultApiGetMessageRequest, DefaultApiUpdateMessageRequest, DefaultApiListMessagesRequest, DefaultApiDeleteMessageRequest, DefaultApiCreateUserRequest, DefaultApiGetUserRequest, DefaultApiListUsersRequest, DefaultApiGetOrCreateUserRequest, DefaultApiUpdateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetStateRequest, DefaultApiSetStateRequest, DefaultApiPatchStateRequest, DefaultApiCallActionRequest, DefaultApiConfigureIntegrationRequest, DefaultApiListPublicIntegrationsRequest, DefaultApiGetPublicIntegrationByIdRequest, DefaultApiGetPublicIntegrationRequest, DefaultApiCreateBotRequest, DefaultApiUpdateBotRequest, DefaultApiTransferBotRequest, DefaultApiListBotsRequest, DefaultApiGetBotRequest, DefaultApiDeleteBotRequest, DefaultApiGetBotLogsRequest, DefaultApiGetBotWebchatRequest, DefaultApiGetBotAnalyticsRequest, DefaultApiGetWorkspaceRequest, DefaultApiListWorkspacesRequest, DefaultApiCreateIntegrationRequest, DefaultApiUpdateIntegrationRequest, DefaultApiListIntegrationsRequest, DefaultApiGetIntegrationRequest, DefaultApiGetIntegrationLogsRequest, DefaultApiGetIntegrationByNameRequest, DefaultApiDeleteIntegrationRequest, DefaultApiIntrospectRequest, DefaultApiCreateFileRequest, DefaultApiGetFileRequest, DefaultApiDownloadFileRequest, DefaultApiDeleteFileRequest, DefaultApiListFilesRequest } from '.';
|
|
4
4
|
export declare class ApiClient {
|
|
5
5
|
private _innerClient;
|
|
6
6
|
constructor(configuration?: Configuration, basePath?: string, axiosInstance?: AxiosInstance);
|
|
@@ -42,13 +42,15 @@ export declare class ApiClient {
|
|
|
42
42
|
getBotLogs: (props: GetBotLogsProps) => Promise<import("./api").GetBotLogsResponse>;
|
|
43
43
|
getBotWebchat: (props: GetBotWebchatProps) => Promise<import("./api").GetBotWebchatResponse>;
|
|
44
44
|
getBotAnalytics: (props: GetBotAnalyticsProps) => Promise<import("./api").GetBotAnalyticsResponse>;
|
|
45
|
+
getWorkspace: (props: GetWorkspaceProps) => Promise<import("./api").GetWorkspaceResponse>;
|
|
46
|
+
listWorkspaces: (props: ListWorkspacesProps) => Promise<import("./api").ListWorkspacesResponse>;
|
|
45
47
|
createIntegration: (createIntegrationBody: CreateIntegrationProps) => Promise<import("./api").CreateIntegrationResponse>;
|
|
46
48
|
updateIntegration: ({ id, ...updateIntegrationBody }: UpdateIntegrationProps) => Promise<import("./api").UpdateIntegrationResponse>;
|
|
47
49
|
listIntegrations: (props: ListIntegrationsProps) => Promise<import("./api").ListIntegrationsResponse>;
|
|
48
50
|
getIntegration: (props: GetIntegrationProps) => Promise<import("./api").GetIntegrationResponse>;
|
|
51
|
+
getIntegrationLogs: (props: GetIntegrationLogsProps) => Promise<import("./api").GetIntegrationLogsResponse>;
|
|
49
52
|
getIntegrationByName: (props: GetIntegrationByNameProps) => Promise<import("./api").GetIntegrationByNameResponse>;
|
|
50
53
|
deleteIntegration: (props: DeleteIntegrationProps) => Promise<object>;
|
|
51
|
-
listWorkspaces: (props: ListWorkspacesProps) => Promise<import("./api").ListWorkspacesResponse>;
|
|
52
54
|
introspect: (introspectBody: IntrospectProps) => Promise<import("./api").IntrospectResponse>;
|
|
53
55
|
createFile: (createFileBody: CreateFileProps) => Promise<import("./api").CreateFileResponse>;
|
|
54
56
|
getFile: (props: GetFileProps) => Promise<import("./api").GetFileResponse>;
|
|
@@ -94,13 +96,15 @@ export type DeleteBotProps = Merge<DefaultApiDeleteBotRequest, {}>;
|
|
|
94
96
|
export type GetBotLogsProps = Merge<DefaultApiGetBotLogsRequest, {}>;
|
|
95
97
|
export type GetBotWebchatProps = Merge<DefaultApiGetBotWebchatRequest, {}>;
|
|
96
98
|
export type GetBotAnalyticsProps = Merge<DefaultApiGetBotAnalyticsRequest, {}>;
|
|
99
|
+
export type GetWorkspaceProps = Merge<DefaultApiGetWorkspaceRequest, {}>;
|
|
100
|
+
export type ListWorkspacesProps = Merge<DefaultApiListWorkspacesRequest, {}>;
|
|
97
101
|
export type CreateIntegrationProps = Merge<Except<DefaultApiCreateIntegrationRequest, 'createIntegrationBody'>, NonNullable<DefaultApiCreateIntegrationRequest['createIntegrationBody']>>;
|
|
98
102
|
export type UpdateIntegrationProps = Merge<Except<DefaultApiUpdateIntegrationRequest, 'updateIntegrationBody'>, NonNullable<DefaultApiUpdateIntegrationRequest['updateIntegrationBody']>>;
|
|
99
103
|
export type ListIntegrationsProps = Merge<DefaultApiListIntegrationsRequest, {}>;
|
|
100
104
|
export type GetIntegrationProps = Merge<DefaultApiGetIntegrationRequest, {}>;
|
|
105
|
+
export type GetIntegrationLogsProps = Merge<DefaultApiGetIntegrationLogsRequest, {}>;
|
|
101
106
|
export type GetIntegrationByNameProps = Merge<DefaultApiGetIntegrationByNameRequest, {}>;
|
|
102
107
|
export type DeleteIntegrationProps = Merge<DefaultApiDeleteIntegrationRequest, {}>;
|
|
103
|
-
export type ListWorkspacesProps = Merge<DefaultApiListWorkspacesRequest, {}>;
|
|
104
108
|
export type IntrospectProps = Merge<Except<DefaultApiIntrospectRequest, 'introspectBody'>, NonNullable<DefaultApiIntrospectRequest['introspectBody']>>;
|
|
105
109
|
export type CreateFileProps = Merge<Except<DefaultApiCreateFileRequest, 'createFileBody'>, NonNullable<DefaultApiCreateFileRequest['createFileBody']>>;
|
|
106
110
|
export type GetFileProps = Merge<DefaultApiGetFileRequest, {}>;
|