@epam/ai-dial-chat-api-client 1.1.0-dev.140
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 +100 -0
- package/generated/src/apis/ScheduledTasksApi.d.ts.map +1 -0
- package/generated/src/apis/ScheduledTasksApi.js +193 -0
- package/generated/src/apis/ShareApi.d.ts +58 -0
- package/generated/src/apis/ShareApi.d.ts.map +1 -0
- package/generated/src/apis/ShareApi.js +110 -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 +6178 -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,79 @@
|
|
|
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 { PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRulesResultDto } from '../models/index';
|
|
14
|
+
export interface GetCatalogPublishHistoryRequest {
|
|
15
|
+
entityType: GetCatalogPublishHistoryEntityTypeEnum;
|
|
16
|
+
entityId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetPublishRulesRequest {
|
|
19
|
+
folderPath: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PublishCatalogEntityRequest {
|
|
22
|
+
entityType: PublishCatalogEntityEntityTypeEnum;
|
|
23
|
+
entityId: string;
|
|
24
|
+
publishCatalogEntityDto: PublishCatalogEntityDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class PublishApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
* Returns every folder this catalog entity has been published to, most recent first, derived from DIAL Core\'s Publication API (`getPublications`) — never from chat-api-side storage.
|
|
32
|
+
* Get publish history for a catalog entity
|
|
33
|
+
*/
|
|
34
|
+
getCatalogPublishHistoryRaw(requestParameters: GetCatalogPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublishHistoryEntryDto>>>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns every folder this catalog entity has been published to, most recent first, derived from DIAL Core\'s Publication API (`getPublications`) — never from chat-api-side storage.
|
|
37
|
+
* Get publish history for a catalog entity
|
|
38
|
+
*/
|
|
39
|
+
getCatalogPublishHistory(requestParameters: GetCatalogPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublishHistoryEntryDto>>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned.
|
|
42
|
+
* Get a destination folder\'s already-configured access rules
|
|
43
|
+
*/
|
|
44
|
+
getPublishRulesRaw(requestParameters: GetPublishRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishRulesResultDto>>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned.
|
|
47
|
+
* Get a destination folder\'s already-configured access rules
|
|
48
|
+
*/
|
|
49
|
+
getPublishRules(requestParameters: GetPublishRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishRulesResultDto>;
|
|
50
|
+
/**
|
|
51
|
+
* Publishes a catalog entity (Toolset or Application) to a folder under the Organization/public bucket by proxying DIAL Core\'s Publication API (`createPublication`). This endpoint keeps no publish records of its own — DIAL Core is the sole source of truth.
|
|
52
|
+
* Publish a catalog entity to an Organization folder
|
|
53
|
+
*/
|
|
54
|
+
publishCatalogEntityRaw(requestParameters: PublishCatalogEntityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishResultDto>>;
|
|
55
|
+
/**
|
|
56
|
+
* Publishes a catalog entity (Toolset or Application) to a folder under the Organization/public bucket by proxying DIAL Core\'s Publication API (`createPublication`). This endpoint keeps no publish records of its own — DIAL Core is the sole source of truth.
|
|
57
|
+
* Publish a catalog entity to an Organization folder
|
|
58
|
+
*/
|
|
59
|
+
publishCatalogEntity(requestParameters: PublishCatalogEntityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishResultDto>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const GetCatalogPublishHistoryEntityTypeEnum: {
|
|
65
|
+
readonly Model: "model";
|
|
66
|
+
readonly Toolset: "toolset";
|
|
67
|
+
readonly Application: "application";
|
|
68
|
+
};
|
|
69
|
+
export type GetCatalogPublishHistoryEntityTypeEnum = (typeof GetCatalogPublishHistoryEntityTypeEnum)[keyof typeof GetCatalogPublishHistoryEntityTypeEnum];
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const PublishCatalogEntityEntityTypeEnum: {
|
|
74
|
+
readonly Model: "model";
|
|
75
|
+
readonly Toolset: "toolset";
|
|
76
|
+
readonly Application: "application";
|
|
77
|
+
};
|
|
78
|
+
export type PublishCatalogEntityEntityTypeEnum = (typeof PublishCatalogEntityEntityTypeEnum)[keyof typeof PublishCatalogEntityEntityTypeEnum];
|
|
79
|
+
//# sourceMappingURL=PublishApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublishApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/PublishApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,sCAAsC,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,kCAAkC,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB,EAAE,uBAAuB,CAAC;CAClD;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAC7C;;;OAGG;IACG,2BAA2B,CAC/B,iBAAiB,EAAE,+BAA+B,EAClD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;IA0C9D;;;OAGG;IACG,wBAAwB,CAC5B,iBAAiB,EAAE,+BAA+B,EAClD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAQzC;;;OAGG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IA+BtD;;;OAGG;IACG,eAAe,CACnB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,qBAAqB,CAAC;IAQjC;;;OAGG;IACG,uBAAuB,CAC3B,iBAAiB,EAAE,2BAA2B,EAC9C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAoDjD;;;OAGG;IACG,oBAAoB,CACxB,iBAAiB,EAAE,2BAA2B,EAC9C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,gBAAgB,CAAC;CAO7B;AAED;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;CAIzC,CAAC;AACX,MAAM,MAAM,sCAAsC,GAChD,CAAC,OAAO,sCAAsC,CAAC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC;AACvG;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;CAIrC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAC5C,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
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.PublishCatalogEntityEntityTypeEnum = exports.GetCatalogPublishHistoryEntityTypeEnum = exports.PublishApi = void 0;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class PublishApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Returns every folder this catalog entity has been published to, most recent first, derived from DIAL Core\'s Publication API (`getPublications`) — never from chat-api-side storage.
|
|
25
|
+
* Get publish history for a catalog entity
|
|
26
|
+
*/
|
|
27
|
+
async getCatalogPublishHistoryRaw(requestParameters, initOverrides) {
|
|
28
|
+
if (requestParameters['entityType'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling getCatalogPublishHistory().');
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['entityId'] == null) {
|
|
32
|
+
throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling getCatalogPublishHistory().');
|
|
33
|
+
}
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
let urlPath = `/api/v1/catalog/{entityType}/{entityId}/publish-history`;
|
|
37
|
+
urlPath = urlPath.replace(`{${'entityType'}}`, encodeURIComponent(String(requestParameters['entityType'])));
|
|
38
|
+
urlPath = urlPath.replace(`{${'entityId'}}`, encodeURIComponent(String(requestParameters['entityId'])));
|
|
39
|
+
const response = await this.request({
|
|
40
|
+
path: urlPath,
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns every folder this catalog entity has been published to, most recent first, derived from DIAL Core\'s Publication API (`getPublications`) — never from chat-api-side storage.
|
|
49
|
+
* Get publish history for a catalog entity
|
|
50
|
+
*/
|
|
51
|
+
async getCatalogPublishHistory(requestParameters, initOverrides) {
|
|
52
|
+
const response = await this.getCatalogPublishHistoryRaw(requestParameters, initOverrides);
|
|
53
|
+
return await response.value();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned.
|
|
57
|
+
* Get a destination folder\'s already-configured access rules
|
|
58
|
+
*/
|
|
59
|
+
async getPublishRulesRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['folderPath'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('folderPath', 'Required parameter "folderPath" was null or undefined when calling getPublishRules().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
if (requestParameters['folderPath'] != null) {
|
|
65
|
+
queryParameters['folderPath'] = requestParameters['folderPath'];
|
|
66
|
+
}
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
let urlPath = `/api/v1/publish/rules`;
|
|
69
|
+
const response = await this.request({
|
|
70
|
+
path: urlPath,
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned.
|
|
79
|
+
* Get a destination folder\'s already-configured access rules
|
|
80
|
+
*/
|
|
81
|
+
async getPublishRules(requestParameters, initOverrides) {
|
|
82
|
+
const response = await this.getPublishRulesRaw(requestParameters, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Publishes a catalog entity (Toolset or Application) to a folder under the Organization/public bucket by proxying DIAL Core\'s Publication API (`createPublication`). This endpoint keeps no publish records of its own — DIAL Core is the sole source of truth.
|
|
87
|
+
* Publish a catalog entity to an Organization folder
|
|
88
|
+
*/
|
|
89
|
+
async publishCatalogEntityRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['entityType'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling publishCatalogEntity().');
|
|
92
|
+
}
|
|
93
|
+
if (requestParameters['entityId'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling publishCatalogEntity().');
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['publishCatalogEntityDto'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('publishCatalogEntityDto', 'Required parameter "publishCatalogEntityDto" was null or undefined when calling publishCatalogEntity().');
|
|
98
|
+
}
|
|
99
|
+
const queryParameters = {};
|
|
100
|
+
const headerParameters = {};
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
let urlPath = `/api/v1/catalog/{entityType}/{entityId}/publish`;
|
|
103
|
+
urlPath = urlPath.replace(`{${'entityType'}}`, encodeURIComponent(String(requestParameters['entityType'])));
|
|
104
|
+
urlPath = urlPath.replace(`{${'entityId'}}`, encodeURIComponent(String(requestParameters['entityId'])));
|
|
105
|
+
const response = await this.request({
|
|
106
|
+
path: urlPath,
|
|
107
|
+
method: 'POST',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
body: requestParameters['publishCatalogEntityDto'],
|
|
111
|
+
}, initOverrides);
|
|
112
|
+
return new runtime.JSONApiResponse(response);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Publishes a catalog entity (Toolset or Application) to a folder under the Organization/public bucket by proxying DIAL Core\'s Publication API (`createPublication`). This endpoint keeps no publish records of its own — DIAL Core is the sole source of truth.
|
|
116
|
+
* Publish a catalog entity to an Organization folder
|
|
117
|
+
*/
|
|
118
|
+
async publishCatalogEntity(requestParameters, initOverrides) {
|
|
119
|
+
const response = await this.publishCatalogEntityRaw(requestParameters, initOverrides);
|
|
120
|
+
return await response.value();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.PublishApi = PublishApi;
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
exports.GetCatalogPublishHistoryEntityTypeEnum = {
|
|
128
|
+
Model: 'model',
|
|
129
|
+
Toolset: 'toolset',
|
|
130
|
+
Application: 'application',
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
exports.PublishCatalogEntityEntityTypeEnum = {
|
|
136
|
+
Model: 'model',
|
|
137
|
+
Toolset: 'toolset',
|
|
138
|
+
Application: 'application',
|
|
139
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { RateMessageDto } from '../models/index';
|
|
14
|
+
export interface RateMessageRequest {
|
|
15
|
+
rateMessageDto: RateMessageDto;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class RateApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Forwards a like/dislike rating for an assistant message to DIAL Core. Uses the authenticated session\'s access token as a Bearer credential.
|
|
23
|
+
* Rate an assistant message
|
|
24
|
+
*/
|
|
25
|
+
rateMessageRaw(requestParameters: RateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
26
|
+
/**
|
|
27
|
+
* Forwards a like/dislike rating for an assistant message to DIAL Core. Uses the authenticated session\'s access token as a Bearer credential.
|
|
28
|
+
* Rate an assistant message
|
|
29
|
+
*/
|
|
30
|
+
rateMessage(requestParameters: RateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=RateApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RateApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/RateApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,cAAc,CAAC;CAChC;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAC1C;;;OAGG;IACG,cAAc,CAClB,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA8BrC;;;OAGG;IACG,WAAW,CACf,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.RateApi = void 0;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class RateApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Forwards a like/dislike rating for an assistant message to DIAL Core. Uses the authenticated session\'s access token as a Bearer credential.
|
|
25
|
+
* Rate an assistant message
|
|
26
|
+
*/
|
|
27
|
+
async rateMessageRaw(requestParameters, initOverrides) {
|
|
28
|
+
if (requestParameters['rateMessageDto'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('rateMessageDto', 'Required parameter "rateMessageDto" was null or undefined when calling rateMessage().');
|
|
30
|
+
}
|
|
31
|
+
const queryParameters = {};
|
|
32
|
+
const headerParameters = {};
|
|
33
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
34
|
+
let urlPath = `/api/v1/rate`;
|
|
35
|
+
const response = await this.request({
|
|
36
|
+
path: urlPath,
|
|
37
|
+
method: 'POST',
|
|
38
|
+
headers: headerParameters,
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
body: requestParameters['rateMessageDto'],
|
|
41
|
+
}, initOverrides);
|
|
42
|
+
return new runtime.VoidApiResponse(response);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Forwards a like/dislike rating for an assistant message to DIAL Core. Uses the authenticated session\'s access token as a Bearer credential.
|
|
46
|
+
* Rate an assistant message
|
|
47
|
+
*/
|
|
48
|
+
async rateMessage(requestParameters, initOverrides) {
|
|
49
|
+
await this.rateMessageRaw(requestParameters, initOverrides);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.RateApi = RateApi;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { CreateScheduledTaskBodyDto, CreatedScheduledTaskDto, ListScheduledTaskRunsResponseDto, ListScheduledTasksResponseDto, ScheduledTaskDto, UpdateScheduledTaskBodyDto, UpdatedScheduledTaskDto } from '../models/index';
|
|
14
|
+
export interface CreateScheduledTaskRequest {
|
|
15
|
+
createScheduledTaskBodyDto: CreateScheduledTaskBodyDto;
|
|
16
|
+
}
|
|
17
|
+
export interface GetScheduledTaskRequest {
|
|
18
|
+
scheduleId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ListScheduledTaskRunsRequest {
|
|
21
|
+
scheduleId: string;
|
|
22
|
+
limit?: number;
|
|
23
|
+
offset?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface ListScheduledTasksRequest {
|
|
26
|
+
limit?: number;
|
|
27
|
+
offset?: number;
|
|
28
|
+
search?: string;
|
|
29
|
+
sort?: ListScheduledTasksSortEnum;
|
|
30
|
+
}
|
|
31
|
+
export interface UpdateScheduledTaskRequest {
|
|
32
|
+
scheduleId: string;
|
|
33
|
+
updateScheduledTaskBodyDto: UpdateScheduledTaskBodyDto;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare class ScheduledTasksApi extends runtime.BaseAPI {
|
|
39
|
+
/**
|
|
40
|
+
* Creates a DIAL Scheduler schedule that runs a chat completion on the given model and prompt, using the OAuth external-service id configured via SCHEDULER_SERVICE_ID. Invalidates the scheduled tasks list cache on success.
|
|
41
|
+
* Create a scheduled task
|
|
42
|
+
*/
|
|
43
|
+
createScheduledTaskRaw(requestParameters: CreateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedScheduledTaskDto>>;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a DIAL Scheduler schedule that runs a chat completion on the given model and prompt, using the OAuth external-service id configured via SCHEDULER_SERVICE_ID. Invalidates the scheduled tasks list cache on success.
|
|
46
|
+
* Create a scheduled task
|
|
47
|
+
*/
|
|
48
|
+
createScheduledTask(requestParameters: CreateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedScheduledTaskDto>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a single DIAL Scheduler schedule by id, proxying DIAL Scheduler using the session user\'s access token. Not cached.
|
|
51
|
+
* Get a scheduled task by id
|
|
52
|
+
*/
|
|
53
|
+
getScheduledTaskRaw(requestParameters: GetScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskDto>>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a single DIAL Scheduler schedule by id, proxying DIAL Scheduler using the session user\'s access token. Not cached.
|
|
56
|
+
* Get a scheduled task by id
|
|
57
|
+
*/
|
|
58
|
+
getScheduledTask(requestParameters: GetScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskDto>;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the paginated run history for a single DIAL Scheduler schedule, proxying DIAL Scheduler using the session user\'s access token. Always requests upstream ordering of created_at desc explicitly. Not cached.
|
|
61
|
+
* List a scheduled task run history
|
|
62
|
+
*/
|
|
63
|
+
listScheduledTaskRunsRaw(requestParameters: ListScheduledTaskRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListScheduledTaskRunsResponseDto>>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns the paginated run history for a single DIAL Scheduler schedule, proxying DIAL Scheduler using the session user\'s access token. Always requests upstream ordering of created_at desc explicitly. Not cached.
|
|
66
|
+
* List a scheduled task run history
|
|
67
|
+
*/
|
|
68
|
+
listScheduledTaskRuns(requestParameters: ListScheduledTaskRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListScheduledTaskRunsResponseDto>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns the DIAL Scheduler schedules visible to the authenticated session user. Proxies the DIAL Scheduler routed-deployment API using the session access token. Results are cached server-side for 30 seconds per user.
|
|
71
|
+
* List scheduled tasks
|
|
72
|
+
*/
|
|
73
|
+
listScheduledTasksRaw(requestParameters: ListScheduledTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListScheduledTasksResponseDto>>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the DIAL Scheduler schedules visible to the authenticated session user. Proxies the DIAL Scheduler routed-deployment API using the session access token. Results are cached server-side for 30 seconds per user.
|
|
76
|
+
* List scheduled tasks
|
|
77
|
+
*/
|
|
78
|
+
listScheduledTasks(requestParameters?: ListScheduledTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListScheduledTasksResponseDto>;
|
|
79
|
+
/**
|
|
80
|
+
* Updates an existing DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
|
|
81
|
+
* Update a scheduled task
|
|
82
|
+
*/
|
|
83
|
+
updateScheduledTaskRaw(requestParameters: UpdateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdatedScheduledTaskDto>>;
|
|
84
|
+
/**
|
|
85
|
+
* Updates an existing DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
|
|
86
|
+
* Update a scheduled task
|
|
87
|
+
*/
|
|
88
|
+
updateScheduledTask(requestParameters: UpdateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdatedScheduledTaskDto>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export declare const ListScheduledTasksSortEnum: {
|
|
94
|
+
readonly FirstToRun: "firstToRun";
|
|
95
|
+
readonly LastToRun: "lastToRun";
|
|
96
|
+
readonly Newest: "newest";
|
|
97
|
+
readonly NameAz: "nameAZ";
|
|
98
|
+
};
|
|
99
|
+
export type ListScheduledTasksSortEnum = (typeof ListScheduledTasksSortEnum)[keyof typeof ListScheduledTasksSortEnum];
|
|
100
|
+
//# sourceMappingURL=ScheduledTasksApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduledTasksApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ScheduledTasksApi.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,193 @@
|
|
|
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.ListScheduledTasksSortEnum = exports.ScheduledTasksApi = void 0;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class ScheduledTasksApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Creates a DIAL Scheduler schedule that runs a chat completion on the given model and prompt, using the OAuth external-service id configured via SCHEDULER_SERVICE_ID. Invalidates the scheduled tasks list cache on success.
|
|
25
|
+
* Create a scheduled task
|
|
26
|
+
*/
|
|
27
|
+
async createScheduledTaskRaw(requestParameters, initOverrides) {
|
|
28
|
+
if (requestParameters['createScheduledTaskBodyDto'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('createScheduledTaskBodyDto', 'Required parameter "createScheduledTaskBodyDto" was null or undefined when calling createScheduledTask().');
|
|
30
|
+
}
|
|
31
|
+
const queryParameters = {};
|
|
32
|
+
const headerParameters = {};
|
|
33
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
34
|
+
let urlPath = `/api/v1/scheduled-tasks`;
|
|
35
|
+
const response = await this.request({
|
|
36
|
+
path: urlPath,
|
|
37
|
+
method: 'POST',
|
|
38
|
+
headers: headerParameters,
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
body: requestParameters['createScheduledTaskBodyDto'],
|
|
41
|
+
}, initOverrides);
|
|
42
|
+
return new runtime.JSONApiResponse(response);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Creates a DIAL Scheduler schedule that runs a chat completion on the given model and prompt, using the OAuth external-service id configured via SCHEDULER_SERVICE_ID. Invalidates the scheduled tasks list cache on success.
|
|
46
|
+
* Create a scheduled task
|
|
47
|
+
*/
|
|
48
|
+
async createScheduledTask(requestParameters, initOverrides) {
|
|
49
|
+
const response = await this.createScheduledTaskRaw(requestParameters, initOverrides);
|
|
50
|
+
return await response.value();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns a single DIAL Scheduler schedule by id, proxying DIAL Scheduler using the session user\'s access token. Not cached.
|
|
54
|
+
* Get a scheduled task by id
|
|
55
|
+
*/
|
|
56
|
+
async getScheduledTaskRaw(requestParameters, initOverrides) {
|
|
57
|
+
if (requestParameters['scheduleId'] == null) {
|
|
58
|
+
throw new runtime.RequiredError('scheduleId', 'Required parameter "scheduleId" was null or undefined when calling getScheduledTask().');
|
|
59
|
+
}
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
let urlPath = `/api/v1/scheduled-tasks/{scheduleId}`;
|
|
63
|
+
urlPath = urlPath.replace(`{${'scheduleId'}}`, encodeURIComponent(String(requestParameters['scheduleId'])));
|
|
64
|
+
const response = await this.request({
|
|
65
|
+
path: urlPath,
|
|
66
|
+
method: 'GET',
|
|
67
|
+
headers: headerParameters,
|
|
68
|
+
query: queryParameters,
|
|
69
|
+
}, initOverrides);
|
|
70
|
+
return new runtime.JSONApiResponse(response);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns a single DIAL Scheduler schedule by id, proxying DIAL Scheduler using the session user\'s access token. Not cached.
|
|
74
|
+
* Get a scheduled task by id
|
|
75
|
+
*/
|
|
76
|
+
async getScheduledTask(requestParameters, initOverrides) {
|
|
77
|
+
const response = await this.getScheduledTaskRaw(requestParameters, initOverrides);
|
|
78
|
+
return await response.value();
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns the paginated run history for a single DIAL Scheduler schedule, proxying DIAL Scheduler using the session user\'s access token. Always requests upstream ordering of created_at desc explicitly. Not cached.
|
|
82
|
+
* List a scheduled task run history
|
|
83
|
+
*/
|
|
84
|
+
async listScheduledTaskRunsRaw(requestParameters, initOverrides) {
|
|
85
|
+
if (requestParameters['scheduleId'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('scheduleId', 'Required parameter "scheduleId" was null or undefined when calling listScheduledTaskRuns().');
|
|
87
|
+
}
|
|
88
|
+
const queryParameters = {};
|
|
89
|
+
if (requestParameters['limit'] != null) {
|
|
90
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
91
|
+
}
|
|
92
|
+
if (requestParameters['offset'] != null) {
|
|
93
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
94
|
+
}
|
|
95
|
+
const headerParameters = {};
|
|
96
|
+
let urlPath = `/api/v1/scheduled-tasks/{scheduleId}/runs`;
|
|
97
|
+
urlPath = urlPath.replace(`{${'scheduleId'}}`, encodeURIComponent(String(requestParameters['scheduleId'])));
|
|
98
|
+
const response = await this.request({
|
|
99
|
+
path: urlPath,
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides);
|
|
104
|
+
return new runtime.JSONApiResponse(response);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Returns the paginated run history for a single DIAL Scheduler schedule, proxying DIAL Scheduler using the session user\'s access token. Always requests upstream ordering of created_at desc explicitly. Not cached.
|
|
108
|
+
* List a scheduled task run history
|
|
109
|
+
*/
|
|
110
|
+
async listScheduledTaskRuns(requestParameters, initOverrides) {
|
|
111
|
+
const response = await this.listScheduledTaskRunsRaw(requestParameters, initOverrides);
|
|
112
|
+
return await response.value();
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Returns the DIAL Scheduler schedules visible to the authenticated session user. Proxies the DIAL Scheduler routed-deployment API using the session access token. Results are cached server-side for 30 seconds per user.
|
|
116
|
+
* List scheduled tasks
|
|
117
|
+
*/
|
|
118
|
+
async listScheduledTasksRaw(requestParameters, initOverrides) {
|
|
119
|
+
const queryParameters = {};
|
|
120
|
+
if (requestParameters['limit'] != null) {
|
|
121
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
122
|
+
}
|
|
123
|
+
if (requestParameters['offset'] != null) {
|
|
124
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
125
|
+
}
|
|
126
|
+
if (requestParameters['search'] != null) {
|
|
127
|
+
queryParameters['search'] = requestParameters['search'];
|
|
128
|
+
}
|
|
129
|
+
if (requestParameters['sort'] != null) {
|
|
130
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
131
|
+
}
|
|
132
|
+
const headerParameters = {};
|
|
133
|
+
let urlPath = `/api/v1/scheduled-tasks`;
|
|
134
|
+
const response = await this.request({
|
|
135
|
+
path: urlPath,
|
|
136
|
+
method: 'GET',
|
|
137
|
+
headers: headerParameters,
|
|
138
|
+
query: queryParameters,
|
|
139
|
+
}, initOverrides);
|
|
140
|
+
return new runtime.JSONApiResponse(response);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Returns the DIAL Scheduler schedules visible to the authenticated session user. Proxies the DIAL Scheduler routed-deployment API using the session access token. Results are cached server-side for 30 seconds per user.
|
|
144
|
+
* List scheduled tasks
|
|
145
|
+
*/
|
|
146
|
+
async listScheduledTasks(requestParameters = {}, initOverrides) {
|
|
147
|
+
const response = await this.listScheduledTasksRaw(requestParameters, initOverrides);
|
|
148
|
+
return await response.value();
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Updates an existing DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
|
|
152
|
+
* Update a scheduled task
|
|
153
|
+
*/
|
|
154
|
+
async updateScheduledTaskRaw(requestParameters, initOverrides) {
|
|
155
|
+
if (requestParameters['scheduleId'] == null) {
|
|
156
|
+
throw new runtime.RequiredError('scheduleId', 'Required parameter "scheduleId" was null or undefined when calling updateScheduledTask().');
|
|
157
|
+
}
|
|
158
|
+
if (requestParameters['updateScheduledTaskBodyDto'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('updateScheduledTaskBodyDto', 'Required parameter "updateScheduledTaskBodyDto" was null or undefined when calling updateScheduledTask().');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
const headerParameters = {};
|
|
163
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
164
|
+
let urlPath = `/api/v1/scheduled-tasks/{scheduleId}`;
|
|
165
|
+
urlPath = urlPath.replace(`{${'scheduleId'}}`, encodeURIComponent(String(requestParameters['scheduleId'])));
|
|
166
|
+
const response = await this.request({
|
|
167
|
+
path: urlPath,
|
|
168
|
+
method: 'PUT',
|
|
169
|
+
headers: headerParameters,
|
|
170
|
+
query: queryParameters,
|
|
171
|
+
body: requestParameters['updateScheduledTaskBodyDto'],
|
|
172
|
+
}, initOverrides);
|
|
173
|
+
return new runtime.JSONApiResponse(response);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Updates an existing DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
|
|
177
|
+
* Update a scheduled task
|
|
178
|
+
*/
|
|
179
|
+
async updateScheduledTask(requestParameters, initOverrides) {
|
|
180
|
+
const response = await this.updateScheduledTaskRaw(requestParameters, initOverrides);
|
|
181
|
+
return await response.value();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
exports.ScheduledTasksApi = ScheduledTasksApi;
|
|
185
|
+
/**
|
|
186
|
+
* @export
|
|
187
|
+
*/
|
|
188
|
+
exports.ListScheduledTasksSortEnum = {
|
|
189
|
+
FirstToRun: 'firstToRun',
|
|
190
|
+
LastToRun: 'lastToRun',
|
|
191
|
+
Newest: 'newest',
|
|
192
|
+
NameAz: 'nameAZ',
|
|
193
|
+
};
|