@epam/ai-dial-chat-api-client 1.3.0-dev.98 → 1.3.0-rc.0

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 (47) hide show
  1. package/generated/src/apis/ApplicationsApi.d.ts +56 -1
  2. package/generated/src/apis/ApplicationsApi.d.ts.map +1 -1
  3. package/generated/src/apis/ApplicationsApi.js +154 -0
  4. package/generated/src/apis/AuthApi.d.ts +10 -0
  5. package/generated/src/apis/AuthApi.d.ts.map +1 -1
  6. package/generated/src/apis/AuthApi.js +24 -0
  7. package/generated/src/apis/CelebrationsApi.d.ts +60 -0
  8. package/generated/src/apis/CelebrationsApi.d.ts.map +1 -0
  9. package/generated/src/apis/CelebrationsApi.js +107 -0
  10. package/generated/src/apis/ConversationsApi.d.ts +34 -7
  11. package/generated/src/apis/ConversationsApi.d.ts.map +1 -1
  12. package/generated/src/apis/ConversationsApi.js +86 -6
  13. package/generated/src/apis/CustomApiApi.d.ts +49 -4
  14. package/generated/src/apis/CustomApiApi.d.ts.map +1 -1
  15. package/generated/src/apis/CustomApiApi.js +113 -4
  16. package/generated/src/apis/DeploymentsApi.d.ts +13 -0
  17. package/generated/src/apis/DeploymentsApi.d.ts.map +1 -1
  18. package/generated/src/apis/DeploymentsApi.js +35 -0
  19. package/generated/src/apis/ExternalServicesApi.d.ts +30 -1
  20. package/generated/src/apis/ExternalServicesApi.d.ts.map +1 -1
  21. package/generated/src/apis/ExternalServicesApi.js +82 -0
  22. package/generated/src/apis/FilesApi.d.ts +25 -0
  23. package/generated/src/apis/FilesApi.d.ts.map +1 -1
  24. package/generated/src/apis/FilesApi.js +62 -1
  25. package/generated/src/apis/ProjectsApi.d.ts +323 -0
  26. package/generated/src/apis/ProjectsApi.d.ts.map +1 -0
  27. package/generated/src/apis/ProjectsApi.js +945 -0
  28. package/generated/src/apis/PublishApi.d.ts +30 -1
  29. package/generated/src/apis/PublishApi.d.ts.map +1 -1
  30. package/generated/src/apis/PublishApi.js +54 -1
  31. package/generated/src/apis/ShareApi.d.ts +13 -0
  32. package/generated/src/apis/ShareApi.d.ts.map +1 -1
  33. package/generated/src/apis/ShareApi.js +34 -0
  34. package/generated/src/apis/SkillsApi.d.ts +14 -1
  35. package/generated/src/apis/SkillsApi.d.ts.map +1 -1
  36. package/generated/src/apis/SkillsApi.js +36 -0
  37. package/generated/src/apis/ToolsetsApi.d.ts +29 -2
  38. package/generated/src/apis/ToolsetsApi.d.ts.map +1 -1
  39. package/generated/src/apis/ToolsetsApi.js +77 -3
  40. package/generated/src/apis/index.d.ts +2 -0
  41. package/generated/src/apis/index.d.ts.map +1 -1
  42. package/generated/src/apis/index.js +2 -0
  43. package/generated/src/models/index.d.ts +4609 -2705
  44. package/generated/src/models/index.d.ts.map +1 -1
  45. package/generated/src/models/index.js +222 -2
  46. package/package.json +2 -2
  47. package/tsconfig.lib.tsbuildinfo +1 -1
@@ -10,16 +10,31 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApplicationSchemasResponseDto, ApplicationsResponseDto, CreateApplicationBodyDto, CreatedApplicationDto, UpdateApplicationBodyDto, UpdatedApplicationDto } from '../models/index';
13
+ import type { ApplicationSchemasResponseDto, ApplicationsResponseDto, CommitApplicationVersionDto, CreateApplicationBodyDto, CreatedApplicationDto, ForkApplicationVersionDto, MoveResourceDto, ResourceFoldersResponseDto, ResourceIdResponseDto, UpdateApplicationBodyDto, UpdatedApplicationDto } from '../models/index';
14
+ export interface CommitApplicationVersionRequest {
15
+ applicationName: string;
16
+ commitApplicationVersionDto: CommitApplicationVersionDto;
17
+ }
14
18
  export interface CreateApplicationRequest {
15
19
  createApplicationBodyDto: CreateApplicationBodyDto;
16
20
  }
17
21
  export interface DeleteApplicationRequest {
18
22
  applicationName: string;
19
23
  }
24
+ export interface ForkApplicationVersionRequest {
25
+ applicationName: string;
26
+ forkApplicationVersionDto: ForkApplicationVersionDto;
27
+ }
20
28
  export interface GetApplicationSchemaRequest {
21
29
  id: string;
22
30
  }
