@epam/ai-dial-chat-api-client 1.4.0-dev.107 → 1.4.0-dev.115

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.
@@ -164,22 +164,22 @@ export declare class ProjectsApi extends runtime.BaseAPI {
164
164
  */
165
165
  downloadProject(requestParameters: DownloadProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
166
166
  /**
167
- * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
167
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. A `text/html` output is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin. Any reader of the project may call it.
168
168
  * Download one output of a project
169
169
  */
170
170
  downloadProjectArtifactRaw(requestParameters: DownloadProjectArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
171
171
  /**
172
- * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
172
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. A `text/html` output is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin. Any reader of the project may call it.
173
173
  * Download one output of a project
174
174
  */
175
175
  downloadProjectArtifact(requestParameters: DownloadProjectArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
176
176
  /**
177
- * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`.
177
+ * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`. A `text/html` file is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin.
178
178
  * Download one context file of a project
179
179
  */
180
180
  downloadProjectFileRaw(requestParameters: DownloadProjectFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
181
181
  /**
182
- * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`.
182
+ * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`. A `text/html` file is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin.
183
183
  * Download one context file of a project
184
184
  */
185
185
  downloadProjectFile(requestParameters: DownloadProjectFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
@@ -283,7 +283,7 @@ class ProjectsApi extends runtime.BaseAPI {
283
283
  return await response.value();
284
284
  }
285
285
  /**
286
- * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
286
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. A `text/html` output is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin. Any reader of the project may call it.
287
287
  * Download one output of a project
288
288
  */
289
289
  async downloadProjectArtifactRaw(requestParameters, initOverrides) {
@@ -314,7 +314,7 @@ class ProjectsApi extends runtime.BaseAPI {
314
314
  return new runtime.BlobApiResponse(response);
315
315
  }
316
316
  /**
317
- * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
317
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. A `text/html` output is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin. Any reader of the project may call it.
318
318
  * Download one output of a project
319
319
  */
320
320
  async downloadProjectArtifact(requestParameters, initOverrides) {
@@ -322,7 +322,7 @@ class ProjectsApi extends runtime.BaseAPI {
322
322
  return await response.value();
323
323
  }
324
324
  /**
325
- * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`.
325
+ * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`. A `text/html` file is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin.
326
326
  * Download one context file of a project
327
327
  */
328
328
  async downloadProjectFileRaw(requestParameters, initOverrides) {
@@ -353,7 +353,7 @@ class ProjectsApi extends runtime.BaseAPI {
353
353
  return new runtime.BlobApiResponse(response);
354
354
  }
355
355
  /**
356
- * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`.
356
+ * Streams one file directly under the project `context/` folder as an attachment with `X-Content-Type-Options: nosniff`. A `text/html` file is served `inline` with the sandboxed HTML-preview `Content-Security-Policy` instead, so the attachment preview can render it at an opaque origin.
357
357
  * Download one context file of a project
358
358
  */
359
359
  async downloadProjectFile(requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CopyCatalogEntityToOrgUnitDto, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRulesResultDto, ResourceDependenciesResultDto, ResourceIdResponseDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto, VersionStatusEntryDto } from '../models/index';
13
+ import type { 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;
@@ -24,6 +24,12 @@ export interface GetCatalogPublishHistoryRequest {
24
24
  entityType: GetCatalogPublishHistoryEntityTypeEnum;
25
25
  entityId: string;
26
26
  }
27
+ export interface GetCatalogPublishTargetRequest {
28
+ entityType: GetCatalogPublishTargetEntityTypeEnum;
29
+ entityId: string;
30
+ folderPath: string;
31
+ version?: string;
32
+ }
27
33
  export interface GetCatalogUnpublishAccessRequest {
28
34
  entityType: GetCatalogUnpublishAccessEntityTypeEnum;
29
35
  entityId: string;
@@ -79,6 +85,16 @@ export declare class PublishApi extends runtime.BaseAPI {
79
85
  * Get publish history for a catalog entity
80
86
  */
81
87
  getCatalogPublishHistory(requestParameters: GetCatalogPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublishHistoryEntryDto>>;
88
+ /**
89
+ * Derives the path a publish of this entity into `folderPath` (and `version`) would create, exactly as the publish endpoint does, and reads that path\'s metadata with the caller\'s own token. Creates nothing. `taken: false` means no resource was found, not that none is there: a copy hidden from the caller by access rules, or one still pending approval, is not detected, and another publication can land before the caller submits. The publish endpoint answers `409` `target-exists` for those cases.
90
+ * Check whether the published copy of an entity would land on a taken path
91
+ */
92
+ getCatalogPublishTargetRaw(requestParameters: GetCatalogPublishTargetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishTargetCheckDto>>;
93
+ /**
94
+ * Derives the path a publish of this entity into `folderPath` (and `version`) would create, exactly as the publish endpoint does, and reads that path\'s metadata with the caller\'s own token. Creates nothing. `taken: false` means no resource was found, not that none is there: a copy hidden from the caller by access rules, or one still pending approval, is not detected, and another publication can land before the caller submits. The publish endpoint answers `409` `target-exists` for those cases.
95
+ * Check whether the published copy of an entity would land on a taken path
96
+ */
97
+ getCatalogPublishTarget(requestParameters: GetCatalogPublishTargetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishTargetCheckDto>;
82
98
  /**
83
99
  * Reports whether the session user may submit an unpublish request for this entity: true for an administrator, for an entity in their own bucket, and for the publisher of a public copy (the bucket holding the live publication that created it). It reveals only the caller’s own permission, never who published the entity, and creates nothing. A negative answer is a 200 with `canUnpublish: false`.
84
100
  * Check whether the caller may request removal of a catalog entity
@@ -166,6 +182,18 @@ export declare const GetCatalogPublishHistoryEntityTypeEnum: {
166
182
  readonly Project: "project";
167
183
  };
168
184
  export type GetCatalogPublishHistoryEntityTypeEnum = (typeof GetCatalogPublishHistoryEntityTypeEnum)[keyof typeof GetCatalogPublishHistoryEntityTypeEnum];
185
+ /**
186
+ * @export
187
+ */
188
+ export declare const GetCatalogPublishTargetEntityTypeEnum: {
189
+ readonly Model: "model";
190
+ readonly Toolset: "toolset";
191
+ readonly Application: "application";
192
+ readonly Prompt: "prompt";
193
+ readonly Skill: "skill";
194
+ readonly Project: "project";
195
+ };
196
+ export type GetCatalogPublishTargetEntityTypeEnum = (typeof GetCatalogPublishTargetEntityTypeEnum)[keyof typeof GetCatalogPublishTargetEntityTypeEnum];
169
197
  /**
170
198
  * @export
171
199
  */
@@ -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,6BAA6B,EAC7B,uBAAuB,EACvB,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,oCAAoC;IACnD,UAAU,EAAE,2CAA2C,CAAC;IACxD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,+B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;;;;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"}
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UnpublishCatalogEntityEntityTypeEnum = exports.PublishCatalogEntityEntityTypeEnum = exports.GetCatalogVersionStatusesEntityTypeEnum = exports.GetCatalogUnpublishAccessEntityTypeEnum = exports.GetCatalogPublishHistoryEntityTypeEnum = exports.GetCatalogPublishDependenciesEntityTypeEnum = exports.CopyCatalogEntityToOrgUnitEntityTypeEnum = exports.PublishApi = void 0;
16
+ exports.UnpublishCatalogEntityEntityTypeEnum = exports.PublishCatalogEntityEntityTypeEnum = exports.GetCatalogVersionStatusesEntityTypeEnum = exports.GetCatalogUnpublishAccessEntityTypeEnum = exports.GetCatalogPublishTargetEntityTypeEnum = exports.GetCatalogPublishHistoryEntityTypeEnum = exports.GetCatalogPublishDependenciesEntityTypeEnum = exports.CopyCatalogEntityToOrgUnitEntityTypeEnum = exports.PublishApi = void 0;
17
17
  const runtime = require("../runtime");
18
18
  /**
19
19
  *
@@ -141,6 +141,54 @@ class PublishApi extends runtime.BaseAPI {
141
141
  const response = await this.getCatalogPublishHistoryRaw(requestParameters, initOverrides);
142
142
  return await response.value();
143
143
  }
144
+ /**
145
+ * Derives the path a publish of this entity into `folderPath` (and `version`) would create, exactly as the publish endpoint does, and reads that path\'s metadata with the caller\'s own token. Creates nothing. `taken: false` means no resource was found, not that none is there: a copy hidden from the caller by access rules, or one still pending approval, is not detected, and another publication can land before the caller submits. The publish endpoint answers `409` `target-exists` for those cases.
146
+ * Check whether the published copy of an entity would land on a taken path
147
+ */
148
+ async getCatalogPublishTargetRaw(requestParameters, initOverrides) {
149
+ if (requestParameters['entityType'] == null) {
150
+ throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling getCatalogPublishTarget().');
151
+ }
152
+ if (requestParameters['entityId'] == null) {
153
+ throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling getCatalogPublishTarget().');
154
+ }
155
+ if (requestParameters['folderPath'] == null) {
156
+ throw new runtime.RequiredError('folderPath', 'Required parameter "folderPath" was null or undefined when calling getCatalogPublishTarget().');
157
+ }
158
+ const queryParameters = {};
159
+ if (requestParameters['folderPath'] != null) {
160
+ queryParameters['folderPath'] = requestParameters['folderPath'];
161
+ }
162
+ if (requestParameters['version'] != null) {
163
+ queryParameters['version'] = requestParameters['version'];
164
+ }
165
+ const headerParameters = {};
166
+ if (this.configuration && this.configuration.accessToken) {
167
+ const token = this.configuration.accessToken;
168
+ const tokenString = await token('bearer', []);
169
+ if (tokenString) {
170
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
171
+ }
172
+ }
173
+ let urlPath = `/api/v1/catalog/{entityType}/{entityId}/publish-target`;
174
+ urlPath = urlPath.replace(`{${'entityType'}}`, encodeURIComponent(String(requestParameters['entityType'])));
175
+ urlPath = urlPath.replace(`{${'entityId'}}`, encodeURIComponent(String(requestParameters['entityId'])));
176
+ const response = await this.request({
177
+ path: urlPath,
178
+ method: 'GET',
179
+ headers: headerParameters,
180
+ query: queryParameters,
181
+ }, initOverrides);
182
+ return new runtime.JSONApiResponse(response);
183
+ }
184
+ /**
185
+ * Derives the path a publish of this entity into `folderPath` (and `version`) would create, exactly as the publish endpoint does, and reads that path\'s metadata with the caller\'s own token. Creates nothing. `taken: false` means no resource was found, not that none is there: a copy hidden from the caller by access rules, or one still pending approval, is not detected, and another publication can land before the caller submits. The publish endpoint answers `409` `target-exists` for those cases.
186
+ * Check whether the published copy of an entity would land on a taken path
187
+ */
188
+ async getCatalogPublishTarget(requestParameters, initOverrides) {
189
+ const response = await this.getCatalogPublishTargetRaw(requestParameters, initOverrides);
190
+ return await response.value();
191
+ }
144
192
  /**
145
193
  * Reports whether the session user may submit an unpublish request for this entity: true for an administrator, for an entity in their own bucket, and for the publisher of a public copy (the bucket holding the live publication that created it). It reveals only the caller’s own permission, never who published the entity, and creates nothing. A negative answer is a 200 with `canUnpublish: false`.
146
194
  * Check whether the caller may request removal of a catalog entity
@@ -379,6 +427,17 @@ exports.GetCatalogPublishHistoryEntityTypeEnum = {
379
427
  Skill: 'skill',
380
428
  Project: 'project',
381
429
  };
430
+ /**
431
+ * @export
432
+ */
433
+ exports.GetCatalogPublishTargetEntityTypeEnum = {
434
+ Model: 'model',
435
+ Toolset: 'toolset',
436
+ Application: 'application',
437
+ Prompt: 'prompt',
438
+ Skill: 'skill',
439
+ Project: 'project',
440
+ };
382
441
  /**
383
442
  * @export
384
443
  */
@@ -10,13 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { UserLimitStatsResponseDto } from '../models/index';
13
+ import type { UsageHistoryPeriod, UserLimitStatsResponseDto, UserUsageHistoryResponseDto } from '../models/index';
14
14
  export interface GetUserLimitsRequest {
15
15
  deploymentTypes?: Array<GetUserLimitsDeploymentTypesEnum>;
16
16
  }
17
17
  export interface GetUserUsageRequest {
18
18
  deploymentTypes?: Array<GetUserUsageDeploymentTypesEnum>;
19
19
  }
20
+ export interface GetUserUsageHistoryRequest {
21
+ period: UsageHistoryPeriod;
22
+ }
20
23
  /**
21
24
  *
22
25
  */
@@ -41,6 +44,16 @@ export declare class UserApi extends runtime.BaseAPI {
41
44
  * Get usage limits for deployments used in the current calendar periods
42
45
  */
43
46
  getUserUsage(requestParameters?: GetUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLimitStatsResponseDto>;
47
+ /**
48
+ * Returns the signed-in user\'s spend and request counts from DIAL Analytics (ADAS) for the current UTC day, ISO week (Monday start) or month, from its start to the request time: totals, one zero-filled entry per UTC date, the top 10 root deployments by spend plus an `other` remainder, and the split by client type when the `usage_client_identity` enrichment is available. Each user request counts once (root spans only), with its chain-inclusive price. The BFF forwards the caller\'s session access token to ADAS, whose row policy confines the rows to the caller; a caller whose ADAS view is not row-restricted gets `forbidden`. When ADAS cannot answer, the response is still `200`, with `available: false` and a `reason`. Not cached.
49
+ * Get the caller\'s own usage history for the current UTC day, week or month
50
+ */
51
+ getUserUsageHistoryRaw(requestParameters: GetUserUsageHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserUsageHistoryResponseDto>>;
52
+ /**
53
+ * Returns the signed-in user\'s spend and request counts from DIAL Analytics (ADAS) for the current UTC day, ISO week (Monday start) or month, from its start to the request time: totals, one zero-filled entry per UTC date, the top 10 root deployments by spend plus an `other` remainder, and the split by client type when the `usage_client_identity` enrichment is available. Each user request counts once (root spans only), with its chain-inclusive price. The BFF forwards the caller\'s session access token to ADAS, whose row policy confines the rows to the caller; a caller whose ADAS view is not row-restricted gets `forbidden`. When ADAS cannot answer, the response is still `200`, with `available: false` and a `reason`. Not cached.
54
+ * Get the caller\'s own usage history for the current UTC day, week or month
55
+ */
56
+ getUserUsageHistory(requestParameters: GetUserUsageHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserUsageHistoryResponseDto>;
44
57
  }
45
58
  /**
46
59
  * @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,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW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GG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,0BAA0B,EAC7C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,2BAA2B,CAAC;CAOxC;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAC1C,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAC3F;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GACzC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC"}
@@ -87,6 +87,43 @@ class UserApi extends runtime.BaseAPI {
87
87
  const response = await this.getUserUsageRaw(requestParameters, initOverrides);
88
88
  return await response.value();
89
89
  }
90
+ /**
91
+ * Returns the signed-in user\'s spend and request counts from DIAL Analytics (ADAS) for the current UTC day, ISO week (Monday start) or month, from its start to the request time: totals, one zero-filled entry per UTC date, the top 10 root deployments by spend plus an `other` remainder, and the split by client type when the `usage_client_identity` enrichment is available. Each user request counts once (root spans only), with its chain-inclusive price. The BFF forwards the caller\'s session access token to ADAS, whose row policy confines the rows to the caller; a caller whose ADAS view is not row-restricted gets `forbidden`. When ADAS cannot answer, the response is still `200`, with `available: false` and a `reason`. Not cached.
92
+ * Get the caller\'s own usage history for the current UTC day, week or month
93
+ */
94
+ async getUserUsageHistoryRaw(requestParameters, initOverrides) {
95
+ if (requestParameters['period'] == null) {
96
+ throw new runtime.RequiredError('period', 'Required parameter "period" was null or undefined when calling getUserUsageHistory().');
97
+ }
98
+ const queryParameters = {};
99
+ if (requestParameters['period'] != null) {
100
+ queryParameters['period'] = requestParameters['period'];
101
+ }
102
+ const headerParameters = {};
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/user/usage/history`;
111
+ const response = await this.request({
112
+ path: urlPath,
113
+ method: 'GET',
114
+ headers: headerParameters,
115
+ query: queryParameters,
116
+ }, initOverrides);
117
+ return new runtime.JSONApiResponse(response);
118
+ }
119
+ /**
120
+ * Returns the signed-in user\'s spend and request counts from DIAL Analytics (ADAS) for the current UTC day, ISO week (Monday start) or month, from its start to the request time: totals, one zero-filled entry per UTC date, the top 10 root deployments by spend plus an `other` remainder, and the split by client type when the `usage_client_identity` enrichment is available. Each user request counts once (root spans only), with its chain-inclusive price. The BFF forwards the caller\'s session access token to ADAS, whose row policy confines the rows to the caller; a caller whose ADAS view is not row-restricted gets `forbidden`. When ADAS cannot answer, the response is still `200`, with `available: false` and a `reason`. Not cached.
121
+ * Get the caller\'s own usage history for the current UTC day, week or month
122
+ */
123
+ async getUserUsageHistory(requestParameters, initOverrides) {
124
+ const response = await this.getUserUsageHistoryRaw(requestParameters, initOverrides);
125
+ return await response.value();
126
+ }
90
127
  }
91
128
  exports.UserApi = UserApi;
92
129
  /**
@@ -7305,7 +7305,28 @@ export interface OnboardingHintDto {
7305
7305
  * @memberof OnboardingHintDto
7306
7306
  */
7307
7307
  description: string | null;
7308
+ /**
7309
+ * Pages the hint is shown on. Empty when unset: the hint is then shown on the home page (new chat and conversations) only. Unknown names are dropped server-side.
7310
+ * @type {Array<OnboardingHintPage>}
7311
+ * @memberof OnboardingHintDto
7312
+ */
7313
+ pages: Array<OnboardingHintPage>;
7308
7314
  }
7315
+ /**
7316
+ * Pages the hint is shown on. Empty when unset: the hint is then shown on the home page (new chat and conversations) only. Unknown names are dropped server-side.
7317
+ * @export
7318
+ */
7319
+ export declare const OnboardingHintPage: {
7320
+ readonly Home: "home";
7321
+ readonly Projects: "projects";
7322
+ readonly ScheduledTasks: "scheduled-tasks";
7323
+ readonly Catalog: "catalog";
7324
+ readonly FileManager: "file-manager";
7325
+ readonly Settings: "settings";
7326
+ readonly Usage: "usage";
7327
+ readonly Editors: "editors";
7328
+ };
7329
+ export type OnboardingHintPage = (typeof OnboardingHintPage)[keyof typeof OnboardingHintPage];
7309
7330
  /**
7310
7331
  * The UI element the hint points at. A closed list; the client resolves it and skips the hint when that element is not on screen.
7311
7332
  * @export
@@ -8114,6 +8135,45 @@ export interface PublishCatalogEntityDto {
8114
8135
  */
8115
8136
  publishCredentials?: boolean;
8116
8137
  }
8138
+ /**
8139
+ * Always `target-exists`: the published copy of this resource would land on a path that is already taken.
8140
+ * @export
8141
+ */
8142
+ export declare const PublishConflictCode: {
8143
+ readonly TargetExists: "target-exists";
8144
+ };
8145
+ export type PublishConflictCode = (typeof PublishConflictCode)[keyof typeof PublishConflictCode];
8146
+ /**
8147
+ *
8148
+ * @export
8149
+ * @interface PublishConflictDto
8150
+ */
8151
+ export interface PublishConflictDto {
8152
+ /**
8153
+ *
8154
+ * @type {number}
8155
+ * @memberof PublishConflictDto
8156
+ */
8157
+ statusCode: number;
8158
+ /**
8159
+ *
8160
+ * @type {string}
8161
+ * @memberof PublishConflictDto
8162
+ */
8163
+ message: string;
8164
+ /**
8165
+ *
8166
+ * @type {string}
8167
+ * @memberof PublishConflictDto
8168
+ */
8169
+ error: string;
8170
+ /**
8171
+ * Always `target-exists`: the published copy of this resource would land on a path that is already taken.
8172
+ * @type {PublishConflictCode}
8173
+ * @memberof PublishConflictDto
8174
+ */
8175
+ code: PublishConflictCode;
8176
+ }
8117
8177
  /**
8118
8178
  *
8119
8179
  * @export
@@ -8333,6 +8393,19 @@ export interface PublishRulesResultDto {
8333
8393
  */
8334
8394
  rules: Array<PublishRuleDto>;
8335
8395
  }
8396
+ /**
8397
+ *
8398
+ * @export
8399
+ * @interface PublishTargetCheckDto
8400
+ */
8401
+ export interface PublishTargetCheckDto {
8402
+ /**
8403
+ * True when the caller can read a resource at the target. False means none was found, not that none is there: a copy hidden from the caller by access rules, or one still pending approval, is not detected. The publish endpoint answers `409` for those.
8404
+ * @type {boolean}
8405
+ * @memberof PublishTargetCheckDto
8406
+ */
8407
+ taken: boolean;
8408
+ }
8336
8409
  /**
8337
8410
  *
8338
8411
  * @export
@@ -10918,6 +10991,153 @@ export interface UploadArchiveResponseDto {
10918
10991
  */
10919
10992
  results: Array<UploadArchiveEntryResultDto>;
10920
10993
  }
10994
+ /**
10995
+ *
10996
+ * @export
10997
+ * @interface UsageHistoryClientEntryDto
10998
+ */
10999
+ export interface UsageHistoryClientEntryDto {
11000
+ /**
11001
+ * Client type from DIAL Analytics' `usage_client_identity` enrichment (for example `chat`, `claudecode`, `claudedesktop`, `codex`, `opencode`, `dialcli`, `other`), or `unknown` when the enrichment has no value for the request.
11002
+ * @type {string}
11003
+ * @memberof UsageHistoryClientEntryDto
11004
+ */
11005
+ client: string;
11006
+ /**
11007
+ * Spend in USD, rounded to 6 decimal places (half away from zero), summed from the root span's chain-inclusive price: a call to an application includes the models it called.
11008
+ * @type {number}
11009
+ * @memberof UsageHistoryClientEntryDto
11010
+ */
11011
+ spend: number;
11012
+ /**
11013
+ * User requests from this client.
11014
+ * @type {number}
11015
+ * @memberof UsageHistoryClientEntryDto
11016
+ */
11017
+ requests: number;
11018
+ }
11019
+ /**
11020
+ *
11021
+ * @export
11022
+ * @interface UsageHistoryDailyEntryDto
11023
+ */
11024
+ export interface UsageHistoryDailyEntryDto {
11025
+ /**
11026
+ * UTC calendar date, `YYYY-MM-DD`.
11027
+ * @type {string}
11028
+ * @memberof UsageHistoryDailyEntryDto
11029
+ */
11030
+ date: string;
11031
+ /**
11032
+ * Spend in USD, rounded to 6 decimal places (half away from zero), summed from the root span's chain-inclusive price: a call to an application includes the models it called.
11033
+ * @type {number}
11034
+ * @memberof UsageHistoryDailyEntryDto
11035
+ */
11036
+ spend: number;
11037
+ /**
11038
+ * User requests on that date.
11039
+ * @type {number}
11040
+ * @memberof UsageHistoryDailyEntryDto
11041
+ */
11042
+ requests: number;
11043
+ /**
11044
+ * That date's spend per deployment, keyed by the deployment names of the top-level `byModel` (including `other`). Keys with no spend and no requests on that date are omitted, so a date without usage has an empty object.
11045
+ * @type {{ [key: string]: number; }}
11046
+ * @memberof UsageHistoryDailyEntryDto
11047
+ */
11048
+ byModel: {
11049
+ [key: string]: number;
11050
+ };
11051
+ }
11052
+ /**
11053
+ *
11054
+ * @export
11055
+ * @interface UsageHistoryModelEntryDto
11056
+ */
11057
+ export interface UsageHistoryModelEntryDto {
11058
+ /**
11059
+ * Root deployment the user called, or `other` for the remainder beyond the top 10 by spend.
11060
+ * @type {string}
11061
+ * @memberof UsageHistoryModelEntryDto
11062
+ */
11063
+ deployment: string;
11064
+ /**
11065
+ * Spend in USD, rounded to 6 decimal places (half away from zero), summed from the root span's chain-inclusive price: a call to an application includes the models it called.
11066
+ * @type {number}
11067
+ * @memberof UsageHistoryModelEntryDto
11068
+ */
11069
+ spend: number;
11070
+ /**
11071
+ * User requests to this deployment.
11072
+ * @type {number}
11073
+ * @memberof UsageHistoryModelEntryDto
11074
+ */
11075
+ requests: number;
11076
+ }
11077
+ /**
11078
+ *
11079
+ * @export
11080
+ */
11081
+ export declare const UsageHistoryPeriod: {
11082
+ readonly Today: "today";
11083
+ readonly Week: "week";
11084
+ readonly Month: "month";
11085
+ };
11086
+ export type UsageHistoryPeriod = (typeof UsageHistoryPeriod)[keyof typeof UsageHistoryPeriod];
11087
+ /**
11088
+ *
11089
+ * @export
11090
+ * @interface UsageHistoryTotalsDto
11091
+ */
11092
+ export interface UsageHistoryTotalsDto {
11093
+ /**
11094
+ * Spend in USD, rounded to 6 decimal places (half away from zero), summed from the root span's chain-inclusive price: a call to an application includes the models it called.
11095
+ * @type {number}
11096
+ * @memberof UsageHistoryTotalsDto
11097
+ */
11098
+ spend: number;
11099
+ /**
11100
+ * Number of user requests (root spans) in the window.
11101
+ * @type {number}
11102
+ * @memberof UsageHistoryTotalsDto
11103
+ */
11104
+ requests: number;
11105
+ }
11106
+ /**
11107
+ * Present only when `available` is `false`. `not_configured`: ANALYTICS_URL is unset. `forbidden`: DIAL Analytics refused the caller's token, or the caller's view of the usage log is not restricted to their own rows. `unavailable`: timeout, network error or server error.
11108
+ * @export
11109
+ */
11110
+ export declare const UsageHistoryUnavailableReason: {
11111
+ readonly NotConfigured: "not_configured";
11112
+ readonly Unavailable: "unavailable";
11113
+ readonly Forbidden: "forbidden";
11114
+ };
11115
+ export type UsageHistoryUnavailableReason = (typeof UsageHistoryUnavailableReason)[keyof typeof UsageHistoryUnavailableReason];
11116
+ /**
11117
+ *
11118
+ * @export
11119
+ * @interface UsageHistoryWindowDto
11120
+ */
11121
+ export interface UsageHistoryWindowDto {
11122
+ /**
11123
+ * The requested period.
11124
+ * @type {UsageHistoryPeriod}
11125
+ * @memberof UsageHistoryWindowDto
11126
+ */
11127
+ name: UsageHistoryPeriod;
11128
+ /**
11129
+ * Inclusive window start: 00:00:00.000Z of the current UTC day, ISO week Monday, or month 1st.
11130
+ * @type {string}
11131
+ * @memberof UsageHistoryWindowDto
11132
+ */
11133
+ from: string;
11134
+ /**
11135
+ * Exclusive window end: the request time.
11136
+ * @type {string}
11137
+ * @memberof UsageHistoryWindowDto
11138
+ */
11139
+ to: string;
11140
+ }
10921
11141
  /**
10922
11142
  *
10923
11143
  * @export
@@ -11063,6 +11283,61 @@ export interface UserProfileDto {
11063
11283
  */
11064
11284
  pictureUrl?: string;
11065
11285
  }
11286
+ /**
11287
+ *
11288
+ * @export
11289
+ * @interface UserUsageHistoryResponseDto
11290
+ */
11291
+ export interface UserUsageHistoryResponseDto {
11292
+ /**
11293
+ * Whether DIAL Analytics answered. `true`: `period`, `currency`, `totals`, `daily` and `byModel` are present (and `byClient` when the client-identity enrichment is available). `false`: only `reason` is present.
11294
+ * @type {boolean}
11295
+ * @memberof UserUsageHistoryResponseDto
11296
+ */
11297
+ available: boolean;
11298
+ /**
11299
+ * Present only when `available` is `false`. `not_configured`: ANALYTICS_URL is unset. `forbidden`: DIAL Analytics refused the caller's token, or the caller's view of the usage log is not restricted to their own rows. `unavailable`: timeout, network error or server error.
11300
+ * @type {UsageHistoryUnavailableReason}
11301
+ * @memberof UserUsageHistoryResponseDto
11302
+ */
11303
+ reason?: UsageHistoryUnavailableReason;
11304
+ /**
11305
+ * Present only when `available` is `true`. The half-open window `[from, to)`.
11306
+ * @type {UsageHistoryWindowDto}
11307
+ * @memberof UserUsageHistoryResponseDto
11308
+ */
11309
+ period?: UsageHistoryWindowDto;
11310
+ /**
11311
+ * Present only when `available` is `true`. Always `USD`: DIAL Analytics prices carry no currency.
11312
+ * @type {string}
11313
+ * @memberof UserUsageHistoryResponseDto
11314
+ */
11315
+ currency?: string;
11316
+ /**
11317
+ * Present only when `available` is `true`. Spend and requests of the whole window.
11318
+ * @type {UsageHistoryTotalsDto}
11319
+ * @memberof UserUsageHistoryResponseDto
11320
+ */
11321
+ totals?: UsageHistoryTotalsDto;
11322
+ /**
11323
+ * Present only when `available` is `true`. One entry per UTC date of the window, ascending, zero-filled.
11324
+ * @type {Array<UsageHistoryDailyEntryDto>}
11325
+ * @memberof UserUsageHistoryResponseDto
11326
+ */
11327
+ daily?: Array<UsageHistoryDailyEntryDto>;
11328
+ /**
11329
+ * Present only when `available` is `true`. Root deployments by spend descending, at most 10, followed by one `other` entry with the remainder when more than 10 have usage.
11330
+ * @type {Array<UsageHistoryModelEntryDto>}
11331
+ * @memberof UserUsageHistoryResponseDto
11332
+ */
11333
+ byModel?: Array<UsageHistoryModelEntryDto>;
11334
+ /**
11335
+ * Present only when `available` is `true` and DIAL Analytics exposes the client-identity enrichment to the caller; absent (not empty) otherwise. Sorted by spend descending.
11336
+ * @type {Array<UsageHistoryClientEntryDto>}
11337
+ * @memberof UserUsageHistoryResponseDto
11338
+ */
11339
+ byClient?: Array<UsageHistoryClientEntryDto>;
11340
+ }
11066
11341
  /**
11067
11342
  *
11068
11343
  * @export