@adea-ai/contracts 1.5.2

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 (47) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -0
  3. package/dist/authentication.d.ts +44 -0
  4. package/dist/authentication.d.ts.map +1 -0
  5. package/dist/authentication.js +49 -0
  6. package/dist/authentication.js.map +1 -0
  7. package/dist/context-providers.d.ts +170 -0
  8. package/dist/context-providers.d.ts.map +1 -0
  9. package/dist/context-providers.js +87 -0
  10. package/dist/context-providers.js.map +1 -0
  11. package/dist/control-api.d.ts +591 -0
  12. package/dist/control-api.d.ts.map +1 -0
  13. package/dist/control-api.js +445 -0
  14. package/dist/control-api.js.map +1 -0
  15. package/dist/envelopes.d.ts +296 -0
  16. package/dist/envelopes.d.ts.map +1 -0
  17. package/dist/envelopes.js +164 -0
  18. package/dist/envelopes.js.map +1 -0
  19. package/dist/fixtures.d.ts +142 -0
  20. package/dist/fixtures.d.ts.map +1 -0
  21. package/dist/fixtures.js +95 -0
  22. package/dist/fixtures.js.map +1 -0
  23. package/dist/identifiers.d.ts +77 -0
  24. package/dist/identifiers.d.ts.map +1 -0
  25. package/dist/identifiers.js +43 -0
  26. package/dist/identifiers.js.map +1 -0
  27. package/dist/index.d.ts +12 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +12 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/memory-writeback.d.ts +85 -0
  32. package/dist/memory-writeback.d.ts.map +1 -0
  33. package/dist/memory-writeback.js +74 -0
  34. package/dist/memory-writeback.js.map +1 -0
  35. package/dist/pagination.d.ts +13 -0
  36. package/dist/pagination.d.ts.map +1 -0
  37. package/dist/pagination.js +28 -0
  38. package/dist/pagination.js.map +1 -0
  39. package/dist/runtime-discovery.d.ts +822 -0
  40. package/dist/runtime-discovery.d.ts.map +1 -0
  41. package/dist/runtime-discovery.js +235 -0
  42. package/dist/runtime-discovery.js.map +1 -0
  43. package/dist/versioning.d.ts +38 -0
  44. package/dist/versioning.d.ts.map +1 -0
  45. package/dist/versioning.js +67 -0
  46. package/dist/versioning.js.map +1 -0
  47. package/package.json +50 -0
