@epam/ai-dial-chat-api-client 1.2.0-dev.28 → 1.2.0-dev.282

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.
Files changed (31) hide show
  1. package/generated/src/apis/CustomApiApi.d.ts +32 -0
  2. package/generated/src/apis/CustomApiApi.d.ts.map +1 -0
  3. package/generated/src/apis/CustomApiApi.js +51 -0
  4. package/generated/src/apis/ExternalServicesApi.d.ts +14 -1
  5. package/generated/src/apis/ExternalServicesApi.d.ts.map +1 -1
  6. package/generated/src/apis/ExternalServicesApi.js +28 -0
  7. package/generated/src/apis/FilesApi.d.ts +8 -0
  8. package/generated/src/apis/FilesApi.d.ts.map +1 -1
  9. package/generated/src/apis/FilesApi.js +27 -0
  10. package/generated/src/apis/PublishApi.d.ts +2 -2
  11. package/generated/src/apis/PublishApi.js +2 -2
  12. package/generated/src/apis/ScheduledTasksApi.d.ts +32 -5
  13. package/generated/src/apis/ScheduledTasksApi.d.ts.map +1 -1
  14. package/generated/src/apis/ScheduledTasksApi.js +64 -4
  15. package/generated/src/apis/SkillsApi.d.ts +15 -1
  16. package/generated/src/apis/SkillsApi.d.ts.map +1 -1
  17. package/generated/src/apis/SkillsApi.js +36 -0
  18. package/generated/src/apis/TextRefinementApi.d.ts +32 -0
  19. package/generated/src/apis/TextRefinementApi.d.ts.map +1 -0
  20. package/generated/src/apis/TextRefinementApi.js +52 -0
  21. package/generated/src/apis/UserApi.d.ts +30 -8
  22. package/generated/src/apis/UserApi.d.ts.map +1 -1
  23. package/generated/src/apis/UserApi.js +31 -11
  24. package/generated/src/apis/index.d.ts +2 -0
  25. package/generated/src/apis/index.d.ts.map +1 -1
  26. package/generated/src/apis/index.js +2 -0
  27. package/generated/src/models/index.d.ts +434 -12
  28. package/generated/src/models/index.d.ts.map +1 -1
  29. package/generated/src/models/index.js +49 -1
  30. package/package.json +1 -1
  31. package/tsconfig.lib.tsbuildinfo +1 -1
