@integrahub/vergefy-client 0.25.0 → 0.26.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 (29) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/PLATFORMLTNPTenantPrincipalMetricsApi.d.ts +4 -4
  3. package/dist/apis/PLATFORMLTNPTenantPrincipalMetricsApi.js +4 -4
  4. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.d.ts +56 -4
  5. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.js +138 -5
  6. package/dist/esm/apis/PLATFORMLTNPTenantPrincipalMetricsApi.js +4 -4
  7. package/dist/esm/apis/PLATFORMLTNPTenantPrincipalsApi.js +137 -4
  8. package/dist/esm/ext/telemetry.js +1 -1
  9. package/dist/esm/models/DataResponseDTOListPrincipalAuditEntityTypeDTO.js +42 -0
  10. package/dist/esm/models/DataResponseDTOListPrincipalGrantOptionDTO.js +42 -0
  11. package/dist/esm/models/PrincipalAuditEntityTypeDTO.js +45 -0
  12. package/dist/esm/models/PrincipalDTO.js +2 -0
  13. package/dist/esm/models/PrincipalGrantOptionDTO.js +67 -0
  14. package/dist/esm/models/index.js +4 -0
  15. package/dist/ext/telemetry.d.ts +1 -1
  16. package/dist/ext/telemetry.js +1 -1
  17. package/dist/models/DataResponseDTOListPrincipalAuditEntityTypeDTO.d.ts +33 -0
  18. package/dist/models/DataResponseDTOListPrincipalAuditEntityTypeDTO.js +49 -0
  19. package/dist/models/DataResponseDTOListPrincipalGrantOptionDTO.d.ts +33 -0
  20. package/dist/models/DataResponseDTOListPrincipalGrantOptionDTO.js +49 -0
  21. package/dist/models/PrincipalAuditEntityTypeDTO.d.ts +38 -0
  22. package/dist/models/PrincipalAuditEntityTypeDTO.js +52 -0
  23. package/dist/models/PrincipalDTO.d.ts +6 -0
  24. package/dist/models/PrincipalDTO.js +2 -0
  25. package/dist/models/PrincipalGrantOptionDTO.d.ts +67 -0
  26. package/dist/models/PrincipalGrantOptionDTO.js +75 -0
  27. package/dist/models/index.d.ts +4 -0
  28. package/dist/models/index.js +4 -0
  29. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @integrahub/vergefy-client@0.25.0
1
+ # @integrahub/vergefy-client@0.26.0
2
2
 
3
3
  A TypeScript SDK client for the your-vergefy-host.invalid API.
4
4
 
@@ -90,7 +90,7 @@ and is automatically generated by the
90
90
  [OpenAPI Generator](https://openapi-generator.tech) project:
91
91
 
92
92
  - API version: `2026-05-30`
93
- - Package version: `0.25.0`
93
+ - Package version: `0.26.0`
94
94
  - Generator version: `7.22.0`
95
95
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
96
96
 
@@ -37,12 +37,12 @@ export declare class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseA
37
37
  */
38
38
  lTNP030RequestOpts(requestParameters: LTNP030Request): Promise<runtime.RequestOpts>;
39
39
  /**
40
- * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
40
+ * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
41
41
  * LTNP030 - Get Principal Work Share
42
42
  */
43
43
  lTNP030Raw(requestParameters: LTNP030Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOPrincipalWorkShareDTO>>;
44
44
  /**
45
- * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
45
+ * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
46
46
  * LTNP030 - Get Principal Work Share
47
47
  */
48
48
  lTNP030(requestParameters: LTNP030Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOPrincipalWorkShareDTO>;
@@ -51,12 +51,12 @@ export declare class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseA
51
51
  */
52
52
  lTNP031RequestOpts(requestParameters: LTNP031Request): Promise<runtime.RequestOpts>;
53
53
  /**
54
- * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
54
+ * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
55
55
  * LTNP031 - Get Agent Cost Summary
56
56
  */
57
57
  lTNP031Raw(requestParameters: LTNP031Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListAgentCostSummaryDTO>>;
58
58
  /**
59
- * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
59
+ * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
60
60
  * LTNP031 - Get Agent Cost Summary
61
61
  */
62
62
  lTNP031(requestParameters: LTNP031Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListAgentCostSummaryDTO>;
@@ -75,7 +75,7 @@ class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
75
75
  });
76
76
  }
77
77
  /**
78
- * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
78
+ * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
79
79
  * LTNP030 - Get Principal Work Share
80
80
  */
81
81
  lTNP030Raw(requestParameters, initOverrides) {
@@ -86,7 +86,7 @@ class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
86
86
  });
87
87
  }
