@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,427 @@
1
+ import type { BinaryResponse } from '@aionixone/client-core';
2
+ import type { AgentProfileContextBudgetResponse, AgentProfileInvokeResponse as agent__AgentProfileInvokeResponse, AgentProfileResponse, AgentProfileStatisticsRow, AgentProfileStatisticsSort, AgentProfileVersionResponse, AgentStatisticsResponse, AgentThreadCreationRequirementsResponse, AgentToolStatisticsResponse, ConnectAgentSessionResponse, InterruptThreadResponse, McpEndpointResponse, PromptReadResponse, PromptResolveResponse, PromptResponse, PromptVersionResponse, ReadSkillVersionFileResponse, ReadSkillVersionPackageResponse, ReadTurnAttachmentResponse, ResolveThreadInteractionResponse, ShutdownThreadResponse, SkillResponse, SkillVersionResponse, ThreadDetail, ThreadItem, ThreadPendingInteractionsResponse, ThreadSort, ThreadStatus, ThreadStatusEventWire, ThreadStreamEventWire, ThreadSummary, ThreadTurn, ThreadTurnItemsView, ThreadTurnUsageSummary, ThreadUsageSort } from "@aionixone/client-types/agent";
3
+ import type { AccessRequirementSet, CollectionSort, DurableInvocationStatusSnapshot, OffsetPage, ProviderFilter, SearchTerm, TagSelector, VersionSort, ViewDirection, ViewPage } from "@aionixone/client-types/core";
4
+ import type { CurrentVersionResponse, ResourceTrn, VersionSummary } from "@aionixone/client-types/declarative";
5
+ import type { StatisticsWindowKind } from "@aionixone/client-types/governance";
6
+ /** The result of `agent.mcp-endpoint.access_requirement_list`. */
7
+ export type AgentMcpEndpointAccessRequirementListResponse = AccessRequirementSet;
8
+ /** The result of `agent.mcp-endpoint.list`. */
9
+ export type AgentMcpEndpointListResponse = OffsetPage<McpEndpointResponse>;
10
+ /** The query of `agent.mcp-endpoint.list`, by wire names. */
11
+ export interface AgentMcpEndpointListQuery {
12
+ /**
13
+ * Case-insensitive literal substring matched against name and description.
14
+ */
15
+ readonly search?: SearchTerm | null;
16
+ /**
17
+ * Tag selectors written as key:value; every selector must match.
18
+ */
19
+ readonly tag?: readonly TagSelector[];
20
+ /**
21
+ * Ordering; omitted means the collection's default order.
22
+ */
23
+ readonly sort?: CollectionSort | null;
24
+ /**
25
+ * Page size, between one and the shared maximum.
26
+ */
27
+ readonly limit?: number | null;
28
+ /**
29
+ * Row offset, counted from zero.
30
+ */
31
+ readonly offset?: number | null;
32
+ /**
33
+ * Provider the resource is filed under: `any`, `none`, or a Provider TRN.
34
+ */
35
+ readonly provider?: ProviderFilter | null;
36
+ }
37
+ /** The result of `agent.mcp-endpoint.read`. */
38
+ export type AgentMcpEndpointReadResponse = McpEndpointResponse;
39
+ /** The result of `agent.profile.access_requirement_list`. */
40
+ export type AgentProfileAccessRequirementListResponse = AccessRequirementSet;
41
+ /** The result of `agent.profile.context_budget_resolve`. */
42
+ export type AgentProfileContextBudgetResolveResponse = AgentProfileContextBudgetResponse;
43
+ /** The result of `agent.profile.invoke`. */
44
+ export type AgentProfileInvokeResponse = agent__AgentProfileInvokeResponse;
45
+ /** The result of `agent.profile.list`. */
46
+ export type AgentProfileListResponse = OffsetPage<AgentProfileResponse>;
47
+ /** The query of `agent.profile.list`, by wire names. */
48
+ export interface AgentProfileListQuery {
49
+ /**
50
+ * Case-insensitive literal substring matched against name and description.
51
+ */
52
+ readonly search?: SearchTerm | null;
53
+ /**
54
+ * Tag selectors written as key:value; every selector must match.
55
+ */
56
+ readonly tag?: readonly TagSelector[];
57
+ /**
58
+ * Ordering; omitted means the collection's default order.
59
+ */
60
+ readonly sort?: CollectionSort | null;
61
+ /**
62
+ * Page size, between one and the shared maximum.
63
+ */
64
+ readonly limit?: number | null;
65
+ /**
66
+ * Row offset, counted from zero.
67
+ */
68
+ readonly offset?: number | null;
69
+ /**
70
+ * Provider the resource is filed under: `any`, `none`, or a Provider TRN.
71
+ */
72
+ readonly provider?: ProviderFilter | null;
73
+ }
74
+ /** The result of `agent.profile.read`. */
75
+ export type AgentProfileReadResponse = AgentProfileResponse;
76
+ /** The result of `agent.profile.statistics_list`. */
77
+ export type AgentProfileStatisticsListResponse = OffsetPage<AgentProfileStatisticsRow>;
78
+ /** The query of `agent.profile.statistics_list`, by wire names. */
79
+ export interface AgentProfileStatisticsListQuery {
80
+ /**
81
+ * Case-insensitive literal substring matched against name and description.
82
+ */
83
+ readonly search?: SearchTerm | null;
84
+ /**
85
+ * Tag selectors written as key:value; every selector must match.
86
+ */
87
+ readonly tag?: readonly TagSelector[];
88
+ /**
89
+ * Ordering; omitted means the collection's default order.
90
+ */
91
+ readonly sort?: AgentProfileStatisticsSort | null;
92
+ /**
93
+ * Page size, between one and the shared maximum.
94
+ */
95
+ readonly limit?: number | null;
96
+ /**
97
+ * Row offset, counted from zero.
98
+ */
99
+ readonly offset?: number | null;
100
+ readonly window?: StatisticsWindowKind | null;
101
+ /**
102
+ * Window end; absent means the server clock. Given so that the
103
+ * requests of one page load describe the same instant.
104
+ */
105
+ readonly end?: string | null;
106
+ }
107
+ /** The result of `agent.profile.statistics_read`. */
108
+ export type AgentProfileStatisticsReadResponse = AgentStatisticsResponse;
109
+ /** The query of `agent.profile.statistics_read`, by wire names. */
110
+ export interface AgentProfileStatisticsReadQuery {
111
+ readonly window: StatisticsWindowKind;
112
+ /**
113
+ * Window end; absent means the server clock. Given so that the requests
114
+ * of one page load describe the same instant.
115
+ */
116
+ readonly end?: string | null;
117
+ }
118
+ /** The result of `agent.profile.thread_creation_requirement_read`. */
119
+ export type AgentProfileThreadCreationRequirementReadResponse = AgentThreadCreationRequirementsResponse;
120
+ /** The result of `agent.profile.tool_statistics_read`. */
121
+ export type AgentProfileToolStatisticsReadResponse = AgentToolStatisticsResponse;
122
+ /** The query of `agent.profile.tool_statistics_read`, by wire names. */
123
+ export interface AgentProfileToolStatisticsReadQuery {
124
+ readonly window: StatisticsWindowKind;
125
+ /**
126
+ * Window end; absent means the server clock. Given so that the requests
127
+ * of one page load describe the same instant.
128
+ */
129
+ readonly end?: string | null;
130
+ }
131
+ /** The result of `agent.profile.version_delete`. */
132
+ export type AgentProfileVersionDeleteResponse = void;
133
+ /** The result of `agent.profile.version_list`. */
134
+ export type AgentProfileVersionListResponse = OffsetPage<VersionSummary>;
135
+ /** The query of `agent.profile.version_list`, by wire names. */
136
+ export interface AgentProfileVersionListQuery {
137
+ /**
138
+ * Ordering; omitted means newest version first.
139
+ */
140
+ readonly sort?: VersionSort | null;
141
+ /**
142
+ * Page size, between one and the shared maximum.
143
+ */
144
+ readonly limit?: number | null;
145
+ /**
146
+ * Row offset, counted from zero.
147
+ */
148
+ readonly offset?: number | null;
149
+ }
150
+ /** The result of `agent.profile.version_read`. */
151
+ export type AgentProfileVersionReadResponse = AgentProfileVersionResponse;
152
+ /** The result of `agent.profile.version_set_current`. */
153
+ export type AgentProfileVersionSetCurrentResponse = CurrentVersionResponse;
154
+ /** The result of `agent.prompt.list`. */
155
+ export type AgentPromptListResponse = OffsetPage<PromptResponse>;
156
+ /** The query of `agent.prompt.list`, by wire names. */
157
+ export interface AgentPromptListQuery {
158
+ /**
159
+ * Case-insensitive literal substring matched against name and description.
160
+ */
161
+ readonly search?: SearchTerm | null;
162
+ /**
163
+ * Tag selectors written as key:value; every selector must match.
164
+ */
165
+ readonly tag?: readonly TagSelector[];
166
+ /**
167
+ * Ordering; omitted means the collection's default order.
168
+ */
169
+ readonly sort?: CollectionSort | null;
170
+ /**
171
+ * Page size, between one and the shared maximum.
172
+ */
173
+ readonly limit?: number | null;
174
+ /**
175
+ * Row offset, counted from zero.
176
+ */
177
+ readonly offset?: number | null;
178
+ /**
179
+ * Provider the resource is filed under: `any`, `none`, or a Provider TRN.
180
+ */
181
+ readonly provider?: ProviderFilter | null;
182
+ }
183
+ /** The result of `agent.prompt.read`. */
184
+ export type AgentPromptReadResponse = PromptResponse;
185
+ /** The result of `agent.prompt.runtime_read`. */
186
+ export type AgentPromptRuntimeReadResponse = PromptReadResponse;
187
+ /** The result of `agent.prompt.runtime_resolve`. */
188
+ export type AgentPromptRuntimeResolveResponse = PromptResolveResponse;
189
+ /** The result of `agent.prompt.version_delete`. */
190
+ export type AgentPromptVersionDeleteResponse = void;
191
+ /** The result of `agent.prompt.version_list`. */
192
+ export type AgentPromptVersionListResponse = OffsetPage<VersionSummary>;
193
+ /** The query of `agent.prompt.version_list`, by wire names. */
194
+ export interface AgentPromptVersionListQuery {
195
+ /**
196
+ * Ordering; omitted means newest version first.
197
+ */
198
+ readonly sort?: VersionSort | null;
199
+ /**
200
+ * Page size, between one and the shared maximum.
201
+ */
202
+ readonly limit?: number | null;
203
+ /**
204
+ * Row offset, counted from zero.
205
+ */
206
+ readonly offset?: number | null;
207
+ }
208
+ /** The result of `agent.prompt.version_read`. */
209
+ export type AgentPromptVersionReadResponse = PromptVersionResponse;
210
+ /** The result of `agent.prompt.version_set_current`. */
211
+ export type AgentPromptVersionSetCurrentResponse = CurrentVersionResponse;
212
+ /** The result of `agent.session.connect`. */
213
+ export type AgentSessionConnectResponse = ConnectAgentSessionResponse;
214
+ /** The result of `agent.skill.list`. */
215
+ export type AgentSkillListResponse = OffsetPage<SkillResponse>;
216
+ /** The query of `agent.skill.list`, by wire names. */
217
+ export interface AgentSkillListQuery {
218
+ /**
219
+ * Case-insensitive literal substring matched against name and description.
220
+ */
221
+ readonly search?: SearchTerm | null;
222
+ /**
223
+ * Tag selectors written as key:value; every selector must match.
224
+ */
225
+ readonly tag?: readonly TagSelector[];
226
+ /**
227
+ * Ordering; omitted means the collection's default order.
228
+ */
229
+ readonly sort?: CollectionSort | null;
230
+ /**
231
+ * Page size, between one and the shared maximum.
232
+ */
233
+ readonly limit?: number | null;
234
+ /**
235
+ * Row offset, counted from zero.
236
+ */
237
+ readonly offset?: number | null;
238
+ /**
239
+ * Provider the resource is filed under: `any`, `none`, or a Provider TRN.
240
+ */
241
+ readonly provider?: ProviderFilter | null;
242
+ }
243
+ /** The result of `agent.skill.read`. */
244
+ export type AgentSkillReadResponse = SkillResponse;
245
+ /** The result of `agent.skill.version_delete`. */
246
+ export type AgentSkillVersionDeleteResponse = void;
247
+ /** The result of `agent.skill.version_file_read`. */
248
+ export type AgentSkillVersionFileReadResponse = BinaryResponse<ReadSkillVersionFileResponse>;
249
+ /** The query of `agent.skill.version_file_read`, by wire names. */
250
+ export interface AgentSkillVersionFileReadQuery {
251
+ readonly path: string;
252
+ }
253
+ /** The result of `agent.skill.version_list`. */
254
+ export type AgentSkillVersionListResponse = OffsetPage<VersionSummary>;
255
+ /** The query of `agent.skill.version_list`, by wire names. */
256
+ export interface AgentSkillVersionListQuery {
257
+ /**
258
+ * Ordering; omitted means newest version first.
259
+ */
260
+ readonly sort?: VersionSort | null;
261
+ /**
262
+ * Page size, between one and the shared maximum.
263
+ */
264
+ readonly limit?: number | null;
265
+ /**
266
+ * Row offset, counted from zero.
267
+ */
268
+ readonly offset?: number | null;
269
+ }
270
+ /** The result of `agent.skill.version_package_read`. */
271
+ export type AgentSkillVersionPackageReadResponse = BinaryResponse<ReadSkillVersionPackageResponse>;
272
+ /** The result of `agent.skill.version_read`. */
273
+ export type AgentSkillVersionReadResponse = SkillVersionResponse;
274
+ /** The result of `agent.skill.version_set_current`. */
275
+ export type AgentSkillVersionSetCurrentResponse = CurrentVersionResponse;
276
+ /** The result of `agent.thread.archive`. */
277
+ export type AgentThreadArchiveResponse = ThreadSummary;
278
+ /** The result of `agent.thread.delete`. */
279
+ export type AgentThreadDeleteResponse = void;
280
+ /** The result of `agent.thread.interrupt`. */
281
+ export type AgentThreadInterruptResponse = InterruptThreadResponse;
282
+ /** The result of `agent.thread.item_list`. */
283
+ export type AgentThreadItemListResponse = ViewPage<ThreadItem>;
284
+ /** The query of `agent.thread.item_list`, by wire names. */
285
+ export interface AgentThreadItemListQuery {
286
+ /**
287
+ * Only the items of this turn.
288
+ */
289
+ readonly turnTrn?: string | null;
290
+ readonly cursor?: string | null;
291
+ readonly direction?: ViewDirection | null;
292
+ readonly limit?: number | null;
293
+ }
294
+ /** The result of `agent.thread.list`. */
295
+ export type AgentThreadListResponse = OffsetPage<ThreadSummary>;
296
+ /** The query of `agent.thread.list`, by wire names. */
297
+ export interface AgentThreadListQuery {
298
+ /**
299
+ * Case-insensitive literal substring matched against name and description.
300
+ */
301
+ readonly search?: SearchTerm | null;
302
+ /**
303
+ * Tag selectors written as key:value; every selector must match.
304
+ */
305
+ readonly tag?: readonly TagSelector[];
306
+ /**
307
+ * Ordering; omitted means the collection's default order.
308
+ */
309
+ readonly sort?: ThreadSort | null;
310
+ /**
311
+ * Page size, between one and the shared maximum.
312
+ */
313
+ readonly limit?: number | null;
314
+ /**
315
+ * Row offset, counted from zero.
316
+ */
317
+ readonly offset?: number | null;
318
+ /**
319
+ * Only threads of this Profile; the TRN must belong to the request tenant.
320
+ */
321
+ readonly profileTrn?: ResourceTrn | null;
322
+ /**
323
+ * `true` lists archived threads, otherwise only live ones.
324
+ */
325
+ readonly archived?: boolean | null;
326
+ /**
327
+ * Only threads in this status.
328
+ */
329
+ readonly status?: ThreadStatus | null;
330
+ }
331
+ /** One event of `agent.thread.notification_stream`. */
332
+ export type AgentThreadNotificationStreamResponse = ThreadStreamEventWire;
333
+ /** The query of `agent.thread.notification_stream`, by wire names. */
334
+ export interface AgentThreadNotificationStreamQuery {
335
+ readonly sinceSeq?: bigint | null;
336
+ }
337
+ /** The result of `agent.thread.pending_interaction_answer`. */
338
+ export type AgentThreadPendingInteractionAnswerResponse = ResolveThreadInteractionResponse;
339
+ /** The result of `agent.thread.pending_interaction_list`. */
340
+ export type AgentThreadPendingInteractionListResponse = ThreadPendingInteractionsResponse;
341
+ /** The result of `agent.thread.read`. */
342
+ export type AgentThreadReadResponse = ThreadDetail;
343
+ /** The result of `agent.thread.rename`. */
344
+ export type AgentThreadRenameResponse = ThreadSummary;
345
+ /** The result of `agent.thread.shutdown`. */
346
+ export type AgentThreadShutdownResponse = ShutdownThreadResponse;
347
+ /** The result of `agent.thread.statistics_read`. */
348
+ export type AgentThreadStatisticsReadResponse = AgentStatisticsResponse;
349
+ /** The query of `agent.thread.statistics_read`, by wire names. */
350
+ export interface AgentThreadStatisticsReadQuery {
351
+ readonly window: StatisticsWindowKind;
352
+ /**
353
+ * Window end; absent means the server clock. Given so that the requests
354
+ * of one page load describe the same instant.
355
+ */
356
+ readonly end?: string | null;
357
+ }
358
+ /** The result of `agent.thread.status_read`. */
359
+ export type AgentThreadStatusReadResponse = ThreadStatus;
360
+ /** One event of `agent.thread.status_stream`. */
361
+ export type AgentThreadStatusStreamResponse = ThreadStatusEventWire;
362
+ /** The query of `agent.thread.status_stream`, by wire names. */
363
+ export interface AgentThreadStatusStreamQuery {
364
+ readonly sinceSeq?: bigint | null;
365
+ }
366
+ /** The result of `agent.thread.tool_statistics_read`. */
367
+ export type AgentThreadToolStatisticsReadResponse = AgentToolStatisticsResponse;
368
+ /** The query of `agent.thread.tool_statistics_read`, by wire names. */
369
+ export interface AgentThreadToolStatisticsReadQuery {
370
+ readonly window: StatisticsWindowKind;
371
+ /**
372
+ * Window end; absent means the server clock. Given so that the requests
373
+ * of one page load describe the same instant.
374
+ */
375
+ readonly end?: string | null;
376
+ }
377
+ /** The result of `agent.thread.turn_list`. */
378
+ export type AgentThreadTurnListResponse = ViewPage<ThreadTurn>;
379
+ /** The query of `agent.thread.turn_list`, by wire names. */
380
+ export interface AgentThreadTurnListQuery {
381
+ /**
382
+ * Opaque edge cursor of a previous page; omitted reads the history end
383
+ * named by `direction`.
384
+ */
385
+ readonly cursor?: string | null;
386
+ /**
387
+ * Which side of the cursor to read.
388
+ */
389
+ readonly direction?: ViewDirection | null;
390
+ /**
391
+ * Page size, between one and the shared view maximum.
392
+ */
393
+ readonly limit?: number | null;
394
+ readonly itemsView?: ThreadTurnItemsView | null;
395
+ }
396
+ /** The result of `agent.thread.unarchive`. */
397
+ export type AgentThreadUnarchiveResponse = ThreadSummary;
398
+ /** The result of `agent.thread.usage_list`. */
399
+ export type AgentThreadUsageListResponse = OffsetPage<ThreadTurnUsageSummary>;
400
+ /** The query of `agent.thread.usage_list`, by wire names. */
401
+ export interface AgentThreadUsageListQuery {
402
+ /**
403
+ * Case-insensitive literal substring matched against name and description.
404
+ */
405
+ readonly search?: SearchTerm | null;
406
+ /**
407
+ * Tag selectors written as key:value; every selector must match.
408
+ */
409
+ readonly tag?: readonly TagSelector[];
410
+ /**
411
+ * Ordering; omitted means the collection's default order.
412
+ */
413
+ readonly sort?: ThreadUsageSort | null;
414
+ /**
415
+ * Page size, between one and the shared maximum.
416
+ */
417
+ readonly limit?: number | null;
418
+ /**
419
+ * Row offset, counted from zero.
420
+ */
421
+ readonly offset?: number | null;
422
+ }
423
+ /** The result of `agent.turn.attachment_read`. */
424
+ export type AgentTurnAttachmentReadResponse = BinaryResponse<ReadTurnAttachmentResponse>;
425
+ /** The result of `agent.turn.read`. */
426
+ export type AgentTurnReadResponse = DurableInvocationStatusSnapshot;
427
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/generated/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,iCAAiC,EAAE,0BAA0B,IAAI,iCAAiC,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,uCAAuC,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,cAAc,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,+BAA+B,EAAE,0BAA0B,EAAE,gCAAgC,EAAE,sBAAsB,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,iCAAiC,EAAE,UAAU,EAAE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,aAAa,EAAE,UAAU,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACt5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,+BAA+B,EAAE,UAAU,EAAE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};
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/generated/types.ts"],"names":[],"mappings":"AAAA,oDAAoD"}
@@ -0,0 +1,2 @@
1
+ export * from './generated/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './generated/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type * as schema_types from "./generated/schema_types";
2
+ export type SessionRequestId = schema_types.AgentSessionRequestId;
3
+ export type SessionRequestContext = schema_types.AgentSessionRequestContext;
4
+ export declare function sessionRequestId(value: string): SessionRequestId;
5
+ export declare function sessionRequest(id: SessionRequestId, payload: schema_types.AgentSessionClientRequestPayload): schema_types.AgentSessionClientEnvelope;
6
+ export declare function initializeRequest(id: SessionRequestId, params: schema_types.AgentSessionInitializeParams): schema_types.AgentSessionClientEnvelope;
7
+ export declare function initializedRequest(id: SessionRequestId): schema_types.AgentSessionClientEnvelope;
8
+ export declare function threadAttachRequest(id: SessionRequestId, context: SessionRequestContext, threadTrn: string, initialTurnsPage?: schema_types.ThreadInitialTurnsPageRequest | null): schema_types.AgentSessionClientEnvelope;
9
+ export declare function threadDetachRequest(id: SessionRequestId, context: SessionRequestContext, threadTrn: string): schema_types.AgentSessionClientEnvelope;
10
+ export declare function resolveInteractionRequest(id: SessionRequestId, context: SessionRequestContext, threadTrn: string, request: schema_types.ResolveThreadInteractionRequest): schema_types.AgentSessionClientEnvelope;
11
+ export declare function interruptRequest(id: SessionRequestId, context: SessionRequestContext, threadTrn: string, request: schema_types.InterruptThreadRequest): schema_types.AgentSessionClientEnvelope;
12
+ export declare function shutdownRequest(id: SessionRequestId, context: SessionRequestContext, threadTrn: string, request: schema_types.ShutdownThreadRequest): schema_types.AgentSessionClientEnvelope;
13
+ export declare function isServerNotificationEnvelope(envelope: schema_types.AgentSessionServerEnvelope): envelope is {
14
+ kind: "notification";
15
+ message: schema_types.AgentSessionServerNotificationEnvelope;
16
+ };
17
+ export declare function isServerResponseEnvelope(envelope: schema_types.AgentSessionServerEnvelope): envelope is {
18
+ kind: "response";
19
+ message: schema_types.AgentSessionServerResponseEnvelope;
20
+ };
21
+ export declare function isServerErrorEnvelope(envelope: schema_types.AgentSessionServerEnvelope): envelope is {
22
+ kind: "error";
23
+ message: schema_types.AgentSessionServerErrorEnvelope;
24
+ };
25
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,YAAY,MAAM,0BAA0B,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,qBAAqB,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,0BAA0B,CAAC;AAE5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAEhE;AAED,wBAAgB,cAAc,CAC5B,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,YAAY,CAAC,gCAAgC,GACrD,YAAY,CAAC,0BAA0B,CAQzC;AAED,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,gBAAgB,EACpB,MAAM,EAAE,YAAY,CAAC,4BAA4B,GAChD,YAAY,CAAC,0BAA0B,CAEzC;AAED,wBAAgB,kBAAkB,CAChC,EAAE,EAAE,gBAAgB,GACnB,YAAY,CAAC,0BAA0B,CAEzC;AAED,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,qBAA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O,EAAE,YAAY,CAAC,+BAA+B,CAAA;CAAE,CAEtF"}
@@ -0,0 +1,67 @@
1
+ export function sessionRequestId(value) {
2
+ return value;
3
+ }
4
+ export function sessionRequest(id, payload) {
5
+ return {
6
+ kind: "request",
7
+ message: {
8
+ id,
9
+ payload,
10
+ },
11
+ };
12
+ }
13
+ export function initializeRequest(id, params) {
14
+ return sessionRequest(id, { initialize: params });
15
+ }
16
+ export function initializedRequest(id) {
17
+ return sessionRequest(id, "initialized");
18
+ }
19
+ export function threadAttachRequest(id, context, threadTrn, initialTurnsPage) {
20
+ return sessionRequest(id, {
21
+ threadAttach: {
22
+ context,
23
+ threadTrn,
24
+ initialTurnsPage,
25
+ },
26
+ });
27
+ }
28
+ export function threadDetachRequest(id, context, threadTrn) {
29
+ return sessionRequest(id, { threadDetach: { context, threadTrn } });
30
+ }
31
+ export function resolveInteractionRequest(id, context, threadTrn, request) {
32
+ return sessionRequest(id, {
33
+ resolveInteraction: {
34
+ context,
35
+ threadTrn,
36
+ request,
37
+ },
38
+ });
39
+ }
40
+ export function interruptRequest(id, context, threadTrn, request) {
41
+ return sessionRequest(id, {
42
+ interrupt: {
43
+ context,
44
+ threadTrn,
45
+ request,
46
+ },
47
+ });
48
+ }
49
+ export function shutdownRequest(id, context, threadTrn, request) {
50
+ return sessionRequest(id, {
51
+ shutdown: {
52
+ context,
53
+ threadTrn,
54
+ request,
55
+ },
56
+ });
57
+ }
58
+ export function isServerNotificationEnvelope(envelope) {
59
+ return envelope.kind === "notification";
60
+ }
61
+ export function isServerResponseEnvelope(envelope) {
62
+ return envelope.kind === "response";
63
+ }
64
+ export function isServerErrorEnvelope(envelope) {
65
+ return envelope.kind === "error";
66
+ }
67
+ //# sourceMappingURL=session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.js","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,OAAO,KAAK,CAAC;AACf,CAAC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B,EACpB,OAA8B,EAC9B,SAAiB,EACjB,OAA2C;IAE3C,OAAO,cAAc,CAAC,EAAE,EAAE;QACxB,QAAQ,EAAE;YACR,OAAO;YACP,SAAS;YACT,OAAO;SACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,QAAiD;IAKjD,OAAO,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,QAAiD;IAEjD,OAAO,QAAQ,CAAC,IAAI,KAAK,UAAU,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,QAAiD;IAEjD,OAAO,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC;AACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,36 @@
1
1
  {
2
2
  "name": "@aionixone/client-agent",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0-beta.3",
4
+ "license": "Apache-2.0",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./session": {
14
+ "types": "./dist/session.d.ts",
15
+ "import": "./dist/session.js"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "src",
21
+ "LICENSE",
22
+ "NOTICE",
23
+ "README.md"
24
+ ],
25
+ "scripts": {
26
+ "build": "tsc -p tsconfig.json",
27
+ "clean": "rm -rf dist"
28
+ },
29
+ "devDependencies": {
30
+ "typescript": "6.0.3"
31
+ },
32
+ "dependencies": {
33
+ "@aionixone/client-core": "0.3.0-beta.3",
34
+ "@aionixone/client-types": "0.3.0-beta.3"
35
+ }
36
+ }