@pixerate/schemas 1.1.7 → 1.1.9

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/dist/index.cjs CHANGED
@@ -20,6 +20,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ AgentConfigSchema: () => AgentConfigSchema,
24
+ AgentDocumentAttachmentSchema: () => AgentDocumentAttachmentSchema,
25
+ AgentEnvironmentSchema: () => AgentEnvironmentSchema,
26
+ AgentInteractionRequestSchema: () => AgentInteractionRequestSchema,
27
+ AgentInteractionResultSchema: () => AgentInteractionResultSchema,
28
+ AgentInteractionStatusSchema: () => AgentInteractionStatusSchema,
29
+ AgentNetworkAllowlistRuleSchema: () => AgentNetworkAllowlistRuleSchema,
30
+ AgentNetworkTransformRuleSchema: () => AgentNetworkTransformRuleSchema,
31
+ AgentToolSchema: () => AgentToolSchema,
32
+ AgentToolTypeSchema: () => AgentToolTypeSchema,
23
33
  AspectRatioSchema: () => AspectRatioSchema,
24
34
  CodeGenerationSchema: () => CodeGenerationSchema,
25
35
  FidelitySchema: () => FidelitySchema,
@@ -85,10 +95,69 @@ var JsonGenerationSchema = import_zod.z.object({
85
95
  prompt: import_zod.z.string(),
86
96
  schema: import_zod.z.record(import_zod.z.any()).optional()
87
97
  });