88
88
  /**
89
- * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
89
+ * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
90
90
  * LTNP030 - Get Principal Work Share
91
91
  */
92
92
  lTNP030(requestParameters, initOverrides) {
@@ -140,7 +140,7 @@ class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
140
140
  });
141
141
  }
142
142
  /**
143
- * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
143
+ * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
144
144
  * LTNP031 - Get Agent Cost Summary
145
145
  */
146
146
  lTNP031Raw(requestParameters, initOverrides) {
@@ -151,7 +151,7 @@ class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
151
151
  });
152
152
  }
153
153
  /**
154
- * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
154
+ * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
155
155
  * LTNP031 - Get Agent Cost Summary
156
156
  */
157
157
  lTNP031(requestParameters, initOverrides) {
@@ -16,7 +16,9 @@ import { type DataResponseDTOAgentPrincipalCredentialsDTO } from '../models/Data
16
16
  import { type DataResponseDTOAgentTokenDTO } from '../models/DataResponseDTOAgentTokenDTO';
17
17
  import { type DataResponseDTOListAgentApprovalActionDTO } from '../models/DataResponseDTOListAgentApprovalActionDTO';
18
18
  import { type DataResponseDTOListMcpClientFamilyDTO } from '../models/DataResponseDTOListMcpClientFamilyDTO';
19
+ import { type DataResponseDTOListPrincipalAuditEntityTypeDTO } from '../models/DataResponseDTOListPrincipalAuditEntityTypeDTO';
19
20
  import { type DataResponseDTOListPrincipalAuditEventDTO } from '../models/DataResponseDTOListPrincipalAuditEventDTO';
21
+ import { type DataResponseDTOListPrincipalGrantOptionDTO } from '../models/DataResponseDTOListPrincipalGrantOptionDTO';
20
22
  import { type DataResponseDTOPrincipalApprovalRequestDTO } from '../models/DataResponseDTOPrincipalApprovalRequestDTO';
21
23
  import { type DataResponseDTOPrincipalDTO } from '../models/DataResponseDTOPrincipalDTO';
22
24
  import { type DataResponseDTOPrincipalPolicyDTO } from '../models/DataResponseDTOPrincipalPolicyDTO';
@@ -30,6 +32,7 @@ export interface LTNP001Request {
30
32
  xAppAccountId: string;
31
33
  type?: LTNP001TypeEnum;
32
34
  status?: LTNP001StatusEnum;
35
+ audience?: LTNP001AudienceEnum;
33
36
  sponsorAccountId?: string;
34
37
  page?: number;
35
38
  size?: number;
@@ -53,6 +56,13 @@ export interface LTNP003Request {
53
56
  vergefyVersion?: string;
54
57
  acceptTimezone?: string;
55
58
  }
59
+ export interface LTNP004Request {
60
+ xAppAccountId: string;
61
+ principalId?: string;
62
+ acceptLanguage?: string;
63
+ vergefyVersion?: string;
64
+ acceptTimezone?: string;
65
+ }
56
66
  export interface LTNP010Request {
57
67
  xAppAccountId: string;
58
68
  status?: LTNP010StatusEnum;
@@ -88,6 +98,12 @@ export interface LTNP022Request {
88
98
  vergefyVersion?: string;
89
99
  acceptTimezone?: string;
90
100
  }
101
+ export interface LTNP023Request {
102
+ xAppAccountId: string;
103
+ acceptLanguage?: string;
104
+ vergefyVersion?: string;
105
+ acceptTimezone?: string;
106
+ }
91
107
  export interface LTNP100Request {
92
108
  id: string;
93
109
  xAppAccountId: string;
@@ -170,12 +186,12 @@ export declare class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
170
186
  */
171
187
  lTNP001RequestOpts(requestParameters: LTNP001Request): Promise<runtime.RequestOpts>;
172
188
  /**
173
- * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says.
189
+ * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says. audience narrows the list to PERSONAL agents (Claude and ChatGPT connections) or SHARED ones.
174
190
  * LTNP001 - Search Principals
175
191
  */
176
192
  lTNP001Raw(requestParameters: LTNP001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagePrincipalDTO>>;
177
193
  /**
178
- * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says.
194
+ * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says. audience narrows the list to PERSONAL agents (Claude and ChatGPT connections) or SHARED ones.
179
195
  * LTNP001 - Search Principals
180
196
  */
181
197
  lTNP001(requestParameters: LTNP001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagePrincipalDTO>;
@@ -198,15 +214,29 @@ export declare class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
198
214
  */
199
215
  lTNP003RequestOpts(requestParameters: LTNP003Request): Promise<runtime.RequestOpts>;
200
216
  /**
201
- * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them.
217
+ * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them. entityType is the name of the command facade that writes the record, less Command and Facade (CommandContactFacade writes Contact); LTNP023 lists them, and an unknown one is a 400 rather than an empty history.
202
218
  * LTNP003 - Search Principal Audit Events
203
219
  */
204
220
  lTNP003Raw(requestParameters: LTNP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListPrincipalAuditEventDTO>>;
205
221
  /**
206
- * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them.
222
+ * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them. entityType is the name of the command facade that writes the record, less Command and Facade (CommandContactFacade writes Contact); LTNP023 lists them, and an unknown one is a 400 rather than an empty history.
207
223
  * LTNP003 - Search Principal Audit Events
208
224
  */
209
225
  lTNP003(requestParameters: LTNP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListPrincipalAuditEventDTO>;
226
+ /**
227
+ * Creates request options for lTNP004 without sending the request
228
+ */
229
+ lTNP004RequestOpts(requestParameters: LTNP004Request): Promise<runtime.RequestOpts>;
230
+ /**
231
+ * The permissions an agent could be granted: the ones its sponsor holds, with their titles, sorted by authority. A CUSTOM grant may name only these, and a READ_ONLY grant keeps the ones marked keptByReadOnly. With principalId, that agent\'s sponsor\'s; without it, the caller\'s own, which is what a shared agent the caller creates (LTNP102) could be granted. Another person\'s agent reads as not found unless the caller is an admin. Refused to an agent.
232
+ * LTNP004 - Search Principal Grant Options
233
+ */
234
+ lTNP004Raw(requestParameters: LTNP004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListPrincipalGrantOptionDTO>>;
235
+ /**
236
+ * The permissions an agent could be granted: the ones its sponsor holds, with their titles, sorted by authority. A CUSTOM grant may name only these, and a READ_ONLY grant keeps the ones marked keptByReadOnly. With principalId, that agent\'s sponsor\'s; without it, the caller\'s own, which is what a shared agent the caller creates (LTNP102) could be granted. Another person\'s agent reads as not found unless the caller is an admin. Refused to an agent.
237
+ * LTNP004 - Search Principal Grant Options
238
+ */
239
+ lTNP004(requestParameters: LTNP004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListPrincipalGrantOptionDTO>;
210
240
  /**
211
241
  * Creates request options for lTNP010 without sending the request
212
242
  */
@@ -277,6 +307,20 @@ export declare class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
277
307
  * LTNP022 - Search Mcp Client Families
278
308
  */
279
309
  lTNP022(requestParameters: LTNP022Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListMcpClientFamilyDTO>;
310
+ /**
311
+ * Creates request options for lTNP023 without sending the request
312
+ */
313
+ lTNP023RequestOpts(requestParameters: LTNP023Request): Promise<runtime.RequestOpts>;
314
+ /**
315
+ * The kinds of record whose agent writes are kept, as a record\'s history (LTNP003) names them in entityType, each with the module that writes it. Read from the command facades the application runs, so it matches what the history records.
316
+ * LTNP023 - Search Principal Audit Entity Types
317
+ */
318
+ lTNP023Raw(requestParameters: LTNP023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListPrincipalAuditEntityTypeDTO>>;
319
+ /**
320
+ * The kinds of record whose agent writes are kept, as a record\'s history (LTNP003) names them in entityType, each with the module that writes it. Read from the command facades the application runs, so it matches what the history records.
321
+ * LTNP023 - Search Principal Audit Entity Types
322
+ */
323
+ lTNP023(requestParameters: LTNP023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListPrincipalAuditEntityTypeDTO>;
280
324
  /**
281
325
  * Creates request options for lTNP100 without sending the request
282
326
  */
@@ -436,6 +480,14 @@ export declare const LTNP001StatusEnum: {
436
480
  readonly Suspended: "SUSPENDED";
437
481
  };
438
482
  export type LTNP001StatusEnum = typeof LTNP001StatusEnum[keyof typeof LTNP001StatusEnum];
483
+ /**
484
+ * @export
485
+ */
486
+ export declare const LTNP001AudienceEnum: {
487
+ readonly Personal: "PERSONAL";
488
+ readonly Shared: "SHARED";
489
+ };
490
+ export type LTNP001AudienceEnum = typeof LTNP001AudienceEnum[keyof typeof LTNP001AudienceEnum];
439
491
  /**
440
492
  * @export
441
493
  */
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.LTNP010StatusEnum = exports.LTNP001StatusEnum = exports.LTNP001TypeEnum = exports.PLATFORMLTNPTenantPrincipalsApi = void 0;
25
+ exports.LTNP010StatusEnum = exports.LTNP001AudienceEnum = exports.LTNP001StatusEnum = exports.LTNP001TypeEnum = exports.PLATFORMLTNPTenantPrincipalsApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const AgentTokenRequestDTO_1 = require("../models/AgentTokenRequestDTO");
28
28
  const CreateAgentPrincipalDTO_1 = require("../models/CreateAgentPrincipalDTO");
@@ -30,7 +30,9 @@ const DataResponseDTOAgentPrincipalCredentialsDTO_1 = require("../models/DataRes
30
30
  const DataResponseDTOAgentTokenDTO_1 = require("../models/DataResponseDTOAgentTokenDTO");
31
31
  const DataResponseDTOListAgentApprovalActionDTO_1 = require("../models/DataResponseDTOListAgentApprovalActionDTO");
32
32
  const DataResponseDTOListMcpClientFamilyDTO_1 = require("../models/DataResponseDTOListMcpClientFamilyDTO");
33
+ const DataResponseDTOListPrincipalAuditEntityTypeDTO_1 = require("../models/DataResponseDTOListPrincipalAuditEntityTypeDTO");
33
34
  const DataResponseDTOListPrincipalAuditEventDTO_1 = require("../models/DataResponseDTOListPrincipalAuditEventDTO");
35
+ const DataResponseDTOListPrincipalGrantOptionDTO_1 = require("../models/DataResponseDTOListPrincipalGrantOptionDTO");
34
36
  const DataResponseDTOPrincipalApprovalRequestDTO_1 = require("../models/DataResponseDTOPrincipalApprovalRequestDTO");
35
37
  const DataResponseDTOPrincipalDTO_1 = require("../models/DataResponseDTOPrincipalDTO");
36
38
  const DataResponseDTOPrincipalPolicyDTO_1 = require("../models/DataResponseDTOPrincipalPolicyDTO");
@@ -59,6 +61,9 @@ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
59
61
  if (requestParameters['status'] != null) {
60
62
  queryParameters['status'] = requestParameters['status'];
61
63
  }
64
+ if (requestParameters['audience'] != null) {
65
+ queryParameters['audience'] = requestParameters['audience'];
66
+ }
62
67
  if (requestParameters['sponsorAccountId'] != null) {
63
68
  queryParameters['sponsorAccountId'] = requestParameters['sponsorAccountId'];
64
69
  }
@@ -101,7 +106,7 @@ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
101
106
  });
102
107
  }
103
108
  /**
104
- * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says.
109
+ * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says. audience narrows the list to PERSONAL agents (Claude and ChatGPT connections) or SHARED ones.
105
110
  * LTNP001 - Search Principals
106
111
  */
107
112
  lTNP001Raw(requestParameters, initOverrides) {
@@ -112,7 +117,7 @@ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
112
117
  });
113
118
  }
114
119
  /**
115
- * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says.
120
+ * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says. audience narrows the list to PERSONAL agents (Claude and ChatGPT connections) or SHARED ones.
116
121
  * LTNP001 - Search Principals
117
122
  */
118
123
  lTNP001(requestParameters, initOverrides) {
@@ -235,7 +240,7 @@ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
235
240
  });
236
241
  }
237
242
  /**
238
- * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them.
243
+ * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them. entityType is the name of the command facade that writes the record, less Command and Facade (CommandContactFacade writes Contact); LTNP023 lists them, and an unknown one is a 400 rather than an empty history.
239
244
  * LTNP003 - Search Principal Audit Events
240
245
  */
241
246
  lTNP003Raw(requestParameters, initOverrides) {
@@ -246,7 +251,7 @@ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
246
251
  });
247
252
  }
248
253
  /**
249
- * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them.
254
+ * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them. entityType is the name of the command facade that writes the record, less Command and Facade (CommandContactFacade writes Contact); LTNP023 lists them, and an unknown one is a 400 rather than an empty history.
250
255
  * LTNP003 - Search Principal Audit Events
251
256
  */
252
257
  lTNP003(requestParameters, initOverrides) {
@@ -255,6 +260,68 @@ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
255
260
  return yield response.value();
256
261
  });
257
262
  }
263
+ /**
264
+ * Creates request options for lTNP004 without sending the request
265
+ */
266
+ lTNP004RequestOpts(requestParameters) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ if (requestParameters['xAppAccountId'] == null) {
269
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP004().');
270
+ }
271
+ const queryParameters = {};
272
+ if (requestParameters['principalId'] != null) {
273
+ queryParameters['principalId'] = requestParameters['principalId'];
274
+ }
275
+ const headerParameters = {};
276
+ if (requestParameters['acceptLanguage'] != null) {
277
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
278
+ }
279
+ if (requestParameters['xAppAccountId'] != null) {
280
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
281
+ }
282
+ if (requestParameters['vergefyVersion'] != null) {
283
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
284
+ }
285
+ if (requestParameters['acceptTimezone'] != null) {
286
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
287
+ }
288
+ if (this.configuration && this.configuration.accessToken) {
289
+ const token = this.configuration.accessToken;
290
+ const tokenString = yield token("BearerAuth", []);
291
+ if (tokenString) {
292
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
293
+ }
294
+ }
295
+ let urlPath = `/platform/principals/grant-options`;
296
+ return {
297
+ path: urlPath,
298
+ method: 'GET',
299
+ headers: headerParameters,
300
+ query: queryParameters,
301
+ };
302
+ });
303
+ }
304
+ /**
305
+ * The permissions an agent could be granted: the ones its sponsor holds, with their titles, sorted by authority. A CUSTOM grant may name only these, and a READ_ONLY grant keeps the ones marked keptByReadOnly. With principalId, that agent\'s sponsor\'s; without it, the caller\'s own, which is what a shared agent the caller creates (LTNP102) could be granted. Another person\'s agent reads as not found unless the caller is an admin. Refused to an agent.
306
+ * LTNP004 - Search Principal Grant Options
307
+ */
308
+ lTNP004Raw(requestParameters, initOverrides) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ const requestOptions = yield this.lTNP004RequestOpts(requestParameters);
311
+ const response = yield this.request(requestOptions, initOverrides);
312
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListPrincipalGrantOptionDTO_1.DataResponseDTOListPrincipalGrantOptionDTOFromJSON)(jsonValue));
313
+ });
314
+ }
315
+ /**
316
+ * The permissions an agent could be granted: the ones its sponsor holds, with their titles, sorted by authority. A CUSTOM grant may name only these, and a READ_ONLY grant keeps the ones marked keptByReadOnly. With principalId, that agent\'s sponsor\'s; without it, the caller\'s own, which is what a shared agent the caller creates (LTNP102) could be granted. Another person\'s agent reads as not found unless the caller is an admin. Refused to an agent.
317
+ * LTNP004 - Search Principal Grant Options
318
+ */
319
+ lTNP004(requestParameters, initOverrides) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ const response = yield this.lTNP004Raw(requestParameters, initOverrides);
322
+ return yield response.value();
323
+ });
324
+ }
258
325
  /**
259
326
  * Creates request options for lTNP010 without sending the request
260
327
  */
