@epam/ai-dial-chat-api-client 1.3.1 → 1.3.3

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.
@@ -10,10 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DialModelDto, DialModelListResponseDto } from '../models/index';
13
+ import type { DialModelDto, DialModelListResponseDto, ModelCatalogEntryDto, ModelCatalogListResponseDto } from '../models/index';
14
14
  export interface GetModelRequest {
15
15
  modelName: string;
16
16
  }
17
+ export interface GetModelCatalogEntryRequest {
18
+ modelName: string;
19
+ }
17
20
  /**
18
21
  *
19
22
  */
@@ -28,6 +31,26 @@ export declare class ModelsApi extends runtime.BaseAPI {
28
31
  * Get model by name
29
32
  */
30
33
  getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DialModelDto>;
34
+ /**
35
+ * Returns one model from the cached model catalog, without a separate DIAL Core call. A model hidden from the catalog key answers 404, never 403, so its existence is not revealed.
36
+ * Get a model from the catalog
37
+ */
38
+ getModelCatalogEntryRaw(requestParameters: GetModelCatalogEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ModelCatalogEntryDto>>;
39
+ /**
40
+ * Returns one model from the cached model catalog, without a separate DIAL Core call. A model hidden from the catalog key answers 404, never 403, so its existence is not revealed.
41
+ * Get a model from the catalog
42
+ */
43
+ getModelCatalogEntry(requestParameters: GetModelCatalogEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ModelCatalogEntryDto>;
44
+ /**
45
+ * Returns the DIAL Core models visible to the server-side MODEL_CATALOG_API_KEY, including models the caller\'s own roles cannot access. Display data only: GET /api/v1/models still decides what the user can use, and Core invocation settings (defaults, responses_defaults, max_retry_attempts, tokenizer_model) are omitted. One server-side cache entry, shared by all users, is kept for 5 minutes.
46
+ * List the model catalog
47
+ */
48
+ listModelCatalogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ModelCatalogListResponseDto>>;
49
+ /**
50
+ * Returns the DIAL Core models visible to the server-side MODEL_CATALOG_API_KEY, including models the caller\'s own roles cannot access. Display data only: GET /api/v1/models still decides what the user can use, and Core invocation settings (defaults, responses_defaults, max_retry_attempts, tokenizer_model) are omitted. One server-side cache entry, shared by all users, is kept for 5 minutes.
51
+ * List the model catalog
52
+ */
53
+ listModelCatalog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ModelCatalogListResponseDto>;
31
54
  /**
32
55
  * Returns the list of DIAL Core deployments visible to the authenticated session user. Proxies GET /openai/models using the caller\'s session access token. Results are cached server-side for 30 seconds per user.
33
56
  * List available models
@@ -1 +1 @@
1
- {"version":3,"file":"ModelsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ModelsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAC5C;;;OAGG;IACG,WAAW,CACf,iBAAiB,EAAE,eAAe,EAClC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAwC7C;;;OAGG;IACG,QAAQ,CACZ,iBAAiB,EAAE,eAAe,EAClC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,YAAY,CAAC;IAKxB;;;OAGG;IACG,aAAa,CACjB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;IA6BzD;;;OAGG;IACG,UAAU,CACd,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,wBAAwB,CAAC;CAIrC"}
1
+ {"version":3,"file":"ModelsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ModelsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAC5C;;;OAGG;IACG,WAAW,CACf,iBAAiB,EAAE,eAAe,EAClC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAwC7C;;;OAGG;IACG,QAAQ,CACZ,iBAAiB,EAAE,eAAe,EAClC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,YAAY,CAAC;IAKxB;;;OAGG;IACG,uBAAuB,CAC3B,iBAAiB,EAAE,2BAA2B,EAC9C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAwCrD;;;OAGG;IACG,oBAAoB,CACxB,iBAAiB,EAAE,2BAA2B,EAC9C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,oBAAoB,CAAC;IAQhC;;;OAGG;IACG,mBAAmB,CACvB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IA6B5D;;;OAGG;IACG,gBAAgB,CACpB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,2BAA2B,CAAC;IAKvC;;;OAGG;IACG,aAAa,CACjB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;IA6BzD;;;OAGG;IACG,UAAU,CACd,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,wBAAwB,CAAC;CAIrC"}
@@ -54,6 +54,72 @@ class ModelsApi extends runtime.BaseAPI {
54
54
  const response = await this.getModelRaw(requestParameters, initOverrides);
55
55
  return await response.value();
56
56
  }
57
+ /**
58
+ * Returns one model from the cached model catalog, without a separate DIAL Core call. A model hidden from the catalog key answers 404, never 403, so its existence is not revealed.
59
+ * Get a model from the catalog
60
+ */
61
+ async getModelCatalogEntryRaw(requestParameters, initOverrides) {
62
+ if (requestParameters['modelName'] == null) {
63
+ throw new runtime.RequiredError('modelName', 'Required parameter "modelName" was null or undefined when calling getModelCatalogEntry().');
64
+ }
65
+ const queryParameters = {};
66
+ const headerParameters = {};
67
+ if (this.configuration && this.configuration.accessToken) {
68
+ const token = this.configuration.accessToken;
69
+ const tokenString = await token('bearer', []);
70
+ if (tokenString) {
71
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
72
+ }
73
+ }
74
+ let urlPath = `/api/v1/model-catalog/{modelName}`;
75
+ urlPath = urlPath.replace(`{${'modelName'}}`, encodeURIComponent(String(requestParameters['modelName'])));
76
+ const response = await this.request({
77
+ path: urlPath,
78
+ method: 'GET',
79
+ headers: headerParameters,
80
+ query: queryParameters,
81
+ }, initOverrides);
82
+ return new runtime.JSONApiResponse(response);
83
+ }
84
+ /**
85
+ * Returns one model from the cached model catalog, without a separate DIAL Core call. A model hidden from the catalog key answers 404, never 403, so its existence is not revealed.
86
+ * Get a model from the catalog
87
+ */
88
+ async getModelCatalogEntry(requestParameters, initOverrides) {
89
+ const response = await this.getModelCatalogEntryRaw(requestParameters, initOverrides);
90
+ return await response.value();
91
+ }
92
+ /**
93
+ * Returns the DIAL Core models visible to the server-side MODEL_CATALOG_API_KEY, including models the caller\'s own roles cannot access. Display data only: GET /api/v1/models still decides what the user can use, and Core invocation settings (defaults, responses_defaults, max_retry_attempts, tokenizer_model) are omitted. One server-side cache entry, shared by all users, is kept for 5 minutes.
94
+ * List the model catalog
95
+ */
96
+ async listModelCatalogRaw(initOverrides) {
97
+ const queryParameters = {};
98
+ const headerParameters = {};
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ const token = this.configuration.accessToken;
101
+ const tokenString = await token('bearer', []);
102
+ if (tokenString) {
103
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
104
+ }
105
+ }
106
+ let urlPath = `/api/v1/model-catalog`;
107
+ const response = await this.request({
108
+ path: urlPath,
109
+ method: 'GET',
110
+ headers: headerParameters,
111
+ query: queryParameters,
112
+ }, initOverrides);
113
+ return new runtime.JSONApiResponse(response);
114
+ }
115
+ /**
116
+ * Returns the DIAL Core models visible to the server-side MODEL_CATALOG_API_KEY, including models the caller\'s own roles cannot access. Display data only: GET /api/v1/models still decides what the user can use, and Core invocation settings (defaults, responses_defaults, max_retry_attempts, tokenizer_model) are omitted. One server-side cache entry, shared by all users, is kept for 5 minutes.
117
+ * List the model catalog
118
+ */
119
+ async listModelCatalog(initOverrides) {
120
+ const response = await this.listModelCatalogRaw(initOverrides);
121
+ return await response.value();
122
+ }
57
123
  /**
58
124
  * Returns the list of DIAL Core deployments visible to the authenticated session user. Proxies GET /openai/models using the caller\'s session access token. Results are cached server-side for 30 seconds per user.
59
125
  * List available models
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Chat API
3
+ * REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { OrgUnitsResponseDto } from '../models/index';
14
+ /**
15
+ *
16
+ */
17
+ export declare class OrgUnitsApi extends runtime.BaseAPI {
18
+ /**
19
+ * Returns the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
20
+ * List the org units visible to the caller
21
+ */
22
+ listOrgUnitsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrgUnitsResponseDto>>;
23
+ /**
24
+ * Returns the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
25
+ * List the org units visible to the caller
26
+ */
27
+ listOrgUnits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrgUnitsResponseDto>;
28
+ }
29
+ //# sourceMappingURL=OrgUnitsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrgUnitsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/OrgUnitsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAC9C;;;OAGG;IACG,eAAe,CACnB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IA6BpD;;;OAGG;IACG,YAAY,CAChB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,mBAAmB,CAAC;CAIhC"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Chat API
6
+ * REST API for the chat application. Provides endpoints for theme configuration, authentication, and management. All endpoints return appropriate HTTP status codes (200, 400, 401, 403, 404, 502, 503) with descriptive error messages.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrgUnitsApi = void 0;
17
+ const runtime = require("../runtime");
18
+ /**
19
+ *
20
+ */
21
+ class OrgUnitsApi extends runtime.BaseAPI {
22
+ /**
23
+ * Returns the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
24
+ * List the org units visible to the caller
25
+ */
26
+ async listOrgUnitsRaw(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/org-units`;
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 the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
47
+ * List the org units visible to the caller
48
+ */
49
+ async listOrgUnits(initOverrides) {
50
+ const response = await this.listOrgUnitsRaw(initOverrides);
51
+ return await response.value();
52
+ }
53
+ }
54
+ exports.OrgUnitsApi = OrgUnitsApi;
@@ -12,6 +12,7 @@ export * from './FilesApi';
12
12
  export * from './HealthApi';
13
13
  export * from './ModelsApi';
14
14
  export * from './OfflineCredentialsApi';
15
+ export * from './OrgUnitsApi';
15
16
  export * from './ProjectsApi';
16
17
  export * from './PromptsApi';
17
18
  export * from './PublishApi';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -17,6 +17,7 @@ tslib_1.__exportStar(require("./FilesApi"), exports);
17
17
  tslib_1.__exportStar(require("./HealthApi"), exports);
18
18
  tslib_1.__exportStar(require("./ModelsApi"), exports);
19
19
  tslib_1.__exportStar(require("./OfflineCredentialsApi"), exports);
20
+ tslib_1.__exportStar(require("./OrgUnitsApi"), exports);
20
21
  tslib_1.__exportStar(require("./ProjectsApi"), exports);
21
22
  tslib_1.__exportStar(require("./PromptsApi"), exports);
22
23
  tslib_1.__exportStar(require("./PublishApi"), exports);
@@ -299,6 +299,12 @@ export interface AnnouncementItemDto {
299
299
  * @memberof AnnouncementItemDto
300
300
  */
301
301
  link: AnnouncementLinkDto | null;
302
+ /**
303
+ * How urgent the announcement is, for clients that mark maintenance or outage notices. Always present: an entry configured without one, or with an unrecognized value, is returned as `info`. Clients should treat a value they do not recognize as `info`, since more levels may be added.
304
+ * @type {AnnouncementSeverity}
305
+ * @memberof AnnouncementItemDto
306
+ */
307
+ severity: AnnouncementSeverity;
302
308
  }
303
309
  /**
304
310
  *
@@ -319,6 +325,15 @@ export interface AnnouncementLinkDto {
319
325
  */
320
326
  href: string;
321
327
  }
328
+ /**
329
+ * How urgent the announcement is, for clients that mark maintenance or outage notices. Always present: an entry configured without one, or with an unrecognized value, is returned as `info`. Clients should treat a value they do not recognize as `info`, since more levels may be added.
330
+ * @export
331
+ */
332
+ export declare const AnnouncementSeverity: {
333
+ readonly Info: "info";
334
+ readonly Warning: "warning";
335
+ };
336
+ export type AnnouncementSeverity = (typeof AnnouncementSeverity)[keyof typeof AnnouncementSeverity];
322
337
  /**
323
338
  *
324
339
  * @export
@@ -919,6 +934,49 @@ export declare const BackgroundGenerationStatus: {
919
934
  readonly Failed: "failed";
920
935
  };
921
936
  export type BackgroundGenerationStatus = (typeof BackgroundGenerationStatus)[keyof typeof BackgroundGenerationStatus];
937
+ /**
938
+ *
939
+ * @export
940
+ * @interface BudgetStatsDto
941
+ */
942
+ export interface BudgetStatsDto {
943
+ /**
944
+ * The cost object the budget applies in. A cost object can hold several budgets, so more than one entry may carry the same value.
945
+ * @type {string}
946
+ * @memberof BudgetStatsDto
947
+ */
948
+ costObject: string;
949
+ /**
950
+ * The path of the budget's policy.
951
+ * @type {string}
952
+ * @memberof BudgetStatsDto
953
+ */
954
+ policy: string;
955
+ /**
956
+ * The priority of the budget's policy, lower first; absent when the policy sets none.
957
+ * @type {number}
958
+ * @memberof BudgetStatsDto
959
+ */
960
+ priority?: number;
961
+ /**
962
+ * The human-readable name of the budget's policy; absent when the policy sets none. Use `policy` as the identifier — the display name need not be unique.
963
+ * @type {string}
964
+ * @memberof BudgetStatsDto
965
+ */
966
+ displayName?: string;
967
+ /**
968
+ * The budget's limit and the caller's spend against it for the current UTC day. A `total` at or above 9007199254740992 (2^53) is the unlimited sentinel — see UserLimitStatsResponseDto.minuteCostStats.
969
+ * @type {LimitStatsDto}
970
+ * @memberof BudgetStatsDto
971
+ */
972
+ day: LimitStatsDto;
973
+ /**
974
+ * The budget's limit and the caller's spend against it for the current UTC month. A `total` at or above 9007199254740992 (2^53) is the unlimited sentinel — see UserLimitStatsResponseDto.minuteCostStats.
975
+ * @type {LimitStatsDto}
976
+ * @memberof BudgetStatsDto
977
+ */
978
+ month: LimitStatsDto;
979
+ }
922
980
  /**
923
981
  *
924
982
  * @export
@@ -1840,6 +1898,12 @@ export interface ClientConfigDto {
1840
1898
  * @memberof ClientConfigDto
1841
1899
  */
1842
1900
  catalogCreationPermissions: CatalogCreationPermissionsDto;
1901
+ /**
1902
+ * Whether GET /api/v1/model-catalog is configured (MODEL_CATALOG_API_KEY is set). Missing means unavailable. Never carries the key.
1903
+ * @type {boolean}
1904
+ * @memberof ClientConfigDto
1905
+ */
1906
+ modelCatalogAvailable?: boolean;
1843
1907
  }
1844
1908
  /**
1845
1909
  * @export
@@ -4459,6 +4523,14 @@ export interface DialModelDto {
4459
4523
  responsesDefaults?: {
4460
4524
  [key: string]: unknown;
4461
4525
  };
4526
+ /**
4527
+ * Curated catalog display metadata from DIAL Core, forwarded as sent
4528
+ * @type {{ [key: string]: unknown }}
4529
+ * @memberof DialModelDto
4530
+ */
4531
+ catalogProperties?: {
4532
+ [key: string]: unknown;
4533
+ };
4462
4534
  /**
4463
4535
  *
4464
4536
  * @type {Array<string>}
@@ -4477,6 +4549,24 @@ export interface DialModelDto {
4477
4549
  * @memberof DialModelDto
4478
4550
  */
4479
4551
  lifecycleStatus?: string;
4552
+ /**
4553
+ * Provider that hosts the model, free-form text forwarded from DIAL Core unvalidated
4554
+ * @type {string}
4555
+ * @memberof DialModelDto
4556
+ */
4557
+ provider?: string;
4558
+ /**
4559
+ * Date the model is deprecated but still served, documented by DIAL Core as YYYY-MM-DD and forwarded unvalidated
4560
+ * @type {string}
4561
+ * @memberof DialModelDto
4562
+ */
4563
+ deprecationDate?: string;
4564
+ /**
4565
+ * Date the provider stops serving the model, documented by DIAL Core as YYYY-MM-DD and forwarded unvalidated
4566
+ * @type {string}
4567
+ * @memberof DialModelDto
4568
+ */
4569
+ endOfService?: string;
4480
4570
  /**
4481
4571
  *
4482
4572
  * @type {DialModelCapabilitiesDto}
@@ -6304,15 +6394,179 @@ export interface ModelCapabilitiesDto {
6304
6394
  /**
6305
6395
  *
6306
6396
  * @export
6307
- * @interface ModelCatalogPropertiesDto
6397
+ * @interface ModelCatalogEntryDto
6308
6398
  */
6309
- export interface ModelCatalogPropertiesDto {
6399
+ export interface ModelCatalogEntryDto {
6310
6400
  /**
6311
- * Model provider for catalog display
6401
+ *
6312
6402
  * @type {string}
6313
- * @memberof ModelCatalogPropertiesDto
6403
+ * @memberof ModelCatalogEntryDto
6404
+ */
6405
+ id: string;
6406
+ /**
6407
+ *
6408
+ * @type {string}
6409
+ * @memberof ModelCatalogEntryDto
6410
+ */
6411
+ object: string;
6412
+ /**
6413
+ *
6414
+ * @type {string}
6415
+ * @memberof ModelCatalogEntryDto
6416
+ */
6417
+ model?: string;
6418
+ /**
6419
+ *
6420
+ * @type {DialModelDtoDisplayName}
6421
+ * @memberof ModelCatalogEntryDto
6422
+ */
6423
+ displayName?: DialModelDtoDisplayName;
6424
+ /**
6425
+ *
6426
+ * @type {string}
6427
+ * @memberof ModelCatalogEntryDto
6428
+ */
6429
+ displayVersion?: string;
6430
+ /**
6431
+ *
6432
+ * @type {string}
6433
+ * @memberof ModelCatalogEntryDto
6434
+ */
6435
+ iconUrl?: string;
6436
+ /**
6437
+ *
6438
+ * @type {DialModelDtoDescription}
6439
+ * @memberof ModelCatalogEntryDto
6440
+ */
6441
+ description?: DialModelDtoDescription;
6442
+ /**
6443
+ *
6444
+ * @type {string}
6445
+ * @memberof ModelCatalogEntryDto
6446
+ */
6447
+ reference?: string;
6448
+ /**
6449
+ *
6450
+ * @type {string}
6451
+ * @memberof ModelCatalogEntryDto
6452
+ */
6453
+ owner?: string;
6454
+ /**
6455
+ *
6456
+ * @type {string}
6457
+ * @memberof ModelCatalogEntryDto
6458
+ */
6459
+ status?: string;
6460
+ /**
6461
+ *
6462
+ * @type {number}
6463
+ * @memberof ModelCatalogEntryDto
6464
+ */
6465
+ createdAt?: number;
6466
+ /**
6467
+ *
6468
+ * @type {number}
6469
+ * @memberof ModelCatalogEntryDto
6470
+ */
6471
+ updatedAt?: number;
6472
+ /**
6473
+ *
6474
+ * @type {DialModelFeaturesDto}
6475
+ * @memberof ModelCatalogEntryDto
6476
+ */
6477
+ features?: DialModelFeaturesDto;
6478
+ /**
6479
+ *
6480
+ * @type {Array<string>}
6481
+ * @memberof ModelCatalogEntryDto
6482
+ */
6483
+ inputAttachmentTypes?: Array<string>;
6484
+ /**
6485
+ *
6486
+ * @type {number}
6487
+ * @memberof ModelCatalogEntryDto
6488
+ */
6489
+ maxInputAttachments?: number;
6490
+ /**
6491
+ *
6492
+ * @type {Array<string>}
6493
+ * @memberof ModelCatalogEntryDto
6494
+ */
6495
+ descriptionKeywords?: Array<string>;
6496
+ /**
6497
+ *
6498
+ * @type {string}
6499
+ * @memberof ModelCatalogEntryDto
6500
+ */
6501
+ lifecycleStatus?: string;
6502
+ /**
6503
+ * Provider that hosts the model, free-form text forwarded from DIAL Core unvalidated
6504
+ * @type {string}
6505
+ * @memberof ModelCatalogEntryDto
6314
6506
  */
6315
6507
  provider?: string;
6508
+ /**
6509
+ * Date the model is deprecated but still served, documented by DIAL Core as YYYY-MM-DD and forwarded unvalidated
6510
+ * @type {string}
6511
+ * @memberof ModelCatalogEntryDto
6512
+ */
6513
+ deprecationDate?: string;
6514
+ /**
6515
+ * Date the provider stops serving the model, documented by DIAL Core as YYYY-MM-DD and forwarded unvalidated
6516
+ * @type {string}
6517
+ * @memberof ModelCatalogEntryDto
6518
+ */
6519
+ endOfService?: string;
6520
+ /**
6521
+ *
6522
+ * @type {DialModelCapabilitiesDto}
6523
+ * @memberof ModelCatalogEntryDto
6524
+ */
6525
+ capabilities?: DialModelCapabilitiesDto;
6526
+ /**
6527
+ *
6528
+ * @type {DialModelLimitsDto}
6529
+ * @memberof ModelCatalogEntryDto
6530
+ */
6531
+ limits?: DialModelLimitsDto;
6532
+ /**
6533
+ *
6534
+ * @type {DialModelPricingDto}
6535
+ * @memberof ModelCatalogEntryDto
6536
+ */
6537
+ pricing?: DialModelPricingDto;
6538
+ /**
6539
+ *
6540
+ * @type {Array<string>}
6541
+ * @memberof ModelCatalogEntryDto
6542
+ */
6543
+ interfaces?: Array<string>;
6544
+ /**
6545
+ * Known model catalog properties allow-listed from DIAL Core catalog_properties
6546
+ * @type {ModelCatalogPropertiesDto}
6547
+ * @memberof ModelCatalogEntryDto
6548
+ */
6549
+ catalogProperties?: ModelCatalogPropertiesDto;
6550
+ }
6551
+ /**
6552
+ *
6553
+ * @export
6554
+ * @interface ModelCatalogListResponseDto
6555
+ */
6556
+ export interface ModelCatalogListResponseDto {
6557
+ /**
6558
+ *
6559
+ * @type {Array<ModelCatalogEntryDto>}
6560
+ * @memberof ModelCatalogListResponseDto
6561
+ */
6562
+ data: Array<ModelCatalogEntryDto>;
6563
+ }
6564
+ /**
6565
+ *
6566
+ * @export
6567
+ * @interface ModelCatalogPropertiesDto
6568
+ */
6569
+ export interface ModelCatalogPropertiesDto {
6316
6570
  /**
6317
6571
  * Model vendor for catalog display
6318
6572
  * @type {string}
@@ -6356,6 +6610,24 @@ export interface ModelDetailsDto {
6356
6610
  * @memberof ModelDetailsDto
6357
6611
  */
6358
6612
  lifecycleStatus?: string;
6613
+ /**
6614
+ * Provider that hosts the model, free-form text forwarded from DIAL Core unvalidated
6615
+ * @type {string}
6616
+ * @memberof ModelDetailsDto
6617
+ */
6618
+ provider?: string;
6619
+ /**
6620
+ * Date the model is deprecated but still served, documented by DIAL Core as YYYY-MM-DD and forwarded unvalidated
6621
+ * @type {string}
6622
+ * @memberof ModelDetailsDto
6623
+ */
6624
+ deprecationDate?: string;
6625
+ /**
6626
+ * Date the provider stops serving the model, documented by DIAL Core as YYYY-MM-DD and forwarded unvalidated
6627
+ * @type {string}
6628
+ * @memberof ModelDetailsDto
6629
+ */
6630
+ endOfService?: string;
6359
6631
  /**
6360
6632
  * Name of the model whose tokenization algorithm this model uses
6361
6633
  * @type {string}
@@ -6718,6 +6990,62 @@ export interface OfflineCredentialsSigninBodyDto {
6718
6990
  */
6719
6991
  redirectUri: string;
6720
6992
  }
6993
+ /**
6994
+ *
6995
+ * @export
6996
+ * @interface OrgUnitDto
6997
+ */
6998
+ export interface OrgUnitDto {
6999
+ /**
7000
+ * Core unit id
7001
+ * @type {string}
7002
+ * @memberof OrgUnitDto
7003
+ */
7004
+ id: string;
7005
+ /**
7006
+ * Unit name; also the last segment of its folder
7007
+ * @type {string}
7008
+ * @memberof OrgUnitDto
7009
+ */
7010
+ name: string;
7011
+ /**
7012
+ * Display name; falls back to `name` when Core has none
7013
+ * @type {string}
7014
+ * @memberof OrgUnitDto
7015
+ */
7016
+ displayName: string;
7017
+ /**
7018
+ * Decoded unit address without a trailing slash
7019
+ * @type {string}
7020
+ * @memberof OrgUnitDto
7021
+ */
7022
+ path: string;
7023
+ /**
7024
+ * Unit folder exactly as DIAL Core returns it: url-encoded, with a trailing slash
7025
+ * @type {string}
7026
+ * @memberof OrgUnitDto
7027
+ */
7028
+ folder: string;
7029
+ }
7030
+ /**
7031
+ *
7032
+ * @export
7033
+ * @interface OrgUnitsResponseDto
7034
+ */
7035
+ export interface OrgUnitsResponseDto {
7036
+ /**
7037
+ * `false` when DIAL Core has org units turned off
7038
+ * @type {boolean}
7039
+ * @memberof OrgUnitsResponseDto
7040
+ */
7041
+ enabled: boolean;
7042
+ /**
7043
+ *
7044
+ * @type {Array<OrgUnitDto>}
7045
+ * @memberof OrgUnitsResponseDto
7046
+ */
7047
+ units: Array<OrgUnitDto>;
7048
+ }
6721
7049
  /**
6722
7050
  *
6723
7051
  * @export
@@ -10240,6 +10568,12 @@ export interface UserLimitStatsResponseDto {
10240
10568
  * @memberof UserLimitStatsResponseDto
10241
10569
  */
10242
10570
  monthCostStats?: LimitStatsDto;
10571
+ /**
10572
+ * The caller's spend against each spending budget that applies to them, in DIAL Core's order. A cost object can hold several budgets, so entries may share a `costObject`. The budgets are reported separately from, and are not merged into, the top-level `minuteCostStats`/`dayCostStats`/`weekCostStats`/`monthCostStats`. An empty array means DIAL Core reported no applicable budget (spending limits are off, no budget matches the caller, or the caller is an API key); an absent field means DIAL Core does not report budgets at all (an older DIAL Core). A window `total` at or above 9007199254740992 (2^53) represents the upstream "unlimited" sentinel (`Long.MAX_VALUE`, which exceeds `Number.MAX_SAFE_INTEGER`) and must be treated as unlimited rather than rendered as a used/total ratio. The BFF forwards the array verbatim.
10573
+ * @type {Array<BudgetStatsDto>}
10574
+ * @memberof UserLimitStatsResponseDto
10575
+ */
10576
+ budgets?: Array<BudgetStatsDto>;
10243
10577
  }
10244
10578
  /**
10245
10579
  *