@aionixone/client-agent 0.0.0-stage → 0.3.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +11 -0
  3. package/README.md +42 -2
  4. package/dist/generated/catalog.d.ts +859 -0
  5. package/dist/generated/catalog.d.ts.map +1 -0
  6. package/dist/generated/catalog.js +855 -0
  7. package/dist/generated/catalog.js.map +1 -0
  8. package/dist/generated/index.d.ts +6 -0
  9. package/dist/generated/index.d.ts.map +1 -0
  10. package/dist/generated/index.js +7 -0
  11. package/dist/generated/index.js.map +1 -0
  12. package/dist/generated/schema_types.d.ts +133 -0
  13. package/dist/generated/schema_types.d.ts.map +1 -0
  14. package/dist/generated/schema_types.js +3 -0
  15. package/dist/generated/schema_types.js.map +1 -0
  16. package/dist/generated/service.d.ts +916 -0
  17. package/dist/generated/service.d.ts.map +1 -0
  18. package/dist/generated/service.js +1170 -0
  19. package/dist/generated/service.js.map +1 -0
  20. package/dist/generated/trn.d.ts +98 -0
  21. package/dist/generated/trn.d.ts.map +1 -0
  22. package/dist/generated/trn.js +359 -0
  23. package/dist/generated/trn.js.map +1 -0
  24. package/dist/generated/types.d.ts +427 -0
  25. package/dist/generated/types.d.ts.map +1 -0
  26. package/dist/generated/types.js +3 -0
  27. package/dist/generated/types.js.map +1 -0
  28. package/dist/index.d.ts +2 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +2 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/session.d.ts +25 -0
  33. package/dist/session.d.ts.map +1 -0
  34. package/dist/session.js +67 -0
  35. package/dist/session.js.map +1 -0
  36. package/package.json +34 -4
  37. package/src/generated/catalog.ts +858 -0
  38. package/src/generated/index.ts +7 -0
  39. package/src/generated/schema_types.ts +134 -0
  40. package/src/generated/service.ts +1240 -0
  41. package/src/generated/trn.ts +517 -0
  42. package/src/generated/types.ts +500 -0
  43. package/src/index.ts +1 -0
  44. package/src/session.ts +124 -0
