@epam/ai-dial-chat-api-client 1.0.0-rc.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/generated/src/apis/AppConfigApi.d.ts +30 -0
- package/generated/src/apis/AppConfigApi.d.ts.map +1 -0
- package/generated/src/apis/AppConfigApi.js +52 -0
- package/generated/src/apis/ApplicationsApi.d.ts +96 -0
- package/generated/src/apis/ApplicationsApi.d.ts.map +1 -0
- package/generated/src/apis/ApplicationsApi.js +189 -0
- package/generated/src/apis/AuthApi.d.ts +65 -0
- package/generated/src/apis/AuthApi.d.ts.map +1 -0
- package/generated/src/apis/AuthApi.js +146 -0
- package/generated/src/apis/ChatApi.d.ts +30 -0
- package/generated/src/apis/ChatApi.d.ts.map +1 -0
- package/generated/src/apis/ChatApi.js +51 -0
- package/generated/src/apis/ClientChannelApi.d.ts +59 -0
- package/generated/src/apis/ClientChannelApi.d.ts.map +1 -0
- package/generated/src/apis/ClientChannelApi.js +113 -0
- package/generated/src/apis/ConversationsApi.d.ts +231 -0
- package/generated/src/apis/ConversationsApi.d.ts.map +1 -0
- package/generated/src/apis/ConversationsApi.js +527 -0
- package/generated/src/apis/DeploymentsApi.d.ts +81 -0
- package/generated/src/apis/DeploymentsApi.d.ts.map +1 -0
- package/generated/src/apis/DeploymentsApi.js +146 -0
- package/generated/src/apis/ExternalServicesApi.d.ts +63 -0
- package/generated/src/apis/ExternalServicesApi.d.ts.map +1 -0
- package/generated/src/apis/ExternalServicesApi.js +130 -0
- package/generated/src/apis/FilesApi.d.ts +224 -0
- package/generated/src/apis/FilesApi.d.ts.map +1 -0
- package/generated/src/apis/FilesApi.js +570 -0
- package/generated/src/apis/HealthApi.d.ts +29 -0
- package/generated/src/apis/HealthApi.d.ts.map +1 -0
- package/generated/src/apis/HealthApi.js +48 -0
- package/generated/src/apis/ModelsApi.d.ts +42 -0
- package/generated/src/apis/ModelsApi.d.ts.map +1 -0
- package/generated/src/apis/ModelsApi.js +76 -0
- package/generated/src/apis/PromptsApi.d.ts +139 -0
- package/generated/src/apis/PromptsApi.d.ts.map +1 -0
- package/generated/src/apis/PromptsApi.js +333 -0
- package/generated/src/apis/PublishApi.d.ts +79 -0
- package/generated/src/apis/PublishApi.d.ts.map +1 -0
- package/generated/src/apis/PublishApi.js +139 -0
- package/generated/src/apis/RateApi.d.ts +32 -0
- package/generated/src/apis/RateApi.d.ts.map +1 -0
- package/generated/src/apis/RateApi.js +52 -0
- package/generated/src/apis/ScheduledTasksApi.d.ts +126 -0
- package/generated/src/apis/ScheduledTasksApi.d.ts.map +1 -0
- package/generated/src/apis/ScheduledTasksApi.js +249 -0
- package/generated/src/apis/ShareApi.d.ts +71 -0
- package/generated/src/apis/ShareApi.d.ts.map +1 -0
- package/generated/src/apis/ShareApi.js +139 -0
- package/generated/src/apis/ThemesApi.d.ts +42 -0
- package/generated/src/apis/ThemesApi.d.ts.map +1 -0
- package/generated/src/apis/ThemesApi.js +83 -0
- package/generated/src/apis/ToolsetsApi.d.ts +110 -0
- package/generated/src/apis/ToolsetsApi.d.ts.map +1 -0
- package/generated/src/apis/ToolsetsApi.js +231 -0
- package/generated/src/apis/TranscriptionApi.d.ts +30 -0
- package/generated/src/apis/TranscriptionApi.d.ts.map +1 -0
- package/generated/src/apis/TranscriptionApi.js +51 -0
- package/generated/src/apis/UserConfigApi.d.ts +71 -0
- package/generated/src/apis/UserConfigApi.d.ts.map +1 -0
- package/generated/src/apis/UserConfigApi.js +150 -0
- package/generated/src/apis/index.d.ts +21 -0
- package/generated/src/apis/index.d.ts.map +1 -0
- package/generated/src/apis/index.js +25 -0
- package/generated/src/index.d.ts +4 -0
- package/generated/src/index.d.ts.map +1 -0
- package/generated/src/index.js +8 -0
- package/generated/src/models/index.d.ts +6282 -0
- package/generated/src/models/index.d.ts.map +1 -0
- package/generated/src/models/index.js +328 -0
- package/generated/src/runtime.d.ts +182 -0
- package/generated/src/runtime.d.ts.map +1 -0
- package/generated/src/runtime.js +347 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/index.js +4 -0
- package/package.json +26 -0
- package/tsconfig.lib.tsbuildinfo +1 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat API
|
|
3
|
+
* REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { DialToolsetDto, DialToolsetListResponseDto, MutatedToolsetDto, ToolsetAuthResultDto, ToolsetBodyDto, ToolsetLoginBodyDto, ToolsetLogoutBodyDto } from '../models/index';
|
|
14
|
+
export interface CreateToolsetRequest {
|
|
15
|
+
toolsetBodyDto: ToolsetBodyDto;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteToolsetRequest {
|
|
18
|
+
toolsetName: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetToolsetRequest {
|
|
21
|
+
toolsetName: string;
|
|
22
|
+
}
|
|
23
|
+
export interface LoginToolsetRequest {
|
|
24
|
+
toolsetName: string;
|
|
25
|
+
toolsetLoginBodyDto: ToolsetLoginBodyDto;
|
|
26
|
+
}
|
|
27
|
+
export interface LogoutToolsetRequest {
|
|
28
|
+
toolsetName: string;
|
|
29
|
+
toolsetLogoutBodyDto: ToolsetLogoutBodyDto;
|
|
30
|
+
}
|
|
31
|
+
export interface UpdateToolsetRequest {
|
|
32
|
+
toolsetName: string;
|
|
33
|
+
toolsetBodyDto: ToolsetBodyDto;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare class ToolsetsApi extends runtime.BaseAPI {
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
|
|
41
|
+
* Create a new toolset
|
|
42
|
+
*/
|
|
43
|
+
createToolsetRaw(requestParameters: CreateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MutatedToolsetDto>>;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
|
|
46
|
+
* Create a new toolset
|
|
47
|
+
*/
|
|
48
|
+
createToolset(requestParameters: CreateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MutatedToolsetDto>;
|
|
49
|
+
/**
|
|
50
|
+
* Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
51
|
+
* Delete a toolset
|
|
52
|
+
*/
|
|
53
|
+
deleteToolsetRaw(requestParameters: DeleteToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
56
|
+
* Delete a toolset
|
|
57
|
+
*/
|
|
58
|
+
deleteToolset(requestParameters: DeleteToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
61
|
+
* Get toolset by name
|
|
62
|
+
*/
|
|
63
|
+
getToolsetRaw(requestParameters: GetToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DialToolsetDto>>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
66
|
+
* Get toolset by name
|
|
67
|
+
*/
|
|
68
|
+
getToolset(requestParameters: GetToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DialToolsetDto>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
71
|
+
* List available toolsets
|
|
72
|
+
*/
|
|
73
|
+
listToolsetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DialToolsetListResponseDto>>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
76
|
+
* List available toolsets
|
|
77
|
+
*/
|
|
78
|
+
listToolsets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DialToolsetListResponseDto>;
|
|
79
|
+
/**
|
|
80
|
+
* Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
|
|
81
|
+
* Submit toolset credentials
|
|
82
|
+
*/
|
|
83
|
+
loginToolsetRaw(requestParameters: LoginToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolsetAuthResultDto>>;
|
|
84
|
+
/**
|
|
85
|
+
* Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
|
|
86
|
+
* Submit toolset credentials
|
|
87
|
+
*/
|
|
88
|
+
loginToolset(requestParameters: LoginToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolsetAuthResultDto>;
|
|
89
|
+
/**
|
|
90
|
+
* Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
|
|
91
|
+
* Revoke toolset credentials
|
|
92
|
+
*/
|
|
93
|
+
logoutToolsetRaw(requestParameters: LogoutToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolsetAuthResultDto>>;
|
|
94
|
+
/**
|
|
95
|
+
* Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
|
|
96
|
+
* Revoke toolset credentials
|
|
97
|
+
*/
|
|
98
|
+
logoutToolset(requestParameters: LogoutToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolsetAuthResultDto>;
|
|
99
|
+
/**
|
|
100
|
+
* Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
101
|
+
* Update a toolset
|
|
102
|
+
*/
|
|
103
|
+
updateToolsetRaw(requestParameters: UpdateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MutatedToolsetDto>>;
|
|
104
|
+
/**
|
|
105
|
+
* Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
106
|
+
* Update a toolset
|
|
107
|
+
*/
|
|
108
|
+
updateToolset(requestParameters: UpdateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MutatedToolsetDto>;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=ToolsetsApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolsetsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ToolsetsApi.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Chat API
|
|
6
|
+
* REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ToolsetsApi = void 0;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class ToolsetsApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
|
|
25
|
+
* Create a new toolset
|
|
26
|
+
*/
|
|
27
|
+
async createToolsetRaw(requestParameters, initOverrides) {
|
|
28
|
+
if (requestParameters['toolsetBodyDto'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('toolsetBodyDto', 'Required parameter "toolsetBodyDto" was null or undefined when calling createToolset().');
|
|
30
|
+
}
|
|
31
|
+
const queryParameters = {};
|
|
32
|
+
const headerParameters = {};
|
|
33
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
34
|
+
let urlPath = `/api/v1/toolsets`;
|
|
35
|
+
const response = await this.request({
|
|
36
|
+
path: urlPath,
|
|
37
|
+
method: 'POST',
|
|
38
|
+
headers: headerParameters,
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
body: requestParameters['toolsetBodyDto'],
|
|
41
|
+
}, initOverrides);
|
|
42
|
+
return new runtime.JSONApiResponse(response);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
|
|
46
|
+
* Create a new toolset
|
|
47
|
+
*/
|
|
48
|
+
async createToolset(requestParameters, initOverrides) {
|
|
49
|
+
const response = await this.createToolsetRaw(requestParameters, initOverrides);
|
|
50
|
+
return await response.value();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
54
|
+
* Delete a toolset
|
|
55
|
+
*/
|
|
56
|
+
async deleteToolsetRaw(requestParameters, initOverrides) {
|
|
57
|
+
if (requestParameters['toolsetName'] == null) {
|
|
58
|
+
throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling deleteToolset().');
|
|
59
|
+
}
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
let urlPath = `/api/v1/toolsets/{toolsetName}`;
|
|
63
|
+
urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
|
|
64
|
+
const response = await this.request({
|
|
65
|
+
path: urlPath,
|
|
66
|
+
method: 'DELETE',
|
|
67
|
+
headers: headerParameters,
|
|
68
|
+
query: queryParameters,
|
|
69
|
+
}, initOverrides);
|
|
70
|
+
return new runtime.VoidApiResponse(response);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
74
|
+
* Delete a toolset
|
|
75
|
+
*/
|
|
76
|
+
async deleteToolset(requestParameters, initOverrides) {
|
|
77
|
+
await this.deleteToolsetRaw(requestParameters, initOverrides);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
81
|
+
* Get toolset by name
|
|
82
|
+
*/
|
|
83
|
+
async getToolsetRaw(requestParameters, initOverrides) {
|
|
84
|
+
if (requestParameters['toolsetName'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling getToolset().');
|
|
86
|
+
}
|
|
87
|
+
const queryParameters = {};
|
|
88
|
+
const headerParameters = {};
|
|
89
|
+
let urlPath = `/api/v1/toolsets/{toolsetName}`;
|
|
90
|
+
urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
|
|
91
|
+
const response = await this.request({
|
|
92
|
+
path: urlPath,
|
|
93
|
+
method: 'GET',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
}, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
101
|
+
* Get toolset by name
|
|
102
|
+
*/
|
|
103
|
+
async getToolset(requestParameters, initOverrides) {
|
|
104
|
+
const response = await this.getToolsetRaw(requestParameters, initOverrides);
|
|
105
|
+
return await response.value();
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
109
|
+
* List available toolsets
|
|
110
|
+
*/
|
|
111
|
+
async listToolsetsRaw(initOverrides) {
|
|
112
|
+
const queryParameters = {};
|
|
113
|
+
const headerParameters = {};
|
|
114
|
+
let urlPath = `/api/v1/toolsets`;
|
|
115
|
+
const response = await this.request({
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
return new runtime.JSONApiResponse(response);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
125
|
+
* List available toolsets
|
|
126
|
+
*/
|
|
127
|
+
async listToolsets(initOverrides) {
|
|
128
|
+
const response = await this.listToolsetsRaw(initOverrides);
|
|
129
|
+
return await response.value();
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
|
|
133
|
+
* Submit toolset credentials
|
|
134
|
+
*/
|
|
135
|
+
async loginToolsetRaw(requestParameters, initOverrides) {
|
|
136
|
+
if (requestParameters['toolsetName'] == null) {
|
|
137
|
+
throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling loginToolset().');
|
|
138
|
+
}
|
|
139
|
+
if (requestParameters['toolsetLoginBodyDto'] == null) {
|
|
140
|
+
throw new runtime.RequiredError('toolsetLoginBodyDto', 'Required parameter "toolsetLoginBodyDto" was null or undefined when calling loginToolset().');
|
|
141
|
+
}
|
|
142
|
+
const queryParameters = {};
|
|
143
|
+
const headerParameters = {};
|
|
144
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
145
|
+
let urlPath = `/api/v1/toolsets/{toolsetName}/login`;
|
|
146
|
+
urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
|
|
147
|
+
const response = await this.request({
|
|
148
|
+
path: urlPath,
|
|
149
|
+
method: 'POST',
|
|
150
|
+
headers: headerParameters,
|
|
151
|
+
query: queryParameters,
|
|
152
|
+
body: requestParameters['toolsetLoginBodyDto'],
|
|
153
|
+
}, initOverrides);
|
|
154
|
+
return new runtime.JSONApiResponse(response);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
|
|
158
|
+
* Submit toolset credentials
|
|
159
|
+
*/
|
|
160
|
+
async loginToolset(requestParameters, initOverrides) {
|
|
161
|
+
const response = await this.loginToolsetRaw(requestParameters, initOverrides);
|
|
162
|
+
return await response.value();
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
|
|
166
|
+
* Revoke toolset credentials
|
|
167
|
+
*/
|
|
168
|
+
async logoutToolsetRaw(requestParameters, initOverrides) {
|
|
169
|
+
if (requestParameters['toolsetName'] == null) {
|
|
170
|
+
throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling logoutToolset().');
|
|
171
|
+
}
|
|
172
|
+
if (requestParameters['toolsetLogoutBodyDto'] == null) {
|
|
173
|
+
throw new runtime.RequiredError('toolsetLogoutBodyDto', 'Required parameter "toolsetLogoutBodyDto" was null or undefined when calling logoutToolset().');
|
|
174
|
+
}
|
|
175
|
+
const queryParameters = {};
|
|
176
|
+
const headerParameters = {};
|
|
177
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
178
|
+
let urlPath = `/api/v1/toolsets/{toolsetName}/logout`;
|
|
179
|
+
urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
|
|
180
|
+
const response = await this.request({
|
|
181
|
+
path: urlPath,
|
|
182
|
+
method: 'POST',
|
|
183
|
+
headers: headerParameters,
|
|
184
|
+
query: queryParameters,
|
|
185
|
+
body: requestParameters['toolsetLogoutBodyDto'],
|
|
186
|
+
}, initOverrides);
|
|
187
|
+
return new runtime.JSONApiResponse(response);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
|
|
191
|
+
* Revoke toolset credentials
|
|
192
|
+
*/
|
|
193
|
+
async logoutToolset(requestParameters, initOverrides) {
|
|
194
|
+
const response = await this.logoutToolsetRaw(requestParameters, initOverrides);
|
|
195
|
+
return await response.value();
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
199
|
+
* Update a toolset
|
|
200
|
+
*/
|
|
201
|
+
async updateToolsetRaw(requestParameters, initOverrides) {
|
|
202
|
+
if (requestParameters['toolsetName'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling updateToolset().');
|
|
204
|
+
}
|
|
205
|
+
if (requestParameters['toolsetBodyDto'] == null) {
|
|
206
|
+
throw new runtime.RequiredError('toolsetBodyDto', 'Required parameter "toolsetBodyDto" was null or undefined when calling updateToolset().');
|
|
207
|
+
}
|
|
208
|
+
const queryParameters = {};
|
|
209
|
+
const headerParameters = {};
|
|
210
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
+
let urlPath = `/api/v1/toolsets/{toolsetName}`;
|
|
212
|
+
urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
|
|
213
|
+
const response = await this.request({
|
|
214
|
+
path: urlPath,
|
|
215
|
+
method: 'PATCH',
|
|
216
|
+
headers: headerParameters,
|
|
217
|
+
query: queryParameters,
|
|
218
|
+
body: requestParameters['toolsetBodyDto'],
|
|
219
|
+
}, initOverrides);
|
|
220
|
+
return new runtime.JSONApiResponse(response);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
|
|
224
|
+
* Update a toolset
|
|
225
|
+
*/
|
|
226
|
+
async updateToolset(requestParameters, initOverrides) {
|
|
227
|
+
const response = await this.updateToolsetRaw(requestParameters, initOverrides);
|
|
228
|
+
return await response.value();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.ToolsetsApi = ToolsetsApi;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat API
|
|
3
|
+
* REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { TranscribeAudio200Response, TranscribeAudioDto } from '../models/index';
|
|
14
|
+
export interface TranscribeAudioRequest {
|
|
15
|
+
transcribeAudioDto: TranscribeAudioDto;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class TranscriptionApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Transcribe audio using the configured ASR model
|
|
23
|
+
*/
|
|
24
|
+
transcribeAudioRaw(requestParameters: TranscribeAudioRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TranscribeAudio200Response>>;
|
|
25
|
+
/**
|
|
26
|
+
* Transcribe audio using the configured ASR model
|
|
27
|
+
*/
|
|
28
|
+
transcribeAudio(requestParameters: TranscribeAudioRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TranscribeAudio200Response>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=TranscriptionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranscriptionApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/TranscriptionApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,OAAO;IACnD;;OAEG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;IA8B3D;;OAEG;IACG,eAAe,CACnB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,0BAA0B,CAAC;CAOvC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Chat API
|
|
6
|
+
* REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TranscriptionApi = void 0;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class TranscriptionApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Transcribe audio using the configured ASR model
|
|
25
|
+
*/
|
|
26
|
+
async transcribeAudioRaw(requestParameters, initOverrides) {
|
|
27
|
+
if (requestParameters['transcribeAudioDto'] == null) {
|
|
28
|
+
throw new runtime.RequiredError('transcribeAudioDto', 'Required parameter "transcribeAudioDto" was null or undefined when calling transcribeAudio().');
|
|
29
|
+
}
|
|
30
|
+
const queryParameters = {};
|
|
31
|
+
const headerParameters = {};
|
|
32
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
33
|
+
let urlPath = `/api/v1/transcription`;
|
|
34
|
+
const response = await this.request({
|
|
35
|
+
path: urlPath,
|
|
36
|
+
method: 'POST',
|
|
37
|
+
headers: headerParameters,
|
|
38
|
+
query: queryParameters,
|
|
39
|
+
body: requestParameters['transcribeAudioDto'],
|
|
40
|
+
}, initOverrides);
|
|
41
|
+
return new runtime.JSONApiResponse(response);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Transcribe audio using the configured ASR model
|
|
45
|
+
*/
|
|
46
|
+
async transcribeAudio(requestParameters, initOverrides) {
|
|
47
|
+
const response = await this.transcribeAudioRaw(requestParameters, initOverrides);
|
|
48
|
+
return await response.value();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.TranscriptionApi = TranscriptionApi;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat API
|
|
3
|
+
* REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { UpdateInstalledDto, UpdatePinsDto, UpdateSelectedDeploymentDto, UserConfigDto } from '../models/index';
|
|
14
|
+
export interface UpdateInstalledDeploymentRequest {
|
|
15
|
+
updateInstalledDto: UpdateInstalledDto;
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateInstalledToolsetRequest {
|
|
18
|
+
updateInstalledDto: UpdateInstalledDto;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdatePinRequest {
|
|
21
|
+
updatePinsDto: UpdatePinsDto;
|
|
22
|
+
}
|
|
23
|
+
export interface UpdateSelectedDeploymentRequest {
|
|
24
|
+
updateSelectedDeploymentDto: UpdateSelectedDeploymentDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class UserConfigApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
* Get current user configuration
|
|
32
|
+
*/
|
|
33
|
+
getUserConfigRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserConfigDto>>;
|
|
34
|
+
/**
|
|
35
|
+
* Get current user configuration
|
|
36
|
+
*/
|
|
37
|
+
getUserConfig(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserConfigDto>;
|
|
38
|
+
/**
|
|
39
|
+
* Install or uninstall a deployment
|
|
40
|
+
*/
|
|
41
|
+
updateInstalledDeploymentRaw(requestParameters: UpdateInstalledDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
42
|
+
/**
|
|
43
|
+
* Install or uninstall a deployment
|
|
44
|
+
*/
|
|
45
|
+
updateInstalledDeployment(requestParameters: UpdateInstalledDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Install or uninstall a toolset
|
|
48
|
+
*/
|
|
49
|
+
updateInstalledToolsetRaw(requestParameters: UpdateInstalledToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
* Install or uninstall a toolset
|
|
52
|
+
*/
|
|
53
|
+
updateInstalledToolset(requestParameters: UpdateInstalledToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Pin or unpin a conversation
|
|
56
|
+
*/
|
|
57
|
+
updatePinRaw(requestParameters: UpdatePinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
58
|
+
/**
|
|
59
|
+
* Pin or unpin a conversation
|
|
60
|
+
*/
|
|
61
|
+
updatePin(requestParameters: UpdatePinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Set the selected deployment
|
|
64
|
+
*/
|
|
65
|
+
updateSelectedDeploymentRaw(requestParameters: UpdateSelectedDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
66
|
+
/**
|
|
67
|
+
* Set the selected deployment
|
|
68
|
+
*/
|
|
69
|
+
updateSelectedDeployment(requestParameters: UpdateSelectedDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=UserConfigApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserConfigApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/UserConfigApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,aAAa,EACd,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,gCAAgC;IAC/C,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,6BAA6B;IAC5C,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,+BAA+B;IAC9C,2BAA2B,EAAE,2BAA2B,CAAC;CAC1D;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,OAAO,CAAC,OAAO;IAChD;;OAEG;IACG,gBAAgB,CACpB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAoB9C;;OAEG;IACG,aAAa,CACjB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,aAAa,CAAC;IAKzB;;OAEG;IACG,4BAA4B,CAChC,iBAAiB,EAAE,gCAAgC,EACnD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA8BrC;;OAEG;IACG,yBAAyB,CAC7B,iBAAiB,EAAE,gCAAgC,EACnD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACG,yBAAyB,CAC7B,iBAAiB,EAAE,6BAA6B,EAChD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA8BrC;;OAEG;IACG,sBAAsB,CAC1B,iBAAiB,EAAE,6BAA6B,EAChD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACG,YAAY,CAChB,iBAAiB,EAAE,gBAAgB,EACnC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA8BrC;;OAEG;IACG,SAAS,CACb,iBAAiB,EAAE,gBAAgB,EACnC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACG,2BAA2B,CAC/B,iBAAiB,EAAE,+BAA+B,EAClD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA8BrC;;OAEG;IACG,wBAAwB,CAC5B,iBAAiB,EAAE,+BAA+B,EAClD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Chat API
|
|
6
|
+
* REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UserConfigApi = void 0;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class UserConfigApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Get current user configuration
|
|
25
|
+
*/
|
|
26
|
+
async getUserConfigRaw(initOverrides) {
|
|
27
|
+
const queryParameters = {};
|
|
28
|
+
const headerParameters = {};
|
|
29
|
+
let urlPath = `/api/v1/user-config`;
|
|
30
|
+
const response = await this.request({
|
|
31
|
+
path: urlPath,
|
|
32
|
+
method: 'GET',
|
|
33
|
+
headers: headerParameters,
|
|
34
|
+
query: queryParameters,
|
|
35
|
+
}, initOverrides);
|
|
36
|
+
return new runtime.JSONApiResponse(response);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get current user configuration
|
|
40
|
+
*/
|
|
41
|
+
async getUserConfig(initOverrides) {
|
|
42
|
+
const response = await this.getUserConfigRaw(initOverrides);
|
|
43
|
+
return await response.value();
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Install or uninstall a deployment
|
|
47
|
+
*/
|
|
48
|
+
async updateInstalledDeploymentRaw(requestParameters, initOverrides) {
|
|
49
|
+
if (requestParameters['updateInstalledDto'] == null) {
|
|
50
|
+
throw new runtime.RequiredError('updateInstalledDto', 'Required parameter "updateInstalledDto" was null or undefined when calling updateInstalledDeployment().');
|
|
51
|
+
}
|
|
52
|
+
const queryParameters = {};
|
|
53
|
+
const headerParameters = {};
|
|
54
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
55
|
+
let urlPath = `/api/v1/user-config/deployments`;
|
|
56
|
+
const response = await this.request({
|
|
57
|
+
path: urlPath,
|
|
58
|
+
method: 'PATCH',
|
|
59
|
+
headers: headerParameters,
|
|
60
|
+
query: queryParameters,
|
|
61
|
+
body: requestParameters['updateInstalledDto'],
|
|
62
|
+
}, initOverrides);
|
|
63
|
+
return new runtime.VoidApiResponse(response);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Install or uninstall a deployment
|
|
67
|
+
*/
|
|
68
|
+
async updateInstalledDeployment(requestParameters, initOverrides) {
|
|
69
|
+
await this.updateInstalledDeploymentRaw(requestParameters, initOverrides);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Install or uninstall a toolset
|
|
73
|
+
*/
|
|
74
|
+
async updateInstalledToolsetRaw(requestParameters, initOverrides) {
|
|
75
|
+
if (requestParameters['updateInstalledDto'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('updateInstalledDto', 'Required parameter "updateInstalledDto" was null or undefined when calling updateInstalledToolset().');
|
|
77
|
+
}
|
|
78
|
+
const queryParameters = {};
|
|
79
|
+
const headerParameters = {};
|
|
80
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
81
|
+
let urlPath = `/api/v1/user-config/toolsets`;
|
|
82
|
+
const response = await this.request({
|
|
83
|
+
path: urlPath,
|
|
84
|
+
method: 'PATCH',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
body: requestParameters['updateInstalledDto'],
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
return new runtime.VoidApiResponse(response);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Install or uninstall a toolset
|
|
93
|
+
*/
|
|
94
|
+
async updateInstalledToolset(requestParameters, initOverrides) {
|
|
95
|
+
await this.updateInstalledToolsetRaw(requestParameters, initOverrides);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Pin or unpin a conversation
|
|
99
|
+
*/
|
|
100
|
+
async updatePinRaw(requestParameters, initOverrides) {
|
|
101
|
+
if (requestParameters['updatePinsDto'] == null) {
|
|
102
|
+
throw new runtime.RequiredError('updatePinsDto', 'Required parameter "updatePinsDto" was null or undefined when calling updatePin().');
|
|
103
|
+
}
|
|
104
|
+
const queryParameters = {};
|
|
105
|
+
const headerParameters = {};
|
|
106
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
107
|
+
let urlPath = `/api/v1/user-config/pins`;
|
|
108
|
+
const response = await this.request({
|
|
109
|
+
path: urlPath,
|
|
110
|
+
method: 'PATCH',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
body: requestParameters['updatePinsDto'],
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
return new runtime.VoidApiResponse(response);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Pin or unpin a conversation
|
|
119
|
+
*/
|
|
120
|
+
async updatePin(requestParameters, initOverrides) {
|
|
121
|
+
await this.updatePinRaw(requestParameters, initOverrides);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Set the selected deployment
|
|
125
|
+
*/
|
|
126
|
+
async updateSelectedDeploymentRaw(requestParameters, initOverrides) {
|
|
127
|
+
if (requestParameters['updateSelectedDeploymentDto'] == null) {
|
|
128
|
+
throw new runtime.RequiredError('updateSelectedDeploymentDto', 'Required parameter "updateSelectedDeploymentDto" was null or undefined when calling updateSelectedDeployment().');
|
|
129
|
+
}
|
|
130
|
+
const queryParameters = {};
|
|
131
|
+
const headerParameters = {};
|
|
132
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
133
|
+
let urlPath = `/api/v1/user-config/deployments/selected`;
|
|
134
|
+
const response = await this.request({
|
|
135
|
+
path: urlPath,
|
|
136
|
+
method: 'PATCH',
|
|
137
|
+
headers: headerParameters,
|
|
138
|
+
query: queryParameters,
|
|
139
|
+
body: requestParameters['updateSelectedDeploymentDto'],
|
|
140
|
+
}, initOverrides);
|
|
141
|
+
return new runtime.VoidApiResponse(response);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Set the selected deployment
|
|
145
|
+
*/
|
|
146
|
+
async updateSelectedDeployment(requestParameters, initOverrides) {
|
|
147
|
+
await this.updateSelectedDeploymentRaw(requestParameters, initOverrides);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.UserConfigApi = UserConfigApi;
|