@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.
Files changed (77) hide show
  1. package/generated/src/apis/AppConfigApi.d.ts +30 -0
  2. package/generated/src/apis/AppConfigApi.d.ts.map +1 -0
  3. package/generated/src/apis/AppConfigApi.js +52 -0
  4. package/generated/src/apis/ApplicationsApi.d.ts +96 -0
  5. package/generated/src/apis/ApplicationsApi.d.ts.map +1 -0
  6. package/generated/src/apis/ApplicationsApi.js +189 -0
  7. package/generated/src/apis/AuthApi.d.ts +65 -0
  8. package/generated/src/apis/AuthApi.d.ts.map +1 -0
  9. package/generated/src/apis/AuthApi.js +146 -0
  10. package/generated/src/apis/ChatApi.d.ts +30 -0
  11. package/generated/src/apis/ChatApi.d.ts.map +1 -0
  12. package/generated/src/apis/ChatApi.js +51 -0
  13. package/generated/src/apis/ClientChannelApi.d.ts +59 -0
  14. package/generated/src/apis/ClientChannelApi.d.ts.map +1 -0
  15. package/generated/src/apis/ClientChannelApi.js +113 -0
  16. package/generated/src/apis/ConversationsApi.d.ts +231 -0
  17. package/generated/src/apis/ConversationsApi.d.ts.map +1 -0
  18. package/generated/src/apis/ConversationsApi.js +527 -0
  19. package/generated/src/apis/DeploymentsApi.d.ts +81 -0
  20. package/generated/src/apis/DeploymentsApi.d.ts.map +1 -0
  21. package/generated/src/apis/DeploymentsApi.js +146 -0
  22. package/generated/src/apis/ExternalServicesApi.d.ts +63 -0
  23. package/generated/src/apis/ExternalServicesApi.d.ts.map +1 -0
  24. package/generated/src/apis/ExternalServicesApi.js +130 -0
  25. package/generated/src/apis/FilesApi.d.ts +224 -0
  26. package/generated/src/apis/FilesApi.d.ts.map +1 -0
  27. package/generated/src/apis/FilesApi.js +570 -0
  28. package/generated/src/apis/HealthApi.d.ts +29 -0
  29. package/generated/src/apis/HealthApi.d.ts.map +1 -0
  30. package/generated/src/apis/HealthApi.js +48 -0
  31. package/generated/src/apis/ModelsApi.d.ts +42 -0
  32. package/generated/src/apis/ModelsApi.d.ts.map +1 -0
  33. package/generated/src/apis/ModelsApi.js +76 -0
  34. package/generated/src/apis/PromptsApi.d.ts +139 -0
  35. package/generated/src/apis/PromptsApi.d.ts.map +1 -0
  36. package/generated/src/apis/PromptsApi.js +333 -0
  37. package/generated/src/apis/PublishApi.d.ts +79 -0
  38. package/generated/src/apis/PublishApi.d.ts.map +1 -0
  39. package/generated/src/apis/PublishApi.js +139 -0
  40. package/generated/src/apis/RateApi.d.ts +32 -0
  41. package/generated/src/apis/RateApi.d.ts.map +1 -0
  42. package/generated/src/apis/RateApi.js +52 -0
  43. package/generated/src/apis/ScheduledTasksApi.d.ts +126 -0
  44. package/generated/src/apis/ScheduledTasksApi.d.ts.map +1 -0
  45. package/generated/src/apis/ScheduledTasksApi.js +249 -0
  46. package/generated/src/apis/ShareApi.d.ts +71 -0
  47. package/generated/src/apis/ShareApi.d.ts.map +1 -0
  48. package/generated/src/apis/ShareApi.js +139 -0
  49. package/generated/src/apis/ThemesApi.d.ts +42 -0
  50. package/generated/src/apis/ThemesApi.d.ts.map +1 -0
  51. package/generated/src/apis/ThemesApi.js +83 -0
  52. package/generated/src/apis/ToolsetsApi.d.ts +110 -0
  53. package/generated/src/apis/ToolsetsApi.d.ts.map +1 -0
  54. package/generated/src/apis/ToolsetsApi.js +231 -0
  55. package/generated/src/apis/TranscriptionApi.d.ts +30 -0
  56. package/generated/src/apis/TranscriptionApi.d.ts.map +1 -0
  57. package/generated/src/apis/TranscriptionApi.js +51 -0
  58. package/generated/src/apis/UserConfigApi.d.ts +71 -0
  59. package/generated/src/apis/UserConfigApi.d.ts.map +1 -0
  60. package/generated/src/apis/UserConfigApi.js +150 -0
  61. package/generated/src/apis/index.d.ts +21 -0
  62. package/generated/src/apis/index.d.ts.map +1 -0
  63. package/generated/src/apis/index.js +25 -0
  64. package/generated/src/index.d.ts +4 -0
  65. package/generated/src/index.d.ts.map +1 -0
  66. package/generated/src/index.js +8 -0
  67. package/generated/src/models/index.d.ts +6282 -0
  68. package/generated/src/models/index.d.ts.map +1 -0
  69. package/generated/src/models/index.js +328 -0
  70. package/generated/src/runtime.d.ts +182 -0
  71. package/generated/src/runtime.d.ts.map +1 -0
  72. package/generated/src/runtime.js +347 -0
  73. package/index.d.ts +2 -0
  74. package/index.d.ts.map +1 -0
  75. package/index.js +4 -0
  76. package/package.json +26 -0
  77. 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,C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/**
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,126 @@
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 PauseScheduledTaskRequest {
32
+ scheduleId: string;
33
+ }
34
+ export interface ResumeScheduledTaskRequest {
35
+ scheduleId: string;
36
+ }
37
+ export interface UpdateScheduledTaskRequest {
38
+ scheduleId: string;
39
+ updateScheduledTaskBodyDto: UpdateScheduledTaskBodyDto;
40
+ }
41
+ /**
42
+ *
43
+ */
44
+ export declare class ScheduledTasksApi extends runtime.BaseAPI {
45
+ /**
46
+ * 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.
47
+ * Create a scheduled task
48
+ */
49
+ createScheduledTaskRaw(requestParameters: CreateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedScheduledTaskDto>>;
50
+ /**
51
+ * 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.
52
+ * Create a scheduled task
53
+ */
54
+ createScheduledTask(requestParameters: CreateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedScheduledTaskDto>;
55
+ /**
56
+ * Returns a single DIAL Scheduler schedule by id, proxying DIAL Scheduler using the session user\'s access token. Not cached.
57
+ * Get a scheduled task by id
58
+ */
59
+ getScheduledTaskRaw(requestParameters: GetScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskDto>>;
60
+ /**
61
+ * Returns a single DIAL Scheduler schedule by id, proxying DIAL Scheduler using the session user\'s access token. Not cached.
62
+ * Get a scheduled task by id
63
+ */
64
+ getScheduledTask(requestParameters: GetScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskDto>;
65
+ /**
66
+ * 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.
67
+ * List a scheduled task run history
68
+ */
69
+ listScheduledTaskRunsRaw(requestParameters: ListScheduledTaskRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListScheduledTaskRunsResponseDto>>;
70
+ /**
71
+ * 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.
72
+ * List a scheduled task run history
73
+ */
74
+ listScheduledTaskRuns(requestParameters: ListScheduledTaskRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListScheduledTaskRunsResponseDto>;
75
+ /**
76
+ * 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.
77
+ * List scheduled tasks
78
+ */
79
+ listScheduledTasksRaw(requestParameters: ListScheduledTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListScheduledTasksResponseDto>>;
80
+ /**
81
+ * 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.
82
+ * List scheduled tasks
83
+ */
84
+ listScheduledTasks(requestParameters?: ListScheduledTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListScheduledTasksResponseDto>;
85
+ /**
86
+ * Pauses a DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
87
+ * Pause a scheduled task
88
+ */
89
+ pauseScheduledTaskRaw(requestParameters: PauseScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskDto>>;
90
+ /**
91
+ * Pauses a DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
92
+ * Pause a scheduled task
93
+ */
94
+ pauseScheduledTask(requestParameters: PauseScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskDto>;
95
+ /**
96
+ * Resumes a paused DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
97
+ * Resume a scheduled task
98
+ */
99
+ resumeScheduledTaskRaw(requestParameters: ResumeScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskDto>>;
100
+ /**
101
+ * Resumes a paused DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
102
+ * Resume a scheduled task
103
+ */
104
+ resumeScheduledTask(requestParameters: ResumeScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskDto>;
105
+ /**
106
+ * Updates an existing DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
107
+ * Update a scheduled task
108
+ */
109
+ updateScheduledTaskRaw(requestParameters: UpdateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdatedScheduledTaskDto>>;
110
+ /**
111
+ * Updates an existing DIAL Scheduler schedule for the authenticated session user. Invalidates the scheduled tasks list cache on success.
112
+ * Update a scheduled task
113
+ */
114
+ updateScheduledTask(requestParameters: UpdateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdatedScheduledTaskDto>;
115
+ }
116
+ /**
117
+ * @export
118
+ */
119
+ export declare const ListScheduledTasksSortEnum: {
120
+ readonly FirstToRun: "firstToRun";
121
+ readonly LastToRun: "lastToRun";
122
+ readonly Newest: "newest";
123
+ readonly NameAz: "nameAZ";
124
+ };
125
+ export type ListScheduledTasksSortEnum = (typeof ListScheduledTasksSortEnum)[keyof typeof ListScheduledTasksSortEnum];
126
+ //# 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":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,0BAA0B,EAC1B,uBAAuB,EACvB,gCAAgC,EAChC,6BAA6B,EAC7B,gBAAgB,EAChB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,0BAA0B;IACzC,0BAA0B,EAAE,0BAA0B,CAAC;CACxD;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW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