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