@pixerate/schemas 1.1.7 → 1.1.8

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