@camunda8/orchestration-cluster-api 10.0.0-alpha.4 → 10.0.0-alpha.6

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.
@@ -2,6 +2,98 @@ import "./chunk-DGUM43GV.js";
2
2
 
3
3
  // src/gen/zod.gen.ts
4
4
  import { z } from "zod";
5
+ var zAgentInstanceDefinition = z.object({
6
+ model: z.string().register(z.globalRegistry, {
7
+ description: "The LLM model identifier (for example, gpt-4o)."
8
+ }),
9
+ provider: z.string().register(z.globalRegistry, {
10
+ description: "The LLM provider (for example, openai or anthropic)."
11
+ }),
12
+ systemPrompt: z.string().register(z.globalRegistry, {
13
+ description: "The system prompt configured for this agent instance."
14
+ })
15
+ }).register(z.globalRegistry, {
16
+ description: "The static definition of an agent instance, set once at creation."
17
+ });
18
+ var zAgentTool = z.object({
19
+ name: z.string().register(z.globalRegistry, {
20
+ description: "The tool name as visible to the LLM."
21
+ }),
22
+ description: z.union([
23
+ z.string(),
24
+ z.null()
25
+ ]),
26
+ elementId: z.union([
27
+ z.string(),
28
+ z.null()
29
+ ])
30
+ }).register(z.globalRegistry, {
31
+ description: "A tool available to the agent."
32
+ });
33
+ var zAgentInstanceMetrics = z.object({
34
+ inputTokens: z.coerce.number().int().register(z.globalRegistry, {
35
+ description: "Total input tokens consumed across all model calls."
36
+ }),
37
+ outputTokens: z.coerce.number().int().register(z.globalRegistry, {
38
+ description: "Total output tokens produced across all model calls."
39
+ }),
40
+ modelCalls: z.coerce.number().int().register(z.globalRegistry, {
41
+ description: "Total number of LLM calls made."
42
+ }),
43
+ toolCalls: z.coerce.number().int().register(z.globalRegistry, {
44
+ description: "Total number of tool calls made."
45
+ })
46
+ }).register(z.globalRegistry, {
47
+ description: "Aggregated metrics for an agent instance across all model calls."
48
+ });
49
+ var zAgentInstanceLimits = z.object({
50
+ maxModelCalls: z.coerce.number().int().register(z.globalRegistry, {
51
+ description: "Maximum LLM calls allowed. -1 if no limit is configured."
52
+ }),
53
+ maxToolCalls: z.coerce.number().int().register(z.globalRegistry, {
54
+ description: "Maximum tool calls allowed. -1 if no limit is configured."
55
+ }),
56
+ maxTokens: z.coerce.number().int().register(z.globalRegistry, {
57
+ description: "Maximum total tokens allowed. -1 if no limit is configured."
58
+ })
59
+ }).register(z.globalRegistry, {
60
+ description: "The configured limits for an agent instance, set once at creation."
61
+ });
62
+ var zAgentInstanceStatusEnum = z.enum([
63
+ "COMPLETED",
64
+ "IDLE",
65
+ "INITIALIZING",
66
+ "THINKING",
67
+ "TOOL_CALLING",
68
+ "TOOL_DISCOVERY"
69
+ ]).register(z.globalRegistry, {
70
+ description: "The current status of an agent instance."
71
+ });
72
+ var zAgentInstanceMetricsDelta = z.object({
73
+ inputTokens: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
74
+ description: "Increment to apply to the total input token counter."
75
+ })),
76
+ outputTokens: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
77
+ description: "Increment to apply to the total output token counter."
78
+ })),
79
+ modelCalls: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
80
+ description: "Increment to apply to the total model call counter."
81
+ })),
82
+ toolCalls: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
83
+ description: "Increment to apply to the total tool call counter."
84
+ }))
85
+ }).register(z.globalRegistry, {
86
+ description: "Metric increments to apply to the agent instance aggregate counters. The engine\naccumulates these deltas into running totals on each UPDATED event. All fields\nare optional; omit a field to leave the corresponding counter unchanged.\n"
87
+ });
88
+ var zAgentInstanceUpdateRequest = z.object({
89
+ status: z.optional(zAgentInstanceStatusEnum),
90
+ metrics: z.optional(zAgentInstanceMetricsDelta),
91
+ tools: z.optional(z.array(zAgentTool).register(z.globalRegistry, {
92
+ description: "The complete list of tools available to the agent, replacing any previously\nstored tools. When provided, the engine replaces the existing tool list with\nthis value.\n"
93
+ }))
94
+ }).register(z.globalRegistry, {
95
+ description: "Request to update the mutable state of an agent instance. At least one of\nstatus, metrics, or tools must be provided.\n"
96
+ });
5
97
  var zAuditLogEntityKey = z.string().register(z.globalRegistry, {
6
98
  description: "System-generated entity key for an audit log entry."
7
99
  });
@@ -260,46 +352,11 @@ var zClusterVariableScopeEnum = z.enum([
260
352
  ]).register(z.globalRegistry, {
261
353
  description: "The scope of a cluster variable."
262
354
  });
263
- var zCreateClusterVariableRequest = z.object({
264
- name: z.string().register(z.globalRegistry, {
265
- description: "The name of the cluster variable. Must be unique within its scope (global or tenant-specific)."
266
- }),
267
- value: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
268
- description: "The value of the cluster variable. Can be any JSON object or primitive value. Will be serialized as a JSON string in responses."
269
- })
270
- });
271
355
  var zUpdateClusterVariableRequest = z.object({
272
356
  value: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
273
357
  description: "The new value of the cluster variable. Can be any JSON object or primitive value. Will be serialized as a JSON string in responses."
274
358
  })
275
359
  });
