@lumoauth/api-client 1.2.0 → 1.4.0

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 (120) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +17 -4
  3. package/api/admin-agents-api.ts +130 -0
  4. package/api/admin-email-api.ts +67 -15
  5. package/api/admin-oauth-clients-api.ts +370 -0
  6. package/api/agents-api.ts +118 -0
  7. package/api/oauth-api.ts +0 -186
  8. package/dist/api/admin-agents-api.d.ts +73 -0
  9. package/dist/api/admin-agents-api.js +82 -0
  10. package/dist/api/admin-email-api.d.ts +41 -9
  11. package/dist/api/admin-email-api.js +34 -14
  12. package/dist/api/admin-oauth-clients-api.d.ts +210 -0
  13. package/dist/api/admin-oauth-clients-api.js +236 -0
  14. package/dist/api/agents-api.d.ts +65 -0
  15. package/dist/api/agents-api.js +77 -0
  16. package/dist/api/oauth-api.d.ts +0 -110
  17. package/dist/api/oauth-api.js +0 -132
  18. package/dist/esm/api/admin-agents-api.d.ts +73 -0
  19. package/dist/esm/api/admin-agents-api.js +82 -0
  20. package/dist/esm/api/admin-email-api.d.ts +41 -9
  21. package/dist/esm/api/admin-email-api.js +34 -14
  22. package/dist/esm/api/admin-oauth-clients-api.d.ts +210 -0
  23. package/dist/esm/api/admin-oauth-clients-api.js +236 -0
  24. package/dist/esm/api/agents-api.d.ts +65 -0
  25. package/dist/esm/api/agents-api.js +77 -0
  26. package/dist/esm/api/oauth-api.d.ts +0 -110
  27. package/dist/esm/api/oauth-api.js +0 -132
  28. package/dist/esm/models/abac-attribute-definition.d.ts +1 -1
  29. package/dist/esm/models/abac-resource-attribute.d.ts +1 -1
  30. package/dist/esm/models/admin-agents-report-usage-request.d.ts +30 -0
  31. package/dist/esm/models/admin-agents-report-usage-request.js +14 -0
  32. package/dist/esm/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
  33. package/dist/esm/models/admin-agents-report-usage-response-data-recorded.js +14 -0
  34. package/dist/esm/models/admin-agents-report-usage-response-data.d.ts +33 -0
  35. package/dist/esm/models/admin-agents-report-usage-response-data.js +14 -0
  36. package/dist/esm/models/admin-agents-report-usage-response.d.ts +25 -0
  37. package/dist/esm/models/admin-agents-report-usage-response.js +14 -0
  38. package/dist/esm/models/admin-clients-get-branding-response-data.d.ts +34 -0
  39. package/dist/esm/models/admin-clients-get-branding-response-data.js +14 -0
  40. package/dist/esm/models/admin-clients-get-branding-response.d.ts +25 -0
  41. package/dist/esm/models/admin-clients-get-branding-response.js +14 -0
  42. package/dist/esm/models/authorization-server-metadata.d.ts +0 -6
  43. package/dist/esm/models/index.d.ts +10 -0
  44. package/dist/esm/models/index.js +10 -0
  45. package/dist/esm/models/open-id-configuration.d.ts +6 -6
  46. package/dist/esm/models/patch-admin-clients-update-branding-response.d.ts +32 -0
  47. package/dist/esm/models/patch-admin-clients-update-branding-response.js +14 -0
  48. package/dist/esm/models/put-admin-clients-update-branding-request.d.ts +34 -0
  49. package/dist/esm/models/put-admin-clients-update-branding-request.js +14 -0
  50. package/dist/esm/models/put-admin-clients-update-branding-response.d.ts +32 -0
  51. package/dist/esm/models/put-admin-clients-update-branding-response.js +14 -0
  52. package/dist/esm/models/report-agent-usage-response.d.ts +33 -0
  53. package/dist/esm/models/report-agent-usage-response.js +14 -0
  54. package/dist/esm/models/set-user-attribute-response-data.d.ts +1 -1
  55. package/dist/esm/models/userinfo-response.d.ts +8 -0
  56. package/dist/models/abac-attribute-definition.d.ts +1 -1
  57. package/dist/models/abac-resource-attribute.d.ts +1 -1
  58. package/dist/models/admin-agents-report-usage-request.d.ts +30 -0
  59. package/dist/models/admin-agents-report-usage-request.js +15 -0
  60. package/dist/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
  61. package/dist/models/admin-agents-report-usage-response-data-recorded.js +15 -0
  62. package/dist/models/admin-agents-report-usage-response-data.d.ts +33 -0
  63. package/dist/models/admin-agents-report-usage-response-data.js +15 -0
  64. package/dist/models/admin-agents-report-usage-response.d.ts +25 -0
  65. package/dist/models/admin-agents-report-usage-response.js +15 -0
  66. package/dist/models/admin-clients-get-branding-response-data.d.ts +34 -0
  67. package/dist/models/admin-clients-get-branding-response-data.js +15 -0
  68. package/dist/models/admin-clients-get-branding-response.d.ts +25 -0
  69. package/dist/models/admin-clients-get-branding-response.js +15 -0
  70. package/dist/models/authorization-server-metadata.d.ts +0 -6
  71. package/dist/models/index.d.ts +10 -0
  72. package/dist/models/index.js +10 -0
  73. package/dist/models/open-id-configuration.d.ts +6 -6
  74. package/dist/models/patch-admin-clients-update-branding-response.d.ts +32 -0
  75. package/dist/models/patch-admin-clients-update-branding-response.js +15 -0
  76. package/dist/models/put-admin-clients-update-branding-request.d.ts +34 -0
  77. package/dist/models/put-admin-clients-update-branding-request.js +15 -0
  78. package/dist/models/put-admin-clients-update-branding-response.d.ts +32 -0
  79. package/dist/models/put-admin-clients-update-branding-response.js +15 -0
  80. package/dist/models/report-agent-usage-response.d.ts +33 -0
  81. package/dist/models/report-agent-usage-response.js +15 -0
  82. package/dist/models/set-user-attribute-response-data.d.ts +1 -1
  83. package/dist/models/userinfo-response.d.ts +8 -0
  84. package/docs/AdminAgentsApi.md +63 -0
  85. package/docs/AdminAgentsReportUsageRequest.md +22 -0
  86. package/docs/AdminAgentsReportUsageResponse.md +20 -0
  87. package/docs/AdminAgentsReportUsageResponseData.md +22 -0
  88. package/docs/AdminAgentsReportUsageResponseDataRecorded.md +22 -0
  89. package/docs/AdminClientsGetBrandingResponse.md +20 -0
  90. package/docs/AdminClientsGetBrandingResponseData.md +22 -0
  91. package/docs/AdminEmailApi.md +15 -2
  92. package/docs/AdminOAuthClientsApi.md +174 -0
  93. package/docs/AgentsApi.md +59 -0
  94. package/docs/AuthorizationServerMetadata.md +0 -2
  95. package/docs/OAuthApi.md +0 -105
  96. package/docs/OIDCApi.md +2 -2
  97. package/docs/OpenIdConfiguration.md +2 -2
  98. package/docs/PatchAdminClientsUpdateBrandingResponse.md +22 -0
  99. package/docs/PutAdminClientsUpdateBrandingRequest.md +22 -0
  100. package/docs/PutAdminClientsUpdateBrandingResponse.md +22 -0
  101. package/docs/ReportAgentUsageResponse.md +22 -0
  102. package/docs/UserinfoResponse.md +2 -0
  103. package/models/abac-attribute-definition.ts +1 -1
  104. package/models/abac-resource-attribute.ts +1 -1
  105. package/models/admin-agents-report-usage-request.ts +36 -0
  106. package/models/admin-agents-report-usage-response-data-recorded.ts +36 -0
  107. package/models/admin-agents-report-usage-response-data.ts +39 -0
  108. package/models/admin-agents-report-usage-response.ts +33 -0
  109. package/models/admin-clients-get-branding-response-data.ts +36 -0
  110. package/models/admin-clients-get-branding-response.ts +33 -0
  111. package/models/authorization-server-metadata.ts +0 -6
  112. package/models/index.ts +10 -0
  113. package/models/open-id-configuration.ts +6 -6
  114. package/models/patch-admin-clients-update-branding-response.ts +36 -0
  115. package/models/put-admin-clients-update-branding-request.ts +36 -0
  116. package/models/put-admin-clients-update-branding-response.ts +36 -0
  117. package/models/report-agent-usage-response.ts +39 -0
  118. package/models/set-user-attribute-response-data.ts +1 -1
  119. package/models/userinfo-response.ts +6 -0
  120. package/package.json +1 -1