31
+ export interface ListApplicationFoldersRequest {
32
+ path?: string;
33
+ }
34
+ export interface MoveApplicationRequest {
35
+ applicationName: string;
36
+ moveResourceDto: MoveResourceDto;
37
+ }
23
38
  export interface UpdateApplicationRequest {
24
39
  applicationName: string;
25
40
  updateApplicationBodyDto: UpdateApplicationBodyDto;
@@ -28,6 +43,16 @@ export interface UpdateApplicationRequest {
28
43
  *
29
44
  */
30
45
  export declare class ApplicationsApi extends runtime.BaseAPI {
46
+ /**
47
+ * Swaps the bodies of the source application and its forked snapshot, each keeping its own version: the source gets back its pre-edit body and the snapshot gets the edits. Both writes are conditional on the ETags read in the same request.
48
+ * Commit a forked application version
49
+ */
50
+ commitApplicationVersionRaw(requestParameters: CommitApplicationVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResourceIdResponseDto>>;
51
+ /**
52
+ * Swaps the bodies of the source application and its forked snapshot, each keeping its own version: the source gets back its pre-edit body and the snapshot gets the edits. Both writes are conditional on the ETags read in the same request.
53
+ * Commit a forked application version
54
+ */
55
+ commitApplicationVersion(requestParameters: CommitApplicationVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResourceIdResponseDto>;
31
56
  /**
32
57
  * Creates a new application for the authenticated session user by proxying DIAL Core. With createOnly, never overwrites an existing application and creates at the next free path instead (409 when none is free). With preserveApplicationProperties, stores schema settings verbatim. Invalidates the applications list and deployments list caches on success.
33
58
  * Create a new application
@@ -48,6 +73,16 @@ export declare class ApplicationsApi extends runtime.BaseAPI {
48
73
  * Delete an application
49
74
  */
50
75
  deleteApplication(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
76
+ /**
77
+ * Copies the stored application to `{folderPath}/{name}__{version}` and stamps the copy with `version`, never overwriting. Used with commitApplicationVersion so edits saved to the source end up in the new version only.
78
+ * Fork an application into a new version
79
+ */
80
+ forkApplicationVersionRaw(requestParameters: ForkApplicationVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResourceIdResponseDto>>;
81
+ /**
82
+ * Copies the stored application to `{folderPath}/{name}__{version}` and stamps the copy with `version`, never overwriting. Used with commitApplicationVersion so edits saved to the source end up in the new version only.
83
+ * Fork an application into a new version
84
+ */
85
+ forkApplicationVersion(requestParameters: ForkApplicationVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResourceIdResponseDto>;
51
86
  /**
52
87
  * Returns one DIAL Core application type schema by its $id. Results are cached server-side for 60 seconds per user per schema.
53
88
  * Get application type schema by id
@@ -62,6 +97,16 @@ export declare class ApplicationsApi extends runtime.BaseAPI {
62
97
  getApplicationSchema(requestParameters: GetApplicationSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
63
98
  [key: string]: unknown;
64
99
  }>;
100
+ /**
101
+ * Lists the folders directly under `path` in the caller\'s own applications bucket. A folder that does not exist yet lists as empty. Not cached.
102
+ * List the caller\'s application folders
103
+ */
104
+ listApplicationFoldersRaw(requestParameters: ListApplicationFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResourceFoldersResponseDto>>;
105
+ /**
106
+ * Lists the folders directly under `path` in the caller\'s own applications bucket. A folder that does not exist yet lists as empty. Not cached.
107
+ * List the caller\'s application folders
108
+ */
109
+ listApplicationFolders(requestParameters?: ListApplicationFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResourceFoldersResponseDto>;
65
110
  /**
66
111
  * Returns DIAL Core application type schemas visible to the authenticated user. Results are cached server-side for 60 seconds per user.
67
112
  * List application type schemas
@@ -82,6 +127,16 @@ export declare class ApplicationsApi extends runtime.BaseAPI {
82
127
  * List available applications
83
128
  */
84
129
  listApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationsResponseDto>;
130
+ /**
131
+ * Moves an application in the caller\'s own bucket into `folderPath`, never overwriting an existing application. Invalidates the applications, deployments and details caches on success.
132
+ * Move an application to one of the caller\'s folders
133
+ */
134
+ moveApplicationRaw(requestParameters: MoveApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResourceIdResponseDto>>;
135
+ /**
136
+ * Moves an application in the caller\'s own bucket into `folderPath`, never overwriting an existing application. Invalidates the applications, deployments and details caches on success.
137
+ * Move an application to one of the caller\'s folders
138
+ */
139
+ moveApplication(requestParameters: MoveApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResourceIdResponseDto>;
85
140
  /**
86
141
  * 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) is preserved untouched unless the request supplies applicationProperties, in which case it fully replaces the stored value. Invalidates the applications and deployments list caches on success.
87
142
  * Update an application
@@ -1 +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,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,wBAAwB;IACvC,wBAAwB,EAAE,wBAAwB,CAAC;CACpD;AAED,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB,EAAE,wBAAwB,CAAC;CACpD;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,OAAO,CAAC,OAAO;IAClD;;;OAGG;IACG,oBAAoB,CACxB,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,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;IA6BxD;;;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;IAkDtD;;;OAGG;IACG,iBAAiB,CACrB,iBAAiB,EAAE,wBAAwB,EAC3C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,qBAAqB,CAAC;CAOlC"}
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,2BAA2B,EAC3B,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,0BAA0B,EAC1B,qBAAqB,EAErB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,+BAA+B;IAC9C,eAAe,EAAE,MAAM,CAAC;IACxB,2BAA2B,EAAE,2BAA2B,CAAC;CAC1D;AAED,MAAM,WAAW,wBAAwB;IACvC,wBAAwB,EAAE,wBAAwB,CAAC;CACpD;AAED,MAAM,WAAW,wBAAwB;I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CAAC,oBAAoB,GACzD,OAAO,CAAC,qBAAqB,CAAC;CAOlC"}
@@ -19,6 +19,46 @@ const runtime = require("../runtime");
19
19
  *
20
20
  */
21
21
  class ApplicationsApi extends runtime.BaseAPI {
22
+ /**
23
+ * Swaps the bodies of the source application and its forked snapshot, each keeping its own version: the source gets back its pre-edit body and the snapshot gets the edits. Both writes are conditional on the ETags read in the same request.
24
+ * Commit a forked application version
25
+ */
26
+ async commitApplicationVersionRaw(requestParameters, initOverrides) {
27
+ if (requestParameters['applicationName'] == null) {
28
+ throw new runtime.RequiredError('applicationName', 'Required parameter "applicationName" was null or undefined when calling commitApplicationVersion().');
29
+ }
30
+ if (requestParameters['commitApplicationVersionDto'] == null) {
31
+ throw new runtime.RequiredError('commitApplicationVersionDto', 'Required parameter "commitApplicationVersionDto" was null or undefined when calling commitApplicationVersion().');
32
+ }
33
+ const queryParameters = {};
34
+ const headerParameters = {};
35
+ headerParameters['Content-Type'] = 'application/json';
36
+ if (this.configuration && this.configuration.accessToken) {
37
+ const token = this.configuration.accessToken;
38
+ const tokenString = await token('bearer', []);
39
+ if (tokenString) {
40
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
41
+ }
42
+ }
43
+ let urlPath = `/api/v1/applications/{applicationName}/versions/commit`;
44
+ urlPath = urlPath.replace(`{${'applicationName'}}`, encodeURIComponent(String(requestParameters['applicationName'])));
45
+ const response = await this.request({
46
+ path: urlPath,
47
+ method: 'POST',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ body: requestParameters['commitApplicationVersionDto'],
51
+ }, initOverrides);
52
+ return new runtime.JSONApiResponse(response);
53
+ }
54
+ /**
55
+ * Swaps the bodies of the source application and its forked snapshot, each keeping its own version: the source gets back its pre-edit body and the snapshot gets the edits. Both writes are conditional on the ETags read in the same request.
56
+ * Commit a forked application version
57
+ */
58
+ async commitApplicationVersion(requestParameters, initOverrides) {
59
+ const response = await this.commitApplicationVersionRaw(requestParameters, initOverrides);
60
+ return await response.value();
61
+ }
22
62
  /**
23
63
  * Creates a new application for the authenticated session user by proxying DIAL Core. With createOnly, never overwrites an existing application and creates at the next free path instead (409 when none is free). With preserveApplicationProperties, stores schema settings verbatim. Invalidates the applications list and deployments list caches on success.
24
64
  * Create a new application
@@ -89,6 +129,46 @@ class ApplicationsApi extends runtime.BaseAPI {
89
129
  async deleteApplication(requestParameters, initOverrides) {
90
130
  await this.deleteApplicationRaw(requestParameters, initOverrides);
91
131
  }
132
+ /**
133
+ * Copies the stored application to `{folderPath}/{name}__{version}` and stamps the copy with `version`, never overwriting. Used with commitApplicationVersion so edits saved to the source end up in the new version only.
134
+ * Fork an application into a new version
135
+ */
136
+ async forkApplicationVersionRaw(requestParameters, initOverrides) {
137
+ if (requestParameters['applicationName'] == null) {
138
+ throw new runtime.RequiredError('applicationName', 'Required parameter "applicationName" was null or undefined when calling forkApplicationVersion().');
139
+ }
140
+ if (requestParameters['forkApplicationVersionDto'] == null) {
141
+ throw new runtime.RequiredError('forkApplicationVersionDto', 'Required parameter "forkApplicationVersionDto" was null or undefined when calling forkApplicationVersion().');
142
+ }
143
+ const queryParameters = {};
144
+ const headerParameters = {};
145
+ headerParameters['Content-Type'] = 'application/json';
146
+ if (this.configuration && this.configuration.accessToken) {
147
+ const token = this.configuration.accessToken;
148
+ const tokenString = await token('bearer', []);
149
+ if (tokenString) {
150
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
151
+ }
152
+ }
153
+ let urlPath = `/api/v1/applications/{applicationName}/versions`;
154
+ urlPath = urlPath.replace(`{${'applicationName'}}`, encodeURIComponent(String(requestParameters['applicationName'])));
155
+ const response = await this.request({
156
+ path: urlPath,
157
+ method: 'POST',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ body: requestParameters['forkApplicationVersionDto'],
161
+ }, initOverrides);
162
+ return new runtime.JSONApiResponse(response);
163
+ }
164
+ /**
165
+ * Copies the stored application to `{folderPath}/{name}__{version}` and stamps the copy with `version`, never overwriting. Used with commitApplicationVersion so edits saved to the source end up in the new version only.
166
+ * Fork an application into a new version
167
+ */
168
+ async forkApplicationVersion(requestParameters, initOverrides) {
169
+ const response = await this.forkApplicationVersionRaw(requestParameters, initOverrides);
170
+ return await response.value();
171
+ }
92
172
  /**
93
173
  * Returns one DIAL Core application type schema by its $id. Results are cached server-side for 60 seconds per user per schema.
94
174
  * Get application type schema by id
@@ -124,6 +204,40 @@ class ApplicationsApi extends runtime.BaseAPI {
124
204
  const response = await this.getApplicationSchemaRaw(requestParameters, initOverrides);
125
205
  return await response.value();
126
206
  }
207
+ /**
208
+ * Lists the folders directly under `path` in the caller\'s own applications bucket. A folder that does not exist yet lists as empty. Not cached.
209
+ * List the caller\'s application folders
210
+ */
211
+ async listApplicationFoldersRaw(requestParameters, initOverrides) {
212
+ const queryParameters = {};
213
+ if (requestParameters['path'] != null) {
214
+ queryParameters['path'] = requestParameters['path'];
215
+ }
216
+ const headerParameters = {};
217
+ if (this.configuration && this.configuration.accessToken) {
218
+ const token = this.configuration.accessToken;
219
+ const tokenString = await token('bearer', []);
220
+ if (tokenString) {
221
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
222
+ }
223
+ }
224
+ let urlPath = `/api/v1/applications/folders`;
225
+ const response = await this.request({
226
+ path: urlPath,
227
+ method: 'GET',
228
+ headers: headerParameters,
229
+ query: queryParameters,
230
+ }, initOverrides);
231
+ return new runtime.JSONApiResponse(response);
232
+ }
233
+ /**
234
+ * Lists the folders directly under `path` in the caller\'s own applications bucket. A folder that does not exist yet lists as empty. Not cached.
235
+ * List the caller\'s application folders
236
+ */
237
+ async listApplicationFolders(requestParameters = {}, initOverrides) {
238
+ const response = await this.listApplicationFoldersRaw(requestParameters, initOverrides);
239
+ return await response.value();
240
+ }
127
241
  /**
128
242
  * Returns DIAL Core application type schemas visible to the authenticated user. Results are cached server-side for 60 seconds per user.
129
243
  * List application type schemas
@@ -186,6 +300,46 @@ class ApplicationsApi extends runtime.BaseAPI {
186
300
  const response = await this.listApplicationsRaw(initOverrides);
187
301
  return await response.value();
188
302
  }
303
+ /**
304
+ * Moves an application in the caller\'s own bucket into `folderPath`, never overwriting an existing application. Invalidates the applications, deployments and details caches on success.
305
+ * Move an application to one of the caller\'s folders
306
+ */
307
+ async moveApplicationRaw(requestParameters, initOverrides) {
308
+ if (requestParameters['applicationName'] == null) {
309
+ throw new runtime.RequiredError('applicationName', 'Required parameter "applicationName" was null or undefined when calling moveApplication().');
310
+ }
311
+ if (requestParameters['moveResourceDto'] == null) {
312
+ throw new runtime.RequiredError('moveResourceDto', 'Required parameter "moveResourceDto" was null or undefined when calling moveApplication().');
313
+ }
314
+ const queryParameters = {};
315
+ const headerParameters = {};
316
+ headerParameters['Content-Type'] = 'application/json';
317
+ if (this.configuration && this.configuration.accessToken) {
318
+ const token = this.configuration.accessToken;
319
+ const tokenString = await token('bearer', []);
320
+ if (tokenString) {
321
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
322
+ }
323
+ }
324
+ let urlPath = `/api/v1/applications/{applicationName}/move`;
325
+ urlPath = urlPath.replace(`{${'applicationName'}}`, encodeURIComponent(String(requestParameters['applicationName'])));
326
+ const response = await this.request({
327
+ path: urlPath,
328
+ method: 'POST',
329
+ headers: headerParameters,
330
+ query: queryParameters,
331
+ body: requestParameters['moveResourceDto'],
332
+ }, initOverrides);
333
+ return new runtime.JSONApiResponse(response);
334
+ }
335
+ /**
336
+ * Moves an application in the caller\'s own bucket into `folderPath`, never overwriting an existing application. Invalidates the applications, deployments and details caches on success.
337
+ * Move an application to one of the caller\'s folders
338
+ */
339
+ async moveApplication(requestParameters, initOverrides) {
340
+ const response = await this.moveApplicationRaw(requestParameters, initOverrides);
341
+ return await response.value();
342
+ }
189
343
  /**
190
344
  * 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) is preserved untouched unless the request supplies applicationProperties, in which case it fully replaces the stored value. Invalidates the applications and deployments list caches on success.
191
345
  * Update an application
@@ -37,6 +37,16 @@ export declare class AuthApi extends runtime.BaseAPI {
37
37
  * Get current user profile
38
38
  */
39
39
  getCurrentUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfileDto>;
40
+ /**
41
+ * Serves the inline (data: URL) profile picture the identity provider returns from UserInfo. Only advertised through `pictureUrl` on `GET /auth/me` when the session has one.
42
+ * Get current user profile picture
43
+ */
44
+ getCurrentUserPictureRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
45
+ /**
46
+ * Serves the inline (data: URL) profile picture the identity provider returns from UserInfo. Only advertised through `pictureUrl` on `GET /auth/me` when the session has one.
47
+ * Get current user profile picture
48
+ */
49
+ getCurrentUserPicture(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
40
50
  /**
41
51
  * List configured identity providers
42
52
  */
@@ -1 +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,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAC1C;;OAEG;IACG,WAAW,CACf,iBAAiB,EAAE,eAAe,EAClC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA+BrC;;OAEG;IACG,QAAQ,CACZ,iBAAiB,EAAE,eAAe,EAClC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC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AAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IAoBvD;;OAEG;IACG,aAAa,CACjB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAKlC;;OAEG;IACG,QAAQ,CACZ,iBAAiB,EAAE,YAAY,EAC/B,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA+BrC;;OAEG;IACG,KAAK,CACT,iBAAiB,EAAE,YAAY,EAC/B,aAAa,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"}
@@ -73,6 +73,30 @@ class AuthApi extends runtime.BaseAPI {
73
73
  const response = await this.getCurrentUserRaw(initOverrides);
74
74
  return await response.value();
75
75
  }
76
+ /**
77
+ * Serves the inline (data: URL) profile picture the identity provider returns from UserInfo. Only advertised through `pictureUrl` on `GET /auth/me` when the session has one.
78
+ * Get current user profile picture
79
+ */
80
+ async getCurrentUserPictureRaw(initOverrides) {
81
+ const queryParameters = {};
82
+ const headerParameters = {};
83
+ let urlPath = `/api/v1/auth/me/picture`;
84
+ const response = await this.request({
85
+ path: urlPath,
86
+ method: 'GET',
87
+ headers: headerParameters,
88
+ query: queryParameters,
89
+ }, initOverrides);
90
+ return new runtime.BlobApiResponse(response);
91
+ }
92
+ /**
93
+ * Serves the inline (data: URL) profile picture the identity provider returns from UserInfo. Only advertised through `pictureUrl` on `GET /auth/me` when the session has one.
94
+ * Get current user profile picture
95
+ */
96
+ async getCurrentUserPicture(initOverrides) {
97
+ const response = await this.getCurrentUserPictureRaw(initOverrides);
98
+ return await response.value();
99
+ }
76
100
  /**
77
101
  * List configured identity providers
78
102
  */
@@ -0,0 +1,60 @@
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 { CelebrationCatalogDto, CelebrationPackDto } from '../models/index';
14
+ export interface GetCelebrationAssetRequest {
15
+ assetId: string;
16
+ }
17
+ export interface GetCelebrationPackRequest {
18
+ packId: string;
19
+ version: string;
20
+ }
21
+ /**
22
+ *
23
+ */
24
+ export declare class CelebrationsApi extends runtime.BaseAPI {
25
+ /**
26
+ * Returns the verified bytes of an asset that a manifest of the current celebration index declares, with its registered Content-Type. JSON and SVG are compressed when the client accepts br or gzip.
27
+ * Get a celebration asset
28
+ */
29
+ getCelebrationAssetRaw(requestParameters: GetCelebrationAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
30
+ [key: string]: unknown;
31
+ }>>;
32
+ /**
33
+ * Returns the verified bytes of an asset that a manifest of the current celebration index declares, with its registered Content-Type. JSON and SVG are compressed when the client accepts br or gzip.
34
+ * Get a celebration asset
35
+ */
36
+ getCelebrationAsset(requestParameters: GetCelebrationAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
37
+ [key: string]: unknown;
38
+ }>;
39
+ /**
40
+ * Returns the validated celebration index: every published pack version and the default pack per event. Cached for 60 seconds, with an ETag; manifest paths and hashes are never exposed.
41
+ * Get the celebration catalog
42
+ */
43
+ getCelebrationCatalogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CelebrationCatalogDto>>;
44
+ /**
45
+ * Returns the validated celebration index: every published pack version and the default pack per event. Cached for 60 seconds, with an ETag; manifest paths and hashes are never exposed.
46
+ * Get the celebration catalog
47
+ */
48
+ getCelebrationCatalog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CelebrationCatalogDto>;
49
+ /**
50
+ * Returns one validated pack version that the current celebration index lists. A version is immutable, so the response may be cached for a year.
51
+ * Get a celebration pack
52
+ */
53
+ getCelebrationPackRaw(requestParameters: GetCelebrationPackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CelebrationPackDto>>;
54
+ /**
55
+ * Returns one validated pack version that the current celebration index lists. A version is immutable, so the response may be cached for a year.
56
+ * Get a celebration pack
57
+ */
58
+ getCelebrationPack(requestParameters: GetCelebrationPackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CelebrationPackDto>;
59
+ }
60
+ //# sourceMappingURL=CelebrationsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CelebrationsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/CelebrationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,OAAO,CAAC,OAAO;IAClD;;;OAGG;IACG,sBAAsB,CAC1B,iBAAiB,EAAE,0BAA0B,EAC7C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;IA+B3D;;;OAGG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,0BAA0B,EAC7C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAQtC;;;OAGG;IACG,wBAAwB,CAC5B,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAoBtD;;;OAGG;IACG,qBAAqB,CACzB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,qBAAqB,CAAC;IAKjC;;;OAGG;IACG,qBAAqB,CACzB,iBAAiB,EAAE,yBAAyB,EAC5C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IA0CnD;;;OAGG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,yBAAyB,EAC5C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,kBAAkB,CAAC;CAO/B"}
@@ -0,0 +1,107 @@
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.CelebrationsApi = void 0;
17
+ const runtime = require("../runtime");
18
+ /**
19
+ *
20
+ */
21
+ class CelebrationsApi extends runtime.BaseAPI {
22
+ /**
23
+ * Returns the verified bytes of an asset that a manifest of the current celebration index declares, with its registered Content-Type. JSON and SVG are compressed when the client accepts br or gzip.
24
+ * Get a celebration asset
25
+ */
26
+ async getCelebrationAssetRaw(requestParameters, initOverrides) {
27
+ if (requestParameters['assetId'] == null) {
28
+ throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling getCelebrationAsset().');
29
+ }
30
+ const queryParameters = {};
31
+ const headerParameters = {};
32
+ let urlPath = `/api/v1/celebrations/assets/{assetId}`;
33
+ urlPath = urlPath.replace(`{${'assetId'}}`, encodeURIComponent(String(requestParameters['assetId'])));
34
+ const response = await this.request({
35
+ path: urlPath,
36
+ method: 'GET',
37
+ headers: headerParameters,
38
+ query: queryParameters,
39
+ }, initOverrides);
40
+ return new runtime.JSONApiResponse(response);
41
+ }
42
+ /**
43
+ * Returns the verified bytes of an asset that a manifest of the current celebration index declares, with its registered Content-Type. JSON and SVG are compressed when the client accepts br or gzip.
44
+ * Get a celebration asset
45
+ */
46
+ async getCelebrationAsset(requestParameters, initOverrides) {
47
+ const response = await this.getCelebrationAssetRaw(requestParameters, initOverrides);
48
+ return await response.value();
49
+ }
50
+ /**
51
+ * Returns the validated celebration index: every published pack version and the default pack per event. Cached for 60 seconds, with an ETag; manifest paths and hashes are never exposed.
52
+ * Get the celebration catalog
53
+ */
54
+ async getCelebrationCatalogRaw(initOverrides) {
55
+ const queryParameters = {};
56
+ const headerParameters = {};
57
+ let urlPath = `/api/v1/celebrations`;
58
+ const response = await this.request({
59
+ path: urlPath,
60
+ method: 'GET',
61
+ headers: headerParameters,
62
+ query: queryParameters,
63
+ }, initOverrides);
64
+ return new runtime.JSONApiResponse(response);
65
+ }
66
+ /**
67
+ * Returns the validated celebration index: every published pack version and the default pack per event. Cached for 60 seconds, with an ETag; manifest paths and hashes are never exposed.
68
+ * Get the celebration catalog
69
+ */
70
+ async getCelebrationCatalog(initOverrides) {
71
+ const response = await this.getCelebrationCatalogRaw(initOverrides);
72
+ return await response.value();
73
+ }
74
+ /**
75
+ * Returns one validated pack version that the current celebration index lists. A version is immutable, so the response may be cached for a year.
76
+ * Get a celebration pack
77
+ */
78
+ async getCelebrationPackRaw(requestParameters, initOverrides) {
79
+ if (requestParameters['packId'] == null) {
80
+ throw new runtime.RequiredError('packId', 'Required parameter "packId" was null or undefined when calling getCelebrationPack().');
81
+ }
82
+ if (requestParameters['version'] == null) {
83
+ throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling getCelebrationPack().');
84
+ }
85
+ const queryParameters = {};
86
+ const headerParameters = {};
87
+ let urlPath = `/api/v1/celebrations/packs/{packId}/{version}`;
88
+ urlPath = urlPath.replace(`{${'packId'}}`, encodeURIComponent(String(requestParameters['packId'])));
89
+ urlPath = urlPath.replace(`{${'version'}}`, encodeURIComponent(String(requestParameters['version'])));
90
+ const response = await this.request({
91
+ path: urlPath,
92
+ method: 'GET',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides);
96
+ return new runtime.JSONApiResponse(response);
97
+ }
98
+ /**
99
+ * Returns one validated pack version that the current celebration index lists. A version is immutable, so the response may be cached for a year.
100
+ * Get a celebration pack
101
+ */
102
+ async getCelebrationPack(requestParameters, initOverrides) {
103
+ const response = await this.getCelebrationPackRaw(requestParameters, initOverrides);
104
+ return await response.value();
105
+ }
106
+ }
107
+ exports.CelebrationsApi = CelebrationsApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachGenerationDto, ConversationDeletionResultDto, ConversationListResponseDto, ConversationMetadataDto, ConversationResponseDto, CreateConversationDto, DeleteAllConversationsBodyDto, DeleteConversationsBodyDto, DuplicateConversationResponseDto, GenerateTitleResponseDto, PublishConversationDto, PublishConversationResultDto, RenameConversationBodyDto, RenameConversationResponseDto, SaveConversationBodyDto, SendCompletionDto, StopCompletionDto, UnpublishConversationDto, UnpublishConversationResultDto, WatchConversationBodyDto } from '../models/index';
13
+ import type { AttachGenerationDto, ConversationDeletionResultDto, ConversationListResponseDto, ConversationMetadataDto, ConversationResponseDto, ConversationTitlesBodyDto, ConversationTitlesResponseDto, CreateConversationDto, DeleteAllConversationsBodyDto, DeleteConversationsBodyDto, DuplicateConversationResponseDto, GenerateTitleResponseDto, PublishConversationDto, PublishConversationResultDto, RenameConversationBodyDto, RenameConversationResponseDto, SaveConversationBodyDto, SendCompletionDto, StopCompletionDto, StreamConversationTitlesBodyDto, UnpublishConversationDto, UnpublishConversationResultDto, WatchConversationBodyDto } from '../models/index';
14
14
  export interface AttachToGenerationRequest {
15
15
  attachGenerationDto: AttachGenerationDto;
16
16
  }
@@ -42,6 +42,9 @@ export interface GetConversationMetadataRequest {
42
42
  export interface GetConversationPublishHistoryRequest {
43
43
  path: string;
44
44
  }
45
+ export interface GetConversationTitlesRequest {
46
+ conversationTitlesBodyDto: ConversationTitlesBodyDto;
47
+ }
45
48
  export interface ListConversationsRequest {
46
49
  limit?: number;
47
50
  nextToken?: string;
@@ -66,8 +69,12 @@ export interface StopCompletionRequest {
66
69
  }
67
70
  export interface StreamCompletionRequest {
68
71
  sendCompletionDto: SendCompletionDto;
72
+ xLang?: string;
69
73
  xTimezone?: string;
70
74
  }
75
+ export interface StreamConversationTitlesRequest {
76
+ streamConversationTitlesBodyDto: StreamConversationTitlesBodyDto;
77
+ }
71
78
  export interface UnpublishConversationRequest {
72
79
  path: string;
73
80
  unpublishConversationDto: UnpublishConversationDto;
@@ -80,12 +87,12 @@ export interface WatchConversationRequest {
80
87
  */
81
88
  export declare class ConversationsApi extends runtime.BaseAPI {
82
89
  /**
83
- * Opens an SSE stream for the active generation on this conversation path: one `snapshot` event carrying the assistant message as assembled so far, then a `chunk` event for every subsequent delta, then exactly one terminal event (`done`/`error`/`stopped`). Used by the frontend to show progressive content when reopening a conversation mid-generation instead of only a typing indicator. Principal-scoped — only the principal that could stop the generation can attach to it.
90
+ * Opens an SSE stream for the active generation on this conversation path: one `snapshot` event carrying the assistant message as assembled so far and, when the generation runs on this instance outside DIAL Core background mode, its `generationId` — the id `completions/stop` accepts for this path, so a client that attached after a refresh can stop it — then a `chunk` event for every subsequent delta, then exactly one terminal event (`done`/`error`/`stopped`). Used by the frontend to show progressive content when reopening a conversation mid-generation instead of only a typing indicator. Principal-scoped — only the principal that could stop the generation can attach to it.
84
91
  * Attach to an active generation and replay it live
85
92
  */
86
93
  attachToGenerationRaw(requestParameters: AttachToGenerationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
87
94
  /**
88
- * Opens an SSE stream for the active generation on this conversation path: one `snapshot` event carrying the assistant message as assembled so far, then a `chunk` event for every subsequent delta, then exactly one terminal event (`done`/`error`/`stopped`). Used by the frontend to show progressive content when reopening a conversation mid-generation instead of only a typing indicator. Principal-scoped — only the principal that could stop the generation can attach to it.
95
+ * Opens an SSE stream for the active generation on this conversation path: one `snapshot` event carrying the assistant message as assembled so far and, when the generation runs on this instance outside DIAL Core background mode, its `generationId` — the id `completions/stop` accepts for this path, so a client that attached after a refresh can stop it — then a `chunk` event for every subsequent delta, then exactly one terminal event (`done`/`error`/`stopped`). Used by the frontend to show progressive content when reopening a conversation mid-generation instead of only a typing indicator. Principal-scoped — only the principal that could stop the generation can attach to it.
89
96
  * Attach to an active generation and replay it live
90
97
  */
91
98
  attachToGeneration(requestParameters: AttachToGenerationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -172,22 +179,32 @@ export declare class ConversationsApi extends runtime.BaseAPI {
172
179
  */
173
180
  getConversationPublishHistory(requestParameters: GetConversationPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublishConversationResultDto>>;
174
181
  /**
175
- * Returns a flat conversation list for the authenticated user. Without limit or nextToken, follows all personal and public DIAL Core metadata pages with recursive=true, merges shared conversations, and sorts the complete result by latest activity. Explicit pagination parameters request one page per bucket.
182
+ * Returns cached or freshly read display titles for up to 25 full conversation resource URLs. Uses the current session permissions. Individual missing, forbidden, or unavailable resources are omitted; conversation messages are never returned.
183
+ * Resolve conversation display titles
184
+ */
185
+ getConversationTitlesRaw(requestParameters: GetConversationTitlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationTitlesResponseDto>>;
186
+ /**
187
+ * Returns cached or freshly read display titles for up to 25 full conversation resource URLs. Uses the current session permissions. Individual missing, forbidden, or unavailable resources are omitted; conversation messages are never returned.
188
+ * Resolve conversation display titles
189
+ */
190
+ getConversationTitles(requestParameters: GetConversationTitlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationTitlesResponseDto>;
191
+ /**
192
+ * Returns a flat conversation list for the authenticated user. Without limit or nextToken, follows all personal and public DIAL Core metadata pages with recursive=true, merges shared conversations, and sorts the complete result by latest activity. Explicit pagination parameters request one page per bucket. Never reads conversation bodies; unresolved display titles are marked isTitlePending for background resolution.
176
193
  * List conversations
177
194
  */
178
195
  listConversationsRaw(requestParameters: ListConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationListResponseDto>>;
179
196
  /**
180
- * Returns a flat conversation list for the authenticated user. Without limit or nextToken, follows all personal and public DIAL Core metadata pages with recursive=true, merges shared conversations, and sorts the complete result by latest activity. Explicit pagination parameters request one page per bucket.
197
+ * Returns a flat conversation list for the authenticated user. Without limit or nextToken, follows all personal and public DIAL Core metadata pages with recursive=true, merges shared conversations, and sorts the complete result by latest activity. Explicit pagination parameters request one page per bucket. Never reads conversation bodies; unresolved display titles are marked isTitlePending for background resolution.
181
198
  * List conversations
182
199
  */
183
200
  listConversations(requestParameters?: ListConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationListResponseDto>;
184
201
  /**
185
- * Idempotently records that the authenticated user has opened this conversation. Used to clear the unread indicator for scheduler-created conversations.
202
+ * Idempotently records that the authenticated user has seen this conversation. Clears the unread indicator of scheduler-created conversations and of regular conversations whose answer arrived while the user was elsewhere.
186
203
  * Mark a conversation as viewed
187
204
  */
188
205
  markConversationViewedRaw(requestParameters: MarkConversationViewedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
189
206
  /**
190
- * Idempotently records that the authenticated user has opened this conversation. Used to clear the unread indicator for scheduler-created conversations.
207
+ * Idempotently records that the authenticated user has seen this conversation. Clears the unread indicator of scheduler-created conversations and of regular conversations whose answer arrived while the user was elsewhere.
191
208
  * Mark a conversation as viewed
192
209
  */
193
210
  markConversationViewed(requestParameters: MarkConversationViewedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -235,6 +252,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
235
252
  * Stream a chat completion
236
253
  */
237
254
  streamCompletion(requestParameters: StreamCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
255
+ /**
256
+ * Opens a finite SSE stream that emits one `data:` JSON event per distinct requested ID as soon as its title read settles — `title`, `unavailable` (missing or forbidden), or `item_error` — then exactly one terminal `done` or `error` event. Each event payload is a `ConversationTitleStreamEventDto`. Reads share the process-wide title cache and read limit with `getConversationTitles`; up to 500 IDs (262144 bytes serialized) are admitted in request order. `done` with `reason: budget` means the 45-second admission window ended; IDs without an outcome may be requested again. A response that ends without a terminal event was interrupted. Conversation messages are never returned.
257
+ * Stream conversation display titles via SSE
258
+ */
259
+ streamConversationTitlesRaw(requestParameters: StreamConversationTitlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
260
+ /**
261
+ * Opens a finite SSE stream that emits one `data:` JSON event per distinct requested ID as soon as its title read settles — `title`, `unavailable` (missing or forbidden), or `item_error` — then exactly one terminal `done` or `error` event. Each event payload is a `ConversationTitleStreamEventDto`. Reads share the process-wide title cache and read limit with `getConversationTitles`; up to 500 IDs (262144 bytes serialized) are admitted in request order. `done` with `reason: budget` means the 45-second admission window ended; IDs without an outcome may be requested again. A response that ends without a terminal event was interrupted. Conversation messages are never returned.
262
+ * Stream conversation display titles via SSE
263
+ */
264
+ streamConversationTitles(requestParameters: StreamConversationTitlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
238
265
  /**
239
266
  * Submits a removal request for one already-published folder of an owned conversation by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the conversation’s publish history. The conversation title is re-fetched server-side and used as the publication name, so the request is legible in the admin queue.
240
267
  * Request removal of a published conversation from a folder