@epam/ai-dial-chat-api-client 1.3.0-dev.37 → 1.3.0-dev.372
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 +58 -3
- package/generated/src/apis/ApplicationsApi.d.ts.map +1 -1
- package/generated/src/apis/ApplicationsApi.js +156 -2
- 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/OfflineCredentialsApi.d.ts +10 -0
- package/generated/src/apis/OfflineCredentialsApi.d.ts.map +1 -1
- package/generated/src/apis/OfflineCredentialsApi.js +31 -0
- 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 +4644 -2643
- package/generated/src/models/index.d.ts.map +1 -1
- package/generated/src/models/index.js +233 -3
- package/package.json +2 -2
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ConversationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ConversationsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ConversationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EAEnB,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EAEvB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAE1B,gCAAgC,EAChC,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,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oBAAoB,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB"}
|
|
@@ -20,7 +20,7 @@ const runtime = require("../runtime");
|
|
|
20
20
|
*/
|
|
21
21
|
class ConversationsApi extends runtime.BaseAPI {
|
|
22
22
|
/**
|
|
23
|
-
* 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.
|
|
23
|
+
* 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.
|
|
24
24
|
* Attach to an active generation and replay it live
|
|
25
25
|
*/
|
|
26
26
|
async attachToGenerationRaw(requestParameters, initOverrides) {
|
|
@@ -48,7 +48,7 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
48
48
|
return new runtime.VoidApiResponse(response);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* 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.
|
|
51
|
+
* 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.
|
|
52
52
|
* Attach to an active generation and replay it live
|
|
53
53
|
*/
|
|
54
54
|
async attachToGeneration(requestParameters, initOverrides) {
|
|
@@ -379,7 +379,43 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
379
379
|
return await response.value();
|
|
380
380
|
}
|
|
381
381
|
/**
|
|
382
|
-
* Returns
|
|
382
|
+
* 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.
|
|
383
|
+
* Resolve conversation display titles
|
|
384
|
+
*/
|
|
385
|
+
async getConversationTitlesRaw(requestParameters, initOverrides) {
|
|
386
|
+
if (requestParameters['conversationTitlesBodyDto'] == null) {
|
|
387
|
+
throw new runtime.RequiredError('conversationTitlesBodyDto', 'Required parameter "conversationTitlesBodyDto" was null or undefined when calling getConversationTitles().');
|
|
388
|
+
}
|
|
389
|
+
const queryParameters = {};
|
|
390
|
+
const headerParameters = {};
|
|
391
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
392
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
393
|
+
const token = this.configuration.accessToken;
|
|
394
|
+
const tokenString = await token('bearer', []);
|
|
395
|
+
if (tokenString) {
|
|
396
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
let urlPath = `/api/v1/conversations/titles`;
|
|
400
|
+
const response = await this.request({
|
|
401
|
+
path: urlPath,
|
|
402
|
+
method: 'POST',
|
|
403
|
+
headers: headerParameters,
|
|
404
|
+
query: queryParameters,
|
|
405
|
+
body: requestParameters['conversationTitlesBodyDto'],
|
|
406
|
+
}, initOverrides);
|
|
407
|
+
return new runtime.JSONApiResponse(response);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* 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.
|
|
411
|
+
* Resolve conversation display titles
|
|
412
|
+
*/
|
|
413
|
+
async getConversationTitles(requestParameters, initOverrides) {
|
|
414
|
+
const response = await this.getConversationTitlesRaw(requestParameters, initOverrides);
|
|
415
|
+
return await response.value();
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* 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.
|
|
383
419
|
* List conversations
|
|
384
420
|
*/
|
|
385
421
|
async listConversationsRaw(requestParameters, initOverrides) {
|
|
@@ -408,7 +444,7 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
408
444
|
return new runtime.JSONApiResponse(response);
|
|
409
445
|
}
|
|
410
446
|
/**
|
|
411
|
-
* 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.
|
|
447
|
+
* 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.
|
|
412
448
|
* List conversations
|
|
413
449
|
*/
|
|
414
450
|
async listConversations(requestParameters = {}, initOverrides) {
|
|
@@ -416,7 +452,7 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
416
452
|
return await response.value();
|
|
417
453
|
}
|
|
418
454
|
/**
|
|
419
|
-
* Idempotently records that the authenticated user has
|
|
455
|
+
* 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.
|
|
420
456
|
* Mark a conversation as viewed
|
|
421
457
|
*/
|
|
422
458
|
async markConversationViewedRaw(requestParameters, initOverrides) {
|
|
@@ -445,7 +481,7 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
445
481
|
return new runtime.VoidApiResponse(response);
|
|
446
482
|
}
|
|
447
483
|
/**
|
|
448
|
-
* Idempotently records that the authenticated user has
|
|
484
|
+
* 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.
|
|
449
485
|
* Mark a conversation as viewed
|
|
450
486
|
*/
|
|
451
487
|
async markConversationViewed(requestParameters, initOverrides) {
|
|
@@ -617,6 +653,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
617
653
|
const queryParameters = {};
|
|
618
654
|
const headerParameters = {};
|
|
619
655
|
headerParameters['Content-Type'] = 'application/json';
|
|
656
|
+
if (requestParameters['xLang'] != null) {
|
|
657
|
+
headerParameters['X-Lang'] = String(requestParameters['xLang']);
|
|
658
|
+
}
|
|
620
659
|
if (requestParameters['xTimezone'] != null) {
|
|
621
660
|
headerParameters['X-Timezone'] = String(requestParameters['xTimezone']);
|
|
622
661
|
}
|
|
@@ -644,6 +683,47 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
644
683
|
async streamCompletion(requestParameters, initOverrides) {
|
|
645
684
|
await this.streamCompletionRaw(requestParameters, initOverrides);
|
|
646
685
|
}
|
|
686
|
+
/**
|
|
687
|
+
* 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.
|
|
688
|
+
* Stream conversation display titles via SSE
|
|
689
|
+
*/
|
|
690
|
+
async streamConversationTitlesRaw(requestParameters, initOverrides) {
|
|
691
|
+
if (requestParameters['streamConversationTitlesBodyDto'] == null) {
|
|
692
|
+
throw new runtime.RequiredError('streamConversationTitlesBodyDto', 'Required parameter "streamConversationTitlesBodyDto" was null or undefined when calling streamConversationTitles().');
|
|
693
|
+
}
|
|
694
|
+
const queryParameters = {};
|
|
695
|
+
const headerParameters = {};
|
|
696
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
697
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
698
|
+
const token = this.configuration.accessToken;
|
|
699
|
+
const tokenString = await token('bearer', []);
|
|
700
|
+
if (tokenString) {
|
|
701
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
let urlPath = `/api/v1/conversations/titles/stream`;
|
|
705
|
+
const response = await this.request({
|
|
706
|
+
path: urlPath,
|
|
707
|
+
method: 'POST',
|
|
708
|
+
headers: headerParameters,
|
|
709
|
+
query: queryParameters,
|
|
710
|
+
body: requestParameters['streamConversationTitlesBodyDto'],
|
|
711
|
+
}, initOverrides);
|
|
712
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
713
|
+
return new runtime.JSONApiResponse(response);
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
return new runtime.TextApiResponse(response);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* 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.
|
|
721
|
+
* Stream conversation display titles via SSE
|
|
722
|
+
*/
|
|
723
|
+
async streamConversationTitles(requestParameters, initOverrides) {
|
|
724
|
+
const response = await this.streamConversationTitlesRaw(requestParameters, initOverrides);
|
|
725
|
+
return await response.value();
|
|
726
|
+
}
|
|
647
727
|
/**
|
|
648
728
|
* 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.
|
|
649
729
|
* Request removal of a published conversation from a folder
|
|
@@ -11,22 +11,67 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { CustomApiResponseDto } from '../models/index';
|
|
14
|
+
export interface DeleteCustomApiOperationRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
14
17
|
export interface GetCustomApiOperationRequest {
|
|
15
18
|
id: string;
|
|
16
19
|
}
|
|
20
|
+
export interface PostCustomApiOperationRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
requestBody?: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface PutCustomApiOperationRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
requestBody?: {
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
17
32
|
/**
|
|
18
33
|
*
|
|
19
34
|
*/
|
|
20
35
|
export declare class CustomApiApi extends runtime.BaseAPI {
|
|
21
36
|
/**
|
|
22
|
-
* Dispatches an authenticated
|
|
23
|
-
* Call a deployment-configured custom Core API operation
|
|
37
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
38
|
+
* Call a deployment-configured custom Core API DELETE operation
|
|
39
|
+
*/
|
|
40
|
+
deleteCustomApiOperationRaw(requestParameters: DeleteCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomApiResponseDto>>;
|
|
41
|
+
/**
|
|
42
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
43
|
+
* Call a deployment-configured custom Core API DELETE operation
|
|
44
|
+
*/
|
|
45
|
+
deleteCustomApiOperation(requestParameters: DeleteCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomApiResponseDto>;
|
|
46
|
+
/**
|
|
47
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
48
|
+
* Call a deployment-configured custom Core API GET operation
|
|
24
49
|
*/
|
|
25
50
|
getCustomApiOperationRaw(requestParameters: GetCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomApiResponseDto>>;
|
|
26
51
|
/**
|
|
27
|
-
* Dispatches an authenticated
|
|
28
|
-
* Call a deployment-configured custom Core API operation
|
|
52
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
53
|
+
* Call a deployment-configured custom Core API GET operation
|
|
29
54
|
*/
|
|
30
55
|
getCustomApiOperation(requestParameters: GetCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomApiResponseDto>;
|
|
56
|
+
/**
|
|
57
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
58
|
+
* Call a deployment-configured custom Core API POST operation
|
|
59
|
+
*/
|
|
60
|
+
postCustomApiOperationRaw(requestParameters: PostCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomApiResponseDto>>;
|
|
61
|
+
/**
|
|
62
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
63
|
+
* Call a deployment-configured custom Core API POST operation
|
|
64
|
+
*/
|
|
65
|
+
postCustomApiOperation(requestParameters: PostCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomApiResponseDto>;
|
|
66
|
+
/**
|
|
67
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
68
|
+
* Call a deployment-configured custom Core API PUT operation
|
|
69
|
+
*/
|
|
70
|
+
putCustomApiOperationRaw(requestParameters: PutCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomApiResponseDto>>;
|
|
71
|
+
/**
|
|
72
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
73
|
+
* Call a deployment-configured custom Core API PUT operation
|
|
74
|
+
*/
|
|
75
|
+
putCustomApiOperation(requestParameters: PutCustomApiOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomApiResponseDto>;
|
|
31
76
|
}
|
|
32
77
|
//# sourceMappingURL=CustomApiApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomApiApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/CustomApiApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,K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4B,EAC/C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,oBAAoB,CAAC;CAOjC"}
|
|
@@ -20,8 +20,43 @@ const runtime = require("../runtime");
|
|
|
20
20
|
*/
|
|
21
21
|
class CustomApiApi extends runtime.BaseAPI {
|
|
22
22
|
/**
|
|
23
|
-
* Dispatches an authenticated
|
|
24
|
-
* Call a deployment-configured custom Core API operation
|
|
23
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
24
|
+
* Call a deployment-configured custom Core API DELETE operation
|
|
25
|
+
*/
|
|
26
|
+
async deleteCustomApiOperationRaw(requestParameters, initOverrides) {
|
|
27
|
+
if (requestParameters['id'] == null) {
|
|
28
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCustomApiOperation().');
|
|
29
|
+
}
|
|
30
|
+
const queryParameters = {};
|
|
31
|
+
const headerParameters = {};
|
|
32
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
33
|
+
const token = this.configuration.accessToken;
|
|
34
|
+
const tokenString = await token('bearer', []);
|
|
35
|
+
if (tokenString) {
|
|
36
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
let urlPath = `/api/v1/custom-api/{id}`;
|
|
40
|
+
urlPath = urlPath.replace(`{${'id'}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
41
|
+
const response = await this.request({
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'DELETE',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
}, initOverrides);
|
|
47
|
+
return new runtime.JSONApiResponse(response);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
51
|
+
* Call a deployment-configured custom Core API DELETE operation
|
|
52
|
+
*/
|
|
53
|
+
async deleteCustomApiOperation(requestParameters, initOverrides) {
|
|
54
|
+
const response = await this.deleteCustomApiOperationRaw(requestParameters, initOverrides);
|
|
55
|
+
return await response.value();
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
59
|
+
* Call a deployment-configured custom Core API GET operation
|
|
25
60
|
*/
|
|
26
61
|
async getCustomApiOperationRaw(requestParameters, initOverrides) {
|
|
27
62
|
if (requestParameters['id'] == null) {
|
|
@@ -47,12 +82,86 @@ class CustomApiApi extends runtime.BaseAPI {
|
|
|
47
82
|
return new runtime.JSONApiResponse(response);
|
|
48
83
|
}
|
|
49
84
|
/**
|
|
50
|
-
* Dispatches an authenticated
|
|
51
|
-
* Call a deployment-configured custom Core API operation
|
|
85
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
86
|
+
* Call a deployment-configured custom Core API GET operation
|
|
52
87
|
*/
|
|
53
88
|
async getCustomApiOperation(requestParameters, initOverrides) {
|
|
54
89
|
const response = await this.getCustomApiOperationRaw(requestParameters, initOverrides);
|
|
55
90
|
return await response.value();
|
|
56
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
94
|
+
* Call a deployment-configured custom Core API POST operation
|
|
95
|
+
*/
|
|
96
|
+
async postCustomApiOperationRaw(requestParameters, initOverrides) {
|
|
97
|
+
if (requestParameters['id'] == null) {
|
|
98
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postCustomApiOperation().');
|
|
99
|
+
}
|
|
100
|
+
const queryParameters = {};
|
|
101
|
+
const headerParameters = {};
|
|
102
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
103
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
104
|
+
const token = this.configuration.accessToken;
|
|
105
|
+
const tokenString = await token('bearer', []);
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
let urlPath = `/api/v1/custom-api/{id}`;
|
|
111
|
+
urlPath = urlPath.replace(`{${'id'}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: urlPath,
|
|
114
|
+
method: 'POST',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
body: requestParameters['requestBody'],
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
return new runtime.JSONApiResponse(response);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
123
|
+
* Call a deployment-configured custom Core API POST operation
|
|
124
|
+
*/
|
|
125
|
+
async postCustomApiOperation(requestParameters, initOverrides) {
|
|
126
|
+
const response = await this.postCustomApiOperationRaw(requestParameters, initOverrides);
|
|
127
|
+
return await response.value();
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
131
|
+
* Call a deployment-configured custom Core API PUT operation
|
|
132
|
+
*/
|
|
133
|
+
async putCustomApiOperationRaw(requestParameters, initOverrides) {
|
|
134
|
+
if (requestParameters['id'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putCustomApiOperation().');
|
|
136
|
+
}
|
|
137
|
+
const queryParameters = {};
|
|
138
|
+
const headerParameters = {};
|
|
139
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
+
const token = this.configuration.accessToken;
|
|
142
|
+
const tokenString = await token('bearer', []);
|
|
143
|
+
if (tokenString) {
|
|
144
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
let urlPath = `/api/v1/custom-api/{id}`;
|
|
148
|
+
urlPath = urlPath.replace(`{${'id'}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
149
|
+
const response = await this.request({
|
|
150
|
+
path: urlPath,
|
|
151
|
+
method: 'PUT',
|
|
152
|
+
headers: headerParameters,
|
|
153
|
+
query: queryParameters,
|
|
154
|
+
body: requestParameters['requestBody'],
|
|
155
|
+
}, initOverrides);
|
|
156
|
+
return new runtime.JSONApiResponse(response);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Dispatches an authenticated request to the exact Core path configured for this operation ID under CUSTOM_CORE_API_CONFIG, using the caller\'s own session access token and the operation\'s configured method; a different method returns 405. Core remains the authority for route role authorization and business rate limits; this endpoint adds no BFF business schema or field filtering, so the response is an opaque JSON value the calling application must validate for its own domain. Query parameters are accepted only by the names the operation allowlists (each at most once); they are not declared here because each deployment configures its own. A caller passing them builds the request URL itself on the generated client\'s Configuration.fetchApi — a documented generator gap.
|
|
160
|
+
* Call a deployment-configured custom Core API PUT operation
|
|
161
|
+
*/
|
|
162
|
+
async putCustomApiOperation(requestParameters, initOverrides) {
|
|
163
|
+
const response = await this.putCustomApiOperationRaw(requestParameters, initOverrides);
|
|
164
|
+
return await response.value();
|
|
165
|
+
}
|
|
57
166
|
}
|
|
58
167
|
exports.CustomApiApi = CustomApiApi;
|
|
@@ -20,6 +20,9 @@ export interface GetDeploymentDetailsRequest {
|
|
|
20
20
|
export interface GetDeploymentLimitsRequest {
|
|
21
21
|
deployment: string;
|
|
22
22
|
}
|
|
23
|
+
export interface GetDeploymentUsageRequest {
|
|
24
|
+
deployment: string;
|
|
25
|
+
}
|
|
23
26
|
export interface ListDeploymentsRequest {
|
|
24
27
|
refresh?: boolean;
|
|
25
28
|
interfaceType?: Array<ListDeploymentsInterfaceTypeEnum>;
|
|
@@ -58,6 +61,16 @@ export declare class DeploymentsApi extends runtime.BaseAPI {
|
|
|
58
61
|
* Get deployment usage limits
|
|
59
62
|
*/
|
|
60
63
|
getDeploymentLimits(requestParameters: GetDeploymentLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentLimitsResponseDto>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns a single deployment\'s own usage. Token and request stats are the same as on /limits, but cost stats are this deployment\'s own direct plus aggregated spend against DIAL Core\'s unlimited sentinel, not the caller\'s account-wide budget. Proxies GET /v1/deployments/{deployment_name}/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
|
|
66
|
+
* Get deployment attributed usage
|
|
67
|
+
*/
|
|
68
|
+
getDeploymentUsageRaw(requestParameters: GetDeploymentUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeploymentLimitsResponseDto>>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns a single deployment\'s own usage. Token and request stats are the same as on /limits, but cost stats are this deployment\'s own direct plus aggregated spend against DIAL Core\'s unlimited sentinel, not the caller\'s account-wide budget. Proxies GET /v1/deployments/{deployment_name}/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
|
|
71
|
+
* Get deployment attributed usage
|
|
72
|
+
*/
|
|
73
|
+
getDeploymentUsage(requestParameters: GetDeploymentUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentLimitsResponseDto>;
|
|
61
74
|
/**
|
|
62
75
|
* List deployments by interface type
|
|
63
76
|
*/
|
|
@@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AAE,0BAA0B,EAC7C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,2BAA2B,CAAC;IAQvC;;;OAGG;IACG,qBAAqB,CACzB,iBAAiB,EAAE,yBAAyB,EAC5C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAwC5D;;;OAGG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,yBAAyB,EAC5C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,2BAA2B,CAAC;IAQvC;;OAEG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,sBAAsB,EACzC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAqCvD;;OAEG;IACG,eAAe,CACnB,iBAAiB,GAAE,sBAA2B,EAC9C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,sBAAsB,CAAC;CAOnC;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;CAMnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAC1C,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -124,6 +124,41 @@ class DeploymentsApi extends runtime.BaseAPI {
|
|
|
124
124
|
const response = await this.getDeploymentLimitsRaw(requestParameters, initOverrides);
|
|
125
125
|
return await response.value();
|
|
126
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Returns a single deployment\'s own usage. Token and request stats are the same as on /limits, but cost stats are this deployment\'s own direct plus aggregated spend against DIAL Core\'s unlimited sentinel, not the caller\'s account-wide budget. Proxies GET /v1/deployments/{deployment_name}/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
|
|
129
|
+
* Get deployment attributed usage
|
|
130
|
+
*/
|
|
131
|
+
async getDeploymentUsageRaw(requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters['deployment'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('deployment', 'Required parameter "deployment" was null or undefined when calling getDeploymentUsage().');
|
|
134
|
+
}
|
|
135
|
+
const queryParameters = {};
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
+
const token = this.configuration.accessToken;
|
|
139
|
+
const tokenString = await token('bearer', []);
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
let urlPath = `/api/v1/deployments/{deployment}/usage`;
|
|
145
|
+
urlPath = urlPath.replace(`{${'deployment'}}`, encodeURIComponent(String(requestParameters['deployment'])));
|
|
146
|
+
const response = await this.request({
|
|
147
|
+
path: urlPath,
|
|
148
|
+
method: 'GET',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters,
|
|
151
|
+
}, initOverrides);
|
|
152
|
+
return new runtime.JSONApiResponse(response);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Returns a single deployment\'s own usage. Token and request stats are the same as on /limits, but cost stats are this deployment\'s own direct plus aggregated spend against DIAL Core\'s unlimited sentinel, not the caller\'s account-wide budget. Proxies GET /v1/deployments/{deployment_name}/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
|
|
156
|
+
* Get deployment attributed usage
|
|
157
|
+
*/
|
|
158
|
+
async getDeploymentUsage(requestParameters, initOverrides) {
|
|
159
|
+
const response = await this.getDeploymentUsageRaw(requestParameters, initOverrides);
|
|
160
|
+
return await response.value();
|
|
161
|
+
}
|
|
127
162
|
/**
|
|
128
163
|
* List deployments by interface type
|
|
129
164
|
*/
|