@@ -25,6 +25,8 @@ import type { AdminAgentsGenerateTokenResponse } from '../models';
25
25
  import type { AdminAgentsGetResponse } from '../models';
26
26
  import type { AdminAgentsGetScopesResponse } from '../models';
27
27
  import type { AdminAgentsListResponse } from '../models';
28
+ import type { AdminAgentsReportUsageRequest } from '../models';
29
+ import type { AdminAgentsReportUsageResponse } from '../models';
28
30
  import type { AdminAgentsRevokeKeyResponse } from '../models';
29
31
  import type { AdminAgentsRotateCredentialsResponse } from '../models';
30
32
  import type { AdminAgentsSetScopesRequest } from '../models';
@@ -135,6 +137,16 @@ export declare const AdminAgentsApiAxiosParamCreator: (configuration?: Configura
135
137
  * @throws {RequiredError}
136
138
  */
137
139
  adminAgentsList: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
140
+ /**
141
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
142
+ * @summary Report model tokens and cost for an agent
143
+ * @param {string} orgId
144
+ * @param {string} agentId
145
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ adminAgentsReportUsage: (orgId: string, agentId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
138
150
  /**
139
151
  *
140
152
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -288,6 +300,16 @@ export declare const AdminAgentsApiFp: (configuration?: Configuration) => {
288
300
  * @throws {RequiredError}
289
301
  */
290
302
  adminAgentsList(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsListResponse>>;
303
+ /**
304
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
305
+ * @summary Report model tokens and cost for an agent
306
+ * @param {string} orgId
307
+ * @param {string} agentId
308
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ adminAgentsReportUsage(orgId: string, agentId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsReportUsageResponse>>;
291
313
  /**
292
314
  *
293
315
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -430,6 +452,14 @@ export declare const AdminAgentsApiFactory: (configuration?: Configuration, base
430
452
  * @throws {RequiredError}
431
453
  */
432
454
  adminAgentsList(requestParameters: AdminAgentsApiAdminAgentsListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsListResponse>;
455
+ /**
456
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
457
+ * @summary Report model tokens and cost for an agent
458
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ adminAgentsReportUsage(requestParameters: AdminAgentsApiAdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsReportUsageResponse>;
433
463
  /**
434
464
  *
435
465
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -576,6 +606,15 @@ export interface AdminAgentsApiInterface {
576
606
  * @memberof AdminAgentsApiInterface
577
607
  */
578
608
  adminAgentsList(requestParameters: AdminAgentsApiAdminAgentsListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsListResponse>;
609
+ /**
610
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
611
+ * @summary Report model tokens and cost for an agent
612
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ * @memberof AdminAgentsApiInterface
616
+ */
617
+ adminAgentsReportUsage(requestParameters: AdminAgentsApiAdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsReportUsageResponse>;
579
618
  /**
580
619
  *
581
620
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -831,6 +870,31 @@ export interface AdminAgentsApiAdminAgentsListRequest {
831
870
  */
832
871
  readonly orgId: string;
833
872
  }
873
+ /**
874
+ * Request parameters for adminAgentsReportUsage operation in AdminAgentsApi.
875
+ * @export
876
+ * @interface AdminAgentsApiAdminAgentsReportUsageRequest
877
+ */
878
+ export interface AdminAgentsApiAdminAgentsReportUsageRequest {
879
+ /**
880
+ *
881
+ * @type {string}
882
+ * @memberof AdminAgentsApiAdminAgentsReportUsage
883
+ */
884
+ readonly orgId: string;
885
+ /**
886
+ *
887
+ * @type {string}
888
+ * @memberof AdminAgentsApiAdminAgentsReportUsage
889
+ */
890
+ readonly agentId: string;
891
+ /**
892
+ *
893
+ * @type {AdminAgentsReportUsageRequest}
894
+ * @memberof AdminAgentsApiAdminAgentsReportUsage
895
+ */
896
+ readonly adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest;
897
+ }
834
898
  /**
835
899
  * Request parameters for adminAgentsRevokeKey operation in AdminAgentsApi.
836
900
  * @export
@@ -1050,6 +1114,15 @@ export declare class AdminAgentsApi extends BaseAPI implements AdminAgentsApiInt
1050
1114
  * @memberof AdminAgentsApi
1051
1115
  */
1052
1116
  adminAgentsList(requestParameters: AdminAgentsApiAdminAgentsListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAgentsListResponse, any, {}>>;
1117
+ /**
1118
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
1119
+ * @summary Report model tokens and cost for an agent
1120
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ * @memberof AdminAgentsApi
1124
+ */
1125
+ adminAgentsReportUsage(requestParameters: AdminAgentsApiAdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAgentsReportUsageResponse, any, {}>>;
1053
1126
  /**
1054
1127
  *
1055
1128
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -450,6 +450,49 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
450
450
  options: localVarRequestOptions,
451
451
  };
452
452
  }),
453
+ /**
454
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
455
+ * @summary Report model tokens and cost for an agent
456
+ * @param {string} orgId
457
+ * @param {string} agentId
458
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ adminAgentsReportUsage: (orgId_1, agentId_1, adminAgentsReportUsageRequest_1, ...args_1) => __awaiter(this, [orgId_1, agentId_1, adminAgentsReportUsageRequest_1, ...args_1], void 0, function* (orgId, agentId, adminAgentsReportUsageRequest, options = {}) {
463
+ // verify required parameter 'orgId' is not null or undefined
464
+ assertParamExists('adminAgentsReportUsage', 'orgId', orgId);
465
+ // verify required parameter 'agentId' is not null or undefined
466
+ assertParamExists('adminAgentsReportUsage', 'agentId', agentId);
467
+ // verify required parameter 'adminAgentsReportUsageRequest' is not null or undefined
468
+ assertParamExists('adminAgentsReportUsage', 'adminAgentsReportUsageRequest', adminAgentsReportUsageRequest);
469
+ const localVarPath = `/orgs/{orgId}/api/v1/admin/agents/{agentId}/usage`
470
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
471
+ .replace(`{${"agentId"}}`, encodeURIComponent(String(agentId)));
472
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
473
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
474
+ let baseOptions;
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ }
478
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
479
+ const localVarHeaderParameter = {};
480
+ const localVarQueryParameter = {};
481
+ // authentication ApiKeyAuth required
482
+ yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
483
+ // authentication BearerAuth required
484
+ // http bearer authentication required
485
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
486
+ localVarHeaderParameter['Content-Type'] = 'application/json';
487
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
489
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
490
+ localVarRequestOptions.data = serializeDataIfNeeded(adminAgentsReportUsageRequest, localVarRequestOptions, configuration);
491
+ return {
492
+ url: toPathString(localVarUrlObj),
493
+ options: localVarRequestOptions,
494
+ };
495
+ }),
453
496
  /**
454
497
  *
455
498
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -851,6 +894,24 @@ export const AdminAgentsApiFp = function (configuration) {
851
894
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
852
895
  });
853
896
  },
897
+ /**
898
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
899
+ * @summary Report model tokens and cost for an agent
900
+ * @param {string} orgId
901
+ * @param {string} agentId
902
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ adminAgentsReportUsage(orgId, agentId, adminAgentsReportUsageRequest, options) {
907
+ return __awaiter(this, void 0, void 0, function* () {
908
+ var _a, _b, _c;
909
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsReportUsage(orgId, agentId, adminAgentsReportUsageRequest, options);
910
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
911
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminAgentsApi.adminAgentsReportUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
913
+ });
914
+ },
854
915
  /**
855
916
  *
856
917
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -1058,6 +1119,16 @@ export const AdminAgentsApiFactory = function (configuration, basePath, axios) {
1058
1119
  adminAgentsList(requestParameters, options) {
1059
1120
  return localVarFp.adminAgentsList(requestParameters.orgId, options).then((request) => request(axios, basePath));
1060
1121
  },
1122
+ /**
1123
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
1124
+ * @summary Report model tokens and cost for an agent
1125
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
1126
+ * @param {*} [options] Override http request option.
1127
+ * @throws {RequiredError}
1128
+ */
1129
+ adminAgentsReportUsage(requestParameters, options) {
1130
+ return localVarFp.adminAgentsReportUsage(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(axios, basePath));
1131
+ },
1061
1132
  /**
1062
1133
  *
1063
1134
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -1238,6 +1309,17 @@ export class AdminAgentsApi extends BaseAPI {
1238
1309
  adminAgentsList(requestParameters, options) {
1239
1310
  return AdminAgentsApiFp(this.configuration).adminAgentsList(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
1240
1311
  }
1312
+ /**
1313
+ * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
1314
+ * @summary Report model tokens and cost for an agent
1315
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
1316
+ * @param {*} [options] Override http request option.
1317
+ * @throws {RequiredError}
1318
+ * @memberof AdminAgentsApi
1319
+ */
1320
+ adminAgentsReportUsage(requestParameters, options) {
1321
+ return AdminAgentsApiFp(this.configuration).adminAgentsReportUsage(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(this.axios, this.basePath));
1322
+ }
1241
1323
  /**
1242
1324
  *
1243
1325
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -27,19 +27,23 @@ export declare const AdminEmailApiAxiosParamCreator: (configuration?: Configurat
27
27
  * @summary Remove the custom email template so the built-in default is used
28
28
  * @param {string} orgId
29
29
  * @param {string} type
30
+ * @param {string} [locale]
31
+ * @param {string} [clientId]
30
32
  * @param {*} [options] Override http request option.
31
33
  * @throws {RequiredError}
32
34
  */
33
- adminEmailTemplatesDelete: (orgId: string, type: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35
+ adminEmailTemplatesDelete: (orgId: string, type: string, locale?: string, clientId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
34
36
  /**
35
37
  *
36
38
  * @summary Get an email template (custom or built-in default)
37
39
  * @param {string} orgId
38
40
  * @param {string} type
41
+ * @param {string} [locale] Language variant (BCP 47, e.g. fr or pt-BR); omit for the variant used in every language
42
+ * @param {string} [clientId] Application variant (OAuth client_id); omit for the variant used by every application
39
43
  * @param {*} [options] Override http request option.
40
44
  * @throws {RequiredError}
41
45
  */
42
- adminEmailTemplatesGet: (orgId: string, type: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
46
+ adminEmailTemplatesGet: (orgId: string, type: string, locale?: string, clientId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
43
47
  /**
44
48
  *
45
49
  * @summary List every email template type with its current (custom or built-in) template
@@ -58,7 +62,7 @@ export declare const AdminEmailApiAxiosParamCreator: (configuration?: Configurat
58
62
  */
59
63
  adminEmailTemplatesPreview: (orgId: string, type: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
60
64
  /**
61
- *
65
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
62
66
  * @summary Create or replace the custom email template for a type
63
67
  * @param {string} orgId
64
68
  * @param {string} type
@@ -86,19 +90,23 @@ export declare const AdminEmailApiFp: (configuration?: Configuration) => {
86
90
  * @summary Remove the custom email template so the built-in default is used
87
91
  * @param {string} orgId
88
92
  * @param {string} type
93
+ * @param {string} [locale]
94
+ * @param {string} [clientId]
89
95
  * @param {*} [options] Override http request option.
90
96
  * @throws {RequiredError}
91
97
  */
92
- adminEmailTemplatesDelete(orgId: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageResponse>>;
98
+ adminEmailTemplatesDelete(orgId: string, type: string, locale?: string, clientId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageResponse>>;
93
99
  /**
94
100
  *
95
101
  * @summary Get an email template (custom or built-in default)
96
102
  * @param {string} orgId
97
103
  * @param {string} type
104
+ * @param {string} [locale] Language variant (BCP 47, e.g. fr or pt-BR); omit for the variant used in every language
105
+ * @param {string} [clientId] Application variant (OAuth client_id); omit for the variant used by every application
98
106
  * @param {*} [options] Override http request option.
99
107
  * @throws {RequiredError}
100
108
  */
101
- adminEmailTemplatesGet(orgId: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailTemplate>>;
109
+ adminEmailTemplatesGet(orgId: string, type: string, locale?: string, clientId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailTemplate>>;
102
110
  /**
103
111
  *
104
112
  * @summary List every email template type with its current (custom or built-in) template
@@ -117,7 +125,7 @@ export declare const AdminEmailApiFp: (configuration?: Configuration) => {
117
125
  */
118
126
  adminEmailTemplatesPreview(orgId: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminEmailTemplatesPreviewResponse>>;
119
127
  /**
120
- *
128
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
121
129
  * @summary Create or replace the custom email template for a type
122
130
  * @param {string} orgId
123
131
  * @param {string} type
@@ -173,7 +181,7 @@ export declare const AdminEmailApiFactory: (configuration?: Configuration, baseP
173
181
  */
174
182
  adminEmailTemplatesPreview(requestParameters: AdminEmailApiAdminEmailTemplatesPreviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminEmailTemplatesPreviewResponse>;
175
183
  /**
176
- *
184
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
177
185
  * @summary Create or replace the custom email template for a type
178
186
  * @param {AdminEmailApiAdminEmailTemplatesUpsertRequest} requestParameters Request parameters.
179
187
  * @param {*} [options] Override http request option.
@@ -232,7 +240,7 @@ export interface AdminEmailApiInterface {
232
240
  */
233
241
  adminEmailTemplatesPreview(requestParameters: AdminEmailApiAdminEmailTemplatesPreviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminEmailTemplatesPreviewResponse>;
234
242
  /**
235
- *
243
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
236
244
  * @summary Create or replace the custom email template for a type
237
245
  * @param {AdminEmailApiAdminEmailTemplatesUpsertRequest} requestParameters Request parameters.
238
246
  * @param {*} [options] Override http request option.
@@ -268,6 +276,18 @@ export interface AdminEmailApiAdminEmailTemplatesDeleteRequest {
268
276
  * @memberof AdminEmailApiAdminEmailTemplatesDelete
269
277
  */
270
278
  readonly type: string;
279
+ /**
280
+ *
281
+ * @type {string}
282
+ * @memberof AdminEmailApiAdminEmailTemplatesDelete
283
+ */
284
+ readonly locale?: string;
285
+ /**
286
+ *
287
+ * @type {string}
288
+ * @memberof AdminEmailApiAdminEmailTemplatesDelete
289
+ */
290
+ readonly clientId?: string;
271
291
  }
272
292
  /**
273
293
  * Request parameters for adminEmailTemplatesGet operation in AdminEmailApi.
@@ -287,6 +307,18 @@ export interface AdminEmailApiAdminEmailTemplatesGetRequest {
287
307
  * @memberof AdminEmailApiAdminEmailTemplatesGet
288
308
  */
289
309
  readonly type: string;
310
+ /**
311
+ * Language variant (BCP 47, e.g. fr or pt-BR); omit for the variant used in every language
312
+ * @type {string}
313
+ * @memberof AdminEmailApiAdminEmailTemplatesGet
314
+ */
315
+ readonly locale?: string;
316
+ /**
317
+ * Application variant (OAuth client_id); omit for the variant used by every application
318
+ * @type {string}
319
+ * @memberof AdminEmailApiAdminEmailTemplatesGet
320
+ */
321
+ readonly clientId?: string;
290
322
  }
291
323
  /**
292
324
  * Request parameters for adminEmailTemplatesList operation in AdminEmailApi.
@@ -402,7 +434,7 @@ export declare class AdminEmailApi extends BaseAPI implements AdminEmailApiInter
402
434
  */
403
435
  adminEmailTemplatesPreview(requestParameters: AdminEmailApiAdminEmailTemplatesPreviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminEmailTemplatesPreviewResponse, any, {}>>;
404
436
  /**
405
- *
437
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
406
438
  * @summary Create or replace the custom email template for a type
407
439
  * @param {AdminEmailApiAdminEmailTemplatesUpsertRequest} requestParameters Request parameters.
408
440
  * @param {*} [options] Override http request option.
@@ -37,10 +37,12 @@ export const AdminEmailApiAxiosParamCreator = function (configuration) {
37
37
  * @summary Remove the custom email template so the built-in default is used
38
38
  * @param {string} orgId
39
39
  * @param {string} type
40
+ * @param {string} [locale]
41
+ * @param {string} [clientId]
40
42
  * @param {*} [options] Override http request option.
41
43
  * @throws {RequiredError}
42
44
  */
43
- adminEmailTemplatesDelete: (orgId_1, type_1, ...args_1) => __awaiter(this, [orgId_1, type_1, ...args_1], void 0, function* (orgId, type, options = {}) {
45
+ adminEmailTemplatesDelete: (orgId_1, type_1, locale_1, clientId_1, ...args_1) => __awaiter(this, [orgId_1, type_1, locale_1, clientId_1, ...args_1], void 0, function* (orgId, type, locale, clientId, options = {}) {
44
46
  // verify required parameter 'orgId' is not null or undefined
45
47
  assertParamExists('adminEmailTemplatesDelete', 'orgId', orgId);
46
48
  // verify required parameter 'type' is not null or undefined
@@ -62,6 +64,12 @@ export const AdminEmailApiAxiosParamCreator = function (configuration) {
62
64
  // authentication BearerAuth required
63
65
  // http bearer authentication required
64
66
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
67
+ if (locale !== undefined) {
68
+ localVarQueryParameter['locale'] = locale;
69
+ }
70
+ if (clientId !== undefined) {
71
+ localVarQueryParameter['client_id'] = clientId;
72
+ }
65
73
  setSearchParams(localVarUrlObj, localVarQueryParameter);
66
74
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
75
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -75,10 +83,12 @@ export const AdminEmailApiAxiosParamCreator = function (configuration) {
75
83
  * @summary Get an email template (custom or built-in default)
76
84
  * @param {string} orgId
77
85
  * @param {string} type
86
+ * @param {string} [locale] Language variant (BCP 47, e.g. fr or pt-BR); omit for the variant used in every language
87
+ * @param {string} [clientId] Application variant (OAuth client_id); omit for the variant used by every application
78
88
  * @param {*} [options] Override http request option.
79
89
  * @throws {RequiredError}
80
90
  */
81
- adminEmailTemplatesGet: (orgId_1, type_1, ...args_1) => __awaiter(this, [orgId_1, type_1, ...args_1], void 0, function* (orgId, type, options = {}) {
91
+ adminEmailTemplatesGet: (orgId_1, type_1, locale_1, clientId_1, ...args_1) => __awaiter(this, [orgId_1, type_1, locale_1, clientId_1, ...args_1], void 0, function* (orgId, type, locale, clientId, options = {}) {
82
92
  // verify required parameter 'orgId' is not null or undefined
83
93
  assertParamExists('adminEmailTemplatesGet', 'orgId', orgId);
84
94
  // verify required parameter 'type' is not null or undefined
@@ -100,6 +110,12 @@ export const AdminEmailApiAxiosParamCreator = function (configuration) {
100
110
  // authentication BearerAuth required
101
111
  // http bearer authentication required
102
112
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
113
+ if (locale !== undefined) {
114
+ localVarQueryParameter['locale'] = locale;
115
+ }
116
+ if (clientId !== undefined) {
117
+ localVarQueryParameter['client_id'] = clientId;
118
+ }
103
119
  setSearchParams(localVarUrlObj, localVarQueryParameter);
104
120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
121
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -181,7 +197,7 @@ export const AdminEmailApiAxiosParamCreator = function (configuration) {
181
197
  };
182
198
  }),
183
199
  /**
184
- *
200
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
185
201
  * @summary Create or replace the custom email template for a type
186
202
  * @param {string} orgId
187
203
  * @param {string} type
@@ -270,13 +286,15 @@ export const AdminEmailApiFp = function (configuration) {
270
286
  * @summary Remove the custom email template so the built-in default is used
271
287
  * @param {string} orgId
272
288
  * @param {string} type
289
+ * @param {string} [locale]
290
+ * @param {string} [clientId]
273
291
  * @param {*} [options] Override http request option.
274
292
  * @throws {RequiredError}
275
293
  */
276
- adminEmailTemplatesDelete(orgId, type, options) {
294
+ adminEmailTemplatesDelete(orgId, type, locale, clientId, options) {
277
295
  return __awaiter(this, void 0, void 0, function* () {
278
296
  var _a, _b, _c;
279
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminEmailTemplatesDelete(orgId, type, options);
297
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminEmailTemplatesDelete(orgId, type, locale, clientId, options);
280
298
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
281
299
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminEmailApi.adminEmailTemplatesDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
282
300
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -287,13 +305,15 @@ export const AdminEmailApiFp = function (configuration) {
287
305
  * @summary Get an email template (custom or built-in default)
288
306
  * @param {string} orgId
289
307
  * @param {string} type
308
+ * @param {string} [locale] Language variant (BCP 47, e.g. fr or pt-BR); omit for the variant used in every language
309
+ * @param {string} [clientId] Application variant (OAuth client_id); omit for the variant used by every application
290
310
  * @param {*} [options] Override http request option.
291
311
  * @throws {RequiredError}
292
312
  */
293
- adminEmailTemplatesGet(orgId, type, options) {
313
+ adminEmailTemplatesGet(orgId, type, locale, clientId, options) {
294
314
  return __awaiter(this, void 0, void 0, function* () {
295
315
  var _a, _b, _c;
296
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminEmailTemplatesGet(orgId, type, options);
316
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminEmailTemplatesGet(orgId, type, locale, clientId, options);
297
317
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
298
318
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminEmailApi.adminEmailTemplatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
299
319
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -333,7 +353,7 @@ export const AdminEmailApiFp = function (configuration) {
333
353
  });
334
354
  },
335
355
  /**
336
- *
356
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
337
357
  * @summary Create or replace the custom email template for a type
338
358
  * @param {string} orgId
339
359
  * @param {string} type
@@ -383,7 +403,7 @@ export const AdminEmailApiFactory = function (configuration, basePath, axios) {
383
403
  * @throws {RequiredError}
384
404
  */
385
405
  adminEmailTemplatesDelete(requestParameters, options) {
386
- return localVarFp.adminEmailTemplatesDelete(requestParameters.orgId, requestParameters.type, options).then((request) => request(axios, basePath));
406
+ return localVarFp.adminEmailTemplatesDelete(requestParameters.orgId, requestParameters.type, requestParameters.locale, requestParameters.clientId, options).then((request) => request(axios, basePath));
387
407
  },
388
408
  /**
389
409
  *
@@ -393,7 +413,7 @@ export const AdminEmailApiFactory = function (configuration, basePath, axios) {
393
413
  * @throws {RequiredError}
394
414
  */
395
415
  adminEmailTemplatesGet(requestParameters, options) {
396
- return localVarFp.adminEmailTemplatesGet(requestParameters.orgId, requestParameters.type, options).then((request) => request(axios, basePath));
416
+ return localVarFp.adminEmailTemplatesGet(requestParameters.orgId, requestParameters.type, requestParameters.locale, requestParameters.clientId, options).then((request) => request(axios, basePath));
397
417
  },
398
418
  /**
399
419
  *
@@ -416,7 +436,7 @@ export const AdminEmailApiFactory = function (configuration, basePath, axios) {
416
436
  return localVarFp.adminEmailTemplatesPreview(requestParameters.orgId, requestParameters.type, options).then((request) => request(axios, basePath));
417
437
  },
418
438
  /**
419
- *
439
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
420
440
  * @summary Create or replace the custom email template for a type
421
441
  * @param {AdminEmailApiAdminEmailTemplatesUpsertRequest} requestParameters Request parameters.
422
442
  * @param {*} [options] Override http request option.
@@ -453,7 +473,7 @@ export class AdminEmailApi extends BaseAPI {
453
473
  * @memberof AdminEmailApi
454
474
  */
455
475
  adminEmailTemplatesDelete(requestParameters, options) {
456
- return AdminEmailApiFp(this.configuration).adminEmailTemplatesDelete(requestParameters.orgId, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
476
+ return AdminEmailApiFp(this.configuration).adminEmailTemplatesDelete(requestParameters.orgId, requestParameters.type, requestParameters.locale, requestParameters.clientId, options).then((request) => request(this.axios, this.basePath));
457
477
  }
458
478
  /**
459
479
  *
@@ -464,7 +484,7 @@ export class AdminEmailApi extends BaseAPI {
464
484
  * @memberof AdminEmailApi
465
485
  */
466
486
  adminEmailTemplatesGet(requestParameters, options) {
467
- return AdminEmailApiFp(this.configuration).adminEmailTemplatesGet(requestParameters.orgId, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
487
+ return AdminEmailApiFp(this.configuration).adminEmailTemplatesGet(requestParameters.orgId, requestParameters.type, requestParameters.locale, requestParameters.clientId, options).then((request) => request(this.axios, this.basePath));
468
488
  }
469
489
  /**
470
490
  *
@@ -489,7 +509,7 @@ export class AdminEmailApi extends BaseAPI {
489
509
  return AdminEmailApiFp(this.configuration).adminEmailTemplatesPreview(requestParameters.orgId, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
490
510
  }
491
511
  /**
492
- *
512
+ * Body: subject, body_html, and optionally locale (BCP 47) and client_id to save a language- or application-specific version. Mails use the most specific version: application + language, application, language, then the default.
493
513
  * @summary Create or replace the custom email template for a type
494
514
  * @param {AdminEmailApiAdminEmailTemplatesUpsertRequest} requestParameters Request parameters.
495
515
  * @param {*} [options] Override http request option.