88
- var ServiceClientSchema = import_zod.z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]);
98
+ var ServiceClientSchema = import_zod.z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]);
99
+ var AgentToolTypeSchema = import_zod.z.enum(["code_execution", "google_search", "url_context", "file_search", "custom"]);
100
+ var AgentDocumentAttachmentSchema = import_zod.z.object({
101
+ data: import_zod.z.string().optional(),
102
+ uri: import_zod.z.string().optional(),
103
+ mimeType: import_zod.z.string(),
104
+ fileName: import_zod.z.string().optional()
105
+ });
106
+ var AgentToolSchema = import_zod.z.object({
107
+ type: import_zod.z.string(),
108
+ config: import_zod.z.record(import_zod.z.any()).optional()
109
+ });
110
+ var AgentNetworkTransformRuleSchema = import_zod.z.object({
111
+ key: import_zod.z.string(),
112
+ value: import_zod.z.string()
113
+ });
114
+ var AgentNetworkAllowlistRuleSchema = import_zod.z.object({
115
+ domain: import_zod.z.string(),
116
+ transform: import_zod.z.array(AgentNetworkTransformRuleSchema).optional()
117
+ });
118
+ var AgentEnvironmentSchema = import_zod.z.object({
119
+ type: import_zod.z.enum(["remote", "local"]).optional(),
120
+ network: import_zod.z.object({
121
+ allowlist: import_zod.z.array(AgentNetworkAllowlistRuleSchema).optional()
122
+ }).optional()
123
+ });
124
+ var AgentConfigSchema = import_zod.z.object({
125
+ type: import_zod.z.string().optional(),
126
+ model: import_zod.z.string().optional(),
127
+ options: import_zod.z.record(import_zod.z.any()).optional()
128
+ });
129
+ var AgentInteractionStatusSchema = import_zod.z.enum([
130
+ "queued",
131
+ "in_progress",
132
+ "completed",
133
+ "failed",
134
+ "cancelled"
135
+ ]);
136
+ var AgentInteractionRequestSchema = import_zod.z.object({
137
+ agent: import_zod.z.string().default("antigravity-preview-05-2026"),
138
+ input: import_zod.z.string(),
139
+ systemInstruction: import_zod.z.string().optional(),
140
+ background: import_zod.z.boolean().default(true),
141
+ tools: import_zod.z.array(AgentToolSchema).optional(),
142
+ agentConfig: AgentConfigSchema.optional(),
143
+ environment: AgentEnvironmentSchema.optional(),
144
+ documents: import_zod.z.array(AgentDocumentAttachmentSchema).optional(),
145
+ coachingRules: import_zod.z.array(import_zod.z.string()).optional()
146
+ });
147
+ var AgentInteractionResultSchema = import_zod.z.object({
148
+ id: import_zod.z.string(),
149
+ agent: import_zod.z.string(),
150
+ status: AgentInteractionStatusSchema,
151
+ outputText: import_zod.z.string().optional(),
152
+ error: import_zod.z.string().optional(),
153
+ latencyMs: import_zod.z.number().optional(),
154
+ metadata: import_zod.z.record(import_zod.z.any()).optional(),
155
+ createdAt: import_zod.z.string().optional(),
156
+ updatedAt: import_zod.z.string().optional()
157
+ });
89
158
  var QueueJobSchema = import_zod.z.object({
90
159
  id: import_zod.z.string(),
91
- type: import_zod.z.enum(["text", "image", "video", "analysis", "audio"]),
160
+ type: import_zod.z.enum(["text", "image", "video", "analysis", "audio", "agent"]),
92
161
  status: import_zod.z.enum(["queued", "processing", "completed", "failed"]),
93
162
  client: ServiceClientSchema.optional(),
94
163
  payload: import_zod.z.record(import_zod.z.any()).optional(),
@@ -97,6 +166,16 @@ var QueueJobSchema = import_zod.z.object({
97
166
  });
98
167
  // Annotate the CommonJS export names for ESM import in node:
99
168
  0 && (module.exports = {
169
+ AgentConfigSchema,
170
+ AgentDocumentAttachmentSchema,
171
+ AgentEnvironmentSchema,
172
+ AgentInteractionRequestSchema,
173
+ AgentInteractionResultSchema,
174
+ AgentInteractionStatusSchema,
175
+ AgentNetworkAllowlistRuleSchema,
176
+ AgentNetworkTransformRuleSchema,
177
+ AgentToolSchema,
178
+ AgentToolTypeSchema,
100
179
  AspectRatioSchema,
101
180
  CodeGenerationSchema,
102
181
  FidelitySchema,
package/dist/index.d.cts CHANGED
@@ -81,33 +81,398 @@ declare const JsonGenerationSchema: z.ZodObject<{
81
81
  schema?: Record<string, any> | undefined;
82
82
  }>;
83
83
  type JsonGenerationPayload = z.infer<typeof JsonGenerationSchema>;
84
- declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>;
84
+ declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>;
85
85
  type ServiceClient = z.infer<typeof ServiceClientSchema>;
86
+ declare const AgentToolTypeSchema: z.ZodEnum<["code_execution", "google_search", "url_context", "file_search", "custom"]>;
87
+ type AgentToolType = z.infer<typeof AgentToolTypeSchema>;
88
+ declare const AgentDocumentAttachmentSchema: z.ZodObject<{
89
+ data: z.ZodOptional<z.ZodString>;
90
+ uri: z.ZodOptional<z.ZodString>;
91
+ mimeType: z.ZodString;
92
+ fileName: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ mimeType: string;
95
+ data?: string | undefined;
96
+ uri?: string | undefined;
97
+ fileName?: string | undefined;
98
+ }, {
99
+ mimeType: string;
100
+ data?: string | undefined;
101
+ uri?: string | undefined;
102
+ fileName?: string | undefined;
103
+ }>;
104
+ type AgentDocumentAttachment = z.infer<typeof AgentDocumentAttachmentSchema>;
105
+ declare const AgentToolSchema: z.ZodObject<{
106
+ type: z.ZodString;
107
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ type: string;
110
+ config?: Record<string, any> | undefined;
111
+ }, {
112
+ type: string;
113
+ config?: Record<string, any> | undefined;
114
+ }>;
115
+ type AgentTool = z.infer<typeof AgentToolSchema>;
116
+ declare const AgentNetworkTransformRuleSchema: z.ZodObject<{
117
+ key: z.ZodString;
118
+ value: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ value: string;
121
+ key: string;
122
+ }, {
123
+ value: string;
124
+ key: string;
125
+ }>;
126
+ type AgentNetworkTransformRule = z.infer<typeof AgentNetworkTransformRuleSchema>;
127
+ declare const AgentNetworkAllowlistRuleSchema: z.ZodObject<{
128
+ domain: z.ZodString;
129
+ transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ key: z.ZodString;
131
+ value: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ value: string;
134
+ key: string;
135
+ }, {
136
+ value: string;
137
+ key: string;
138
+ }>, "many">>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ domain: string;
141
+ transform?: {
142
+ value: string;
143
+ key: string;
144
+ }[] | undefined;
145
+ }, {
146
+ domain: string;
147
+ transform?: {
148
+ value: string;
149
+ key: string;
150
+ }[] | undefined;
151
+ }>;
152
+ type AgentNetworkAllowlistRule = z.infer<typeof AgentNetworkAllowlistRuleSchema>;
153
+ declare const AgentEnvironmentSchema: z.ZodObject<{
154
+ type: z.ZodOptional<z.ZodEnum<["remote", "local"]>>;
155
+ network: z.ZodOptional<z.ZodObject<{
156
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
+ domain: z.ZodString;
158
+ transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
159
+ key: z.ZodString;
160
+ value: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ value: string;
163
+ key: string;
164
+ }, {
165
+ value: string;
166
+ key: string;
167
+ }>, "many">>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ domain: string;
170
+ transform?: {
171
+ value: string;
172
+ key: string;
173
+ }[] | undefined;
174
+ }, {
175
+ domain: string;
176
+ transform?: {
177
+ value: string;
178
+ key: string;
179
+ }[] | undefined;
180
+ }>, "many">>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ allowlist?: {
183
+ domain: string;
184
+ transform?: {
185
+ value: string;
186
+ key: string;
187
+ }[] | undefined;
188
+ }[] | undefined;
189
+ }, {
190
+ allowlist?: {
191
+ domain: string;
192
+ transform?: {
193
+ value: string;
194
+ key: string;
195
+ }[] | undefined;
196
+ }[] | undefined;
197
+ }>>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ type?: "remote" | "local" | undefined;
200
+ network?: {
201
+ allowlist?: {
202
+ domain: string;
203
+ transform?: {
204
+ value: string;
205
+ key: string;
206
+ }[] | undefined;
207
+ }[] | undefined;
208
+ } | undefined;
209
+ }, {
210
+ type?: "remote" | "local" | undefined;
211
+ network?: {
212
+ allowlist?: {
213
+ domain: string;
214
+ transform?: {
215
+ value: string;
216
+ key: string;
217
+ }[] | undefined;
218
+ }[] | undefined;
219
+ } | undefined;
220
+ }>;
221
+ type AgentEnvironment = z.infer<typeof AgentEnvironmentSchema>;
222
+ declare const AgentConfigSchema: z.ZodObject<{
223
+ type: z.ZodOptional<z.ZodString>;
224
+ model: z.ZodOptional<z.ZodString>;
225
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ options?: Record<string, any> | undefined;
228
+ type?: string | undefined;
229
+ model?: string | undefined;
230
+ }, {
231
+ options?: Record<string, any> | undefined;
232
+ type?: string | undefined;
233
+ model?: string | undefined;
234
+ }>;
235
+ type AgentConfig = z.infer<typeof AgentConfigSchema>;
236
+ declare const AgentInteractionStatusSchema: z.ZodEnum<["queued", "in_progress", "completed", "failed", "cancelled"]>;
237
+ type AgentInteractionStatus = z.infer<typeof AgentInteractionStatusSchema>;
238
+ declare const AgentInteractionRequestSchema: z.ZodObject<{
239
+ agent: z.ZodDefault<z.ZodString>;
240
+ input: z.ZodString;
241
+ systemInstruction: z.ZodOptional<z.ZodString>;
242
+ background: z.ZodDefault<z.ZodBoolean>;
243
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
244
+ type: z.ZodString;
245
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: string;
248
+ config?: Record<string, any> | undefined;
249
+ }, {
250
+ type: string;
251
+ config?: Record<string, any> | undefined;
252
+ }>, "many">>;
253
+ agentConfig: z.ZodOptional<z.ZodObject<{
254
+ type: z.ZodOptional<z.ZodString>;
255
+ model: z.ZodOptional<z.ZodString>;
256
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ options?: Record<string, any> | undefined;
259
+ type?: string | undefined;
260
+ model?: string | undefined;
261
+ }, {
262
+ options?: Record<string, any> | undefined;
263
+ type?: string | undefined;
264
+ model?: string | undefined;
265
+ }>>;
266
+ environment: z.ZodOptional<z.ZodObject<{
267
+ type: z.ZodOptional<z.ZodEnum<["remote", "local"]>>;
268
+ network: z.ZodOptional<z.ZodObject<{
269
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ domain: z.ZodString;
271
+ transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
272
+ key: z.ZodString;
273
+ value: z.ZodString;
274
+ }, "strip", z.ZodTypeAny, {
275
+ value: string;
276
+ key: string;
277
+ }, {
278
+ value: string;
279
+ key: string;
280
+ }>, "many">>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ domain: string;
283
+ transform?: {
284
+ value: string;
285
+ key: string;
286
+ }[] | undefined;
287
+ }, {
288
+ domain: string;
289
+ transform?: {
290
+ value: string;
291
+ key: string;
292
+ }[] | undefined;
293
+ }>, "many">>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ allowlist?: {
296
+ domain: string;
297
+ transform?: {
298
+ value: string;
299
+ key: string;
300
+ }[] | undefined;
301
+ }[] | undefined;
302
+ }, {
303
+ allowlist?: {
304
+ domain: string;
305
+ transform?: {
306
+ value: string;
307
+ key: string;
308
+ }[] | undefined;
309
+ }[] | undefined;
310
+ }>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ type?: "remote" | "local" | undefined;
313
+ network?: {
314
+ allowlist?: {
315
+ domain: string;
316
+ transform?: {
317
+ value: string;
318
+ key: string;
319
+ }[] | undefined;
320
+ }[] | undefined;
321
+ } | undefined;
322
+ }, {
323
+ type?: "remote" | "local" | undefined;
324
+ network?: {
325
+ allowlist?: {
326
+ domain: string;
327
+ transform?: {
328
+ value: string;
329
+ key: string;
330
+ }[] | undefined;
331
+ }[] | undefined;
332
+ } | undefined;
333
+ }>>;
334
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ data: z.ZodOptional<z.ZodString>;
336
+ uri: z.ZodOptional<z.ZodString>;
337
+ mimeType: z.ZodString;
338
+ fileName: z.ZodOptional<z.ZodString>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ mimeType: string;
341
+ data?: string | undefined;
342
+ uri?: string | undefined;
343
+ fileName?: string | undefined;
344
+ }, {
345
+ mimeType: string;
346
+ data?: string | undefined;
347
+ uri?: string | undefined;
348
+ fileName?: string | undefined;
349
+ }>, "many">>;
350
+ coachingRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ agent: string;
353
+ input: string;
354
+ background: boolean;
355
+ systemInstruction?: string | undefined;
356
+ tools?: {
357
+ type: string;
358
+ config?: Record<string, any> | undefined;
359
+ }[] | undefined;
360
+ agentConfig?: {
361
+ options?: Record<string, any> | undefined;
362
+ type?: string | undefined;
363
+ model?: string | undefined;
364
+ } | undefined;
365
+ environment?: {
366
+ type?: "remote" | "local" | undefined;
367
+ network?: {
368
+ allowlist?: {
369
+ domain: string;
370
+ transform?: {
371
+ value: string;
372
+ key: string;
373
+ }[] | undefined;
374
+ }[] | undefined;
375
+ } | undefined;
376
+ } | undefined;
377
+ documents?: {
378
+ mimeType: string;
379
+ data?: string | undefined;
380
+ uri?: string | undefined;
381
+ fileName?: string | undefined;
382
+ }[] | undefined;
383
+ coachingRules?: string[] | undefined;
384
+ }, {
385
+ input: string;
386
+ agent?: string | undefined;
387
+ systemInstruction?: string | undefined;
388
+ background?: boolean | undefined;
389
+ tools?: {
390
+ type: string;
391
+ config?: Record<string, any> | undefined;
392
+ }[] | undefined;
393
+ agentConfig?: {
394
+ options?: Record<string, any> | undefined;
395
+ type?: string | undefined;
396
+ model?: string | undefined;
397
+ } | undefined;
398
+ environment?: {
399
+ type?: "remote" | "local" | undefined;
400
+ network?: {
401
+ allowlist?: {
402
+ domain: string;
403
+ transform?: {
404
+ value: string;
405
+ key: string;
406
+ }[] | undefined;
407
+ }[] | undefined;
408
+ } | undefined;
409
+ } | undefined;
410
+ documents?: {
411
+ mimeType: string;
412
+ data?: string | undefined;
413
+ uri?: string | undefined;
414
+ fileName?: string | undefined;
415
+ }[] | undefined;
416
+ coachingRules?: string[] | undefined;
417
+ }>;
418
+ type AgentInteractionRequest = z.infer<typeof AgentInteractionRequestSchema>;
419
+ declare const AgentInteractionResultSchema: z.ZodObject<{
420
+ id: z.ZodString;
421
+ agent: z.ZodString;
422
+ status: z.ZodEnum<["queued", "in_progress", "completed", "failed", "cancelled"]>;
423
+ outputText: z.ZodOptional<z.ZodString>;
424
+ error: z.ZodOptional<z.ZodString>;
425
+ latencyMs: z.ZodOptional<z.ZodNumber>;
426
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
427
+ createdAt: z.ZodOptional<z.ZodString>;
428
+ updatedAt: z.ZodOptional<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ status: "queued" | "in_progress" | "completed" | "failed" | "cancelled";
431
+ agent: string;
432
+ id: string;
433
+ outputText?: string | undefined;
434
+ error?: string | undefined;
435
+ latencyMs?: number | undefined;
436
+ metadata?: Record<string, any> | undefined;
437
+ createdAt?: string | undefined;
438
+ updatedAt?: string | undefined;
439
+ }, {
440
+ status: "queued" | "in_progress" | "completed" | "failed" | "cancelled";
441
+ agent: string;
442
+ id: string;
443
+ outputText?: string | undefined;
444
+ error?: string | undefined;
445
+ latencyMs?: number | undefined;
446
+ metadata?: Record<string, any> | undefined;
447
+ createdAt?: string | undefined;
448
+ updatedAt?: string | undefined;
449
+ }>;
450
+ type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
86
451
  declare const QueueJobSchema: z.ZodObject<{
87
452
  id: z.ZodString;
88
- type: z.ZodEnum<["text", "image", "video", "analysis", "audio"]>;
453
+ type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
89
454
  status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
90
- client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>>;
455
+ client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>>;
91
456
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
92
457
  createdAt: z.ZodOptional<z.ZodAny>;
93
458
  updatedAt: z.ZodOptional<z.ZodAny>;
94
459
  }, "strip", z.ZodTypeAny, {
95
- type: "text" | "image" | "video" | "analysis" | "audio";
96
- status: "queued" | "processing" | "completed" | "failed";
460
+ type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
461
+ status: "queued" | "completed" | "failed" | "processing";
97
462
  id: string;
98
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
99
- payload?: Record<string, any> | undefined;
100
463
  createdAt?: any;
101
464
  updatedAt?: any;
465
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
466
+ payload?: Record<string, any> | undefined;
102
467
  }, {
103
- type: "text" | "image" | "video" | "analysis" | "audio";
104
- status: "queued" | "processing" | "completed" | "failed";
468
+ type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
469
+ status: "queued" | "completed" | "failed" | "processing";
105
470
  id: string;
106
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
107
- payload?: Record<string, any> | undefined;
108
471
  createdAt?: any;
109
472
  updatedAt?: any;
473
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
474
+ payload?: Record<string, any> | undefined;
110
475
  }>;
