@camunda/camunda-api-zod-schemas 0.0.88 → 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/ad-hoc-sub-process.js +3 -2
- package/dist/8.10/agent-instance.d.ts +323 -65
- package/dist/8.10/agent-instance.js +30 -20
- package/dist/8.10/element-instance-inspection.js +9 -8
- package/dist/8.10/incident-statistics.js +2 -1
- package/dist/8.10/process-definition.js +5 -4
- package/dist/8.8/ad-hoc-sub-process.js +3 -2
- package/dist/8.8/process-definition.js +5 -4
- package/dist/8.9/ad-hoc-sub-process.js +3 -2
- package/dist/8.9/incident-statistics.js +2 -1
- package/dist/8.9/process-definition.js +5 -4
- package/package.json +3 -3
|
@@ -26,7 +26,7 @@ var adHocSubProcessActivityFilterSchema = z.object({
|
|
|
26
26
|
adHocSubProcessId: z.string()
|
|
27
27
|
});
|
|
28
28
|
var queryActivatableActivitiesRequestBodySchema = z.object({ filter: adHocSubProcessActivityFilterSchema });
|
|
29
|
-
var
|
|
29
|
+
var activatableActivitySchema = z.object({
|
|
30
30
|
processDefinitionKey: z.string(),
|
|
31
31
|
processDefinitionId: z.string(),
|
|
32
32
|
adHocSubProcessId: z.string(),
|
|
@@ -35,7 +35,8 @@ var queryActivatableActivitiesResponseBodySchema = getCollectionResponseBodySche
|
|
|
35
35
|
type: activityTypeSchema,
|
|
36
36
|
documentation: z.string(),
|
|
37
37
|
tenantId: z.string()
|
|
38
|
-
})
|
|
38
|
+
});
|
|
39
|
+
var queryActivatableActivitiesResponseBodySchema = getCollectionResponseBodySchema(activatableActivitySchema);
|
|
39
40
|
var activateActivityWithinAdHocSubProcessRequestBodySchema = z.object({ elementId: z.string() });
|
|
40
41
|
var activateActivityWithinAdHocSubProcessResponseBodySchema = z.void();
|
|
41
42
|
var activateAdHocSubProcessActivities = {
|
|
@@ -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<{
|
|
@@ -36,6 +113,7 @@ declare const agentToolSchema: z.ZodObject<{
|
|
|
36
113
|
type AgentTool = z.infer<typeof agentToolSchema>;
|
|
37
114
|
declare const agentInstanceSchema: z.ZodObject<{
|
|
38
115
|
agentInstanceKey: z.ZodString;
|
|
116
|
+
agentDefinitionKey: z.ZodString;
|
|
39
117
|
status: z.ZodEnum<{
|
|
40
118
|
UNKNOWN: "UNKNOWN";
|
|
41
119
|
COMPLETED: "COMPLETED";
|
|
@@ -48,7 +126,30 @@ declare const agentInstanceSchema: z.ZodObject<{
|
|
|
48
126
|
definition: z.ZodObject<{
|
|
49
127
|
model: z.ZodString;
|
|
50
128
|
provider: z.ZodString;
|
|
51
|
-
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">>;
|
|
52
153
|
}, z.core.$strip>;
|
|
53
154
|
metrics: z.ZodObject<{
|
|
54
155
|
inputTokens: z.ZodNumber;
|
|
@@ -88,6 +189,13 @@ declare const agentInstanceFilterSchema: z.ZodObject<{
|
|
|
88
189
|
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
190
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
191
|
}, z.core.$strip>, z.ZodString]>>;
|
|
192
|
+
agentDefinitionKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
193
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
194
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
195
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
197
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
91
199
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
92
200
|
UNKNOWN: "UNKNOWN";
|
|
93
201
|
COMPLETED: "COMPLETED";
|
|
@@ -247,6 +355,7 @@ declare const queryAgentInstancesRequestBodySchema: z.ZodObject<{
|
|
|
247
355
|
completionDate: "completionDate";
|
|
248
356
|
rootProcessInstanceKey: "rootProcessInstanceKey";
|
|
249
357
|
agentInstanceKey: "agentInstanceKey";
|
|
358
|
+
agentDefinitionKey: "agentDefinitionKey";
|
|
250
359
|
}>;
|
|
251
360
|
order: z.ZodOptional<z.ZodEnum<{
|
|
252
361
|
asc: "asc";
|
|
@@ -267,6 +376,13 @@ declare const queryAgentInstancesRequestBodySchema: z.ZodObject<{
|
|
|
267
376
|
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
268
377
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
378
|
}, z.core.$strip>, z.ZodString]>>;
|
|
379
|
+
agentDefinitionKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
380
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
381
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
382
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
384
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
385
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
270
386
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
271
387
|
UNKNOWN: "UNKNOWN";
|
|
272
388
|
COMPLETED: "COMPLETED";
|
|
@@ -416,11 +532,35 @@ declare const queryAgentInstancesRequestBodySchema: z.ZodObject<{
|
|
|
416
532
|
type QueryAgentInstancesRequestBody = z.infer<typeof queryAgentInstancesRequestBodySchema>;
|
|
417
533
|
declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
418
534
|
agentInstanceKey: string;
|
|
535
|
+
agentDefinitionKey: string;
|
|
419
536
|
status: "UNKNOWN" | "COMPLETED" | "IDLE" | "INITIALIZING" | "THINKING" | "TOOL_CALLING" | "TOOL_DISCOVERY";
|
|
420
537
|
definition: {
|
|
421
538
|
model: string;
|
|
422
539
|
provider: string;
|
|
423
|
-
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
|
+
})[];
|
|
424
564
|
};
|
|
425
565
|
metrics: {
|
|
426
566
|
inputTokens: number;
|
|
@@ -452,11 +592,35 @@ declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common'
|
|
|
452
592
|
elementInstanceKeys: string[];
|
|
453
593
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
454
594
|
agentInstanceKey: string;
|
|
595
|
+
agentDefinitionKey: string;
|
|
455
596
|
status: "UNKNOWN" | "COMPLETED" | "IDLE" | "INITIALIZING" | "THINKING" | "TOOL_CALLING" | "TOOL_DISCOVERY";
|
|
456
597
|
definition: {
|
|
457
598
|
model: string;
|
|
458
599
|
provider: string;
|
|
459
|
-
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
|
+
})[];
|
|
460
624
|
};
|
|
461
625
|
metrics: {
|
|
462
626
|
inputTokens: number;
|
|
@@ -490,6 +654,7 @@ declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common'
|
|
|
490
654
|
type QueryAgentInstancesResponseBody = z.infer<typeof queryAgentInstancesResponseBodySchema>;
|
|
491
655
|
declare const getAgentInstanceResponseBodySchema: z.ZodObject<{
|
|
492
656
|
agentInstanceKey: z.ZodString;
|
|
657
|
+
agentDefinitionKey: z.ZodString;
|
|
493
658
|
status: z.ZodEnum<{
|
|
494
659
|
UNKNOWN: "UNKNOWN";
|
|
495
660
|
COMPLETED: "COMPLETED";
|
|
@@ -502,7 +667,30 @@ declare const getAgentInstanceResponseBodySchema: z.ZodObject<{
|
|
|
502
667
|
definition: z.ZodObject<{
|
|
503
668
|
model: z.ZodString;
|
|
504
669
|
provider: z.ZodString;
|
|
505
|
-
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">>;
|
|
506
694
|
}, z.core.$strip>;
|
|
507
695
|
metrics: z.ZodObject<{
|
|
508
696
|
inputTokens: z.ZodNumber;
|
|
@@ -536,6 +724,7 @@ declare const getAgentInstanceResponseBodySchema: z.ZodObject<{
|
|
|
536
724
|
type GetAgentInstanceResponseBody = z.infer<typeof getAgentInstanceResponseBodySchema>;
|
|
537
725
|
declare const agentInstanceHistoryRoleSchema: z.ZodEnum<{
|
|
538
726
|
USER: "USER";
|
|
727
|
+
CONFIGURATION: "CONFIGURATION";
|
|
539
728
|
ASSISTANT: "ASSISTANT";
|
|
540
729
|
TOOL_RESULT: "TOOL_RESULT";
|
|
541
730
|
}>;
|
|
@@ -546,60 +735,6 @@ declare const agentInstanceHistoryCommitStatusSchema: z.ZodEnum<{
|
|
|
546
735
|
DISCARDED: "DISCARDED";
|
|
547
736
|
}>;
|
|
548
737
|
type AgentInstanceHistoryCommitStatus = z.infer<typeof agentInstanceHistoryCommitStatusSchema>;
|
|
549
|
-
declare const agentInstanceTextContentSchema: z.ZodObject<{
|
|
550
|
-
contentType: z.ZodLiteral<"TEXT">;
|
|
551
|
-
text: z.ZodString;
|
|
552
|
-
}, z.core.$strip>;
|
|
553
|
-
type AgentInstanceTextContent = z.infer<typeof agentInstanceTextContentSchema>;
|
|
554
|
-
declare const agentInstanceDocumentContentSchema: z.ZodObject<{
|
|
555
|
-
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
556
|
-
documentReference: z.ZodObject<{
|
|
557
|
-
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
558
|
-
storeId: z.ZodString;
|
|
559
|
-
documentId: z.ZodString;
|
|
560
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
561
|
-
metadata: z.ZodObject<{
|
|
562
|
-
contentType: z.ZodString;
|
|
563
|
-
fileName: z.ZodString;
|
|
564
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
565
|
-
size: z.ZodNumber;
|
|
566
|
-
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
567
|
-
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
568
|
-
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
569
|
-
}, z.core.$strip>;
|
|
570
|
-
}, z.core.$strip>;
|
|
571
|
-
}, z.core.$strip>;
|
|
572
|
-
type AgentInstanceDocumentContent = z.infer<typeof agentInstanceDocumentContentSchema>;
|
|
573
|
-
declare const agentInstanceObjectContentSchema: z.ZodObject<{
|
|
574
|
-
contentType: z.ZodLiteral<"OBJECT">;
|
|
575
|
-
object: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
576
|
-
}, z.core.$strip>;
|
|
577
|
-
type AgentInstanceObjectContent = z.infer<typeof agentInstanceObjectContentSchema>;
|
|
578
|
-
declare const agentInstanceMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
579
|
-
contentType: z.ZodLiteral<"TEXT">;
|
|
580
|
-
text: z.ZodString;
|
|
581
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
582
|
-
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
583
|
-
documentReference: z.ZodObject<{
|
|
584
|
-
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
585
|
-
storeId: z.ZodString;
|
|
586
|
-
documentId: z.ZodString;
|
|
587
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
588
|
-
metadata: z.ZodObject<{
|
|
589
|
-
contentType: z.ZodString;
|
|
590
|
-
fileName: z.ZodString;
|
|
591
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
592
|
-
size: z.ZodNumber;
|
|
593
|
-
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
594
|
-
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
595
|
-
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
596
|
-
}, z.core.$strip>;
|
|
597
|
-
}, z.core.$strip>;
|
|
598
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
599
|
-
contentType: z.ZodLiteral<"OBJECT">;
|
|
600
|
-
object: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
601
|
-
}, z.core.$strip>], "contentType">;
|
|
602
|
-
type AgentInstanceMessageContent = z.infer<typeof agentInstanceMessageContentSchema>;
|
|
603
738
|
declare const agentInstanceToolCallSchema: z.ZodObject<{
|
|
604
739
|
toolCallId: z.ZodString;
|
|
605
740
|
toolName: z.ZodString;
|
|
@@ -615,6 +750,7 @@ declare const agentInstanceHistoryItemMetricsSchema: z.ZodObject<{
|
|
|
615
750
|
type AgentInstanceHistoryItemMetrics = z.infer<typeof agentInstanceHistoryItemMetricsSchema>;
|
|
616
751
|
declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
617
752
|
historyItemKey: z.ZodString;
|
|
753
|
+
historyItemId: z.ZodString;
|
|
618
754
|
agentInstanceKey: z.ZodString;
|
|
619
755
|
elementInstanceKey: z.ZodString;
|
|
620
756
|
jobKey: z.ZodString;
|
|
@@ -622,6 +758,7 @@ declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
|
622
758
|
loopIteration: z.ZodNumber;
|
|
623
759
|
role: z.ZodEnum<{
|
|
624
760
|
USER: "USER";
|
|
761
|
+
CONFIGURATION: "CONFIGURATION";
|
|
625
762
|
ASSISTANT: "ASSISTANT";
|
|
626
763
|
TOOL_RESULT: "TOOL_RESULT";
|
|
627
764
|
}>;
|
|
@@ -647,7 +784,7 @@ declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
|
647
784
|
}, z.core.$strip>;
|
|
648
785
|
}, z.core.$strip>, z.ZodObject<{
|
|
649
786
|
contentType: z.ZodLiteral<"OBJECT">;
|
|
650
|
-
object: z.
|
|
787
|
+
object: z.ZodUnknown;
|
|
651
788
|
}, z.core.$strip>], "contentType">>;
|
|
652
789
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
653
790
|
toolCallId: z.ZodString;
|
|
@@ -666,6 +803,42 @@ declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
|
666
803
|
DISCARDED: "DISCARDED";
|
|
667
804
|
}>;
|
|
668
805
|
producedAt: z.ZodString;
|
|
806
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
807
|
+
name: z.ZodString;
|
|
808
|
+
description: z.ZodNullable<z.ZodString>;
|
|
809
|
+
elementId: z.ZodNullable<z.ZodString>;
|
|
810
|
+
}, z.core.$strip>>;
|
|
811
|
+
model: z.ZodNullable<z.ZodString>;
|
|
812
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
813
|
+
limits: z.ZodObject<{
|
|
814
|
+
maxModelCalls: z.ZodNumber;
|
|
815
|
+
maxToolCalls: z.ZodNumber;
|
|
816
|
+
maxTokens: z.ZodNumber;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
systemPrompt: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
819
|
+
contentType: z.ZodLiteral<"TEXT">;
|
|
820
|
+
text: z.ZodString;
|
|
821
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
822
|
+
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
823
|
+
documentReference: z.ZodObject<{
|
|
824
|
+
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
825
|
+
storeId: z.ZodString;
|
|
826
|
+
documentId: z.ZodString;
|
|
827
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
828
|
+
metadata: z.ZodObject<{
|
|
829
|
+
contentType: z.ZodString;
|
|
830
|
+
fileName: z.ZodString;
|
|
831
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
832
|
+
size: z.ZodNumber;
|
|
833
|
+
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
834
|
+
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
835
|
+
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
836
|
+
}, z.core.$strip>;
|
|
837
|
+
}, z.core.$strip>;
|
|
838
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
839
|
+
contentType: z.ZodLiteral<"OBJECT">;
|
|
840
|
+
object: z.ZodUnknown;
|
|
841
|
+
}, z.core.$strip>], "contentType">>;
|
|
669
842
|
}, z.core.$strip>;
|
|
670
843
|
type AgentInstanceHistoryItem = z.infer<typeof agentInstanceHistoryItemSchema>;
|
|
671
844
|
declare const agentInstanceHistoryFilterSchema: z.ZodObject<{
|
|
@@ -678,27 +851,32 @@ declare const agentInstanceHistoryFilterSchema: z.ZodObject<{
|
|
|
678
851
|
}, z.core.$strip>, z.ZodString]>>;
|
|
679
852
|
role: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
680
853
|
USER: "USER";
|
|
854
|
+
CONFIGURATION: "CONFIGURATION";
|
|
681
855
|
ASSISTANT: "ASSISTANT";
|
|
682
856
|
TOOL_RESULT: "TOOL_RESULT";
|
|
683
857
|
}>, z.ZodObject<{
|
|
684
858
|
$eq: z.ZodOptional<z.ZodEnum<{
|
|
685
859
|
USER: "USER";
|
|
860
|
+
CONFIGURATION: "CONFIGURATION";
|
|
686
861
|
ASSISTANT: "ASSISTANT";
|
|
687
862
|
TOOL_RESULT: "TOOL_RESULT";
|
|
688
863
|
}>>;
|
|
689
864
|
$neq: z.ZodOptional<z.ZodEnum<{
|
|
690
865
|
USER: "USER";
|
|
866
|
+
CONFIGURATION: "CONFIGURATION";
|
|
691
867
|
ASSISTANT: "ASSISTANT";
|
|
692
868
|
TOOL_RESULT: "TOOL_RESULT";
|
|
693
869
|
}>>;
|
|
694
870
|
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
695
871
|
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
696
872
|
USER: "USER";
|
|
873
|
+
CONFIGURATION: "CONFIGURATION";
|
|
697
874
|
ASSISTANT: "ASSISTANT";
|
|
698
875
|
TOOL_RESULT: "TOOL_RESULT";
|
|
699
876
|
}>>>;
|
|
700
877
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
701
878
|
USER: "USER";
|
|
879
|
+
CONFIGURATION: "CONFIGURATION";
|
|
702
880
|
ASSISTANT: "ASSISTANT";
|
|
703
881
|
TOOL_RESULT: "TOOL_RESULT";
|
|
704
882
|
}>>>;
|
|
@@ -775,6 +953,7 @@ declare const createAgentInstanceHistoryItemRequestBodySchema: z.ZodObject<{
|
|
|
775
953
|
loopIteration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
776
954
|
role: z.ZodEnum<{
|
|
777
955
|
USER: "USER";
|
|
956
|
+
CONFIGURATION: "CONFIGURATION";
|
|
778
957
|
ASSISTANT: "ASSISTANT";
|
|
779
958
|
TOOL_RESULT: "TOOL_RESULT";
|
|
780
959
|
}>;
|
|
@@ -800,7 +979,7 @@ declare const createAgentInstanceHistoryItemRequestBodySchema: z.ZodObject<{
|
|
|
800
979
|
}, z.core.$strip>;
|
|
801
980
|
}, z.core.$strip>, z.ZodObject<{
|
|
802
981
|
contentType: z.ZodLiteral<"OBJECT">;
|
|
803
|
-
object: z.
|
|
982
|
+
object: z.ZodUnknown;
|
|
804
983
|
}, z.core.$strip>], "contentType">>;
|
|
805
984
|
toolCalls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
806
985
|
toolCallId: z.ZodString;
|
|
@@ -848,27 +1027,32 @@ declare const queryAgentInstanceHistoryRequestBodySchema: z.ZodObject<{
|
|
|
848
1027
|
}, z.core.$strip>, z.ZodString]>>;
|
|
849
1028
|
role: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
850
1029
|
USER: "USER";
|
|
1030
|
+
CONFIGURATION: "CONFIGURATION";
|
|
851
1031
|
ASSISTANT: "ASSISTANT";
|
|
852
1032
|
TOOL_RESULT: "TOOL_RESULT";
|
|
853
1033
|
}>, z.ZodObject<{
|
|
854
1034
|
$eq: z.ZodOptional<z.ZodEnum<{
|
|
855
1035
|
USER: "USER";
|
|
1036
|
+
CONFIGURATION: "CONFIGURATION";
|
|
856
1037
|
ASSISTANT: "ASSISTANT";
|
|
857
1038
|
TOOL_RESULT: "TOOL_RESULT";
|
|
858
1039
|
}>>;
|
|
859
1040
|
$neq: z.ZodOptional<z.ZodEnum<{
|
|
860
1041
|
USER: "USER";
|
|
1042
|
+
CONFIGURATION: "CONFIGURATION";
|
|
861
1043
|
ASSISTANT: "ASSISTANT";
|
|
862
1044
|
TOOL_RESULT: "TOOL_RESULT";
|
|
863
1045
|
}>>;
|
|
864
1046
|
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
865
1047
|
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
866
1048
|
USER: "USER";
|
|
1049
|
+
CONFIGURATION: "CONFIGURATION";
|
|
867
1050
|
ASSISTANT: "ASSISTANT";
|
|
868
1051
|
TOOL_RESULT: "TOOL_RESULT";
|
|
869
1052
|
}>>>;
|
|
870
1053
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
871
1054
|
USER: "USER";
|
|
1055
|
+
CONFIGURATION: "CONFIGURATION";
|
|
872
1056
|
ASSISTANT: "ASSISTANT";
|
|
873
1057
|
TOOL_RESULT: "TOOL_RESULT";
|
|
874
1058
|
}>>>;
|
|
@@ -941,12 +1125,13 @@ declare const queryAgentInstanceHistoryRequestBodySchema: z.ZodObject<{
|
|
|
941
1125
|
type QueryAgentInstanceHistoryRequestBody = z.infer<typeof queryAgentInstanceHistoryRequestBodySchema>;
|
|
942
1126
|
declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
943
1127
|
historyItemKey: string;
|
|
1128
|
+
historyItemId: string;
|
|
944
1129
|
agentInstanceKey: string;
|
|
945
1130
|
elementInstanceKey: string;
|
|
946
1131
|
jobKey: string;
|
|
947
1132
|
jobLease: string;
|
|
948
1133
|
loopIteration: number;
|
|
949
|
-
role: "USER" | "ASSISTANT" | "TOOL_RESULT";
|
|
1134
|
+
role: "USER" | "CONFIGURATION" | "ASSISTANT" | "TOOL_RESULT";
|
|
950
1135
|
content: ({
|
|
951
1136
|
contentType: "TEXT";
|
|
952
1137
|
text: string;
|
|
@@ -969,7 +1154,7 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
969
1154
|
};
|
|
970
1155
|
} | {
|
|
971
1156
|
contentType: "OBJECT";
|
|
972
|
-
object:
|
|
1157
|
+
object: unknown;
|
|
973
1158
|
})[];
|
|
974
1159
|
toolCalls: {
|
|
975
1160
|
toolCallId: string;
|
|
@@ -984,14 +1169,51 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
984
1169
|
} | null;
|
|
985
1170
|
commitStatus: "PENDING" | "COMMITTED" | "DISCARDED";
|
|
986
1171
|
producedAt: string;
|
|
1172
|
+
tools: {
|
|
1173
|
+
name: string;
|
|
1174
|
+
description: string | null;
|
|
1175
|
+
elementId: string | null;
|
|
1176
|
+
}[];
|
|
1177
|
+
model: string | null;
|
|
1178
|
+
provider: string | null;
|
|
1179
|
+
limits: {
|
|
1180
|
+
maxModelCalls: number;
|
|
1181
|
+
maxToolCalls: number;
|
|
1182
|
+
maxTokens: number;
|
|
1183
|
+
};
|
|
1184
|
+
systemPrompt: ({
|
|
1185
|
+
contentType: "TEXT";
|
|
1186
|
+
text: string;
|
|
1187
|
+
} | {
|
|
1188
|
+
contentType: "DOCUMENT";
|
|
1189
|
+
documentReference: {
|
|
1190
|
+
'camunda.document.type': "camunda";
|
|
1191
|
+
storeId: string;
|
|
1192
|
+
documentId: string;
|
|
1193
|
+
contentHash: string | null;
|
|
1194
|
+
metadata: {
|
|
1195
|
+
contentType: string;
|
|
1196
|
+
fileName: string;
|
|
1197
|
+
expiresAt: string | null;
|
|
1198
|
+
size: number;
|
|
1199
|
+
processDefinitionId: string | null;
|
|
1200
|
+
processInstanceKey: string | null;
|
|
1201
|
+
customProperties: Record<string, unknown>;
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
} | {
|
|
1205
|
+
contentType: "OBJECT";
|
|
1206
|
+
object: unknown;
|
|
1207
|
+
})[];
|
|
987
1208
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
988
1209
|
historyItemKey: string;
|
|
1210
|
+
historyItemId: string;
|
|
989
1211
|
agentInstanceKey: string;
|
|
990
1212
|
elementInstanceKey: string;
|
|
991
1213
|
jobKey: string;
|
|
992
1214
|
jobLease: string;
|
|
993
1215
|
loopIteration: number;
|
|
994
|
-
role: "USER" | "ASSISTANT" | "TOOL_RESULT";
|
|
1216
|
+
role: "USER" | "CONFIGURATION" | "ASSISTANT" | "TOOL_RESULT";
|
|
995
1217
|
content: ({
|
|
996
1218
|
contentType: "TEXT";
|
|
997
1219
|
text: string;
|
|
@@ -1014,7 +1236,7 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
1014
1236
|
};
|
|
1015
1237
|
} | {
|
|
1016
1238
|
contentType: "OBJECT";
|
|
1017
|
-
object:
|
|
1239
|
+
object: unknown;
|
|
1018
1240
|
})[];
|
|
1019
1241
|
toolCalls: {
|
|
1020
1242
|
toolCallId: string;
|
|
@@ -1029,6 +1251,42 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
1029
1251
|
} | null;
|
|
1030
1252
|
commitStatus: "PENDING" | "COMMITTED" | "DISCARDED";
|
|
1031
1253
|
producedAt: string;
|
|
1254
|
+
tools: {
|
|
1255
|
+
name: string;
|
|
1256
|
+
description: string | null;
|
|
1257
|
+
elementId: string | null;
|
|
1258
|
+
}[];
|
|
1259
|
+
model: string | null;
|
|
1260
|
+
provider: string | null;
|
|
1261
|
+
limits: {
|
|
1262
|
+
maxModelCalls: number;
|
|
1263
|
+
maxToolCalls: number;
|
|
1264
|
+
maxTokens: number;
|
|
1265
|
+
};
|
|
1266
|
+
systemPrompt: ({
|
|
1267
|
+
contentType: "TEXT";
|
|
1268
|
+
text: string;
|
|
1269
|
+
} | {
|
|
1270
|
+
contentType: "DOCUMENT";
|
|
1271
|
+
documentReference: {
|
|
1272
|
+
'camunda.document.type': "camunda";
|
|
1273
|
+
storeId: string;
|
|
1274
|
+
documentId: string;
|
|
1275
|
+
contentHash: string | null;
|
|
1276
|
+
metadata: {
|
|
1277
|
+
contentType: string;
|
|
1278
|
+
fileName: string;
|
|
1279
|
+
expiresAt: string | null;
|
|
1280
|
+
size: number;
|
|
1281
|
+
processDefinitionId: string | null;
|
|
1282
|
+
processInstanceKey: string | null;
|
|
1283
|
+
customProperties: Record<string, unknown>;
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
} | {
|
|
1287
|
+
contentType: "OBJECT";
|
|
1288
|
+
object: unknown;
|
|
1289
|
+
})[];
|
|
1032
1290
|
}>, unknown>>;
|
|
1033
1291
|
type QueryAgentInstanceHistoryResponseBody = z.infer<typeof queryAgentInstanceHistoryResponseBodySchema>;
|
|
1034
1292
|
declare const getAgentInstance: {
|
|
@@ -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(),
|
|
@@ -34,6 +51,7 @@ var agentToolSchema = z.object({
|
|
|
34
51
|
});
|
|
35
52
|
var agentInstanceSchema = z.object({
|
|
36
53
|
agentInstanceKey: z.string(),
|
|
54
|
+
agentDefinitionKey: z.string(),
|
|
37
55
|
status: agentInstanceStatusSchema,
|
|
38
56
|
definition: agentInstanceDefinitionSchema,
|
|
39
57
|
metrics: agentInstanceMetricsSchema,
|
|
@@ -54,6 +72,7 @@ var agentInstanceSchema = z.object({
|
|
|
54
72
|
});
|
|
55
73
|
var agentInstanceFilterSchema = z.object({
|
|
56
74
|
agentInstanceKey: basicStringFilterSchema,
|
|
75
|
+
agentDefinitionKey: basicStringFilterSchema,
|
|
57
76
|
status: getEnumFilterSchema(agentInstanceStatusSchema),
|
|
58
77
|
elementId: basicStringFilterSchema,
|
|
59
78
|
processInstanceKey: basicStringFilterSchema,
|
|
@@ -71,6 +90,7 @@ var agentInstanceFilterSchema = z.object({
|
|
|
71
90
|
var queryAgentInstancesRequestBodySchema = getQueryRequestBodySchema({
|
|
72
91
|
sortFields: [
|
|
73
92
|
"agentInstanceKey",
|
|
93
|
+
"agentDefinitionKey",
|
|
74
94
|
"status",
|
|
75
95
|
"elementId",
|
|
76
96
|
"processInstanceKey",
|
|
@@ -88,30 +108,14 @@ var getAgentInstanceResponseBodySchema = agentInstanceSchema;
|
|
|
88
108
|
var agentInstanceHistoryRoleSchema = z.enum([
|
|
89
109
|
"USER",
|
|
90
110
|
"ASSISTANT",
|
|
91
|
-
"TOOL_RESULT"
|
|
111
|
+
"TOOL_RESULT",
|
|
112
|
+
"CONFIGURATION"
|
|
92
113
|
]);
|
|
93
114
|
var agentInstanceHistoryCommitStatusSchema = z.enum([
|
|
94
115
|
"COMMITTED",
|
|
95
116
|
"PENDING",
|
|
96
117
|
"DISCARDED"
|
|
97
118
|
]);
|
|
98
|
-
var agentInstanceTextContentSchema = z.object({
|
|
99
|
-
contentType: z.literal("TEXT"),
|
|
100
|
-
text: z.string()
|
|
101
|
-
});
|
|
102
|
-
var agentInstanceDocumentContentSchema = z.object({
|
|
103
|
-
contentType: z.literal("DOCUMENT"),
|
|
104
|
-
documentReference: documentReferenceSchema
|
|
105
|
-
});
|
|
106
|
-
var agentInstanceObjectContentSchema = z.object({
|
|
107
|
-
contentType: z.literal("OBJECT"),
|
|
108
|
-
object: z.record(z.string(), z.unknown())
|
|
109
|
-
});
|
|
110
|
-
var agentInstanceMessageContentSchema = z.discriminatedUnion("contentType", [
|
|
111
|
-
agentInstanceTextContentSchema,
|
|
112
|
-
agentInstanceDocumentContentSchema,
|
|
113
|
-
agentInstanceObjectContentSchema
|
|
114
|
-
]);
|
|
115
119
|
var agentInstanceToolCallSchema = z.object({
|
|
116
120
|
toolCallId: z.string(),
|
|
117
121
|
toolName: z.string(),
|
|
@@ -125,6 +129,7 @@ var agentInstanceHistoryItemMetricsSchema = z.object({
|
|
|
125
129
|
});
|
|
126
130
|
var agentInstanceHistoryItemSchema = z.object({
|
|
127
131
|
historyItemKey: z.string(),
|
|
132
|
+
historyItemId: z.string(),
|
|
128
133
|
agentInstanceKey: z.string(),
|
|
129
134
|
elementInstanceKey: z.string(),
|
|
130
135
|
jobKey: z.string(),
|
|
@@ -135,7 +140,12 @@ var agentInstanceHistoryItemSchema = z.object({
|
|
|
135
140
|
toolCalls: z.array(agentInstanceToolCallSchema),
|
|
136
141
|
metrics: agentInstanceHistoryItemMetricsSchema.nullable(),
|
|
137
142
|
commitStatus: agentInstanceHistoryCommitStatusSchema,
|
|
138
|
-
producedAt: z.string()
|
|
143
|
+
producedAt: z.string(),
|
|
144
|
+
tools: z.array(agentToolSchema),
|
|
145
|
+
model: z.string().nullable(),
|
|
146
|
+
provider: z.string().nullable(),
|
|
147
|
+
limits: agentInstanceLimitsSchema,
|
|
148
|
+
systemPrompt: z.array(agentInstanceMessageContentSchema)
|
|
139
149
|
});
|
|
140
150
|
var agentInstanceHistoryFilterSchema = z.object({
|
|
141
151
|
historyItemKey: basicStringFilterSchema,
|
|
@@ -62,6 +62,14 @@ var elementInstanceInspectionSchema = z.object({
|
|
|
62
62
|
bpmnProcessId: z.string(),
|
|
63
63
|
details: waitStateDetailsSchema
|
|
64
64
|
});
|
|
65
|
+
var queryElementInstanceInspectionFilterSchema = z.object({
|
|
66
|
+
processInstanceKey: advancedStringFilterSchema,
|
|
67
|
+
rootProcessInstanceKey: advancedStringFilterSchema,
|
|
68
|
+
elementInstanceKey: advancedStringFilterSchema,
|
|
69
|
+
elementId: advancedStringFilterSchema,
|
|
70
|
+
elementType: z.union([waitStateElementTypeSchema, getEnumFilterSchema(waitStateElementTypeSchema)]),
|
|
71
|
+
waitStateType: z.union([waitStateTypeSchema, getEnumFilterSchema(waitStateTypeSchema)])
|
|
72
|
+
}).partial();
|
|
65
73
|
var queryElementInstanceInspectionRequestBodySchema = getQueryRequestBodySchema({
|
|
66
74
|
sortFields: [
|
|
67
75
|
"elementInstanceKey",
|
|
@@ -69,14 +77,7 @@ var queryElementInstanceInspectionRequestBodySchema = getQueryRequestBodySchema(
|
|
|
69
77
|
"rootProcessInstanceKey",
|
|
70
78
|
"elementId"
|
|
71
79
|
],
|
|
72
|
-
filter:
|
|
73
|
-
processInstanceKey: advancedStringFilterSchema,
|
|
74
|
-
rootProcessInstanceKey: advancedStringFilterSchema,
|
|
75
|
-
elementInstanceKey: advancedStringFilterSchema,
|
|
76
|
-
elementId: advancedStringFilterSchema,
|
|
77
|
-
elementType: z.union([waitStateElementTypeSchema, getEnumFilterSchema(waitStateElementTypeSchema)]),
|
|
78
|
-
waitStateType: z.union([waitStateTypeSchema, getEnumFilterSchema(waitStateTypeSchema)])
|
|
79
|
-
}).partial()
|
|
80
|
+
filter: queryElementInstanceInspectionFilterSchema
|
|
80
81
|
});
|
|
81
82
|
var queryElementInstanceInspectionResponseBodySchema = getQueryResponseBodySchema(elementInstanceInspectionSchema);
|
|
82
83
|
var queryElementInstanceInspection = {
|
|
@@ -27,13 +27,14 @@ var getIncidentProcessInstanceStatisticsByErrorRequestBodySchema = getQueryReque
|
|
|
27
27
|
sortFields: ["errorMessage", "activeInstancesWithErrorCount"],
|
|
28
28
|
filter: z.never()
|
|
29
29
|
});
|
|
30
|
+
var incidentProcessInstanceStatisticsByDefinitionFilterSchema = z.object({ errorHashCode: z.number() });
|
|
30
31
|
var getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema = getQueryRequestBodySchema({
|
|
31
32
|
sortFields: [
|
|
32
33
|
"processDefinitionKey",
|
|
33
34
|
"activeInstancesWithErrorCount",
|
|
34
35
|
"tenantId"
|
|
35
36
|
],
|
|
36
|
-
filter:
|
|
37
|
+
filter: incidentProcessInstanceStatisticsByDefinitionFilterSchema
|
|
37
38
|
});
|
|
38
39
|
var getIncidentProcessInstanceStatisticsByErrorResponseBodySchema = getQueryResponseBodySchema(incidentProcessInstanceStatisticsByErrorSchema);
|
|
39
40
|
var getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema = getQueryResponseBodySchema(incidentProcessInstanceStatisticsByDefinitionSchema);
|
|
@@ -120,6 +120,10 @@ var processDefinitionInstanceVersionStatisticsSchema = z.object({
|
|
|
120
120
|
activeInstancesWithoutIncidentCount: z.number(),
|
|
121
121
|
tenantId: z.string()
|
|
122
122
|
});
|
|
123
|
+
var processDefinitionVersionStatisticsFilterFieldsSchema = z.object({
|
|
124
|
+
processDefinitionId: z.string(),
|
|
125
|
+
tenantId: z.string().nullable()
|
|
126
|
+
});
|
|
123
127
|
var getProcessDefinitionInstanceVersionStatisticsRequestBodySchema = getQueryRequestBodySchema({
|
|
124
128
|
sortFields: [
|
|
125
129
|
"processDefinitionId",
|
|
@@ -129,10 +133,7 @@ var getProcessDefinitionInstanceVersionStatisticsRequestBodySchema = getQueryReq
|
|
|
129
133
|
"activeInstancesWithIncidentCount",
|
|
130
134
|
"activeInstancesWithoutIncidentCount"
|
|
131
135
|
],
|
|
132
|
-
filter:
|
|
133
|
-
processDefinitionId: z.string(),
|
|
134
|
-
tenantId: z.string().nullable()
|
|
135
|
-
})
|
|
136
|
+
filter: processDefinitionVersionStatisticsFilterFieldsSchema
|
|
136
137
|
});
|
|
137
138
|
var getProcessDefinitionInstanceVersionStatisticsResponseBodySchema = getQueryResponseBodySchema(processDefinitionInstanceVersionStatisticsSchema);
|
|
138
139
|
var getProcessDefinitionInstanceVersionStatistics = {
|
|
@@ -26,7 +26,7 @@ var adHocSubProcessActivityFilterSchema = z.object({
|
|
|
26
26
|
adHocSubProcessId: z.string()
|
|
27
27
|
});
|
|
28
28
|
var queryActivatableActivitiesRequestBodySchema = z.object({ filter: adHocSubProcessActivityFilterSchema });
|
|
29
|
-
var
|
|
29
|
+
var activatableActivitySchema = z.object({
|
|
30
30
|
processDefinitionKey: z.string(),
|
|
31
31
|
processDefinitionId: z.string(),
|
|
32
32
|
adHocSubProcessId: z.string(),
|
|
@@ -35,7 +35,8 @@ var queryActivatableActivitiesResponseBodySchema = getCollectionResponseBodySche
|
|
|
35
35
|
type: activityTypeSchema,
|
|
36
36
|
documentation: z.string(),
|
|
37
37
|
tenantId: z.string()
|
|
38
|
-
})
|
|
38
|
+
});
|
|
39
|
+
var queryActivatableActivitiesResponseBodySchema = getCollectionResponseBodySchema(activatableActivitySchema);
|
|
39
40
|
var activateActivityWithinAdHocSubProcessRequestBodySchema = z.object({ elementId: z.string() });
|
|
40
41
|
var activateActivityWithinAdHocSubProcessResponseBodySchema = z.object({ elements: z.array(z.object({ elementId: z.string() })) });
|
|
41
42
|
var queryActivatableActivities = {
|
|
@@ -105,6 +105,10 @@ var processDefinitionInstanceVersionStatisticsSchema = z.object({
|
|
|
105
105
|
activeInstancesWithoutIncidentCount: z.number(),
|
|
106
106
|
tenantId: z.string().optional()
|
|
107
107
|
});
|
|
108
|
+
var processDefinitionVersionStatisticsFilterFieldsSchema = z.object({
|
|
109
|
+
processDefinitionId: z.string(),
|
|
110
|
+
tenantId: z.string().optional()
|
|
111
|
+
});
|
|
108
112
|
var getProcessDefinitionInstanceVersionStatisticsRequestBodySchema = getQueryRequestBodySchema({
|
|
109
113
|
sortFields: [
|
|
110
114
|
"processDefinitionId",
|
|
@@ -114,10 +118,7 @@ var getProcessDefinitionInstanceVersionStatisticsRequestBodySchema = getQueryReq
|
|
|
114
118
|
"activeInstancesWithIncidentCount",
|
|
115
119
|
"activeInstancesWithoutIncidentCount"
|
|
116
120
|
],
|
|
117
|
-
filter:
|
|
118
|
-
processDefinitionId: z.string(),
|
|
119
|
-
tenantId: z.string().optional()
|
|
120
|
-
})
|
|
121
|
+
filter: processDefinitionVersionStatisticsFilterFieldsSchema
|
|
121
122
|
});
|
|
122
123
|
var getProcessDefinitionInstanceVersionStatisticsResponseBodySchema = getQueryResponseBodySchema(processDefinitionInstanceVersionStatisticsSchema);
|
|
123
124
|
var getProcessDefinitionInstanceVersionStatistics = {
|
|
@@ -26,7 +26,7 @@ var adHocSubProcessActivityFilterSchema = z.object({
|
|
|
26
26
|
adHocSubProcessId: z.string()
|
|
27
27
|
});
|
|
28
28
|
var queryActivatableActivitiesRequestBodySchema = z.object({ filter: adHocSubProcessActivityFilterSchema });
|
|
29
|
-
var
|
|
29
|
+
var activatableActivitySchema = z.object({
|
|
30
30
|
processDefinitionKey: z.string(),
|
|
31
31
|
processDefinitionId: z.string(),
|
|
32
32
|
adHocSubProcessId: z.string(),
|
|
@@ -35,7 +35,8 @@ var queryActivatableActivitiesResponseBodySchema = getCollectionResponseBodySche
|
|
|
35
35
|
type: activityTypeSchema,
|
|
36
36
|
documentation: z.string(),
|
|
37
37
|
tenantId: z.string()
|
|
38
|
-
})
|
|
38
|
+
});
|
|
39
|
+
var queryActivatableActivitiesResponseBodySchema = getCollectionResponseBodySchema(activatableActivitySchema);
|
|
39
40
|
var activateActivityWithinAdHocSubProcessRequestBodySchema = z.object({ elementId: z.string() });
|
|
40
41
|
var activateActivityWithinAdHocSubProcessResponseBodySchema = z.void();
|
|
41
42
|
var activateAdHocSubProcessActivities = {
|
|
@@ -27,13 +27,14 @@ var getIncidentProcessInstanceStatisticsByErrorRequestBodySchema = getQueryReque
|
|
|
27
27
|
sortFields: ["errorMessage", "activeInstancesWithErrorCount"],
|
|
28
28
|
filter: z.never()
|
|
29
29
|
});
|
|
30
|
+
var incidentProcessInstanceStatisticsByDefinitionFilterSchema = z.object({ errorHashCode: z.number() });
|
|
30
31
|
var getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema = getQueryRequestBodySchema({
|
|
31
32
|
sortFields: [
|
|
32
33
|
"processDefinitionKey",
|
|
33
34
|
"activeInstancesWithErrorCount",
|
|
34
35
|
"tenantId"
|
|
35
36
|
],
|
|
36
|
-
filter:
|
|
37
|
+
filter: incidentProcessInstanceStatisticsByDefinitionFilterSchema
|
|
37
38
|
});
|
|
38
39
|
var getIncidentProcessInstanceStatisticsByErrorResponseBodySchema = getQueryResponseBodySchema(incidentProcessInstanceStatisticsByErrorSchema);
|
|
39
40
|
var getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema = getQueryResponseBodySchema(incidentProcessInstanceStatisticsByDefinitionSchema);
|
|
@@ -120,6 +120,10 @@ var processDefinitionInstanceVersionStatisticsSchema = z.object({
|
|
|
120
120
|
activeInstancesWithoutIncidentCount: z.number(),
|
|
121
121
|
tenantId: z.string()
|
|
122
122
|
});
|
|
123
|
+
var processDefinitionVersionStatisticsFilterFieldsSchema = z.object({
|
|
124
|
+
processDefinitionId: z.string(),
|
|
125
|
+
tenantId: z.string().nullable()
|
|
126
|
+
});
|
|
123
127
|
var getProcessDefinitionInstanceVersionStatisticsRequestBodySchema = getQueryRequestBodySchema({
|
|
124
128
|
sortFields: [
|
|
125
129
|
"processDefinitionId",
|
|
@@ -129,10 +133,7 @@ var getProcessDefinitionInstanceVersionStatisticsRequestBodySchema = getQueryReq
|
|
|
129
133
|
"activeInstancesWithIncidentCount",
|
|
130
134
|
"activeInstancesWithoutIncidentCount"
|
|
131
135
|
],
|
|
132
|
-
filter:
|
|
133
|
-
processDefinitionId: z.string(),
|
|
134
|
-
tenantId: z.string().nullable()
|
|
135
|
-
})
|
|
136
|
+
filter: processDefinitionVersionStatisticsFilterFieldsSchema
|
|
136
137
|
});
|
|
137
138
|
var getProcessDefinitionInstanceVersionStatisticsResponseBodySchema = getQueryResponseBodySchema(processDefinitionInstanceVersionStatisticsSchema);
|
|
138
139
|
var getProcessDefinitionInstanceVersionStatistics = {
|
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>",
|
|
@@ -607,10 +607,10 @@
|
|
|
607
607
|
},
|
|
608
608
|
"packageManager": "npm@12.0.2",
|
|
609
609
|
"devDependencies": {
|
|
610
|
-
"@types/node": "26.
|
|
610
|
+
"@types/node": "26.2.0",
|
|
611
611
|
"changelogen": "0.6.2",
|
|
612
612
|
"typescript": "7.0.2",
|
|
613
|
-
"vite": "8.1
|
|
613
|
+
"vite": "8.2.1",
|
|
614
614
|
"vite-plugin-circular-dependency": "0.6.0",
|
|
615
615
|
"vite-plugin-dts": "5.0.3",
|
|
616
616
|
"zod": "^4.4.3"
|