276
- var zClusterVariableResultBase = z.object({
277
- name: z.string().register(z.globalRegistry, {
278
- description: "The name of the cluster variable. Unique within its scope (global or tenant-specific)."
279
- }),
280
- scope: zClusterVariableScopeEnum,
281
- tenantId: z.union([
282
- z.string(),
283
- z.null()
284
- ])
285
- }).register(z.globalRegistry, {
286
- description: "Cluster variable response item."
287
- });
288
- var zClusterVariableResult = zClusterVariableResultBase.and(z.object({
289
- value: z.string().register(z.globalRegistry, {
290
- description: "Full value of this cluster variable."
291
- })
292
- }));
293
- var zClusterVariableSearchResult = zClusterVariableResultBase.and(z.object({
294
- value: z.string().register(z.globalRegistry, {
295
- description: "Value of this cluster variable. Can be truncated."
296
- }),
297
- isTruncated: z.boolean().register(z.globalRegistry, {
298
- description: "Whether the value is truncated or not."
299
- })
300
- }).register(z.globalRegistry, {
301
- description: "Cluster variable search response item."
302
- }));
303
360
  var zPartition = z.object({
304
361
  partitionId: z.int().register(z.globalRegistry, {
305
362
  description: "The unique ID of this partition."
@@ -503,6 +560,19 @@ var zExpressionEvaluationResult = z.object({
503
560
  var zLikeFilter = z.string().register(z.globalRegistry, {
504
561
  description: "Checks if the property matches the provided like value.\n\nSupported wildcard characters are:\n\n* `*`: matches zero, one, or multiple characters.\n* `?`: matches one, single character.\n\nWildcard characters can be escaped with backslash, for instance: `\\*`.\n"
505
562
  });
563
+ var zAdvancedAgentInstanceStatusFilter = z.object({
564
+ "$eq": z.optional(zAgentInstanceStatusEnum),
565
+ "$neq": z.optional(zAgentInstanceStatusEnum),
566
+ "$exists": z.optional(z.boolean().register(z.globalRegistry, {
567
+ description: "Checks if the current property exists."
568
+ })),
569
+ "$in": z.optional(z.array(zAgentInstanceStatusEnum).register(z.globalRegistry, {
570
+ description: "Checks if the property matches any of the provided values."
571
+ })),
572
+ "$like": z.optional(zLikeFilter)
573
+ }).register(z.globalRegistry, {
574
+ description: "Advanced AgentInstanceStatusEnum filter."
575
+ });
506
576
  var zAdvancedEntityTypeFilter = z.object({
507
577
  "$eq": z.optional(zAuditLogEntityTypeEnum),
508
578
  "$neq": z.optional(zAuditLogEntityTypeEnum),
@@ -814,29 +884,6 @@ var zAdvancedGlobalTaskListenerEventTypeFilter = z.object({
814
884
  }).register(z.globalRegistry, {
815
885
  description: "Advanced global listener event type filter."
816
886
  });
817
- var zGroupCreateRequest = z.object({
818
- groupId: z.string().register(z.globalRegistry, {
819
- description: "The ID of the new group."
820
- }),
821
- name: z.string().register(z.globalRegistry, {
822
- description: "The display name of the new group."
823
- }),
824
- description: z.optional(z.string().register(z.globalRegistry, {
825
- description: "The description of the new group."
826
- }))
827
- });
828
- var zGroupCreateResult = z.object({
829
- groupId: z.string().register(z.globalRegistry, {
830
- description: "The ID of the created group."
831
- }),
832
- name: z.string().register(z.globalRegistry, {
833
- description: "The display name of the created group."
834
- }),
835
- description: z.union([
836
- z.string(),
837
- z.null()
838
- ])
839
- });
840
887
  var zGroupUpdateRequest = z.object({
841
888
  name: z.string().register(z.globalRegistry, {
842
889
  description: "The new name of the group."
@@ -845,32 +892,6 @@ var zGroupUpdateRequest = z.object({
845
892
  description: "The new description of the group."
846
893
  }))
847
894
  });
848
- var zGroupUpdateResult = z.object({
849
- groupId: z.string().register(z.globalRegistry, {
850
- description: "The unique external group ID."
851
- }),
852
- name: z.string().register(z.globalRegistry, {
853
- description: "The name of the group."
854
- }),
855
- description: z.union([
856
- z.string(),
857
- z.null()
858
- ])
859
- });
860
- var zGroupResult = z.object({
861
- name: z.string().register(z.globalRegistry, {
862
- description: "The group name."
863
- }),
864
- groupId: z.string().register(z.globalRegistry, {
865
- description: "The group ID."
866
- }),
867
- description: z.union([
868
- z.string(),
869
- z.null()
870
- ])
871
- }).register(z.globalRegistry, {
872
- description: "Group search response item."
873
- });
874
895
  var zGroupFilter = z.object({
875
896
  groupId: z.optional(zStringFilterProperty),
876
897
  name: z.optional(z.string().register(z.globalRegistry, {
@@ -879,11 +900,6 @@ var zGroupFilter = z.object({
879
900
  }).register(z.globalRegistry, {
880
901
  description: "Group filter request"
881
902
  });
882
- var zGroupClientResult = z.object({
883
- clientId: z.string().register(z.globalRegistry, {
884
- description: "The ID of the client."
885
- })
886
- });
887
903
  var zProcessDefinitionId = z.string().min(1).regex(/^[\p{L}_][\p{L}\p{N}_\-\.]*$/u).register(z.globalRegistry, {
888
904
  description: "Id of a process definition, from the model. Only ids of process definitions that are deployed are useful."
889
905
  });
@@ -916,7 +932,7 @@ var zFormId = z.string().register(z.globalRegistry, {
916
932
  var zDecisionDefinitionId = z.string().min(1).regex(/^[\p{L}_][\p{L}\p{N}_\-\.]*$/u).register(z.globalRegistry, {
917
933
  description: "Id of a decision definition, from the model. Only ids of decision definitions that are deployed are useful."
918
934
  });
919
- var zGlobalListenerId = z.string().register(z.globalRegistry, {
935
+ var zGlobalListenerId = z.string().min(1).max(256).regex(/^[a-zA-Z0-9_~@.+\-]+$/).register(z.globalRegistry, {
920
936
  description: "The user-defined id for the global listener"
921
937
  });
922
938
  var zCreateGlobalTaskListenerRequest = zGlobalTaskListenerBase.and(z.object({
@@ -928,7 +944,7 @@ var zGlobalTaskListenerResult = zGlobalTaskListenerBase.and(z.object({
928
944
  source: zGlobalListenerSourceEnum,
929
945
  eventTypes: zGlobalTaskListenerEventTypes
930
946
  }));
931
- var zTenantId = z.string().min(1).max(256).regex(/^(<default>|[A-Za-z0-9_@.+-]+)$/).register(z.globalRegistry, {
947
+ var zTenantId = z.string().min(1).max(31).regex(/^(<default>|[\w\.\-]{1,31})$/).register(z.globalRegistry, {
932
948
  description: "The unique identifier of the tenant."
933
949
  });
934
950
  var zDecisionEvaluationById = z.object({
@@ -938,12 +954,102 @@ var zDecisionEvaluationById = z.object({
938
954
  })),
939
955
  tenantId: z.optional(zTenantId)
940
956
  });
941
- var zUsername = z.string().min(1).max(256).regex(/^(<default>|[A-Za-z0-9_@.+-]+)$/).register(z.globalRegistry, {
957
+ var zUsername = z.string().min(1).max(256).regex(/^[a-zA-Z0-9_~@.+-]+$/).register(z.globalRegistry, {
942
958
  description: "The unique name of a user."
943
959
  });
944
960
  var zGroupUserResult = z.object({
945
961
  username: zUsername
946
962
  });
963
+ var zRoleId = z.string().min(1).max(256).regex(/^[a-zA-Z0-9_~@.+-]+$/).register(z.globalRegistry, {
964
+ description: "The unique identifier of a role."
965
+ });
966
+ var zGroupId = z.string().min(1).max(256).register(z.globalRegistry, {
967
+ description: "The unique identifier of a group."
968
+ });
969
+ var zGroupCreateRequest = z.object({
970
+ groupId: zGroupId,
971
+ name: z.string().register(z.globalRegistry, {
972
+ description: "The display name of the new group."
973
+ }),
974
+ description: z.optional(z.string().register(z.globalRegistry, {
975
+ description: "The description of the new group."
976
+ }))
977
+ });
978
+ var zGroupCreateResult = z.object({
979
+ groupId: zGroupId,
980
+ name: z.string().register(z.globalRegistry, {
981
+ description: "The display name of the created group."
982
+ }),
983
+ description: z.union([
984
+ z.string(),
985
+ z.null()
986
+ ])
987
+ });
988
+ var zGroupUpdateResult = z.object({
989
+ groupId: zGroupId,
990
+ name: z.string().register(z.globalRegistry, {
991
+ description: "The name of the group."
992
+ }),
993
+ description: z.union([
994
+ z.string(),
995
+ z.null()
996
+ ])
997
+ });
998
+ var zGroupResult = z.object({
999
+ name: z.string().register(z.globalRegistry, {
1000
+ description: "The group name."
1001
+ }),
1002
+ groupId: zGroupId,
1003
+ description: z.union([
1004
+ z.string(),
1005
+ z.null()
1006
+ ])
1007
+ }).register(z.globalRegistry, {
1008
+ description: "Group search response item."
1009
+ });
1010
+ var zMappingRuleId = z.string().min(1).max(256).regex(/^[a-zA-Z0-9_~@.+-]+$/).register(z.globalRegistry, {
1011
+ description: "The unique identifier of a mapping rule."
1012
+ });
1013
+ var zClientId = z.string().min(1).max(256).regex(/^[a-zA-Z0-9_~@.+-]+$/).register(z.globalRegistry, {
1014
+ description: "The unique identifier of an OAuth client.\nMinted outside the Camunda REST API: in SaaS by Console, in Self-Managed\nwith OIDC by the external identity provider (e.g. EntraID, Keycloak,\nOkta). In Self-Managed with Basic authentication, machine-to-machine\napplications are modelled as users instead \u2014 see the user identifier.\n"
1015
+ });
1016
+ var zGroupClientResult = z.object({
1017
+ clientId: zClientId
1018
+ });
1019
+ var zClusterVariableName = z.string().min(1).max(256).regex(/^[a-zA-Z0-9_~@.+-]+$/).register(z.globalRegistry, {
1020
+ description: "The name of a cluster variable. Unique within its scope (global or tenant-specific)."
1021
+ });
1022
+ var zCreateClusterVariableRequest = z.object({
1023
+ name: zClusterVariableName,
1024
+ value: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
1025
+ description: "The value of the cluster variable. Can be any JSON object or primitive value. Will be serialized as a JSON string in responses."
1026
+ })
1027
+ });
1028
+ var zClusterVariableResultBase = z.object({
1029
+ name: zClusterVariableName,
1030
+ scope: zClusterVariableScopeEnum,
1031
+ tenantId: z.union([
1032
+ z.string(),
1033
+ z.null()
1034
+ ])
1035
+ }).register(z.globalRegistry, {
1036
+ description: "Cluster variable response item."
1037
+ });
1038
+ var zClusterVariableResult = zClusterVariableResultBase.and(z.object({
1039
+ value: z.string().register(z.globalRegistry, {
1040
+ description: "Full value of this cluster variable."
1041
+ })
1042
+ }));
1043
+ var zClusterVariableSearchResult = zClusterVariableResultBase.and(z.object({
1044
+ value: z.string().register(z.globalRegistry, {
1045
+ description: "Value of this cluster variable. Can be truncated."
1046
+ }),
1047
+ isTruncated: z.boolean().register(z.globalRegistry, {
1048
+ description: "Whether the value is truncated or not."
1049
+ })
1050
+ }).register(z.globalRegistry, {
1051
+ description: "Cluster variable search response item."
1052
+ }));
947
1053
  var zTag = z.string().min(1).max(100).regex(/^[A-Za-z][A-Za-z0-9_\-:.]{0,99}$/).register(z.globalRegistry, {
948
1054
  description: "A tag. Needs to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length \u2264 100."
949
1055
  });
@@ -1578,6 +1684,13 @@ var zIncidentProcessInstanceStatisticsByDefinitionResult = z.object({
1578
1684
  })
1579
1685
  });
1580
1686
  var zElementInstanceKey = zLongKey;
1687
+ var zAgentInstanceCreationRequest = z.object({
1688
+ elementInstanceKey: zElementInstanceKey,
1689
+ definition: zAgentInstanceDefinition,
1690
+ limits: z.optional(zAgentInstanceLimits)
1691
+ }).register(z.globalRegistry, {
1692
+ description: "Request to create a new agent instance."
1693
+ });
1581
1694
  var zUserTaskKey = zLongKey;
1582
1695
  var zFormKey = zLongKey;
1583
1696
  var zDeploymentFormResult = z.object({
@@ -2280,6 +2393,39 @@ var zJobUpdateRequest = z.object({
2280
2393
  changeset: zJobChangeset,
2281
2394
  operationReference: z.optional(zOperationReference)
2282
2395
  });
2396
+ var zAgentInstanceKey = zLongKey;
2397
+ var zAgentInstanceResult = z.object({
2398
+ agentInstanceKey: zAgentInstanceKey,
2399
+ status: zAgentInstanceStatusEnum,
2400
+ definition: zAgentInstanceDefinition,
2401
+ metrics: zAgentInstanceMetrics,
2402
+ limits: zAgentInstanceLimits,
2403
+ tools: z.array(zAgentTool).register(z.globalRegistry, {
2404
+ description: "The tools available to the agent."
2405
+ }),
2406
+ elementId: zElementId,
2407
+ processInstanceKey: zProcessInstanceKey,
2408
+ processDefinitionKey: zProcessDefinitionKey,
2409
+ tenantId: zTenantId,
2410
+ creationDate: z.iso.datetime().register(z.globalRegistry, {
2411
+ description: "The date when this agent instance was created."
2412
+ }),
2413
+ lastUpdatedDate: z.iso.datetime().register(z.globalRegistry, {
2414
+ description: "The date when this agent instance was last updated."
2415
+ }),
2416
+ completionDate: z.union([
2417
+ z.iso.datetime(),
2418
+ z.null()
2419
+ ]),
2420
+ elementInstanceKeys: z.array(zElementInstanceKey).register(z.globalRegistry, {
2421
+ description: "The keys of all element instances associated with this agent instance."
2422
+ })
2423
+ });
2424
+ var zAgentInstanceCreationResult = z.object({
2425
+ agentInstanceKey: zAgentInstanceKey
2426
+ }).register(z.globalRegistry, {
2427
+ description: "Response returned after successfully creating an agent instance."
2428
+ });
2283
2429
  var zAuditLogKey = zLongKey;
2284
2430
  var zAuditLogResult = z.object({
2285
2431
  auditLogKey: zAuditLogKey,
@@ -2510,6 +2656,21 @@ var zAdvancedDecisionEvaluationInstanceKeyFilter = z.object({
2510
2656
  }).register(z.globalRegistry, {
2511
2657
  description: "Advanced DecisionEvaluationInstanceKey filter."
2512
2658
  });
2659
+ var zAdvancedAgentInstanceKeyFilter = z.object({
2660
+ "$eq": z.optional(zAgentInstanceKey),
2661
+ "$neq": z.optional(zAgentInstanceKey),
2662
+ "$exists": z.optional(z.boolean().register(z.globalRegistry, {
2663
+ description: "Checks if the current property exists."
2664
+ })),
2665
+ "$in": z.optional(z.array(zAgentInstanceKey).register(z.globalRegistry, {
2666
+ description: "Checks if the property matches any of the provided values."
2667
+ })),
2668
+ "$notIn": z.optional(z.array(zAgentInstanceKey).register(z.globalRegistry, {
2669
+ description: "Checks if the property matches none of the provided values."
2670
+ }))
2671
+ }).register(z.globalRegistry, {
2672
+ description: "Advanced AgentInstanceKey filter."
2673
+ });
2513
2674
  var zAdvancedAuditLogKeyFilter = z.object({
2514
2675
  "$eq": z.optional(zAuditLogKey),
2515
2676
  "$neq": z.optional(zAuditLogKey),
@@ -2599,9 +2760,7 @@ var zMappingRuleCreateUpdateRequest = z.object({
2599
2760
  })
2600
2761
  });
2601
2762
  var zMappingRuleCreateRequest = zMappingRuleCreateUpdateRequest.and(z.object({
2602
- mappingRuleId: z.string().register(z.globalRegistry, {
2603
- description: "The unique ID of the mapping rule."
2604
- })
2763
+ mappingRuleId: zMappingRuleId
2605
2764
  }));
2606
2765
  var zMappingRuleUpdateRequest = zMappingRuleCreateUpdateRequest;
2607
2766
  var zMappingRuleCreateUpdateResult = z.object({
@@ -2614,9 +2773,7 @@ var zMappingRuleCreateUpdateResult = z.object({
2614
2773
  name: z.string().register(z.globalRegistry, {
2615
2774
  description: "The name of the mapping rule."
2616
2775
  }),
2617
- mappingRuleId: z.string().register(z.globalRegistry, {
2618
- description: "The unique ID of the mapping rule."
2619
- })
2776
+ mappingRuleId: zMappingRuleId
2620
2777
  });
2621
2778
  var zMappingRuleCreateResult = zMappingRuleCreateUpdateResult;
2622
2779
  var zMappingRuleUpdateResult = zMappingRuleCreateUpdateResult;
@@ -2630,9 +2787,7 @@ var zMappingRuleResult = z.object({
2630
2787
  name: z.string().register(z.globalRegistry, {
2631
2788
  description: "The name of the mapping rule."
2632
2789
  }),
2633
- mappingRuleId: z.string().register(z.globalRegistry, {
2634
- description: "The ID of the mapping rule."
2635
- })
2790
+ mappingRuleId: zMappingRuleId
2636
2791
  });
2637
2792
  var zMappingRuleFilter = z.object({
2638
2793
  claimName: z.optional(z.string().register(z.globalRegistry, {
@@ -2644,9 +2799,7 @@ var zMappingRuleFilter = z.object({
2644
2799
  name: z.optional(z.string().register(z.globalRegistry, {
2645
2800
  description: "The name of the mapping rule."
2646
2801
  })),
2647
- mappingRuleId: z.optional(z.string().register(z.globalRegistry, {
2648
- description: "The ID of the mapping rule."
2649
- }))
2802
+ mappingRuleId: z.optional(zMappingRuleId)
2650
2803
  }).register(z.globalRegistry, {
2651
2804
  description: "Mapping rule search filter."
2652
2805
  });
@@ -2753,8 +2906,8 @@ var zMessageSubscriptionResult = z.object({
2753
2906
  z.null()
2754
2907
  ]),
2755
2908
  messageSubscriptionType: zMessageSubscriptionTypeEnum,
2756
- extensionProperties: z.record(z.string(), z.string()).register(z.globalRegistry, {
2757
- description: "The `zeebe:properties` extension properties extracted from the BPMN element associated\nwith this subscription. Empty object when no properties are defined.\n"
2909
+ toolProperties: z.record(z.string(), z.string()).register(z.globalRegistry, {
2910
+ description: "The subset of `zeebe:properties` extension properties whose keys start with the\n`io.camunda.tool:` prefix, extracted from the BPMN element associated with this\nsubscription. Empty object when no matching properties are defined.\n"
2758
2911
  }),
2759
2912
  processDefinitionName: z.union([
2760
2913
  z.string(),
@@ -3322,9 +3475,7 @@ var zAdvancedProcessInstanceStateFilter = z.object({
3322
3475
  description: "Advanced ProcessInstanceStateEnum filter."
3323
3476
  });
3324
3477
  var zRoleCreateRequest = z.object({
3325
- roleId: z.string().register(z.globalRegistry, {
3326
- description: "The ID of the new role."
3327
- }),
3478
+ roleId: zRoleId,
3328
3479
  name: z.string().register(z.globalRegistry, {
3329
3480
  description: "The display name of the new role."
3330
3481
  }),
@@ -3333,9 +3484,7 @@ var zRoleCreateRequest = z.object({
3333
3484
  }))
3334
3485
  });
3335
3486
  var zRoleCreateResult = z.object({
3336
- roleId: z.string().register(z.globalRegistry, {
3337
- description: "The ID of the created role."
3338
- }),
3487
+ roleId: zRoleId,
3339
3488
  name: z.string().register(z.globalRegistry, {
3340
3489
  description: "The display name of the created role."
3341
3490
  }),
@@ -3360,17 +3509,13 @@ var zRoleUpdateResult = z.object({
3360
3509
  z.string(),
3361
3510
  z.null()
3362
3511
  ]),
3363
- roleId: z.string().register(z.globalRegistry, {
3364
- description: "The ID of the updated role."
3365
- })
3512
+ roleId: zRoleId
3366
3513
  });
3367
3514
  var zRoleResult = z.object({
3368
3515
  name: z.string().register(z.globalRegistry, {
3369
3516
  description: "The role name."
3370
3517
  }),
3371
- roleId: z.string().register(z.globalRegistry, {
3372
- description: "The role id."
3373
- }),
3518
+ roleId: zRoleId,
3374
3519
  description: z.union([
3375
3520
  z.string(),
3376
3521
  z.null()
@@ -3379,9 +3524,7 @@ var zRoleResult = z.object({
3379
3524
  description: "Role search response item."
3380
3525
  });
3381
3526
  var zRoleFilter = z.object({
3382
- roleId: z.optional(z.string().register(z.globalRegistry, {
3383
- description: "The role ID search filters."
3384
- })),
3527
+ roleId: z.optional(zRoleId),
3385
3528
  name: z.optional(z.string().register(z.globalRegistry, {
3386
3529
  description: "The role name search filters."
3387
3530
  }))
@@ -3392,14 +3535,10 @@ var zRoleUserResult = z.object({
3392
3535
  username: zUsername
3393
3536
  });
3394
3537
  var zRoleClientResult = z.object({
3395
- clientId: z.string().register(z.globalRegistry, {
3396
- description: "The ID of the client."
3397
- })
3538
+ clientId: zClientId
3398
3539
  });
3399
3540
  var zRoleGroupResult = z.object({
3400
- groupId: z.string().register(z.globalRegistry, {
3401
- description: "The id of the group."
3402
- })
3541
+ groupId: zGroupId
3403
3542
  });
3404
3543
  var zLimitPagination = z.object({
3405
3544
  limit: z.optional(z.int().gte(1).lte(1e4).register(z.globalRegistry, {
@@ -3465,6 +3604,17 @@ var zSortOrderEnum = z.enum([
3465
3604
  ]).register(z.globalRegistry, {
3466
3605
  description: "The order in which to sort the related field."
3467
3606
  });
3607
+ var zAgentInstanceSearchQuerySortRequest = z.object({
3608
+ field: z.enum([
3609
+ "creationDate",
3610
+ "lastUpdatedDate",
3611
+ "completionDate",
3612
+ "status"
3613
+ ]).register(z.globalRegistry, {
3614
+ description: "The field to sort by."
3615
+ }),
3616
+ order: z.optional(zSortOrderEnum)
3617
+ });
3468
3618
  var zAuditLogSearchQuerySortRequest = z.object({
3469
3619
  field: z.enum([
3470
3620
  "actorId",
@@ -3612,6 +3762,20 @@ var zDecisionRequirementsSearchQuery = zSearchQueryRequest.and(z.object({
3612
3762
  })),
3613
3763
  filter: z.optional(zDecisionRequirementsFilter)
3614
3764
  }));
3765
+ var zResourceSearchQuerySortRequest = z.object({
3766
+ field: z.enum([
3767
+ "resourceKey",
3768
+ "resourceName",
3769
+ "resourceId",
3770
+ "version",
3771
+ "versionTag",
3772
+ "deploymentKey",
3773
+ "tenantId"
3774
+ ]).register(z.globalRegistry, {
3775
+ description: "The field to sort by."
3776
+ }),
3777
+ order: z.optional(zSortOrderEnum)
3778
+ });
3615
3779
  var zElementInstanceSearchQuerySortRequest = z.object({
3616
3780
  field: z.enum([
3617
3781
  "elementInstanceKey",
@@ -3975,6 +4139,13 @@ var zSearchQueryPageResponse = z.object({
3975
4139
  var zSearchQueryResponse = z.object({
3976
4140
  page: zSearchQueryPageResponse
3977
4141
  });
4142
+ var zAgentInstanceSearchQueryResult = zSearchQueryResponse.and(z.object({
4143
+ items: z.array(zAgentInstanceResult).register(z.globalRegistry, {
4144
+ description: "The matching agent instances."
4145
+ })
4146
+ }).register(z.globalRegistry, {
4147
+ description: "Agent instance search response."
4148
+ }));
3978
4149
  var zAuditLogSearchQueryResult = zSearchQueryResponse.and(z.object({
3979
4150
  items: z.array(zAuditLogResult).register(z.globalRegistry, {
3980
4151
  description: "The matching audit logs."
@@ -4021,6 +4192,11 @@ var zDecisionRequirementsSearchQueryResult = zSearchQueryResponse.and(z.object({
4021
4192
  description: "The matching decision requirements."
4022
4193
  })
4023
4194
  }));
4195
+ var zResourceSearchQueryResult = zSearchQueryResponse.and(z.object({
4196
+ items: z.array(zResourceResult).register(z.globalRegistry, {
4197
+ description: "The matching resources."
4198
+ })
4199
+ }));
4024
4200
  var zElementInstanceSearchQueryResult = zSearchQueryResponse.and(z.object({
4025
4201
  items: z.array(zElementInstanceResult).register(z.globalRegistry, {
4026
4202
  description: "The matching element instances."
@@ -4238,15 +4414,88 @@ var zJobMetricsConfigurationResponse = z.object({
4238
4414
  }).register(z.globalRegistry, {
4239
4415
  description: "Configuration for job metrics collection and export."
4240
4416
  });
4417
+ var zDeploymentConfigurationResponse = z.object({
4418
+ isEnterprise: z.boolean().register(z.globalRegistry, {
4419
+ description: "Whether this is an enterprise deployment."
4420
+ }),
4421
+ isMultiTenancyEnabled: z.boolean().register(z.globalRegistry, {
4422
+ description: "Whether multi-tenancy is enabled."
4423
+ }),
4424
+ contextPath: z.string().register(z.globalRegistry, {
4425
+ description: "The servlet context path for the deployment."
4426
+ }),
4427
+ maxRequestSize: z.coerce.number().int().register(z.globalRegistry, {
4428
+ description: "The maximum HTTP request size in bytes."
4429
+ })
4430
+ }).register(z.globalRegistry, {
4431
+ description: "Configuration for deployment characteristics."
4432
+ });
4433
+ var zAuthenticationConfigurationResponse = z.object({
4434
+ canLogout: z.boolean().register(z.globalRegistry, {
4435
+ description: "Whether users can log out (false for SaaS deployments)."
4436
+ }),
4437
+ isLoginDelegated: z.boolean().register(z.globalRegistry, {
4438
+ description: "Whether login is delegated to an external identity provider."
4439
+ })
4440
+ }).register(z.globalRegistry, {
4441
+ description: "Configuration for authentication and session management."
4442
+ });
4443
+ var zWebappComponent = z.enum([
4444
+ "operate",
4445
+ "tasklist",
4446
+ "admin"
4447
+ ]).register(z.globalRegistry, {
4448
+ description: "A Camunda webapp component name."
4449
+ });
4450
+ var zComponentsConfigurationResponse = z.object({
4451
+ active: z.array(zWebappComponent).register(z.globalRegistry, {
4452
+ description: "List of webapp components whose UI is enabled in this deployment."
4453
+ })
4454
+ }).register(z.globalRegistry, {
4455
+ description: "Configuration for active Camunda components in the deployment."
4456
+ });
4457
+ var zCloudStage = z.enum([
4458
+ "dev",
4459
+ "int",
4460
+ "prod"
4461
+ ]).register(z.globalRegistry, {
4462
+ description: "The cloud deployment stage."
4463
+ });
4464
+ var zCloudConfigurationResponse = z.object({
4465
+ organizationId: z.union([
4466
+ z.string(),
4467
+ z.null()
4468
+ ]),
4469
+ clusterId: z.union([
4470
+ z.string(),
4471
+ z.null()
4472
+ ]),
4473
+ stage: z.union([
4474
+ zCloudStage,
4475
+ z.null()
4476
+ ]),
4477
+ mixpanelToken: z.union([
4478
+ z.string(),
4479
+ z.null()
4480
+ ]),
4481
+ mixpanelAPIHost: z.union([
4482
+ z.string(),
4483
+ z.null()
4484
+ ])
4485
+ }).register(z.globalRegistry, {
4486
+ description: "Configuration for SaaS/cloud-specific settings."
4487
+ });
4241
4488
  var zSystemConfigurationResponse = z.object({
4242
- jobMetrics: zJobMetricsConfigurationResponse
4489
+ jobMetrics: zJobMetricsConfigurationResponse,
4490
+ components: zComponentsConfigurationResponse,
4491
+ deployment: zDeploymentConfigurationResponse,
4492
+ authentication: zAuthenticationConfigurationResponse,
4493
+ cloud: zCloudConfigurationResponse
4243
4494
  }).register(z.globalRegistry, {
4244
4495
  description: "Envelope for all system configuration sections. Each property\nrepresents a feature area.\n"
4245
4496
  });
4246
4497
  var zTenantCreateRequest = z.object({
4247
- tenantId: z.string().min(1).max(256).regex(/^[A-Za-z0-9_@.+-]+$/).register(z.globalRegistry, {
4248
- description: "The unique ID for the tenant. Must be 255 characters or less. Can contain letters, numbers, [`_`, `-`, `+`, `.`, `@`]."
4249
- }),
4498
+ tenantId: zTenantId,
4250
4499
  name: z.string().register(z.globalRegistry, {
4251
4500
  description: "The name of the tenant."
4252
4501
  }),
@@ -4382,9 +4631,7 @@ var zTenantUserSearchQueryRequest = zSearchQueryRequest.and(z.object({
4382
4631
  }))
4383
4632
  }));
4384
4633
  var zTenantClientResult = z.object({
4385
- clientId: z.string().register(z.globalRegistry, {
4386
- description: "The ID of the client."
4387
- })
4634
+ clientId: zClientId
4388
4635
  });
4389
4636
  var zTenantClientSearchResult = zSearchQueryResponse.and(z.object({
4390
4637
  items: z.array(zTenantClientResult).register(z.globalRegistry, {
@@ -4405,9 +4652,7 @@ var zTenantClientSearchQueryRequest = zSearchQueryRequest.and(z.object({
4405
4652
  }))
4406
4653
  }));
4407
4654
  var zTenantGroupResult = z.object({
4408
- groupId: z.string().register(z.globalRegistry, {
4409
- description: "The groupId of the group."
4410
- })
4655
+ groupId: zGroupId
4411
4656
  });
4412
4657
  var zTenantGroupSearchResult = zSearchQueryResponse.and(z.object({
4413
4658
  items: z.array(zTenantGroupResult).register(z.globalRegistry, {
@@ -4642,9 +4887,7 @@ var zUserRequest = z.object({
4642
4887
  password: z.string().register(z.globalRegistry, {
4643
4888
  description: "The password of the user."
4644
4889
  }),
4645
- username: z.string().register(z.globalRegistry, {
4646
- description: "The username of the user."
4647
- }),
4890
+ username: zUsername,
4648
4891
  name: z.optional(z.string().register(z.globalRegistry, {
4649
4892
  description: "The name of the user."
4650
4893
  })),
@@ -4804,6 +5047,11 @@ default, with local set to \`false\`, scope '1' will be { "foo": 5 } and scope '
4804
5047
  })).default(false),
4805
5048
  operationReference: z.optional(zOperationReference)
4806
5049
  });
5050
+ var zAgentInstanceStatusExactMatch = zAgentInstanceStatusEnum;
5051
+ var zAgentInstanceStatusFilterProperty = z.union([
5052
+ zAgentInstanceStatusExactMatch,
5053
+ zAdvancedAgentInstanceStatusFilter
5054
+ ]);
4807
5055
  var zAuditLogEntityKeyExactMatch = zAuditLogEntityKey;
4808
5056
  var zAuditLogEntityKeyFilterProperty = z.union([
4809
5057
  zAuditLogEntityKeyExactMatch,
@@ -4922,6 +5170,23 @@ var zResourceKeyFilterProperty = z.union([
4922
5170
  zResourceKeyExactMatch,
4923
5171
  zAdvancedResourceKeyFilter
4924
5172
  ]);
5173
+ var zResourceFilter = z.object({
5174
+ resourceKey: z.optional(zResourceKeyFilterProperty),
5175
+ resourceName: z.optional(zStringFilterProperty),
5176
+ resourceId: z.optional(zStringFilterProperty),
5177
+ version: z.optional(zIntegerFilterProperty),
5178
+ versionTag: z.optional(zStringFilterProperty),
5179
+ deploymentKey: z.optional(zDeploymentKeyFilterProperty),
5180
+ tenantId: z.optional(zTenantId)
5181
+ }).register(z.globalRegistry, {
5182
+ description: "Resource search filter."
5183
+ });
5184
+ var zResourceSearchQuery = zSearchQueryRequest.and(z.object({
5185
+ sort: z.optional(z.array(zResourceSearchQuerySortRequest).register(z.globalRegistry, {
5186
+ description: "Sort field criteria."
5187
+ })),
5188
+ filter: z.optional(zResourceFilter)
5189
+ }));
4925
5190
  var zElementInstanceStateExactMatch = zElementInstanceStateEnum;
4926
5191
  var zElementInstanceStateFilterProperty = z.union([
4927
5192
  zElementInstanceStateExactMatch,
@@ -5198,6 +5463,35 @@ var zDecisionEvaluationInstanceKeyFilterProperty = z.union([
5198
5463
  zDecisionEvaluationInstanceKeyExactMatch,
5199
5464
  zAdvancedDecisionEvaluationInstanceKeyFilter
5200
5465
  ]);
5466
+ var zAgentInstanceKeyExactMatch = zAgentInstanceKey;
5467
+ var zAgentInstanceKeyFilterProperty = z.union([
5468
+ zAgentInstanceKeyExactMatch,
5469
+ zAdvancedAgentInstanceKeyFilter
5470
+ ]);
5471
+ var zAgentInstanceFilter = z.object({
5472
+ agentInstanceKey: z.optional(zAgentInstanceKeyFilterProperty),
5473
+ status: z.optional(zAgentInstanceStatusFilterProperty),
5474
+ elementId: z.optional(zElementIdFilterProperty),
5475
+ processInstanceKey: z.optional(zProcessInstanceKeyFilterProperty),
5476
+ processDefinitionKey: z.optional(zProcessDefinitionKeyFilterProperty),
5477
+ tenantId: z.optional(zStringFilterProperty),
5478
+ creationDate: z.optional(zDateTimeFilterProperty),
5479
+ lastUpdatedDate: z.optional(zDateTimeFilterProperty),
5480
+ completionDate: z.optional(zDateTimeFilterProperty),
5481
+ elementInstanceKeys: z.optional(z.array(zElementInstanceKeyFilterProperty).register(z.globalRegistry, {
5482
+ description: "The keys of element instances associated with this agent instance.\nIf multiple keys are provided, the filter matches agent instances associated with all of the provided keys at the same time."
5483
+ }))
5484
+ }).register(z.globalRegistry, {
5485
+ description: "Agent instance search filter."
5486
+ });
5487
+ var zAgentInstanceSearchQuery = zSearchQueryRequest.and(z.object({
5488
+ sort: z.optional(z.array(zAgentInstanceSearchQuerySortRequest).register(z.globalRegistry, {
5489
+ description: "Sort field criteria."
5490
+ })),
5491
+ filter: z.optional(zAgentInstanceFilter)
5492
+ }).register(z.globalRegistry, {
5493
+ description: "Agent instance search request."
5494
+ }));
5201
5495
  var zAuditLogKeyExactMatch = zAuditLogKey;
5202
5496
  var zAuditLogKeyFilterProperty = z.union([
5203
5497
  zAuditLogKeyExactMatch,
@@ -5505,6 +5799,36 @@ var zUserTaskSearchQuery = zSearchQueryRequest.and(z.object({
5505
5799
  }).register(z.globalRegistry, {
5506
5800
  description: "User task search query request."
5507
5801
  }));
5802
+ var zCreateAgentInstanceData = z.object({
5803
+ body: zAgentInstanceCreationRequest,
5804
+ path: z.optional(z.never()),
5805
+ query: z.optional(z.never())
5806
+ });
5807
+ var zCreateAgentInstanceResponse = zAgentInstanceCreationResult;
5808
+ var zGetAgentInstanceData = z.object({
5809
+ body: z.optional(z.never()),
5810
+ path: z.object({
5811
+ agentInstanceKey: zAgentInstanceKey
5812
+ }),
5813
+ query: z.optional(z.never())
5814
+ });
5815
+ var zGetAgentInstanceResponse = zAgentInstanceResult;
5816
+ var zUpdateAgentInstanceData = z.object({
5817
+ body: zAgentInstanceUpdateRequest,
5818
+ path: z.object({
5819
+ agentInstanceKey: zAgentInstanceKey
5820
+ }),
5821
+ query: z.optional(z.never())
5822
+ });
5823
+ var zUpdateAgentInstanceResponse = z.void().register(z.globalRegistry, {
5824
+ description: "The agent instance was updated successfully."
5825
+ });
5826
+ var zSearchAgentInstancesData = z.object({
5827
+ body: z.optional(zAgentInstanceSearchQuery),
5828
+ path: z.optional(z.never()),
5829
+ query: z.optional(z.never())
5830
+ });
5831
+ var zSearchAgentInstancesResponse = zAgentInstanceSearchQueryResult;
5508
5832
  var zSearchAuditLogsData = z.object({
5509
5833
  body: z.optional(zAuditLogSearchQueryRequest),
5510
5834
  path: z.optional(z.never()),
@@ -5640,9 +5964,7 @@ var zCreateGlobalClusterVariableResponse = zClusterVariableResult;
5640
5964
  var zDeleteGlobalClusterVariableData = z.object({
5641
5965
  body: z.optional(z.never()),
5642
5966
  path: z.object({
5643
- name: z.string().register(z.globalRegistry, {
5644
- description: "The name of the cluster variable"
5645
- })
5967
+ name: zClusterVariableName
5646
5968
  }),
5647
5969
  query: z.optional(z.never())
5648
5970
  });
@@ -5652,9 +5974,7 @@ var zDeleteGlobalClusterVariableResponse = z.void().register(z.globalRegistry, {
5652
5974
  var zGetGlobalClusterVariableData = z.object({
5653
5975
  body: z.optional(z.never()),
5654
5976
  path: z.object({
5655
- name: z.string().register(z.globalRegistry, {
5656
- description: "The name of the cluster variable"
5657
- })
5977
+ name: zClusterVariableName
5658
5978
  }),
5659
5979
  query: z.optional(z.never())
5660
5980
  });
@@ -5662,9 +5982,7 @@ var zGetGlobalClusterVariableResponse = zClusterVariableResult;
5662
5982
  var zUpdateGlobalClusterVariableData = z.object({
5663
5983
  body: zUpdateClusterVariableRequest,
5664
5984
  path: z.object({
5665
- name: z.string().register(z.globalRegistry, {
5666
- description: "The name of the cluster variable"
5667
- })
5985
+ name: zClusterVariableName
5668
5986
  }),
5669
5987
  query: z.optional(z.never())
5670
5988
  });
@@ -5691,9 +6009,7 @@ var zDeleteTenantClusterVariableData = z.object({
5691
6009
  body: z.optional(z.never()),
5692
6010
  path: z.object({
5693
6011
  tenantId: zTenantId,
5694
- name: z.string().register(z.globalRegistry, {
5695
- description: "The name of the cluster variable"
5696
- })
6012
+ name: zClusterVariableName
5697
6013
  }),
5698
6014
  query: z.optional(z.never())
5699
6015
  });
@@ -5704,9 +6020,7 @@ var zGetTenantClusterVariableData = z.object({
5704
6020
  body: z.optional(z.never()),
5705
6021
  path: z.object({
5706
6022
  tenantId: zTenantId,
5707
- name: z.string().register(z.globalRegistry, {
5708
- description: "The name of the cluster variable"
5709
- })
6023
+ name: zClusterVariableName
5710
6024
  }),
5711
6025
  query: z.optional(z.never())
5712
6026
  });
@@ -5715,9 +6029,7 @@ var zUpdateTenantClusterVariableData = z.object({
5715
6029
  body: zUpdateClusterVariableRequest,
5716
6030
  path: z.object({
5717
6031
  tenantId: zTenantId,
5718
- name: z.string().register(z.globalRegistry, {
5719
- description: "The name of the cluster variable"
5720
- })
6032
+ name: zClusterVariableName
5721
6033
  }),
5722
6034
  query: z.optional(z.never())
5723
6035
  });
@@ -5779,12 +6091,7 @@ var zGetDecisionInstanceData = z.object({
5779
6091
  });
5780
6092
  var zGetDecisionInstanceResponse = zDecisionInstanceGetQueryResult;
5781
6093
  var zDeleteDecisionInstanceData = z.object({
5782
- body: z.optional(z.union([
5783
- z.object({
5784
- operationReference: z.optional(zOperationReference)
5785
- }),
5786
- z.null()
5787
- ])),
6094
+ body: z.optional(zDeleteDecisionInstanceRequest),
5788
6095
  path: z.object({
5789
6096
  decisionEvaluationKey: zDecisionEvaluationKey
5790
6097
  }),
@@ -5962,6 +6269,14 @@ var zEvaluateExpressionData = z.object({
5962
6269
  query: z.optional(z.never())
5963
6270
  });
5964
6271
  var zEvaluateExpressionResponse = zExpressionEvaluationResult;
6272
+ var zGetFormByKeyData = z.object({
6273
+ body: z.optional(z.never()),
6274
+ path: z.object({
6275
+ formKey: zFormKey
6276
+ }),
6277
+ query: z.optional(z.never())
6278
+ });
6279
+ var zGetFormByKeyResponse = zFormResult;
5965
6280
  var zCreateGlobalTaskListenerData = z.object({
5966
6281
  body: zCreateGlobalTaskListenerRequest,
5967
6282
  path: z.optional(z.never()),
@@ -6015,9 +6330,7 @@ var zSearchGroupsResponse = zGroupSearchQueryResult;
6015
6330
  var zDeleteGroupData = z.object({
6016
6331
  body: z.optional(z.never()),
6017
6332
  path: z.object({
6018
- groupId: z.string().register(z.globalRegistry, {
6019
- description: "The group ID."
6020
- })
6333
+ groupId: zGroupId
6021
6334
  }),
6022
6335
  query: z.optional(z.never())
6023
6336
  });
@@ -6027,9 +6340,7 @@ var zDeleteGroupResponse = z.void().register(z.globalRegistry, {
6027
6340
  var zGetGroupData = z.object({
6028
6341
  body: z.optional(z.never()),
6029
6342
  path: z.object({
6030
- groupId: z.string().register(z.globalRegistry, {
6031
- description: "The group ID."
6032
- })
6343
+ groupId: zGroupId
6033
6344
  }),
6034
6345
  query: z.optional(z.never())
6035
6346
  });
@@ -6037,53 +6348,24 @@ var zGetGroupResponse = zGroupResult;
6037
6348
  var zUpdateGroupData = z.object({
6038
6349
  body: zGroupUpdateRequest,
6039
6350
  path: z.object({
6040
- groupId: z.string().register(z.globalRegistry, {
6041
- description: "The group ID."
6042
- })
6351
+ groupId: zGroupId
6043
6352
  }),
6044
6353
  query: z.optional(z.never())
6045
6354
  });
6046
6355
  var zUpdateGroupResponse = zGroupUpdateResult;
6047
6356
  var zSearchClientsForGroupData = z.object({
6048
- body: z.optional(zSearchQueryRequest.and(z.object({
6049
- sort: z.optional(z.array(z.object({
6050
- field: z.enum([
6051
- "clientId"
6052
- ]).register(z.globalRegistry, {
6053
- description: "The field to sort by."
6054
- }),
6055
- order: z.optional(zSortOrderEnum)
6056
- })).register(z.globalRegistry, {
6057
- description: "Sort field criteria."
6058
- }))
6059
- }))),
6357
+ body: z.optional(zGroupClientSearchQueryRequest),
6060
6358
  path: z.object({
6061
- groupId: z.string().register(z.globalRegistry, {
6062
- description: "The group ID."
6063
- })
6359
+ groupId: zGroupId
6064
6360
  }),
6065
6361
  query: z.optional(z.never())
6066
6362
  });
6067
- var zSearchClientsForGroupResponse = zSearchQueryResponse.and(z.object({
6068
- items: z.array(z.object({
6069
- clientId: z.string().register(z.globalRegistry, {
6070
- description: "The ID of the client."
6071
- })
6072
- })).register(z.globalRegistry, {
6073
- description: "The matching client IDs."
6074
- })
6075
- }).register(z.globalRegistry, {
6076
- description: "The clients assigned to the group."
6077
- }));
6363
+ var zSearchClientsForGroupResponse = zGroupClientSearchResult;
6078
6364
  var zUnassignClientFromGroupData = z.object({
6079
6365
  body: z.optional(z.never()),
6080
6366
  path: z.object({
6081
- groupId: z.string().register(z.globalRegistry, {
6082
- description: "The group ID."
6083
- }),
6084
- clientId: z.string().register(z.globalRegistry, {
6085
- description: "The client ID."
6086
- })
6367
+ groupId: zGroupId,
6368
+ clientId: zClientId
6087
6369
  }),
6088
6370
  query: z.optional(z.never())
6089
6371
  });
@@ -6093,12 +6375,8 @@ var zUnassignClientFromGroupResponse = z.void().register(z.globalRegistry, {
6093
6375
  var zAssignClientToGroupData = z.object({
6094
6376
  body: z.optional(z.never()),
6095
6377
  path: z.object({
6096
- groupId: z.string().register(z.globalRegistry, {
6097
- description: "The group ID."
6098
- }),
6099
- clientId: z.string().register(z.globalRegistry, {
6100
- description: "The client ID."
6101
- })
6378
+ groupId: zGroupId,
6379
+ clientId: zClientId
6102
6380
  }),
6103
6381
  query: z.optional(z.never())
6104
6382
  });
@@ -6108,28 +6386,16 @@ var zAssignClientToGroupResponse = z.void().register(z.globalRegistry, {
6108
6386
  var zSearchMappingRulesForGroupData = z.object({
6109
6387
  body: z.optional(zMappingRuleSearchQueryRequest),
6110
6388
  path: z.object({
6111
- groupId: z.string().register(z.globalRegistry, {
6112
- description: "The group ID."
6113
- })
6389
+ groupId: zGroupId
6114
6390
  }),
6115
6391
  query: z.optional(z.never())
6116
6392
  });
6117
- var zSearchMappingRulesForGroupResponse = zSearchQueryResponse.and(z.object({
6118
- items: z.array(zMappingRuleResult).register(z.globalRegistry, {
6119
- description: "The matching mapping rules."
6120
- })
6121
- }).register(z.globalRegistry, {
6122
- description: "The mapping rules assigned to the group."
6123
- }));
6393
+ var zSearchMappingRulesForGroupResponse = zGroupMappingRuleSearchResult;
6124
6394
  var zUnassignMappingRuleFromGroupData = z.object({
6125
6395
  body: z.optional(z.never()),
6126
6396
  path: z.object({
6127
- groupId: z.string().register(z.globalRegistry, {
6128
- description: "The group ID."
6129
- }),
6130
- mappingRuleId: z.string().register(z.globalRegistry, {
6131
- description: "The mapping rule ID."
6132
- })
6397
+ groupId: zGroupId,
6398
+ mappingRuleId: zMappingRuleId
6133
6399
  }),
6134
6400
  query: z.optional(z.never())
6135
6401
  });
@@ -6139,12 +6405,8 @@ var zUnassignMappingRuleFromGroupResponse = z.void().register(z.globalRegistry,
6139
6405
  var zAssignMappingRuleToGroupData = z.object({
6140
6406
  body: z.optional(z.never()),
6141
6407
  path: z.object({
6142
- groupId: z.string().register(z.globalRegistry, {
6143
- description: "The group ID."
6144
- }),
6145
- mappingRuleId: z.string().register(z.globalRegistry, {
6146
- description: "The mapping rule ID."
6147
- })
6408
+ groupId: zGroupId,
6409
+ mappingRuleId: zMappingRuleId
6148
6410
  }),
6149
6411
  query: z.optional(z.never())
6150
6412
  });
@@ -6154,54 +6416,23 @@ var zAssignMappingRuleToGroupResponse = z.void().register(z.globalRegistry, {
6154
6416
  var zSearchRolesForGroupData = z.object({
6155
6417
  body: z.optional(zRoleSearchQueryRequest),
6156
6418
  path: z.object({
6157
- groupId: z.string().register(z.globalRegistry, {
6158
- description: "The group ID."
6159
- })
6419
+ groupId: zGroupId
6160
6420
  }),
6161
6421
  query: z.optional(z.never())
6162
6422
  });
6163
- var zSearchRolesForGroupResponse = zSearchQueryResponse.and(z.object({
6164
- items: z.array(zRoleResult).register(z.globalRegistry, {
6165
- description: "The matching roles."
6166
- })
6167
- }).register(z.globalRegistry, {
6168
- description: "The roles assigned to the group."
6169
- }));
6423
+ var zSearchRolesForGroupResponse = zGroupRoleSearchResult;
6170
6424
  var zSearchUsersForGroupData = z.object({
6171
- body: z.optional(zSearchQueryRequest.and(z.object({
6172
- sort: z.optional(z.array(z.object({
6173
- field: z.enum([
6174
- "username"
6175
- ]).register(z.globalRegistry, {
6176
- description: "The field to sort by."
6177
- }),
6178
- order: z.optional(zSortOrderEnum)
6179
- })).register(z.globalRegistry, {
6180
- description: "Sort field criteria."
6181
- }))
6182
- }))),
6425
+ body: z.optional(zGroupUserSearchQueryRequest),
6183
6426
  path: z.object({
6184
- groupId: z.string().register(z.globalRegistry, {
6185
- description: "The group ID."
6186
- })
6427
+ groupId: zGroupId
6187
6428
  }),
6188
6429
  query: z.optional(z.never())
6189
6430
  });
6190
- var zSearchUsersForGroupResponse = zSearchQueryResponse.and(z.object({
6191
- items: z.array(z.object({
6192
- username: zUsername
6193
- })).register(z.globalRegistry, {
6194
- description: "The matching members."
6195
- })
6196
- }).register(z.globalRegistry, {
6197
- description: "The users assigned to the group."
6198
- }));
6431
+ var zSearchUsersForGroupResponse = zGroupUserSearchResult;
6199
6432
  var zUnassignUserFromGroupData = z.object({
6200
6433
  body: z.optional(z.never()),
6201
6434
  path: z.object({
6202
- groupId: z.string().register(z.globalRegistry, {
6203
- description: "The group ID."
6204
- }),
6435
+ groupId: zGroupId,
6205
6436
  username: zUsername
6206
6437
  }),
6207
6438
  query: z.optional(z.never())
@@ -6212,9 +6443,7 @@ var zUnassignUserFromGroupResponse = z.void().register(z.globalRegistry, {
6212
6443
  var zAssignUserToGroupData = z.object({
6213
6444
  body: z.optional(z.never()),
6214
6445
  path: z.object({
6215
- groupId: z.string().register(z.globalRegistry, {
6216
- description: "The group ID."
6217
- }),
6446
+ groupId: zGroupId,
6218
6447
  username: zUsername
6219
6448
  }),
6220
6449
  query: z.optional(z.never())
@@ -6361,25 +6590,17 @@ var zCreateMappingRuleData = z.object({
6361
6590
  path: z.optional(z.never()),
6362
6591
  query: z.optional(z.never())
6363
6592
  });
6364
- var zCreateMappingRuleResponse = zMappingRuleCreateUpdateResult;
6593
+ var zCreateMappingRuleResponse = zMappingRuleCreateResult;
6365
6594
  var zSearchMappingRuleData = z.object({
6366
6595
  body: z.optional(zMappingRuleSearchQueryRequest),
6367
6596
  path: z.optional(z.never()),
6368
6597
  query: z.optional(z.never())
6369
6598
  });
6370
- var zSearchMappingRuleResponse = zSearchQueryResponse.and(z.object({
6371
- items: z.array(zMappingRuleResult).register(z.globalRegistry, {
6372
- description: "The matching mapping rules."
6373
- })
6374
- }).register(z.globalRegistry, {
6375
- description: "The mapping rule search result."
6376
- }));
6599
+ var zSearchMappingRuleResponse = zMappingRuleSearchQueryResult;
6377
6600
  var zDeleteMappingRuleData = z.object({
6378
6601
  body: z.optional(z.never()),
6379
6602
  path: z.object({
6380
- mappingRuleId: z.string().register(z.globalRegistry, {
6381
- description: "The ID of the mapping rule to delete."
6382
- })
6603
+ mappingRuleId: zMappingRuleId
6383
6604
  }),
6384
6605
  query: z.optional(z.never())
6385
6606
  });
@@ -6389,9 +6610,7 @@ var zDeleteMappingRuleResponse = z.void().register(z.globalRegistry, {
6389
6610
  var zGetMappingRuleData = z.object({
6390
6611
  body: z.optional(z.never()),
6391
6612
  path: z.object({
6392
- mappingRuleId: z.string().register(z.globalRegistry, {
6393
- description: "The ID of the mapping rule to get."
6394
- })
6613
+ mappingRuleId: zMappingRuleId
6395
6614
  }),
6396
6615
  query: z.optional(z.never())
6397
6616
  });
@@ -6399,13 +6618,11 @@ var zGetMappingRuleResponse = zMappingRuleResult;
6399
6618
  var zUpdateMappingRuleData = z.object({
6400
6619
  body: z.optional(zMappingRuleUpdateRequest),
6401
6620
  path: z.object({
6402
- mappingRuleId: z.string().register(z.globalRegistry, {
6403
- description: "The ID of the mapping rule to update."
6404
- })
6621
+ mappingRuleId: zMappingRuleId
6405
6622
  }),
6406
6623
  query: z.optional(z.never())
6407
6624
  });
6408
- var zUpdateMappingRuleResponse = zMappingRuleCreateUpdateResult;
6625
+ var zUpdateMappingRuleResponse = zMappingRuleUpdateResult;
6409
6626
  var zSearchMessageSubscriptionsData = z.object({
6410
6627
  body: z.optional(zMessageSubscriptionSearchQuery),
6411
6628
  path: z.optional(z.never()),
@@ -6548,12 +6765,7 @@ var zGetProcessInstanceCallHierarchyResponse = z.array(zProcessInstanceCallHiera
6548
6765
  description: "The call hierarchy is successfully returned."
6549
6766
  });
6550
6767
  var zCancelProcessInstanceData = z.object({
6551
- body: z.optional(z.union([
6552
- z.object({
6553
- operationReference: z.optional(zOperationReference)
6554
- }),
6555
- z.null()
6556
- ])),
6768
+ body: z.optional(zCancelProcessInstanceRequest),
6557
6769
  path: z.object({
6558
6770
  processInstanceKey: zProcessInstanceKey
6559
6771
  }),
@@ -6563,12 +6775,7 @@ var zCancelProcessInstanceResponse = z.void().register(z.globalRegistry, {
6563
6775
  description: "The process instance is canceled."
6564
6776
  });
6565
6777
  var zDeleteProcessInstanceData = z.object({
6566
- body: z.optional(z.union([
6567
- z.object({
6568
- operationReference: z.optional(zOperationReference)
6569
- }),
6570
- z.null()
6571
- ])),
6778
+ body: z.optional(zDeleteProcessInstanceRequest),
6572
6779
  path: z.object({
6573
6780
  processInstanceKey: zProcessInstanceKey
6574
6781
  }),
@@ -6629,6 +6836,12 @@ var zGetProcessInstanceStatisticsData = z.object({
6629
6836
  query: z.optional(z.never())
6630
6837
  });
6631
6838
  var zGetProcessInstanceStatisticsResponse = zProcessInstanceElementStatisticsQueryResult;
6839
+ var zSearchResourcesData = z.object({
6840
+ body: z.optional(zResourceSearchQuery),
6841
+ path: z.optional(z.never()),
6842
+ query: z.optional(z.never())
6843
+ });
6844
+ var zSearchResourcesResponse = zResourceSearchQueryResult;
6632
6845
  var zGetResourceData = z.object({
6633
6846
  body: z.optional(z.never()),
6634
6847
  path: z.object({
@@ -6644,7 +6857,17 @@ var zGetResourceContentData = z.object({
6644
6857
  }),
6645
6858
  query: z.optional(z.never())
6646
6859
  });
6647
- var zGetResourceContentResponse = z.string().register(z.globalRegistry, {
6860
+ var zGetResourceContentResponse = z.record(z.string(), z.unknown()).register(z.globalRegistry, {
6861
+ description: "The resource content is successfully returned."
6862
+ });
6863
+ var zGetResourceContentBinaryData = z.object({
6864
+ body: z.optional(z.never()),
6865
+ path: z.object({
6866
+ resourceKey: zResourceKey
6867
+ }),
6868
+ query: z.optional(z.never())
6869
+ });
6870
+ var zGetResourceContentBinaryResponse = z.string().register(z.globalRegistry, {
6648
6871
  description: "The resource content is successfully returned."
6649
6872
  });
6650
6873
  var zDeleteResourceData = z.object({
@@ -6670,9 +6893,7 @@ var zSearchRolesResponse = zRoleSearchQueryResult;
6670
6893
  var zDeleteRoleData = z.object({
6671
6894
  body: z.optional(z.never()),
6672
6895
  path: z.object({
6673
- roleId: z.string().register(z.globalRegistry, {
6674
- description: "The role ID."
6675
- })
6896
+ roleId: zRoleId
6676
6897
  }),
6677
6898
  query: z.optional(z.never())
6678
6899
  });
@@ -6682,9 +6903,7 @@ var zDeleteRoleResponse = z.void().register(z.globalRegistry, {
6682
6903
  var zGetRoleData = z.object({
6683
6904
  body: z.optional(z.never()),
6684
6905
  path: z.object({
6685
- roleId: z.string().register(z.globalRegistry, {
6686
- description: "The role ID."
6687
- })
6906
+ roleId: zRoleId
6688
6907
  }),
6689
6908
  query: z.optional(z.never())
6690
6909
  });
@@ -6692,53 +6911,24 @@ var zGetRoleResponse = zRoleResult;
6692
6911
  var zUpdateRoleData = z.object({
6693
6912
  body: zRoleUpdateRequest,
6694
6913
  path: z.object({
6695
- roleId: z.string().register(z.globalRegistry, {
6696
- description: "The role ID."
6697
- })
6914
+ roleId: zRoleId
6698
6915
  }),
6699
6916
  query: z.optional(z.never())
6700
6917
  });
6701
6918
  var zUpdateRoleResponse = zRoleUpdateResult;
6702
6919
  var zSearchClientsForRoleData = z.object({
6703
- body: z.optional(zSearchQueryRequest.and(z.object({
6704
- sort: z.optional(z.array(z.object({
6705
- field: z.enum([
6706
- "clientId"
6707
- ]).register(z.globalRegistry, {
6708
- description: "The field to sort by."
6709
- }),
6710
- order: z.optional(zSortOrderEnum)
6711
- })).register(z.globalRegistry, {
6712
- description: "Sort field criteria."
6713
- }))
6714
- }))),
6920
+ body: z.optional(zRoleClientSearchQueryRequest),
6715
6921
  path: z.object({
6716
- roleId: z.string().register(z.globalRegistry, {
6717
- description: "The role ID."
6718
- })
6922
+ roleId: zRoleId
6719
6923
  }),
6720
6924
  query: z.optional(z.never())
6721
6925
  });
6722
- var zSearchClientsForRoleResponse = zSearchQueryResponse.and(z.object({
6723
- items: z.array(z.object({
6724
- clientId: z.string().register(z.globalRegistry, {
6725
- description: "The ID of the client."
6726
- })
6727
- })).register(z.globalRegistry, {
6728
- description: "The matching clients."
6729
- })
6730
- }).register(z.globalRegistry, {
6731
- description: "The clients with the assigned role."
6732
- }));
6926
+ var zSearchClientsForRoleResponse = zRoleClientSearchResult;
6733
6927
  var zUnassignRoleFromClientData = z.object({
6734
6928
  body: z.optional(z.never()),
6735
6929
  path: z.object({
6736
- roleId: z.string().register(z.globalRegistry, {
6737
- description: "The role ID."
6738
- }),
6739
- clientId: z.string().register(z.globalRegistry, {
6740
- description: "The client ID."
6741
- })
6930
+ roleId: zRoleId,
6931
+ clientId: zClientId
6742
6932
  }),
6743
6933
  query: z.optional(z.never())
6744
6934
  });
@@ -6748,12 +6938,8 @@ var zUnassignRoleFromClientResponse = z.void().register(z.globalRegistry, {
6748
6938
  var zAssignRoleToClientData = z.object({
6749
6939
  body: z.optional(z.never()),
6750
6940
  path: z.object({
6751
- roleId: z.string().register(z.globalRegistry, {
6752
- description: "The role ID."
6753
- }),
6754
- clientId: z.string().register(z.globalRegistry, {
6755
- description: "The client ID."
6756
- })
6941
+ roleId: zRoleId,
6942
+ clientId: zClientId
6757
6943
  }),
6758
6944
  query: z.optional(z.never())
6759
6945
  });
@@ -6763,9 +6949,7 @@ var zAssignRoleToClientResponse = z.void().register(z.globalRegistry, {
6763
6949
  var zSearchGroupsForRoleData = z.object({
6764
6950
  body: z.optional(zRoleGroupSearchQueryRequest),
6765
6951
  path: z.object({
6766
- roleId: z.string().register(z.globalRegistry, {
6767
- description: "The role ID."
6768
- })
6952
+ roleId: zRoleId
6769
6953
  }),
6770
6954
  query: z.optional(z.never())
6771
6955
  });
@@ -6773,12 +6957,8 @@ var zSearchGroupsForRoleResponse = zRoleGroupSearchResult;
6773
6957
  var zUnassignRoleFromGroupData = z.object({
6774
6958
  body: z.optional(z.never()),
6775
6959
  path: z.object({
6776
- roleId: z.string().register(z.globalRegistry, {
6777
- description: "The role ID."
6778
- }),
6779
- groupId: z.string().register(z.globalRegistry, {
6780
- description: "The group ID."
6781
- })
6960
+ roleId: zRoleId,
6961
+ groupId: zGroupId
6782
6962
  }),
6783
6963
  query: z.optional(z.never())
6784
6964
  });
@@ -6788,12 +6968,8 @@ var zUnassignRoleFromGroupResponse = z.void().register(z.globalRegistry, {
6788
6968
  var zAssignRoleToGroupData = z.object({
6789
6969
  body: z.optional(z.never()),
6790
6970
  path: z.object({
6791
- roleId: z.string().register(z.globalRegistry, {
6792
- description: "The role ID."
6793
- }),
6794
- groupId: z.string().register(z.globalRegistry, {
6795
- description: "The group ID."
6796
- })
6971
+ roleId: zRoleId,
6972
+ groupId: zGroupId
6797
6973
  }),
6798
6974
  query: z.optional(z.never())
6799
6975
  });
@@ -6803,28 +6979,16 @@ var zAssignRoleToGroupResponse = z.void().register(z.globalRegistry, {
6803
6979
  var zSearchMappingRulesForRoleData = z.object({
6804
6980
  body: z.optional(zMappingRuleSearchQueryRequest),
6805
6981
  path: z.object({
6806
- roleId: z.string().register(z.globalRegistry, {
6807
- description: "The role ID."
6808
- })
6982
+ roleId: zRoleId
6809
6983
  }),
6810
6984
  query: z.optional(z.never())
6811
6985
  });
6812
- var zSearchMappingRulesForRoleResponse = zSearchQueryResponse.and(z.object({
6813
- items: z.array(zMappingRuleResult).register(z.globalRegistry, {
6814
- description: "The matching mapping rules."
6815
- })
6816
- }).register(z.globalRegistry, {
6817
- description: "The mapping rules with assigned role."
6818
- }));
6986
+ var zSearchMappingRulesForRoleResponse = zRoleMappingRuleSearchResult;
6819
6987
  var zUnassignRoleFromMappingRuleData = z.object({
6820
6988
  body: z.optional(z.never()),
6821
6989
  path: z.object({
6822
- roleId: z.string().register(z.globalRegistry, {
6823
- description: "The role ID."
6824
- }),
6825
- mappingRuleId: z.string().register(z.globalRegistry, {
6826
- description: "The mapping rule ID."
6827
- })
6990
+ roleId: zRoleId,
6991
+ mappingRuleId: zMappingRuleId
6828
6992
  }),
6829
6993
  query: z.optional(z.never())
6830
6994
  });
@@ -6834,12 +6998,8 @@ var zUnassignRoleFromMappingRuleResponse = z.void().register(z.globalRegistry, {
6834
6998
  var zAssignRoleToMappingRuleData = z.object({
6835
6999
  body: z.optional(z.never()),
6836
7000
  path: z.object({
6837
- roleId: z.string().register(z.globalRegistry, {
6838
- description: "The role ID."
6839
- }),
6840
- mappingRuleId: z.string().register(z.globalRegistry, {
6841
- description: "The mapping rule ID."
6842
- })
7001
+ roleId: zRoleId,
7002
+ mappingRuleId: zMappingRuleId
6843
7003
  }),
6844
7004
  query: z.optional(z.never())
6845
7005
  });
@@ -6847,40 +7007,17 @@ var zAssignRoleToMappingRuleResponse = z.void().register(z.globalRegistry, {
6847
7007
  description: "The role was assigned successfully to the mapping rule."
6848
7008
  });
6849
7009
  var zSearchUsersForRoleData = z.object({
6850
- body: z.optional(zSearchQueryRequest.and(z.object({
6851
- sort: z.optional(z.array(z.object({
6852
- field: z.enum([
6853
- "username"
6854
- ]).register(z.globalRegistry, {
6855
- description: "The field to sort by."
6856
- }),
6857
- order: z.optional(zSortOrderEnum)
6858
- })).register(z.globalRegistry, {
6859
- description: "Sort field criteria."
6860
- }))
6861
- }))),
7010
+ body: z.optional(zRoleUserSearchQueryRequest),
6862
7011
  path: z.object({
6863
- roleId: z.string().register(z.globalRegistry, {
6864
- description: "The role ID."
6865
- })
7012
+ roleId: zRoleId
6866
7013
  }),
6867
7014
  query: z.optional(z.never())
6868
7015
  });
6869
- var zSearchUsersForRoleResponse = zSearchQueryResponse.and(z.object({
6870
- items: z.array(z.object({
6871
- username: zUsername
6872
- })).register(z.globalRegistry, {
6873
- description: "The matching users."
6874
- })
6875
- }).register(z.globalRegistry, {
6876
- description: "The users with the assigned role."
6877
- }));
7016
+ var zSearchUsersForRoleResponse = zRoleUserSearchResult;
6878
7017
  var zUnassignRoleFromUserData = z.object({
6879
7018
  body: z.optional(z.never()),
6880
7019
  path: z.object({
6881
- roleId: z.string().register(z.globalRegistry, {
6882
- description: "The role ID."
6883
- }),
7020
+ roleId: zRoleId,
6884
7021
  username: zUsername
6885
7022
  }),
6886
7023
  query: z.optional(z.never())
@@ -6891,9 +7028,7 @@ var zUnassignRoleFromUserResponse = z.void().register(z.globalRegistry, {
6891
7028
  var zAssignRoleToUserData = z.object({
6892
7029
  body: z.optional(z.never()),
6893
7030
  path: z.object({
6894
- roleId: z.string().register(z.globalRegistry, {
6895
- description: "The role ID."
6896
- }),
7031
+ roleId: zRoleId,
6897
7032
  username: zUsername
6898
7033
  }),
6899
7034
  query: z.optional(z.never())
@@ -6983,41 +7118,18 @@ var zUpdateTenantData = z.object({
6983
7118
  });
6984
7119
  var zUpdateTenantResponse = zTenantUpdateResult;
6985
7120
  var zSearchClientsForTenantData = z.object({
6986
- body: z.optional(zSearchQueryRequest.and(z.object({
6987
- sort: z.optional(z.array(z.object({
6988
- field: z.enum([
6989
- "clientId"
6990
- ]).register(z.globalRegistry, {
6991
- description: "The field to sort by."
6992
- }),
6993
- order: z.optional(zSortOrderEnum)
6994
- })).register(z.globalRegistry, {
6995
- description: "Sort field criteria."
6996
- }))
6997
- }))),
7121
+ body: z.optional(zTenantClientSearchQueryRequest),
6998
7122
  path: z.object({
6999
7123
  tenantId: zTenantId
7000
7124
  }),
7001
7125
  query: z.optional(z.never())
7002
7126
  });
7003
- var zSearchClientsForTenantResponse = zSearchQueryResponse.and(z.object({
7004
- items: z.array(z.object({
7005
- clientId: z.string().register(z.globalRegistry, {
7006
- description: "The ID of the client."
7007
- })
7008
- })).register(z.globalRegistry, {
7009
- description: "The matching clients."
7010
- })
7011
- }).register(z.globalRegistry, {
7012
- description: "The search result of users for the tenant."
7013
- }));
7127
+ var zSearchClientsForTenantResponse = zTenantClientSearchResult;
7014
7128
  var zUnassignClientFromTenantData = z.object({
7015
7129
  body: z.optional(z.never()),
7016
7130
  path: z.object({
7017
7131
  tenantId: zTenantId,
7018
- clientId: z.string().register(z.globalRegistry, {
7019
- description: "The unique identifier of the application."
7020
- })
7132
+ clientId: zClientId
7021
7133
  }),
7022
7134
  query: z.optional(z.never())
7023
7135
  });
@@ -7028,9 +7140,7 @@ var zAssignClientToTenantData = z.object({
7028
7140
  body: z.optional(z.never()),
7029
7141
  path: z.object({
7030
7142
  tenantId: zTenantId,
7031
- clientId: z.string().register(z.globalRegistry, {
7032
- description: "The unique identifier of the application."
7033
- })
7143
+ clientId: zClientId
7034
7144
  }),
7035
7145
  query: z.optional(z.never())
7036
7146
  });
@@ -7049,9 +7159,7 @@ var zUnassignGroupFromTenantData = z.object({
7049
7159
  body: z.optional(z.never()),
7050
7160
  path: z.object({
7051
7161
  tenantId: zTenantId,
7052
- groupId: z.string().register(z.globalRegistry, {
7053
- description: "The unique identifier of the group."
7054
- })
7162
+ groupId: zGroupId
7055
7163
  }),
7056
7164
  query: z.optional(z.never())
7057
7165
  });
@@ -7062,9 +7170,7 @@ var zAssignGroupToTenantData = z.object({
7062
7170
  body: z.optional(z.never()),
7063
7171
  path: z.object({
7064
7172
  tenantId: zTenantId,
7065
- groupId: z.string().register(z.globalRegistry, {
7066
- description: "The unique identifier of the group."
7067
- })
7173
+ groupId: zGroupId
7068
7174
  }),
7069
7175
  query: z.optional(z.never())
7070
7176
  });
@@ -7078,20 +7184,12 @@ var zSearchMappingRulesForTenantData = z.object({
7078
7184
  }),
7079
7185
  query: z.optional(z.never())
7080
7186
  });
7081
- var zSearchMappingRulesForTenantResponse = zSearchQueryResponse.and(z.object({
7082
- items: z.array(zMappingRuleResult).register(z.globalRegistry, {
7083
- description: "The matching mapping rules."
7084
- })
7085
- }).register(z.globalRegistry, {
7086
- description: "The search result of MappingRules for the tenant."
7087
- }));
7187
+ var zSearchMappingRulesForTenantResponse = zTenantMappingRuleSearchResult;
7088
7188
  var zUnassignMappingRuleFromTenantData = z.object({
7089
7189
  body: z.optional(z.never()),
7090
7190
  path: z.object({
7091
7191
  tenantId: zTenantId,
7092
- mappingRuleId: z.string().register(z.globalRegistry, {
7093
- description: "The unique identifier of the mapping rule."
7094
- })
7192
+ mappingRuleId: zMappingRuleId
7095
7193
  }),
7096
7194
  query: z.optional(z.never())
7097
7195
  });
@@ -7102,9 +7200,7 @@ var zAssignMappingRuleToTenantData = z.object({
7102
7200
  body: z.optional(z.never()),
7103
7201
  path: z.object({
7104
7202
  tenantId: zTenantId,
7105
- mappingRuleId: z.string().register(z.globalRegistry, {
7106
- description: "The unique identifier of the mapping rule."
7107
- })
7203
+ mappingRuleId: zMappingRuleId
7108
7204
  }),
7109
7205
  query: z.optional(z.never())
7110
7206
  });
@@ -7118,20 +7214,12 @@ var zSearchRolesForTenantData = z.object({
7118
7214
  }),
7119
7215
  query: z.optional(z.never())
7120
7216
  });
7121
- var zSearchRolesForTenantResponse = zSearchQueryResponse.and(z.object({
7122
- items: z.array(zRoleResult).register(z.globalRegistry, {
7123
- description: "The matching roles."
7124
- })
7125
- }).register(z.globalRegistry, {
7126
- description: "The search result of roles for the tenant."
7127
- }));
7217
+ var zSearchRolesForTenantResponse = zTenantRoleSearchResult;
7128
7218
  var zUnassignRoleFromTenantData = z.object({
7129
7219
  body: z.optional(z.never()),
7130
7220
  path: z.object({
7131
7221
  tenantId: zTenantId,
7132
- roleId: z.string().register(z.globalRegistry, {
7133
- description: "The unique identifier of the role."
7134
- })
7222
+ roleId: zRoleId
7135
7223
  }),
7136
7224
  query: z.optional(z.never())
7137
7225
  });
@@ -7142,9 +7230,7 @@ var zAssignRoleToTenantData = z.object({
7142
7230
  body: z.optional(z.never()),
7143
7231
  path: z.object({
7144
7232
  tenantId: zTenantId,
7145
- roleId: z.string().register(z.globalRegistry, {
7146
- description: "The unique identifier of the role."
7147
- })
7233
+ roleId: zRoleId
7148
7234
  }),
7149
7235
  query: z.optional(z.never())
7150
7236
  });
@@ -7152,32 +7238,13 @@ var zAssignRoleToTenantResponse = z.void().register(z.globalRegistry, {
7152
7238
  description: "The role was successfully assigned to the tenant."
7153
7239
  });
7154
7240
  var zSearchUsersForTenantData = z.object({
7155
- body: z.optional(zSearchQueryRequest.and(z.object({
7156
- sort: z.optional(z.array(z.object({
7157
- field: z.enum([
7158
- "username"
7159
- ]).register(z.globalRegistry, {
7160
- description: "The field to sort by."
7161
- }),
7162
- order: z.optional(zSortOrderEnum)
7163
- })).register(z.globalRegistry, {
7164
- description: "Sort field criteria."
7165
- }))
7166
- }))),
7241
+ body: z.optional(zTenantUserSearchQueryRequest),
7167
7242
  path: z.object({
7168
7243
  tenantId: zTenantId
7169
7244
  }),
7170
7245
  query: z.optional(z.never())
7171
7246
  });
7172
- var zSearchUsersForTenantResponse = zSearchQueryResponse.and(z.object({
7173
- items: z.array(z.object({
7174
- username: zUsername
7175
- })).register(z.globalRegistry, {
7176
- description: "The matching users."
7177
- })
7178
- }).register(z.globalRegistry, {
7179
- description: "The search result of users for the tenant."
7180
- }));
7247
+ var zSearchUsersForTenantResponse = zTenantUserSearchResult;
7181
7248
  var zUnassignUserFromTenantData = z.object({
7182
7249
  body: z.optional(z.never()),
7183
7250
  path: z.object({
@@ -7217,23 +7284,7 @@ var zSearchUsersData = z.object({
7217
7284
  path: z.optional(z.never()),
7218
7285
  query: z.optional(z.never())
7219
7286
  });
7220
- var zSearchUsersResponse = zSearchQueryResponse.and(z.object({
7221
- items: z.array(z.object({
7222
- username: zUsername,
7223
- name: z.union([
7224
- z.string(),
7225
- z.null()
7226
- ]),
7227
- email: z.union([
7228
- z.string(),
7229
- z.null()
7230
- ])
7231
- })).register(z.globalRegistry, {
7232
- description: "The matching users."
7233
- })
7234
- }).register(z.globalRegistry, {
7235
- description: "The user search result."
7236
- }));
7287
+ var zSearchUsersResponse = zUserSearchResult;
7237
7288
  var zDeleteUserData = z.object({
7238
7289
  body: z.optional(z.never()),
7239
7290
  path: z.object({
@@ -7251,19 +7302,7 @@ var zGetUserData = z.object({
7251
7302
  }),
7252
7303
  query: z.optional(z.never())
7253
7304
  });
7254
- var zGetUserResponse = z.object({
7255
- username: zUsername,
7256
- name: z.union([
7257
- z.string(),
7258
- z.null()
7259
- ]),
7260
- email: z.union([
7261
- z.string(),
7262
- z.null()
7263
- ])
7264
- }).register(z.globalRegistry, {
7265
- description: "The user is successfully returned."
7266
- });
7305
+ var zGetUserResponse = zUserResult;
7267
7306
  var zUpdateUserData = z.object({
7268
7307
  body: zUserUpdateRequest,
7269
7308
  path: z.object({
@@ -7271,19 +7310,7 @@ var zUpdateUserData = z.object({
7271
7310
  }),
7272
7311
  query: z.optional(z.never())
7273
7312
  });
7274
- var zUpdateUserResponse = z.object({
7275
- username: zUsername,
7276
- name: z.union([
7277
- z.string(),
7278
- z.null()
7279
- ]),
7280
- email: z.union([
7281
- z.string(),
7282
- z.null()
7283
- ])
7284
- }).register(z.globalRegistry, {
7285
- description: "The user was updated successfully."
7286
- });
7313
+ var zUpdateUserResponse = zUserUpdateResult;
7287
7314
  var zSearchUserTasksData = z.object({
7288
7315
  body: z.optional(zUserTaskSearchQuery),
7289
7316
  path: z.optional(z.never()),
@@ -7349,19 +7376,7 @@ var zCompleteUserTaskResponse = z.void().register(z.globalRegistry, {
7349
7376
  var zSearchUserTaskEffectiveVariablesData = z.object({
7350
7377
  body: z.optional(z.object({
7351
7378
  page: z.optional(zOffsetPagination),
7352
- sort: z.optional(z.array(z.object({
7353
- field: z.enum([
7354
- "value",
7355
- "name",
7356
- "tenantId",
7357
- "variableKey",
7358
- "scopeKey",
7359
- "processInstanceKey"
7360
- ]).register(z.globalRegistry, {
7361
- description: "The field to sort by."
7362
- }),
7363
- order: z.optional(zSortOrderEnum)
7364
- })).register(z.globalRegistry, {
7379
+ sort: z.optional(z.array(zUserTaskVariableSearchQuerySortRequest).register(z.globalRegistry, {
7365
7380
  description: "Sort field criteria."
7366
7381
  })),
7367
7382
  filter: z.optional(zUserTaskVariableFilter)
@@ -7392,26 +7407,7 @@ var zGetUserTaskFormResponse = z.union([
7392
7407
  })
7393
7408
  ]);
7394
7409
  var zSearchUserTaskVariablesData = z.object({
7395
- body: z.optional(zSearchQueryRequest.and(z.object({
7396
- sort: z.optional(z.array(z.object({
7397
- field: z.enum([
7398
- "value",
7399
- "name",
7400
- "tenantId",
7401
- "variableKey",
7402
- "scopeKey",
7403
- "processInstanceKey"
7404
- ]).register(z.globalRegistry, {
7405
- description: "The field to sort by."
7406
- }),
7407
- order: z.optional(zSortOrderEnum)
7408
- })).register(z.globalRegistry, {
7409
- description: "Sort field criteria."
7410
- })),
7411
- filter: z.optional(zUserTaskVariableFilter)
7412
- }).register(z.globalRegistry, {
7413
- description: "User task search query request."
7414
- }))),
7410
+ body: z.optional(zUserTaskVariableSearchQueryRequest),
7415
7411
  path: z.object({
7416
7412
  userTaskKey: zUserTaskKey
7417
7413
  }),
@@ -7423,26 +7419,7 @@ var zSearchUserTaskVariablesData = z.object({
7423
7419
  });
7424
7420
  var zSearchUserTaskVariablesResponse = zVariableSearchQueryResult;
7425
7421
  var zSearchVariablesData = z.object({
7426
- body: z.optional(zSearchQueryRequest.and(z.object({
7427
- sort: z.optional(z.array(z.object({
7428
- field: z.enum([
7429
- "value",
7430
- "name",
7431
- "tenantId",
7432
- "variableKey",
7433
- "scopeKey",
7434
- "processInstanceKey"
7435
- ]).register(z.globalRegistry, {
7436
- description: "The field to sort by."
7437
- }),
7438
- order: z.optional(zSortOrderEnum)
7439
- })).register(z.globalRegistry, {
7440
- description: "Sort field criteria."
7441
- })),
7442
- filter: z.optional(zVariableFilter)
7443
- }).register(z.globalRegistry, {
7444
- description: "Variable search query request."
7445
- }))),
7422
+ body: z.optional(zVariableSearchQuery),
7446
7423
  path: z.optional(z.never()),
7447
7424
  query: z.optional(z.object({
7448
7425
  truncateValues: z.optional(z.boolean().register(z.globalRegistry, {
@@ -7468,6 +7445,8 @@ export {
7468
7445
  zAdHocSubProcessActivateActivitiesInstruction,
7469
7446
  zAdHocSubProcessActivateActivityReference,
7470
7447
  zAdvancedActorTypeFilter,
7448
+ zAdvancedAgentInstanceKeyFilter,
7449
+ zAdvancedAgentInstanceStatusFilter,
7471
7450
  zAdvancedAuditLogEntityKeyFilter,
7472
7451
  zAdvancedAuditLogKeyFilter,
7473
7452
  zAdvancedBatchOperationItemStateFilter,
@@ -7510,6 +7489,25 @@ export {
7510
7489
  zAdvancedStringFilter,
7511
7490
  zAdvancedUserTaskStateFilter,
7512
7491
  zAdvancedVariableKeyFilter,
7492
+ zAgentInstanceCreationRequest,
7493
+ zAgentInstanceCreationResult,
7494
+ zAgentInstanceDefinition,
7495
+ zAgentInstanceFilter,
7496
+ zAgentInstanceKey,
7497
+ zAgentInstanceKeyExactMatch,
7498
+ zAgentInstanceKeyFilterProperty,
7499
+ zAgentInstanceLimits,
7500
+ zAgentInstanceMetrics,
7501
+ zAgentInstanceMetricsDelta,
7502
+ zAgentInstanceResult,
7503
+ zAgentInstanceSearchQuery,
7504
+ zAgentInstanceSearchQueryResult,
7505
+ zAgentInstanceSearchQuerySortRequest,
7506
+ zAgentInstanceStatusEnum,
7507
+ zAgentInstanceStatusExactMatch,
7508
+ zAgentInstanceStatusFilterProperty,
7509
+ zAgentInstanceUpdateRequest,
7510
+ zAgentTool,
7513
7511
  zAncestorScopeInstruction,
7514
7512
  zAssignClientToGroupData,
7515
7513
  zAssignClientToGroupResponse,
@@ -7557,6 +7555,7 @@ export {
7557
7555
  zAuditLogSearchQueryRequest,
7558
7556
  zAuditLogSearchQueryResult,
7559
7557
  zAuditLogSearchQuerySortRequest,
7558
+ zAuthenticationConfigurationResponse,
7560
7559
  zAuthorizationCreateResult,
7561
7560
  zAuthorizationFilter,
7562
7561
  zAuthorizationIdBasedRequest,
@@ -7607,7 +7606,11 @@ export {
7607
7606
  zCategoryExactMatch,
7608
7607
  zCategoryFilterProperty,
7609
7608
  zChangeset,
7609
+ zClientId,
7610
7610
  zClockPinRequest,
7611
+ zCloudConfigurationResponse,
7612
+ zCloudStage,
7613
+ zClusterVariableName,
7611
7614
  zClusterVariableResult,
7612
7615
  zClusterVariableResultBase,
7613
7616
  zClusterVariableScopeEnum,
@@ -7622,6 +7625,7 @@ export {
7622
7625
  zCompleteJobResponse,
7623
7626
  zCompleteUserTaskData,
7624
7627
  zCompleteUserTaskResponse,
7628
+ zComponentsConfigurationResponse,
7625
7629
  zConditionalEvaluationInstruction,
7626
7630
  zConditionalEvaluationKey,
7627
7631
  zCorrelateMessageData,
@@ -7633,6 +7637,8 @@ export {
7633
7637
  zCorrelatedMessageSubscriptionSearchQuerySortRequest,
7634
7638
  zCreateAdminUserData,
7635
7639
  zCreateAdminUserResponse,
7640
+ zCreateAgentInstanceData,
7641
+ zCreateAgentInstanceResponse,
7636
7642
  zCreateAuthorizationData,
7637
7643
  zCreateAuthorizationResponse,
7638
7644
  zCreateClusterVariableRequest,
@@ -7741,6 +7747,7 @@ export {
7741
7747
  zDeleteTenantResponse,
7742
7748
  zDeleteUserData,
7743
7749
  zDeleteUserResponse,
7750
+ zDeploymentConfigurationResponse,
7744
7751
  zDeploymentDecisionRequirementsResult,
7745
7752
  zDeploymentDecisionResult,
7746
7753
  zDeploymentFormResult,
@@ -7798,6 +7805,8 @@ export {
7798
7805
  zFormKeyExactMatch,
7799
7806
  zFormKeyFilterProperty,
7800
7807
  zFormResult,
7808
+ zGetAgentInstanceData,
7809
+ zGetAgentInstanceResponse,
7801
7810
  zGetAuditLogData,
7802
7811
  zGetAuditLogResponse,
7803
7812
  zGetAuthenticationData,
@@ -7820,6 +7829,8 @@ export {
7820
7829
  zGetDocumentResponse,
7821
7830
  zGetElementInstanceData,
7822
7831
  zGetElementInstanceResponse,
7832
+ zGetFormByKeyData,
7833
+ zGetFormByKeyResponse,
7823
7834
  zGetGlobalClusterVariableData,
7824
7835
  zGetGlobalClusterVariableResponse,
7825
7836
  zGetGlobalJobStatisticsData,
@@ -7866,6 +7877,8 @@ export {
7866
7877
  zGetProcessInstanceStatisticsByErrorResponse,
7867
7878
  zGetProcessInstanceStatisticsData,
7868
7879
  zGetProcessInstanceStatisticsResponse,
7880
+ zGetResourceContentBinaryData,
7881
+ zGetResourceContentBinaryResponse,
7869
7882
  zGetResourceContentData,
7870
7883
  zGetResourceContentResponse,
7871
7884
  zGetResourceData,
@@ -7917,6 +7930,7 @@ export {
7917
7930
  zGroupCreateRequest,
7918
7931
  zGroupCreateResult,
7919
7932
  zGroupFilter,
7933
+ zGroupId,
7920
7934
  zGroupMappingRuleSearchResult,
7921
7935
  zGroupResult,
7922
7936
  zGroupRoleSearchResult,
@@ -8008,6 +8022,7 @@ export {
8008
8022
  zMappingRuleCreateUpdateRequest,
8009
8023
  zMappingRuleCreateUpdateResult,
8010
8024
  zMappingRuleFilter,
8025
+ zMappingRuleId,
8011
8026
  zMappingRuleResult,
8012
8027
  zMappingRuleSearchQueryRequest,
8013
8028
  zMappingRuleSearchQueryResult,
@@ -8128,10 +8143,14 @@ export {
8128
8143
  zResolveIncidentsBatchOperationResponse,
8129
8144
  zResolveProcessInstanceIncidentsData,
8130
8145
  zResolveProcessInstanceIncidentsResponse,
8146
+ zResourceFilter,
8131
8147
  zResourceKey,
8132
8148
  zResourceKeyExactMatch,
8133
8149
  zResourceKeyFilterProperty,
8134
8150
  zResourceResult,
8151
+ zResourceSearchQuery,
8152
+ zResourceSearchQueryResult,
8153
+ zResourceSearchQuerySortRequest,
8135
8154
  zResourceTypeEnum,
8136
8155
  zResumeBatchOperationData,
8137
8156
  zResumeBatchOperationResponse,
@@ -8146,6 +8165,7 @@ export {
8146
8165
  zRoleGroupSearchQueryRequest,
8147
8166
  zRoleGroupSearchQuerySortRequest,
8148
8167
  zRoleGroupSearchResult,
8168
+ zRoleId,
8149
8169
  zRoleMappingRuleSearchResult,
8150
8170
  zRoleResult,
8151
8171
  zRoleSearchQueryRequest,
@@ -8160,6 +8180,8 @@ export {
8160
8180
  zScopeKey,
8161
8181
  zScopeKeyExactMatch,
8162
8182
  zScopeKeyFilterProperty,
8183
+ zSearchAgentInstancesData,
8184
+ zSearchAgentInstancesResponse,
8163
8185
  zSearchAuditLogsData,
8164
8186
  zSearchAuditLogsResponse,
8165
8187
  zSearchAuthorizationsData,
@@ -8220,6 +8242,8 @@ export {
8220
8242
  zSearchQueryPageResponse,
8221
8243
  zSearchQueryRequest,
8222
8244
  zSearchQueryResponse,
8245
+ zSearchResourcesData,
8246
+ zSearchResourcesResponse,
8223
8247
  zSearchRolesData,
8224
8248
  zSearchRolesForGroupData,
8225
8249
  zSearchRolesForGroupResponse,
@@ -8316,6 +8340,8 @@ export {
8316
8340
  zUnassignUserFromTenantResponse,
8317
8341
  zUnassignUserTaskData,
8318
8342
  zUnassignUserTaskResponse,
8343
+ zUpdateAgentInstanceData,
8344
+ zUpdateAgentInstanceResponse,
8319
8345
  zUpdateAuthorizationData,
8320
8346
  zUpdateAuthorizationResponse,
8321
8347
  zUpdateClusterVariableRequest,
@@ -8382,6 +8408,7 @@ export {
8382
8408
  zVariableSearchQueryResult,
8383
8409
  zVariableSearchQuerySortRequest,
8384
8410
  zVariableSearchResult,
8385
- zVariableValueFilterProperty
8411
+ zVariableValueFilterProperty,
8412
+ zWebappComponent
8386
8413
  };
8387
- //# sourceMappingURL=zod.gen-WZT74U4Q.js.map
8414
+ //# sourceMappingURL=zod.gen-SZE2T4QF.js.map