111
476
  type QueueJob = z.infer<typeof QueueJobSchema>;
112
477
 
113
- export { type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
478
+ export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
package/dist/index.d.ts CHANGED
@@ -81,33 +81,398 @@ declare const JsonGenerationSchema: z.ZodObject<{
81
81
  schema?: Record<string, any> | undefined;
82
82
  }>;
83
83
  type JsonGenerationPayload = z.infer<typeof JsonGenerationSchema>;
84
- declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>;
84
+ declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>;
85
85
  type ServiceClient = z.infer<typeof ServiceClientSchema>;
86
+ declare const AgentToolTypeSchema: z.ZodEnum<["code_execution", "google_search", "url_context", "file_search", "custom"]>;
87
+ type AgentToolType = z.infer<typeof AgentToolTypeSchema>;
88
+ declare const AgentDocumentAttachmentSchema: z.ZodObject<{
89
+ data: z.ZodOptional<z.ZodString>;
90
+ uri: z.ZodOptional<z.ZodString>;
91
+ mimeType: z.ZodString;
92
+ fileName: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ mimeType: string;
95
+ data?: string | undefined;
96
+ uri?: string | undefined;
97
+ fileName?: string | undefined;
98
+ }, {
99
+ mimeType: string;
100
+ data?: string | undefined;
101
+ uri?: string | undefined;
102
+ fileName?: string | undefined;
103
+ }>;
104
+ type AgentDocumentAttachment = z.infer<typeof AgentDocumentAttachmentSchema>;
105
+ declare const AgentToolSchema: z.ZodObject<{
106
+ type: z.ZodString;
107
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ type: string;
110
+ config?: Record<string, any> | undefined;
111
+ }, {
112
+ type: string;
113
+ config?: Record<string, any> | undefined;
114
+ }>;
115
+ type AgentTool = z.infer<typeof AgentToolSchema>;
116
+ declare const AgentNetworkTransformRuleSchema: z.ZodObject<{
117
+ key: z.ZodString;
118
+ value: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ value: string;
121
+ key: string;
122
+ }, {
123
+ value: string;
124
+ key: string;
125
+ }>;
126
+ type AgentNetworkTransformRule = z.infer<typeof AgentNetworkTransformRuleSchema>;
127
+ declare const AgentNetworkAllowlistRuleSchema: z.ZodObject<{
128
+ domain: z.ZodString;
129
+ transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ key: z.ZodString;
131
+ value: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ value: string;
134
+ key: string;
135
+ }, {
136
+ value: string;
137
+ key: string;
138
+ }>, "many">>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ domain: string;
141
+ transform?: {
142
+ value: string;
143
+ key: string;
144
+ }[] | undefined;
145
+ }, {
146
+ domain: string;
147
+ transform?: {
148
+ value: string;
149
+ key: string;
150
+ }[] | undefined;
151
+ }>;
152
+ type AgentNetworkAllowlistRule = z.infer<typeof AgentNetworkAllowlistRuleSchema>;
153
+ declare const AgentEnvironmentSchema: z.ZodObject<{
154
+ type: z.ZodOptional<z.ZodEnum<["remote", "local"]>>;
155
+ network: z.ZodOptional<z.ZodObject<{
156
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
+ domain: z.ZodString;
158
+ transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
159
+ key: z.ZodString;
160
+ value: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ value: string;
163
+ key: string;
164
+ }, {
165
+ value: string;
166
+ key: string;
167
+ }>, "many">>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ domain: string;
170
+ transform?: {
171
+ value: string;
172
+ key: string;
173
+ }[] | undefined;
174
+ }, {
175
+ domain: string;
176
+ transform?: {
177
+ value: string;
178
+ key: string;
179
+ }[] | undefined;
180
+ }>, "many">>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ allowlist?: {
183
+ domain: string;
184
+ transform?: {
185
+ value: string;
186
+ key: string;
187
+ }[] | undefined;
188
+ }[] | undefined;
189
+ }, {
190
+ allowlist?: {
191
+ domain: string;
192
+ transform?: {
193
+ value: string;
194
+ key: string;
195
+ }[] | undefined;
196
+ }[] | undefined;
197
+ }>>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ type?: "remote" | "local" | undefined;
200
+ network?: {
201
+ allowlist?: {
202
+ domain: string;
203
+ transform?: {
204
+ value: string;
205
+ key: string;
206
+ }[] | undefined;
207
+ }[] | undefined;
208
+ } | undefined;
209
+ }, {
210
+ type?: "remote" | "local" | undefined;
211
+ network?: {
212
+ allowlist?: {
213
+ domain: string;
214
+ transform?: {
215
+ value: string;
216
+ key: string;
217
+ }[] | undefined;
218
+ }[] | undefined;
219
+ } | undefined;
220
+ }>;
221
+ type AgentEnvironment = z.infer<typeof AgentEnvironmentSchema>;
222
+ declare const AgentConfigSchema: z.ZodObject<{
223
+ type: z.ZodOptional<z.ZodString>;
224
+ model: z.ZodOptional<z.ZodString>;
225
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ options?: Record<string, any> | undefined;
228
+ type?: string | undefined;
229
+ model?: string | undefined;
230
+ }, {
231
+ options?: Record<string, any> | undefined;
232
+ type?: string | undefined;
233
+ model?: string | undefined;
234
+ }>;
235
+ type AgentConfig = z.infer<typeof AgentConfigSchema>;
236
+ declare const AgentInteractionStatusSchema: z.ZodEnum<["queued", "in_progress", "completed", "failed", "cancelled"]>;
237
+ type AgentInteractionStatus = z.infer<typeof AgentInteractionStatusSchema>;
238
+ declare const AgentInteractionRequestSchema: z.ZodObject<{
239
+ agent: z.ZodDefault<z.ZodString>;
240
+ input: z.ZodString;
241
+ systemInstruction: z.ZodOptional<z.ZodString>;
242
+ background: z.ZodDefault<z.ZodBoolean>;
243
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
244
+ type: z.ZodString;
245
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: string;
248
+ config?: Record<string, any> | undefined;
249
+ }, {
250
+ type: string;
251
+ config?: Record<string, any> | undefined;
252
+ }>, "many">>;
253
+ agentConfig: z.ZodOptional<z.ZodObject<{
254
+ type: z.ZodOptional<z.ZodString>;
255
+ model: z.ZodOptional<z.ZodString>;
256
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ options?: Record<string, any> | undefined;
259
+ type?: string | undefined;
260
+ model?: string | undefined;
261
+ }, {
262
+ options?: Record<string, any> | undefined;
263
+ type?: string | undefined;
264
+ model?: string | undefined;
265
+ }>>;
266
+ environment: z.ZodOptional<z.ZodObject<{
267
+ type: z.ZodOptional<z.ZodEnum<["remote", "local"]>>;
268
+ network: z.ZodOptional<z.ZodObject<{
269
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ domain: z.ZodString;
271
+ transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
272
+ key: z.ZodString;
273
+ value: z.ZodString;
274
+ }, "strip", z.ZodTypeAny, {
275
+ value: string;
276
+ key: string;
277
+ }, {
278
+ value: string;
279
+ key: string;
280
+ }>, "many">>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ domain: string;
283
+ transform?: {
284
+ value: string;
285
+ key: string;
286
+ }[] | undefined;
287
+ }, {
288
+ domain: string;
289
+ transform?: {
290
+ value: string;
291
+ key: string;
292
+ }[] | undefined;
293
+ }>, "many">>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ allowlist?: {
296
+ domain: string;
297
+ transform?: {
298
+ value: string;
299
+ key: string;
300
+ }[] | undefined;
301
+ }[] | undefined;
302
+ }, {
303
+ allowlist?: {
304
+ domain: string;
305
+ transform?: {
306
+ value: string;
307
+ key: string;
308
+ }[] | undefined;
309
+ }[] | undefined;
310
+ }>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ type?: "remote" | "local" | undefined;
313
+ network?: {
314
+ allowlist?: {
315
+ domain: string;
316
+ transform?: {
317
+ value: string;
318
+ key: string;
319
+ }[] | undefined;
320
+ }[] | undefined;
321
+ } | undefined;
322
+ }, {
323
+ type?: "remote" | "local" | undefined;
324
+ network?: {
325
+ allowlist?: {
326
+ domain: string;
327
+ transform?: {
328
+ value: string;
329
+ key: string;
330
+ }[] | undefined;
331
+ }[] | undefined;
332
+ } | undefined;
333
+ }>>;
334
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ data: z.ZodOptional<z.ZodString>;
336
+ uri: z.ZodOptional<z.ZodString>;
337
+ mimeType: z.ZodString;
338
+ fileName: z.ZodOptional<z.ZodString>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ mimeType: string;
341
+ data?: string | undefined;
342
+ uri?: string | undefined;
343
+ fileName?: string | undefined;
344
+ }, {
345
+ mimeType: string;
346
+ data?: string | undefined;
347
+ uri?: string | undefined;
348
+ fileName?: string | undefined;
349
+ }>, "many">>;
350
+ coachingRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ agent: string;
353
+ input: string;
354
+ background: boolean;
355
+ systemInstruction?: string | undefined;
356
+ tools?: {
357
+ type: string;
358
+ config?: Record<string, any> | undefined;
359
+ }[] | undefined;
360
+ agentConfig?: {
361
+ options?: Record<string, any> | undefined;
362
+ type?: string | undefined;
363
+ model?: string | undefined;
364
+ } | undefined;
365
+ environment?: {
366
+ type?: "remote" | "local" | undefined;
367
+ network?: {
368
+ allowlist?: {
369
+ domain: string;
370
+ transform?: {
371
+ value: string;
372
+ key: string;
373
+ }[] | undefined;
374
+ }[] | undefined;
375
+ } | undefined;
376
+ } | undefined;
377
+ documents?: {
378
+ mimeType: string;
379
+ data?: string | undefined;
380
+ uri?: string | undefined;
381
+ fileName?: string | undefined;
382
+ }[] | undefined;
383
+ coachingRules?: string[] | undefined;
384
+ }, {
385
+ input: string;
386
+ agent?: string | undefined;
387
+ systemInstruction?: string | undefined;
388
+ background?: boolean | undefined;
389
+ tools?: {
390
+ type: string;
391
+ config?: Record<string, any> | undefined;
392
+ }[] | undefined;
393
+ agentConfig?: {
394
+ options?: Record<string, any> | undefined;
395
+ type?: string | undefined;
396
+ model?: string | undefined;
397
+ } | undefined;
398
+ environment?: {
399
+ type?: "remote" | "local" | undefined;
400
+ network?: {
401
+ allowlist?: {
402
+ domain: string;
403
+ transform?: {
404
+ value: string;
405
+ key: string;
406
+ }[] | undefined;
407
+ }[] | undefined;
408
+ } | undefined;
409
+ } | undefined;
410
+ documents?: {
411
+ mimeType: string;
412
+ data?: string | undefined;
413
+ uri?: string | undefined;
414
+ fileName?: string | undefined;
415
+ }[] | undefined;
416
+ coachingRules?: string[] | undefined;
417
+ }>;
418
+ type AgentInteractionRequest = z.infer<typeof AgentInteractionRequestSchema>;
419
+ declare const AgentInteractionResultSchema: z.ZodObject<{
420
+ id: z.ZodString;
421
+ agent: z.ZodString;
422
+ status: z.ZodEnum<["queued", "in_progress", "completed", "failed", "cancelled"]>;
423
+ outputText: z.ZodOptional<z.ZodString>;
424
+ error: z.ZodOptional<z.ZodString>;
425
+ latencyMs: z.ZodOptional<z.ZodNumber>;
426
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
427
+ createdAt: z.ZodOptional<z.ZodString>;
428
+ updatedAt: z.ZodOptional<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ status: "queued" | "in_progress" | "completed" | "failed" | "cancelled";
431
+ agent: string;
432
+ id: string;
433
+ outputText?: string | undefined;
434
+ error?: string | undefined;
435
+ latencyMs?: number | undefined;
436
+ metadata?: Record<string, any> | undefined;
437
+ createdAt?: string | undefined;
438
+ updatedAt?: string | undefined;
439
+ }, {
440
+ status: "queued" | "in_progress" | "completed" | "failed" | "cancelled";
441
+ agent: string;
442
+ id: string;
443
+ outputText?: string | undefined;
444
+ error?: string | undefined;
445
+ latencyMs?: number | undefined;
446
+ metadata?: Record<string, any> | undefined;
447
+ createdAt?: string | undefined;
448
+ updatedAt?: string | undefined;
449
+ }>;
450
+ type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
86
451
  declare const QueueJobSchema: z.ZodObject<{
87
452
  id: z.ZodString;
88
- type: z.ZodEnum<["text", "image", "video", "analysis", "audio"]>;
453
+ type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
89
454
  status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
90
- client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>>;
455
+ client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>>;
91
456
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
92
457
  createdAt: z.ZodOptional<z.ZodAny>;
93
458
  updatedAt: z.ZodOptional<z.ZodAny>;
94
459
  }, "strip", z.ZodTypeAny, {
95
- type: "text" | "image" | "video" | "analysis" | "audio";
96
- status: "queued" | "processing" | "completed" | "failed";
460
+ type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
461
+ status: "queued" | "completed" | "failed" | "processing";
97
462
  id: string;
98
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
99
- payload?: Record<string, any> | undefined;
100
463
  createdAt?: any;
101
464
  updatedAt?: any;
465
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
466
+ payload?: Record<string, any> | undefined;
102
467
  }, {
103
- type: "text" | "image" | "video" | "analysis" | "audio";
104
- status: "queued" | "processing" | "completed" | "failed";
468
+ type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
469
+ status: "queued" | "completed" | "failed" | "processing";
105
470
  id: string;
106
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
107
- payload?: Record<string, any> | undefined;
108
471
  createdAt?: any;
109
472
  updatedAt?: any;
473
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
474
+ payload?: Record<string, any> | undefined;
110
475
  }>;
