@epam/ai-dial-chat-api-client 1.5.0-dev.80 → 1.5.0-dev.85
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/PublishApi.d.ts +14 -1
- package/generated/src/apis/PublishApi.d.ts.map +1 -1
- package/generated/src/apis/PublishApi.js +37 -0
- package/generated/src/apis/UserApi.d.ts +24 -1
- package/generated/src/apis/UserApi.d.ts.map +1 -1
- package/generated/src/apis/UserApi.js +67 -0
- package/generated/src/models/index.d.ts +295 -0
- package/generated/src/models/index.d.ts.map +1 -1
- package/generated/src/models/index.js +9 -1
- package/package.json +1 -1
- 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 { ApplicationValuesDependenciesRequestDto, CopyCatalogEntityToOrgUnitDto, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishTargetCheckDto, ResourceDependenciesResultDto, ResourceIdResponseDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto, VersionStatusEntryDto } from '../models/index';
|
|
13
|
+
import type { ApplicationValuesDependenciesRequestDto, CopyCatalogEntityToOrgUnitDto, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRulesResultDto, PublishTargetCheckDto, ResourceDependenciesResultDto, ResourceIdResponseDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto, VersionStatusEntryDto } from '../models/index';
|
|
14
14
|
export interface CopyCatalogEntityToOrgUnitRequest {
|
|
15
15
|
entityType: CopyCatalogEntityToOrgUnitEntityTypeEnum;
|
|
16
16
|
entityId: string;
|
|
@@ -41,6 +41,9 @@ export interface GetCatalogVersionStatusesRequest {
|
|
|
41
41
|
entityType: GetCatalogVersionStatusesEntityTypeEnum;
|
|
42
42
|
entityId: string;
|
|
43
43
|
}
|
|
44
|
+
export interface GetPublishRulesRequest {
|
|
45
|
+
folderPath: string;
|
|
46
|
+
}
|
|
44
47
|
export interface PublishCatalogEntityRequest {
|
|
45
48
|
entityType: PublishCatalogEntityEntityTypeEnum;
|
|
46
49
|
entityId: string;
|
|
@@ -125,6 +128,16 @@ export declare class PublishApi extends runtime.BaseAPI {
|
|
|
125
128
|
* Get the publication status of every version of an entity
|
|
126
129
|
*/
|
|
127
130
|
getCatalogVersionStatuses(requestParameters: GetCatalogVersionStatusesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<VersionStatusEntryDto>>;
|
|
131
|
+
/**
|
|
132
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned. Answers 403 while the `features.orgUnitsEnabled` flag is on: org units replace access rules.
|
|
133
|
+
* Get a destination folder\'s already-configured access rules
|
|
134
|
+
*/
|
|
135
|
+
getPublishRulesRaw(requestParameters: GetPublishRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishRulesResultDto>>;
|
|
136
|
+
/**
|
|
137
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned. Answers 403 while the `features.orgUnitsEnabled` flag is on: org units replace access rules.
|
|
138
|
+
* Get a destination folder\'s already-configured access rules
|
|
139
|
+
*/
|
|
140
|
+
getPublishRules(requestParameters: GetPublishRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishRulesResultDto>;
|
|
128
141
|
/**
|
|
129
142
|
* Publishes a catalog entity (Toolset, Application, Prompt, or Skill) to a folder under the Organization/public bucket by proxying DIAL Core\'s Publication API (`createPublication`). This endpoint keeps no publish records of its own — DIAL Core is the sole source of truth. The optional `author` sets the publication\'s displayed author (the catalog\'s **Hosted by** value); when it is omitted or blank the caller\'s own session display name is used, as it always was. The optional `publishCredentials` flag asks Core to copy the publisher\'s own credential for the entity onto the published copy, so members of the organization use it without authorising individually; it is forwarded unchanged and changes no authorization — Core still derives the actor from the bearer token, enforces target-folder write access, and holds the publication PENDING until an administrator approves it. Publishing an application also publishes its first-level private dependencies (skills, prompts, toolsets, applications) in the same DIAL Core request, so the published application works for other users; a temporary copy of the application, with its references rewritten, is the request\'s source and is deleted when the call returns. The author\'s own application is never modified.
|
|
130
143
|
* Publish a catalog entity to an Organization folder
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/PublishApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,uCAAuC,EACvC,6BAA6B,EAE7B,uBAAuB,EAEvB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,EACrB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,wCAAwC,CAAC;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B,EAAE,6BAA6B,CAAC;CAC9D;AAED,MAAM,WAAW,8CAA8C;IAC7D,uCAAuC,EAAE,uCAAuC,CAAC;CAClF;AAED,MAAM,WAAW,oCAAoC;IACnD,UAAU,EAAE,2CAA2C,CAAC;IACxD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,sCAAsC,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,8BAA8B;IAC7C,UAAU,EAAE,qCAAqC,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,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;;;;;CAO9C,CAAC;AACX,MAAM,MAAM,2CAA2C,GACrD,CAAC,OAAO,2CAA2C,CAAC,CAAC,MAAM,OAAO,2CAA2C,CAAC,CAAC;AACjH;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;;CAOzC,CAAC;AACX,MAAM,MAAM,sCAAsC,GAChD,CAAC,OAAO,sCAAsC,CAAC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC;AACvG;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;CAOxC,CAAC;AACX,MAAM,MAAM,qCAAqC,GAC/C,CAAC,OAAO,qCAAqC,CAAC,CAAC,MAAM,OAAO,qCAAqC,CAAC,CAAC;AACrG;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;;CAO1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GACjD,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AACzG;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;;CAO1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GACjD,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AACzG;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;CAOrC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAC5C,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAC/F;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;CAOvC,CAAC;AACX,MAAM,MAAM,oCAAoC,GAC9C,CAAC,OAAO,oCAAoC,CAAC,CAAC,MAAM,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -303,6 +303,43 @@ class PublishApi extends runtime.BaseAPI {
|
|
|
303
303
|
const response = await this.getCatalogVersionStatusesRaw(requestParameters, initOverrides);
|
|
304
304
|
return await response.value();
|
|
305
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned. Answers 403 while the `features.orgUnitsEnabled` flag is on: org units replace access rules.
|
|
308
|
+
* Get a destination folder\'s already-configured access rules
|
|
309
|
+
*/
|
|
310
|
+
async getPublishRulesRaw(requestParameters, initOverrides) {
|
|
311
|
+
if (requestParameters['folderPath'] == null) {
|
|
312
|
+
throw new runtime.RequiredError('folderPath', 'Required parameter "folderPath" was null or undefined when calling getPublishRules().');
|
|
313
|
+
}
|
|
314
|
+
const queryParameters = {};
|
|
315
|
+
if (requestParameters['folderPath'] != null) {
|
|
316
|
+
queryParameters['folderPath'] = requestParameters['folderPath'];
|
|
317
|
+
}
|
|
318
|
+
const headerParameters = {};
|
|
319
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
320
|
+
const token = this.configuration.accessToken;
|
|
321
|
+
const tokenString = await token('bearer', []);
|
|
322
|
+
if (tokenString) {
|
|
323
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
let urlPath = `/api/v1/publish/rules`;
|
|
327
|
+
const response = await this.request({
|
|
328
|
+
path: urlPath,
|
|
329
|
+
method: 'GET',
|
|
330
|
+
headers: headerParameters,
|
|
331
|
+
query: queryParameters,
|
|
332
|
+
}, initOverrides);
|
|
333
|
+
return new runtime.JSONApiResponse(response);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned. Answers 403 while the `features.orgUnitsEnabled` flag is on: org units replace access rules.
|
|
337
|
+
* Get a destination folder\'s already-configured access rules
|
|
338
|
+
*/
|
|
339
|
+
async getPublishRules(requestParameters, initOverrides) {
|
|
340
|
+
const response = await this.getPublishRulesRaw(requestParameters, initOverrides);
|
|
341
|
+
return await response.value();
|
|
342
|
+
}
|
|
306
343
|
/**
|
|
307
344
|
* Publishes a catalog entity (Toolset, Application, Prompt, or Skill) to a folder under the Organization/public bucket by proxying DIAL Core\'s Publication API (`createPublication`). This endpoint keeps no publish records of its own — DIAL Core is the sole source of truth. The optional `author` sets the publication\'s displayed author (the catalog\'s **Hosted by** value); when it is omitted or blank the caller\'s own session display name is used, as it always was. The optional `publishCredentials` flag asks Core to copy the publisher\'s own credential for the entity onto the published copy, so members of the organization use it without authorising individually; it is forwarded unchanged and changes no authorization — Core still derives the actor from the bearer token, enforces target-folder write access, and holds the publication PENDING until an administrator approves it. Publishing an application also publishes its first-level private dependencies (skills, prompts, toolsets, applications) in the same DIAL Core request, so the published application works for other users; a temporary copy of the application, with its references rewritten, is the request\'s source and is deleted when the call returns. The author\'s own application is never modified.
|
|
308
345
|
* Publish a catalog entity to an Organization folder
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { UsageHistoryPeriod, UserLimitStatsResponseDto, UserUsageHistoryResponseDto, UserUsageTotalsResponseDto } from '../models/index';
|
|
13
|
+
import type { DefaultBudgetResponseDto, UpdateDefaultBudgetRequestDto, UsageHistoryPeriod, UserBudgetsResponseDto, UserLimitStatsResponseDto, UserUsageHistoryResponseDto, UserUsageTotalsResponseDto } from '../models/index';
|
|
14
14
|
export interface GetUserLimitsRequest {
|
|
15
15
|
deploymentTypes?: Array<GetUserLimitsDeploymentTypesEnum>;
|
|
16
16
|
}
|
|
@@ -25,10 +25,23 @@ export interface GetUserUsageHistoryRequest {
|
|
|
25
25
|
export interface GetUserUsageTotalsRequest {
|
|
26
26
|
period: UsageHistoryPeriod;
|
|
27
27
|
}
|
|
28
|
+
export interface PutUserDefaultBudgetRequest {
|
|
29
|
+
updateDefaultBudgetRequestDto: UpdateDefaultBudgetRequestDto;
|
|
30
|
+
}
|
|
28
31
|
/**
|
|
29
32
|
*
|
|
30
33
|
*/
|
|
31
34
|
export declare class UserApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Returns every budget instance the caller can indicate to DIAL Core with the `X-DIAL-BUDGET` header, with its caps and current spend, the caller\'s default budget, and DIAL Core\'s budget-selection flags. Values are forwarded from DIAL Core as received: nothing is filtered, re-ordered or reformatted, and `resetsAt` is passed through unchanged. A window `total` at or above 2^53 is the unlimited sentinel. Answers an empty `budgets` list when DIAL Core has spending limits off. Proxies GET /v1/user/budgets using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time spend.
|
|
37
|
+
* List the spending budgets the signed-in user holds
|
|
38
|
+
*/
|
|
39
|
+
getUserBudgetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserBudgetsResponseDto>>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns every budget instance the caller can indicate to DIAL Core with the `X-DIAL-BUDGET` header, with its caps and current spend, the caller\'s default budget, and DIAL Core\'s budget-selection flags. Values are forwarded from DIAL Core as received: nothing is filtered, re-ordered or reformatted, and `resetsAt` is passed through unchanged. A window `total` at or above 2^53 is the unlimited sentinel. Answers an empty `budgets` list when DIAL Core has spending limits off. Proxies GET /v1/user/budgets using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time spend.
|
|
42
|
+
* List the spending budgets the signed-in user holds
|
|
43
|
+
*/
|
|
44
|
+
getUserBudgets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserBudgetsResponseDto>;
|
|
32
45
|
/**
|
|
33
46
|
* Returns rate-limit and calendar-period usage statistics for every deployment of the requested kinds visible to the caller, plus the caller\'s global cost-budget figures. `deploymentTypes` selects models and/or applications; when omitted, the server-configured default kinds are reported. A deployment\'s cost includes the cost of deployments it called, so per-deployment cost figures overlap and are not additive. The day, week, and month stats cover the current UTC day, week, and month; each may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. Proxies GET /v1/user/limits using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
|
|
34
47
|
* Get aggregate usage limits for every visible deployment
|
|
@@ -69,6 +82,16 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
69
82
|
* Get the caller\'s budget-paid spend for the current UTC period and the same time of the previous one
|
|
70
83
|
*/
|
|
71
84
|
getUserUsageTotals(requestParameters: GetUserUsageTotalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserUsageTotalsResponseDto>;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the default budget to the given `<costObject>/<id>`, or clears it when `budget` is `null`. DIAL Core charges the default when a call names no budget and the default lies in the call\'s cost object. The id must be a budget the caller holds; DIAL Core answers 400 otherwise and its message is passed through. Proxies PUT /v1/user/budgets/default using the caller\'s session access token. Returns `{ \"budget\": null }` when the default is cleared.
|
|
87
|
+
* Set or clear the signed-in user\'s default budget
|
|
88
|
+
*/
|
|
89
|
+
putUserDefaultBudgetRaw(requestParameters: PutUserDefaultBudgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DefaultBudgetResponseDto>>;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the default budget to the given `<costObject>/<id>`, or clears it when `budget` is `null`. DIAL Core charges the default when a call names no budget and the default lies in the call\'s cost object. The id must be a budget the caller holds; DIAL Core answers 400 otherwise and its message is passed through. Proxies PUT /v1/user/budgets/default using the caller\'s session access token. Returns `{ \"budget\": null }` when the default is cleared.
|
|
92
|
+
* Set or clear the signed-in user\'s default budget
|
|
93
|
+
*/
|
|
94
|
+
putUserDefaultBudget(requestParameters: PutUserDefaultBudgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DefaultBudgetResponseDto>;
|
|
72
95
|
}
|
|
73
96
|
/**
|
|
74
97
|
* @export
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/UserApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAA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
|
*
|
|
20
20
|
*/
|
|
21
21
|
class UserApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Returns every budget instance the caller can indicate to DIAL Core with the `X-DIAL-BUDGET` header, with its caps and current spend, the caller\'s default budget, and DIAL Core\'s budget-selection flags. Values are forwarded from DIAL Core as received: nothing is filtered, re-ordered or reformatted, and `resetsAt` is passed through unchanged. A window `total` at or above 2^53 is the unlimited sentinel. Answers an empty `budgets` list when DIAL Core has spending limits off. Proxies GET /v1/user/budgets using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time spend.
|
|
24
|
+
* List the spending budgets the signed-in user holds
|
|
25
|
+
*/
|
|
26
|
+
async getUserBudgetsRaw(initOverrides) {
|
|
27
|
+
const queryParameters = {};
|
|
28
|
+
const headerParameters = {};
|
|
29
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
30
|
+
const token = this.configuration.accessToken;
|
|
31
|
+
const tokenString = await token('bearer', []);
|
|
32
|
+
if (tokenString) {
|
|
33
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
let urlPath = `/api/v1/user/budgets`;
|
|
37
|
+
const response = await this.request({
|
|
38
|
+
path: urlPath,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
}, initOverrides);
|
|
43
|
+
return new runtime.JSONApiResponse(response);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns every budget instance the caller can indicate to DIAL Core with the `X-DIAL-BUDGET` header, with its caps and current spend, the caller\'s default budget, and DIAL Core\'s budget-selection flags. Values are forwarded from DIAL Core as received: nothing is filtered, re-ordered or reformatted, and `resetsAt` is passed through unchanged. A window `total` at or above 2^53 is the unlimited sentinel. Answers an empty `budgets` list when DIAL Core has spending limits off. Proxies GET /v1/user/budgets using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time spend.
|
|
47
|
+
* List the spending budgets the signed-in user holds
|
|
48
|
+
*/
|
|
49
|
+
async getUserBudgets(initOverrides) {
|
|
50
|
+
const response = await this.getUserBudgetsRaw(initOverrides);
|
|
51
|
+
return await response.value();
|
|
52
|
+
}
|
|
22
53
|
/**
|
|
23
54
|
* Returns rate-limit and calendar-period usage statistics for every deployment of the requested kinds visible to the caller, plus the caller\'s global cost-budget figures. `deploymentTypes` selects models and/or applications; when omitted, the server-configured default kinds are reported. A deployment\'s cost includes the cost of deployments it called, so per-deployment cost figures overlap and are not additive. The day, week, and month stats cover the current UTC day, week, and month; each may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. Proxies GET /v1/user/limits using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
|
|
24
55
|
* Get aggregate usage limits for every visible deployment
|
|
@@ -167,6 +198,42 @@ class UserApi extends runtime.BaseAPI {
|
|
|
167
198
|
const response = await this.getUserUsageTotalsRaw(requestParameters, initOverrides);
|
|
168
199
|
return await response.value();
|
|
169
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Sets the default budget to the given `<costObject>/<id>`, or clears it when `budget` is `null`. DIAL Core charges the default when a call names no budget and the default lies in the call\'s cost object. The id must be a budget the caller holds; DIAL Core answers 400 otherwise and its message is passed through. Proxies PUT /v1/user/budgets/default using the caller\'s session access token. Returns `{ \"budget\": null }` when the default is cleared.
|
|
203
|
+
* Set or clear the signed-in user\'s default budget
|
|
204
|
+
*/
|
|
205
|
+
async putUserDefaultBudgetRaw(requestParameters, initOverrides) {
|
|
206
|
+
if (requestParameters['updateDefaultBudgetRequestDto'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('updateDefaultBudgetRequestDto', 'Required parameter "updateDefaultBudgetRequestDto" was null or undefined when calling putUserDefaultBudget().');
|
|
208
|
+
}
|
|
209
|
+
const queryParameters = {};
|
|
210
|
+
const headerParameters = {};
|
|
211
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
212
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
213
|
+
const token = this.configuration.accessToken;
|
|
214
|
+
const tokenString = await token('bearer', []);
|
|
215
|
+
if (tokenString) {
|
|
216
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
let urlPath = `/api/v1/user/budgets/default`;
|
|
220
|
+
const response = await this.request({
|
|
221
|
+
path: urlPath,
|
|
222
|
+
method: 'PUT',
|
|
223
|
+
headers: headerParameters,
|
|
224
|
+
query: queryParameters,
|
|
225
|
+
body: requestParameters['updateDefaultBudgetRequestDto'],
|
|
226
|
+
}, initOverrides);
|
|
227
|
+
return new runtime.JSONApiResponse(response);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Sets the default budget to the given `<costObject>/<id>`, or clears it when `budget` is `null`. DIAL Core charges the default when a call names no budget and the default lies in the call\'s cost object. The id must be a budget the caller holds; DIAL Core answers 400 otherwise and its message is passed through. Proxies PUT /v1/user/budgets/default using the caller\'s session access token. Returns `{ \"budget\": null }` when the default is cleared.
|
|
231
|
+
* Set or clear the signed-in user\'s default budget
|
|
232
|
+
*/
|
|
233
|
+
async putUserDefaultBudget(requestParameters, initOverrides) {
|
|
234
|
+
const response = await this.putUserDefaultBudgetRaw(requestParameters, initOverrides);
|
|
235
|
+
return await response.value();
|
|
236
|
+
}
|
|
170
237
|
}
|
|
171
238
|
exports.UserApi = UserApi;
|
|
172
239
|
/**
|
|
@@ -2052,6 +2052,12 @@ export interface ClientConfigDto {
|
|
|
2052
2052
|
customVariables: {
|
|
2053
2053
|
[key: string]: unknown;
|
|
2054
2054
|
};
|
|
2055
|
+
/**
|
|
2056
|
+
* Allowed claim/category names selectable as a publication access rule's source. Sourced from PUBLICATION_FILTER_SOURCES; falls back to the legacy default when unset or empty.
|
|
2057
|
+
* @type {Array<string>}
|
|
2058
|
+
* @memberof ClientConfigDto
|
|
2059
|
+
*/
|
|
2060
|
+
publicationFilterSources: Array<string>;
|
|
2055
2061
|
/**
|
|
2056
2062
|
* Additional content locales (canonical BCP-47 tags) a toolset's or application's Name/Description can be translated into. Sourced from ADDITIONAL_CONTENT_LOCALES, or the deprecated AVAILABLE_LOCALES when that is absent; empty when neither is set. May include the primary locale, which the client drops.
|
|
2057
2063
|
* @type {Array<string>}
|
|
@@ -4113,6 +4119,19 @@ export interface CustomVisualizerDto {
|
|
|
4113
4119
|
*/
|
|
4114
4120
|
passExplicitToken?: boolean;
|
|
4115
4121
|
}
|
|
4122
|
+
/**
|
|
4123
|
+
*
|
|
4124
|
+
* @export
|
|
4125
|
+
* @interface DefaultBudgetResponseDto
|
|
4126
|
+
*/
|
|
4127
|
+
export interface DefaultBudgetResponseDto {
|
|
4128
|
+
/**
|
|
4129
|
+
* The caller's default budget as DIAL Core reports it; DIAL Core sends `null` when the default was cleared or none is set.
|
|
4130
|
+
* @type {string}
|
|
4131
|
+
* @memberof DefaultBudgetResponseDto
|
|
4132
|
+
*/
|
|
4133
|
+
budget?: string | null;
|
|
4134
|
+
}
|
|
4116
4135
|
/**
|
|
4117
4136
|
*
|
|
4118
4137
|
* @export
|
|
@@ -8426,6 +8445,12 @@ export interface PublishCatalogEntityDto {
|
|
|
8426
8445
|
* @memberof PublishCatalogEntityDto
|
|
8427
8446
|
*/
|
|
8428
8447
|
author?: string;
|
|
8448
|
+
/**
|
|
8449
|
+
* Access-restriction rules combined with AND, forwarded to DIAL Core unchanged. When omitted, the request to DIAL Core carries no rules and the target folder keeps its stored rules; `[]` clears them. Refused with 403 while the `features.orgUnitsEnabled` flag is on for the caller.
|
|
8450
|
+
* @type {Array<PublishRuleDto>}
|
|
8451
|
+
* @memberof PublishCatalogEntityDto
|
|
8452
|
+
*/
|
|
8453
|
+
rules?: Array<PublishRuleDto>;
|
|
8429
8454
|
/**
|
|
8430
8455
|
* Publish the entity together with the publisher's own credentials for it. DIAL Core honours it by copying the credential onto the published copy, so members of the organization use the entity without authorising individually. Omitted or `false` sends exactly the request every caller sent before this field existed. The flag grants no additional authorization: Core still derives the actor from the bearer token, enforces target-folder write access, and holds the publication `PENDING` until an administrator approves it. No credential value ever crosses the wire — only this boolean.
|
|
8431
8456
|
* @type {boolean}
|
|
@@ -8491,6 +8516,12 @@ export interface PublishConversationDto {
|
|
|
8491
8516
|
* @memberof PublishConversationDto
|
|
8492
8517
|
*/
|
|
8493
8518
|
author?: string;
|
|
8519
|
+
/**
|
|
8520
|
+
* Access-restriction rules combined with AND, forwarded to DIAL Core unchanged. When omitted, the request to DIAL Core carries no rules and the target folder keeps its stored rules; `[]` clears them. Refused with 403 while the `features.orgUnitsEnabled` flag is on for the caller.
|
|
8521
|
+
* @type {Array<PublishRuleDto>}
|
|
8522
|
+
* @memberof PublishConversationDto
|
|
8523
|
+
*/
|
|
8524
|
+
rules?: Array<PublishRuleDto>;
|
|
8494
8525
|
}
|
|
8495
8526
|
/**
|
|
8496
8527
|
*
|
|
@@ -8639,6 +8670,53 @@ export declare const PublishResultDtoEntityTypeEnum: {
|
|
|
8639
8670
|
readonly Project: "project";
|
|
8640
8671
|
};
|
|
8641
8672
|
export type PublishResultDtoEntityTypeEnum = (typeof PublishResultDtoEntityTypeEnum)[keyof typeof PublishResultDtoEntityTypeEnum];
|
|
8673
|
+
/**
|
|
8674
|
+
*
|
|
8675
|
+
* @export
|
|
8676
|
+
* @interface PublishRuleDto
|
|
8677
|
+
*/
|
|
8678
|
+
export interface PublishRuleDto {
|
|
8679
|
+
/**
|
|
8680
|
+
* Claim/category name this rule matches against.
|
|
8681
|
+
* @type {string}
|
|
8682
|
+
* @memberof PublishRuleDto
|
|
8683
|
+
*/
|
|
8684
|
+
source: string;
|
|
8685
|
+
/**
|
|
8686
|
+
*
|
|
8687
|
+
* @type {string}
|
|
8688
|
+
* @memberof PublishRuleDto
|
|
8689
|
+
*/
|
|
8690
|
+
function: PublishRuleDtoFunctionEnum;
|
|
8691
|
+
/**
|
|
8692
|
+
* Values combined with OR; exactly one pattern when function is REGEX.
|
|
8693
|
+
* @type {Array<string>}
|
|
8694
|
+
* @memberof PublishRuleDto
|
|
8695
|
+
*/
|
|
8696
|
+
targets: Array<string>;
|
|
8697
|
+
}
|
|
8698
|
+
/**
|
|
8699
|
+
* @export
|
|
8700
|
+
*/
|
|
8701
|
+
export declare const PublishRuleDtoFunctionEnum: {
|
|
8702
|
+
readonly Equal: "EQUAL";
|
|
8703
|
+
readonly Contain: "CONTAIN";
|
|
8704
|
+
readonly Regex: "REGEX";
|
|
8705
|
+
};
|
|
8706
|
+
export type PublishRuleDtoFunctionEnum = (typeof PublishRuleDtoFunctionEnum)[keyof typeof PublishRuleDtoFunctionEnum];
|
|
8707
|
+
/**
|
|
8708
|
+
*
|
|
8709
|
+
* @export
|
|
8710
|
+
* @interface PublishRulesResultDto
|
|
8711
|
+
*/
|
|
8712
|
+
export interface PublishRulesResultDto {
|
|
8713
|
+
/**
|
|
8714
|
+
* The requested folder's own access-restriction rules, or an empty array when the folder has none configured.
|
|
8715
|
+
* @type {Array<PublishRuleDto>}
|
|
8716
|
+
* @memberof PublishRulesResultDto
|
|
8717
|
+
*/
|
|
8718
|
+
rules: Array<PublishRuleDto>;
|
|
8719
|
+
}
|
|
8642
8720
|
/**
|
|
8643
8721
|
*
|
|
8644
8722
|
* @export
|
|
@@ -10947,6 +11025,19 @@ export interface UpdateApplicationBodyDto {
|
|
|
10947
11025
|
*/
|
|
10948
11026
|
primaryLocale?: string;
|
|
10949
11027
|
}
|
|
11028
|
+
/**
|
|
11029
|
+
*
|
|
11030
|
+
* @export
|
|
11031
|
+
* @interface UpdateDefaultBudgetRequestDto
|
|
11032
|
+
*/
|
|
11033
|
+
export interface UpdateDefaultBudgetRequestDto {
|
|
11034
|
+
/**
|
|
11035
|
+
* The `<costObject>/<id>` of a budget the caller holds, to set it as the default; `null` clears the default. The property must be present: DIAL Core rejects a body without it.
|
|
11036
|
+
* @type {string}
|
|
11037
|
+
* @memberof UpdateDefaultBudgetRequestDto
|
|
11038
|
+
*/
|
|
11039
|
+
budget: string | null;
|
|
11040
|
+
}
|
|
10950
11041
|
/**
|
|
10951
11042
|
*
|
|
10952
11043
|
* @export
|
|
@@ -11603,6 +11694,210 @@ export interface UsageTotalsWindowDto {
|
|
|
11603
11694
|
*/
|
|
11604
11695
|
requests: number;
|
|
11605
11696
|
}
|
|
11697
|
+
/**
|
|
11698
|
+
*
|
|
11699
|
+
* @export
|
|
11700
|
+
* @interface UserBudgetCapDto
|
|
11701
|
+
*/
|
|
11702
|
+
export interface UserBudgetCapDto {
|
|
11703
|
+
/**
|
|
11704
|
+
* The cap id.
|
|
11705
|
+
* @type {string}
|
|
11706
|
+
* @memberof UserBudgetCapDto
|
|
11707
|
+
*/
|
|
11708
|
+
cap: string;
|
|
11709
|
+
/**
|
|
11710
|
+
* Human-readable cap name; absent when none is set.
|
|
11711
|
+
* @type {string}
|
|
11712
|
+
* @memberof UserBudgetCapDto
|
|
11713
|
+
*/
|
|
11714
|
+
displayName?: string;
|
|
11715
|
+
/**
|
|
11716
|
+
* True when the cap hangs on the budget of this entry rather than on the cost object.
|
|
11717
|
+
* @type {boolean}
|
|
11718
|
+
* @memberof UserBudgetCapDto
|
|
11719
|
+
*/
|
|
11720
|
+
attached: boolean;
|
|
11721
|
+
/**
|
|
11722
|
+
* Deployments or groups the cap applies to.
|
|
11723
|
+
* @type {Array<string>}
|
|
11724
|
+
* @memberof UserBudgetCapDto
|
|
11725
|
+
*/
|
|
11726
|
+
packages?: Array<string>;
|
|
11727
|
+
/**
|
|
11728
|
+
* Dimensions the cap is split by.
|
|
11729
|
+
* @type {Array<string>}
|
|
11730
|
+
* @memberof UserBudgetCapDto
|
|
11731
|
+
*/
|
|
11732
|
+
per?: Array<string>;
|
|
11733
|
+
/**
|
|
11734
|
+
* Spend windows. Mutually exclusive with `slices`.
|
|
11735
|
+
* @type {UserBudgetWindowsDto}
|
|
11736
|
+
* @memberof UserBudgetCapDto
|
|
11737
|
+
*/
|
|
11738
|
+
windows?: UserBudgetWindowsDto;
|
|
11739
|
+
/**
|
|
11740
|
+
* Per-slice spend windows. Mutually exclusive with `windows`.
|
|
11741
|
+
* @type {Array<UserBudgetSliceDto>}
|
|
11742
|
+
* @memberof UserBudgetCapDto
|
|
11743
|
+
*/
|
|
11744
|
+
slices?: Array<UserBudgetSliceDto>;
|
|
11745
|
+
}
|
|
11746
|
+
/**
|
|
11747
|
+
*
|
|
11748
|
+
* @export
|
|
11749
|
+
* @interface UserBudgetDto
|
|
11750
|
+
*/
|
|
11751
|
+
export interface UserBudgetDto {
|
|
11752
|
+
/**
|
|
11753
|
+
* The exact `X-DIAL-BUDGET` value for this budget, `<costObject>/<id>`.
|
|
11754
|
+
* @type {string}
|
|
11755
|
+
* @memberof UserBudgetDto
|
|
11756
|
+
*/
|
|
11757
|
+
budget: string;
|
|
11758
|
+
/**
|
|
11759
|
+
* The cost object the budget belongs to.
|
|
11760
|
+
* @type {string}
|
|
11761
|
+
* @memberof UserBudgetDto
|
|
11762
|
+
*/
|
|
11763
|
+
costObject: string;
|
|
11764
|
+
/**
|
|
11765
|
+
* Human-readable budget name; absent when none is set.
|
|
11766
|
+
* @type {string}
|
|
11767
|
+
* @memberof UserBudgetDto
|
|
11768
|
+
*/
|
|
11769
|
+
displayName?: string;
|
|
11770
|
+
/**
|
|
11771
|
+
* True when this budget is the caller's default budget.
|
|
11772
|
+
* @type {boolean}
|
|
11773
|
+
* @memberof UserBudgetDto
|
|
11774
|
+
*/
|
|
11775
|
+
default: boolean;
|
|
11776
|
+
/**
|
|
11777
|
+
* Deployments or groups the budget applies to.
|
|
11778
|
+
* @type {Array<string>}
|
|
11779
|
+
* @memberof UserBudgetDto
|
|
11780
|
+
*/
|
|
11781
|
+
packages?: Array<string>;
|
|
11782
|
+
/**
|
|
11783
|
+
* Dimensions the budget is split by.
|
|
11784
|
+
* @type {Array<string>}
|
|
11785
|
+
* @memberof UserBudgetDto
|
|
11786
|
+
*/
|
|
11787
|
+
per?: Array<string>;
|
|
11788
|
+
/**
|
|
11789
|
+
* Spend windows. Mutually exclusive with `slices`.
|
|
11790
|
+
* @type {UserBudgetWindowsDto}
|
|
11791
|
+
* @memberof UserBudgetDto
|
|
11792
|
+
*/
|
|
11793
|
+
windows?: UserBudgetWindowsDto;
|
|
11794
|
+
/**
|
|
11795
|
+
* Per-slice spend windows. Mutually exclusive with `windows`.
|
|
11796
|
+
* @type {Array<UserBudgetSliceDto>}
|
|
11797
|
+
* @memberof UserBudgetDto
|
|
11798
|
+
*/
|
|
11799
|
+
slices?: Array<UserBudgetSliceDto>;
|
|
11800
|
+
/**
|
|
11801
|
+
* Caps that further limit this budget.
|
|
11802
|
+
* @type {Array<UserBudgetCapDto>}
|
|
11803
|
+
* @memberof UserBudgetDto
|
|
11804
|
+
*/
|
|
11805
|
+
caps?: Array<UserBudgetCapDto>;
|
|
11806
|
+
}
|
|
11807
|
+
/**
|
|
11808
|
+
*
|
|
11809
|
+
* @export
|
|
11810
|
+
* @interface UserBudgetSliceDto
|
|
11811
|
+
*/
|
|
11812
|
+
export interface UserBudgetSliceDto {
|
|
11813
|
+
/**
|
|
11814
|
+
* The value of the dimension the budget is split by.
|
|
11815
|
+
* @type {string}
|
|
11816
|
+
* @memberof UserBudgetSliceDto
|
|
11817
|
+
*/
|
|
11818
|
+
slice: string;
|
|
11819
|
+
/**
|
|
11820
|
+
*
|
|
11821
|
+
* @type {UserBudgetWindowsDto}
|
|
11822
|
+
* @memberof UserBudgetSliceDto
|
|
11823
|
+
*/
|
|
11824
|
+
windows: UserBudgetWindowsDto;
|
|
11825
|
+
}
|
|
11826
|
+
/**
|
|
11827
|
+
*
|
|
11828
|
+
* @export
|
|
11829
|
+
* @interface UserBudgetWindowStatsDto
|
|
11830
|
+
*/
|
|
11831
|
+
export interface UserBudgetWindowStatsDto {
|
|
11832
|
+
/**
|
|
11833
|
+
*
|
|
11834
|
+
* @type {number}
|
|
11835
|
+
* @memberof UserBudgetWindowStatsDto
|
|
11836
|
+
*/
|
|
11837
|
+
total: number;
|
|
11838
|
+
/**
|
|
11839
|
+
*
|
|
11840
|
+
* @type {number}
|
|
11841
|
+
* @memberof UserBudgetWindowStatsDto
|
|
11842
|
+
*/
|
|
11843
|
+
used: number;
|
|
11844
|
+
/**
|
|
11845
|
+
* Optional ISO-8601 instant, forwarded as DIAL Core sends it, at which this window ends and a fresh one begins. The offset is that of the rate-limit schedule time zone configured in DIAL Core: `Z` when the schedule is UTC (the default), otherwise the zone offset, for example `2026-12-04T00:00:00+01:00`. The window boundary follows that zone and its reset time, so it is not necessarily UTC midnight. DIAL Core may omit the field. The BFF never parses, reformats, converts, drops or synthesizes it.
|
|
11846
|
+
* @type {string}
|
|
11847
|
+
* @memberof UserBudgetWindowStatsDto
|
|
11848
|
+
*/
|
|
11849
|
+
resetsAt?: string;
|
|
11850
|
+
}
|
|
11851
|
+
/**
|
|
11852
|
+
*
|
|
11853
|
+
* @export
|
|
11854
|
+
* @interface UserBudgetWindowsDto
|
|
11855
|
+
*/
|
|
11856
|
+
export interface UserBudgetWindowsDto {
|
|
11857
|
+
/**
|
|
11858
|
+
* Spend in the current day of DIAL Core's rate-limit schedule time zone (not necessarily UTC). A `total` at or above 2^53 (9007199254740992) is DIAL Core's "unlimited" sentinel (`Long.MAX_VALUE`, which JSON parsing turns into 9223372036854776000); treat it as unlimited and never compare it for equality with 9223372036854775807.
|
|
11859
|
+
* @type {UserBudgetWindowStatsDto}
|
|
11860
|
+
* @memberof UserBudgetWindowsDto
|
|
11861
|
+
*/
|
|
11862
|
+
day: UserBudgetWindowStatsDto;
|
|
11863
|
+
/**
|
|
11864
|
+
* Spend in the current month of DIAL Core's rate-limit schedule time zone (not necessarily UTC). A `total` at or above 2^53 (9007199254740992) is DIAL Core's "unlimited" sentinel (`Long.MAX_VALUE`, which JSON parsing turns into 9223372036854776000); treat it as unlimited and never compare it for equality with 9223372036854775807.
|
|
11865
|
+
* @type {UserBudgetWindowStatsDto}
|
|
11866
|
+
* @memberof UserBudgetWindowsDto
|
|
11867
|
+
*/
|
|
11868
|
+
month: UserBudgetWindowStatsDto;
|
|
11869
|
+
}
|
|
11870
|
+
/**
|
|
11871
|
+
*
|
|
11872
|
+
* @export
|
|
11873
|
+
* @interface UserBudgetsResponseDto
|
|
11874
|
+
*/
|
|
11875
|
+
export interface UserBudgetsResponseDto {
|
|
11876
|
+
/**
|
|
11877
|
+
* When true and a call names no budget and no default applies, DIAL Core picks the payer itself, walking the budgets by priority; when false it refuses such a call.
|
|
11878
|
+
* @type {boolean}
|
|
11879
|
+
* @memberof UserBudgetsResponseDto
|
|
11880
|
+
*/
|
|
11881
|
+
autoBudgetSelection: boolean;
|
|
11882
|
+
/**
|
|
11883
|
+
* When true, DIAL Core refuses a call to a model that does not carry the `X-DIAL-BUDGET` header, with `400`. A default budget does not satisfy it.
|
|
11884
|
+
* @type {boolean}
|
|
11885
|
+
* @memberof UserBudgetsResponseDto
|
|
11886
|
+
*/
|
|
11887
|
+
budgetMandatory: boolean;
|
|
11888
|
+
/**
|
|
11889
|
+
* The `budget` of the caller's default; DIAL Core sends `null` when none of the returned budgets is the default.
|
|
11890
|
+
* @type {string}
|
|
11891
|
+
* @memberof UserBudgetsResponseDto
|
|
11892
|
+
*/
|
|
11893
|
+
defaultBudget?: string | null;
|
|
11894
|
+
/**
|
|
11895
|
+
* Every budget instance the caller holds, in the order DIAL Core returns them (cost object, then priority, then id). Empty when spending limits are off.
|
|
11896
|
+
* @type {Array<UserBudgetDto>}
|
|
11897
|
+
* @memberof UserBudgetsResponseDto
|
|
11898
|
+
*/
|
|
11899
|
+
budgets: Array<UserBudgetDto>;
|
|
11900
|
+
}
|
|
11606
11901
|
/**
|
|
11607
11902
|
*
|
|
11608
11903
|
* @export
|