@@ -0,0 +1,916 @@
1
+ import type { CallEngine, CallOptions, ExecutionCallOptions } from '@aionixone/client-core';
2
+ import type { AgentMcpEndpointAccessRequirementListResponse, AgentMcpEndpointListQuery, AgentMcpEndpointListResponse, AgentMcpEndpointReadResponse, AgentProfileAccessRequirementListResponse, AgentProfileContextBudgetResolveResponse, AgentProfileInvokeResponse, AgentProfileListQuery, AgentProfileListResponse, AgentProfileReadResponse, AgentProfileStatisticsListQuery, AgentProfileStatisticsListResponse, AgentProfileStatisticsReadQuery, AgentProfileStatisticsReadResponse, AgentProfileThreadCreationRequirementReadResponse, AgentProfileToolStatisticsReadQuery, AgentProfileToolStatisticsReadResponse, AgentProfileVersionDeleteResponse, AgentProfileVersionListQuery, AgentProfileVersionListResponse, AgentProfileVersionReadResponse, AgentProfileVersionSetCurrentResponse, AgentPromptListQuery, AgentPromptListResponse, AgentPromptReadResponse, AgentPromptRuntimeReadResponse, AgentPromptRuntimeResolveResponse, AgentPromptVersionDeleteResponse, AgentPromptVersionListQuery, AgentPromptVersionListResponse, AgentPromptVersionReadResponse, AgentPromptVersionSetCurrentResponse, AgentSessionConnectResponse, AgentSkillListQuery, AgentSkillListResponse, AgentSkillReadResponse, AgentSkillVersionDeleteResponse, AgentSkillVersionFileReadQuery, AgentSkillVersionFileReadResponse, AgentSkillVersionListQuery, AgentSkillVersionListResponse, AgentSkillVersionPackageReadResponse, AgentSkillVersionReadResponse, AgentSkillVersionSetCurrentResponse, AgentThreadArchiveResponse, AgentThreadDeleteResponse, AgentThreadInterruptResponse, AgentThreadItemListQuery, AgentThreadItemListResponse, AgentThreadListQuery, AgentThreadListResponse, AgentThreadNotificationStreamQuery, AgentThreadNotificationStreamResponse, AgentThreadPendingInteractionAnswerResponse, AgentThreadPendingInteractionListResponse, AgentThreadReadResponse, AgentThreadRenameResponse, AgentThreadShutdownResponse, AgentThreadStatisticsReadQuery, AgentThreadStatisticsReadResponse, AgentThreadStatusReadResponse, AgentThreadStatusStreamQuery, AgentThreadStatusStreamResponse, AgentThreadToolStatisticsReadQuery, AgentThreadToolStatisticsReadResponse, AgentThreadTurnListQuery, AgentThreadTurnListResponse, AgentThreadUnarchiveResponse, AgentThreadUsageListQuery, AgentThreadUsageListResponse, AgentTurnAttachmentReadResponse, AgentTurnReadResponse } from './types.js';
3
+ import type { AgentProfileAccessRequirementsRequest, AgentProfileContextBudgetRequest, AgentProfileInvokeRequest, ArchiveThreadRequest, ConnectAgentSessionRequest, InterruptThreadRequest, McpEndpointAccessRequirementsRequest, ReadPromptRequest, RenameThreadRequest, ResolvePromptRequest, ResolveThreadInteractionRequest, ShutdownThreadRequest } from "@aionixone/client-types/agent";
4
+ /** The `agent` service. */
5
+ export declare class AgentService {
6
+ readonly mcpEndpoint: AgentMcpEndpointResource;
7
+ readonly profile: AgentProfileResource;
8
+ readonly prompt: AgentPromptResource;
9
+ readonly session: AgentSessionResource;
10
+ readonly skill: AgentSkillResource;
11
+ readonly thread: AgentThreadResource;
12
+ readonly turn: AgentTurnResource;
13
+ /** Not part of the public API: `AionixOne` constructs every service. */
14
+ constructor(engine: CallEngine);
15
+ }
16
+ /** The `mcpEndpoint` operations of the `agent` service. */
17
+ export declare class AgentMcpEndpointResource {
18
+ #private;
19
+ /** Not part of the public API. */
20
+ constructor(engine: CallEngine);
21
+ /**
22
+ * List MCP endpoint access requirements
23
+ *
24
+ * List the permissions an MCP endpoint's runtime identity needs
25
+ *
26
+ * List the permissions an MCP endpoint's runtime identity needs, calculated from the saved endpoint or unsaved content.
27
+ *
28
+ * Replay: has no effect; retried after an attempt with an unknown result.
29
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_McpEndpointNotFound`.
30
+ *
31
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
32
+ * @param body The request body.
33
+ * @param options Call options.
34
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
35
+ */
36
+ accessRequirementList(trn: string, body: McpEndpointAccessRequirementsRequest, options?: CallOptions): Promise<AgentMcpEndpointAccessRequirementListResponse>;
37
+ /**
38
+ * List MCP endpoints
39
+ *
40
+ * List declarative agent MCP endpoints with optional tag filters and pagination.
41
+ *
42
+ * Replay: has no effect; retried after an attempt with an unknown result.
43
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`.
44
+ *
45
+ * @param query The query, by wire names.
46
+ * @param options Call options.
47
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
48
+ */
49
+ list(query?: AgentMcpEndpointListQuery, options?: CallOptions): Promise<AgentMcpEndpointListResponse>;
50
+ /**
51
+ * Every item of `agent.mcp-endpoint.list`, page after page, starting from `query`.
52
+ * Each page is one call with its own time budget and retries.
53
+ *
54
+ * @param query The query of the first page; `limit` is the size of every page.
55
+ * @param options Call options of every page.
56
+ */
57
+ listIter(query?: AgentMcpEndpointListQuery, options?: CallOptions): AsyncGenerator<AgentMcpEndpointListResponse['items'][number], void, undefined>;
58
+ /**
59
+ * Read MCP endpoint
60
+ *
61
+ * Get MCP endpoint
62
+ *
63
+ * Read one declarative MCP endpoint by TRN, including its tools and runtime ServiceAccount.
64
+ *
65
+ * Replay: has no effect; retried after an attempt with an unknown result.
66
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_McpEndpointNotFound`.
67
+ *
68
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
69
+ * @param options Call options.
70
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
71
+ */
72
+ read(trn: string, options?: CallOptions): Promise<AgentMcpEndpointReadResponse>;
73
+ }
74
+ /** The `profile` operations of the `agent` service. */
75
+ export declare class AgentProfileResource {
76
+ #private;
77
+ /** Not part of the public API. */
78
+ constructor(engine: CallEngine);
79
+ /**
80
+ * List agent profile access requirements
81
+ *
82
+ * List the permissions an agent profile's runtime identity needs
83
+ *
84
+ * List the permissions an agent profile's runtime identity needs, calculated from the saved profile or unsaved content.
85
+ *
86
+ * Replay: has no effect; retried after an attempt with an unknown result.
87
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ProfileNotFound`.
88
+ *
89
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
90
+ * @param body The request body.
91
+ * @param options Call options.
92
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
93
+ */
94
+ accessRequirementList(trn: string, body: AgentProfileAccessRequirementsRequest, options?: CallOptions): Promise<AgentProfileAccessRequirementListResponse>;
95
+ /**
96
+ * Resolve Profile context budgets
97
+ *
98
+ * Resolve context budgets for a Profile draft
99
+ *
100
+ * Replay: has no effect; retried after an attempt with an unknown result.
101
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`.
102
+ *
103
+ * @param body The request body.
104
+ * @param options Call options.
105
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
106
+ */
107
+ contextBudgetResolve(body: AgentProfileContextBudgetRequest, options?: CallOptions): Promise<AgentProfileContextBudgetResolveResponse>;
108
+ /**
109
+ * Invoke Profile
110
+ *
111
+ * Invoke an Agent Profile
112
+ *
113
+ * Submit a Turn to a Profile, optionally continuing an existing Thread.
114
+ *
115
+ * Replay: the idempotency key replays the accepted execution for 604800 seconds.
116
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`, `Agent_ProfileNotFound`, `Agent_PromptNotFound`, `Agent_SkillNotFound`, `Agent_VersionNotFound`, `Internal_IdempotencyKeyReused`, `Internal_Conflict`.
117
+ *
118
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
119
+ * @param body The request body.
120
+ * @param options Call options.
121
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
122
+ */
123
+ invoke(trn: string, body: AgentProfileInvokeRequest, options?: ExecutionCallOptions): Promise<AgentProfileInvokeResponse>;
124
+ /**
125
+ * List agent profiles
126
+ *
127
+ * List runtime-ready agent profiles with optional tag filters and pagination.
128
+ *
129
+ * Replay: has no effect; retried after an attempt with an unknown result.
130
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`.
131
+ *
132
+ * @param query The query, by wire names.
133
+ * @param options Call options.
134
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
135
+ */
136
+ list(query?: AgentProfileListQuery, options?: CallOptions): Promise<AgentProfileListResponse>;
137
+ /**
138
+ * Every item of `agent.profile.list`, page after page, starting from `query`.
139
+ * Each page is one call with its own time budget and retries.
140
+ *
141
+ * @param query The query of the first page; `limit` is the size of every page.
142
+ * @param options Call options of every page.
143
+ */
144
+ listIter(query?: AgentProfileListQuery, options?: CallOptions): AsyncGenerator<AgentProfileListResponse['items'][number], void, undefined>;
145
+ /**
146
+ * Read agent profile
147
+ *
148
+ * Get agent profile
149
+ *
150
+ * Read one agent profile resource by TRN, including language model, prompt, skills, tools, and runtime policy.
151
+ *
152
+ * Replay: has no effect; retried after an attempt with an unknown result.
153
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`.
154
+ *
155
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
156
+ * @param options Call options.
157
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
158
+ */
159
+ read(trn: string, options?: CallOptions): Promise<AgentProfileReadResponse>;
160
+ /**
161
+ * List per-Agent statistics
162
+ *
163
+ * One row per Agent Profile with a Turn that ended in the window: outcomes, tokens and estimated cost.
164
+ *
165
+ * Replay: has no effect; retried after an attempt with an unknown result.
166
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_StatisticsWindowRejected`, `Agent_QueryDeadlineExceeded`.
167
+ *
168
+ * @param query The query, by wire names.
169
+ * @param options Call options.
170
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
171
+ */
172
+ statisticsList(query?: AgentProfileStatisticsListQuery, options?: CallOptions): Promise<AgentProfileStatisticsListResponse>;
173
+ /**
174
+ * Every item of `agent.profile.statistics_list`, page after page, starting from `query`.
175
+ * Each page is one call with its own time budget and retries.
176
+ *
177
+ * @param query The query of the first page; `limit` is the size of every page.
178
+ * @param options Call options of every page.
179
+ */
180
+ statisticsListIter(query?: AgentProfileStatisticsListQuery, options?: CallOptions): AsyncGenerator<AgentProfileStatisticsListResponse['items'][number], void, undefined>;
181
+ /**
182
+ * Summarize one Agent over a window
183
+ *
184
+ * The figures of one Agent Profile, with a comparison of its Profile versions.
185
+ *
186
+ * Replay: has no effect; retried after an attempt with an unknown result.
187
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_StatisticsWindowRejected`, `Agent_QueryDeadlineExceeded`.
188
+ *
189
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
190
+ * @param query The query, by wire names.
191
+ * @param options Call options.
192
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
193
+ */
194
+ statisticsRead(trn: string, query: AgentProfileStatisticsReadQuery, options?: CallOptions): Promise<AgentProfileStatisticsReadResponse>;
195
+ /**
196
+ * Read Thread creation requirements
197
+ *
198
+ * Get new Thread creation requirements for an Agent Profile
199
+ *
200
+ * Read the workspace requirements for creating a new Thread under one Agent Profile.
201
+ *
202
+ * Replay: has no effect; retried after an attempt with an unknown result.
203
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`.
204
+ *
205
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
206
+ * @param options Call options.
207
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
208
+ */
209
+ threadCreationRequirementRead(trn: string, options?: CallOptions): Promise<AgentProfileThreadCreationRequirementReadResponse>;
210
+ /**
211
+ * Summarize tool calls for one Agent
212
+ *
213
+ * Tool outcomes in the selected window, queried on demand. At most 50 groups, by tool, operation and resource; a truncated list cannot provide a global failure rate.
214
+ *
215
+ * Replay: has no effect; retried after an attempt with an unknown result.
216
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_StatisticsWindowRejected`, `Agent_QueryDeadlineExceeded`.
217
+ *
218
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
219
+ * @param query The query, by wire names.
220
+ * @param options Call options.
221
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
222
+ */
223
+ toolStatisticsRead(trn: string, query: AgentProfileToolStatisticsReadQuery, options?: CallOptions): Promise<AgentProfileToolStatisticsReadResponse>;
224
+ /**
225
+ * Delete agent profile version
226
+ *
227
+ * Delete one Agent profile version that is not current; make another version current first to delete the current one.
228
+ *
229
+ * Replay: not declared; an attempt with an unknown result is not retried.
230
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_VersionNotFound`, `Declarative_RemovalBlocked`, `Internal_Conflict`.
231
+ *
232
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
233
+ * @param options Call options.
234
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
235
+ */
236
+ versionDelete(trn: string, options?: CallOptions): Promise<AgentProfileVersionDeleteResponse>;
237
+ /**
238
+ * List agent profile versions
239
+ *
240
+ * List the versions of one Agent profile.
241
+ *
242
+ * Replay: has no effect; retried after an attempt with an unknown result.
243
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`.
244
+ *
245
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
246
+ * @param query The query, by wire names.
247
+ * @param options Call options.
248
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
249
+ */
250
+ versionList(trn: string, query?: AgentProfileVersionListQuery, options?: CallOptions): Promise<AgentProfileVersionListResponse>;
251
+ /**
252
+ * Every item of `agent.profile.version_list`, page after page, starting from `query`.
253
+ * Each page is one call with its own time budget and retries.
254
+ *
255
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
256
+ * @param query The query of the first page; `limit` is the size of every page.
257
+ * @param options Call options of every page.
258
+ */
259
+ versionListIter(trn: string, query?: AgentProfileVersionListQuery, options?: CallOptions): AsyncGenerator<AgentProfileVersionListResponse['items'][number], void, undefined>;
260
+ /**
261
+ * Read agent profile version
262
+ *
263
+ * Get agent profile version
264
+ *
265
+ * Read one Agent profile version and its spec by exact version TRN.
266
+ *
267
+ * Replay: has no effect; retried after an attempt with an unknown result.
268
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_VersionNotFound`.
269
+ *
270
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
271
+ * @param options Call options.
272
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
273
+ */
274
+ versionRead(trn: string, options?: CallOptions): Promise<AgentProfileVersionReadResponse>;
275
+ /**
276
+ * Set the current agent profile version
277
+ *
278
+ * Point a Agent profile at one of its versions; new operations use it from now on.
279
+ *
280
+ * Replay: not idempotent; an attempt answered with `Agent_ProfileNotFound`, `Agent_VersionNotFound` did not run.
281
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_VersionNotFound`, `Internal_Conflict`.
282
+ *
283
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
284
+ * @param options Call options.
285
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
286
+ */
287
+ versionSetCurrent(trn: string, options?: CallOptions): Promise<AgentProfileVersionSetCurrentResponse>;
288
+ }
289
+ /** The `prompt` operations of the `agent` service. */
290
+ export declare class AgentPromptResource {
291
+ #private;
292
+ /** Not part of the public API. */
293
+ constructor(engine: CallEngine);
294
+ /**
295
+ * List prompts
296
+ *
297
+ * List declarative prompt resources with optional tag filters and pagination.
298
+ *
299
+ * Replay: has no effect; retried after an attempt with an unknown result.
300
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`.
301
+ *
302
+ * @param query The query, by wire names.
303
+ * @param options Call options.
304
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
305
+ */
306
+ list(query?: AgentPromptListQuery, options?: CallOptions): Promise<AgentPromptListResponse>;
307
+ /**
308
+ * Every item of `agent.prompt.list`, page after page, starting from `query`.
309
+ * Each page is one call with its own time budget and retries.
310
+ *
311
+ * @param query The query of the first page; `limit` is the size of every page.
312
+ * @param options Call options of every page.
313
+ */
314
+ listIter(query?: AgentPromptListQuery, options?: CallOptions): AsyncGenerator<AgentPromptListResponse['items'][number], void, undefined>;
315
+ /**
316
+ * Get prompt
317
+ *
318
+ * Read one Prompt occurrence by TRN, including its metadata and current immutable Version pointer.
319
+ *
320
+ * Replay: has no effect; retried after an attempt with an unknown result.
321
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_PromptNotFound`.
322
+ *
323
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
324
+ * @param options Call options.
325
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
326
+ */
327
+ read(trn: string, options?: CallOptions): Promise<AgentPromptReadResponse>;
328
+ /**
329
+ * Read prompt runtime
330
+ *
331
+ * Read resolved prompt runtime view
332
+ *
333
+ * Render and read the resolved prompt runtime view, including selected prompt identity, request messages, and trace details.
334
+ *
335
+ * Replay: has no effect; retried after an attempt with an unknown result.
336
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_PromptNotFound`, `Agent_VersionNotFound`, `Agent_ThreadNotFound`, `Agent_TurnNotFound`, `Agent_InvalidState`, `Agent_RequestTemplateInvalid`, `Internal_NotFound`.
337
+ *
338
+ * @param body The request body.
339
+ * @param options Call options.
340
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
341
+ */
342
+ runtimeRead(body: ReadPromptRequest, options?: CallOptions): Promise<AgentPromptRuntimeReadResponse>;
343
+ /**
344
+ * Resolve prompt runtime
345
+ *
346
+ * Resolve prompt runtime identity
347
+ *
348
+ * Resolve prompt runtime identity from a prepared turn, prompt, or prompt version reference without rendering the final request body.
349
+ *
350
+ * Replay: has no effect; retried after an attempt with an unknown result.
351
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_PromptNotFound`, `Agent_VersionNotFound`, `Agent_ThreadNotFound`, `Agent_TurnNotFound`, `Agent_InvalidState`, `Internal_NotFound`.
352
+ *
353
+ * @param body The request body.
354
+ * @param options Call options.
355
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
356
+ */
357
+ runtimeResolve(body: ResolvePromptRequest, options?: CallOptions): Promise<AgentPromptRuntimeResolveResponse>;
358
+ /**
359
+ * Delete prompt version
360
+ *
361
+ * Delete Prompt version
362
+ *
363
+ * Delete one Prompt version that is not current; make another version current first to delete the current one.
364
+ *
365
+ * Replay: not declared; an attempt with an unknown result is not retried.
366
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_PromptNotFound`, `Agent_VersionNotFound`, `Declarative_RemovalBlocked`, `Internal_Conflict`.
367
+ *
368
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
369
+ * @param options Call options.
370
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
371
+ */
372
+ versionDelete(trn: string, options?: CallOptions): Promise<AgentPromptVersionDeleteResponse>;
373
+ /**
374
+ * List prompt versions
375
+ *
376
+ * List published, undeleted versions for one Prompt occurrence.
377
+ *
378
+ * Replay: has no effect; retried after an attempt with an unknown result.
379
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_PromptNotFound`.
380
+ *
381
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
382
+ * @param query The query, by wire names.
383
+ * @param options Call options.
384
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
385
+ */
386
+ versionList(trn: string, query?: AgentPromptVersionListQuery, options?: CallOptions): Promise<AgentPromptVersionListResponse>;
387
+ /**
388
+ * Every item of `agent.prompt.version_list`, page after page, starting from `query`.
389
+ * Each page is one call with its own time budget and retries.
390
+ *
391
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
392
+ * @param query The query of the first page; `limit` is the size of every page.
393
+ * @param options Call options of every page.
394
+ */
395
+ versionListIter(trn: string, query?: AgentPromptVersionListQuery, options?: CallOptions): AsyncGenerator<AgentPromptVersionListResponse['items'][number], void, undefined>;
396
+ /**
397
+ * Read prompt version
398
+ *
399
+ * Get prompt version
400
+ *
401
+ * Read one published Prompt version by exact parent qualifier TRN.
402
+ *
403
+ * Replay: has no effect; retried after an attempt with an unknown result.
404
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_PromptNotFound`, `Agent_VersionNotFound`, `Internal_NotFound`.
405
+ *
406
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
407
+ * @param options Call options.
408
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
409
+ */
410
+ versionRead(trn: string, options?: CallOptions): Promise<AgentPromptVersionReadResponse>;
411
+ /**
412
+ * Set the current prompt version
413
+ *
414
+ * Point a Prompt at one of its versions; new Turns use it from now on.
415
+ *
416
+ * Replay: not idempotent; an attempt answered with `Agent_PromptNotFound`, `Agent_VersionNotFound` did not run.
417
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_PromptNotFound`, `Agent_VersionNotFound`, `Internal_Conflict`.
418
+ *
419
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
420
+ * @param options Call options.
421
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
422
+ */
423
+ versionSetCurrent(trn: string, options?: CallOptions): Promise<AgentPromptVersionSetCurrentResponse>;
424
+ }
425
+ /** The `session` operations of the `agent` service. */
426
+ export declare class AgentSessionResource {
427
+ #private;
428
+ /** Not part of the public API. */
429
+ constructor(engine: CallEngine);
430
+ /**
431
+ * Connect agent session
432
+ *
433
+ * Issue a short-lived bootstrap for a live Agent session attached to one existing Thread.
434
+ *
435
+ * Replay: not declared; an attempt with an unknown result is not retried.
436
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`, `Internal_Conflict`.
437
+ *
438
+ * @param body The request body.
439
+ * @param options Call options.
440
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
441
+ */
442
+ connect(body: ConnectAgentSessionRequest, options?: CallOptions): Promise<AgentSessionConnectResponse>;
443
+ }
444
+ /** The `skill` operations of the `agent` service. */
445
+ export declare class AgentSkillResource {
446
+ #private;
447
+ /** Not part of the public API. */
448
+ constructor(engine: CallEngine);
449
+ /**
450
+ * List skills
451
+ *
452
+ * List registered agent skill packages with optional tag filters and pagination.
453
+ *
454
+ * Replay: has no effect; retried after an attempt with an unknown result.
455
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`.
456
+ *
457
+ * @param query The query, by wire names.
458
+ * @param options Call options.
459
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
460
+ */
461
+ list(query?: AgentSkillListQuery, options?: CallOptions): Promise<AgentSkillListResponse>;
462
+ /**
463
+ * Every item of `agent.skill.list`, page after page, starting from `query`.
464
+ * Each page is one call with its own time budget and retries.
465
+ *
466
+ * @param query The query of the first page; `limit` is the size of every page.
467
+ * @param options Call options of every page.
468
+ */
469
+ listIter(query?: AgentSkillListQuery, options?: CallOptions): AsyncGenerator<AgentSkillListResponse['items'][number], void, undefined>;
470
+ /**
471
+ * Read skill
472
+ *
473
+ * Get skill
474
+ *
475
+ * Read one registered skill package resource by TRN, including package artifact metadata.
476
+ *
477
+ * Replay: has no effect; retried after an attempt with an unknown result.
478
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_SkillNotFound`.
479
+ *
480
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
481
+ * @param options Call options.
482
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
483
+ */
484
+ read(trn: string, options?: CallOptions): Promise<AgentSkillReadResponse>;
485
+ /**
486
+ * Delete skill version
487
+ *
488
+ * Delete Skill version
489
+ *
490
+ * Delete one Skill version that is not current; make another version current first to delete the current one.
491
+ *
492
+ * Replay: not declared; an attempt with an unknown result is not retried.
493
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_SkillNotFound`, `Agent_VersionNotFound`, `Declarative_RemovalBlocked`, `Internal_Conflict`.
494
+ *
495
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
496
+ * @param options Call options.
497
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
498
+ */
499
+ versionDelete(trn: string, options?: CallOptions): Promise<AgentSkillVersionDeleteResponse>;
500
+ /**
501
+ * Read skill version file
502
+ *
503
+ * Read one verified file from an immutable Agent Skill package version
504
+ *
505
+ * Read the verified bytes of one file from an exact Skill version.
506
+ *
507
+ * Replay: has no effect; retried after an attempt with an unknown result.
508
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_SkillNotFound`, `Agent_VersionNotFound`, `Internal_NotFound`.
509
+ *
510
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
511
+ * @param query The query, by wire names.
512
+ * @param options Call options.
513
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
514
+ */
515
+ versionFileRead(trn: string, query: AgentSkillVersionFileReadQuery, options?: CallOptions): Promise<AgentSkillVersionFileReadResponse>;
516
+ /**
517
+ * List skill versions
518
+ *
519
+ * List immutable package versions for one Agent Skill
520
+ *
521
+ * List immutable package versions for one Agent Skill occurrence.
522
+ *
523
+ * Replay: has no effect; retried after an attempt with an unknown result.
524
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_SkillNotFound`.
525
+ *
526
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
527
+ * @param query The query, by wire names.
528
+ * @param options Call options.
529
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
530
+ */
531
+ versionList(trn: string, query?: AgentSkillVersionListQuery, options?: CallOptions): Promise<AgentSkillVersionListResponse>;
532
+ /**
533
+ * Every item of `agent.skill.version_list`, page after page, starting from `query`.
534
+ * Each page is one call with its own time budget and retries.
535
+ *
536
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
537
+ * @param query The query of the first page; `limit` is the size of every page.
538
+ * @param options Call options of every page.
539
+ */
540
+ versionListIter(trn: string, query?: AgentSkillVersionListQuery, options?: CallOptions): AsyncGenerator<AgentSkillVersionListResponse['items'][number], void, undefined>;
541
+ /**
542
+ * Download Skill version package
543
+ *
544
+ * Read the exact immutable Agent Skill package bytes
545
+ *
546
+ * Replay: has no effect; retried after an attempt with an unknown result.
547
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_SkillNotFound`, `Agent_VersionNotFound`, `Internal_NotFound`.
548
+ *
549
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
550
+ * @param options Call options.
551
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
552
+ */
553
+ versionPackageRead(trn: string, options?: CallOptions): Promise<AgentSkillVersionPackageReadResponse>;
554
+ /**
555
+ * Read skill version
556
+ *
557
+ * Get one immutable Agent Skill package version
558
+ *
559
+ * Read one immutable Agent Skill package version and its validated manifest.
560
+ *
561
+ * Replay: has no effect; retried after an attempt with an unknown result.
562
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_SkillNotFound`, `Agent_VersionNotFound`, `Internal_NotFound`.
563
+ *
564
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
565
+ * @param options Call options.
566
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
567
+ */
568
+ versionRead(trn: string, options?: CallOptions): Promise<AgentSkillVersionReadResponse>;
569
+ /**
570
+ * Set the current skill version
571
+ *
572
+ * Point a Skill at one of its versions; new Turns use it from now on.
573
+ *
574
+ * Replay: not idempotent; an attempt answered with `Agent_SkillNotFound`, `Agent_VersionNotFound` did not run.
575
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_SkillNotFound`, `Agent_VersionNotFound`, `Internal_Conflict`.
576
+ *
577
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
578
+ * @param options Call options.
579
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
580
+ */
581
+ versionSetCurrent(trn: string, options?: CallOptions): Promise<AgentSkillVersionSetCurrentResponse>;
582
+ }
583
+ /** The `thread` operations of the `agent` service. */
584
+ export declare class AgentThreadResource {
585
+ #private;
586
+ /** Not part of the public API. */
587
+ constructor(engine: CallEngine);
588
+ /**
589
+ * Archive thread
590
+ *
591
+ * Archive one thread so it is hidden from the default active thread list.
592
+ *
593
+ * Replay: not declared; an attempt with an unknown result is not retried.
594
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`, `Agent_InvalidState`.
595
+ *
596
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
597
+ * @param body The request body.
598
+ * @param options Call options.
599
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
600
+ */
601
+ archive(trn: string, body: ArchiveThreadRequest, options?: CallOptions): Promise<AgentThreadArchiveResponse>;
602
+ /**
603
+ * Delete thread
604
+ *
605
+ * Permanently delete one archived idle thread and its thread-owned state.
606
+ *
607
+ * Replay: not declared; an attempt with an unknown result is not retried.
608
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`, `Agent_InvalidState`.
609
+ *
610
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
611
+ * @param options Call options.
612
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
613
+ */
614
+ delete(trn: string, options?: CallOptions): Promise<AgentThreadDeleteResponse>;
615
+ /**
616
+ * Interrupt thread turn
617
+ *
618
+ * Submit durable thread interrupt command
619
+ *
620
+ * Submit a durable interrupt command for one thread. Execution is handled by the agent worker command plane.
621
+ *
622
+ * Replay: not declared; an attempt with an unknown result is not retried.
623
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`, `Internal_IdempotencyKeyReused`, `Internal_Conflict`.
624
+ *
625
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
626
+ * @param body The request body.
627
+ * @param options Call options.
628
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
629
+ */
630
+ interrupt(trn: string, body: InterruptThreadRequest, options?: CallOptions): Promise<AgentThreadInterruptResponse>;
631
+ /**
632
+ * List thread items
633
+ *
634
+ * Page through projected thread items, optionally scoped to one turn.
635
+ *
636
+ * Replay: has no effect; retried after an attempt with an unknown result.
637
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`, `Agent_TurnNotFound`, `Agent_InvalidState`.
638
+ *
639
+ * @param trn Thread TRN such as trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id>
640
+ * @param query The query, by wire names.
641
+ * @param options Call options.
642
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
643
+ */
644
+ itemList(trn: string, query?: AgentThreadItemListQuery, options?: CallOptions): Promise<AgentThreadItemListResponse>;
645
+ /**
646
+ * Every item of `agent.thread.item_list`, page after page, starting from `query`.
647
+ * Each page is one call with its own time budget and retries.
648
+ *
649
+ * @param trn Thread TRN such as trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id>
650
+ * @param query The query of the first page; `limit` is the size of every page.
651
+ * @param options Call options of every page.
652
+ */
653
+ itemListIter(trn: string, query?: AgentThreadItemListQuery, options?: CallOptions): AsyncGenerator<AgentThreadItemListResponse['items'][number], void, undefined>;
654
+ /**
655
+ * List threads
656
+ *
657
+ * List agent threads with pagination, archived filtering, free-text search, and sort controls.
658
+ *
659
+ * Replay: has no effect; retried after an attempt with an unknown result.
660
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`.
661
+ *
662
+ * @param query The query, by wire names.
663
+ * @param options Call options.
664
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
665
+ */
666
+ list(query?: AgentThreadListQuery, options?: CallOptions): Promise<AgentThreadListResponse>;
667
+ /**
668
+ * Every item of `agent.thread.list`, page after page, starting from `query`.
669
+ * Each page is one call with its own time budget and retries.
670
+ *
671
+ * @param query The query of the first page; `limit` is the size of every page.
672
+ * @param options Call options of every page.
673
+ */
674
+ listIter(query?: AgentThreadListQuery, options?: CallOptions): AsyncGenerator<AgentThreadListResponse['items'][number], void, undefined>;
675
+ /**
676
+ * Stream thread notifications
677
+ *
678
+ * Stream durable thread notifications
679
+ *
680
+ * Stream durable notification events for one thread from the session fanout projection.
681
+ *
682
+ * Replay: has no effect; retried after an attempt with an unknown result.
683
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`.
684
+ *
685
+ * @param trn Agent thread TRN whose durable rollout stream is observed
686
+ * @param query The query, by wire names.
687
+ * @param options Call options.
688
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
689
+ */
690
+ notificationStream(trn: string, query?: AgentThreadNotificationStreamQuery, options?: CallOptions): AsyncIterable<AgentThreadNotificationStreamResponse>;
691
+ /**
692
+ * Resolve thread interaction
693
+ *
694
+ * Resolve one pending approval or user-input request through the resource/admin surface. Websocket-attached live session clients must answer live callback requests on the websocket session path instead of using this operation.
695
+ *
696
+ * Replay: not declared; an attempt with an unknown result is not retried.
697
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`, `Agent_TurnNotFound`, `Agent_InteractionNotFound`, `Agent_InvalidState`, `Internal_Conflict`.
698
+ *
699
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
700
+ * @param body The request body.
701
+ * @param options Call options.
702
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
703
+ */
704
+ pendingInteractionAnswer(trn: string, body: ResolveThreadInteractionRequest, options?: CallOptions): Promise<AgentThreadPendingInteractionAnswerResponse>;
705
+ /**
706
+ * Read thread pending interactions
707
+ *
708
+ * Get thread pending interactions
709
+ *
710
+ * Read unresolved approvals or user-input requests for one thread as a resource/admin surface. Websocket-attached live session clients must complete live callback flows on the websocket session path instead.
711
+ *
712
+ * Replay: has no effect; retried after an attempt with an unknown result.
713
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`.
714
+ *
715
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
716
+ * @param options Call options.
717
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
718
+ */
719
+ pendingInteractionList(trn: string, options?: CallOptions): Promise<AgentThreadPendingInteractionListResponse>;
720
+ /**
721
+ * Read thread
722
+ *
723
+ * Get thread
724
+ *
725
+ * Read one thread by TRN without loading historical turns.
726
+ *
727
+ * Replay: has no effect; retried after an attempt with an unknown result.
728
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`.
729
+ *
730
+ * @param trn Thread TRN such as trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id>
731
+ * @param options Call options.
732
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
733
+ */
734
+ read(trn: string, options?: CallOptions): Promise<AgentThreadReadResponse>;
735
+ /**
736
+ * Rename thread
737
+ *
738
+ * Rename one thread so list and read surfaces show a clearer human title.
739
+ *
740
+ * Replay: not declared; an attempt with an unknown result is not retried.
741
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`.
742
+ *
743
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
744
+ * @param body The request body.
745
+ * @param options Call options.
746
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
747
+ */
748
+ rename(trn: string, body: RenameThreadRequest, options?: CallOptions): Promise<AgentThreadRenameResponse>;
749
+ /**
750
+ * Shutdown thread
751
+ *
752
+ * Submit durable thread shutdown command
753
+ *
754
+ * Submit a durable shutdown command for one thread and prevent future turn claims for that thread.
755
+ *
756
+ * Replay: not declared; an attempt with an unknown result is not retried.
757
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`, `Internal_IdempotencyKeyReused`, `Internal_Conflict`.
758
+ *
759
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
760
+ * @param body The request body.
761
+ * @param options Call options.
762
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
763
+ */
764
+ shutdown(trn: string, body: ShutdownThreadRequest, options?: CallOptions): Promise<AgentThreadShutdownResponse>;
765
+ /**
766
+ * Summarize Agent Turns over a window
767
+ *
768
+ * Turn outcomes, failures, estimated cost, model usage, current waits for people and a trend by bucket across the tenant. Completion means a Turn ended normally, not that its task was achieved.
769
+ *
770
+ * Replay: has no effect; retried after an attempt with an unknown result.
771
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_StatisticsWindowRejected`, `Agent_QueryDeadlineExceeded`.
772
+ *
773
+ * @param query The query, by wire names.
774
+ * @param options Call options.
775
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
776
+ */
777
+ statisticsRead(query: AgentThreadStatisticsReadQuery, options?: CallOptions): Promise<AgentThreadStatisticsReadResponse>;
778
+ /**
779
+ * Get thread status
780
+ *
781
+ * Read the current projected runtime status for one thread without loading the full thread detail.
782
+ *
783
+ * Replay: has no effect; retried after an attempt with an unknown result.
784
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`.
785
+ *
786
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
787
+ * @param options Call options.
788
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
789
+ */
790
+ statusRead(trn: string, options?: CallOptions): Promise<AgentThreadStatusReadResponse>;
791
+ /**
792
+ * Stream thread status
793
+ *
794
+ * Stream durable thread status events
795
+ *
796
+ * Stream durable status events for one thread from the session fanout projection.
797
+ *
798
+ * Replay: has no effect; retried after an attempt with an unknown result.
799
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`.
800
+ *
801
+ * @param trn Agent thread TRN whose durable rollout stream is observed
802
+ * @param query The query, by wire names.
803
+ * @param options Call options.
804
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
805
+ */
806
+ statusStream(trn: string, query?: AgentThreadStatusStreamQuery, options?: CallOptions): AsyncIterable<AgentThreadStatusStreamResponse>;
807
+ /**
808
+ * Summarize tool calls across the tenant
809
+ *
810
+ * Tool outcomes in the selected window, queried on demand. At most 50 groups, by tool, operation and resource; a truncated list cannot provide a global failure rate.
811
+ *
812
+ * Replay: has no effect; retried after an attempt with an unknown result.
813
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ProfileNotFound`, `Agent_StatisticsWindowRejected`, `Agent_QueryDeadlineExceeded`.
814
+ *
815
+ * @param query The query, by wire names.
816
+ * @param options Call options.
817
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
818
+ */
819
+ toolStatisticsRead(query: AgentThreadToolStatisticsReadQuery, options?: CallOptions): Promise<AgentThreadToolStatisticsReadResponse>;
820
+ /**
821
+ * List thread turns
822
+ *
823
+ * Page through one thread's turn history with an item detail view.
824
+ *
825
+ * Replay: has no effect; retried after an attempt with an unknown result.
826
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`, `Agent_InvalidState`.
827
+ *
828
+ * @param trn Thread TRN such as trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id>
829
+ * @param query The query, by wire names.
830
+ * @param options Call options.
831
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
832
+ */
833
+ turnList(trn: string, query?: AgentThreadTurnListQuery, options?: CallOptions): Promise<AgentThreadTurnListResponse>;
834
+ /**
835
+ * Every item of `agent.thread.turn_list`, page after page, starting from `query`.
836
+ * Each page is one call with its own time budget and retries.
837
+ *
838
+ * @param trn Thread TRN such as trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id>
839
+ * @param query The query of the first page; `limit` is the size of every page.
840
+ * @param options Call options of every page.
841
+ */
842
+ turnListIter(trn: string, query?: AgentThreadTurnListQuery, options?: CallOptions): AsyncGenerator<AgentThreadTurnListResponse['items'][number], void, undefined>;
843
+ /**
844
+ * Unarchive thread
845
+ *
846
+ * Restore one archived thread back into the active thread list.
847
+ *
848
+ * Replay: not declared; an attempt with an unknown result is not retried.
849
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Agent_ThreadNotFound`, `Agent_InvalidState`.
850
+ *
851
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
852
+ * @param body The request body.
853
+ * @param options Call options.
854
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
855
+ */
856
+ unarchive(trn: string, body: ArchiveThreadRequest, options?: CallOptions): Promise<AgentThreadUnarchiveResponse>;
857
+ /**
858
+ * List thread usage
859
+ *
860
+ * List bounded per-Turn usage facts
861
+ *
862
+ * List bounded per-Turn token usage facts with an exact total.
863
+ *
864
+ * Replay: has no effect; retried after an attempt with an unknown result.
865
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`.
866
+ *
867
+ * @param trn Thread TRN whose bounded Turn usage facts should be listed
868
+ * @param query The query, by wire names.
869
+ * @param options Call options.
870
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
871
+ */
872
+ usageList(trn: string, query?: AgentThreadUsageListQuery, options?: CallOptions): Promise<AgentThreadUsageListResponse>;
873
+ /**
874
+ * Every item of `agent.thread.usage_list`, page after page, starting from `query`.
875
+ * Each page is one call with its own time budget and retries.
876
+ *
877
+ * @param trn Thread TRN whose bounded Turn usage facts should be listed
878
+ * @param query The query of the first page; `limit` is the size of every page.
879
+ * @param options Call options of every page.
880
+ */
881
+ usageListIter(trn: string, query?: AgentThreadUsageListQuery, options?: CallOptions): AsyncGenerator<AgentThreadUsageListResponse['items'][number], void, undefined>;
882
+ }
883
+ /** The `turn` operations of the `agent` service. */
884
+ export declare class AgentTurnResource {
885
+ #private;
886
+ /** Not part of the public API. */
887
+ constructor(engine: CallEngine);
888
+ /**
889
+ * Download Turn attachment
890
+ *
891
+ * Read the exact admitted bytes of one Turn attachment
892
+ *
893
+ * Replay: has no effect; retried after an attempt with an unknown result.
894
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`, `Agent_TurnNotFound`, `Agent_AttachmentNotFound`, `Internal_NotFound`.
895
+ *
896
+ * @param trn Agent turn TRN whose admitted attachment is read
897
+ * @param index Zero-based position of the attachment in the Turn's input
898
+ * @param options Call options.
899
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
900
+ */
901
+ attachmentRead(trn: string, index: bigint, options?: CallOptions): Promise<AgentTurnAttachmentReadResponse>;
902
+ /**
903
+ * Read Turn status
904
+ *
905
+ * Read durable agent turn invocation status
906
+ *
907
+ * Replay: has no effect; retried after an attempt with an unknown result.
908
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Agent_ThreadNotFound`, `Agent_TurnNotFound`.
909
+ *
910
+ * @param trn Agent TRN in the route path, for example trn:agent:tenant:test0001:profile/runtime-assistant, trn:agent:tenant:test0001:prompt/support-core, trn:agent:tenant:test0001:skill/support-docs, or trn:agent:tenant:test0001:thread/runtime-assistant/<thread_id> depending on the command
911
+ * @param options Call options.
912
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
913
+ */
914
+ read(trn: string, options?: CallOptions): Promise<AgentTurnReadResponse>;
915
+ }
916
+ //# sourceMappingURL=service.d.ts.map