111
476
  type QueueJob = z.infer<typeof QueueJobSchema>;
112
477
 
113
- export { type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
478
+ export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
package/dist/index.js CHANGED
@@ -51,10 +51,69 @@ var JsonGenerationSchema = z.object({
51
51
  prompt: z.string(),
52
52
  schema: z.record(z.any()).optional()
53
53
  });
54
- var ServiceClientSchema = z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]);
54
+ var ServiceClientSchema = z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]);
55
+ var AgentToolTypeSchema = z.enum(["code_execution", "google_search", "url_context", "file_search", "custom"]);
56
+ var AgentDocumentAttachmentSchema = z.object({
57
+ data: z.string().optional(),
58
+ uri: z.string().optional(),
59
+ mimeType: z.string(),
60
+ fileName: z.string().optional()
61
+ });
62
+ var AgentToolSchema = z.object({
63
+ type: z.string(),
64
+ config: z.record(z.any()).optional()
65
+ });
66
+ var AgentNetworkTransformRuleSchema = z.object({
67
+ key: z.string(),
68
+ value: z.string()
69
+ });
70
+ var AgentNetworkAllowlistRuleSchema = z.object({
71
+ domain: z.string(),
72
+ transform: z.array(AgentNetworkTransformRuleSchema).optional()
73
+ });
74
+ var AgentEnvironmentSchema = z.object({
75
+ type: z.enum(["remote", "local"]).optional(),
76
+ network: z.object({
77
+ allowlist: z.array(AgentNetworkAllowlistRuleSchema).optional()
78
+ }).optional()
79
+ });
80
+ var AgentConfigSchema = z.object({
81
+ type: z.string().optional(),
82
+ model: z.string().optional(),
83
+ options: z.record(z.any()).optional()
84
+ });
85
+ var AgentInteractionStatusSchema = z.enum([
86
+ "queued",
87
+ "in_progress",
88
+ "completed",
89
+ "failed",
90
+ "cancelled"
91
+ ]);
92
+ var AgentInteractionRequestSchema = z.object({
93
+ agent: z.string().default("antigravity-preview-05-2026"),
94
+ input: z.string(),
95
+ systemInstruction: z.string().optional(),
96
+ background: z.boolean().default(true),
97
+ tools: z.array(AgentToolSchema).optional(),
98
+ agentConfig: AgentConfigSchema.optional(),
99
+ environment: AgentEnvironmentSchema.optional(),
100
+ documents: z.array(AgentDocumentAttachmentSchema).optional(),
101
+ coachingRules: z.array(z.string()).optional()
102
+ });
103
+ var AgentInteractionResultSchema = z.object({
104
+ id: z.string(),
105
+ agent: z.string(),
106
+ status: AgentInteractionStatusSchema,
107
+ outputText: z.string().optional(),
108
+ error: z.string().optional(),
109
+ latencyMs: z.number().optional(),
110
+ metadata: z.record(z.any()).optional(),
111
+ createdAt: z.string().optional(),
112
+ updatedAt: z.string().optional()
113
+ });
55
114
  var QueueJobSchema = z.object({
56
115
  id: z.string(),
57
- type: z.enum(["text", "image", "video", "analysis", "audio"]),
116
+ type: z.enum(["text", "image", "video", "analysis", "audio", "agent"]),
58
117
  status: z.enum(["queued", "processing", "completed", "failed"]),
59
118
  client: ServiceClientSchema.optional(),
60
119
  payload: z.record(z.any()).optional(),
@@ -62,6 +121,16 @@ var QueueJobSchema = z.object({
62
121
  updatedAt: z.any().optional()
63
122
  });
64
123
  export {
124
+ AgentConfigSchema,
125
+ AgentDocumentAttachmentSchema,
126
+ AgentEnvironmentSchema,
127
+ AgentInteractionRequestSchema,
128
+ AgentInteractionResultSchema,
129
+ AgentInteractionStatusSchema,
130
+ AgentNetworkAllowlistRuleSchema,
131
+ AgentNetworkTransformRuleSchema,
132
+ AgentToolSchema,
133
+ AgentToolTypeSchema,
65
134
  AspectRatioSchema,
66
135
  CodeGenerationSchema,
67
136
  FidelitySchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",