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