@terminal-research/aion 0.1.2 → 0.2.1
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.
- package/README.md +59 -52
- package/bin/aion-chat +4 -1
- package/dist/cli.mjs +39878 -68137
- package/package.json +28 -7
- package/src/graphql/chat-client-schema.graphql +460 -0
- package/src/graphql/generated/graphql.ts +60 -0
- package/src/graphql/operations/auth.graphql +7 -0
- package/src/graphql/operations/registry.graphql +60 -0
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terminal-research/aion",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Terminal chat UI for Aion agents, published as the aio CLI.",
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"bin": {
|
|
8
9
|
"aio": "bin/aio",
|
|
9
10
|
"aion-chat": "bin/aion-chat"
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
},
|
|
14
15
|
"scripts": {
|
|
15
16
|
"dev": "tsx src/cli.tsx",
|
|
17
|
+
"graphql:codegen": "graphql-codegen --config codegen.ts",
|
|
16
18
|
"typecheck": "tsc --noEmit",
|
|
17
19
|
"build": "npm run typecheck && tsup --config tsup.config.ts",
|
|
18
20
|
"test": "vitest run",
|
|
@@ -25,27 +27,43 @@
|
|
|
25
27
|
"prepublishOnly": "npm run build"
|
|
26
28
|
},
|
|
27
29
|
"dependencies": {
|
|
28
|
-
"@a2a-js/sdk": "^0.
|
|
29
|
-
"
|
|
30
|
-
"
|
|
30
|
+
"@a2a-js/sdk": "^1.0.0-alpha.0",
|
|
31
|
+
"@napi-rs/keyring": "^1.2.0",
|
|
32
|
+
"ansi-escapes": "^7.3.0",
|
|
33
|
+
"fflate": "^0.8.3",
|
|
34
|
+
"ink": "^8.0.0",
|
|
31
35
|
"marked": "^15.0.12",
|
|
32
|
-
"
|
|
36
|
+
"pino": "^10.3.1",
|
|
37
|
+
"proper-lockfile": "^4.1.2",
|
|
38
|
+
"react": "^19.3.1",
|
|
39
|
+
"string-width": "^8.2.2",
|
|
33
40
|
"uuid": "^11.1.0",
|
|
34
41
|
"yaml": "^2.8.3"
|
|
35
42
|
},
|
|
36
43
|
"devDependencies": {
|
|
44
|
+
"@graphql-codegen/cli": "7.4.3",
|
|
45
|
+
"@graphql-codegen/typescript": "6.1.0",
|
|
46
|
+
"@graphql-codegen/typescript-operations": "6.1.9",
|
|
37
47
|
"@types/ink-testing-library": "^1.0.4",
|
|
38
48
|
"@types/node": "^22.13.10",
|
|
39
|
-
"@types/
|
|
49
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
50
|
+
"@types/react": "^19.3.3",
|
|
51
|
+
"graphql": "16.14.2",
|
|
40
52
|
"ink-testing-library": "^4.0.0",
|
|
41
53
|
"tsup": "^8.4.0",
|
|
42
54
|
"tsx": "^4.19.3",
|
|
43
55
|
"typescript": "^5.8.2",
|
|
44
|
-
"vitest": "^
|
|
56
|
+
"vitest": "^4.1.11"
|
|
57
|
+
},
|
|
58
|
+
"overrides": {
|
|
59
|
+
"graphql-ws": "6.3.0",
|
|
60
|
+
"esbuild": "^0.28.1",
|
|
61
|
+
"@fastify/busboy": "^3.2.1"
|
|
45
62
|
},
|
|
46
63
|
"files": [
|
|
47
64
|
"bin",
|
|
48
65
|
"dist",
|
|
66
|
+
"src/graphql",
|
|
49
67
|
"README.md"
|
|
50
68
|
],
|
|
51
69
|
"publishConfig": {
|
|
@@ -60,5 +78,8 @@
|
|
|
60
78
|
"homepage": "https://github.com/Terminal-Research/aion-python-sdk/tree/main/libs/aion-chat-ui",
|
|
61
79
|
"bugs": {
|
|
62
80
|
"url": "https://github.com/Terminal-Research/aion-python-sdk/issues"
|
|
81
|
+
},
|
|
82
|
+
"aion": {
|
|
83
|
+
"changedIn": "0.2.1"
|
|
63
84
|
}
|
|
64
85
|
}
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
"Describes API authentication requirements."
|
|
2
|
+
directive @auth("which authenticated subjects have access"
|
|
3
|
+
subjectType: String, "which roles have access"
|
|
4
|
+
roles: [String]) on QUERY | MUTATION | FIELD_DEFINITION
|
|
5
|
+
"Marks a fragment as being optionally deferrable. Allowing the backend to split the query and return non-deferred parts first. This implicitly uses a streaming transport protocol which requires client support."
|
|
6
|
+
directive @defer(if: Boolean, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT
|
|
7
|
+
|
|
8
|
+
schema {
|
|
9
|
+
query: Queries
|
|
10
|
+
subscription: Subscriptions
|
|
11
|
+
}
|
|
12
|
+
scalar Json
|
|
13
|
+
scalar Long
|
|
14
|
+
"A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system using the format 1970-01-01T00:00:00Z"
|
|
15
|
+
scalar OffsetDateTime
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
An identifier established by the Client that MUST contain a String, Number,
|
|
19
|
+
or NULL value if included. If it is not included it is assumed to be a
|
|
20
|
+
notification. The value SHOULD NOT be NULL for requests expecting a response,
|
|
21
|
+
and Numbers SHOULD NOT contain fractional parts. The Server MUST reply with
|
|
22
|
+
the same value in the Response object if included. This member is used to
|
|
23
|
+
correlate the context between the two objects. A2A methods typically expect a
|
|
24
|
+
response or stream, so id will usually be present and non-null.
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
scalar RequestCorrelationId
|
|
28
|
+
|
|
29
|
+
union A2AJsonRpcResponseGQL = A2AJsonRpcErrorResponseGQL | A2AJsonRpcSuccessResponseGQL
|
|
30
|
+
|
|
31
|
+
"Result union returned by runtime health-check queries."
|
|
32
|
+
union HealthCheckResult = FailedHealthCheckResult | HealthyHealthCheckResult | InactiveHealthCheckResult | UnhealthyHealthCheckResult
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
Classifies the role of the identity.
|
|
36
|
+
|
|
37
|
+
- `Personal`: personal identity for an individual user and their profile/presence
|
|
38
|
+
- `Principal`: externally reachable non-daemon actor, such as a distribution-facing identity
|
|
39
|
+
- `Daemon`: internal project node daemon identity used for daemon addressing and capability-scoped permissions
|
|
40
|
+
- `System`: platform-managed identity reserved for internal system actors
|
|
41
|
+
"""
|
|
42
|
+
enum AgentIdentityType {
|
|
43
|
+
Daemon
|
|
44
|
+
Personal
|
|
45
|
+
Principal
|
|
46
|
+
System
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
"The two supported conversation metadata changes."
|
|
50
|
+
enum ConversationUpdateKind {
|
|
51
|
+
ConversationSummaryUpdated
|
|
52
|
+
TaskStatusUpdated
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
"Enumeration of supported Distribution endpoint types."
|
|
56
|
+
enum EndpointTypeGQL {
|
|
57
|
+
A2A
|
|
58
|
+
AgentMail
|
|
59
|
+
Aion
|
|
60
|
+
AionChat
|
|
61
|
+
GitHub
|
|
62
|
+
Meet
|
|
63
|
+
Slack
|
|
64
|
+
Sms
|
|
65
|
+
Telegram
|
|
66
|
+
TelegramBot
|
|
67
|
+
Twitter
|
|
68
|
+
Voice
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
"Normalized status for a health-check response."
|
|
72
|
+
enum HealthCheckStatus {
|
|
73
|
+
Failed
|
|
74
|
+
Healthy
|
|
75
|
+
Inactive
|
|
76
|
+
Unhealthy
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
"Communication-network namespace used by merged identity profile views."
|
|
80
|
+
enum IdentityNetworkGQL {
|
|
81
|
+
A2A
|
|
82
|
+
AgentMail
|
|
83
|
+
Aion
|
|
84
|
+
Composio
|
|
85
|
+
GitHub
|
|
86
|
+
Google
|
|
87
|
+
Slack
|
|
88
|
+
Telegram
|
|
89
|
+
Twilio
|
|
90
|
+
Twitter
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
enum OrganizationTypeGQL {
|
|
94
|
+
"Administrative organization reserved for Aion system operations"
|
|
95
|
+
Admin
|
|
96
|
+
"Personal organization created for an individual user"
|
|
97
|
+
Personal
|
|
98
|
+
"Shared organization with multiple members"
|
|
99
|
+
Team
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
"JSON-RPC request envelope for agent-to-agent workflows"
|
|
103
|
+
input A2AJsonRpcRequestGQLInput {
|
|
104
|
+
"JSON-RPC protocol version, defaults to 2.0"
|
|
105
|
+
jsonrpc: String!
|
|
106
|
+
"Method invoked on the destination agent"
|
|
107
|
+
method: String!
|
|
108
|
+
"Parameters forwarded to the method call"
|
|
109
|
+
params: Json
|
|
110
|
+
"Identifier for correlating responses to the request. May be a string or a number."
|
|
111
|
+
id: RequestCorrelationId
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
"Key/value pair describing an A2A service parameter"
|
|
115
|
+
input A2AServiceParameterGQLInput {
|
|
116
|
+
"Service parameter key (case-insensitive)"
|
|
117
|
+
key: String!
|
|
118
|
+
"Service parameter value"
|
|
119
|
+
value: String!
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
"Service parameters associated with an A2A request"
|
|
123
|
+
input A2AServiceParametersGQLInput {
|
|
124
|
+
"A2A protocol version requested by the client"
|
|
125
|
+
version: String
|
|
126
|
+
"Extension URIs requested by the client"
|
|
127
|
+
extensions: [String!]
|
|
128
|
+
"Additional service parameters"
|
|
129
|
+
additional: [A2AServiceParameterGQLInput!]
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
"Select exactly one capability subject. Supplying zero or multiple selectors causes the request to be rejected."
|
|
133
|
+
input CapabilitySubjectGQLInput {
|
|
134
|
+
"Direct distribution identifier. Addresses the external ingress path for a distribution-backed agent sequence."
|
|
135
|
+
distributionId: ID
|
|
136
|
+
"Direct deployment identifier. Addresses the deployment's control capability surface, not an agent running on the deployment."
|
|
137
|
+
deploymentId: ID
|
|
138
|
+
"Direct agent environment identifier. Addresses the daemon for the specific project node instance represented by that environment."
|
|
139
|
+
agentEnvironmentId: ID
|
|
140
|
+
"Agent identity identifier for identity-addressed ingress. Personal or principal identities resolve to a distribution endpoint, while daemon identities resolve directly to the component daemon."
|
|
141
|
+
agentIdentityId: ID
|
|
142
|
+
"Agent @name handle for identity-addressed ingress. Values may be provided with or without the leading @ symbol."
|
|
143
|
+
agentAtName: String
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
type A2AJsonRpcError {
|
|
147
|
+
code: Int!
|
|
148
|
+
message: String!
|
|
149
|
+
data: Json
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
type A2AJsonRpcErrorResponseGQL {
|
|
153
|
+
"Identifier correlating the response to its request"
|
|
154
|
+
id: RequestCorrelationId
|
|
155
|
+
error: A2AJsonRpcError!
|
|
156
|
+
jsonrpc: String!
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
type A2AJsonRpcSuccessResponseGQL {
|
|
160
|
+
"Identifier correlating the response to its request"
|
|
161
|
+
id: RequestCorrelationId
|
|
162
|
+
result: Json!
|
|
163
|
+
jsonrpc: String!
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
"Public profile information for a user or agent"
|
|
167
|
+
type AgentIdentity {
|
|
168
|
+
"Unique identifier for the identity"
|
|
169
|
+
id: ID!
|
|
170
|
+
"""
|
|
171
|
+
Type of identity, indicating whether it is personal, principal,
|
|
172
|
+
daemon, or system-managed
|
|
173
|
+
"""
|
|
174
|
+
agentType: AgentIdentityType!
|
|
175
|
+
"""
|
|
176
|
+
Reference to the owning user account. Personal identities always map to
|
|
177
|
+
their user.
|
|
178
|
+
"""
|
|
179
|
+
userId: ID
|
|
180
|
+
"Reference to the associated organization"
|
|
181
|
+
organizationId: ID!
|
|
182
|
+
"Identity network where the agent identity is addressable."
|
|
183
|
+
identityNetwork: IdentityNetworkGQL!
|
|
184
|
+
"Stable key used by platform-managed system identities"
|
|
185
|
+
systemKey: String
|
|
186
|
+
"Identity name; personal identities should match the owning user's name"
|
|
187
|
+
name: String
|
|
188
|
+
"""
|
|
189
|
+
Agent-card discovery URL used for Agent-to-Agent discovery. Detail
|
|
190
|
+
queries prefer an active A2A distribution and fall back to Aion Chat.
|
|
191
|
+
"""
|
|
192
|
+
a2aUrl: String
|
|
193
|
+
"Website URL for human consumption"
|
|
194
|
+
website: String
|
|
195
|
+
"Primary contact email address"
|
|
196
|
+
email: String
|
|
197
|
+
"Addressable handle applicable inside the Aion network"
|
|
198
|
+
atName: String
|
|
199
|
+
"""
|
|
200
|
+
Description of the identity's purpose; personal identities use the
|
|
201
|
+
user's bio
|
|
202
|
+
"""
|
|
203
|
+
biography: String
|
|
204
|
+
"URL to the identity's avatar image"
|
|
205
|
+
avatarImageUrl: String
|
|
206
|
+
"Stable Aion File Recording for the avatar image"
|
|
207
|
+
avatarFileRecordingId: ID
|
|
208
|
+
"URL to the identity's profile background image"
|
|
209
|
+
backgroundImageUrl: String
|
|
210
|
+
"Stable Aion File Recording for the background image"
|
|
211
|
+
backgroundFileRecordingId: ID
|
|
212
|
+
"Timestamp when the identity record was last updated. Serialized as RFC 3339 (ISO-8601) with offset, in UTC."
|
|
213
|
+
updatedAt: OffsetDateTime!
|
|
214
|
+
"Internal notes for administrators"
|
|
215
|
+
notes: String
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
"One daemon-identity usage on an agent environment."
|
|
219
|
+
type AgentIdentityDaemonUsage {
|
|
220
|
+
"Owning project identifier"
|
|
221
|
+
projectId: ID!
|
|
222
|
+
"Owning project display name"
|
|
223
|
+
projectName: String!
|
|
224
|
+
"Agent environment identifier using the daemon identity"
|
|
225
|
+
agentEnvironmentId: ID!
|
|
226
|
+
"Agent environment display name"
|
|
227
|
+
agentEnvironmentName: String!
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
"Detailed agent identity payload for one identity page."
|
|
231
|
+
type AgentIdentityDetail {
|
|
232
|
+
"Agent identity information associated with this detail view."
|
|
233
|
+
identity: AgentIdentity!
|
|
234
|
+
"Total number of active agent-environment and distribution bindings that reference this identity."
|
|
235
|
+
usageCount: Int!
|
|
236
|
+
"Agent environments currently using this identity as their daemon identity."
|
|
237
|
+
daemonUsages: [AgentIdentityDaemonUsage!]!
|
|
238
|
+
"Distributions currently using this identity as their principal identity."
|
|
239
|
+
distributionUsages: [IdentityDistributionUsage!]!
|
|
240
|
+
"Active direct role keys currently assigned to this agent identity."
|
|
241
|
+
roleKeys: [String!]!
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
"Absolute caller-visible metadata; never contains chat history."
|
|
245
|
+
type ConversationUpdate {
|
|
246
|
+
"Discriminator for the populated metadata fields."
|
|
247
|
+
kind: ConversationUpdateKind!
|
|
248
|
+
"Owning organization."
|
|
249
|
+
organizationId: ID!
|
|
250
|
+
"Stable edge Agent Environment Recording ID."
|
|
251
|
+
agentEnvironmentId: ID!
|
|
252
|
+
"Current distribution/catalog agent ID, when applicable."
|
|
253
|
+
distributionId: ID
|
|
254
|
+
"Caller-visible context ID, scoped to the environment."
|
|
255
|
+
contextId: String!
|
|
256
|
+
"Persisted update time; not a global sequence or replay ID."
|
|
257
|
+
updatedAt: OffsetDateTime!
|
|
258
|
+
"Notification creation time; use updatedAt to compare persisted versions."
|
|
259
|
+
createdAt: OffsetDateTime!
|
|
260
|
+
"Caller-visible task ID for a TaskStatusUpdated event."
|
|
261
|
+
taskId: String
|
|
262
|
+
"Canonical TASK_STATE_* value for a task update."
|
|
263
|
+
taskState: String
|
|
264
|
+
"Generated title for a ConversationSummaryUpdated event."
|
|
265
|
+
title: String
|
|
266
|
+
"Generated summary for a ConversationSummaryUpdated event."
|
|
267
|
+
summary: String
|
|
268
|
+
"Accepted summary checkpoint, absent on task updates."
|
|
269
|
+
summarizedThroughTurn: Long
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
"Active-task reset on connection, then best-effort changes."
|
|
273
|
+
type ConversationUpdates {
|
|
274
|
+
"True on initial/reconnect state: replace task activity and refresh context metadata. Reset does not clear conversation history."
|
|
275
|
+
reset: Boolean!
|
|
276
|
+
"Complete active tasks on reset; otherwise metadata changes."
|
|
277
|
+
updates: [ConversationUpdate!]!
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
"Health-check result for a failed check or target lifecycle."
|
|
281
|
+
type FailedHealthCheckResult {
|
|
282
|
+
"Failure reason reported by the health check."
|
|
283
|
+
message: String!
|
|
284
|
+
"Normalized health-check status."
|
|
285
|
+
status: HealthCheckStatus!
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
"Health-check result for a target that reported healthy."
|
|
289
|
+
type HealthyHealthCheckResult {
|
|
290
|
+
"Normalized health-check status."
|
|
291
|
+
status: HealthCheckStatus!
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
"Lightweight identity summary used when only avatar and routing metadata is required."
|
|
295
|
+
type IdentityAvatar {
|
|
296
|
+
"Identifier of the source identity record"
|
|
297
|
+
id: ID!
|
|
298
|
+
"Optional local user id linked to this avatar"
|
|
299
|
+
userId: ID
|
|
300
|
+
"Identifier of the avatar in its network"
|
|
301
|
+
networkUserId: String!
|
|
302
|
+
"Communication network for this merged identity view, when applicable"
|
|
303
|
+
identityNetwork: IdentityNetworkGQL
|
|
304
|
+
"Network-scoped external identity category"
|
|
305
|
+
identityKind: String
|
|
306
|
+
"Optional user handle for the avatar"
|
|
307
|
+
userName: String
|
|
308
|
+
"Display name for the avatar"
|
|
309
|
+
name: String
|
|
310
|
+
"Avatar image URL"
|
|
311
|
+
avatarImageUrl: String
|
|
312
|
+
"True when this avatar represents a platform-managed system identity"
|
|
313
|
+
systemIdentity: Boolean!
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
"One active distribution reference for an identity."
|
|
317
|
+
type IdentityDistributionUsage {
|
|
318
|
+
"Owning project identifier"
|
|
319
|
+
projectId: ID!
|
|
320
|
+
"Owning project display name"
|
|
321
|
+
projectName: String!
|
|
322
|
+
"Distribution identifier using the identity"
|
|
323
|
+
distributionId: ID!
|
|
324
|
+
"Network type of the distribution"
|
|
325
|
+
networkType: EndpointTypeGQL!
|
|
326
|
+
"Agent environment identifier backing the distribution"
|
|
327
|
+
agentEnvironmentId: ID
|
|
328
|
+
"Agent environment display name"
|
|
329
|
+
agentEnvironmentName: String
|
|
330
|
+
"Linked service identity profile, when one exists"
|
|
331
|
+
serviceIdentity: IdentityProfile
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
"Normalized identity profile for display and auditing. When fields typed as IdentityProfile are null, the referenced profile is no longer available in the system."
|
|
335
|
+
type IdentityProfile {
|
|
336
|
+
"Identifier of the source identity record"
|
|
337
|
+
id: ID!
|
|
338
|
+
"Identifier of the profile in its network"
|
|
339
|
+
networkUserId: String!
|
|
340
|
+
"Communication network for this merged identity view, when applicable"
|
|
341
|
+
identityNetwork: IdentityNetworkGQL
|
|
342
|
+
"Network-scoped category for this external principal, when applicable"
|
|
343
|
+
identityKind: String
|
|
344
|
+
"Optional user handle for the profile"
|
|
345
|
+
userName: String
|
|
346
|
+
"Optional local user id linked to this profile"
|
|
347
|
+
userId: ID
|
|
348
|
+
"Display name for the profile"
|
|
349
|
+
name: String
|
|
350
|
+
"Website associated with the profile"
|
|
351
|
+
website: String
|
|
352
|
+
"Avatar image URL"
|
|
353
|
+
avatarImageUrl: String
|
|
354
|
+
"Profile biography"
|
|
355
|
+
biography: String
|
|
356
|
+
"True when this profile represents a platform-managed system identity"
|
|
357
|
+
systemIdentity: Boolean!
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
"Health-check result for a target that is not running."
|
|
361
|
+
type InactiveHealthCheckResult {
|
|
362
|
+
"Reason the target is inactive."
|
|
363
|
+
reason: String!
|
|
364
|
+
"Normalized health-check status."
|
|
365
|
+
status: HealthCheckStatus!
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
"Details returned from login query to let backend decide post-login routing"
|
|
369
|
+
type LoginResponse {
|
|
370
|
+
"Local organization selected by the authenticated login token when known"
|
|
371
|
+
activeOrganizationId: ID
|
|
372
|
+
"Route path the client should navigate to when present"
|
|
373
|
+
nextRoute: String
|
|
374
|
+
"AgentIdentity name"
|
|
375
|
+
name: String
|
|
376
|
+
"AgentIdentity email"
|
|
377
|
+
email: String
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
"Represents a tenant workspace within Aion"
|
|
381
|
+
type Organization {
|
|
382
|
+
"Unique identifier of the organization"
|
|
383
|
+
id: ID!
|
|
384
|
+
"Display name of the organization"
|
|
385
|
+
name: String!
|
|
386
|
+
"Classification describing the organization type"
|
|
387
|
+
organizationType: OrganizationTypeGQL!
|
|
388
|
+
"Linked WorkOS organization id when present"
|
|
389
|
+
workOSOrganizationId: String
|
|
390
|
+
"Official IANA timezone for organization-owned schedules"
|
|
391
|
+
timezone: String!
|
|
392
|
+
"Whether organization content may be summarized by an LLM"
|
|
393
|
+
summarizationEnabled: Boolean!
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
"Active user membership in an organization."
|
|
397
|
+
type OrganizationMember {
|
|
398
|
+
"Unique identifier of the membership row"
|
|
399
|
+
membershipId: ID!
|
|
400
|
+
"Unique identifier of the organization member"
|
|
401
|
+
userId: ID!
|
|
402
|
+
"Organization associated with the membership"
|
|
403
|
+
organization: Organization!
|
|
404
|
+
"Direct organization system role keys for this member"
|
|
405
|
+
roleKeys: [String!]!
|
|
406
|
+
"Personal identity avatar used for display"
|
|
407
|
+
avatar: IdentityAvatar
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
type Queries {
|
|
411
|
+
"Resolves the authorized distribution card URL for the selected A2A message target. Returns null for direct agent targets."
|
|
412
|
+
a2aAgentCardUrl("The same A2A target used for message dispatch" target: CapabilitySubjectGQLInput!, "Optional effective principal resource URI" principal: String): String
|
|
413
|
+
"Retrieves a user by ID. When no userId is supplied, returns the currently authenticated user."
|
|
414
|
+
user(userId: ID): User @auth(subjectType: "User")
|
|
415
|
+
"Checks runtime health for the agent actor bound to an agent environment."
|
|
416
|
+
healthCheckAgent("Agent environment identifier" agentEnvironmentId: ID!): HealthCheckResult @auth(subjectType: "User")
|
|
417
|
+
"Retrieves agent identity details for the authenticated user. GraphQL field selection determines whether usage rows and role keys are loaded."
|
|
418
|
+
agentIdentityDetails("Organization whose visible identities should be listed" organizationId: ID!, "Optional identity-type filter applied to organization-visible identities." types: [AgentIdentityType!], "Optional distribution network types used to keep only identities that are used by at least one active distribution for any requested network. Choosing A2A and AionChat returns identities with either type, once per identity. Omit or pass an empty list to leave networks unfiltered." networkTypes: [EndpointTypeGQL!], "When true, include the caller's own personal identity for the requested organization even when it falls outside the normal visible set or type filter." includePersonalSelf: Boolean!): [AgentIdentityDetail!] @auth(subjectType: "User")
|
|
419
|
+
"Retrieves one agent identity detail payload by identifier for the authenticated user."
|
|
420
|
+
agentIdentityDetail(agentIdentityId: ID!): AgentIdentityDetail @auth(subjectType: "User")
|
|
421
|
+
"Returns post-login routing. The optional intendedRoute is a one-time frontend route hint. Invitation accept routes are returned before onboarding so invitation acceptance can run first. Otherwise onboarding overrides the intended route. When no backend detour is needed, the intended route is echoed unchanged."
|
|
422
|
+
login("Authentication bearer token" token: String!, "Optional route the client tried to reach before login. The frontend owns sanitization and interpretation; the backend only gives invitation accept routes special priority before onboarding." intendedRoute: String): LoginResponse @auth(subjectType: "User")
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
type Subscriptions {
|
|
426
|
+
"Streams principal-owned conversation summaries and task status, beginning with current active tasks. Best effort; no replay."
|
|
427
|
+
conversationUpdates("Optional organization filter; never broadens caller access." organizationId: ID, "Optional authorized Aion principal resource URI." principal: String): ConversationUpdates
|
|
428
|
+
"Executes an agent-to-agent JSON-RPC request and streams the responses."
|
|
429
|
+
a2aRpc("JSON-RPC request body" request: A2AJsonRpcRequestGQLInput!, "A2A capability subject" target: CapabilitySubjectGQLInput!, "Service parameters associated with the request" serviceParameters: A2AServiceParametersGQLInput, "Optional Aion resource URI selecting the effective principal. Supported forms include aion://agent/environment/{id}, aion://agent/identity/{id}, and aion://agent/identity/name/{name}. When omitted, the authenticated subject is used." principal: String): A2AJsonRpcResponseGQL
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
"Health-check result for a target that reported unhealthy."
|
|
433
|
+
type UnhealthyHealthCheckResult {
|
|
434
|
+
"Normalized health-check status."
|
|
435
|
+
status: HealthCheckStatus!
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
"Represents a user account"
|
|
439
|
+
type User {
|
|
440
|
+
"Unique identifier of the user"
|
|
441
|
+
id: ID!
|
|
442
|
+
"Personal agent identity associated with this user"
|
|
443
|
+
agentIdentity: AgentIdentity!
|
|
444
|
+
"Identifier from the authentication provider"
|
|
445
|
+
authId: String!
|
|
446
|
+
"Preferred IANA timezone for user-facing date/time display"
|
|
447
|
+
timezone: String
|
|
448
|
+
"Networks linked to this user"
|
|
449
|
+
networks: [UserConnection!]
|
|
450
|
+
"Personal organization associated with the user"
|
|
451
|
+
homeOrganization: Organization
|
|
452
|
+
"Organizations the user is a member of"
|
|
453
|
+
memberships: [OrganizationMember!]
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
"Association between a user and an external network"
|
|
457
|
+
type UserConnection {
|
|
458
|
+
"Identity-network namespace linked to the user"
|
|
459
|
+
identityNetwork: IdentityNetworkGQL!
|
|
460
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
2
|
+
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
3
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
4
|
+
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
|
|
5
|
+
/**
|
|
6
|
+
* Classifies the role of the identity.
|
|
7
|
+
*
|
|
8
|
+
* - `Personal`: personal identity for an individual user and their profile/presence
|
|
9
|
+
* - `Principal`: externally reachable non-daemon actor, such as a distribution-facing identity
|
|
10
|
+
* - `Daemon`: internal project node daemon identity used for daemon addressing and capability-scoped permissions
|
|
11
|
+
* - `System`: platform-managed identity reserved for internal system actors
|
|
12
|
+
*/
|
|
13
|
+
export type AgentIdentityType =
|
|
14
|
+
| 'Daemon'
|
|
15
|
+
| 'Personal'
|
|
16
|
+
| 'Principal'
|
|
17
|
+
| 'System';
|
|
18
|
+
|
|
19
|
+
/** Enumeration of supported Distribution endpoint types. */
|
|
20
|
+
export type EndpointTypeGQL =
|
|
21
|
+
| 'A2A'
|
|
22
|
+
| 'AgentMail'
|
|
23
|
+
| 'Aion'
|
|
24
|
+
| 'AionChat'
|
|
25
|
+
| 'GitHub'
|
|
26
|
+
| 'Meet'
|
|
27
|
+
| 'Slack'
|
|
28
|
+
| 'Sms'
|
|
29
|
+
| 'Telegram'
|
|
30
|
+
| 'TelegramBot'
|
|
31
|
+
| 'Twitter'
|
|
32
|
+
| 'Voice';
|
|
33
|
+
|
|
34
|
+
export type OrganizationTypeGQL =
|
|
35
|
+
/** Administrative organization reserved for Aion system operations */
|
|
36
|
+
| 'Admin'
|
|
37
|
+
/** Personal organization created for an individual user */
|
|
38
|
+
| 'Personal'
|
|
39
|
+
/** Shared organization with multiple members */
|
|
40
|
+
| 'Team';
|
|
41
|
+
|
|
42
|
+
export type LoginBootstrapQueryVariables = Exact<{
|
|
43
|
+
token: string;
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export type LoginBootstrapQuery = { login: { nextRoute: string | null, email: string | null, name: string | null } | null };
|
|
48
|
+
|
|
49
|
+
export type CurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
export type CurrentUserQuery = { user: { id: string, homeOrganization: { id: string, name: string, organizationType: OrganizationTypeGQL } | null, memberships: Array<{ organization: { id: string, name: string, organizationType: OrganizationTypeGQL } }> | null, agentIdentity: { id: string, name: string | null, atName: string | null, a2aUrl: string | null, agentType: AgentIdentityType, organizationId: string, updatedAt: string } } | null };
|
|
53
|
+
|
|
54
|
+
export type AgentCatalogIdentitiesQueryVariables = Exact<{
|
|
55
|
+
organizationId: string | number;
|
|
56
|
+
networkTypes?: Array<EndpointTypeGQL> | EndpointTypeGQL | null | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export type AgentCatalogIdentitiesQuery = { agentIdentityDetails: Array<{ identity: { id: string, agentType: AgentIdentityType, userId: string | null, organizationId: string, systemKey: string | null, name: string | null, a2aUrl: string | null, website: string | null, email: string | null, atName: string | null, biography: string | null, avatarImageUrl: string | null, backgroundImageUrl: string | null, updatedAt: string, notes: string | null }, distributionUsages: Array<{ distributionId: string, networkType: EndpointTypeGQL }> }> | null };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
query CurrentUser {
|
|
2
|
+
user {
|
|
3
|
+
id
|
|
4
|
+
homeOrganization {
|
|
5
|
+
id
|
|
6
|
+
name
|
|
7
|
+
organizationType
|
|
8
|
+
}
|
|
9
|
+
memberships {
|
|
10
|
+
organization {
|
|
11
|
+
id
|
|
12
|
+
name
|
|
13
|
+
organizationType
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
agentIdentity {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
atName
|
|
20
|
+
a2aUrl
|
|
21
|
+
agentType
|
|
22
|
+
organizationId
|
|
23
|
+
updatedAt
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
query AgentCatalogIdentities(
|
|
29
|
+
$organizationId: ID!
|
|
30
|
+
$networkTypes: [EndpointTypeGQL!]
|
|
31
|
+
) {
|
|
32
|
+
agentIdentityDetails(
|
|
33
|
+
organizationId: $organizationId
|
|
34
|
+
types: [Principal, Personal]
|
|
35
|
+
networkTypes: $networkTypes
|
|
36
|
+
includePersonalSelf: true
|
|
37
|
+
) {
|
|
38
|
+
identity {
|
|
39
|
+
id
|
|
40
|
+
agentType
|
|
41
|
+
userId
|
|
42
|
+
organizationId
|
|
43
|
+
systemKey
|
|
44
|
+
name
|
|
45
|
+
a2aUrl
|
|
46
|
+
website
|
|
47
|
+
email
|
|
48
|
+
atName
|
|
49
|
+
biography
|
|
50
|
+
avatarImageUrl
|
|
51
|
+
backgroundImageUrl
|
|
52
|
+
updatedAt
|
|
53
|
+
notes
|
|
54
|
+
}
|
|
55
|
+
distributionUsages {
|
|
56
|
+
distributionId
|
|
57
|
+
networkType
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|