@@ -566,6 +633,65 @@ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
566
633
  return yield response.value();
567
634
  });
568
635
  }
636
+ /**
637
+ * Creates request options for lTNP023 without sending the request
638
+ */
639
+ lTNP023RequestOpts(requestParameters) {
640
+ return __awaiter(this, void 0, void 0, function* () {
641
+ if (requestParameters['xAppAccountId'] == null) {
642
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP023().');
643
+ }
644
+ const queryParameters = {};
645
+ const headerParameters = {};
646
+ if (requestParameters['acceptLanguage'] != null) {
647
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
648
+ }
649
+ if (requestParameters['xAppAccountId'] != null) {
650
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
651
+ }
652
+ if (requestParameters['vergefyVersion'] != null) {
653
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
654
+ }
655
+ if (requestParameters['acceptTimezone'] != null) {
656
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
657
+ }
658
+ if (this.configuration && this.configuration.accessToken) {
659
+ const token = this.configuration.accessToken;
660
+ const tokenString = yield token("BearerAuth", []);
661
+ if (tokenString) {
662
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
663
+ }
664
+ }
665
+ let urlPath = `/platform/principals/audit-entity-types`;
666
+ return {
667
+ path: urlPath,
668
+ method: 'GET',
669
+ headers: headerParameters,
670
+ query: queryParameters,
671
+ };
672
+ });
673
+ }
674
+ /**
675
+ * The kinds of record whose agent writes are kept, as a record\'s history (LTNP003) names them in entityType, each with the module that writes it. Read from the command facades the application runs, so it matches what the history records.
676
+ * LTNP023 - Search Principal Audit Entity Types
677
+ */
678
+ lTNP023Raw(requestParameters, initOverrides) {
679
+ return __awaiter(this, void 0, void 0, function* () {
680
+ const requestOptions = yield this.lTNP023RequestOpts(requestParameters);
681
+ const response = yield this.request(requestOptions, initOverrides);
682
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListPrincipalAuditEntityTypeDTO_1.DataResponseDTOListPrincipalAuditEntityTypeDTOFromJSON)(jsonValue));
683
+ });
684
+ }
685
+ /**
686
+ * The kinds of record whose agent writes are kept, as a record\'s history (LTNP003) names them in entityType, each with the module that writes it. Read from the command facades the application runs, so it matches what the history records.
687
+ * LTNP023 - Search Principal Audit Entity Types
688
+ */
689
+ lTNP023(requestParameters, initOverrides) {
690
+ return __awaiter(this, void 0, void 0, function* () {
691
+ const response = yield this.lTNP023Raw(requestParameters, initOverrides);
692
+ return yield response.value();
693
+ });
694
+ }
569
695
  /**
570
696
  * Creates request options for lTNP100 without sending the request
571
697
  */
