@camunda/camunda-api-zod-schemas 0.0.89 → 0.0.90
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/8.10/agent-instance.d.ts +174 -59
- package/dist/8.10/agent-instance.js +18 -18
- package/package.json +1 -1
|
@@ -9,10 +9,87 @@ declare const agentInstanceStatusSchema: z.ZodEnum<{
|
|
|
9
9
|
TOOL_DISCOVERY: "TOOL_DISCOVERY";
|
|
10
10
|
}>;
|
|
11
11
|
type AgentInstanceStatus = z.infer<typeof agentInstanceStatusSchema>;
|
|
12
|
+
declare const agentInstanceTextContentSchema: z.ZodObject<{
|
|
13
|
+
contentType: z.ZodLiteral<"TEXT">;
|
|
14
|
+
text: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type AgentInstanceTextContent = z.infer<typeof agentInstanceTextContentSchema>;
|
|
17
|
+
declare const agentInstanceDocumentContentSchema: z.ZodObject<{
|
|
18
|
+
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
19
|
+
documentReference: z.ZodObject<{
|
|
20
|
+
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
21
|
+
storeId: z.ZodString;
|
|
22
|
+
documentId: z.ZodString;
|
|
23
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
24
|
+
metadata: z.ZodObject<{
|
|
25
|
+
contentType: z.ZodString;
|
|
26
|
+
fileName: z.ZodString;
|
|
27
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
28
|
+
size: z.ZodNumber;
|
|
29
|
+
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
30
|
+
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
31
|
+
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
type AgentInstanceDocumentContent = z.infer<typeof agentInstanceDocumentContentSchema>;
|
|
36
|
+
declare const agentInstanceObjectContentSchema: z.ZodObject<{
|
|
37
|
+
contentType: z.ZodLiteral<"OBJECT">;
|
|
38
|
+
object: z.ZodUnknown;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
type AgentInstanceObjectContent = z.infer<typeof agentInstanceObjectContentSchema>;
|
|
41
|
+
declare const agentInstanceMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
+
contentType: z.ZodLiteral<"TEXT">;
|
|
43
|
+
text: z.ZodString;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
46
|
+
documentReference: z.ZodObject<{
|
|
47
|
+
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
48
|
+
storeId: z.ZodString;
|
|
49
|
+
documentId: z.ZodString;
|
|
50
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
51
|
+
metadata: z.ZodObject<{
|
|
52
|
+
contentType: z.ZodString;
|
|
53
|
+
fileName: z.ZodString;
|
|
54
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
55
|
+
size: z.ZodNumber;
|
|
56
|
+
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
57
|
+
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
58
|
+
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
contentType: z.ZodLiteral<"OBJECT">;
|
|
63
|
+
object: z.ZodUnknown;
|
|
64
|
+
}, z.core.$strip>], "contentType">;
|
|
65
|
+
type AgentInstanceMessageContent = z.infer<typeof agentInstanceMessageContentSchema>;
|
|
12
66
|
declare const agentInstanceDefinitionSchema: z.ZodObject<{
|
|
13
67
|
model: z.ZodString;
|
|
14
68
|
provider: z.ZodString;
|
|
15
|
-
systemPrompt: z.
|
|
69
|
+
systemPrompt: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
+
contentType: z.ZodLiteral<"TEXT">;
|
|
71
|
+
text: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
74
|
+
documentReference: z.ZodObject<{
|
|
75
|
+
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
76
|
+
storeId: z.ZodString;
|
|
77
|
+
documentId: z.ZodString;
|
|
78
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
79
|
+
metadata: z.ZodObject<{
|
|
80
|
+
contentType: z.ZodString;
|
|
81
|
+
fileName: z.ZodString;
|
|
82
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
83
|
+
size: z.ZodNumber;
|
|
84
|
+
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
85
|
+
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
86
|
+
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
contentType: z.ZodLiteral<"OBJECT">;
|
|
91
|
+
object: z.ZodUnknown;
|
|
92
|
+
}, z.core.$strip>], "contentType">>;
|
|
16
93
|
}, z.core.$strip>;
|
|
17
94
|
type AgentInstanceDefinition = z.infer<typeof agentInstanceDefinitionSchema>;
|
|
18
95
|
declare const agentInstanceMetricsSchema: z.ZodObject<{
|
|
@@ -49,7 +126,30 @@ declare const agentInstanceSchema: z.ZodObject<{
|
|
|
49
126
|
definition: z.ZodObject<{
|
|
50
127
|
model: z.ZodString;
|
|
51
128
|
provider: z.ZodString;
|
|
52
|
-
systemPrompt: z.
|
|
129
|
+
systemPrompt: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
130
|
+
contentType: z.ZodLiteral<"TEXT">;
|
|
131
|
+
text: z.ZodString;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
134
|
+
documentReference: z.ZodObject<{
|
|
135
|
+
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
136
|
+
storeId: z.ZodString;
|
|
137
|
+
documentId: z.ZodString;
|
|
138
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
139
|
+
metadata: z.ZodObject<{
|
|
140
|
+
contentType: z.ZodString;
|
|
141
|
+
fileName: z.ZodString;
|
|
142
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
143
|
+
size: z.ZodNumber;
|
|
144
|
+
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
145
|
+
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
146
|
+
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
150
|
+
contentType: z.ZodLiteral<"OBJECT">;
|
|
151
|
+
object: z.ZodUnknown;
|
|
152
|
+
}, z.core.$strip>], "contentType">>;
|
|
53
153
|
}, z.core.$strip>;
|
|
54
154
|
metrics: z.ZodObject<{
|
|
55
155
|
inputTokens: z.ZodNumber;
|
|
@@ -437,7 +537,30 @@ declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common'
|
|
|
437
537
|
definition: {
|
|
438
538
|
model: string;
|
|
439
539
|
provider: string;
|
|
440
|
-
systemPrompt:
|
|
540
|
+
systemPrompt: ({
|
|
541
|
+
contentType: "TEXT";
|
|
542
|
+
text: string;
|
|
543
|
+
} | {
|
|
544
|
+
contentType: "DOCUMENT";
|
|
545
|
+
documentReference: {
|
|
546
|
+
'camunda.document.type': "camunda";
|
|
547
|
+
storeId: string;
|
|
548
|
+
documentId: string;
|
|
549
|
+
contentHash: string | null;
|
|
550
|
+
metadata: {
|
|
551
|
+
contentType: string;
|
|
552
|
+
fileName: string;
|
|
553
|
+
expiresAt: string | null;
|
|
554
|
+
size: number;
|
|
555
|
+
processDefinitionId: string | null;
|
|
556
|
+
processInstanceKey: string | null;
|
|
557
|
+
customProperties: Record<string, unknown>;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
} | {
|
|
561
|
+
contentType: "OBJECT";
|
|
562
|
+
object: unknown;
|
|
563
|
+
})[];
|
|
441
564
|
};
|
|
442
565
|
metrics: {
|
|
443
566
|
inputTokens: number;
|
|
@@ -474,7 +597,30 @@ declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common'
|
|
|
474
597
|
definition: {
|
|
475
598
|
model: string;
|
|
476
599
|
provider: string;
|
|
477
|
-
systemPrompt:
|
|
600
|
+
systemPrompt: ({
|
|
601
|
+
contentType: "TEXT";
|
|
602
|
+
text: string;
|
|
603
|
+
} | {
|
|
604
|
+
contentType: "DOCUMENT";
|
|
605
|
+
documentReference: {
|
|
606
|
+
'camunda.document.type': "camunda";
|
|
607
|
+
storeId: string;
|
|
608
|
+
documentId: string;
|
|
609
|
+
contentHash: string | null;
|
|
610
|
+
metadata: {
|
|
611
|
+
contentType: string;
|
|
612
|
+
fileName: string;
|
|
613
|
+
expiresAt: string | null;
|
|
614
|
+
size: number;
|
|
615
|
+
processDefinitionId: string | null;
|
|
616
|
+
processInstanceKey: string | null;
|
|
617
|
+
customProperties: Record<string, unknown>;
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
} | {
|
|
621
|
+
contentType: "OBJECT";
|
|
622
|
+
object: unknown;
|
|
623
|
+
})[];
|
|
478
624
|
};
|
|
479
625
|
metrics: {
|
|
480
626
|
inputTokens: number;
|
|
@@ -521,7 +667,30 @@ declare const getAgentInstanceResponseBodySchema: z.ZodObject<{
|
|
|
521
667
|
definition: z.ZodObject<{
|
|
522
668
|
model: z.ZodString;
|
|
523
669
|
provider: z.ZodString;
|
|
524
|
-
systemPrompt: z.
|
|
670
|
+
systemPrompt: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
671
|
+
contentType: z.ZodLiteral<"TEXT">;
|
|
672
|
+
text: z.ZodString;
|
|
673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
674
|
+
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
675
|
+
documentReference: z.ZodObject<{
|
|
676
|
+
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
677
|
+
storeId: z.ZodString;
|
|
678
|
+
documentId: z.ZodString;
|
|
679
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
680
|
+
metadata: z.ZodObject<{
|
|
681
|
+
contentType: z.ZodString;
|
|
682
|
+
fileName: z.ZodString;
|
|
683
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
684
|
+
size: z.ZodNumber;
|
|
685
|
+
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
686
|
+
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
687
|
+
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
691
|
+
contentType: z.ZodLiteral<"OBJECT">;
|
|
692
|
+
object: z.ZodUnknown;
|
|
693
|
+
}, z.core.$strip>], "contentType">>;
|
|
525
694
|
}, z.core.$strip>;
|
|
526
695
|
metrics: z.ZodObject<{
|
|
527
696
|
inputTokens: z.ZodNumber;
|
|
@@ -566,60 +735,6 @@ declare const agentInstanceHistoryCommitStatusSchema: z.ZodEnum<{
|
|
|
566
735
|
DISCARDED: "DISCARDED";
|
|
567
736
|
}>;
|
|
568
737
|
type AgentInstanceHistoryCommitStatus = z.infer<typeof agentInstanceHistoryCommitStatusSchema>;
|
|
569
|
-
declare const agentInstanceTextContentSchema: z.ZodObject<{
|
|
570
|
-
contentType: z.ZodLiteral<"TEXT">;
|
|
571
|
-
text: z.ZodString;
|
|
572
|
-
}, z.core.$strip>;
|
|
573
|
-
type AgentInstanceTextContent = z.infer<typeof agentInstanceTextContentSchema>;
|
|
574
|
-
declare const agentInstanceDocumentContentSchema: z.ZodObject<{
|
|
575
|
-
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
576
|
-
documentReference: z.ZodObject<{
|
|
577
|
-
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
578
|
-
storeId: z.ZodString;
|
|
579
|
-
documentId: z.ZodString;
|
|
580
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
581
|
-
metadata: z.ZodObject<{
|
|
582
|
-
contentType: z.ZodString;
|
|
583
|
-
fileName: z.ZodString;
|
|
584
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
585
|
-
size: z.ZodNumber;
|
|
586
|
-
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
587
|
-
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
588
|
-
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
589
|
-
}, z.core.$strip>;
|
|
590
|
-
}, z.core.$strip>;
|
|
591
|
-
}, z.core.$strip>;
|
|
592
|
-
type AgentInstanceDocumentContent = z.infer<typeof agentInstanceDocumentContentSchema>;
|
|
593
|
-
declare const agentInstanceObjectContentSchema: z.ZodObject<{
|
|
594
|
-
contentType: z.ZodLiteral<"OBJECT">;
|
|
595
|
-
object: z.ZodUnknown;
|
|
596
|
-
}, z.core.$strip>;
|
|
597
|
-
type AgentInstanceObjectContent = z.infer<typeof agentInstanceObjectContentSchema>;
|
|
598
|
-
declare const agentInstanceMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
599
|
-
contentType: z.ZodLiteral<"TEXT">;
|
|
600
|
-
text: z.ZodString;
|
|
601
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
602
|
-
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
603
|
-
documentReference: z.ZodObject<{
|
|
604
|
-
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
605
|
-
storeId: z.ZodString;
|
|
606
|
-
documentId: z.ZodString;
|
|
607
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
608
|
-
metadata: z.ZodObject<{
|
|
609
|
-
contentType: z.ZodString;
|
|
610
|
-
fileName: z.ZodString;
|
|
611
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
612
|
-
size: z.ZodNumber;
|
|
613
|
-
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
614
|
-
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
615
|
-
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
616
|
-
}, z.core.$strip>;
|
|
617
|
-
}, z.core.$strip>;
|
|
618
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
619
|
-
contentType: z.ZodLiteral<"OBJECT">;
|
|
620
|
-
object: z.ZodUnknown;
|
|
621
|
-
}, z.core.$strip>], "contentType">;
|
|
622
|
-
type AgentInstanceMessageContent = z.infer<typeof agentInstanceMessageContentSchema>;
|
|
623
738
|
declare const agentInstanceToolCallSchema: z.ZodObject<{
|
|
624
739
|
toolCallId: z.ZodString;
|
|
625
740
|
toolName: z.ZodString;
|
|
@@ -11,10 +11,27 @@ var agentInstanceStatusSchema = z.enum([
|
|
|
11
11
|
"TOOL_CALLING",
|
|
12
12
|
"TOOL_DISCOVERY"
|
|
13
13
|
]);
|
|
14
|
+
var agentInstanceTextContentSchema = z.object({
|
|
15
|
+
contentType: z.literal("TEXT"),
|
|
16
|
+
text: z.string()
|
|
17
|
+
});
|
|
18
|
+
var agentInstanceDocumentContentSchema = z.object({
|
|
19
|
+
contentType: z.literal("DOCUMENT"),
|
|
20
|
+
documentReference: documentReferenceSchema
|
|
21
|
+
});
|
|
22
|
+
var agentInstanceObjectContentSchema = z.object({
|
|
23
|
+
contentType: z.literal("OBJECT"),
|
|
24
|
+
object: z.unknown()
|
|
25
|
+
});
|
|
26
|
+
var agentInstanceMessageContentSchema = z.discriminatedUnion("contentType", [
|
|
27
|
+
agentInstanceTextContentSchema,
|
|
28
|
+
agentInstanceDocumentContentSchema,
|
|
29
|
+
agentInstanceObjectContentSchema
|
|
30
|
+
]);
|
|
14
31
|
var agentInstanceDefinitionSchema = z.object({
|
|
15
32
|
model: z.string(),
|
|
16
33
|
provider: z.string(),
|
|
17
|
-
systemPrompt: z.
|
|
34
|
+
systemPrompt: z.array(agentInstanceMessageContentSchema)
|
|
18
35
|
});
|
|
19
36
|
var agentInstanceMetricsSchema = z.object({
|
|
20
37
|
inputTokens: z.number(),
|
|
@@ -99,23 +116,6 @@ var agentInstanceHistoryCommitStatusSchema = z.enum([
|
|
|
99
116
|
"PENDING",
|
|
100
117
|
"DISCARDED"
|
|
101
118
|
]);
|
|
102
|
-
var agentInstanceTextContentSchema = z.object({
|
|
103
|
-
contentType: z.literal("TEXT"),
|
|
104
|
-
text: z.string()
|
|
105
|
-
});
|
|
106
|
-
var agentInstanceDocumentContentSchema = z.object({
|
|
107
|
-
contentType: z.literal("DOCUMENT"),
|
|
108
|
-
documentReference: documentReferenceSchema
|
|
109
|
-
});
|
|
110
|
-
var agentInstanceObjectContentSchema = z.object({
|
|
111
|
-
contentType: z.literal("OBJECT"),
|
|
112
|
-
object: z.unknown()
|
|
113
|
-
});
|
|
114
|
-
var agentInstanceMessageContentSchema = z.discriminatedUnion("contentType", [
|
|
115
|
-
agentInstanceTextContentSchema,
|
|
116
|
-
agentInstanceDocumentContentSchema,
|
|
117
|
-
agentInstanceObjectContentSchema
|
|
118
|
-
]);
|
|
119
119
|
var agentInstanceToolCallSchema = z.object({
|
|
120
120
|
toolCallId: z.string(),
|
|
121
121
|
toolName: z.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/camunda-api-zod-schemas",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"license": "LicenseRef-Camunda-1.0",
|
|
5
5
|
"description": "Zod schemas and TypeScript types for Camunda 8 unified API",
|
|
6
6
|
"author": "Vinicius Goulart <vinicius.goulart@camunda.com>",
|