@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.
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 +100 -0
  44. package/generated/src/apis/ScheduledTasksApi.d.ts.map +1 -0
  45. package/generated/src/apis/ScheduledTasksApi.js +193 -0
  46. package/generated/src/apis/ShareApi.d.ts +58 -0
  47. package/generated/src/apis/ShareApi.d.ts.map +1 -0
  48. package/generated/src/apis/ShareApi.js +110 -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 +6178 -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,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 { ClientConfigResponseDto } from '../models/index';
14
+ export interface GetClientConfigRequest {
15
+ appId: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class AppConfigApi extends runtime.BaseAPI {
21
+ /**
22
+ * Get client-safe application configuration and feature flags
23
+ */
24
+ getClientConfigRaw(requestParameters: GetClientConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientConfigResponseDto>>;
25
+ /**
26
+ * Get client-safe application configuration and feature flags
27
+ */
28
+ getClientConfig(requestParameters: GetClientConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientConfigResponseDto>;
29
+ }
30
+ //# sourceMappingURL=AppConfigApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppConfigApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/AppConfigApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE/D,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAC/C;;OAEG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;IA+BxD;;OAEG;IACG,eAAe,CACnB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,uBAAuB,CAAC;CAOpC"}
@@ -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.AppConfigApi = void 0;
17
+ const tslib_1 = require("tslib");
18
+ const runtime = tslib_1.__importStar(require("../runtime"));
19
+ /**
20
+ *
21
+ */
22
+ class AppConfigApi extends runtime.BaseAPI {
23
+ /**
24
+ * Get client-safe application configuration and feature flags
25
+ */
26
+ async getClientConfigRaw(requestParameters, initOverrides) {
27
+ if (requestParameters['appId'] == null) {
28
+ throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getClientConfig().');
29
+ }
30
+ const queryParameters = {};
31
+ if (requestParameters['appId'] != null) {
32
+ queryParameters['appId'] = requestParameters['appId'];
33
+ }
34
+ const headerParameters = {};
35
+ let urlPath = `/api/v1/client-config`;
36
+ const response = await this.request({
37
+ path: urlPath,
38
+ method: 'GET',
39
+ headers: headerParameters,
40
+ query: queryParameters,
41
+ }, initOverrides);
42
+ return new runtime.JSONApiResponse(response);
43
+ }
44
+ /**
45
+ * Get client-safe application configuration and feature flags
46
+ */
47
+ async getClientConfig(requestParameters, initOverrides) {
48
+ const response = await this.getClientConfigRaw(requestParameters, initOverrides);
49
+ return await response.value();
50
+ }
51
+ }
52
+ exports.AppConfigApi = AppConfigApi;
@@ -0,0 +1,96 @@
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 { ApplicationSchemasResponseDto, ApplicationsResponseDto, CreateApplicationBodyDto, CreatedApplicationDto, UpdateApplicationBodyDto, UpdatedApplicationDto } from '../models/index';
14
+ export interface CreateApplicationRequest {
15
+ createApplicationBodyDto: CreateApplicationBodyDto;
16
+ }
17
+ export interface DeleteApplicationRequest {
18
+ applicationName: string;
19
+ }
20
+ export interface GetApplicationSchemaRequest {
21
+ id: string;
22
+ }
23
+ export interface UpdateApplicationRequest {
24
+ applicationName: string;
25
+ updateApplicationBodyDto: UpdateApplicationBodyDto;
26
+ }
27
+ /**
28
+ *
29
+ */
30
+ export declare class ApplicationsApi extends runtime.BaseAPI {
31
+ /**
32
+ * Creates a new application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
33
+ * Create a new application
34
+ */
35
+ createApplicationRaw(requestParameters: CreateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedApplicationDto>>;
36
+ /**
37
+ * Creates a new application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
38
+ * Create a new application
39
+ */
40
+ createApplication(requestParameters: CreateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedApplicationDto>;
41
+ /**
42
+ * Deletes an application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
43
+ * Delete an application
44
+ */
45
+ deleteApplicationRaw(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
+ /**
47
+ * Deletes an application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
48
+ * Delete an application
49
+ */
50
+ deleteApplication(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
+ /**
52
+ * Returns one DIAL Core application type schema by its $id. Results are cached server-side for 60 seconds per user per schema.
53
+ * Get application type schema by id
54
+ */
55
+ getApplicationSchemaRaw(requestParameters: GetApplicationSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
56
+ [key: string]: unknown;
57
+ }>>;
58
+ /**
59
+ * Returns one DIAL Core application type schema by its $id. Results are cached server-side for 60 seconds per user per schema.
60
+ * Get application type schema by id
61
+ */
62
+ getApplicationSchema(requestParameters: GetApplicationSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
63
+ [key: string]: unknown;
64
+ }>;
65
+ /**
66
+ * Returns DIAL Core application type schemas visible to the authenticated user. Results are cached server-side for 60 seconds per user.
67
+ * List application type schemas
68
+ */
69
+ listApplicationSchemasRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationSchemasResponseDto>>;
70
+ /**
71
+ * Returns DIAL Core application type schemas visible to the authenticated user. Results are cached server-side for 60 seconds per user.
72
+ * List application type schemas
73
+ */
74
+ listApplicationSchemas(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationSchemasResponseDto>;
75
+ /**
76
+ * Returns the list of DIAL Core applications visible to the authenticated session user. Proxies GET /openai/applications using the caller\'s session access token. Results are cached server-side for 30 seconds per user.
77
+ * List available applications
78
+ */
79
+ listApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationsResponseDto>>;
80
+ /**
81
+ * Returns the list of DIAL Core applications visible to the authenticated session user. Proxies GET /openai/applications using the caller\'s session access token. Results are cached server-side for 30 seconds per user.
82
+ * List available applications
83
+ */
84
+ listApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationsResponseDto>;
85
+ /**
86
+ * Updates the General-step fields (name, description, iconUrl, topics) of an existing application for the authenticated session user, by proxying DIAL Core. Settings-step configuration (application_properties, version) is preserved untouched. Invalidates the applications and deployments list caches on success.
87
+ * Update an application
88
+ */
89
+ updateApplicationRaw(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdatedApplicationDto>>;
90
+ /**
91
+ * Updates the General-step fields (name, description, iconUrl, topics) of an existing application for the authenticated session user, by proxying DIAL Core. Settings-step configuration (application_properties, version) is preserved untouched. Invalidates the applications and deployments list caches on success.
92
+ * Update an application
93
+ */
94
+ updateApplication(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdatedApplicationDto>;
95
+ }
96
+ //# sourceMappingURL=ApplicationsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ApplicationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAw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OAAO,CAAA;KAAE,CAAC,CAAC;IA+B3D;;;OAGG;IACG,oBAAoB,CACxB,iBAAiB,EAAE,2BAA2B,EAC9C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAQtC;;;OAGG;IACG,yBAAyB,CAC7B,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAoB9D;;;OAGG;IACG,sBAAsB,CAC1B,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;OAGG;IACG,mBAAmB,CACvB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;IAoBxD;;;OAGG;IACG,gBAAgB,CACpB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,uBAAuB,CAAC;IAKnC;;;OAGG;IACG,oBAAoB,CACxB,iBAAiB,EAAE,wBAAwB,EAC3C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAyCtD;;;OAGG;IACG,iBAAiB,CACrB,iBAAiB,EAAE,wBAAwB,EAC3C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,qBAAqB,CAAC;CAOlC"}
@@ -0,0 +1,189 @@
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.ApplicationsApi = void 0;
17
+ const tslib_1 = require("tslib");
18
+ const runtime = tslib_1.__importStar(require("../runtime"));
19
+ /**
20
+ *
21
+ */
22
+ class ApplicationsApi extends runtime.BaseAPI {
23
+ /**
24
+ * Creates a new application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
25
+ * Create a new application
26
+ */
27
+ async createApplicationRaw(requestParameters, initOverrides) {
28
+ if (requestParameters['createApplicationBodyDto'] == null) {
29
+ throw new runtime.RequiredError('createApplicationBodyDto', 'Required parameter "createApplicationBodyDto" was null or undefined when calling createApplication().');
30
+ }
31
+ const queryParameters = {};
32
+ const headerParameters = {};
33
+ headerParameters['Content-Type'] = 'application/json';
34
+ let urlPath = `/api/v1/applications`;
35
+ const response = await this.request({
36
+ path: urlPath,
37
+ method: 'POST',
38
+ headers: headerParameters,
39
+ query: queryParameters,
40
+ body: requestParameters['createApplicationBodyDto'],
41
+ }, initOverrides);
42
+ return new runtime.JSONApiResponse(response);
43
+ }
44
+ /**
45
+ * Creates a new application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
46
+ * Create a new application
47
+ */
48
+ async createApplication(requestParameters, initOverrides) {
49
+ const response = await this.createApplicationRaw(requestParameters, initOverrides);
50
+ return await response.value();
51
+ }
52
+ /**
53
+ * Deletes an application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
54
+ * Delete an application
55
+ */
56
+ async deleteApplicationRaw(requestParameters, initOverrides) {
57
+ if (requestParameters['applicationName'] == null) {
58
+ throw new runtime.RequiredError('applicationName', 'Required parameter "applicationName" was null or undefined when calling deleteApplication().');
59
+ }
60
+ const queryParameters = {};
61
+ const headerParameters = {};
62
+ let urlPath = `/api/v1/applications/{applicationName}`;
63
+ urlPath = urlPath.replace(`{${'applicationName'}}`, encodeURIComponent(String(requestParameters['applicationName'])));
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 an application for the authenticated session user by proxying DIAL Core. Invalidates the applications list cache on success.
74
+ * Delete an application
75
+ */
76
+ async deleteApplication(requestParameters, initOverrides) {
77
+ await this.deleteApplicationRaw(requestParameters, initOverrides);
78
+ }
79
+ /**
80
+ * Returns one DIAL Core application type schema by its $id. Results are cached server-side for 60 seconds per user per schema.
81
+ * Get application type schema by id
82
+ */
83
+ async getApplicationSchemaRaw(requestParameters, initOverrides) {
84
+ if (requestParameters['id'] == null) {
85
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApplicationSchema().');
86
+ }
87
+ const queryParameters = {};
88
+ const headerParameters = {};
89
+ let urlPath = `/api/v1/application-schemas/{id}`;
90
+ urlPath = urlPath.replace(`{${'id'}}`, encodeURIComponent(String(requestParameters['id'])));
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 one DIAL Core application type schema by its $id. Results are cached server-side for 60 seconds per user per schema.
101
+ * Get application type schema by id
102
+ */
103
+ async getApplicationSchema(requestParameters, initOverrides) {
104
+ const response = await this.getApplicationSchemaRaw(requestParameters, initOverrides);
105
+ return await response.value();
106
+ }
107
+ /**
108
+ * Returns DIAL Core application type schemas visible to the authenticated user. Results are cached server-side for 60 seconds per user.
109
+ * List application type schemas
110
+ */
111
+ async listApplicationSchemasRaw(initOverrides) {
112
+ const queryParameters = {};
113
+ const headerParameters = {};
114
+ let urlPath = `/api/v1/application-schemas`;
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 DIAL Core application type schemas visible to the authenticated user. Results are cached server-side for 60 seconds per user.
125
+ * List application type schemas
126
+ */
127
+ async listApplicationSchemas(initOverrides) {
128
+ const response = await this.listApplicationSchemasRaw(initOverrides);
129
+ return await response.value();
130
+ }
131
+ /**
132
+ * Returns the list of DIAL Core applications visible to the authenticated session user. Proxies GET /openai/applications using the caller\'s session access token. Results are cached server-side for 30 seconds per user.
133
+ * List available applications
134
+ */
135
+ async listApplicationsRaw(initOverrides) {
136
+ const queryParameters = {};
137
+ const headerParameters = {};
138
+ let urlPath = `/api/v1/applications`;
139
+ const response = await this.request({
140
+ path: urlPath,
141
+ method: 'GET',
142
+ headers: headerParameters,
143
+ query: queryParameters,
144
+ }, initOverrides);
145
+ return new runtime.JSONApiResponse(response);
146
+ }
147
+ /**
148
+ * Returns the list of DIAL Core applications visible to the authenticated session user. Proxies GET /openai/applications using the caller\'s session access token. Results are cached server-side for 30 seconds per user.
149
+ * List available applications
150
+ */
151
+ async listApplications(initOverrides) {
152
+ const response = await this.listApplicationsRaw(initOverrides);
153
+ return await response.value();
154
+ }
155
+ /**
156
+ * Updates the General-step fields (name, description, iconUrl, topics) of an existing application for the authenticated session user, by proxying DIAL Core. Settings-step configuration (application_properties, version) is preserved untouched. Invalidates the applications and deployments list caches on success.
157
+ * Update an application
158
+ */
159
+ async updateApplicationRaw(requestParameters, initOverrides) {
160
+ if (requestParameters['applicationName'] == null) {
161
+ throw new runtime.RequiredError('applicationName', 'Required parameter "applicationName" was null or undefined when calling updateApplication().');
162
+ }
163
+ if (requestParameters['updateApplicationBodyDto'] == null) {
164
+ throw new runtime.RequiredError('updateApplicationBodyDto', 'Required parameter "updateApplicationBodyDto" was null or undefined when calling updateApplication().');
165
+ }
166
+ const queryParameters = {};
167
+ const headerParameters = {};
168
+ headerParameters['Content-Type'] = 'application/json';
169
+ let urlPath = `/api/v1/applications/{applicationName}`;
170
+ urlPath = urlPath.replace(`{${'applicationName'}}`, encodeURIComponent(String(requestParameters['applicationName'])));
171
+ const response = await this.request({
172
+ path: urlPath,
173
+ method: 'PATCH',
174
+ headers: headerParameters,
175
+ query: queryParameters,
176
+ body: requestParameters['updateApplicationBodyDto'],
177
+ }, initOverrides);
178
+ return new runtime.JSONApiResponse(response);
179
+ }
180
+ /**
181
+ * Updates the General-step fields (name, description, iconUrl, topics) of an existing application for the authenticated session user, by proxying DIAL Core. Settings-step configuration (application_properties, version) is preserved untouched. Invalidates the applications and deployments list caches on success.
182
+ * Update an application
183
+ */
184
+ async updateApplication(requestParameters, initOverrides) {
185
+ const response = await this.updateApplicationRaw(requestParameters, initOverrides);
186
+ return await response.value();
187
+ }
188
+ }
189
+ exports.ApplicationsApi = ApplicationsApi;
@@ -0,0 +1,65 @@
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 { ProviderInfoDto, UserProfileDto } from '../models/index';
14
+ export interface CallbackRequest {
15
+ providerId: string;
16
+ }
17
+ export interface LoginRequest {
18
+ providerId: string;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class AuthApi extends runtime.BaseAPI {
24
+ /**
25
+ * OIDC authorization callback
26
+ */
27
+ callbackRaw(requestParameters: CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
28
+ /**
29
+ * OIDC authorization callback
30
+ */
31
+ callback(requestParameters: CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
32
+ /**
33
+ * Get current user profile
34
+ */
35
+ getCurrentUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserProfileDto>>;
36
+ /**
37
+ * Get current user profile
38
+ */
39
+ getCurrentUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfileDto>;
40
+ /**
41
+ * List configured identity providers
42
+ */
43
+ listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProviderInfoDto>>>;
44
+ /**
45
+ * List configured identity providers
46
+ */
47
+ listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderInfoDto>>;
48
+ /**
49
+ * Start OIDC login flow
50
+ */
51
+ loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
52
+ /**
53
+ * Start OIDC login flow
54
+ */
55
+ login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
56
+ /**
57
+ * Log out and clear session cookie
58
+ */
59
+ logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
60
+ /**
61
+ * Log out and clear session cookie
62
+ */
63
+ logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
64
+ }
65
+ //# sourceMappingURL=AuthApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/AuthApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B,UAAU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AAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACG,SAAS,CACb,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAoBrC;;OAEG;IACG,MAAM,CACV,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB"}
@@ -0,0 +1,146 @@
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.AuthApi = void 0;
17
+ const tslib_1 = require("tslib");
18
+ const runtime = tslib_1.__importStar(require("../runtime"));
19
+ /**
20
+ *
21
+ */
22
+ class AuthApi extends runtime.BaseAPI {
23
+ /**
24
+ * OIDC authorization callback
25
+ */
26
+ async callbackRaw(requestParameters, initOverrides) {
27
+ if (requestParameters['providerId'] == null) {
28
+ throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling callback().');
29
+ }
30
+ const queryParameters = {};
31
+ const headerParameters = {};
32
+ let urlPath = `/api/v1/auth/callback/{providerId}`;
33
+ urlPath = urlPath.replace(`{${'providerId'}}`, encodeURIComponent(String(requestParameters['providerId'])));
34
+ const response = await this.request({
35
+ path: urlPath,
36
+ method: 'GET',
37
+ headers: headerParameters,
38
+ query: queryParameters,
39
+ }, initOverrides);
40
+ return new runtime.VoidApiResponse(response);
41
+ }
42
+ /**
43
+ * OIDC authorization callback
44
+ */
45
+ async callback(requestParameters, initOverrides) {
46
+ await this.callbackRaw(requestParameters, initOverrides);
47
+ }
48
+ /**
49
+ * Get current user profile
50
+ */
51
+ async getCurrentUserRaw(initOverrides) {
52
+ const queryParameters = {};
53
+ const headerParameters = {};
54
+ if (this.configuration && this.configuration.accessToken) {
55
+ const token = this.configuration.accessToken;
56
+ const tokenString = await token('bearer', []);
57
+ if (tokenString) {
58
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
59
+ }
60
+ }
61
+ let urlPath = `/api/v1/auth/me`;
62
+ const response = await this.request({
63
+ path: urlPath,
64
+ method: 'GET',
65
+ headers: headerParameters,
66
+ query: queryParameters,
67
+ }, initOverrides);
68
+ return new runtime.JSONApiResponse(response);
69
+ }
70
+ /**
71
+ * Get current user profile
72
+ */
73
+ async getCurrentUser(initOverrides) {
74
+ const response = await this.getCurrentUserRaw(initOverrides);
75
+ return await response.value();
76
+ }
77
+ /**
78
+ * List configured identity providers
79
+ */
80
+ async listProvidersRaw(initOverrides) {
81
+ const queryParameters = {};
82
+ const headerParameters = {};
83
+ let urlPath = `/api/v1/auth/providers`;
84
+ const response = await this.request({
85
+ path: urlPath,
86
+ method: 'GET',
87
+ headers: headerParameters,
88
+ query: queryParameters,
89
+ }, initOverrides);
90
+ return new runtime.JSONApiResponse(response);
91
+ }
92
+ /**
93
+ * List configured identity providers
94
+ */
95
+ async listProviders(initOverrides) {
96
+ const response = await this.listProvidersRaw(initOverrides);
97
+ return await response.value();
98
+ }
99
+ /**
100
+ * Start OIDC login flow
101
+ */
102
+ async loginRaw(requestParameters, initOverrides) {
103
+ if (requestParameters['providerId'] == null) {
104
+ throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling login().');
105
+ }
106
+ const queryParameters = {};
107
+ const headerParameters = {};
108
+ let urlPath = `/api/v1/auth/login/{providerId}`;
109
+ urlPath = urlPath.replace(`{${'providerId'}}`, encodeURIComponent(String(requestParameters['providerId'])));
110
+ const response = await this.request({
111
+ path: urlPath,
112
+ method: 'GET',
113
+ headers: headerParameters,
114
+ query: queryParameters,
115
+ }, initOverrides);
116
+ return new runtime.VoidApiResponse(response);
117
+ }
118
+ /**
119
+ * Start OIDC login flow
120
+ */
121
+ async login(requestParameters, initOverrides) {
122
+ await this.loginRaw(requestParameters, initOverrides);
123
+ }
124
+ /**
125
+ * Log out and clear session cookie
126
+ */
127
+ async logoutRaw(initOverrides) {
128
+ const queryParameters = {};
129
+ const headerParameters = {};
130
+ let urlPath = `/api/v1/auth/logout`;
131
+ const response = await this.request({
132
+ path: urlPath,
133
+ method: 'POST',
134
+ headers: headerParameters,
135
+ query: queryParameters,
136
+ }, initOverrides);
137
+ return new runtime.VoidApiResponse(response);
138
+ }
139
+ /**
140
+ * Log out and clear session cookie
141
+ */
142
+ async logout(initOverrides) {
143
+ await this.logoutRaw(initOverrides);
144
+ }
145
+ }
146
+ exports.AuthApi = AuthApi;
@@ -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 { ChatCompletionDto, ChatCompletionResponseDto } from '../models/index';
14
+ export interface SendCompletionRequest {
15
+ chatCompletionDto: ChatCompletionDto;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class ChatApi extends runtime.BaseAPI {
21
+ /**
22
+ * Send a chat completion request to DIAL Core
23
+ */
24
+ sendCompletionRaw(requestParameters: SendCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChatCompletionResponseDto>>;
25
+ /**
26
+ * Send a chat completion request to DIAL Core
27
+ */
28
+ sendCompletion(requestParameters: SendCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChatCompletionResponseDto>;
29
+ }
30
+ //# sourceMappingURL=ChatApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ChatApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAC1C;;OAEG;IACG,iBAAiB,CACrB,iBAAiB,EAAE,qBAAqB,EACxC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IA8B1D;;OAEG;IACG,cAAc,CAClB,iBAAiB,EAAE,qBAAqB,EACxC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,yBAAyB,CAAC;CAOtC"}