@openagentpack/sdk 0.0.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,898 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const ResourceTypeSchema: z.ZodEnum<{
4
+ file: "file";
5
+ memory_store: "memory_store";
6
+ environment: "environment";
7
+ vault: "vault";
8
+ skill: "skill";
9
+ agent: "agent";
10
+ deployment: "deployment";
11
+ }>;
12
+ type ResourceType = z.infer<typeof ResourceTypeSchema>;
13
+ declare const ResourceAddressSchema: z.ZodObject<{
14
+ type: z.ZodEnum<{
15
+ file: "file";
16
+ memory_store: "memory_store";
17
+ environment: "environment";
18
+ vault: "vault";
19
+ skill: "skill";
20
+ agent: "agent";
21
+ deployment: "deployment";
22
+ }>;
23
+ name: z.ZodString;
24
+ provider: z.ZodString;
25
+ }, z.core.$strip>;
26
+ type ResourceAddress = z.infer<typeof ResourceAddressSchema>;
27
+ declare const DiagnosticSeveritySchema: z.ZodEnum<{
28
+ error: "error";
29
+ warning: "warning";
30
+ info: "info";
31
+ }>;
32
+ type DiagnosticSeverity = z.infer<typeof DiagnosticSeveritySchema>;
33
+ declare const DiagnosticSchema: z.ZodObject<{
34
+ severity: z.ZodEnum<{
35
+ error: "error";
36
+ warning: "warning";
37
+ info: "info";
38
+ }>;
39
+ code: z.ZodString;
40
+ message: z.ZodString;
41
+ resource: z.ZodOptional<z.ZodObject<{
42
+ type: z.ZodEnum<{
43
+ file: "file";
44
+ memory_store: "memory_store";
45
+ environment: "environment";
46
+ vault: "vault";
47
+ skill: "skill";
48
+ agent: "agent";
49
+ deployment: "deployment";
50
+ }>;
51
+ name: z.ZodString;
52
+ provider: z.ZodString;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
55
+ type Diagnostic = z.infer<typeof DiagnosticSchema>;
56
+ declare const ActionTypeSchema: z.ZodEnum<{
57
+ create: "create";
58
+ update: "update";
59
+ delete: "delete";
60
+ "no-op": "no-op";
61
+ }>;
62
+ type ActionType = z.infer<typeof ActionTypeSchema>;
63
+ declare const DriftKindSchema: z.ZodEnum<{
64
+ none: "none";
65
+ local: "local";
66
+ remote: "remote";
67
+ both: "both";
68
+ }>;
69
+ type DriftKind = z.infer<typeof DriftKindSchema>;
70
+ declare const PlannedActionSchema: z.ZodObject<{
71
+ action: z.ZodEnum<{
72
+ create: "create";
73
+ update: "update";
74
+ delete: "delete";
75
+ "no-op": "no-op";
76
+ }>;
77
+ address: z.ZodObject<{
78
+ type: z.ZodEnum<{
79
+ file: "file";
80
+ memory_store: "memory_store";
81
+ environment: "environment";
82
+ vault: "vault";
83
+ skill: "skill";
84
+ agent: "agent";
85
+ deployment: "deployment";
86
+ }>;
87
+ name: z.ZodString;
88
+ provider: z.ZodString;
89
+ }, z.core.$strip>;
90
+ reason: z.ZodString;
91
+ driftKind: z.ZodOptional<z.ZodEnum<{
92
+ none: "none";
93
+ local: "local";
94
+ remote: "remote";
95
+ both: "both";
96
+ }>>;
97
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
99
+ dependencies: z.ZodArray<z.ZodObject<{
100
+ type: z.ZodEnum<{
101
+ file: "file";
102
+ memory_store: "memory_store";
103
+ environment: "environment";
104
+ vault: "vault";
105
+ skill: "skill";
106
+ agent: "agent";
107
+ deployment: "deployment";
108
+ }>;
109
+ name: z.ZodString;
110
+ provider: z.ZodString;
111
+ }, z.core.$strip>>;
112
+ }, z.core.$strip>;
113
+ type PlannedAction = z.infer<typeof PlannedActionSchema>;
114
+ declare const AgentReadinessStatusSchema: z.ZodEnum<{
115
+ ready: "ready";
116
+ error: "error";
117
+ missing: "missing";
118
+ creating: "creating";
119
+ updating: "updating";
120
+ invalid: "invalid";
121
+ drifted: "drifted";
122
+ unavailable: "unavailable";
123
+ }>;
124
+ type AgentReadinessStatus = z.infer<typeof AgentReadinessStatusSchema>;
125
+ declare const AgentDriftSeveritySchema: z.ZodEnum<{
126
+ blocking: "blocking";
127
+ non_blocking: "non_blocking";
128
+ }>;
129
+ type AgentDriftSeverity = z.infer<typeof AgentDriftSeveritySchema>;
130
+ declare const AgentSkillRefSchema: z.ZodObject<{
131
+ type: z.ZodEnum<{
132
+ custom: "custom";
133
+ official: "official";
134
+ }>;
135
+ id: z.ZodString;
136
+ version: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strip>;
138
+ type AgentSkillRef = z.infer<typeof AgentSkillRefSchema>;
139
+ declare const AgentModelSchema: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
140
+ type AgentModel = z.infer<typeof AgentModelSchema>;
141
+ declare const AgentDefinitionSchema: z.ZodObject<{
142
+ id: z.ZodString;
143
+ agentName: z.ZodString;
144
+ provider: z.ZodString;
145
+ description: z.ZodOptional<z.ZodString>;
146
+ model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
147
+ environment: z.ZodOptional<z.ZodString>;
148
+ tools: z.ZodOptional<z.ZodUnknown>;
149
+ skills: z.ZodArray<z.ZodObject<{
150
+ type: z.ZodEnum<{
151
+ custom: "custom";
152
+ official: "official";
153
+ }>;
154
+ id: z.ZodString;
155
+ version: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strip>>;
157
+ mcpServers: z.ZodArray<z.ZodString>;
158
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
159
+ }, z.core.$strip>;
160
+ type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
161
+ declare const AgentReadinessSchema: z.ZodObject<{
162
+ status: z.ZodEnum<{
163
+ ready: "ready";
164
+ error: "error";
165
+ missing: "missing";
166
+ creating: "creating";
167
+ updating: "updating";
168
+ invalid: "invalid";
169
+ drifted: "drifted";
170
+ unavailable: "unavailable";
171
+ }>;
172
+ agentId: z.ZodString;
173
+ driftSeverity: z.ZodOptional<z.ZodEnum<{
174
+ blocking: "blocking";
175
+ non_blocking: "non_blocking";
176
+ }>>;
177
+ diagnostics: z.ZodArray<z.ZodObject<{
178
+ severity: z.ZodEnum<{
179
+ error: "error";
180
+ warning: "warning";
181
+ info: "info";
182
+ }>;
183
+ code: z.ZodString;
184
+ message: z.ZodString;
185
+ resource: z.ZodOptional<z.ZodObject<{
186
+ type: z.ZodEnum<{
187
+ file: "file";
188
+ memory_store: "memory_store";
189
+ environment: "environment";
190
+ vault: "vault";
191
+ skill: "skill";
192
+ agent: "agent";
193
+ deployment: "deployment";
194
+ }>;
195
+ name: z.ZodString;
196
+ provider: z.ZodString;
197
+ }, z.core.$strip>>;
198
+ }, z.core.$strip>>;
199
+ missing: z.ZodArray<z.ZodObject<{
200
+ type: z.ZodEnum<{
201
+ file: "file";
202
+ memory_store: "memory_store";
203
+ environment: "environment";
204
+ vault: "vault";
205
+ skill: "skill";
206
+ agent: "agent";
207
+ deployment: "deployment";
208
+ }>;
209
+ name: z.ZodString;
210
+ provider: z.ZodString;
211
+ }, z.core.$strip>>;
212
+ plannedActions: z.ZodArray<z.ZodObject<{
213
+ action: z.ZodEnum<{
214
+ create: "create";
215
+ update: "update";
216
+ delete: "delete";
217
+ "no-op": "no-op";
218
+ }>;
219
+ address: z.ZodObject<{
220
+ type: z.ZodEnum<{
221
+ file: "file";
222
+ memory_store: "memory_store";
223
+ environment: "environment";
224
+ vault: "vault";
225
+ skill: "skill";
226
+ agent: "agent";
227
+ deployment: "deployment";
228
+ }>;
229
+ name: z.ZodString;
230
+ provider: z.ZodString;
231
+ }, z.core.$strip>;
232
+ reason: z.ZodString;
233
+ driftKind: z.ZodOptional<z.ZodEnum<{
234
+ none: "none";
235
+ local: "local";
236
+ remote: "remote";
237
+ both: "both";
238
+ }>>;
239
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
240
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
+ dependencies: z.ZodArray<z.ZodObject<{
242
+ type: z.ZodEnum<{
243
+ file: "file";
244
+ memory_store: "memory_store";
245
+ environment: "environment";
246
+ vault: "vault";
247
+ skill: "skill";
248
+ agent: "agent";
249
+ deployment: "deployment";
250
+ }>;
251
+ name: z.ZodString;
252
+ provider: z.ZodString;
253
+ }, z.core.$strip>>;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>;
256
+ type AgentReadiness = z.infer<typeof AgentReadinessSchema>;
257
+ declare const AgentWithReadinessSchema: z.ZodObject<{
258
+ agent: z.ZodObject<{
259
+ id: z.ZodString;
260
+ agentName: z.ZodString;
261
+ provider: z.ZodString;
262
+ description: z.ZodOptional<z.ZodString>;
263
+ model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
264
+ environment: z.ZodOptional<z.ZodString>;
265
+ tools: z.ZodOptional<z.ZodUnknown>;
266
+ skills: z.ZodArray<z.ZodObject<{
267
+ type: z.ZodEnum<{
268
+ custom: "custom";
269
+ official: "official";
270
+ }>;
271
+ id: z.ZodString;
272
+ version: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$strip>>;
274
+ mcpServers: z.ZodArray<z.ZodString>;
275
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
276
+ }, z.core.$strip>;
277
+ readiness: z.ZodObject<{
278
+ status: z.ZodEnum<{
279
+ ready: "ready";
280
+ error: "error";
281
+ missing: "missing";
282
+ creating: "creating";
283
+ updating: "updating";
284
+ invalid: "invalid";
285
+ drifted: "drifted";
286
+ unavailable: "unavailable";
287
+ }>;
288
+ agentId: z.ZodString;
289
+ driftSeverity: z.ZodOptional<z.ZodEnum<{
290
+ blocking: "blocking";
291
+ non_blocking: "non_blocking";
292
+ }>>;
293
+ diagnostics: z.ZodArray<z.ZodObject<{
294
+ severity: z.ZodEnum<{
295
+ error: "error";
296
+ warning: "warning";
297
+ info: "info";
298
+ }>;
299
+ code: z.ZodString;
300
+ message: z.ZodString;
301
+ resource: z.ZodOptional<z.ZodObject<{
302
+ type: z.ZodEnum<{
303
+ file: "file";
304
+ memory_store: "memory_store";
305
+ environment: "environment";
306
+ vault: "vault";
307
+ skill: "skill";
308
+ agent: "agent";
309
+ deployment: "deployment";
310
+ }>;
311
+ name: z.ZodString;
312
+ provider: z.ZodString;
313
+ }, z.core.$strip>>;
314
+ }, z.core.$strip>>;
315
+ missing: z.ZodArray<z.ZodObject<{
316
+ type: z.ZodEnum<{
317
+ file: "file";
318
+ memory_store: "memory_store";
319
+ environment: "environment";
320
+ vault: "vault";
321
+ skill: "skill";
322
+ agent: "agent";
323
+ deployment: "deployment";
324
+ }>;
325
+ name: z.ZodString;
326
+ provider: z.ZodString;
327
+ }, z.core.$strip>>;
328
+ plannedActions: z.ZodArray<z.ZodObject<{
329
+ action: z.ZodEnum<{
330
+ create: "create";
331
+ update: "update";
332
+ delete: "delete";
333
+ "no-op": "no-op";
334
+ }>;
335
+ address: z.ZodObject<{
336
+ type: z.ZodEnum<{
337
+ file: "file";
338
+ memory_store: "memory_store";
339
+ environment: "environment";
340
+ vault: "vault";
341
+ skill: "skill";
342
+ agent: "agent";
343
+ deployment: "deployment";
344
+ }>;
345
+ name: z.ZodString;
346
+ provider: z.ZodString;
347
+ }, z.core.$strip>;
348
+ reason: z.ZodString;
349
+ driftKind: z.ZodOptional<z.ZodEnum<{
350
+ none: "none";
351
+ local: "local";
352
+ remote: "remote";
353
+ both: "both";
354
+ }>>;
355
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
356
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
357
+ dependencies: z.ZodArray<z.ZodObject<{
358
+ type: z.ZodEnum<{
359
+ file: "file";
360
+ memory_store: "memory_store";
361
+ environment: "environment";
362
+ vault: "vault";
363
+ skill: "skill";
364
+ agent: "agent";
365
+ deployment: "deployment";
366
+ }>;
367
+ name: z.ZodString;
368
+ provider: z.ZodString;
369
+ }, z.core.$strip>>;
370
+ }, z.core.$strip>>;
371
+ }, z.core.$strip>;
372
+ }, z.core.$strip>;
373
+ type AgentWithReadiness = z.infer<typeof AgentWithReadinessSchema>;
374
+ declare const AgentRecoveryActionSchema: z.ZodEnum<{
375
+ initialize: "initialize";
376
+ repair: "repair";
377
+ refresh: "refresh";
378
+ details: "details";
379
+ }>;
380
+ type AgentRecoveryAction = z.infer<typeof AgentRecoveryActionSchema>;
381
+ declare const CloudAgentSchema: z.ZodObject<{
382
+ id: z.ZodString;
383
+ name: z.ZodOptional<z.ZodString>;
384
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
+ model: z.ZodOptional<z.ZodUnknown>;
386
+ system: z.ZodOptional<z.ZodString>;
387
+ tools: z.ZodOptional<z.ZodUnknown>;
388
+ skills: z.ZodOptional<z.ZodUnknown>;
389
+ mcp_servers: z.ZodOptional<z.ZodUnknown>;
390
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
391
+ version: z.ZodOptional<z.ZodNumber>;
392
+ type: z.ZodOptional<z.ZodString>;
393
+ workspace_id: z.ZodOptional<z.ZodString>;
394
+ created_at: z.ZodOptional<z.ZodString>;
395
+ updated_at: z.ZodOptional<z.ZodString>;
396
+ archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
+ }, z.core.$strip>;
398
+ type CloudAgent = z.infer<typeof CloudAgentSchema>;
399
+ declare const ListCloudAgentsResponseSchema: z.ZodObject<{
400
+ agents: z.ZodArray<z.ZodObject<{
401
+ id: z.ZodString;
402
+ name: z.ZodOptional<z.ZodString>;
403
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
+ model: z.ZodOptional<z.ZodUnknown>;
405
+ system: z.ZodOptional<z.ZodString>;
406
+ tools: z.ZodOptional<z.ZodUnknown>;
407
+ skills: z.ZodOptional<z.ZodUnknown>;
408
+ mcp_servers: z.ZodOptional<z.ZodUnknown>;
409
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
410
+ version: z.ZodOptional<z.ZodNumber>;
411
+ type: z.ZodOptional<z.ZodString>;
412
+ workspace_id: z.ZodOptional<z.ZodString>;
413
+ created_at: z.ZodOptional<z.ZodString>;
414
+ updated_at: z.ZodOptional<z.ZodString>;
415
+ archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ }, z.core.$strip>>;
417
+ }, z.core.$strip>;
418
+ type ListCloudAgentsResponse = z.infer<typeof ListCloudAgentsResponseSchema>;
419
+ declare const CloudEnvironmentSchema: z.ZodObject<{
420
+ id: z.ZodString;
421
+ name: z.ZodOptional<z.ZodString>;
422
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ config: z.ZodOptional<z.ZodUnknown>;
424
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
425
+ scope: z.ZodOptional<z.ZodString>;
426
+ version: z.ZodOptional<z.ZodNumber>;
427
+ type: z.ZodOptional<z.ZodString>;
428
+ workspace_id: z.ZodOptional<z.ZodString>;
429
+ created_at: z.ZodOptional<z.ZodString>;
430
+ updated_at: z.ZodOptional<z.ZodString>;
431
+ archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ }, z.core.$strip>;
433
+ type CloudEnvironment = z.infer<typeof CloudEnvironmentSchema>;
434
+ declare const ListCloudEnvironmentsResponseSchema: z.ZodObject<{
435
+ environments: z.ZodArray<z.ZodObject<{
436
+ id: z.ZodString;
437
+ name: z.ZodOptional<z.ZodString>;
438
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
+ config: z.ZodOptional<z.ZodUnknown>;
440
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
441
+ scope: z.ZodOptional<z.ZodString>;
442
+ version: z.ZodOptional<z.ZodNumber>;
443
+ type: z.ZodOptional<z.ZodString>;
444
+ workspace_id: z.ZodOptional<z.ZodString>;
445
+ created_at: z.ZodOptional<z.ZodString>;
446
+ updated_at: z.ZodOptional<z.ZodString>;
447
+ archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ }, z.core.$strip>>;
449
+ }, z.core.$strip>;
450
+ type ListCloudEnvironmentsResponse = z.infer<typeof ListCloudEnvironmentsResponseSchema>;
451
+ declare const CloudVaultSchema: z.ZodObject<{
452
+ id: z.ZodString;
453
+ display_name: z.ZodOptional<z.ZodString>;
454
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
455
+ type: z.ZodOptional<z.ZodString>;
456
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ }, z.core.$strip>;
460
+ type CloudVault = z.infer<typeof CloudVaultSchema>;
461
+ declare const SessionEventTypeSchema: z.ZodEnum<{
462
+ error: "error";
463
+ message: "message";
464
+ unknown: "unknown";
465
+ status: "status";
466
+ thinking: "thinking";
467
+ tool_use: "tool_use";
468
+ tool_result: "tool_result";
469
+ }>;
470
+ type SessionEventType = z.infer<typeof SessionEventTypeSchema>;
471
+ declare const AgentSyncStatusSchema: z.ZodEnum<{
472
+ failed: "failed";
473
+ completed: "completed";
474
+ blocked: "blocked";
475
+ }>;
476
+ type AgentSyncStatus = z.infer<typeof AgentSyncStatusSchema>;
477
+ declare const AgentSyncResultSchema: z.ZodObject<{
478
+ action: z.ZodObject<{
479
+ action: z.ZodEnum<{
480
+ create: "create";
481
+ update: "update";
482
+ delete: "delete";
483
+ "no-op": "no-op";
484
+ }>;
485
+ address: z.ZodObject<{
486
+ type: z.ZodEnum<{
487
+ file: "file";
488
+ memory_store: "memory_store";
489
+ environment: "environment";
490
+ vault: "vault";
491
+ skill: "skill";
492
+ agent: "agent";
493
+ deployment: "deployment";
494
+ }>;
495
+ name: z.ZodString;
496
+ provider: z.ZodString;
497
+ }, z.core.$strip>;
498
+ reason: z.ZodString;
499
+ driftKind: z.ZodOptional<z.ZodEnum<{
500
+ none: "none";
501
+ local: "local";
502
+ remote: "remote";
503
+ both: "both";
504
+ }>>;
505
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
506
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
507
+ dependencies: z.ZodArray<z.ZodObject<{
508
+ type: z.ZodEnum<{
509
+ file: "file";
510
+ memory_store: "memory_store";
511
+ environment: "environment";
512
+ vault: "vault";
513
+ skill: "skill";
514
+ agent: "agent";
515
+ deployment: "deployment";
516
+ }>;
517
+ name: z.ZodString;
518
+ provider: z.ZodString;
519
+ }, z.core.$strip>>;
520
+ }, z.core.$strip>;
521
+ status: z.ZodEnum<{
522
+ failed: "failed";
523
+ success: "success";
524
+ skipped: "skipped";
525
+ }>;
526
+ error: z.ZodOptional<z.ZodString>;
527
+ }, z.core.$strip>;
528
+ type AgentSyncResult = z.infer<typeof AgentSyncResultSchema>;
529
+ declare const AgentSyncRunSchema: z.ZodObject<{
530
+ agentId: z.ZodString;
531
+ provider: z.ZodOptional<z.ZodString>;
532
+ status: z.ZodEnum<{
533
+ failed: "failed";
534
+ completed: "completed";
535
+ blocked: "blocked";
536
+ }>;
537
+ actions: z.ZodArray<z.ZodObject<{
538
+ action: z.ZodEnum<{
539
+ create: "create";
540
+ update: "update";
541
+ delete: "delete";
542
+ "no-op": "no-op";
543
+ }>;
544
+ address: z.ZodObject<{
545
+ type: z.ZodEnum<{
546
+ file: "file";
547
+ memory_store: "memory_store";
548
+ environment: "environment";
549
+ vault: "vault";
550
+ skill: "skill";
551
+ agent: "agent";
552
+ deployment: "deployment";
553
+ }>;
554
+ name: z.ZodString;
555
+ provider: z.ZodString;
556
+ }, z.core.$strip>;
557
+ reason: z.ZodString;
558
+ driftKind: z.ZodOptional<z.ZodEnum<{
559
+ none: "none";
560
+ local: "local";
561
+ remote: "remote";
562
+ both: "both";
563
+ }>>;
564
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
565
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
566
+ dependencies: z.ZodArray<z.ZodObject<{
567
+ type: z.ZodEnum<{
568
+ file: "file";
569
+ memory_store: "memory_store";
570
+ environment: "environment";
571
+ vault: "vault";
572
+ skill: "skill";
573
+ agent: "agent";
574
+ deployment: "deployment";
575
+ }>;
576
+ name: z.ZodString;
577
+ provider: z.ZodString;
578
+ }, z.core.$strip>>;
579
+ }, z.core.$strip>>;
580
+ diagnostics: z.ZodArray<z.ZodObject<{
581
+ severity: z.ZodEnum<{
582
+ error: "error";
583
+ warning: "warning";
584
+ info: "info";
585
+ }>;
586
+ code: z.ZodString;
587
+ message: z.ZodString;
588
+ resource: z.ZodOptional<z.ZodObject<{
589
+ type: z.ZodEnum<{
590
+ file: "file";
591
+ memory_store: "memory_store";
592
+ environment: "environment";
593
+ vault: "vault";
594
+ skill: "skill";
595
+ agent: "agent";
596
+ deployment: "deployment";
597
+ }>;
598
+ name: z.ZodString;
599
+ provider: z.ZodString;
600
+ }, z.core.$strip>>;
601
+ }, z.core.$strip>>;
602
+ destructiveActions: z.ZodArray<z.ZodObject<{
603
+ action: z.ZodEnum<{
604
+ create: "create";
605
+ update: "update";
606
+ delete: "delete";
607
+ "no-op": "no-op";
608
+ }>;
609
+ address: z.ZodObject<{
610
+ type: z.ZodEnum<{
611
+ file: "file";
612
+ memory_store: "memory_store";
613
+ environment: "environment";
614
+ vault: "vault";
615
+ skill: "skill";
616
+ agent: "agent";
617
+ deployment: "deployment";
618
+ }>;
619
+ name: z.ZodString;
620
+ provider: z.ZodString;
621
+ }, z.core.$strip>;
622
+ reason: z.ZodString;
623
+ driftKind: z.ZodOptional<z.ZodEnum<{
624
+ none: "none";
625
+ local: "local";
626
+ remote: "remote";
627
+ both: "both";
628
+ }>>;
629
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
630
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
631
+ dependencies: z.ZodArray<z.ZodObject<{
632
+ type: z.ZodEnum<{
633
+ file: "file";
634
+ memory_store: "memory_store";
635
+ environment: "environment";
636
+ vault: "vault";
637
+ skill: "skill";
638
+ agent: "agent";
639
+ deployment: "deployment";
640
+ }>;
641
+ name: z.ZodString;
642
+ provider: z.ZodString;
643
+ }, z.core.$strip>>;
644
+ }, z.core.$strip>>;
645
+ results: z.ZodArray<z.ZodObject<{
646
+ action: z.ZodObject<{
647
+ action: z.ZodEnum<{
648
+ create: "create";
649
+ update: "update";
650
+ delete: "delete";
651
+ "no-op": "no-op";
652
+ }>;
653
+ address: z.ZodObject<{
654
+ type: z.ZodEnum<{
655
+ file: "file";
656
+ memory_store: "memory_store";
657
+ environment: "environment";
658
+ vault: "vault";
659
+ skill: "skill";
660
+ agent: "agent";
661
+ deployment: "deployment";
662
+ }>;
663
+ name: z.ZodString;
664
+ provider: z.ZodString;
665
+ }, z.core.$strip>;
666
+ reason: z.ZodString;
667
+ driftKind: z.ZodOptional<z.ZodEnum<{
668
+ none: "none";
669
+ local: "local";
670
+ remote: "remote";
671
+ both: "both";
672
+ }>>;
673
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
674
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
675
+ dependencies: z.ZodArray<z.ZodObject<{
676
+ type: z.ZodEnum<{
677
+ file: "file";
678
+ memory_store: "memory_store";
679
+ environment: "environment";
680
+ vault: "vault";
681
+ skill: "skill";
682
+ agent: "agent";
683
+ deployment: "deployment";
684
+ }>;
685
+ name: z.ZodString;
686
+ provider: z.ZodString;
687
+ }, z.core.$strip>>;
688
+ }, z.core.$strip>;
689
+ status: z.ZodEnum<{
690
+ failed: "failed";
691
+ success: "success";
692
+ skipped: "skipped";
693
+ }>;
694
+ error: z.ZodOptional<z.ZodString>;
695
+ }, z.core.$strip>>;
696
+ error: z.ZodOptional<z.ZodString>;
697
+ }, z.core.$strip>;
698
+ type AgentSyncRun = z.infer<typeof AgentSyncRunSchema>;
699
+ declare const KNOWN_SESSION_EVENT_TYPES: readonly ["message", "thread_message_sent", "thread_message_received", "reasoning", "function_call", "tool_call", "mcp_call", "tool_confirmation", "function_call_output", "tool_call_output", "mcp_call_output", "session_status", "session_updated", "thread_status", "thread_created", "model_request_start", "model_request_end", "define_outcome", "outcome_evaluation", "thread_context_compacted", "interrupt", "error"];
700
+ type KnownSessionEventType = (typeof KNOWN_SESSION_EVENT_TYPES)[number];
701
+ type SessionEventTypeName = KnownSessionEventType | (string & {});
702
+ declare const SessionContentBlockSchema: z.ZodObject<{
703
+ type: z.ZodString;
704
+ text: z.ZodOptional<z.ZodString>;
705
+ data: z.ZodOptional<z.ZodUnknown>;
706
+ }, z.core.$loose>;
707
+ type SessionContentBlock = z.infer<typeof SessionContentBlockSchema>;
708
+ declare const SessionEventSchema: z.ZodObject<{
709
+ event_id: z.ZodOptional<z.ZodString>;
710
+ type: z.ZodString;
711
+ role: z.ZodOptional<z.ZodString>;
712
+ created_at: z.ZodOptional<z.ZodString>;
713
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
714
+ type: z.ZodString;
715
+ text: z.ZodOptional<z.ZodString>;
716
+ data: z.ZodOptional<z.ZodUnknown>;
717
+ }, z.core.$loose>>>;
718
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
719
+ is_error: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
720
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
721
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
722
+ }, z.core.$strip>;
723
+ type SessionEvent = z.infer<typeof SessionEventSchema>;
724
+ declare const SessionAgentSchema: z.ZodObject<{
725
+ agent_id: z.ZodOptional<z.ZodString>;
726
+ name: z.ZodOptional<z.ZodString>;
727
+ version: z.ZodOptional<z.ZodNumber>;
728
+ }, z.core.$loose>;
729
+ type SessionAgent = z.infer<typeof SessionAgentSchema>;
730
+ declare const SessionSchema: z.ZodObject<{
731
+ session_id: z.ZodString;
732
+ status: z.ZodOptional<z.ZodString>;
733
+ title: z.ZodOptional<z.ZodString>;
734
+ agent: z.ZodOptional<z.ZodObject<{
735
+ agent_id: z.ZodOptional<z.ZodString>;
736
+ name: z.ZodOptional<z.ZodString>;
737
+ version: z.ZodOptional<z.ZodNumber>;
738
+ }, z.core.$loose>>;
739
+ environment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
740
+ created_at: z.ZodOptional<z.ZodString>;
741
+ updated_at: z.ZodOptional<z.ZodString>;
742
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
743
+ }, z.core.$strip>;
744
+ type Session = z.infer<typeof SessionSchema>;
745
+ declare const ListSessionsRequestSchema: z.ZodObject<{
746
+ agent_id: z.ZodOptional<z.ZodString>;
747
+ session_id: z.ZodOptional<z.ZodString>;
748
+ created_at_gte: z.ZodOptional<z.ZodString>;
749
+ created_at_lte: z.ZodOptional<z.ZodString>;
750
+ include_archived: z.ZodOptional<z.ZodBoolean>;
751
+ page_token: z.ZodOptional<z.ZodString>;
752
+ limit: z.ZodOptional<z.ZodNumber>;
753
+ }, z.core.$strip>;
754
+ type ListSessionsRequest = z.infer<typeof ListSessionsRequestSchema>;
755
+ declare const ListSessionsResponseSchema: z.ZodObject<{
756
+ data: z.ZodArray<z.ZodObject<{
757
+ session_id: z.ZodString;
758
+ status: z.ZodOptional<z.ZodString>;
759
+ title: z.ZodOptional<z.ZodString>;
760
+ agent: z.ZodOptional<z.ZodObject<{
761
+ agent_id: z.ZodOptional<z.ZodString>;
762
+ name: z.ZodOptional<z.ZodString>;
763
+ version: z.ZodOptional<z.ZodNumber>;
764
+ }, z.core.$loose>>;
765
+ environment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
766
+ created_at: z.ZodOptional<z.ZodString>;
767
+ updated_at: z.ZodOptional<z.ZodString>;
768
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
769
+ }, z.core.$strip>>;
770
+ next_page_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
+ }, z.core.$strip>;
772
+ type ListSessionsResponse = z.infer<typeof ListSessionsResponseSchema>;
773
+ declare const CreateSessionRequestSchema: z.ZodObject<{
774
+ agent_id: z.ZodString;
775
+ title: z.ZodOptional<z.ZodString>;
776
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
777
+ }, z.core.$strip>;
778
+ type CreateSessionRequest = z.infer<typeof CreateSessionRequestSchema>;
779
+ declare const CreateSessionResponseSchema: z.ZodObject<{
780
+ session_id: z.ZodString;
781
+ created_at: z.ZodOptional<z.ZodString>;
782
+ }, z.core.$strip>;
783
+ type CreateSessionResponse = z.infer<typeof CreateSessionResponseSchema>;
784
+ declare const GetSessionRequestSchema: z.ZodObject<{
785
+ session_id: z.ZodString;
786
+ }, z.core.$strip>;
787
+ type GetSessionRequest = z.infer<typeof GetSessionRequestSchema>;
788
+ declare const SendEventRequestSchema: z.ZodObject<{
789
+ session_id: z.ZodString;
790
+ events: z.ZodArray<z.ZodObject<{
791
+ event_id: z.ZodOptional<z.ZodString>;
792
+ type: z.ZodString;
793
+ role: z.ZodOptional<z.ZodString>;
794
+ created_at: z.ZodOptional<z.ZodString>;
795
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
796
+ type: z.ZodString;
797
+ text: z.ZodOptional<z.ZodString>;
798
+ data: z.ZodOptional<z.ZodUnknown>;
799
+ }, z.core.$loose>>>;
800
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
801
+ is_error: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
802
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
803
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
+ }, z.core.$strip>>;
805
+ }, z.core.$strip>;
806
+ type SendEventRequest = z.infer<typeof SendEventRequestSchema>;
807
+ declare const SendEventResponseSchema: z.ZodObject<{
808
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
809
+ event_id: z.ZodOptional<z.ZodString>;
810
+ type: z.ZodString;
811
+ role: z.ZodOptional<z.ZodString>;
812
+ created_at: z.ZodOptional<z.ZodString>;
813
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
814
+ type: z.ZodString;
815
+ text: z.ZodOptional<z.ZodString>;
816
+ data: z.ZodOptional<z.ZodUnknown>;
817
+ }, z.core.$loose>>>;
818
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
819
+ is_error: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
820
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
821
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ }, z.core.$strip>>>;
823
+ }, z.core.$strip>;
824
+ type SendEventResponse = z.infer<typeof SendEventResponseSchema>;
825
+ declare const ListSessionEventsRequestSchema: z.ZodObject<{
826
+ session_id: z.ZodString;
827
+ limit: z.ZodOptional<z.ZodNumber>;
828
+ order: z.ZodOptional<z.ZodEnum<{
829
+ asc: "asc";
830
+ desc: "desc";
831
+ }>>;
832
+ page_token: z.ZodOptional<z.ZodString>;
833
+ after_id: z.ZodOptional<z.ZodString>;
834
+ }, z.core.$strip>;
835
+ type ListSessionEventsRequest = z.infer<typeof ListSessionEventsRequestSchema>;
836
+ declare const ListSessionEventsResponseSchema: z.ZodObject<{
837
+ data: z.ZodArray<z.ZodObject<{
838
+ event_id: z.ZodOptional<z.ZodString>;
839
+ type: z.ZodString;
840
+ role: z.ZodOptional<z.ZodString>;
841
+ created_at: z.ZodOptional<z.ZodString>;
842
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
843
+ type: z.ZodString;
844
+ text: z.ZodOptional<z.ZodString>;
845
+ data: z.ZodOptional<z.ZodUnknown>;
846
+ }, z.core.$loose>>>;
847
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
848
+ is_error: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
849
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
850
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
851
+ }, z.core.$strip>>;
852
+ next_page_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
853
+ }, z.core.$strip>;
854
+ type ListSessionEventsResponse = z.infer<typeof ListSessionEventsResponseSchema>;
855
+
856
+ interface ProviderSessionEvent {
857
+ type: SessionEventType;
858
+ raw_type: string;
859
+ /** Stable per-event id when the provider supplies one; used to de-dupe history replay vs. live stream. */
860
+ id?: string;
861
+ role?: string;
862
+ content?: string;
863
+ tool_name?: string;
864
+ tool_input?: string;
865
+ status?: string;
866
+ stop_reason?: string;
867
+ /**
868
+ * A file the agent delivered to the provider's Files API (qoder DeliverArtifacts /
869
+ * bailian download_file). Structured so the webui can show a download card without
870
+ * scraping tool-result free text. Populated by the provider mapper; surfaced onto the
871
+ * contract event as `metadata.artifact` by the shared sanitizer.
872
+ */
873
+ artifact?: {
874
+ file_id: string;
875
+ filename?: string;
876
+ content_type?: string;
877
+ size?: number;
878
+ };
879
+ raw: Record<string, unknown>;
880
+ }
881
+ interface EventListOptions {
882
+ limit?: number;
883
+ after_id?: string;
884
+ order?: string;
885
+ page_token?: string;
886
+ /** Legacy alias for page_token used by some provider adapters. */
887
+ page?: string;
888
+ }
889
+ interface EventStreamOptions {
890
+ after_id?: string;
891
+ }
892
+ interface ProviderSessionEventList {
893
+ events: ProviderSessionEvent[];
894
+ has_more: boolean;
895
+ next_page?: string;
896
+ }
897
+
898
+ export { type ListCloudEnvironmentsResponse as $, type AgentDefinition as A, type AgentSyncStatus as B, type CloudAgent as C, type Diagnostic as D, type EventStreamOptions as E, AgentSyncStatusSchema as F, AgentWithReadinessSchema as G, CloudAgentSchema as H, CloudEnvironmentSchema as I, CloudVaultSchema as J, type CreateSessionRequest as K, CreateSessionRequestSchema as L, type CreateSessionResponse as M, CreateSessionResponseSchema as N, DiagnosticSchema as O, type ProviderSessionEvent as P, type DiagnosticSeverity as Q, type ResourceAddress as R, DiagnosticSeveritySchema as S, type DriftKind as T, DriftKindSchema as U, type GetSessionRequest as V, GetSessionRequestSchema as W, KNOWN_SESSION_EVENT_TYPES as X, type KnownSessionEventType as Y, type ListCloudAgentsResponse as Z, ListCloudAgentsResponseSchema as _, type ResourceType as a, ListCloudEnvironmentsResponseSchema as a0, type ListSessionEventsRequest as a1, ListSessionEventsRequestSchema as a2, type ListSessionEventsResponse as a3, ListSessionEventsResponseSchema as a4, type ListSessionsRequest as a5, ListSessionsRequestSchema as a6, type ListSessionsResponse as a7, ListSessionsResponseSchema as a8, PlannedActionSchema as a9, ResourceAddressSchema as aa, ResourceTypeSchema as ab, type SendEventRequest as ac, SendEventRequestSchema as ad, type SendEventResponse as ae, SendEventResponseSchema as af, type Session as ag, type SessionAgent as ah, SessionAgentSchema as ai, type SessionContentBlock as aj, SessionContentBlockSchema as ak, type SessionEvent as al, SessionEventSchema as am, type SessionEventType as an, type SessionEventTypeName as ao, SessionEventTypeSchema as ap, SessionSchema as aq, type CloudEnvironment as b, type CloudVault as c, type EventListOptions as d, type ProviderSessionEventList as e, type PlannedAction as f, type AgentWithReadiness as g, type AgentSyncRun as h, type ActionType as i, ActionTypeSchema as j, AgentDefinitionSchema as k, type AgentDriftSeverity as l, AgentDriftSeveritySchema as m, type AgentModel as n, AgentModelSchema as o, type AgentReadiness as p, AgentReadinessSchema as q, type AgentReadinessStatus as r, AgentReadinessStatusSchema as s, type AgentRecoveryAction as t, AgentRecoveryActionSchema as u, type AgentSkillRef as v, AgentSkillRefSchema as w, type AgentSyncResult as x, AgentSyncResultSchema as y, AgentSyncRunSchema as z };