@@ -1232,6 +1358,13 @@ exports.LTNP001StatusEnum = {
1232
1358
  Revoked: 'REVOKED',
1233
1359
  Suspended: 'SUSPENDED'
1234
1360
  };
1361
+ /**
1362
+ * @export
1363
+ */
1364
+ exports.LTNP001AudienceEnum = {
1365
+ Personal: 'PERSONAL',
1366
+ Shared: 'SHARED'
1367
+ };
1235
1368
  /**
1236
1369
  * @export
1237
1370
  */
@@ -72,7 +72,7 @@ export class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
72
72
  });
73
73
  }
74
74
  /**
75
- * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
75
+ * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
76
76
  * LTNP030 - Get Principal Work Share
77
77
  */
78
78
  lTNP030Raw(requestParameters, initOverrides) {
@@ -83,7 +83,7 @@ export class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
83
83
  });
84
84
  }
85
85
  /**
86
- * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
86
+ * Share of this tenant\'s work done by agents over a date range: totals by principal type, a per-module breakdown, and the agents that wrote. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
87
87
  * LTNP030 - Get Principal Work Share
88
88
  */
89
89
  lTNP030(requestParameters, initOverrides) {
@@ -137,7 +137,7 @@ export class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
137
137
  });
138
138
  }
139
139
  /**
140
- * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
140
+ * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
141
141
  * LTNP031 - Get Agent Cost Summary
142
142
  */
143
143
  lTNP031Raw(requestParameters, initOverrides) {
@@ -148,7 +148,7 @@ export class PLATFORMLTNPTenantPrincipalMetricsApi extends runtime.BaseAPI {
148
148
  });
149
149
  }
150
150
  /**
151
- * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, and only with AGENT_PRINCIPAL_ADMIN.
151
+ * Executions, tokens and cost per agent over a date range, and whether any executions ran without drawing AI credits. agentId is ai_platform.agent.id, not a tenant.principal id — see AgentCostSummaryDTO. Defaults to the last 30 days; a range longer than 366 days is refused. Only a person may read this, with AGENT_PRINCIPAL_ADMIN or AGENT_PRINCIPAL_APPROVE (owners, admins and managers).
152
152
  * LTNP031 - Get Agent Cost Summary
153
153
  */
154
154
  lTNP031(requestParameters, initOverrides) {