@camunda/camunda-api-zod-schemas 0.0.88 → 0.0.89
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 +151 -8
- package/dist/8.10/agent-instance.js +13 -3
- 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 = {
|
|
@@ -36,6 +36,7 @@ declare const agentToolSchema: z.ZodObject<{
|
|
|
36
36
|
type AgentTool = z.infer<typeof agentToolSchema>;
|
|
37
37
|
declare const agentInstanceSchema: z.ZodObject<{
|
|
38
38
|
agentInstanceKey: z.ZodString;
|
|
39
|
+
agentDefinitionKey: z.ZodString;
|
|
39
40
|
status: z.ZodEnum<{
|
|
40
41
|
UNKNOWN: "UNKNOWN";
|
|
41
42
|
COMPLETED: "COMPLETED";
|
|
@@ -88,6 +89,13 @@ declare const agentInstanceFilterSchema: z.ZodObject<{
|
|
|
88
89
|
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
90
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
91
|
}, z.core.$strip>, z.ZodString]>>;
|
|
92
|
+
agentDefinitionKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
93
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
94
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
95
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
97
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
91
99
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
92
100
|
UNKNOWN: "UNKNOWN";
|
|
93
101
|
COMPLETED: "COMPLETED";
|
|
@@ -247,6 +255,7 @@ declare const queryAgentInstancesRequestBodySchema: z.ZodObject<{
|
|
|
247
255
|
completionDate: "completionDate";
|
|
248
256
|
rootProcessInstanceKey: "rootProcessInstanceKey";
|
|
249
257
|
agentInstanceKey: "agentInstanceKey";
|
|
258
|
+
agentDefinitionKey: "agentDefinitionKey";
|
|
250
259
|
}>;
|
|
251
260
|
order: z.ZodOptional<z.ZodEnum<{
|
|
252
261
|
asc: "asc";
|
|
@@ -267,6 +276,13 @@ declare const queryAgentInstancesRequestBodySchema: z.ZodObject<{
|
|
|
267
276
|
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
268
277
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
278
|
}, z.core.$strip>, z.ZodString]>>;
|
|
279
|
+
agentDefinitionKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
280
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
281
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
282
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
284
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
270
286
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
271
287
|
UNKNOWN: "UNKNOWN";
|
|
272
288
|
COMPLETED: "COMPLETED";
|
|
@@ -416,6 +432,7 @@ declare const queryAgentInstancesRequestBodySchema: z.ZodObject<{
|
|
|
416
432
|
type QueryAgentInstancesRequestBody = z.infer<typeof queryAgentInstancesRequestBodySchema>;
|
|
417
433
|
declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
418
434
|
agentInstanceKey: string;
|
|
435
|
+
agentDefinitionKey: string;
|
|
419
436
|
status: "UNKNOWN" | "COMPLETED" | "IDLE" | "INITIALIZING" | "THINKING" | "TOOL_CALLING" | "TOOL_DISCOVERY";
|
|
420
437
|
definition: {
|
|
421
438
|
model: string;
|
|
@@ -452,6 +469,7 @@ declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common'
|
|
|
452
469
|
elementInstanceKeys: string[];
|
|
453
470
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
454
471
|
agentInstanceKey: string;
|
|
472
|
+
agentDefinitionKey: string;
|
|
455
473
|
status: "UNKNOWN" | "COMPLETED" | "IDLE" | "INITIALIZING" | "THINKING" | "TOOL_CALLING" | "TOOL_DISCOVERY";
|
|
456
474
|
definition: {
|
|
457
475
|
model: string;
|
|
@@ -490,6 +508,7 @@ declare const queryAgentInstancesResponseBodySchema: z.ZodType<import('./common'
|
|
|
490
508
|
type QueryAgentInstancesResponseBody = z.infer<typeof queryAgentInstancesResponseBodySchema>;
|
|
491
509
|
declare const getAgentInstanceResponseBodySchema: z.ZodObject<{
|
|
492
510
|
agentInstanceKey: z.ZodString;
|
|
511
|
+
agentDefinitionKey: z.ZodString;
|
|
493
512
|
status: z.ZodEnum<{
|
|
494
513
|
UNKNOWN: "UNKNOWN";
|
|
495
514
|
COMPLETED: "COMPLETED";
|
|
@@ -536,6 +555,7 @@ declare const getAgentInstanceResponseBodySchema: z.ZodObject<{
|
|
|
536
555
|
type GetAgentInstanceResponseBody = z.infer<typeof getAgentInstanceResponseBodySchema>;
|
|
537
556
|
declare const agentInstanceHistoryRoleSchema: z.ZodEnum<{
|
|
538
557
|
USER: "USER";
|
|
558
|
+
CONFIGURATION: "CONFIGURATION";
|
|
539
559
|
ASSISTANT: "ASSISTANT";
|
|
540
560
|
TOOL_RESULT: "TOOL_RESULT";
|
|
541
561
|
}>;
|
|
@@ -572,7 +592,7 @@ declare const agentInstanceDocumentContentSchema: z.ZodObject<{
|
|
|
572
592
|
type AgentInstanceDocumentContent = z.infer<typeof agentInstanceDocumentContentSchema>;
|
|
573
593
|
declare const agentInstanceObjectContentSchema: z.ZodObject<{
|
|
574
594
|
contentType: z.ZodLiteral<"OBJECT">;
|
|
575
|
-
object: z.
|
|
595
|
+
object: z.ZodUnknown;
|
|
576
596
|
}, z.core.$strip>;
|
|
577
597
|
type AgentInstanceObjectContent = z.infer<typeof agentInstanceObjectContentSchema>;
|
|
578
598
|
declare const agentInstanceMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -597,7 +617,7 @@ declare const agentInstanceMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
597
617
|
}, z.core.$strip>;
|
|
598
618
|
}, z.core.$strip>, z.ZodObject<{
|
|
599
619
|
contentType: z.ZodLiteral<"OBJECT">;
|
|
600
|
-
object: z.
|
|
620
|
+
object: z.ZodUnknown;
|
|
601
621
|
}, z.core.$strip>], "contentType">;
|
|
602
622
|
type AgentInstanceMessageContent = z.infer<typeof agentInstanceMessageContentSchema>;
|
|
603
623
|
declare const agentInstanceToolCallSchema: z.ZodObject<{
|
|
@@ -615,6 +635,7 @@ declare const agentInstanceHistoryItemMetricsSchema: z.ZodObject<{
|
|
|
615
635
|
type AgentInstanceHistoryItemMetrics = z.infer<typeof agentInstanceHistoryItemMetricsSchema>;
|
|
616
636
|
declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
617
637
|
historyItemKey: z.ZodString;
|
|
638
|
+
historyItemId: z.ZodString;
|
|
618
639
|
agentInstanceKey: z.ZodString;
|
|
619
640
|
elementInstanceKey: z.ZodString;
|
|
620
641
|
jobKey: z.ZodString;
|
|
@@ -622,6 +643,7 @@ declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
|
622
643
|
loopIteration: z.ZodNumber;
|
|
623
644
|
role: z.ZodEnum<{
|
|
624
645
|
USER: "USER";
|
|
646
|
+
CONFIGURATION: "CONFIGURATION";
|
|
625
647
|
ASSISTANT: "ASSISTANT";
|
|
626
648
|
TOOL_RESULT: "TOOL_RESULT";
|
|
627
649
|
}>;
|
|
@@ -647,7 +669,7 @@ declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
|
647
669
|
}, z.core.$strip>;
|
|
648
670
|
}, z.core.$strip>, z.ZodObject<{
|
|
649
671
|
contentType: z.ZodLiteral<"OBJECT">;
|
|
650
|
-
object: z.
|
|
672
|
+
object: z.ZodUnknown;
|
|
651
673
|
}, z.core.$strip>], "contentType">>;
|
|
652
674
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
653
675
|
toolCallId: z.ZodString;
|
|
@@ -666,6 +688,42 @@ declare const agentInstanceHistoryItemSchema: z.ZodObject<{
|
|
|
666
688
|
DISCARDED: "DISCARDED";
|
|
667
689
|
}>;
|
|
668
690
|
producedAt: z.ZodString;
|
|
691
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
692
|
+
name: z.ZodString;
|
|
693
|
+
description: z.ZodNullable<z.ZodString>;
|
|
694
|
+
elementId: z.ZodNullable<z.ZodString>;
|
|
695
|
+
}, z.core.$strip>>;
|
|
696
|
+
model: z.ZodNullable<z.ZodString>;
|
|
697
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
698
|
+
limits: z.ZodObject<{
|
|
699
|
+
maxModelCalls: z.ZodNumber;
|
|
700
|
+
maxToolCalls: z.ZodNumber;
|
|
701
|
+
maxTokens: z.ZodNumber;
|
|
702
|
+
}, z.core.$strip>;
|
|
703
|
+
systemPrompt: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
704
|
+
contentType: z.ZodLiteral<"TEXT">;
|
|
705
|
+
text: z.ZodString;
|
|
706
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
707
|
+
contentType: z.ZodLiteral<"DOCUMENT">;
|
|
708
|
+
documentReference: z.ZodObject<{
|
|
709
|
+
'camunda.document.type': z.ZodLiteral<"camunda">;
|
|
710
|
+
storeId: z.ZodString;
|
|
711
|
+
documentId: z.ZodString;
|
|
712
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
713
|
+
metadata: z.ZodObject<{
|
|
714
|
+
contentType: z.ZodString;
|
|
715
|
+
fileName: z.ZodString;
|
|
716
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
717
|
+
size: z.ZodNumber;
|
|
718
|
+
processDefinitionId: z.ZodNullable<z.ZodString>;
|
|
719
|
+
processInstanceKey: z.ZodNullable<z.ZodString>;
|
|
720
|
+
customProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
721
|
+
}, z.core.$strip>;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
724
|
+
contentType: z.ZodLiteral<"OBJECT">;
|
|
725
|
+
object: z.ZodUnknown;
|
|
726
|
+
}, z.core.$strip>], "contentType">>;
|
|
669
727
|
}, z.core.$strip>;
|
|
670
728
|
type AgentInstanceHistoryItem = z.infer<typeof agentInstanceHistoryItemSchema>;
|
|
671
729
|
declare const agentInstanceHistoryFilterSchema: z.ZodObject<{
|
|
@@ -678,27 +736,32 @@ declare const agentInstanceHistoryFilterSchema: z.ZodObject<{
|
|
|
678
736
|
}, z.core.$strip>, z.ZodString]>>;
|
|
679
737
|
role: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
680
738
|
USER: "USER";
|
|
739
|
+
CONFIGURATION: "CONFIGURATION";
|
|
681
740
|
ASSISTANT: "ASSISTANT";
|
|
682
741
|
TOOL_RESULT: "TOOL_RESULT";
|
|
683
742
|
}>, z.ZodObject<{
|
|
684
743
|
$eq: z.ZodOptional<z.ZodEnum<{
|
|
685
744
|
USER: "USER";
|
|
745
|
+
CONFIGURATION: "CONFIGURATION";
|
|
686
746
|
ASSISTANT: "ASSISTANT";
|
|
687
747
|
TOOL_RESULT: "TOOL_RESULT";
|
|
688
748
|
}>>;
|
|
689
749
|
$neq: z.ZodOptional<z.ZodEnum<{
|
|
690
750
|
USER: "USER";
|
|
751
|
+
CONFIGURATION: "CONFIGURATION";
|
|
691
752
|
ASSISTANT: "ASSISTANT";
|
|
692
753
|
TOOL_RESULT: "TOOL_RESULT";
|
|
693
754
|
}>>;
|
|
694
755
|
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
695
756
|
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
696
757
|
USER: "USER";
|
|
758
|
+
CONFIGURATION: "CONFIGURATION";
|
|
697
759
|
ASSISTANT: "ASSISTANT";
|
|
698
760
|
TOOL_RESULT: "TOOL_RESULT";
|
|
699
761
|
}>>>;
|
|
700
762
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
701
763
|
USER: "USER";
|
|
764
|
+
CONFIGURATION: "CONFIGURATION";
|
|
702
765
|
ASSISTANT: "ASSISTANT";
|
|
703
766
|
TOOL_RESULT: "TOOL_RESULT";
|
|
704
767
|
}>>>;
|
|
@@ -775,6 +838,7 @@ declare const createAgentInstanceHistoryItemRequestBodySchema: z.ZodObject<{
|
|
|
775
838
|
loopIteration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
776
839
|
role: z.ZodEnum<{
|
|
777
840
|
USER: "USER";
|
|
841
|
+
CONFIGURATION: "CONFIGURATION";
|
|
778
842
|
ASSISTANT: "ASSISTANT";
|
|
779
843
|
TOOL_RESULT: "TOOL_RESULT";
|
|
780
844
|
}>;
|
|
@@ -800,7 +864,7 @@ declare const createAgentInstanceHistoryItemRequestBodySchema: z.ZodObject<{
|
|
|
800
864
|
}, z.core.$strip>;
|
|
801
865
|
}, z.core.$strip>, z.ZodObject<{
|
|
802
866
|
contentType: z.ZodLiteral<"OBJECT">;
|
|
803
|
-
object: z.
|
|
867
|
+
object: z.ZodUnknown;
|
|
804
868
|
}, z.core.$strip>], "contentType">>;
|
|
805
869
|
toolCalls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
806
870
|
toolCallId: z.ZodString;
|
|
@@ -848,27 +912,32 @@ declare const queryAgentInstanceHistoryRequestBodySchema: z.ZodObject<{
|
|
|
848
912
|
}, z.core.$strip>, z.ZodString]>>;
|
|
849
913
|
role: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
850
914
|
USER: "USER";
|
|
915
|
+
CONFIGURATION: "CONFIGURATION";
|
|
851
916
|
ASSISTANT: "ASSISTANT";
|
|
852
917
|
TOOL_RESULT: "TOOL_RESULT";
|
|
853
918
|
}>, z.ZodObject<{
|
|
854
919
|
$eq: z.ZodOptional<z.ZodEnum<{
|
|
855
920
|
USER: "USER";
|
|
921
|
+
CONFIGURATION: "CONFIGURATION";
|
|
856
922
|
ASSISTANT: "ASSISTANT";
|
|
857
923
|
TOOL_RESULT: "TOOL_RESULT";
|
|
858
924
|
}>>;
|
|
859
925
|
$neq: z.ZodOptional<z.ZodEnum<{
|
|
860
926
|
USER: "USER";
|
|
927
|
+
CONFIGURATION: "CONFIGURATION";
|
|
861
928
|
ASSISTANT: "ASSISTANT";
|
|
862
929
|
TOOL_RESULT: "TOOL_RESULT";
|
|
863
930
|
}>>;
|
|
864
931
|
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
865
932
|
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
866
933
|
USER: "USER";
|
|
934
|
+
CONFIGURATION: "CONFIGURATION";
|
|
867
935
|
ASSISTANT: "ASSISTANT";
|
|
868
936
|
TOOL_RESULT: "TOOL_RESULT";
|
|
869
937
|
}>>>;
|
|
870
938
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
871
939
|
USER: "USER";
|
|
940
|
+
CONFIGURATION: "CONFIGURATION";
|
|
872
941
|
ASSISTANT: "ASSISTANT";
|
|
873
942
|
TOOL_RESULT: "TOOL_RESULT";
|
|
874
943
|
}>>>;
|
|
@@ -941,12 +1010,13 @@ declare const queryAgentInstanceHistoryRequestBodySchema: z.ZodObject<{
|
|
|
941
1010
|
type QueryAgentInstanceHistoryRequestBody = z.infer<typeof queryAgentInstanceHistoryRequestBodySchema>;
|
|
942
1011
|
declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
943
1012
|
historyItemKey: string;
|
|
1013
|
+
historyItemId: string;
|
|
944
1014
|
agentInstanceKey: string;
|
|
945
1015
|
elementInstanceKey: string;
|
|
946
1016
|
jobKey: string;
|
|
947
1017
|
jobLease: string;
|
|
948
1018
|
loopIteration: number;
|
|
949
|
-
role: "USER" | "ASSISTANT" | "TOOL_RESULT";
|
|
1019
|
+
role: "USER" | "CONFIGURATION" | "ASSISTANT" | "TOOL_RESULT";
|
|
950
1020
|
content: ({
|
|
951
1021
|
contentType: "TEXT";
|
|
952
1022
|
text: string;
|
|
@@ -969,7 +1039,7 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
969
1039
|
};
|
|
970
1040
|
} | {
|
|
971
1041
|
contentType: "OBJECT";
|
|
972
|
-
object:
|
|
1042
|
+
object: unknown;
|
|
973
1043
|
})[];
|
|
974
1044
|
toolCalls: {
|
|
975
1045
|
toolCallId: string;
|
|
@@ -984,14 +1054,51 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
984
1054
|
} | null;
|
|
985
1055
|
commitStatus: "PENDING" | "COMMITTED" | "DISCARDED";
|
|
986
1056
|
producedAt: string;
|
|
1057
|
+
tools: {
|
|
1058
|
+
name: string;
|
|
1059
|
+
description: string | null;
|
|
1060
|
+
elementId: string | null;
|
|
1061
|
+
}[];
|
|
1062
|
+
model: string | null;
|
|
1063
|
+
provider: string | null;
|
|
1064
|
+
limits: {
|
|
1065
|
+
maxModelCalls: number;
|
|
1066
|
+
maxToolCalls: number;
|
|
1067
|
+
maxTokens: number;
|
|
1068
|
+
};
|
|
1069
|
+
systemPrompt: ({
|
|
1070
|
+
contentType: "TEXT";
|
|
1071
|
+
text: string;
|
|
1072
|
+
} | {
|
|
1073
|
+
contentType: "DOCUMENT";
|
|
1074
|
+
documentReference: {
|
|
1075
|
+
'camunda.document.type': "camunda";
|
|
1076
|
+
storeId: string;
|
|
1077
|
+
documentId: string;
|
|
1078
|
+
contentHash: string | null;
|
|
1079
|
+
metadata: {
|
|
1080
|
+
contentType: string;
|
|
1081
|
+
fileName: string;
|
|
1082
|
+
expiresAt: string | null;
|
|
1083
|
+
size: number;
|
|
1084
|
+
processDefinitionId: string | null;
|
|
1085
|
+
processInstanceKey: string | null;
|
|
1086
|
+
customProperties: Record<string, unknown>;
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
} | {
|
|
1090
|
+
contentType: "OBJECT";
|
|
1091
|
+
object: unknown;
|
|
1092
|
+
})[];
|
|
987
1093
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
988
1094
|
historyItemKey: string;
|
|
1095
|
+
historyItemId: string;
|
|
989
1096
|
agentInstanceKey: string;
|
|
990
1097
|
elementInstanceKey: string;
|
|
991
1098
|
jobKey: string;
|
|
992
1099
|
jobLease: string;
|
|
993
1100
|
loopIteration: number;
|
|
994
|
-
role: "USER" | "ASSISTANT" | "TOOL_RESULT";
|
|
1101
|
+
role: "USER" | "CONFIGURATION" | "ASSISTANT" | "TOOL_RESULT";
|
|
995
1102
|
content: ({
|
|
996
1103
|
contentType: "TEXT";
|
|
997
1104
|
text: string;
|
|
@@ -1014,7 +1121,7 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
1014
1121
|
};
|
|
1015
1122
|
} | {
|
|
1016
1123
|
contentType: "OBJECT";
|
|
1017
|
-
object:
|
|
1124
|
+
object: unknown;
|
|
1018
1125
|
})[];
|
|
1019
1126
|
toolCalls: {
|
|
1020
1127
|
toolCallId: string;
|
|
@@ -1029,6 +1136,42 @@ declare const queryAgentInstanceHistoryResponseBodySchema: z.ZodType<import('./c
|
|
|
1029
1136
|
} | null;
|
|
1030
1137
|
commitStatus: "PENDING" | "COMMITTED" | "DISCARDED";
|
|
1031
1138
|
producedAt: string;
|
|
1139
|
+
tools: {
|
|
1140
|
+
name: string;
|
|
1141
|
+
description: string | null;
|
|
1142
|
+
elementId: string | null;
|
|
1143
|
+
}[];
|
|
1144
|
+
model: string | null;
|
|
1145
|
+
provider: string | null;
|
|
1146
|
+
limits: {
|
|
1147
|
+
maxModelCalls: number;
|
|
1148
|
+
maxToolCalls: number;
|
|
1149
|
+
maxTokens: number;
|
|
1150
|
+
};
|
|
1151
|
+
systemPrompt: ({
|
|
1152
|
+
contentType: "TEXT";
|
|
1153
|
+
text: string;
|
|
1154
|
+
} | {
|
|
1155
|
+
contentType: "DOCUMENT";
|
|
1156
|
+
documentReference: {
|
|
1157
|
+
'camunda.document.type': "camunda";
|
|
1158
|
+
storeId: string;
|
|
1159
|
+
documentId: string;
|
|
1160
|
+
contentHash: string | null;
|
|
1161
|
+
metadata: {
|
|
1162
|
+
contentType: string;
|
|
1163
|
+
fileName: string;
|
|
1164
|
+
expiresAt: string | null;
|
|
1165
|
+
size: number;
|
|
1166
|
+
processDefinitionId: string | null;
|
|
1167
|
+
processInstanceKey: string | null;
|
|
1168
|
+
customProperties: Record<string, unknown>;
|
|
1169
|
+
};
|
|
1170
|
+
};
|
|
1171
|
+
} | {
|
|
1172
|
+
contentType: "OBJECT";
|
|
1173
|
+
object: unknown;
|
|
1174
|
+
})[];
|
|
1032
1175
|
}>, unknown>>;
|
|
1033
1176
|
type QueryAgentInstanceHistoryResponseBody = z.infer<typeof queryAgentInstanceHistoryResponseBodySchema>;
|
|
1034
1177
|
declare const getAgentInstance: {
|
|
@@ -34,6 +34,7 @@ var agentToolSchema = z.object({
|
|
|
34
34
|
});
|
|
35
35
|
var agentInstanceSchema = z.object({
|
|
36
36
|
agentInstanceKey: z.string(),
|
|
37
|
+
agentDefinitionKey: z.string(),
|
|
37
38
|
status: agentInstanceStatusSchema,
|
|
38
39
|
definition: agentInstanceDefinitionSchema,
|
|
39
40
|
metrics: agentInstanceMetricsSchema,
|
|
@@ -54,6 +55,7 @@ var agentInstanceSchema = z.object({
|
|
|
54
55
|
});
|
|
55
56
|
var agentInstanceFilterSchema = z.object({
|
|
56
57
|
agentInstanceKey: basicStringFilterSchema,
|
|
58
|
+
agentDefinitionKey: basicStringFilterSchema,
|
|
57
59
|
status: getEnumFilterSchema(agentInstanceStatusSchema),
|
|
58
60
|
elementId: basicStringFilterSchema,
|
|
59
61
|
processInstanceKey: basicStringFilterSchema,
|
|
@@ -71,6 +73,7 @@ var agentInstanceFilterSchema = z.object({
|
|
|
71
73
|
var queryAgentInstancesRequestBodySchema = getQueryRequestBodySchema({
|
|
72
74
|
sortFields: [
|
|
73
75
|
"agentInstanceKey",
|
|
76
|
+
"agentDefinitionKey",
|
|
74
77
|
"status",
|
|
75
78
|
"elementId",
|
|
76
79
|
"processInstanceKey",
|
|
@@ -88,7 +91,8 @@ var getAgentInstanceResponseBodySchema = agentInstanceSchema;
|
|
|
88
91
|
var agentInstanceHistoryRoleSchema = z.enum([
|
|
89
92
|
"USER",
|
|
90
93
|
"ASSISTANT",
|
|
91
|
-
"TOOL_RESULT"
|
|
94
|
+
"TOOL_RESULT",
|
|
95
|
+
"CONFIGURATION"
|
|
92
96
|
]);
|
|
93
97
|
var agentInstanceHistoryCommitStatusSchema = z.enum([
|
|
94
98
|
"COMMITTED",
|
|
@@ -105,7 +109,7 @@ var agentInstanceDocumentContentSchema = z.object({
|
|
|
105
109
|
});
|
|
106
110
|
var agentInstanceObjectContentSchema = z.object({
|
|
107
111
|
contentType: z.literal("OBJECT"),
|
|
108
|
-
object: z.
|
|
112
|
+
object: z.unknown()
|
|
109
113
|
});
|
|
110
114
|
var agentInstanceMessageContentSchema = z.discriminatedUnion("contentType", [
|
|
111
115
|
agentInstanceTextContentSchema,
|
|
@@ -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.89",
|
|
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"
|