@@ -0,0 +1,32 @@
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 { RefineTextRequestDto, RefineTextResponseDto } from '../models/index';
14
+ export interface RefineTextRequest {
15
+ refineTextRequestDto: RefineTextRequestDto;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class TextRefinementApi extends runtime.BaseAPI {
21
+ /**
22
+ * Rewrite one field using a server-owned prompt and the caller credentials. Does not save or cache drafts. Scheduled-task purposes require scheduled-task access.
23
+ * Refine an authoring draft
24
+ */
25
+ refineTextRaw(requestParameters: RefineTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RefineTextResponseDto>>;
26
+ /**
27
+ * Rewrite one field using a server-owned prompt and the caller credentials. Does not save or cache drafts. Scheduled-task purposes require scheduled-task access.
28
+ * Refine an authoring draft
29
+ */
30
+ refineText(requestParameters: RefineTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RefineTextResponseDto>;
31
+ }
32
+ //# sourceMappingURL=TextRefinementApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextRefinementApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/TextRefinementApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,iBAAiB;IAChC,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,OAAO,CAAC,OAAO;IACpD;;;OAGG;IACG,aAAa,CACjB,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IA8BtD;;;OAGG;IACG,UAAU,CACd,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,qBAAqB,CAAC;CAIlC"}
@@ -0,0 +1,52 @@
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.TextRefinementApi = void 0;
17
+ const runtime = require("../runtime");
18
+ /**
19
+ *
20
+ */
21
+ class TextRefinementApi extends runtime.BaseAPI {
22
+ /**
23
+ * Rewrite one field using a server-owned prompt and the caller credentials. Does not save or cache drafts. Scheduled-task purposes require scheduled-task access.
24
+ * Refine an authoring draft
25
+ */
26
+ async refineTextRaw(requestParameters, initOverrides) {
27
+ if (requestParameters['refineTextRequestDto'] == null) {
28
+ throw new runtime.RequiredError('refineTextRequestDto', 'Required parameter "refineTextRequestDto" was null or undefined when calling refineText().');
29
+ }
30
+ const queryParameters = {};
31
+ const headerParameters = {};
32
+ headerParameters['Content-Type'] = 'application/json';
33
+ let urlPath = `/api/v1/text-refinement`;
34
+ const response = await this.request({
35
+ path: urlPath,
36
+ method: 'POST',
37
+ headers: headerParameters,
38
+ query: queryParameters,
39
+ body: requestParameters['refineTextRequestDto'],
40
+ }, initOverrides);
41
+ return new runtime.JSONApiResponse(response);
42
+ }
43
+ /**
44
+ * Rewrite one field using a server-owned prompt and the caller credentials. Does not save or cache drafts. Scheduled-task purposes require scheduled-task access.
45
+ * Refine an authoring draft
46
+ */
47
+ async refineText(requestParameters, initOverrides) {
48
+ const response = await this.refineTextRaw(requestParameters, initOverrides);
49
+ return await response.value();
50
+ }
51
+ }
52
+ exports.TextRefinementApi = TextRefinementApi;
@@ -11,29 +11,51 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { UserLimitStatsResponseDto } from '../models/index';
14
+ export interface GetUserLimitsRequest {
15
+ deploymentTypes?: Array<GetUserLimitsDeploymentTypesEnum>;
16
+ }
17
+ export interface GetUserUsageRequest {
18
+ deploymentTypes?: Array<GetUserUsageDeploymentTypesEnum>;
19
+ }
14
20
  /**
15
21
  *
16
22
  */
17
23
  export declare class UserApi extends runtime.BaseAPI {
18
24
  /**
19
- * Returns rate-limit and calendar-period usage statistics for every model deployment visible to the caller, plus the caller\'s global cost-budget figures. 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.
25
+ * 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.
20
26
  * Get aggregate usage limits for every visible deployment
21
27
  */
22
- getUserLimitsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLimitStatsResponseDto>>;
28
+ getUserLimitsRaw(requestParameters: GetUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLimitStatsResponseDto>>;
23
29
  /**
24
- * Returns rate-limit and calendar-period usage statistics for every model deployment visible to the caller, plus the caller\'s global cost-budget figures. 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.
30
+ * 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.
25
31
  * Get aggregate usage limits for every visible deployment
26
32
  */
27
- getUserLimits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLimitStatsResponseDto>;
33
+ getUserLimits(requestParameters?: GetUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLimitStatsResponseDto>;
28
34
  /**
29
- * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
35
+ * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. `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 are not additive. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
30
36
  * Get usage limits for deployments used in the current calendar periods
31
37
  */
32
- getUserUsageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLimitStatsResponseDto>>;
38
+ getUserUsageRaw(requestParameters: GetUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLimitStatsResponseDto>>;
33
39
  /**
34
- * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
40
+ * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. `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 are not additive. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
35
41
  * Get usage limits for deployments used in the current calendar periods
36
42
  */
37
- getUserUsage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLimitStatsResponseDto>;
43
+ getUserUsage(requestParameters?: GetUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLimitStatsResponseDto>;
38
44
  }
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const GetUserLimitsDeploymentTypesEnum: {
49
+ readonly Model: "model";
50
+ readonly Application: "application";
51
+ };
52
+ export type GetUserLimitsDeploymentTypesEnum = (typeof GetUserLimitsDeploymentTypesEnum)[keyof typeof GetUserLimitsDeploymentTypesEnum];
53
+ /**
54
+ * @export
55
+ */
56
+ export declare const GetUserUsageDeploymentTypesEnum: {
57
+ readonly Model: "model";
58
+ readonly Application: "application";
59
+ };
60
+ export type GetUserUsageDeploymentTypesEnum = (typeof GetUserUsageDeploymentTypesEnum)[keyof typeof GetUserUsageDeploymentTypesEnum];
39
61
  //# sourceMappingURL=UserApi.d.ts.map
@@ -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;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAC1C;;;OAGG;IACG,gBAAgB,CACpB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAoB1D;;;OAGG;IACG,aAAa,CACjB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,yBAAyB,CAAC;IAKrC;;;OAGG;IACG,eAAe,CACnB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAoB1D;;;OAGG;IACG,YAAY,CAChB,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,yBAAyB,CAAC;CAItC"}
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,mBAAmB;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,CAAC;CAC1D;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAC1C;;;OAGG;IACG,gBAAgB,CACpB,iBAAiB,EAAE,oBAAoB,EACvC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAwB1D;;;OAGG;IACG,aAAa,CACjB,iBAAiB,GAAE,oBAAyB,EAC5C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,yBAAyB,CAAC;IAQrC;;;OAGG;IACG,eAAe,CACnB,iBAAiB,EAAE,mBAAmB,EACtC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAwB1D;;;OAGG;IACG,YAAY,CAChB,iBAAiB,GAAE,mBAAwB,EAC3C,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,yBAAyB,CAAC;CAOtC;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"}
@@ -13,18 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UserApi = void 0;
16
+ exports.GetUserUsageDeploymentTypesEnum = exports.GetUserLimitsDeploymentTypesEnum = exports.UserApi = void 0;
17
17
  const runtime = require("../runtime");
18
18
  /**
19
19
  *
20
20
  */
21
21
  class UserApi extends runtime.BaseAPI {
22
22
  /**
23
- * Returns rate-limit and calendar-period usage statistics for every model deployment visible to the caller, plus the caller\'s global cost-budget figures. 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.
23
+ * 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
24
  * Get aggregate usage limits for every visible deployment
25
25
  */
26
- async getUserLimitsRaw(initOverrides) {
26
+ async getUserLimitsRaw(requestParameters, initOverrides) {
27
27
  const queryParameters = {};
28
+ if (requestParameters['deploymentTypes'] != null) {
29
+ queryParameters['deploymentTypes'] = requestParameters['deploymentTypes'];
30
+ }
28
31
  const headerParameters = {};
29
32
  let urlPath = `/api/v1/user/limits`;
30
33
  const response = await this.request({
@@ -36,19 +39,22 @@ class UserApi extends runtime.BaseAPI {
36
39
  return new runtime.JSONApiResponse(response);
37
40
  }
38
41
  /**
39
- * Returns rate-limit and calendar-period usage statistics for every model deployment visible to the caller, plus the caller\'s global cost-budget figures. 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.
42
+ * 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.
40
43
  * Get aggregate usage limits for every visible deployment
41
44
  */
42
- async getUserLimits(initOverrides) {
43
- const response = await this.getUserLimitsRaw(initOverrides);
45
+ async getUserLimits(requestParameters = {}, initOverrides) {
46
+ const response = await this.getUserLimitsRaw(requestParameters, initOverrides);
44
47
  return await response.value();
45
48
  }
46
49
  /**
47
- * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
50
+ * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. `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 are not additive. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
48
51
  * Get usage limits for deployments used in the current calendar periods
49
52
  */
50
- async getUserUsageRaw(initOverrides) {
53
+ async getUserUsageRaw(requestParameters, initOverrides) {
51
54
  const queryParameters = {};
55
+ if (requestParameters['deploymentTypes'] != null) {
56
+ queryParameters['deploymentTypes'] = requestParameters['deploymentTypes'];
57
+ }
52
58
  const headerParameters = {};
53
59
  let urlPath = `/api/v1/user/usage`;
54
60
  const response = await this.request({
@@ -60,12 +66,26 @@ class UserApi extends runtime.BaseAPI {
60
66
  return new runtime.JSONApiResponse(response);
61
67
  }
62
68
  /**
63
- * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
69
+ * Returns the same shape as GET /user/limits, restricted to deployments the caller actually used within the currently reported calendar periods (the current UTC day, week, and month). Each day, week, and month stat may carry a `resetsAt` instant, which the response forwards verbatim from DIAL Core. `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 are not additive. Proxies GET /v1/user/usage using the caller\'s session access token. Not cached — every request hits DIAL Core for real-time usage data.
64
70
  * Get usage limits for deployments used in the current calendar periods
65
71
  */
66
- async getUserUsage(initOverrides) {
67
- const response = await this.getUserUsageRaw(initOverrides);
72
+ async getUserUsage(requestParameters = {}, initOverrides) {
73
+ const response = await this.getUserUsageRaw(requestParameters, initOverrides);
68
74
  return await response.value();
69
75
  }
70
76
  }
71
77
  exports.UserApi = UserApi;
78
+ /**
79
+ * @export
80
+ */
81
+ exports.GetUserLimitsDeploymentTypesEnum = {
82
+ Model: 'model',
83
+ Application: 'application',
84
+ };
85
+ /**
86
+ * @export
87
+ */
88
+ exports.GetUserUsageDeploymentTypesEnum = {
89
+ Model: 'model',
90
+ Application: 'application',
91
+ };
@@ -4,6 +4,7 @@ export * from './AuthApi';
4
4
  export * from './ChatApi';
5
5
  export * from './ClientChannelApi';
6
6
  export * from './ConversationsApi';
7
+ export * from './CustomApiApi';
7
8
  export * from './DeploymentsApi';
8
9
  export * from './ExternalServicesApi';
9
10
  export * from './FilesApi';
@@ -16,6 +17,7 @@ export * from './RateApi';
16
17
  export * from './ScheduledTasksApi';
17
18
  export * from './ShareApi';
18
19
  export * from './SkillsApi';
20
+ export * from './TextRefinementApi';
19
21
  export * from './ThemesApi';
20
22
  export * from './ToolsetsApi';
21
23
  export * from './TranscriptionApi';
@@ -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,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,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,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,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,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,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"}
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./AuthApi"), exports);
9
9
  tslib_1.__exportStar(require("./ChatApi"), exports);
10
10
  tslib_1.__exportStar(require("./ClientChannelApi"), exports);
11
11
  tslib_1.__exportStar(require("./ConversationsApi"), exports);
12
+ tslib_1.__exportStar(require("./CustomApiApi"), exports);
12
13
  tslib_1.__exportStar(require("./DeploymentsApi"), exports);
13
14
  tslib_1.__exportStar(require("./ExternalServicesApi"), exports);
14
15
  tslib_1.__exportStar(require("./FilesApi"), exports);
@@ -21,6 +22,7 @@ tslib_1.__exportStar(require("./RateApi"), exports);
21
22
  tslib_1.__exportStar(require("./ScheduledTasksApi"), exports);
22
23
  tslib_1.__exportStar(require("./ShareApi"), exports);
23
24
  tslib_1.__exportStar(require("./SkillsApi"), exports);
25
+ tslib_1.__exportStar(require("./TextRefinementApi"), exports);
24
26
  tslib_1.__exportStar(require("./ThemesApi"), exports);
25
27
  tslib_1.__exportStar(require("./ToolsetsApi"), exports);
26
28
  tslib_1.__exportStar(require("./TranscriptionApi"), exports);