@@ -0,0 +1,822 @@
1
+ import { z } from 'zod';
2
+ export declare const DiscoveryFreshnessSchema: z.ZodObject<{
3
+ state: z.ZodEnum<{
4
+ unknown: "unknown";
5
+ stale: "stale";
6
+ expired: "expired";
7
+ fresh: "fresh";
8
+ }>;
9
+ observedAt: z.ZodISODateTime;
10
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
11
+ }, z.core.$strip>;
12
+ export declare const RuntimeConnectionDiscoveryReadModelSchema: z.ZodObject<{
13
+ runtimeConnectionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>;
14
+ runtimeDefinitionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-definition ID">, string>>;
15
+ family: z.ZodString;
16
+ connectionType: z.ZodEnum<{
17
+ managed_cloud: "managed_cloud";
18
+ managed_local: "managed_local";
19
+ external_local: "external_local";
20
+ }>;
21
+ location: z.ZodEnum<{
22
+ local_device: "local_device";
23
+ agent_hq_cloud: "agent_hq_cloud";
24
+ }>;
25
+ status: z.ZodEnum<{
26
+ revoked: "revoked";
27
+ degraded: "degraded";
28
+ unavailable: "unavailable";
29
+ available: "available";
30
+ }>;
31
+ node: z.ZodOptional<z.ZodObject<{
32
+ runtimeNodeRefId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-node reference ID">, string>>;
33
+ location: z.ZodEnum<{
34
+ local_device: "local_device";
35
+ remote_host: "remote_host";
36
+ agent_hq_cloud: "agent_hq_cloud";
37
+ }>;
38
+ status: z.ZodEnum<{
39
+ revoked: "revoked";
40
+ online: "online";
41
+ offline: "offline";
42
+ }>;
43
+ health: z.ZodEnum<{
44
+ unknown: "unknown";
45
+ revoked: "revoked";
46
+ online: "online";
47
+ offline: "offline";
48
+ }>;
49
+ observedAt: z.ZodISODateTime;
50
+ }, z.core.$strip>>;
51
+ connection: z.ZodObject<{
52
+ status: z.ZodEnum<{
53
+ revoked: "revoked";
54
+ degraded: "degraded";
55
+ unavailable: "unavailable";
56
+ expired: "expired";
57
+ connected: "connected";
58
+ disconnected: "disconnected";
59
+ }>;
60
+ health: z.ZodEnum<{
61
+ degraded: "degraded";
62
+ healthy: "healthy";
63
+ unavailable: "unavailable";
64
+ }>;
65
+ availability: z.ZodEnum<{
66
+ unknown: "unknown";
67
+ revoked: "revoked";
68
+ degraded: "degraded";
69
+ healthy: "healthy";
70
+ stale: "stale";
71
+ offline: "offline";
72
+ reconnecting: "reconnecting";
73
+ incompatible: "incompatible";
74
+ }>;
75
+ }, z.core.$strip>;
76
+ freshness: z.ZodObject<{
77
+ state: z.ZodEnum<{
78
+ unknown: "unknown";
79
+ stale: "stale";
80
+ expired: "expired";
81
+ fresh: "fresh";
82
+ }>;
83
+ observedAt: z.ZodISODateTime;
84
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
85
+ }, z.core.$strip>;
86
+ versions: z.ZodObject<{
87
+ adapter: z.ZodString;
88
+ driver: z.ZodString;
89
+ harness: z.ZodString;
90
+ protocol: z.ZodOptional<z.ZodString>;
91
+ }, z.core.$strip>;
92
+ capabilities: z.ZodArray<z.ZodString>;
93
+ capabilityDetails: z.ZodArray<z.ZodObject<{
94
+ name: z.ZodString;
95
+ support: z.ZodEnum<{
96
+ degraded: "degraded";
97
+ supported: "supported";
98
+ unsupported: "unsupported";
99
+ }>;
100
+ limitations: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
+ }, z.core.$strip>>;
102
+ compatibility: z.ZodObject<{
103
+ state: z.ZodEnum<{
104
+ revoked: "revoked";
105
+ degraded: "degraded";
106
+ unavailable: "unavailable";
107
+ deprecated: "deprecated";
108
+ incompatible: "incompatible";
109
+ compatible: "compatible";
110
+ untested: "untested";
111
+ capability_missing: "capability_missing";
112
+ }>;
113
+ limitations: z.ZodArray<z.ZodString>;
114
+ }, z.core.$strip>;
115
+ access: z.ZodObject<{
116
+ localProjectGrant: z.ZodObject<{
117
+ required: z.ZodBoolean;
118
+ state: z.ZodEnum<{
119
+ revoked: "revoked";
120
+ not_required: "not_required";
121
+ granted: "granted";
122
+ missing: "missing";
123
+ }>;
124
+ }, z.core.$strip>;
125
+ entitlement: z.ZodObject<{
126
+ state: z.ZodEnum<{
127
+ unknown: "unknown";
128
+ denied: "denied";
129
+ allowed: "allowed";
130
+ }>;
131
+ class: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ }, z.core.$strip>;
134
+ eligibility: z.ZodObject<{
135
+ state: z.ZodEnum<{
136
+ degraded: "degraded";
137
+ eligible: "eligible";
138
+ ineligible: "ineligible";
139
+ }>;
140
+ reasons: z.ZodArray<z.ZodString>;
141
+ degradations: z.ZodArray<z.ZodString>;
142
+ remediation: z.ZodArray<z.ZodObject<{
143
+ code: z.ZodString;
144
+ label: z.ZodString;
145
+ }, z.core.$strip>>;
146
+ }, z.core.$strip>;
147
+ observedAt: z.ZodISODateTime;
148
+ limitations: z.ZodArray<z.ZodString>;
149
+ }, z.core.$strip>;
150
+ export declare const ExternalSessionDiscoveryReadModelSchema: z.ZodObject<{
151
+ externalSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"external-session ID">, string>>;
152
+ runtimeConnectionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>;
153
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"project ID">, string>>>;
154
+ state: z.ZodEnum<{
155
+ active: "active";
156
+ revoked: "revoked";
157
+ stale: "stale";
158
+ offline: "offline";
159
+ closed: "closed";
160
+ runtime_missing: "runtime_missing";
161
+ capability_changed: "capability_changed";
162
+ removed: "removed";
163
+ }>;
164
+ recoverable: z.ZodBoolean;
165
+ display: z.ZodObject<{
166
+ origin: z.ZodEnum<{
167
+ native_discovery: "native_discovery";
168
+ created_through_control_plane: "created_through_control_plane";
169
+ }>;
170
+ displayName: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strip>;
172
+ freshness: z.ZodObject<{
173
+ state: z.ZodEnum<{
174
+ unknown: "unknown";
175
+ stale: "stale";
176
+ expired: "expired";
177
+ fresh: "fresh";
178
+ }>;
179
+ observedAt: z.ZodISODateTime;
180
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
181
+ }, z.core.$strip>;
182
+ capabilitySummary: z.ZodObject<{
183
+ version: z.ZodNumber;
184
+ operations: z.ZodArray<z.ZodString>;
185
+ controls: z.ZodObject<{
186
+ reference: z.ZodUnion<readonly [z.ZodObject<{
187
+ available: z.ZodLiteral<true>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ available: z.ZodLiteral<false>;
190
+ reason: z.ZodString;
191
+ }, z.core.$strip>]>;
192
+ resume: z.ZodUnion<readonly [z.ZodObject<{
193
+ available: z.ZodLiteral<true>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ available: z.ZodLiteral<false>;
196
+ reason: z.ZodString;
197
+ }, z.core.$strip>]>;
198
+ load: z.ZodUnion<readonly [z.ZodObject<{
199
+ available: z.ZodLiteral<true>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ available: z.ZodLiteral<false>;
202
+ reason: z.ZodString;
203
+ }, z.core.$strip>]>;
204
+ close: z.ZodUnion<readonly [z.ZodObject<{
205
+ available: z.ZodLiteral<true>;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ available: z.ZodLiteral<false>;
208
+ reason: z.ZodString;
209
+ }, z.core.$strip>]>;
210
+ history: z.ZodUnion<readonly [z.ZodObject<{
211
+ available: z.ZodLiteral<true>;
212
+ }, z.core.$strip>, z.ZodObject<{
213
+ available: z.ZodLiteral<false>;
214
+ reason: z.ZodString;
215
+ }, z.core.$strip>]>;
216
+ }, z.core.$strip>;
217
+ }, z.core.$strip>;
218
+ limitations: z.ZodArray<z.ZodString>;
219
+ }, z.core.$strip>;
220
+ export declare const RuntimeConnectionListRequestSchema: z.ZodObject<{
221
+ caller: z.ZodObject<{
222
+ servicePrincipalId: z.ZodString;
223
+ }, z.core.$strip>;
224
+ contractVersion: z.ZodObject<{
225
+ major: z.ZodNumber;
226
+ minor: z.ZodNumber;
227
+ }, z.core.$strict>;
228
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
229
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"workspace ID">, string>>;
230
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"project ID">, string>>>;
231
+ correlation: z.ZodObject<{
232
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
233
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
234
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
235
+ }, z.core.$strip>;
236
+ requestedAt: z.ZodISODateTime;
237
+ operation: z.ZodLiteral<"runtime-connection.list">;
238
+ parameters: z.ZodObject<{
239
+ cursor: z.ZodOptional<z.ZodString>;
240
+ limit: z.ZodDefault<z.ZodNumber>;
241
+ runtimeNodeRefId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-node reference ID">, string>>>;
242
+ states: z.ZodDefault<z.ZodArray<z.ZodEnum<{
243
+ revoked: "revoked";
244
+ degraded: "degraded";
245
+ available: "available";
246
+ stale: "stale";
247
+ offline: "offline";
248
+ incompatible: "incompatible";
249
+ }>>>;
250
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
251
+ }, z.core.$strip>;
252
+ }, z.core.$strip>;
253
+ export declare const RuntimeConnectionGetRequestSchema: z.ZodObject<{
254
+ caller: z.ZodObject<{
255
+ servicePrincipalId: z.ZodString;
256
+ }, z.core.$strip>;
257
+ contractVersion: z.ZodObject<{
258
+ major: z.ZodNumber;
259
+ minor: z.ZodNumber;
260
+ }, z.core.$strict>;
261
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
262
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"workspace ID">, string>>;
263
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"project ID">, string>>>;
264
+ correlation: z.ZodObject<{
265
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
266
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
267
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
268
+ }, z.core.$strip>;
269
+ requestedAt: z.ZodISODateTime;
270
+ operation: z.ZodLiteral<"runtime-connection.get">;
271
+ parameters: z.ZodObject<{
272
+ runtimeConnectionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>;
273
+ runtimeNodeRefId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-node reference ID">, string>>>;
274
+ }, z.core.$strip>;
275
+ }, z.core.$strip>;
276
+ export declare const RuntimeConnectionListResponseSchema: z.ZodObject<{
277
+ contractVersion: z.ZodObject<{
278
+ major: z.ZodNumber;
279
+ minor: z.ZodNumber;
280
+ }, z.core.$strict>;
281
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
282
+ correlation: z.ZodObject<{
283
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
284
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
285
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
286
+ }, z.core.$strip>;
287
+ data: z.ZodObject<{
288
+ runtimeConnections: z.ZodArray<z.ZodObject<{
289
+ runtimeConnectionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>;
290
+ runtimeDefinitionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-definition ID">, string>>;
291
+ family: z.ZodString;
292
+ connectionType: z.ZodEnum<{
293
+ managed_cloud: "managed_cloud";
294
+ managed_local: "managed_local";
295
+ external_local: "external_local";
296
+ }>;
297
+ location: z.ZodEnum<{
298
+ local_device: "local_device";
299
+ agent_hq_cloud: "agent_hq_cloud";
300
+ }>;
301
+ status: z.ZodEnum<{
302
+ revoked: "revoked";
303
+ degraded: "degraded";
304
+ unavailable: "unavailable";
305
+ available: "available";
306
+ }>;
307
+ node: z.ZodOptional<z.ZodObject<{
308
+ runtimeNodeRefId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-node reference ID">, string>>;
309
+ location: z.ZodEnum<{
310
+ local_device: "local_device";
311
+ remote_host: "remote_host";
312
+ agent_hq_cloud: "agent_hq_cloud";
313
+ }>;
314
+ status: z.ZodEnum<{
315
+ revoked: "revoked";
316
+ online: "online";
317
+ offline: "offline";
318
+ }>;
319
+ health: z.ZodEnum<{
320
+ unknown: "unknown";
321
+ revoked: "revoked";
322
+ online: "online";
323
+ offline: "offline";
324
+ }>;
325
+ observedAt: z.ZodISODateTime;
326
+ }, z.core.$strip>>;
327
+ connection: z.ZodObject<{
328
+ status: z.ZodEnum<{
329
+ revoked: "revoked";
330
+ degraded: "degraded";
331
+ unavailable: "unavailable";
332
+ expired: "expired";
333
+ connected: "connected";
334
+ disconnected: "disconnected";
335
+ }>;
336
+ health: z.ZodEnum<{
337
+ degraded: "degraded";
338
+ healthy: "healthy";
339
+ unavailable: "unavailable";
340
+ }>;
341
+ availability: z.ZodEnum<{
342
+ unknown: "unknown";
343
+ revoked: "revoked";
344
+ degraded: "degraded";
345
+ healthy: "healthy";
346
+ stale: "stale";
347
+ offline: "offline";
348
+ reconnecting: "reconnecting";
349
+ incompatible: "incompatible";
350
+ }>;
351
+ }, z.core.$strip>;
352
+ freshness: z.ZodObject<{
353
+ state: z.ZodEnum<{
354
+ unknown: "unknown";
355
+ stale: "stale";
356
+ expired: "expired";
357
+ fresh: "fresh";
358
+ }>;
359
+ observedAt: z.ZodISODateTime;
360
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
361
+ }, z.core.$strip>;
362
+ versions: z.ZodObject<{
363
+ adapter: z.ZodString;
364
+ driver: z.ZodString;
365
+ harness: z.ZodString;
366
+ protocol: z.ZodOptional<z.ZodString>;
367
+ }, z.core.$strip>;
368
+ capabilities: z.ZodArray<z.ZodString>;
369
+ capabilityDetails: z.ZodArray<z.ZodObject<{
370
+ name: z.ZodString;
371
+ support: z.ZodEnum<{
372
+ degraded: "degraded";
373
+ supported: "supported";
374
+ unsupported: "unsupported";
375
+ }>;
376
+ limitations: z.ZodOptional<z.ZodArray<z.ZodString>>;
377
+ }, z.core.$strip>>;
378
+ compatibility: z.ZodObject<{
379
+ state: z.ZodEnum<{
380
+ revoked: "revoked";
381
+ degraded: "degraded";
382
+ unavailable: "unavailable";
383
+ deprecated: "deprecated";
384
+ incompatible: "incompatible";
385
+ compatible: "compatible";
386
+ untested: "untested";
387
+ capability_missing: "capability_missing";
388
+ }>;
389
+ limitations: z.ZodArray<z.ZodString>;
390
+ }, z.core.$strip>;
391
+ access: z.ZodObject<{
392
+ localProjectGrant: z.ZodObject<{
393
+ required: z.ZodBoolean;
394
+ state: z.ZodEnum<{
395
+ revoked: "revoked";
396
+ not_required: "not_required";
397
+ granted: "granted";
398
+ missing: "missing";
399
+ }>;
400
+ }, z.core.$strip>;
401
+ entitlement: z.ZodObject<{
402
+ state: z.ZodEnum<{
403
+ unknown: "unknown";
404
+ denied: "denied";
405
+ allowed: "allowed";
406
+ }>;
407
+ class: z.ZodOptional<z.ZodString>;
408
+ }, z.core.$strip>;
409
+ }, z.core.$strip>;
410
+ eligibility: z.ZodObject<{
411
+ state: z.ZodEnum<{
412
+ degraded: "degraded";
413
+ eligible: "eligible";
414
+ ineligible: "ineligible";
415
+ }>;
416
+ reasons: z.ZodArray<z.ZodString>;
417
+ degradations: z.ZodArray<z.ZodString>;
418
+ remediation: z.ZodArray<z.ZodObject<{
419
+ code: z.ZodString;
420
+ label: z.ZodString;
421
+ }, z.core.$strip>>;
422
+ }, z.core.$strip>;
423
+ observedAt: z.ZodISODateTime;
424
+ limitations: z.ZodArray<z.ZodString>;
425
+ }, z.core.$strip>>;
426
+ page: z.ZodObject<{
427
+ nextCursor: z.ZodOptional<z.ZodString>;
428
+ }, z.core.$strip>;
429
+ }, z.core.$strip>;
430
+ }, z.core.$strip>;
431
+ export declare const RuntimeConnectionGetResponseSchema: z.ZodObject<{
432
+ contractVersion: z.ZodObject<{
433
+ major: z.ZodNumber;
434
+ minor: z.ZodNumber;
435
+ }, z.core.$strict>;
436
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
437
+ correlation: z.ZodObject<{
438
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
439
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
440
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
441
+ }, z.core.$strip>;
442
+ data: z.ZodObject<{
443
+ runtimeConnection: z.ZodObject<{
444
+ runtimeConnectionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>;
445
+ runtimeDefinitionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-definition ID">, string>>;
446
+ family: z.ZodString;
447
+ connectionType: z.ZodEnum<{
448
+ managed_cloud: "managed_cloud";
449
+ managed_local: "managed_local";
450
+ external_local: "external_local";
451
+ }>;
452
+ location: z.ZodEnum<{
453
+ local_device: "local_device";
454
+ agent_hq_cloud: "agent_hq_cloud";
455
+ }>;
456
+ status: z.ZodEnum<{
457
+ revoked: "revoked";
458
+ degraded: "degraded";
459
+ unavailable: "unavailable";
460
+ available: "available";
461
+ }>;
462
+ node: z.ZodOptional<z.ZodObject<{
463
+ runtimeNodeRefId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-node reference ID">, string>>;
464
+ location: z.ZodEnum<{
465
+ local_device: "local_device";
466
+ remote_host: "remote_host";
467
+ agent_hq_cloud: "agent_hq_cloud";
468
+ }>;
469
+ status: z.ZodEnum<{
470
+ revoked: "revoked";
471
+ online: "online";
472
+ offline: "offline";
473
+ }>;
474
+ health: z.ZodEnum<{
475
+ unknown: "unknown";
476
+ revoked: "revoked";
477
+ online: "online";
478
+ offline: "offline";
479
+ }>;
480
+ observedAt: z.ZodISODateTime;
481
+ }, z.core.$strip>>;
482
+ connection: z.ZodObject<{
483
+ status: z.ZodEnum<{
484
+ revoked: "revoked";
485
+ degraded: "degraded";
486
+ unavailable: "unavailable";
487
+ expired: "expired";
488
+ connected: "connected";
489
+ disconnected: "disconnected";
490
+ }>;
491
+ health: z.ZodEnum<{
492
+ degraded: "degraded";
493
+ healthy: "healthy";
494
+ unavailable: "unavailable";
495
+ }>;
496
+ availability: z.ZodEnum<{
497
+ unknown: "unknown";
498
+ revoked: "revoked";
499
+ degraded: "degraded";
500
+ healthy: "healthy";
501
+ stale: "stale";
502
+ offline: "offline";
503
+ reconnecting: "reconnecting";
504
+ incompatible: "incompatible";
505
+ }>;
506
+ }, z.core.$strip>;
507
+ freshness: z.ZodObject<{
508
+ state: z.ZodEnum<{
509
+ unknown: "unknown";
510
+ stale: "stale";
511
+ expired: "expired";
512
+ fresh: "fresh";
513
+ }>;
514
+ observedAt: z.ZodISODateTime;
515
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
516
+ }, z.core.$strip>;
517
+ versions: z.ZodObject<{
518
+ adapter: z.ZodString;
519
+ driver: z.ZodString;
520
+ harness: z.ZodString;
521
+ protocol: z.ZodOptional<z.ZodString>;
522
+ }, z.core.$strip>;
523
+ capabilities: z.ZodArray<z.ZodString>;
524
+ capabilityDetails: z.ZodArray<z.ZodObject<{
525
+ name: z.ZodString;
526
+ support: z.ZodEnum<{
527
+ degraded: "degraded";
528
+ supported: "supported";
529
+ unsupported: "unsupported";
530
+ }>;
531
+ limitations: z.ZodOptional<z.ZodArray<z.ZodString>>;
532
+ }, z.core.$strip>>;
533
+ compatibility: z.ZodObject<{
534
+ state: z.ZodEnum<{
535
+ revoked: "revoked";
536
+ degraded: "degraded";
537
+ unavailable: "unavailable";
538
+ deprecated: "deprecated";
539
+ incompatible: "incompatible";
540
+ compatible: "compatible";
541
+ untested: "untested";
542
+ capability_missing: "capability_missing";
543
+ }>;
544
+ limitations: z.ZodArray<z.ZodString>;
545
+ }, z.core.$strip>;
546
+ access: z.ZodObject<{
547
+ localProjectGrant: z.ZodObject<{
548
+ required: z.ZodBoolean;
549
+ state: z.ZodEnum<{
550
+ revoked: "revoked";
551
+ not_required: "not_required";
552
+ granted: "granted";
553
+ missing: "missing";
554
+ }>;
555
+ }, z.core.$strip>;
556
+ entitlement: z.ZodObject<{
557
+ state: z.ZodEnum<{
558
+ unknown: "unknown";
559
+ denied: "denied";
560
+ allowed: "allowed";
561
+ }>;
562
+ class: z.ZodOptional<z.ZodString>;
563
+ }, z.core.$strip>;
564
+ }, z.core.$strip>;
565
+ eligibility: z.ZodObject<{
566
+ state: z.ZodEnum<{
567
+ degraded: "degraded";
568
+ eligible: "eligible";
569
+ ineligible: "ineligible";
570
+ }>;
571
+ reasons: z.ZodArray<z.ZodString>;
572
+ degradations: z.ZodArray<z.ZodString>;
573
+ remediation: z.ZodArray<z.ZodObject<{
574
+ code: z.ZodString;
575
+ label: z.ZodString;
576
+ }, z.core.$strip>>;
577
+ }, z.core.$strip>;
578
+ observedAt: z.ZodISODateTime;
579
+ limitations: z.ZodArray<z.ZodString>;
580
+ }, z.core.$strip>;
581
+ }, z.core.$strip>;
582
+ }, z.core.$strip>;
583
+ export declare const ExternalSessionListRequestSchema: z.ZodObject<{
584
+ caller: z.ZodObject<{
585
+ servicePrincipalId: z.ZodString;
586
+ }, z.core.$strip>;
587
+ contractVersion: z.ZodObject<{
588
+ major: z.ZodNumber;
589
+ minor: z.ZodNumber;
590
+ }, z.core.$strict>;
591
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
592
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"workspace ID">, string>>;
593
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"project ID">, string>>>;
594
+ correlation: z.ZodObject<{
595
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
596
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
597
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
598
+ }, z.core.$strip>;
599
+ requestedAt: z.ZodISODateTime;
600
+ operation: z.ZodLiteral<"external-session.list">;
601
+ parameters: z.ZodObject<{
602
+ cursor: z.ZodOptional<z.ZodString>;
603
+ limit: z.ZodDefault<z.ZodNumber>;
604
+ runtimeConnectionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>>;
605
+ runtimeNodeRefId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-node reference ID">, string>>>;
606
+ states: z.ZodDefault<z.ZodArray<z.ZodEnum<{
607
+ active: "active";
608
+ revoked: "revoked";
609
+ stale: "stale";
610
+ offline: "offline";
611
+ closed: "closed";
612
+ runtime_missing: "runtime_missing";
613
+ capability_changed: "capability_changed";
614
+ removed: "removed";
615
+ }>>>;
616
+ }, z.core.$strip>;
617
+ }, z.core.$strip>;
618
+ export declare const ExternalSessionGetRequestSchema: z.ZodObject<{
619
+ caller: z.ZodObject<{
620
+ servicePrincipalId: z.ZodString;
621
+ }, z.core.$strip>;
622
+ contractVersion: z.ZodObject<{
623
+ major: z.ZodNumber;
624
+ minor: z.ZodNumber;
625
+ }, z.core.$strict>;
626
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
627
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"workspace ID">, string>>;
628
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"project ID">, string>>>;
629
+ correlation: z.ZodObject<{
630
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
631
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
632
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
633
+ }, z.core.$strip>;
634
+ requestedAt: z.ZodISODateTime;
635
+ operation: z.ZodLiteral<"external-session.get">;
636
+ parameters: z.ZodObject<{
637
+ externalSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"external-session ID">, string>>;
638
+ runtimeNodeRefId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-node reference ID">, string>>>;
639
+ }, z.core.$strip>;
640
+ }, z.core.$strip>;
641
+ export declare const ExternalSessionListResponseSchema: z.ZodObject<{
642
+ contractVersion: z.ZodObject<{
643
+ major: z.ZodNumber;
644
+ minor: z.ZodNumber;
645
+ }, z.core.$strict>;
646
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
647
+ correlation: z.ZodObject<{
648
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
649
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
650
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
651
+ }, z.core.$strip>;
652
+ data: z.ZodObject<{
653
+ externalSessions: z.ZodArray<z.ZodObject<{
654
+ externalSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"external-session ID">, string>>;
655
+ runtimeConnectionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>;
656
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"project ID">, string>>>;
657
+ state: z.ZodEnum<{
658
+ active: "active";
659
+ revoked: "revoked";
660
+ stale: "stale";
661
+ offline: "offline";
662
+ closed: "closed";
663
+ runtime_missing: "runtime_missing";
664
+ capability_changed: "capability_changed";
665
+ removed: "removed";
666
+ }>;
667
+ recoverable: z.ZodBoolean;
668
+ display: z.ZodObject<{
669
+ origin: z.ZodEnum<{
670
+ native_discovery: "native_discovery";
671
+ created_through_control_plane: "created_through_control_plane";
672
+ }>;
673
+ displayName: z.ZodOptional<z.ZodString>;
674
+ }, z.core.$strip>;
675
+ freshness: z.ZodObject<{
676
+ state: z.ZodEnum<{
677
+ unknown: "unknown";
678
+ stale: "stale";
679
+ expired: "expired";
680
+ fresh: "fresh";
681
+ }>;
682
+ observedAt: z.ZodISODateTime;
683
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
684
+ }, z.core.$strip>;
685
+ capabilitySummary: z.ZodObject<{
686
+ version: z.ZodNumber;
687
+ operations: z.ZodArray<z.ZodString>;
688
+ controls: z.ZodObject<{
689
+ reference: z.ZodUnion<readonly [z.ZodObject<{
690
+ available: z.ZodLiteral<true>;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ available: z.ZodLiteral<false>;
693
+ reason: z.ZodString;
694
+ }, z.core.$strip>]>;
695
+ resume: z.ZodUnion<readonly [z.ZodObject<{
696
+ available: z.ZodLiteral<true>;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ available: z.ZodLiteral<false>;
699
+ reason: z.ZodString;
700
+ }, z.core.$strip>]>;
701
+ load: z.ZodUnion<readonly [z.ZodObject<{
702
+ available: z.ZodLiteral<true>;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ available: z.ZodLiteral<false>;
705
+ reason: z.ZodString;
706
+ }, z.core.$strip>]>;
707
+ close: z.ZodUnion<readonly [z.ZodObject<{
708
+ available: z.ZodLiteral<true>;
709
+ }, z.core.$strip>, z.ZodObject<{
710
+ available: z.ZodLiteral<false>;
711
+ reason: z.ZodString;
712
+ }, z.core.$strip>]>;
713
+ history: z.ZodUnion<readonly [z.ZodObject<{
714
+ available: z.ZodLiteral<true>;
715
+ }, z.core.$strip>, z.ZodObject<{
716
+ available: z.ZodLiteral<false>;
717
+ reason: z.ZodString;
718
+ }, z.core.$strip>]>;
719
+ }, z.core.$strip>;
720
+ }, z.core.$strip>;
721
+ limitations: z.ZodArray<z.ZodString>;
722
+ }, z.core.$strip>>;
723
+ page: z.ZodObject<{
724
+ nextCursor: z.ZodOptional<z.ZodString>;
725
+ }, z.core.$strip>;
726
+ }, z.core.$strip>;
727
+ }, z.core.$strip>;
728
+ export declare const ExternalSessionGetResponseSchema: z.ZodObject<{
729
+ contractVersion: z.ZodObject<{
730
+ major: z.ZodNumber;
731
+ minor: z.ZodNumber;
732
+ }, z.core.$strict>;
733
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
734
+ correlation: z.ZodObject<{
735
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
736
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
737
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
738
+ }, z.core.$strip>;
739
+ data: z.ZodObject<{
740
+ externalSession: z.ZodObject<{
741
+ externalSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"external-session ID">, string>>;
742
+ runtimeConnectionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"runtime-connection ID">, string>>;
743
+ projectId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"project ID">, string>>>;
744
+ state: z.ZodEnum<{
745
+ active: "active";
746
+ revoked: "revoked";
747
+ stale: "stale";
748
+ offline: "offline";
749
+ closed: "closed";
750
+ runtime_missing: "runtime_missing";
751
+ capability_changed: "capability_changed";
752
+ removed: "removed";
753
+ }>;
754
+ recoverable: z.ZodBoolean;
755
+ display: z.ZodObject<{
756
+ origin: z.ZodEnum<{
757
+ native_discovery: "native_discovery";
758
+ created_through_control_plane: "created_through_control_plane";
759
+ }>;
760
+ displayName: z.ZodOptional<z.ZodString>;
761
+ }, z.core.$strip>;
762
+ freshness: z.ZodObject<{
763
+ state: z.ZodEnum<{
764
+ unknown: "unknown";
765
+ stale: "stale";
766
+ expired: "expired";
767
+ fresh: "fresh";
768
+ }>;
769
+ observedAt: z.ZodISODateTime;
770
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
771
+ }, z.core.$strip>;
772
+ capabilitySummary: z.ZodObject<{
773
+ version: z.ZodNumber;
774
+ operations: z.ZodArray<z.ZodString>;
775
+ controls: z.ZodObject<{
776
+ reference: z.ZodUnion<readonly [z.ZodObject<{
777
+ available: z.ZodLiteral<true>;
778
+ }, z.core.$strip>, z.ZodObject<{
779
+ available: z.ZodLiteral<false>;
780
+ reason: z.ZodString;
781
+ }, z.core.$strip>]>;
782
+ resume: z.ZodUnion<readonly [z.ZodObject<{
783
+ available: z.ZodLiteral<true>;
784
+ }, z.core.$strip>, z.ZodObject<{
785
+ available: z.ZodLiteral<false>;
786
+ reason: z.ZodString;
787
+ }, z.core.$strip>]>;
788
+ load: z.ZodUnion<readonly [z.ZodObject<{
789
+ available: z.ZodLiteral<true>;
790
+ }, z.core.$strip>, z.ZodObject<{
791
+ available: z.ZodLiteral<false>;
792
+ reason: z.ZodString;
793
+ }, z.core.$strip>]>;
794
+ close: z.ZodUnion<readonly [z.ZodObject<{
795
+ available: z.ZodLiteral<true>;
796
+ }, z.core.$strip>, z.ZodObject<{
797
+ available: z.ZodLiteral<false>;
798
+ reason: z.ZodString;
799
+ }, z.core.$strip>]>;
800
+ history: z.ZodUnion<readonly [z.ZodObject<{
801
+ available: z.ZodLiteral<true>;
802
+ }, z.core.$strip>, z.ZodObject<{
803
+ available: z.ZodLiteral<false>;
804
+ reason: z.ZodString;
805
+ }, z.core.$strip>]>;
806
+ }, z.core.$strip>;
807
+ }, z.core.$strip>;
808
+ limitations: z.ZodArray<z.ZodString>;
809
+ }, z.core.$strip>;
810
+ }, z.core.$strip>;
811
+ }, z.core.$strip>;
812
+ export type RuntimeConnectionDiscoveryReadModel = z.output<typeof RuntimeConnectionDiscoveryReadModelSchema>;
813
+ export type ExternalSessionDiscoveryReadModel = z.output<typeof ExternalSessionDiscoveryReadModelSchema>;
814
+ export type RuntimeConnectionListRequest = z.input<typeof RuntimeConnectionListRequestSchema>;
815
+ export type RuntimeConnectionListResponse = z.output<typeof RuntimeConnectionListResponseSchema>;
816
+ export type RuntimeConnectionGetRequest = z.input<typeof RuntimeConnectionGetRequestSchema>;
817
+ export type RuntimeConnectionGetResponse = z.output<typeof RuntimeConnectionGetResponseSchema>;
818
+ export type ExternalSessionListRequest = z.input<typeof ExternalSessionListRequestSchema>;
819
+ export type ExternalSessionListResponse = z.output<typeof ExternalSessionListResponseSchema>;
820
+ export type ExternalSessionGetRequest = z.input<typeof ExternalSessionGetRequestSchema>;
821
+ export type ExternalSessionGetResponse = z.output<typeof ExternalSessionGetResponseSchema>;
822
+ //# sourceMappingURL=runtime-discovery.d.ts.map