@epam/ai-dial-chat-api-client 1.3.0-dev.96 → 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.
- package/generated/src/apis/ApplicationsApi.d.ts +56 -1
- package/generated/src/apis/ApplicationsApi.d.ts.map +1 -1
- package/generated/src/apis/ApplicationsApi.js +154 -0
- package/generated/src/apis/AuthApi.d.ts +10 -0
- package/generated/src/apis/AuthApi.d.ts.map +1 -1
- package/generated/src/apis/AuthApi.js +24 -0
- package/generated/src/apis/CelebrationsApi.d.ts +60 -0
- package/generated/src/apis/CelebrationsApi.d.ts.map +1 -0
- package/generated/src/apis/CelebrationsApi.js +107 -0
- package/generated/src/apis/ConversationsApi.d.ts +34 -7
- package/generated/src/apis/ConversationsApi.d.ts.map +1 -1
- package/generated/src/apis/ConversationsApi.js +86 -6
- package/generated/src/apis/CustomApiApi.d.ts +49 -4
- package/generated/src/apis/CustomApiApi.d.ts.map +1 -1
- package/generated/src/apis/CustomApiApi.js +113 -4
- package/generated/src/apis/DeploymentsApi.d.ts +13 -0
- package/generated/src/apis/DeploymentsApi.d.ts.map +1 -1
- package/generated/src/apis/DeploymentsApi.js +35 -0
- package/generated/src/apis/ExternalServicesApi.d.ts +30 -1
- package/generated/src/apis/ExternalServicesApi.d.ts.map +1 -1
- package/generated/src/apis/ExternalServicesApi.js +82 -0
- package/generated/src/apis/FilesApi.d.ts +25 -0
- package/generated/src/apis/FilesApi.d.ts.map +1 -1
- package/generated/src/apis/FilesApi.js +62 -1
- package/generated/src/apis/ProjectsApi.d.ts +323 -0
- package/generated/src/apis/ProjectsApi.d.ts.map +1 -0
- package/generated/src/apis/ProjectsApi.js +945 -0
- package/generated/src/apis/PublishApi.d.ts +30 -1
- package/generated/src/apis/PublishApi.d.ts.map +1 -1
- package/generated/src/apis/PublishApi.js +54 -1
- package/generated/src/apis/ShareApi.d.ts +13 -0
- package/generated/src/apis/ShareApi.d.ts.map +1 -1
- package/generated/src/apis/ShareApi.js +34 -0
- package/generated/src/apis/SkillsApi.d.ts +14 -1
- package/generated/src/apis/SkillsApi.d.ts.map +1 -1
- package/generated/src/apis/SkillsApi.js +36 -0
- package/generated/src/apis/ToolsetsApi.d.ts +29 -2
- package/generated/src/apis/ToolsetsApi.d.ts.map +1 -1
- package/generated/src/apis/ToolsetsApi.js +77 -3
- package/generated/src/apis/index.d.ts +2 -0
- package/generated/src/apis/index.d.ts.map +1 -1
- package/generated/src/apis/index.js +2 -0
- package/generated/src/models/index.d.ts +4609 -2705
- package/generated/src/models/index.d.ts.map +1 -1
- package/generated/src/models/index.js +222 -2
- package/package.json +2 -2
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -19,6 +19,44 @@ const runtime = require("../runtime");
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
class ExternalServicesApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Removes one external service from an application the caller may edit, by proxying DIAL Core (DELETE /v1/applications/{appId}/external-services/{id}); Core purges its application-level credentials with it. Removing a service that is already gone succeeds.
|
|
24
|
+
* Remove an application external service
|
|
25
|
+
*/
|
|
26
|
+
async deleteExternalServiceRaw(requestParameters, initOverrides) {
|
|
27
|
+
if (requestParameters['appId'] == null) {
|
|
28
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling deleteExternalService().');
|
|
29
|
+
}
|
|
30
|
+
if (requestParameters['serviceId'] == null) {
|
|
31
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling deleteExternalService().');
|
|
32
|
+
}
|
|
33
|
+
const queryParameters = {};
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
36
|
+
const token = this.configuration.accessToken;
|
|
37
|
+
const tokenString = await token('bearer', []);
|
|
38
|
+
if (tokenString) {
|
|
39
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/api/v1/external-services/{appId}/{serviceId}`;
|
|
43
|
+
urlPath = urlPath.replace(`{${'appId'}}`, encodeURIComponent(String(requestParameters['appId'])));
|
|
44
|
+
urlPath = urlPath.replace(`{${'serviceId'}}`, encodeURIComponent(String(requestParameters['serviceId'])));
|
|
45
|
+
const response = await this.request({
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'DELETE',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
}, initOverrides);
|
|
51
|
+
return new runtime.VoidApiResponse(response);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Removes one external service from an application the caller may edit, by proxying DIAL Core (DELETE /v1/applications/{appId}/external-services/{id}); Core purges its application-level credentials with it. Removing a service that is already gone succeeds.
|
|
55
|
+
* Remove an application external service
|
|
56
|
+
*/
|
|
57
|
+
async deleteExternalService(requestParameters, initOverrides) {
|
|
58
|
+
await this.deleteExternalServiceRaw(requestParameters, initOverrides);
|
|
59
|
+
}
|
|
22
60
|
/**
|
|
23
61
|
* Returns an application external service\'s display metadata and authentication type by proxying DIAL Core (GET /v1/applications/{appId}/external-services/{id}) using the caller\'s session access token.
|
|
24
62
|
* Get application external-service metadata
|
|
@@ -93,6 +131,50 @@ class ExternalServicesApi extends runtime.BaseAPI {
|
|
|
93
131
|
const response = await this.listExternalServicesRaw(requestParameters, initOverrides);
|
|
94
132
|
return await response.value();
|
|
95
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Declares or replaces one external service on an application the caller may edit, by proxying DIAL Core (PUT /v1/applications/{appId}/external-services/{id}). An API_KEY service carries only the header name — each person\'s key is signed in separately; an OAUTH service carries its client settings. The client secret is never logged or returned.
|
|
136
|
+
* Declare an application external service
|
|
137
|
+
*/
|
|
138
|
+
async putExternalServiceRaw(requestParameters, initOverrides) {
|
|
139
|
+
if (requestParameters['appId'] == null) {
|
|
140
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling putExternalService().');
|
|
141
|
+
}
|
|
142
|
+
if (requestParameters['serviceId'] == null) {
|
|
143
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling putExternalService().');
|
|
144
|
+
}
|
|
145
|
+
if (requestParameters['externalServiceDefinitionBodyDto'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('externalServiceDefinitionBodyDto', 'Required parameter "externalServiceDefinitionBodyDto" was null or undefined when calling putExternalService().');
|
|
147
|
+
}
|
|
148
|
+
const queryParameters = {};
|
|
149
|
+
const headerParameters = {};
|
|
150
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
const token = this.configuration.accessToken;
|
|
153
|
+
const tokenString = await token('bearer', []);
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
let urlPath = `/api/v1/external-services/{appId}/{serviceId}`;
|
|
159
|
+
urlPath = urlPath.replace(`{${'appId'}}`, encodeURIComponent(String(requestParameters['appId'])));
|
|
160
|
+
urlPath = urlPath.replace(`{${'serviceId'}}`, encodeURIComponent(String(requestParameters['serviceId'])));
|
|
161
|
+
const response = await this.request({
|
|
162
|
+
path: urlPath,
|
|
163
|
+
method: 'PUT',
|
|
164
|
+
headers: headerParameters,
|
|
165
|
+
query: queryParameters,
|
|
166
|
+
body: requestParameters['externalServiceDefinitionBodyDto'],
|
|
167
|
+
}, initOverrides);
|
|
168
|
+
return new runtime.JSONApiResponse(response);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Declares or replaces one external service on an application the caller may edit, by proxying DIAL Core (PUT /v1/applications/{appId}/external-services/{id}). An API_KEY service carries only the header name — each person\'s key is signed in separately; an OAUTH service carries its client settings. The client secret is never logged or returned.
|
|
172
|
+
* Declare an application external service
|
|
173
|
+
*/
|
|
174
|
+
async putExternalService(requestParameters, initOverrides) {
|
|
175
|
+
const response = await this.putExternalServiceRaw(requestParameters, initOverrides);
|
|
176
|
+
return await response.value();
|
|
177
|
+
}
|
|
96
178
|
/**
|
|
97
179
|
* Submits API key or OAuth authorization-code credentials for an application external service by proxying DIAL Core (POST /v1/ops/external-service/signin). Credential payloads are never logged.
|
|
98
180
|
* Submit external-service credentials
|
|
@@ -76,6 +76,13 @@ export interface UploadFileRequest {
|
|
|
76
76
|
path: string;
|
|
77
77
|
uploadMode?: UploadFileUploadModeEnum;
|
|
78
78
|
}
|
|
79
|
+
export interface UploadFileContentRequest {
|
|
80
|
+
bucket: string;
|
|
81
|
+
path: string;
|
|
82
|
+
body: Blob;
|
|
83
|
+
uploadMode?: UploadFileContentUploadModeEnum;
|
|
84
|
+
contentType?: string;
|
|
85
|
+
}
|
|
79
86
|
/**
|
|
80
87
|
*
|
|
81
88
|
*/
|
|
@@ -220,6 +227,16 @@ export declare class FilesApi extends runtime.BaseAPI {
|
|
|
220
227
|
/**
|
|
221
228
|
*/
|
|
222
229
|
uploadFile(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileUploadResponseDto>;
|
|
230
|
+
/**
|
|
231
|
+
* Streams the request body to DIAL Core without staging it. Requires Content-Type: application/octet-stream and a Content-Length; the file MIME type goes in the contentType query parameter.
|
|
232
|
+
* Upload a file streamed as the raw request body
|
|
233
|
+
*/
|
|
234
|
+
uploadFileContentRaw(requestParameters: UploadFileContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileUploadResponseDto>>;
|
|
235
|
+
/**
|
|
236
|
+
* Streams the request body to DIAL Core without staging it. Requires Content-Type: application/octet-stream and a Content-Length; the file MIME type goes in the contentType query parameter.
|
|
237
|
+
* Upload a file streamed as the raw request body
|
|
238
|
+
*/
|
|
239
|
+
uploadFileContent(requestParameters: UploadFileContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileUploadResponseDto>;
|
|
223
240
|
}
|
|
224
241
|
/**
|
|
225
242
|
* @export
|
|
@@ -229,4 +246,12 @@ export declare const UploadFileUploadModeEnum: {
|
|
|
229
246
|
readonly CreateOnly: "create-only";
|
|
230
247
|
};
|
|
231
248
|
export type UploadFileUploadModeEnum = (typeof UploadFileUploadModeEnum)[keyof typeof UploadFileUploadModeEnum];
|
|
249
|
+
/**
|
|
250
|
+
* @export
|
|
251
|
+
*/
|
|
252
|
+
export declare const UploadFileContentUploadModeEnum: {
|
|
253
|
+
readonly Overwrite: "overwrite";
|
|
254
|
+
readonly CreateOnly: "create-only";
|
|
255
|
+
};
|
|
256
|
+
export type UploadFileContentUploadModeEnum = (typeof UploadFileContentUploadModeEnum)[keyof typeof UploadFileContentUploadModeEnum];
|
|
232
257
|
//# sourceMappingURL=FilesApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilesApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/FilesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,eAAe,CAAC;CAClC;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,gBA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AE,oBAAoB,EACvC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;IAiFzD;;OAEG;IACG,aAAa,CACjB,iBAAiB,EAAE,oBAAoB,EACvC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,wBAAwB,CAAC;IAQpC;OACG;IACG,aAAa,CACjB,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAkFtD;OACG;IACG,UAAU,CACd,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"FilesApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/FilesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,eAAe,CAAC;CAClC;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,cAAc,CAAC;CA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GAClC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAC3E;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GACzC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UploadFileUploadModeEnum = exports.FilesApi = void 0;
|
|
16
|
+
exports.UploadFileContentUploadModeEnum = exports.UploadFileUploadModeEnum = exports.FilesApi = void 0;
|
|
17
17
|
const runtime = require("../runtime");
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -704,6 +704,60 @@ class FilesApi extends runtime.BaseAPI {
|
|
|
704
704
|
const response = await this.uploadFileRaw(requestParameters, initOverrides);
|
|
705
705
|
return await response.value();
|
|
706
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* Streams the request body to DIAL Core without staging it. Requires Content-Type: application/octet-stream and a Content-Length; the file MIME type goes in the contentType query parameter.
|
|
709
|
+
* Upload a file streamed as the raw request body
|
|
710
|
+
*/
|
|
711
|
+
async uploadFileContentRaw(requestParameters, initOverrides) {
|
|
712
|
+
if (requestParameters['bucket'] == null) {
|
|
713
|
+
throw new runtime.RequiredError('bucket', 'Required parameter "bucket" was null or undefined when calling uploadFileContent().');
|
|
714
|
+
}
|
|
715
|
+
if (requestParameters['path'] == null) {
|
|
716
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling uploadFileContent().');
|
|
717
|
+
}
|
|
718
|
+
if (requestParameters['body'] == null) {
|
|
719
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling uploadFileContent().');
|
|
720
|
+
}
|
|
721
|
+
const queryParameters = {};
|
|
722
|
+
if (requestParameters['bucket'] != null) {
|
|
723
|
+
queryParameters['bucket'] = requestParameters['bucket'];
|
|
724
|
+
}
|
|
725
|
+
if (requestParameters['path'] != null) {
|
|
726
|
+
queryParameters['path'] = requestParameters['path'];
|
|
727
|
+
}
|
|
728
|
+
if (requestParameters['uploadMode'] != null) {
|
|
729
|
+
queryParameters['uploadMode'] = requestParameters['uploadMode'];
|
|
730
|
+
}
|
|
731
|
+
if (requestParameters['contentType'] != null) {
|
|
732
|
+
queryParameters['contentType'] = requestParameters['contentType'];
|
|
733
|
+
}
|
|
734
|
+
const headerParameters = {};
|
|
735
|
+
headerParameters['Content-Type'] = 'application/octet-stream';
|
|
736
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
737
|
+
const token = this.configuration.accessToken;
|
|
738
|
+
const tokenString = await token('bearer', []);
|
|
739
|
+
if (tokenString) {
|
|
740
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
let urlPath = `/api/v1/files/content`;
|
|
744
|
+
const response = await this.request({
|
|
745
|
+
path: urlPath,
|
|
746
|
+
method: 'PUT',
|
|
747
|
+
headers: headerParameters,
|
|
748
|
+
query: queryParameters,
|
|
749
|
+
body: requestParameters['body'],
|
|
750
|
+
}, initOverrides);
|
|
751
|
+
return new runtime.JSONApiResponse(response);
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Streams the request body to DIAL Core without staging it. Requires Content-Type: application/octet-stream and a Content-Length; the file MIME type goes in the contentType query parameter.
|
|
755
|
+
* Upload a file streamed as the raw request body
|
|
756
|
+
*/
|
|
757
|
+
async uploadFileContent(requestParameters, initOverrides) {
|
|
758
|
+
const response = await this.uploadFileContentRaw(requestParameters, initOverrides);
|
|
759
|
+
return await response.value();
|
|
760
|
+
}
|
|
707
761
|
}
|
|
708
762
|
exports.FilesApi = FilesApi;
|
|
709
763
|
/**
|
|
@@ -713,3 +767,10 @@ exports.UploadFileUploadModeEnum = {
|
|
|
713
767
|
Overwrite: 'overwrite',
|
|
714
768
|
CreateOnly: 'create-only',
|
|
715
769
|
};
|
|
770
|
+
/**
|
|
771
|
+
* @export
|
|
772
|
+
*/
|
|
773
|
+
exports.UploadFileContentUploadModeEnum = {
|
|
774
|
+
Overwrite: 'overwrite',
|
|
775
|
+
CreateOnly: 'create-only',
|
|
776
|
+
};
|
|
@@ -0,0 +1,323 @@
|
|
|
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 { AttachGenerationDto, ConversationResponseDto, CreateConversationDto, CreateProjectResponseDto, GenerateTitleResponseDto, ListProjectsResponseDto, ProjectArtifactListResponseDto, ProjectConversationListResponseDto, ProjectConversationTitlesBodyDto, ProjectConversationTitlesResponseDto, ProjectDetailsDto, RenameConversationBodyDto, RenameConversationResponseDto, SaveConversationBodyDto, SendCompletionDto, StopCompletionDto, UpdateProjectResponseDto, WatchProjectsBodyDto } from '../models/index';
|
|
14
|
+
export interface AttachToProjectGenerationRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
attachGenerationDto: AttachGenerationDto;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateProjectRequest {
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
instructions?: string;
|
|
22
|
+
fileNames?: string;
|
|
23
|
+
files?: Array<Blob>;
|
|
24
|
+
}
|
|
25
|
+
export interface CreateProjectConversationRequest {
|
|
26
|
+
id: string;
|
|
27
|
+
createConversationDto: CreateConversationDto;
|
|
28
|
+
}
|
|
29
|
+
export interface DeleteProjectRequest {
|
|
30
|
+
id: string;
|
|
31
|
+
ifMatch: string;
|
|
32
|
+
}
|
|
33
|
+
export interface DeleteProjectConversationRequest {
|
|
34
|
+
id: string;
|
|
35
|
+
conversationName: string;
|
|
36
|
+
}
|
|
37
|
+
export interface DownloadProjectRequest {
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
export interface DownloadProjectArtifactRequest {
|
|
41
|
+
id: string;
|
|
42
|
+
fileName: string;
|
|
43
|
+
}
|
|
44
|
+
export interface DownloadProjectFileRequest {
|
|
45
|
+
id: string;
|
|
46
|
+
fileName: string;
|
|
47
|
+
}
|
|
48
|
+
export interface GenerateProjectConversationTitleRequest {
|
|
49
|
+
id: string;
|
|
50
|
+
conversationName: string;
|
|
51
|
+
}
|
|
52
|
+
export interface GetProjectRequest {
|
|
53
|
+
id: string;
|
|
54
|
+
}
|
|
55
|
+
export interface GetProjectConversationRequest {
|
|
56
|
+
id: string;
|
|
57
|
+
conversationName: string;
|
|
58
|
+
}
|
|
59
|
+
export interface GetProjectConversationTitlesRequest {
|
|
60
|
+
id: string;
|
|
61
|
+
projectConversationTitlesBodyDto: ProjectConversationTitlesBodyDto;
|
|
62
|
+
}
|
|
63
|
+
export interface ListProjectArtifactsRequest {
|
|
64
|
+
id: string;
|
|
65
|
+
}
|
|
66
|
+
export interface ListProjectConversationsRequest {
|
|
67
|
+
id: string;
|
|
68
|
+
}
|
|
69
|
+
export interface MarkProjectConversationViewedRequest {
|
|
70
|
+
id: string;
|
|
71
|
+
conversationName: string;
|
|
72
|
+
}
|
|
73
|
+
export interface RenameProjectConversationRequest {
|
|
74
|
+
id: string;
|
|
75
|
+
conversationName: string;
|
|
76
|
+
renameConversationBodyDto: RenameConversationBodyDto;
|
|
77
|
+
}
|
|
78
|
+
export interface SaveProjectConversationRequest {
|
|
79
|
+
id: string;
|
|
80
|
+
conversationName: string;
|
|
81
|
+
saveConversationBodyDto: SaveConversationBodyDto;
|
|
82
|
+
}
|
|
83
|
+
export interface StopProjectCompletionRequest {
|
|
84
|
+
id: string;
|
|
85
|
+
stopCompletionDto: StopCompletionDto;
|
|
86
|
+
}
|
|
87
|
+
export interface StreamProjectCompletionRequest {
|
|
88
|
+
id: string;
|
|
89
|
+
sendCompletionDto: SendCompletionDto;
|
|
90
|
+
}
|
|
91
|
+
export interface UpdateProjectRequest {
|
|
92
|
+
id: string;
|
|
93
|
+
ifMatch: string;
|
|
94
|
+
name: string;
|
|
95
|
+
description?: string;
|
|
96
|
+
instructions?: string;
|
|
97
|
+
fileNames?: string;
|
|
98
|
+
removedFileNames?: string;
|
|
99
|
+
files?: Array<Blob>;
|
|
100
|
+
}
|
|
101
|
+
export interface WatchProjectsRequest {
|
|
102
|
+
watchProjectsBodyDto: WatchProjectsBodyDto;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
export declare class ProjectsApi extends runtime.BaseAPI {
|
|
108
|
+
/**
|
|
109
|
+
* Replays the active generation of a project conversation as SSE, exactly as `POST /api/v1/conversations/completions/attach` does.
|
|
110
|
+
* Attach to a generation of a project conversation
|
|
111
|
+
*/
|
|
112
|
+
attachToProjectGenerationRaw(requestParameters: AttachToProjectGenerationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
113
|
+
/**
|
|
114
|
+
* Replays the active generation of a project conversation as SSE, exactly as `POST /api/v1/conversations/completions/attach` does.
|
|
115
|
+
* Attach to a generation of a project conversation
|
|
116
|
+
*/
|
|
117
|
+
attachToProjectGeneration(requestParameters: AttachToProjectGenerationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates a project at the root of the session user\'s bucket in one atomic, create-only DIAL Core call. The BFF writes PROJECT.md (YAML frontmatter with name and description, instructions as the body) and each context file under context/. Name, file names, types, per-file size, total size and file count are validated first; every domain rejection carries a ProjectCreateErrorCode.
|
|
120
|
+
* Create a project
|
|
121
|
+
*/
|
|
122
|
+
createProjectRaw(requestParameters: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateProjectResponseDto>>;
|
|
123
|
+
/**
|
|
124
|
+
* Creates a project at the root of the session user\'s bucket in one atomic, create-only DIAL Core call. The BFF writes PROJECT.md (YAML frontmatter with name and description, instructions as the body) and each context file under context/. Name, file names, types, per-file size, total size and file count are validated first; every domain rejection carries a ProjectCreateErrorCode.
|
|
125
|
+
* Create a project
|
|
126
|
+
*/
|
|
127
|
+
createProject(requestParameters: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateProjectResponseDto>;
|
|
128
|
+
/**
|
|
129
|
+
* Creates a conversation inside the project from its first message, as `POST /api/v1/conversations` does at the top level.
|
|
130
|
+
* Create a project conversation
|
|
131
|
+
*/
|
|
132
|
+
createProjectConversationRaw(requestParameters: CreateProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponseDto>>;
|
|
133
|
+
/**
|
|
134
|
+
* Creates a conversation inside the project from its first message, as `POST /api/v1/conversations` does at the top level.
|
|
135
|
+
* Create a project conversation
|
|
136
|
+
*/
|
|
137
|
+
createProjectConversation(requestParameters: CreateProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponseDto>;
|
|
138
|
+
/**
|
|
139
|
+
* Deletes the project, its conversations included, only if its content is still the `contentVersion` named by `If-Match`, then removes it from the caller\'s pins. Only a project in the caller\'s own bucket can be deleted.
|
|
140
|
+
* Delete a project
|
|
141
|
+
*/
|
|
142
|
+
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
143
|
+
/**
|
|
144
|
+
* Deletes the project, its conversations included, only if its content is still the `contentVersion` named by `If-Match`, then removes it from the caller\'s pins. Only a project in the caller\'s own bucket can be deleted.
|
|
145
|
+
* Delete a project
|
|
146
|
+
*/
|
|
147
|
+
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Delete a project conversation
|
|
150
|
+
*/
|
|
151
|
+
deleteProjectConversationRaw(requestParameters: DeleteProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
152
|
+
/**
|
|
153
|
+
* Delete a project conversation
|
|
154
|
+
*/
|
|
155
|
+
deleteProjectConversation(requestParameters: DeleteProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
156
|
+
/**
|
|
157
|
+
* Streams DIAL Core\'s archive of the whole project (`PROJECT.md` and `context/`) as an attachment.
|
|
158
|
+
* Download a project as a ZIP archive
|
|
159
|
+
*/
|
|
160
|
+
downloadProjectRaw(requestParameters: DownloadProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
161
|
+
/**
|
|
162
|
+
* Streams DIAL Core\'s archive of the whole project (`PROJECT.md` and `context/`) as an attachment.
|
|
163
|
+
* Download a project as a ZIP archive
|
|
164
|
+
*/
|
|
165
|
+
downloadProject(requestParameters: DownloadProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
166
|
+
/**
|
|
167
|
+
* Streams one file directly under the project `artifacts/` folder as an attachment with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
|
|
168
|
+
* Download one output of a project
|
|
169
|
+
*/
|
|
170
|
+
downloadProjectArtifactRaw(requestParameters: DownloadProjectArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
171
|
+
/**
|
|
172
|
+
* Streams one file directly under the project `artifacts/` folder as an attachment with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
|
|
173
|
+
* Download one output of a project
|
|
174
|
+
*/
|
|
175
|
+
downloadProjectArtifact(requestParameters: DownloadProjectArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
176
|
+
/**
|
|
177
|
+
* Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`.
|
|
178
|
+
* Download one context file of a project
|
|
179
|
+
*/
|
|
180
|
+
downloadProjectFileRaw(requestParameters: DownloadProjectFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
181
|
+
/**
|
|
182
|
+
* Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`.
|
|
183
|
+
* Download one context file of a project
|
|
184
|
+
*/
|
|
185
|
+
downloadProjectFile(requestParameters: DownloadProjectFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
186
|
+
/**
|
|
187
|
+
* Generates a title with the operator-configured utility model from the most recent messages. The suggestion is returned but NOT persisted; the caller confirms the rename separately.
|
|
188
|
+
* Generate an LLM-based title suggestion for a project conversation
|
|
189
|
+
*/
|
|
190
|
+
generateProjectConversationTitleRaw(requestParameters: GenerateProjectConversationTitleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenerateTitleResponseDto>>;
|
|
191
|
+
/**
|
|
192
|
+
* Generates a title with the operator-configured utility model from the most recent messages. The suggestion is returned but NOT persisted; the caller confirms the rename separately.
|
|
193
|
+
* Generate an LLM-based title suggestion for a project conversation
|
|
194
|
+
*/
|
|
195
|
+
generateProjectConversationTitle(requestParameters: GenerateProjectConversationTitleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenerateTitleResponseDto>;
|
|
196
|
+
/**
|
|
197
|
+
* Returns one project\'s name, description, instructions, context files with their sizes, and the ETag of the version they were read from. The BFF reads the project archive from DIAL Core, because project metadata carries no file sizes. `canEdit` is true for the owner and for a recipient the project is shared with with WRITE; `canManage` (rename, delete, share, publish) is true only for a project in the caller\'s own bucket.
|
|
198
|
+
* Get a project
|
|
199
|
+
*/
|
|
200
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDetailsDto>>;
|
|
201
|
+
/**
|
|
202
|
+
* Returns one project\'s name, description, instructions, context files with their sizes, and the ETag of the version they were read from. The BFF reads the project archive from DIAL Core, because project metadata carries no file sizes. `canEdit` is true for the owner and for a recipient the project is shared with with WRITE; `canManage` (rename, delete, share, publish) is true only for a project in the caller\'s own bucket.
|
|
203
|
+
* Get a project
|
|
204
|
+
*/
|
|
205
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDetailsDto>;
|
|
206
|
+
/**
|
|
207
|
+
* Get a project conversation
|
|
208
|
+
*/
|
|
209
|
+
getProjectConversationRaw(requestParameters: GetProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponseDto>>;
|
|
210
|
+
/**
|
|
211
|
+
* Get a project conversation
|
|
212
|
+
*/
|
|
213
|
+
getProjectConversation(requestParameters: GetProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponseDto>;
|
|
214
|
+
/**
|
|
215
|
+
* Reads the bodies of the named conversations, as listed with `isTitlePending`, and returns them with their titles and read state resolved. Up to 100 names per request. Any reader of the project may call it.
|
|
216
|
+
* Resolve project conversations\' titles
|
|
217
|
+
*/
|
|
218
|
+
getProjectConversationTitlesRaw(requestParameters: GetProjectConversationTitlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectConversationTitlesResponseDto>>;
|
|
219
|
+
/**
|
|
220
|
+
* Reads the bodies of the named conversations, as listed with `isTitlePending`, and returns them with their titles and read state resolved. Up to 100 names per request. Any reader of the project may call it.
|
|
221
|
+
* Resolve project conversations\' titles
|
|
222
|
+
*/
|
|
223
|
+
getProjectConversationTitles(requestParameters: GetProjectConversationTitlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectConversationTitlesResponseDto>;
|
|
224
|
+
/**
|
|
225
|
+
* Lists the files directly under the project `artifacts/` folder, where the agents of the project\'s chats save their outputs, newest first. Nested paths are not listed. Any reader of the project may call it.
|
|
226
|
+
* List a project\'s outputs
|
|
227
|
+
*/
|
|
228
|
+
listProjectArtifactsRaw(requestParameters: ListProjectArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectArtifactListResponseDto>>;
|
|
229
|
+
/**
|
|
230
|
+
* Lists the files directly under the project `artifacts/` folder, where the agents of the project\'s chats save their outputs, newest first. Nested paths are not listed. Any reader of the project may call it.
|
|
231
|
+
* List a project\'s outputs
|
|
232
|
+
*/
|
|
233
|
+
listProjectArtifacts(requestParameters: ListProjectArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectArtifactListResponseDto>;
|
|
234
|
+
/**
|
|
235
|
+
* Lists every conversation stored in the project\'s `conversations/` folder, newest first, with their authors. DIAL Core cannot page the folder in this order, so the list is not paged; the client pages it locally. Bodies are read for the 20 newest conversations only: the others have a cached title or carry `isTitlePending`, which `POST /api/v1/projects/:id/conversations/titles` resolves.
|
|
236
|
+
* List a project\'s conversations
|
|
237
|
+
*/
|
|
238
|
+
listProjectConversationsRaw(requestParameters: ListProjectConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectConversationListResponseDto>>;
|
|
239
|
+
/**
|
|
240
|
+
* Lists every conversation stored in the project\'s `conversations/` folder, newest first, with their authors. DIAL Core cannot page the folder in this order, so the list is not paged; the client pages it locally. Bodies are read for the 20 newest conversations only: the others have a cached title or carry `isTitlePending`, which `POST /api/v1/projects/:id/conversations/titles` resolves.
|
|
241
|
+
* List a project\'s conversations
|
|
242
|
+
*/
|
|
243
|
+
listProjectConversations(requestParameters: ListProjectConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectConversationListResponseDto>;
|
|
244
|
+
/**
|
|
245
|
+
* Returns every DIAL project visible to the session user: the user\'s own bucket, the public (organization) bucket, and projects shared with the user, merged and de-duplicated by id. The BFF follows DIAL Core paging itself, so the list is complete up to a per-source page cap. A failing source is omitted; the request fails only when both bucket listings fail.
|
|
246
|
+
* List projects
|
|
247
|
+
*/
|
|
248
|
+
listProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProjectsResponseDto>>;
|
|
249
|
+
/**
|
|
250
|
+
* Returns every DIAL project visible to the session user: the user\'s own bucket, the public (organization) bucket, and projects shared with the user, merged and de-duplicated by id. The BFF follows DIAL Core paging itself, so the list is complete up to a per-source page cap. A failing source is omitted; the request fails only when both bucket listings fail.
|
|
251
|
+
* List projects
|
|
252
|
+
*/
|
|
253
|
+
listProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProjectsResponseDto>;
|
|
254
|
+
/**
|
|
255
|
+
* Records the conversation\'s current version as seen by the caller, in the caller\'s own read state, so it is not reported unread until it changes. Any reader of the project may call it.
|
|
256
|
+
* Mark a project conversation as viewed
|
|
257
|
+
*/
|
|
258
|
+
markProjectConversationViewedRaw(requestParameters: MarkProjectConversationViewedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
259
|
+
/**
|
|
260
|
+
* Records the conversation\'s current version as seen by the caller, in the caller\'s own read state, so it is not reported unread until it changes. Any reader of the project may call it.
|
|
261
|
+
* Mark a project conversation as viewed
|
|
262
|
+
*/
|
|
263
|
+
markProjectConversationViewed(requestParameters: MarkProjectConversationViewedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
264
|
+
/**
|
|
265
|
+
* Rewrites the conversation\'s display name; its file name does not change.
|
|
266
|
+
* Rename a project conversation
|
|
267
|
+
*/
|
|
268
|
+
renameProjectConversationRaw(requestParameters: RenameProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenameConversationResponseDto>>;
|
|
269
|
+
/**
|
|
270
|
+
* Rewrites the conversation\'s display name; its file name does not change.
|
|
271
|
+
* Rename a project conversation
|
|
272
|
+
*/
|
|
273
|
+
renameProjectConversation(requestParameters: RenameProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenameConversationResponseDto>;
|
|
274
|
+
/**
|
|
275
|
+
* Overwrites the conversation body, never over a pending background answer, as `PUT /api/v1/conversations` does.
|
|
276
|
+
* Save a project conversation
|
|
277
|
+
*/
|
|
278
|
+
saveProjectConversationRaw(requestParameters: SaveProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponseDto>>;
|
|
279
|
+
/**
|
|
280
|
+
* Overwrites the conversation body, never over a pending background answer, as `PUT /api/v1/conversations` does.
|
|
281
|
+
* Save a project conversation
|
|
282
|
+
*/
|
|
283
|
+
saveProjectConversation(requestParameters: SaveProjectConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponseDto>;
|
|
284
|
+
/**
|
|
285
|
+
* Stop a generation of a project conversation
|
|
286
|
+
*/
|
|
287
|
+
stopProjectCompletionRaw(requestParameters: StopProjectCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
288
|
+
/**
|
|
289
|
+
* Stop a generation of a project conversation
|
|
290
|
+
*/
|
|
291
|
+
stopProjectCompletion(requestParameters: StopProjectCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
292
|
+
/**
|
|
293
|
+
* Streams a completion as SSE exactly as `POST /api/v1/conversations/completions` does, with the `x-project-id` header on the model call and nothing else added to the request.
|
|
294
|
+
* Stream a completion of a project conversation
|
|
295
|
+
*/
|
|
296
|
+
streamProjectCompletionRaw(requestParameters: StreamProjectCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
297
|
+
/**
|
|
298
|
+
* Streams a completion as SSE exactly as `POST /api/v1/conversations/completions` does, with the `x-project-id` header on the model call and nothing else added to the request.
|
|
299
|
+
* Stream a completion of a project conversation
|
|
300
|
+
*/
|
|
301
|
+
streamProjectCompletion(requestParameters: StreamProjectCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
302
|
+
/**
|
|
303
|
+
* Saves the name, description, instructions and context of a project in one conditional DIAL Core write: the BFF rebuilds PROJECT.md, keeps every stored context file not listed in `removedFileNames`, adds the `files` parts, carries the stored conversations over, and writes the whole project conditioned on the fresh snapshot\'s ETag, retrying a concurrent conversation write while `If-Match` still names the `contentVersion`. A different name then moves the project in its folder and keeps the caller\'s pin. The owner and a recipient the project is shared with with WRITE may save; only the owner may rename. Every domain rejection carries a ProjectCreateErrorCode.
|
|
304
|
+
* Save a project edit
|
|
305
|
+
*/
|
|
306
|
+
updateProjectRaw(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateProjectResponseDto>>;
|
|
307
|
+
/**
|
|
308
|
+
* Saves the name, description, instructions and context of a project in one conditional DIAL Core write: the BFF rebuilds PROJECT.md, keeps every stored context file not listed in `removedFileNames`, adds the `files` parts, carries the stored conversations over, and writes the whole project conditioned on the fresh snapshot\'s ETag, retrying a concurrent conversation write while `If-Match` still names the `contentVersion`. A different name then moves the project in its folder and keeps the caller\'s pin. The owner and a recipient the project is shared with with WRITE may save; only the owner may rename. Every domain rejection carries a ProjectCreateErrorCode.
|
|
309
|
+
* Save a project edit
|
|
310
|
+
*/
|
|
311
|
+
updateProject(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateProjectResponseDto>;
|
|
312
|
+
/**
|
|
313
|
+
* Opens one DIAL Core resource subscription for the given project ids and streams project-level changes as SSE: each `data:` line is a `ProjectWatchEventDto`. Events of files inside a project are dropped, and a `: keepalive` comment is sent every 15 seconds. The stream lasts until the client disconnects or DIAL Core ends it.
|
|
314
|
+
* Follow changes to listed projects via SSE
|
|
315
|
+
*/
|
|
316
|
+
watchProjectsRaw(requestParameters: WatchProjectsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
317
|
+
/**
|
|
318
|
+
* Opens one DIAL Core resource subscription for the given project ids and streams project-level changes as SSE: each `data:` line is a `ProjectWatchEventDto`. Events of files inside a project are dropped, and a `: keepalive` comment is sent every 15 seconds. The stream lasts until the client disconnects or DIAL Core ends it.
|
|
319
|
+
* Follow changes to listed projects via SSE
|
|
320
|
+
*/
|
|
321
|
+
watchProjects(requestParameters: WatchProjectsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
322
|
+
}
|
|
323
|
+
//# sourceMappingURL=ProjectsApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ProjectsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,8BAA8B,EAC9B,kCAAkC,EAClC,gCAAgC,EAChC,oCAAoC,EAEpC,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,gCAAgC;IAC/C,EAAE,EAAE,MAAM,CAAC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