@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,58 @@
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 { AcceptInvitationResponseDto, CreateShareLinkDto, DiscardSharedCatalogItemDto, DiscardSharedCatalogItemResponseDto, ShareLinkResponseDto } from '../models/index';
14
+ export interface AcceptInvitationRequest {
15
+ invitationId: string;
16
+ }
17
+ export interface CreateShareLinkRequest {
18
+ createShareLinkDto: CreateShareLinkDto;
19
+ }
20
+ export interface DiscardSharedCatalogItemRequest {
21
+ discardSharedCatalogItemDto: DiscardSharedCatalogItemDto;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class ShareApi extends runtime.BaseAPI {
27
+ /**
28
+ * Accepts a share invitation via DIAL Core, granting the authenticated user the invitation\'s access level, and returns the shared entity\'s identifier so the frontend can navigate to it.
29
+ * Accept a share invitation
30
+ */
31
+ acceptInvitationRaw(requestParameters: AcceptInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AcceptInvitationResponseDto>>;
32
+ /**
33
+ * Accepts a share invitation via DIAL Core, granting the authenticated user the invitation\'s access level, and returns the shared entity\'s identifier so the frontend can navigate to it.
34
+ * Accept a share invitation
35
+ */
36
+ acceptInvitation(requestParameters: AcceptInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptInvitationResponseDto>;
37
+ /**
38
+ * Creates a share link for a DIAL Core resource (catalog entity — agent, application, skill, toolset, or model — conversation, or prompt) by proxying DIAL Core\'s resource-sharing API. Returns the share URL, access level, and expiry.
39
+ * Create a share link
40
+ */
41
+ createShareLinkRaw(requestParameters: CreateShareLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ShareLinkResponseDto>>;
42
+ /**
43
+ * Creates a share link for a DIAL Core resource (catalog entity — agent, application, skill, toolset, or model — conversation, or prompt) by proxying DIAL Core\'s resource-sharing API. Returns the share URL, access level, and expiry.
44
+ * Create a share link
45
+ */
46
+ createShareLink(requestParameters: CreateShareLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ShareLinkResponseDto>;
47
+ /**
48
+ * Discards the authenticated user\'s own access to a shared catalog entity (application or toolset) or conversation, via DIAL Core\'s discardSharedResources operation. Only affects the caller\'s own access — removing access for everyone else is a separate operation.
49
+ * Discard a shared catalog resource or conversation
50
+ */
51
+ discardSharedCatalogItemRaw(requestParameters: DiscardSharedCatalogItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DiscardSharedCatalogItemResponseDto>>;
52
+ /**
53
+ * Discards the authenticated user\'s own access to a shared catalog entity (application or toolset) or conversation, via DIAL Core\'s discardSharedResources operation. Only affects the caller\'s own access — removing access for everyone else is a separate operation.
54
+ * Discard a shared catalog resource or conversation
55
+ */
56
+ discardSharedCatalogItem(requestParameters: DiscardSharedCatalogItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DiscardSharedCatalogItemResponseDto>;
57
+ }
58
+ //# sourceMappingURL=ShareApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShareApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ShareApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,2BAA2B,EAC3B,kBAAkB,EAClB,2BAA2B,EAC3B,mCAAmC,EACnC,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,+BAA+B;IAC9C,2BAA2B,EAAE,2BAA2B,CAAC;CAC1D;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,OAAO,CAAC,OAAO;IAC3C;;;OAGG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IA+B5D;;;OAGG;IACG,gBAAgB,CACpB,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,2BAA2B,CAAC;IAQvC;;;OAGG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IA8BrD;;;OAGG;IACG,eAAe,CACnB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,oBAAoB,CAAC;IAQhC;;;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,mCAAmC,CAAC,CAAC;IAgCpE;;;OAGG;IACG,wBAAwB,CAC5B,iBAAiB,EAAE,+BAA+B,EAClD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,mCAAmC,CAAC;CAOhD"}
@@ -0,0 +1,110 @@
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.ShareApi = void 0;
17
+ const tslib_1 = require("tslib");
18
+ const runtime = tslib_1.__importStar(require("../runtime"));
19
+ /**
20
+ *
21
+ */
22
+ class ShareApi extends runtime.BaseAPI {
23
+ /**
24
+ * Accepts a share invitation via DIAL Core, granting the authenticated user the invitation\'s access level, and returns the shared entity\'s identifier so the frontend can navigate to it.
25
+ * Accept a share invitation
26
+ */
27
+ async acceptInvitationRaw(requestParameters, initOverrides) {
28
+ if (requestParameters['invitationId'] == null) {
29
+ throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling acceptInvitation().');
30
+ }
31
+ const queryParameters = {};
32
+ const headerParameters = {};
33
+ let urlPath = `/api/v1/share/invitations/{invitationId}`;
34
+ urlPath = urlPath.replace(`{${'invitationId'}}`, encodeURIComponent(String(requestParameters['invitationId'])));
35
+ const response = await this.request({
36
+ path: urlPath,
37
+ method: 'GET',
38
+ headers: headerParameters,
39
+ query: queryParameters,
40
+ }, initOverrides);
41
+ return new runtime.JSONApiResponse(response);
42
+ }
43
+ /**
44
+ * Accepts a share invitation via DIAL Core, granting the authenticated user the invitation\'s access level, and returns the shared entity\'s identifier so the frontend can navigate to it.
45
+ * Accept a share invitation
46
+ */
47
+ async acceptInvitation(requestParameters, initOverrides) {
48
+ const response = await this.acceptInvitationRaw(requestParameters, initOverrides);
49
+ return await response.value();
50
+ }
51
+ /**
52
+ * Creates a share link for a DIAL Core resource (catalog entity — agent, application, skill, toolset, or model — conversation, or prompt) by proxying DIAL Core\'s resource-sharing API. Returns the share URL, access level, and expiry.
53
+ * Create a share link
54
+ */
55
+ async createShareLinkRaw(requestParameters, initOverrides) {
56
+ if (requestParameters['createShareLinkDto'] == null) {
57
+ throw new runtime.RequiredError('createShareLinkDto', 'Required parameter "createShareLinkDto" was null or undefined when calling createShareLink().');
58
+ }
59
+ const queryParameters = {};
60
+ const headerParameters = {};
61
+ headerParameters['Content-Type'] = 'application/json';
62
+ let urlPath = `/api/v1/share`;
63
+ const response = await this.request({
64
+ path: urlPath,
65
+ method: 'POST',
66
+ headers: headerParameters,
67
+ query: queryParameters,
68
+ body: requestParameters['createShareLinkDto'],
69
+ }, initOverrides);
70
+ return new runtime.JSONApiResponse(response);
71
+ }
72
+ /**
73
+ * Creates a share link for a DIAL Core resource (catalog entity — agent, application, skill, toolset, or model — conversation, or prompt) by proxying DIAL Core\'s resource-sharing API. Returns the share URL, access level, and expiry.
74
+ * Create a share link
75
+ */
76
+ async createShareLink(requestParameters, initOverrides) {
77
+ const response = await this.createShareLinkRaw(requestParameters, initOverrides);
78
+ return await response.value();
79
+ }
80
+ /**
81
+ * Discards the authenticated user\'s own access to a shared catalog entity (application or toolset) or conversation, via DIAL Core\'s discardSharedResources operation. Only affects the caller\'s own access — removing access for everyone else is a separate operation.
82
+ * Discard a shared catalog resource or conversation
83
+ */
84
+ async discardSharedCatalogItemRaw(requestParameters, initOverrides) {
85
+ if (requestParameters['discardSharedCatalogItemDto'] == null) {
86
+ throw new runtime.RequiredError('discardSharedCatalogItemDto', 'Required parameter "discardSharedCatalogItemDto" was null or undefined when calling discardSharedCatalogItem().');
87
+ }
88
+ const queryParameters = {};
89
+ const headerParameters = {};
90
+ headerParameters['Content-Type'] = 'application/json';
91
+ let urlPath = `/api/v1/share/discard`;
92
+ const response = await this.request({
93
+ path: urlPath,
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: requestParameters['discardSharedCatalogItemDto'],
98
+ }, initOverrides);
99
+ return new runtime.JSONApiResponse(response);
100
+ }
101
+ /**
102
+ * Discards the authenticated user\'s own access to a shared catalog entity (application or toolset) or conversation, via DIAL Core\'s discardSharedResources operation. Only affects the caller\'s own access — removing access for everyone else is a separate operation.
103
+ * Discard a shared catalog resource or conversation
104
+ */
105
+ async discardSharedCatalogItem(requestParameters, initOverrides) {
106
+ const response = await this.discardSharedCatalogItemRaw(requestParameters, initOverrides);
107
+ return await response.value();
108
+ }
109
+ }
110
+ exports.ShareApi = ShareApi;
@@ -0,0 +1,42 @@
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 { ThemeConfigResponseDto } from '../models/index';
14
+ export interface GetThemeIconRequest {
15
+ iconName: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class ThemesApi extends runtime.BaseAPI {
21
+ /**
22
+ * Fetches a theme icon as SVG or PNG content from the external themes service. The icon name is validated to prevent path traversal attacks - only alphanumeric characters, dashes, underscores, and dots are allowed. Results are cached for 5 minutes.
23
+ * Get theme icon
24
+ */
25
+ getThemeIconRaw(requestParameters: GetThemeIconRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
26
+ /**
27
+ * Fetches a theme icon as SVG or PNG content from the external themes service. The icon name is validated to prevent path traversal attacks - only alphanumeric characters, dashes, underscores, and dots are allowed. Results are cached for 5 minutes.
28
+ * Get theme icon
29
+ */
30
+ getThemeIcon(requestParameters: GetThemeIconRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
31
+ /**
32
+ * Fetches the complete theme configuration from the external themes service. Returns a JSON object containing all available themes with their properties, colors, and icon references. Results are cached for 5 minutes.
33
+ * Get themes configuration
34
+ */
35
+ getThemesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ThemeConfigResponseDto>>;
36
+ /**
37
+ * Fetches the complete theme configuration from the external themes service. Returns a JSON object containing all available themes with their properties, colors, and icon references. Results are cached for 5 minutes.
38
+ * Get themes configuration
39
+ */
40
+ getThemes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ThemeConfigResponseDto>;
41
+ }
42
+ //# sourceMappingURL=ThemesApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemesApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ThemesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAC5C;;;OAGG;IACG,eAAe,CACnB,iBAAiB,EAAE,mBAAmB,EACtC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAmCvC;;;OAGG;IACG,YAAY,CAChB,iBAAiB,EAAE,mBAAmB,EACtC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,MAAM,CAAC;IAQlB;;;OAGG;IACG,YAAY,CAChB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAoBvD;;;OAGG;IACG,SAAS,CACb,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,sBAAsB,CAAC;CAInC"}
@@ -0,0 +1,83 @@
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.ThemesApi = void 0;
17
+ const tslib_1 = require("tslib");
18
+ const runtime = tslib_1.__importStar(require("../runtime"));
19
+ /**
20
+ *
21
+ */
22
+ class ThemesApi extends runtime.BaseAPI {
23
+ /**
24
+ * Fetches a theme icon as SVG or PNG content from the external themes service. The icon name is validated to prevent path traversal attacks - only alphanumeric characters, dashes, underscores, and dots are allowed. Results are cached for 5 minutes.
25
+ * Get theme icon
26
+ */
27
+ async getThemeIconRaw(requestParameters, initOverrides) {
28
+ if (requestParameters['iconName'] == null) {
29
+ throw new runtime.RequiredError('iconName', 'Required parameter "iconName" was null or undefined when calling getThemeIcon().');
30
+ }
31
+ const queryParameters = {};
32
+ if (requestParameters['iconName'] != null) {
33
+ queryParameters['iconName'] = requestParameters['iconName'];
34
+ }
35
+ const headerParameters = {};
36
+ let urlPath = `/api/themes/icon`;
37
+ const response = await this.request({
38
+ path: urlPath,
39
+ method: 'GET',
40
+ headers: headerParameters,
41
+ query: queryParameters,
42
+ }, initOverrides);
43
+ if (this.isJsonMime(response.headers.get('content-type'))) {
44
+ return new runtime.JSONApiResponse(response);
45
+ }
46
+ else {
47
+ return new runtime.TextApiResponse(response);
48
+ }
49
+ }
50
+ /**
51
+ * Fetches a theme icon as SVG or PNG content from the external themes service. The icon name is validated to prevent path traversal attacks - only alphanumeric characters, dashes, underscores, and dots are allowed. Results are cached for 5 minutes.
52
+ * Get theme icon
53
+ */
54
+ async getThemeIcon(requestParameters, initOverrides) {
55
+ const response = await this.getThemeIconRaw(requestParameters, initOverrides);
56
+ return await response.value();
57
+ }
58
+ /**
59
+ * Fetches the complete theme configuration from the external themes service. Returns a JSON object containing all available themes with their properties, colors, and icon references. Results are cached for 5 minutes.
60
+ * Get themes configuration
61
+ */
62
+ async getThemesRaw(initOverrides) {
63
+ const queryParameters = {};
64
+ const headerParameters = {};
65
+ let urlPath = `/api/themes`;
66
+ const response = await this.request({
67
+ path: urlPath,
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+ return new runtime.JSONApiResponse(response);
73
+ }
74
+ /**
75
+ * Fetches the complete theme configuration from the external themes service. Returns a JSON object containing all available themes with their properties, colors, and icon references. Results are cached for 5 minutes.
76
+ * Get themes configuration
77
+ */
78
+ async getThemes(initOverrides) {
79
+ const response = await this.getThemesRaw(initOverrides);
80
+ return await response.value();
81
+ }
82
+ }
83
+ exports.ThemesApi = ThemesApi;
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Chat API
3
+ * REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { DialToolsetDto, DialToolsetListResponseDto, MutatedToolsetDto, ToolsetAuthResultDto, ToolsetBodyDto, ToolsetLoginBodyDto, ToolsetLogoutBodyDto } from '../models/index';
14
+ export interface CreateToolsetRequest {
15
+ toolsetBodyDto: ToolsetBodyDto;
16
+ }
17
+ export interface DeleteToolsetRequest {
18
+ toolsetName: string;
19
+ }
20
+ export interface GetToolsetRequest {
21
+ toolsetName: string;
22
+ }
23
+ export interface LoginToolsetRequest {
24
+ toolsetName: string;
25
+ toolsetLoginBodyDto: ToolsetLoginBodyDto;
26
+ }
27
+ export interface LogoutToolsetRequest {
28
+ toolsetName: string;
29
+ toolsetLogoutBodyDto: ToolsetLogoutBodyDto;
30
+ }
31
+ export interface UpdateToolsetRequest {
32
+ toolsetName: string;
33
+ toolsetBodyDto: ToolsetBodyDto;
34
+ }
35
+ /**
36
+ *
37
+ */
38
+ export declare class ToolsetsApi extends runtime.BaseAPI {
39
+ /**
40
+ * Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
41
+ * Create a new toolset
42
+ */
43
+ createToolsetRaw(requestParameters: CreateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MutatedToolsetDto>>;
44
+ /**
45
+ * Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
46
+ * Create a new toolset
47
+ */
48
+ createToolset(requestParameters: CreateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MutatedToolsetDto>;
49
+ /**
50
+ * Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
51
+ * Delete a toolset
52
+ */
53
+ deleteToolsetRaw(requestParameters: DeleteToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
54
+ /**
55
+ * Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
56
+ * Delete a toolset
57
+ */
58
+ deleteToolset(requestParameters: DeleteToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
59
+ /**
60
+ * Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
61
+ * Get toolset by name
62
+ */
63
+ getToolsetRaw(requestParameters: GetToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DialToolsetDto>>;
64
+ /**
65
+ * Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
66
+ * Get toolset by name
67
+ */
68
+ getToolset(requestParameters: GetToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DialToolsetDto>;
69
+ /**
70
+ * Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
71
+ * List available toolsets
72
+ */
73
+ listToolsetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DialToolsetListResponseDto>>;
74
+ /**
75
+ * Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
76
+ * List available toolsets
77
+ */
78
+ listToolsets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DialToolsetListResponseDto>;
79
+ /**
80
+ * Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
81
+ * Submit toolset credentials
82
+ */
83
+ loginToolsetRaw(requestParameters: LoginToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolsetAuthResultDto>>;
84
+ /**
85
+ * Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
86
+ * Submit toolset credentials
87
+ */
88
+ loginToolset(requestParameters: LoginToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolsetAuthResultDto>;
89
+ /**
90
+ * Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
91
+ * Revoke toolset credentials
92
+ */
93
+ logoutToolsetRaw(requestParameters: LogoutToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolsetAuthResultDto>>;
94
+ /**
95
+ * Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
96
+ * Revoke toolset credentials
97
+ */
98
+ logoutToolset(requestParameters: LogoutToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolsetAuthResultDto>;
99
+ /**
100
+ * Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
101
+ * Update a toolset
102
+ */
103
+ updateToolsetRaw(requestParameters: UpdateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MutatedToolsetDto>>;
104
+ /**
105
+ * Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
106
+ * Update a toolset
107
+ */
108
+ updateToolset(requestParameters: UpdateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MutatedToolsetDto>;
109
+ }
110
+ //# sourceMappingURL=ToolsetsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolsetsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ToolsetsApi.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Chat API
6
+ * REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ToolsetsApi = void 0;
17
+ const tslib_1 = require("tslib");
18
+ const runtime = tslib_1.__importStar(require("../runtime"));
19
+ /**
20
+ *
21
+ */
22
+ class ToolsetsApi extends runtime.BaseAPI {
23
+ /**
24
+ * Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
25
+ * Create a new toolset
26
+ */
27
+ async createToolsetRaw(requestParameters, initOverrides) {
28
+ if (requestParameters['toolsetBodyDto'] == null) {
29
+ throw new runtime.RequiredError('toolsetBodyDto', 'Required parameter "toolsetBodyDto" was null or undefined when calling createToolset().');
30
+ }
31
+ const queryParameters = {};
32
+ const headerParameters = {};
33
+ headerParameters['Content-Type'] = 'application/json';
34
+ let urlPath = `/api/v1/toolsets`;
35
+ const response = await this.request({
36
+ path: urlPath,
37
+ method: 'POST',
38
+ headers: headerParameters,
39
+ query: queryParameters,
40
+ body: requestParameters['toolsetBodyDto'],
41
+ }, initOverrides);
42
+ return new runtime.JSONApiResponse(response);
43
+ }
44
+ /**
45
+ * Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
46
+ * Create a new toolset
47
+ */
48
+ async createToolset(requestParameters, initOverrides) {
49
+ const response = await this.createToolsetRaw(requestParameters, initOverrides);
50
+ return await response.value();
51
+ }
52
+ /**
53
+ * Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
54
+ * Delete a toolset
55
+ */
56
+ async deleteToolsetRaw(requestParameters, initOverrides) {
57
+ if (requestParameters['toolsetName'] == null) {
58
+ throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling deleteToolset().');
59
+ }
60
+ const queryParameters = {};
61
+ const headerParameters = {};
62
+ let urlPath = `/api/v1/toolsets/{toolsetName}`;
63
+ urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
64
+ const response = await this.request({
65
+ path: urlPath,
66
+ method: 'DELETE',
67
+ headers: headerParameters,
68
+ query: queryParameters,
69
+ }, initOverrides);
70
+ return new runtime.VoidApiResponse(response);
71
+ }
72
+ /**
73
+ * Deletes a toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
74
+ * Delete a toolset
75
+ */
76
+ async deleteToolset(requestParameters, initOverrides) {
77
+ await this.deleteToolsetRaw(requestParameters, initOverrides);
78
+ }
79
+ /**
80
+ * Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
81
+ * Get toolset by name
82
+ */
83
+ async getToolsetRaw(requestParameters, initOverrides) {
84
+ if (requestParameters['toolsetName'] == null) {
85
+ throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling getToolset().');
86
+ }
87
+ const queryParameters = {};
88
+ const headerParameters = {};
89
+ let urlPath = `/api/v1/toolsets/{toolsetName}`;
90
+ urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
91
+ const response = await this.request({
92
+ path: urlPath,
93
+ method: 'GET',
94
+ headers: headerParameters,
95
+ query: queryParameters,
96
+ }, initOverrides);
97
+ return new runtime.JSONApiResponse(response);
98
+ }
99
+ /**
100
+ * Returns a single DIAL Core toolset by name for the authenticated session user. Proxies GET /openai/toolsets/{toolset_name} using the caller\'s session access token. Results are cached server-side for 60 seconds per user per toolset; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
101
+ * Get toolset by name
102
+ */
103
+ async getToolset(requestParameters, initOverrides) {
104
+ const response = await this.getToolsetRaw(requestParameters, initOverrides);
105
+ return await response.value();
106
+ }
107
+ /**
108
+ * Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
109
+ * List available toolsets
110
+ */
111
+ async listToolsetsRaw(initOverrides) {
112
+ const queryParameters = {};
113
+ const headerParameters = {};
114
+ let urlPath = `/api/v1/toolsets`;
115
+ const response = await this.request({
116
+ path: urlPath,
117
+ method: 'GET',
118
+ headers: headerParameters,
119
+ query: queryParameters,
120
+ }, initOverrides);
121
+ return new runtime.JSONApiResponse(response);
122
+ }
123
+ /**
124
+ * Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
125
+ * List available toolsets
126
+ */
127
+ async listToolsets(initOverrides) {
128
+ const response = await this.listToolsetsRaw(initOverrides);
129
+ return await response.value();
130
+ }
131
+ /**
132
+ * Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
133
+ * Submit toolset credentials
134
+ */
135
+ async loginToolsetRaw(requestParameters, initOverrides) {
136
+ if (requestParameters['toolsetName'] == null) {
137
+ throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling loginToolset().');
138
+ }
139
+ if (requestParameters['toolsetLoginBodyDto'] == null) {
140
+ throw new runtime.RequiredError('toolsetLoginBodyDto', 'Required parameter "toolsetLoginBodyDto" was null or undefined when calling loginToolset().');
141
+ }
142
+ const queryParameters = {};
143
+ const headerParameters = {};
144
+ headerParameters['Content-Type'] = 'application/json';
145
+ let urlPath = `/api/v1/toolsets/{toolsetName}/login`;
146
+ urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
147
+ const response = await this.request({
148
+ path: urlPath,
149
+ method: 'POST',
150
+ headers: headerParameters,
151
+ query: queryParameters,
152
+ body: requestParameters['toolsetLoginBodyDto'],
153
+ }, initOverrides);
154
+ return new runtime.JSONApiResponse(response);
155
+ }
156
+ /**
157
+ * Submits API key or OAuth authorization-code credentials for a toolset by proxying DIAL Core (POST /v1/ops/toolset/signin). Credential payloads are never logged.
158
+ * Submit toolset credentials
159
+ */
160
+ async loginToolset(requestParameters, initOverrides) {
161
+ const response = await this.loginToolsetRaw(requestParameters, initOverrides);
162
+ return await response.value();
163
+ }
164
+ /**
165
+ * Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
166
+ * Revoke toolset credentials
167
+ */
168
+ async logoutToolsetRaw(requestParameters, initOverrides) {
169
+ if (requestParameters['toolsetName'] == null) {
170
+ throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling logoutToolset().');
171
+ }
172
+ if (requestParameters['toolsetLogoutBodyDto'] == null) {
173
+ throw new runtime.RequiredError('toolsetLogoutBodyDto', 'Required parameter "toolsetLogoutBodyDto" was null or undefined when calling logoutToolset().');
174
+ }
175
+ const queryParameters = {};
176
+ const headerParameters = {};
177
+ headerParameters['Content-Type'] = 'application/json';
178
+ let urlPath = `/api/v1/toolsets/{toolsetName}/logout`;
179
+ urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
180
+ const response = await this.request({
181
+ path: urlPath,
182
+ method: 'POST',
183
+ headers: headerParameters,
184
+ query: queryParameters,
185
+ body: requestParameters['toolsetLogoutBodyDto'],
186
+ }, initOverrides);
187
+ return new runtime.JSONApiResponse(response);
188
+ }
189
+ /**
190
+ * Revokes a toolset\'s credentials by proxying DIAL Core (POST /v1/ops/toolset/signout). When the request body omits `authenticationType`, the toolset\'s own stored authentication type is looked up first (same lookup as `GET /api/v1/toolsets/{toolsetName}`).
191
+ * Revoke toolset credentials
192
+ */
193
+ async logoutToolset(requestParameters, initOverrides) {
194
+ const response = await this.logoutToolsetRaw(requestParameters, initOverrides);
195
+ return await response.value();
196
+ }
197
+ /**
198
+ * Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
199
+ * Update a toolset
200
+ */
201
+ async updateToolsetRaw(requestParameters, initOverrides) {
202
+ if (requestParameters['toolsetName'] == null) {
203
+ throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling updateToolset().');
204
+ }
205
+ if (requestParameters['toolsetBodyDto'] == null) {
206
+ throw new runtime.RequiredError('toolsetBodyDto', 'Required parameter "toolsetBodyDto" was null or undefined when calling updateToolset().');
207
+ }
208
+ const queryParameters = {};
209
+ const headerParameters = {};
210
+ headerParameters['Content-Type'] = 'application/json';
211
+ let urlPath = `/api/v1/toolsets/{toolsetName}`;
212
+ urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
213
+ const response = await this.request({
214
+ path: urlPath,
215
+ method: 'PATCH',
216
+ headers: headerParameters,
217
+ query: queryParameters,
218
+ body: requestParameters['toolsetBodyDto'],
219
+ }, initOverrides);
220
+ return new runtime.JSONApiResponse(response);
221
+ }
222
+ /**
223
+ * Updates an existing toolset for the authenticated session user by proxying DIAL Core. Invalidates the relevant caches on success.
224
+ * Update a toolset
225
+ */
226
+ async updateToolset(requestParameters, initOverrides) {
227
+ const response = await this.updateToolsetRaw(requestParameters, initOverrides);
228
+ return await response.value();
229
+ }
230
+ }
231
+ exports.ToolsetsApi = ToolsetsApi;