@pixerate/schemas 1.1.8 → 1.1.10
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 +12 -2
- package/dist/index.d.cts +53 -5
- package/dist/index.d.ts +53 -5
- package/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
AgentConfigSchema: () => AgentConfigSchema,
|
|
24
|
+
AgentDocumentAttachmentSchema: () => AgentDocumentAttachmentSchema,
|
|
24
25
|
AgentEnvironmentSchema: () => AgentEnvironmentSchema,
|
|
25
26
|
AgentInteractionRequestSchema: () => AgentInteractionRequestSchema,
|
|
26
27
|
AgentInteractionResultSchema: () => AgentInteractionResultSchema,
|
|
@@ -94,8 +95,14 @@ var JsonGenerationSchema = import_zod.z.object({
|
|
|
94
95
|
prompt: import_zod.z.string(),
|
|
95
96
|
schema: import_zod.z.record(import_zod.z.any()).optional()
|
|
96
97
|
});
|
|
97
|
-
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", "flair", "operative", "unknown"]);
|
|
98
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
|
+
});
|
|
99
106
|
var AgentToolSchema = import_zod.z.object({
|
|
100
107
|
type: import_zod.z.string(),
|
|
101
108
|
config: import_zod.z.record(import_zod.z.any()).optional()
|
|
@@ -133,7 +140,9 @@ var AgentInteractionRequestSchema = import_zod.z.object({
|
|
|
133
140
|
background: import_zod.z.boolean().default(true),
|
|
134
141
|
tools: import_zod.z.array(AgentToolSchema).optional(),
|
|
135
142
|
agentConfig: AgentConfigSchema.optional(),
|
|
136
|
-
environment: AgentEnvironmentSchema.optional()
|
|
143
|
+
environment: AgentEnvironmentSchema.optional(),
|
|
144
|
+
documents: import_zod.z.array(AgentDocumentAttachmentSchema).optional(),
|
|
145
|
+
coachingRules: import_zod.z.array(import_zod.z.string()).optional()
|
|
137
146
|
});
|
|
138
147
|
var AgentInteractionResultSchema = import_zod.z.object({
|
|
139
148
|
id: import_zod.z.string(),
|
|
@@ -158,6 +167,7 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
158
167
|
// Annotate the CommonJS export names for ESM import in node:
|
|
159
168
|
0 && (module.exports = {
|
|
160
169
|
AgentConfigSchema,
|
|
170
|
+
AgentDocumentAttachmentSchema,
|
|
161
171
|
AgentEnvironmentSchema,
|
|
162
172
|
AgentInteractionRequestSchema,
|
|
163
173
|
AgentInteractionResultSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -81,10 +81,27 @@ 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", "flair", "operative", "unknown"]>;
|
|
85
85
|
type ServiceClient = z.infer<typeof ServiceClientSchema>;
|
|
86
86
|
declare const AgentToolTypeSchema: z.ZodEnum<["code_execution", "google_search", "url_context", "file_search", "custom"]>;
|
|
87
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>;
|
|
88
105
|
declare const AgentToolSchema: z.ZodObject<{
|
|
89
106
|
type: z.ZodString;
|
|
90
107
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -314,6 +331,23 @@ declare const AgentInteractionRequestSchema: z.ZodObject<{
|
|
|
314
331
|
}[] | undefined;
|
|
315
332
|
} | undefined;
|
|
316
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">>;
|
|
317
351
|
}, "strip", z.ZodTypeAny, {
|
|
318
352
|
agent: string;
|
|
319
353
|
input: string;
|
|
@@ -340,6 +374,13 @@ declare const AgentInteractionRequestSchema: z.ZodObject<{
|
|
|
340
374
|
}[] | undefined;
|
|
341
375
|
} | undefined;
|
|
342
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;
|
|
343
384
|
}, {
|
|
344
385
|
input: string;
|
|
345
386
|
agent?: string | undefined;
|
|
@@ -366,6 +407,13 @@ declare const AgentInteractionRequestSchema: z.ZodObject<{
|
|
|
366
407
|
}[] | undefined;
|
|
367
408
|
} | undefined;
|
|
368
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;
|
|
369
417
|
}>;
|
|
370
418
|
type AgentInteractionRequest = z.infer<typeof AgentInteractionRequestSchema>;
|
|
371
419
|
declare const AgentInteractionResultSchema: z.ZodObject<{
|
|
@@ -404,7 +452,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
404
452
|
id: z.ZodString;
|
|
405
453
|
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
|
|
406
454
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
407
|
-
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", "flair", "operative", "unknown"]>>;
|
|
408
456
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
409
457
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
410
458
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
@@ -414,7 +462,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
414
462
|
id: string;
|
|
415
463
|
createdAt?: any;
|
|
416
464
|
updatedAt?: any;
|
|
417
|
-
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
465
|
+
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
418
466
|
payload?: Record<string, any> | undefined;
|
|
419
467
|
}, {
|
|
420
468
|
type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
|
|
@@ -422,9 +470,9 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
422
470
|
id: string;
|
|
423
471
|
createdAt?: any;
|
|
424
472
|
updatedAt?: any;
|
|
425
|
-
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
473
|
+
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
426
474
|
payload?: Record<string, any> | undefined;
|
|
427
475
|
}>;
|
|
428
476
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
429
477
|
|
|
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 };
|
|
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,10 +81,27 @@ 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", "flair", "operative", "unknown"]>;
|
|
85
85
|
type ServiceClient = z.infer<typeof ServiceClientSchema>;
|
|
86
86
|
declare const AgentToolTypeSchema: z.ZodEnum<["code_execution", "google_search", "url_context", "file_search", "custom"]>;
|
|
87
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>;
|
|
88
105
|
declare const AgentToolSchema: z.ZodObject<{
|
|
89
106
|
type: z.ZodString;
|
|
90
107
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -314,6 +331,23 @@ declare const AgentInteractionRequestSchema: z.ZodObject<{
|
|
|
314
331
|
}[] | undefined;
|
|
315
332
|
} | undefined;
|
|
316
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">>;
|
|
317
351
|
}, "strip", z.ZodTypeAny, {
|
|
318
352
|
agent: string;
|
|
319
353
|
input: string;
|
|
@@ -340,6 +374,13 @@ declare const AgentInteractionRequestSchema: z.ZodObject<{
|
|
|
340
374
|
}[] | undefined;
|
|
341
375
|
} | undefined;
|
|
342
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;
|
|
343
384
|
}, {
|
|
344
385
|
input: string;
|
|
345
386
|
agent?: string | undefined;
|
|
@@ -366,6 +407,13 @@ declare const AgentInteractionRequestSchema: z.ZodObject<{
|
|
|
366
407
|
}[] | undefined;
|
|
367
408
|
} | undefined;
|
|
368
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;
|
|
369
417
|
}>;
|
|
370
418
|
type AgentInteractionRequest = z.infer<typeof AgentInteractionRequestSchema>;
|
|
371
419
|
declare const AgentInteractionResultSchema: z.ZodObject<{
|
|
@@ -404,7 +452,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
404
452
|
id: z.ZodString;
|
|
405
453
|
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
|
|
406
454
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
407
|
-
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", "flair", "operative", "unknown"]>>;
|
|
408
456
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
409
457
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
410
458
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
@@ -414,7 +462,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
414
462
|
id: string;
|
|
415
463
|
createdAt?: any;
|
|
416
464
|
updatedAt?: any;
|
|
417
|
-
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
465
|
+
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
418
466
|
payload?: Record<string, any> | undefined;
|
|
419
467
|
}, {
|
|
420
468
|
type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
|
|
@@ -422,9 +470,9 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
422
470
|
id: string;
|
|
423
471
|
createdAt?: any;
|
|
424
472
|
updatedAt?: any;
|
|
425
|
-
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
473
|
+
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
426
474
|
payload?: Record<string, any> | undefined;
|
|
427
475
|
}>;
|
|
428
476
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
429
477
|
|
|
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 };
|
|
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,8 +51,14 @@ 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", "flair", "operative", "unknown"]);
|
|
55
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
|
+
});
|
|
56
62
|
var AgentToolSchema = z.object({
|
|
57
63
|
type: z.string(),
|
|
58
64
|
config: z.record(z.any()).optional()
|
|
@@ -90,7 +96,9 @@ var AgentInteractionRequestSchema = z.object({
|
|
|
90
96
|
background: z.boolean().default(true),
|
|
91
97
|
tools: z.array(AgentToolSchema).optional(),
|
|
92
98
|
agentConfig: AgentConfigSchema.optional(),
|
|
93
|
-
environment: AgentEnvironmentSchema.optional()
|
|
99
|
+
environment: AgentEnvironmentSchema.optional(),
|
|
100
|
+
documents: z.array(AgentDocumentAttachmentSchema).optional(),
|
|
101
|
+
coachingRules: z.array(z.string()).optional()
|
|
94
102
|
});
|
|
95
103
|
var AgentInteractionResultSchema = z.object({
|
|
96
104
|
id: z.string(),
|
|
@@ -114,6 +122,7 @@ var QueueJobSchema = z.object({
|
|
|
114
122
|
});
|
|
115
123
|
export {
|
|
116
124
|
AgentConfigSchema,
|
|
125
|
+
AgentDocumentAttachmentSchema,
|
|
117
126
|
AgentEnvironmentSchema,
|
|
118
127
|
AgentInteractionRequestSchema,
|
|
119
128
|
AgentInteractionResultSchema,
|