@agentsky/sky 0.2.1 → 2.3.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,585 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const agentAddonsSchema: z.ZodObject<{
4
+ vault_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
+ environment_id: z.ZodOptional<z.ZodString>;
6
+ resources: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ type: z.ZodLiteral<"file">;
8
+ file_id: z.ZodString;
9
+ mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ type: z.ZodLiteral<"github_repository">;
12
+ url: z.ZodString;
13
+ authorization_token: z.ZodOptional<z.ZodString>;
14
+ checkout: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
15
+ type: z.ZodLiteral<"branch">;
16
+ name: z.ZodString;
17
+ }, z.core.$strip>, z.ZodObject<{
18
+ type: z.ZodLiteral<"commit">;
19
+ sha: z.ZodString;
20
+ }, z.core.$strip>], "type">>>;
21
+ mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>], "type">>>;
23
+ instructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ name: z.ZodString;
25
+ content: z.ZodDefault<z.ZodString>;
26
+ }, z.core.$strip>>>;
27
+ skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
28
+ type: z.ZodLiteral<"skill">;
29
+ skillId: z.ZodString;
30
+ version: z.ZodDefault<z.ZodString>;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<"github">;
33
+ url: z.ZodString;
34
+ ref: z.ZodOptional<z.ZodString>;
35
+ tokenSecretRef: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>], "type">>>;
37
+ mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
39
+ name: z.ZodString;
40
+ url: z.ZodString;
41
+ tools: z.ZodOptional<z.ZodObject<{
42
+ include: z.ZodDefault<z.ZodArray<z.ZodString>>;
43
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>>>;
46
+ capabilities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodPreprocess<z.ZodEnum<{
47
+ "embedding.openai": "embedding.openai";
48
+ "embedding.voyage": "embedding.voyage";
49
+ "rerank.voyage": "rerank.voyage";
50
+ "ocr.mistral": "ocr.mistral";
51
+ "exa.search": "exa.search";
52
+ "exa.contents": "exa.contents";
53
+ "tinyfish.fetch": "tinyfish.fetch";
54
+ "tinyfish.browser": "tinyfish.browser";
55
+ "dataforseo.serp": "dataforseo.serp";
56
+ "dataforseo.ai-keywords": "dataforseo.ai-keywords";
57
+ "dataforseo.llm-responses": "dataforseo.llm-responses";
58
+ "dataforseo.app-info": "dataforseo.app-info";
59
+ "dataforseo.app-search": "dataforseo.app-search";
60
+ "dataforseo.backlinks": "dataforseo.backlinks";
61
+ "dataforseo.business-reviews": "dataforseo.business-reviews";
62
+ "dataforseo.business-pinterest": "dataforseo.business-pinterest";
63
+ "dataforseo.content-analysis": "dataforseo.content-analysis";
64
+ "dataforseo.technologies": "dataforseo.technologies";
65
+ "dataforseo.keyword-data": "dataforseo.keyword-data";
66
+ "dataforseo.labs": "dataforseo.labs";
67
+ "dataforseo.amazon": "dataforseo.amazon";
68
+ "dataforseo.onpage": "dataforseo.onpage";
69
+ "gptimage.generate": "gptimage.generate";
70
+ "rembg.remove-background": "rembg.remove-background";
71
+ "seedance.generate": "seedance.generate";
72
+ "mm.i2v": "mm.i2v";
73
+ "wan.t2v": "wan.t2v";
74
+ "wan.i2v": "wan.i2v";
75
+ "happyhorse.t2v": "happyhorse.t2v";
76
+ "minimax.h3": "minimax.h3";
77
+ "fish-audio.transcribe": "fish-audio.transcribe";
78
+ "exa.answer": "exa.answer";
79
+ "googlemap.geocode": "googlemap.geocode";
80
+ "googlemap.places": "googlemap.places";
81
+ "agentmail.list-inboxes": "agentmail.list-inboxes";
82
+ "social-boost.catalog": "social-boost.catalog";
83
+ "tinyfish.search": "tinyfish.search";
84
+ "tinyfish.profile-list": "tinyfish.profile-list";
85
+ "meta.transcribe": "meta.transcribe";
86
+ "minimax.tts": "minimax.tts";
87
+ "elevenlabs.sound": "elevenlabs.sound";
88
+ "zai.transcribe": "zai.transcribe";
89
+ "openai.transcribe": "openai.transcribe";
90
+ "fish-audio.tts": "fish-audio.tts";
91
+ "google.image": "google.image";
92
+ "openai.image-2.5": "openai.image-2.5";
93
+ "wan.image": "wan.image";
94
+ }>, unknown>>>>;
95
+ model: z.ZodOptional<z.ZodString>;
96
+ reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
97
+ none: "none";
98
+ off: "off";
99
+ minimal: "minimal";
100
+ low: "low";
101
+ medium: "medium";
102
+ high: "high";
103
+ xhigh: "xhigh";
104
+ max: "max";
105
+ ultra: "ultra";
106
+ }>>>;
107
+ vcpus: z.ZodOptional<z.ZodNumber>;
108
+ memory_mb: z.ZodOptional<z.ZodNumber>;
109
+ model_billing: z.ZodOptional<z.ZodEnum<{
110
+ platform: "platform";
111
+ account: "account";
112
+ }>>;
113
+ session_budget: z.ZodOptional<z.ZodObject<{
114
+ type: z.ZodLiteral<"limit">;
115
+ max_list_cost: z.ZodObject<{
116
+ amount: z.ZodString;
117
+ currency: z.ZodLiteral<"USD">;
118
+ }, z.core.$strip>;
119
+ }, z.core.$strip>>;
120
+ }, z.core.$strict>;
121
+ declare const createProductAgentSchema: z.ZodObject<{
122
+ product: z.ZodString;
123
+ name: z.ZodOptional<z.ZodString>;
124
+ instructions: z.ZodOptional<z.ZodString>;
125
+ addons: z.ZodOptional<z.ZodObject<{
126
+ vault_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
+ environment_id: z.ZodOptional<z.ZodString>;
128
+ resources: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
129
+ type: z.ZodLiteral<"file">;
130
+ file_id: z.ZodString;
131
+ mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ }, z.core.$strip>, z.ZodObject<{
133
+ type: z.ZodLiteral<"github_repository">;
134
+ url: z.ZodString;
135
+ authorization_token: z.ZodOptional<z.ZodString>;
136
+ checkout: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
137
+ type: z.ZodLiteral<"branch">;
138
+ name: z.ZodString;
139
+ }, z.core.$strip>, z.ZodObject<{
140
+ type: z.ZodLiteral<"commit">;
141
+ sha: z.ZodString;
142
+ }, z.core.$strip>], "type">>>;
143
+ mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ }, z.core.$strip>], "type">>>;
145
+ instructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
146
+ name: z.ZodString;
147
+ content: z.ZodDefault<z.ZodString>;
148
+ }, z.core.$strip>>>;
149
+ skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
150
+ type: z.ZodLiteral<"skill">;
151
+ skillId: z.ZodString;
152
+ version: z.ZodDefault<z.ZodString>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"github">;
155
+ url: z.ZodString;
156
+ ref: z.ZodOptional<z.ZodString>;
157
+ tokenSecretRef: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strip>], "type">>>;
159
+ mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
161
+ name: z.ZodString;
162
+ url: z.ZodString;
163
+ tools: z.ZodOptional<z.ZodObject<{
164
+ include: z.ZodDefault<z.ZodArray<z.ZodString>>;
165
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
166
+ }, z.core.$strip>>;
167
+ }, z.core.$strip>>>;
168
+ capabilities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodPreprocess<z.ZodEnum<{
169
+ "embedding.openai": "embedding.openai";
170
+ "embedding.voyage": "embedding.voyage";
171
+ "rerank.voyage": "rerank.voyage";
172
+ "ocr.mistral": "ocr.mistral";
173
+ "exa.search": "exa.search";
174
+ "exa.contents": "exa.contents";
175
+ "tinyfish.fetch": "tinyfish.fetch";
176
+ "tinyfish.browser": "tinyfish.browser";
177
+ "dataforseo.serp": "dataforseo.serp";
178
+ "dataforseo.ai-keywords": "dataforseo.ai-keywords";
179
+ "dataforseo.llm-responses": "dataforseo.llm-responses";
180
+ "dataforseo.app-info": "dataforseo.app-info";
181
+ "dataforseo.app-search": "dataforseo.app-search";
182
+ "dataforseo.backlinks": "dataforseo.backlinks";
183
+ "dataforseo.business-reviews": "dataforseo.business-reviews";
184
+ "dataforseo.business-pinterest": "dataforseo.business-pinterest";
185
+ "dataforseo.content-analysis": "dataforseo.content-analysis";
186
+ "dataforseo.technologies": "dataforseo.technologies";
187
+ "dataforseo.keyword-data": "dataforseo.keyword-data";
188
+ "dataforseo.labs": "dataforseo.labs";
189
+ "dataforseo.amazon": "dataforseo.amazon";
190
+ "dataforseo.onpage": "dataforseo.onpage";
191
+ "gptimage.generate": "gptimage.generate";
192
+ "rembg.remove-background": "rembg.remove-background";
193
+ "seedance.generate": "seedance.generate";
194
+ "mm.i2v": "mm.i2v";
195
+ "wan.t2v": "wan.t2v";
196
+ "wan.i2v": "wan.i2v";
197
+ "happyhorse.t2v": "happyhorse.t2v";
198
+ "minimax.h3": "minimax.h3";
199
+ "fish-audio.transcribe": "fish-audio.transcribe";
200
+ "exa.answer": "exa.answer";
201
+ "googlemap.geocode": "googlemap.geocode";
202
+ "googlemap.places": "googlemap.places";
203
+ "agentmail.list-inboxes": "agentmail.list-inboxes";
204
+ "social-boost.catalog": "social-boost.catalog";
205
+ "tinyfish.search": "tinyfish.search";
206
+ "tinyfish.profile-list": "tinyfish.profile-list";
207
+ "meta.transcribe": "meta.transcribe";
208
+ "minimax.tts": "minimax.tts";
209
+ "elevenlabs.sound": "elevenlabs.sound";
210
+ "zai.transcribe": "zai.transcribe";
211
+ "openai.transcribe": "openai.transcribe";
212
+ "fish-audio.tts": "fish-audio.tts";
213
+ "google.image": "google.image";
214
+ "openai.image-2.5": "openai.image-2.5";
215
+ "wan.image": "wan.image";
216
+ }>, unknown>>>>;
217
+ model: z.ZodOptional<z.ZodString>;
218
+ reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
219
+ none: "none";
220
+ off: "off";
221
+ minimal: "minimal";
222
+ low: "low";
223
+ medium: "medium";
224
+ high: "high";
225
+ xhigh: "xhigh";
226
+ max: "max";
227
+ ultra: "ultra";
228
+ }>>>;
229
+ vcpus: z.ZodOptional<z.ZodNumber>;
230
+ memory_mb: z.ZodOptional<z.ZodNumber>;
231
+ model_billing: z.ZodOptional<z.ZodEnum<{
232
+ platform: "platform";
233
+ account: "account";
234
+ }>>;
235
+ session_budget: z.ZodOptional<z.ZodObject<{
236
+ type: z.ZodLiteral<"limit">;
237
+ max_list_cost: z.ZodObject<{
238
+ amount: z.ZodString;
239
+ currency: z.ZodLiteral<"USD">;
240
+ }, z.core.$strip>;
241
+ }, z.core.$strip>>;
242
+ }, z.core.$strict>>;
243
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
244
+ }, z.core.$strict>;
245
+ declare const prepareProductSessionSchema: z.ZodObject<{
246
+ product: z.ZodString;
247
+ addons: z.ZodOptional<z.ZodObject<{
248
+ vault_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
+ environment_id: z.ZodOptional<z.ZodString>;
250
+ resources: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
251
+ type: z.ZodLiteral<"file">;
252
+ file_id: z.ZodString;
253
+ mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ type: z.ZodLiteral<"github_repository">;
256
+ url: z.ZodString;
257
+ authorization_token: z.ZodOptional<z.ZodString>;
258
+ checkout: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ type: z.ZodLiteral<"branch">;
260
+ name: z.ZodString;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ type: z.ZodLiteral<"commit">;
263
+ sha: z.ZodString;
264
+ }, z.core.$strip>], "type">>>;
265
+ mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ }, z.core.$strip>], "type">>>;
267
+ instructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
+ name: z.ZodString;
269
+ content: z.ZodDefault<z.ZodString>;
270
+ }, z.core.$strip>>>;
271
+ skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
272
+ type: z.ZodLiteral<"skill">;
273
+ skillId: z.ZodString;
274
+ version: z.ZodDefault<z.ZodString>;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ type: z.ZodLiteral<"github">;
277
+ url: z.ZodString;
278
+ ref: z.ZodOptional<z.ZodString>;
279
+ tokenSecretRef: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strip>], "type">>>;
281
+ mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ type: z.ZodDefault<z.ZodLiteral<"url">>;
283
+ name: z.ZodString;
284
+ url: z.ZodString;
285
+ tools: z.ZodOptional<z.ZodObject<{
286
+ include: z.ZodDefault<z.ZodArray<z.ZodString>>;
287
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
288
+ }, z.core.$strip>>;
289
+ }, z.core.$strip>>>;
290
+ capabilities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodPreprocess<z.ZodEnum<{
291
+ "embedding.openai": "embedding.openai";
292
+ "embedding.voyage": "embedding.voyage";
293
+ "rerank.voyage": "rerank.voyage";
294
+ "ocr.mistral": "ocr.mistral";
295
+ "exa.search": "exa.search";
296
+ "exa.contents": "exa.contents";
297
+ "tinyfish.fetch": "tinyfish.fetch";
298
+ "tinyfish.browser": "tinyfish.browser";
299
+ "dataforseo.serp": "dataforseo.serp";
300
+ "dataforseo.ai-keywords": "dataforseo.ai-keywords";
301
+ "dataforseo.llm-responses": "dataforseo.llm-responses";
302
+ "dataforseo.app-info": "dataforseo.app-info";
303
+ "dataforseo.app-search": "dataforseo.app-search";
304
+ "dataforseo.backlinks": "dataforseo.backlinks";
305
+ "dataforseo.business-reviews": "dataforseo.business-reviews";
306
+ "dataforseo.business-pinterest": "dataforseo.business-pinterest";
307
+ "dataforseo.content-analysis": "dataforseo.content-analysis";
308
+ "dataforseo.technologies": "dataforseo.technologies";
309
+ "dataforseo.keyword-data": "dataforseo.keyword-data";
310
+ "dataforseo.labs": "dataforseo.labs";
311
+ "dataforseo.amazon": "dataforseo.amazon";
312
+ "dataforseo.onpage": "dataforseo.onpage";
313
+ "gptimage.generate": "gptimage.generate";
314
+ "rembg.remove-background": "rembg.remove-background";
315
+ "seedance.generate": "seedance.generate";
316
+ "mm.i2v": "mm.i2v";
317
+ "wan.t2v": "wan.t2v";
318
+ "wan.i2v": "wan.i2v";
319
+ "happyhorse.t2v": "happyhorse.t2v";
320
+ "minimax.h3": "minimax.h3";
321
+ "fish-audio.transcribe": "fish-audio.transcribe";
322
+ "exa.answer": "exa.answer";
323
+ "googlemap.geocode": "googlemap.geocode";
324
+ "googlemap.places": "googlemap.places";
325
+ "agentmail.list-inboxes": "agentmail.list-inboxes";
326
+ "social-boost.catalog": "social-boost.catalog";
327
+ "tinyfish.search": "tinyfish.search";
328
+ "tinyfish.profile-list": "tinyfish.profile-list";
329
+ "meta.transcribe": "meta.transcribe";
330
+ "minimax.tts": "minimax.tts";
331
+ "elevenlabs.sound": "elevenlabs.sound";
332
+ "zai.transcribe": "zai.transcribe";
333
+ "openai.transcribe": "openai.transcribe";
334
+ "fish-audio.tts": "fish-audio.tts";
335
+ "google.image": "google.image";
336
+ "openai.image-2.5": "openai.image-2.5";
337
+ "wan.image": "wan.image";
338
+ }>, unknown>>>>;
339
+ model: z.ZodOptional<z.ZodString>;
340
+ reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
341
+ none: "none";
342
+ off: "off";
343
+ minimal: "minimal";
344
+ low: "low";
345
+ medium: "medium";
346
+ high: "high";
347
+ xhigh: "xhigh";
348
+ max: "max";
349
+ ultra: "ultra";
350
+ }>>>;
351
+ vcpus: z.ZodOptional<z.ZodNumber>;
352
+ memory_mb: z.ZodOptional<z.ZodNumber>;
353
+ model_billing: z.ZodOptional<z.ZodEnum<{
354
+ platform: "platform";
355
+ account: "account";
356
+ }>>;
357
+ session_budget: z.ZodOptional<z.ZodObject<{
358
+ type: z.ZodLiteral<"limit">;
359
+ max_list_cost: z.ZodObject<{
360
+ amount: z.ZodString;
361
+ currency: z.ZodLiteral<"USD">;
362
+ }, z.core.$strip>;
363
+ }, z.core.$strip>>;
364
+ }, z.core.$strict>>;
365
+ title: z.ZodOptional<z.ZodString>;
366
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
367
+ }, z.core.$strict>;
368
+ declare const createRunSchema: z.ZodObject<{
369
+ product: z.ZodString;
370
+ input: z.ZodUnknown & z.ZodType<{}, unknown, z.core.$ZodTypeInternals<{}, unknown>>;
371
+ addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
372
+ session_id: z.ZodOptional<z.ZodString>;
373
+ stream: z.ZodOptional<z.ZodBoolean>;
374
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
375
+ }, z.core.$strict>;
376
+ declare const runEventsSchema: z.ZodObject<{
377
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
378
+ type: z.ZodLiteral<"user.message">;
379
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
380
+ type: z.ZodLiteral<"text">;
381
+ text: z.ZodString;
382
+ }, z.core.$strict>, z.ZodObject<{
383
+ type: z.ZodLiteral<"image">;
384
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
385
+ type: z.ZodLiteral<"base64">;
386
+ media_type: z.ZodString;
387
+ data: z.ZodString;
388
+ }, z.core.$strict>, z.ZodObject<{
389
+ type: z.ZodLiteral<"url">;
390
+ url: z.ZodString;
391
+ }, z.core.$strict>, z.ZodObject<{
392
+ type: z.ZodLiteral<"file">;
393
+ file_id: z.ZodString;
394
+ }, z.core.$strict>], "type">;
395
+ }, z.core.$strict>, z.ZodObject<{
396
+ type: z.ZodLiteral<"document">;
397
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
398
+ type: z.ZodLiteral<"base64">;
399
+ media_type: z.ZodString;
400
+ data: z.ZodString;
401
+ }, z.core.$strict>, z.ZodObject<{
402
+ type: z.ZodLiteral<"text">;
403
+ media_type: z.ZodDefault<z.ZodLiteral<"text/plain">>;
404
+ data: z.ZodString;
405
+ }, z.core.$strict>, z.ZodObject<{
406
+ type: z.ZodLiteral<"url">;
407
+ url: z.ZodString;
408
+ }, z.core.$strict>, z.ZodObject<{
409
+ type: z.ZodLiteral<"file">;
410
+ file_id: z.ZodString;
411
+ }, z.core.$strict>], "type">;
412
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ }, z.core.$strict>], "type">>;
415
+ }, z.core.$strict>, z.ZodObject<{
416
+ type: z.ZodLiteral<"system.message">;
417
+ content: z.ZodArray<z.ZodObject<{
418
+ type: z.ZodLiteral<"text">;
419
+ text: z.ZodString;
420
+ }, z.core.$strict>>;
421
+ }, z.core.$strict>, z.ZodObject<{
422
+ type: z.ZodLiteral<"user.interrupt">;
423
+ }, z.core.$strict>]>>;
424
+ }, z.core.$strict>;
425
+ declare const publishProductSchema: z.ZodObject<{
426
+ slug: z.ZodOptional<z.ZodString>;
427
+ description: z.ZodOptional<z.ZodString>;
428
+ }, z.core.$strict>;
429
+ type AgentAddons = z.infer<typeof agentAddonsSchema>;
430
+ type CreateProductAgentInput = z.infer<typeof createProductAgentSchema>;
431
+ type PrepareProductSessionInput = z.infer<typeof prepareProductSessionSchema>;
432
+ type CreateRunInput = z.infer<typeof createRunSchema>;
433
+ declare const publicRunSchema: z.ZodObject<{
434
+ id: z.ZodString;
435
+ product: z.ZodNullable<z.ZodString>;
436
+ session_id: z.ZodNullable<z.ZodString>;
437
+ status: z.ZodEnum<{
438
+ queued: "queued";
439
+ running: "running";
440
+ waiting_input: "waiting_input";
441
+ stopping: "stopping";
442
+ completed: "completed";
443
+ interrupted: "interrupted";
444
+ failed: "failed";
445
+ blocked: "blocked";
446
+ reconciling: "reconciling";
447
+ }>;
448
+ output: z.ZodUnknown;
449
+ output_available: z.ZodOptional<z.ZodBoolean>;
450
+ usage: z.ZodUnknown;
451
+ billing: z.ZodUnknown;
452
+ error: z.ZodUnknown;
453
+ artifact: z.ZodOptional<z.ZodObject<{
454
+ id: z.ZodString;
455
+ mediaType: z.ZodString;
456
+ url: z.ZodString;
457
+ }, z.core.$strip>>;
458
+ source: z.ZodOptional<z.ZodObject<{
459
+ goal_id: z.ZodOptional<z.ZodString>;
460
+ iteration: z.ZodOptional<z.ZodNumber>;
461
+ routine_run_id: z.ZodOptional<z.ZodString>;
462
+ routine_id: z.ZodOptional<z.ZodString>;
463
+ }, z.core.$strip>>;
464
+ created_at: z.ZodString;
465
+ completed_at: z.ZodNullable<z.ZodString>;
466
+ }, z.core.$strip>;
467
+ type PublicRun = z.infer<typeof publicRunSchema>;
468
+
469
+ declare const connectionSupportSchema: z.ZodObject<{
470
+ channels: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodPipe<z.ZodArray<z.ZodEnum<{
471
+ line: "line";
472
+ email: "email";
473
+ slack: "slack";
474
+ telegram: "telegram";
475
+ whatsapp: "whatsapp";
476
+ imessage: "imessage";
477
+ discord: "discord";
478
+ lark: "lark";
479
+ teams: "teams";
480
+ x: "x";
481
+ gchat: "gchat";
482
+ buzz: "buzz";
483
+ }>>, z.ZodTransform<("line" | "email" | "slack" | "telegram" | "whatsapp" | "imessage" | "discord" | "lark" | "teams" | "x" | "gchat" | "buzz")[], ("line" | "email" | "slack" | "telegram" | "whatsapp" | "imessage" | "discord" | "lark" | "teams" | "x" | "gchat" | "buzz")[]>>]>;
484
+ connectors: z.ZodEnum<{
485
+ none: "none";
486
+ all: "all";
487
+ }>;
488
+ }, z.core.$strict>;
489
+ type ConnectionSupport = z.infer<typeof connectionSupportSchema>;
490
+
491
+ type RunControlInput = z.infer<typeof runEventsSchema>;
492
+ type PublishProductInput = z.infer<typeof publishProductSchema>;
493
+ type ExecutionProjection = {
494
+ protocol: "legacy" | "runs";
495
+ generation: number;
496
+ product: string | null;
497
+ product_version: string | null;
498
+ active_run_id: string | null;
499
+ addons_revision: number;
500
+ };
501
+ type PreparedProductSession = {
502
+ id: string;
503
+ execution: ExecutionProjection;
504
+ } & Record<string, unknown>;
505
+ type ProductRequest = {
506
+ idempotencyKey: string;
507
+ signal?: AbortSignal;
508
+ };
509
+ type Product = {
510
+ id: string;
511
+ version: string | null;
512
+ kind: "agent" | "model" | "tool";
513
+ name: string;
514
+ agent_type?: string;
515
+ available: boolean;
516
+ customizable: boolean;
517
+ capabilities: {
518
+ session: boolean;
519
+ runs: boolean;
520
+ steering: boolean;
521
+ interrupt: boolean;
522
+ ordinary_session_preparation?: boolean;
523
+ runs_billing_modes?: string[];
524
+ };
525
+ pricing: unknown;
526
+ input_schema: object;
527
+ output_schema: object;
528
+ addons_schema: object;
529
+ native_operations?: object[];
530
+ connection_support?: ConnectionSupport;
531
+ };
532
+ type RunEvent = {
533
+ id: string;
534
+ run_id: string;
535
+ created_at: string;
536
+ type: string;
537
+ data: Record<string, unknown>;
538
+ };
539
+ type RunEventPage = {
540
+ events: RunEvent[];
541
+ cursor: string | null;
542
+ };
543
+ type RunObservation = {
544
+ cursor?: string;
545
+ signal?: AbortSignal;
546
+ };
547
+ type RunControlReceipt = {
548
+ run_id: string;
549
+ command_id: string;
550
+ status: string;
551
+ };
552
+ /** An API failure never implies that an admission or supplier execution was retried. */
553
+ declare class ProductApiError extends Error {
554
+ readonly status: number;
555
+ readonly code: string;
556
+ constructor(status: number, code: string, message: string);
557
+ }
558
+ /** Public product client. Persist the request and key before sending; replay them unchanged after an unknown result. */
559
+ declare function createProductClient(options: {
560
+ token: string | (() => string | Promise<string>);
561
+ universe: string;
562
+ baseUrl?: string;
563
+ fetch?: typeof fetch;
564
+ }): {
565
+ list(signal?: AbortSignal): Promise<Product[]>;
566
+ prepare(input: PrepareProductSessionInput, context: ProductRequest): Promise<PreparedProductSession>;
567
+ create(input: CreateProductAgentInput, context: ProductRequest): Promise<{
568
+ id: string;
569
+ } & Record<string, unknown>>;
570
+ publish(agentId: string, input: PublishProductInput, context: ProductRequest): Promise<{
571
+ product: string;
572
+ version: string;
573
+ }>;
574
+ delist(agentId: string, context: ProductRequest): Promise<{
575
+ product: string;
576
+ status: "delisted";
577
+ }>;
578
+ start(input: Omit<CreateRunInput, "stream">, context: ProductRequest): Promise<PublicRun>;
579
+ read(runId: string, signal?: AbortSignal): Promise<PublicRun>;
580
+ control(runId: string, input: RunControlInput, context: ProductRequest): Promise<RunControlReceipt>;
581
+ events(runId: string, context?: RunObservation): Promise<RunEventPage>;
582
+ observe(runId: string, context?: RunObservation): Promise<Response>;
583
+ };
584
+
585
+ export { type AgentAddons, type CreateProductAgentInput, type CreateRunInput, type ExecutionProjection, type PrepareProductSessionInput, type PreparedProductSession, type Product, ProductApiError, type ProductRequest, type PublicRun, type PublishProductInput, type RunControlInput, type RunControlReceipt, type RunEvent, type RunEventPage, type RunObservation, createProductClient };