@camunda8/orchestration-cluster-api 10.0.0-alpha.43 → 10.0.0-alpha.45

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.
@@ -9,15 +9,6 @@ var zAgentDefinitionTypeEnum = z.enum([
9
9
  ]).register(z.globalRegistry, {
10
10
  description: "The kind of agent an agent definition describes."
11
11
  });
12
- var zAgentTool = z.object({
13
- name: z.string().register(z.globalRegistry, {
14
- description: "The tool name as visible to the LLM."
15
- }),
16
- description: z.string().nullable(),
17
- elementId: z.string().nullable()
18
- }).register(z.globalRegistry, {
19
- description: "A tool available to the agent."
20
- });
21
12
  var zAgentInstanceMetrics = z.object({
22
13
  inputTokens: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, {
23
14
  description: "Total input tokens consumed across all model calls."
@@ -25,6 +16,15 @@ var zAgentInstanceMetrics = z.object({
25
16
  outputTokens: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, {
26
17
  description: "Total output tokens produced across all model calls."
27
18
  }),
19
+ reasoningTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, {
20
+ description: "Total reasoning tokens consumed across all model calls."
21
+ }),
22
+ cacheCreationTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, {
23
+ description: "Total tokens used to create prompt cache entries across all model calls."
24
+ }),
25
+ cacheReadTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, {
26
+ description: "Total tokens read from prompt cache across all model calls."
27
+ }),
28
28
  modelCalls: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
29
29
  description: "Total number of LLM calls made."
30
30
  }),
@@ -108,21 +108,22 @@ var zAgentInstanceMessageContentTypeEnum = z.enum([
108
108
  ]).register(z.globalRegistry, {
109
109
  description: "The content type discriminator for a history item content block."
110
110
  });
111
- var zAgentInstanceToolCall = z.object({
112
- toolCallId: z.string().register(z.globalRegistry, {
113
- description: "The LLM-assigned tool call ID. Correlates ASSISTANT items to their matching TOOL_RESULT items."
114
- }),
115
- toolName: z.string().register(z.globalRegistry, {
116
- description: "The LLM-visible tool name."
117
- }),
118
- elementId: z.string().nullable(),
119
- arguments: z.record(z.string(), z.unknown()).nullable()
111
+ var zAgentInstanceHistoryItemMetricsRequest = z.object({
112
+ inputTokens: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish(),
113
+ outputTokens: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish(),
114
+ reasoningTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish(),
115
+ cacheCreationTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish(),
116
+ cacheReadTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish(),
117
+ durationMs: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish()
120
118
  }).register(z.globalRegistry, {
121
- description: "A tool call associated with a history item. Used in both ASSISTANT and TOOL_RESULT items.\n"
119
+ description: "Per-call token and latency metrics for an ASSISTANT history item, as submitted on a\ncreate/update request. All fields are optional: omit a field the caller has no value\nfor rather than sending it as an explicit null.\n"
122
120
  });
123
121
  var zAgentInstanceHistoryItemMetrics = z.object({
124
122
  inputTokens: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullable(),
125
123
  outputTokens: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullable(),
124
+ reasoningTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullable(),
125
+ cacheCreationTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullable(),
126
+ cacheReadTokenCount: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullable(),
126
127
  durationMs: z.coerce.number().int().min(-9223372036854776e3, { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullable()
127
128
  }).register(z.globalRegistry, {
128
129
  description: "Per-call token and latency metrics for an ASSISTANT history item."
@@ -784,7 +785,9 @@ var zClusterRebalanceOperationPartition = z.object({
784
785
  "LEADER_CHANGED",
785
786
  "NO_LEADER",
786
787
  "NO_RESPONSE",
787
- "CANCELLED"
788
+ "CANCELLED",
789
+ "PHYSICAL_TENANT_DISABLED",
790
+ "PHYSICAL_TENANT_RECOVERING"
788
791
  ]).register(z.globalRegistry, {
789
792
  description: "The terminal outcome, present only when progress is COMPLETED."
790
793
  })
@@ -890,7 +893,8 @@ var zPartition = z.object({
890
893
  "joining",
891
894
  "active",
892
895
  "leaving",
893
- "recovering"
896
+ "recovering",
897
+ "learner"
894
898
  ]).register(z.globalRegistry, {
895
899
  description: "Describes the current operational state of the partition within the cluster configuration.\n"
896
900
  })
@@ -1809,20 +1813,42 @@ var zGroupUpdateRequest = z.object({
1809
1813
  description: "The new description of the group."
1810
1814
  }).optional()
1811
1815
  });
1812
- var zGroupFilter = z.object({
1816
+ var zGroupFilterFields = z.object({
1813
1817
  groupId: zStringFilterProperty.optional(),
1814
- name: z.string().register(z.globalRegistry, {
1815
- description: "The group name search filters."
1816
- }).optional()
1818
+ name: zStringFilterProperty.optional()
1817
1819
  }).register(z.globalRegistry, {
1818
1820
  description: "Group filter request"
1819
1821
  });
1822
+ var zGroupFilter = zGroupFilterFields.and(z.object({
1823
+ $or: z.array(zGroupFilterFields).nullish()
1824
+ }));
1820
1825
  var zProcessDefinitionId = z.string().min(1).regex(/^[\p{L}_][\p{L}\p{N}_\-\.]*$/u).register(z.globalRegistry, {
1821
1826
  description: "Id of a process definition, from the model. Only ids of process definitions that are deployed are useful."
1822
1827
  });
1823
1828
  var zElementId = z.string().register(z.globalRegistry, {
1824
1829
  description: "The model-defined id of an element."
1825
1830
  });
1831
+ var zAgentTool = z.object({
1832
+ name: z.string().register(z.globalRegistry, {
1833
+ description: "The tool name as visible to the LLM."
1834
+ }),
1835
+ description: z.string().nullable(),
1836
+ elementId: zElementId.nullable()
1837
+ }).register(z.globalRegistry, {
1838
+ description: "A tool available to the agent."
1839
+ });
1840
+ var zAgentInstanceToolCall = z.object({
1841
+ toolCallId: z.string().register(z.globalRegistry, {
1842
+ description: "The LLM-assigned tool call ID. Correlates ASSISTANT items to their matching TOOL_RESULT items."
1843
+ }),
1844
+ toolName: z.string().register(z.globalRegistry, {
1845
+ description: "The LLM-visible tool name."
1846
+ }),
1847
+ elementId: zElementId.nullable(),
1848
+ arguments: z.record(z.string(), z.unknown()).nullable()
1849
+ }).register(z.globalRegistry, {
1850
+ description: "A tool call associated with a history item. Used in both ASSISTANT and TOOL_RESULT items.\n"
1851
+ });
1826
1852
  var zProcessInstanceModificationMoveBatchOperationInstruction = z.object({
1827
1853
  sourceElementId: zElementId,
1828
1854
  targetElementId: zElementId
@@ -1981,6 +2007,12 @@ var zBusinessId = z.string().min(1).max(256).register(z.globalRegistry, {
1981
2007
  var zLoopIterationId = z.int().gte(1).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
1982
2008
  description: "A client-provided sequential integer identifying a loop iteration: one pass\nthrough an AI agent's loop, during which the model reasons, selects tools,\nevaluates the result, and decides whether to continue. One iteration covers\nthe input for the LLM call, the call itself, and the tools it dispatches;\nthe results of those tool calls are input to the next iteration. Must be a\npositive integer, increasing with each loopIteration. Established by the\nconnector when appending the first history item of a loopIteration.\n"
1983
2009
  });
2010
+ var zHistoryItemId = z.string().min(1).max(256).register(z.globalRegistry, {
2011
+ description: "The client-supplied identifier this item was created with."
2012
+ });
2013
+ var zJobLeaseToken = z.string().min(1).register(z.globalRegistry, {
2014
+ description: "An opaque, engine-minted fencing token identifying a single activation of a job.\nReturned by Activate Jobs as `ActivatedJobResult.leaseToken` when the job is\nactivated with a lease, and passed back on fenced job commands \u2014 and on\nagent-instance creation/updates as `jobLease` \u2014 to prove the caller holds the\ncurrent lease. The token is opaque: clients may rely on its presence and equality\nonly, and must never construct, parse, or otherwise interpret it beyond equality\nchecks. It cannot be minted client-side; only the engine produces it, exactly once\nper leased activation, and clients must not depend on any particular internal format.\n"
2015
+ });
1984
2016
  var zAdvancedElementIdFilter = z.object({
1985
2017
  $eq: zElementId.optional(),
1986
2018
  $neq: zElementId.optional(),
@@ -2225,7 +2257,7 @@ var zJobFailRequest = z.object({
2225
2257
  variables: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
2226
2258
  description: "JSON object that will instantiate the variables at the local scope of the job's associated task.\n"
2227
2259
  }).optional(),
2228
- leaseToken: z.string().nullish()
2260
+ leaseToken: zJobLeaseToken.nullish()
2229
2261
  });
2230
2262
  var zJobErrorRequest = z.object({
2231
2263
  errorCode: z.string().register(z.globalRegistry, {
@@ -2233,7 +2265,7 @@ var zJobErrorRequest = z.object({
2233
2265
  }),
2234
2266
  errorMessage: z.string().nullish(),
2235
2267
  variables: z.record(z.string(), z.unknown()).nullish(),
2236
- leaseToken: z.string().nullish()
2268
+ leaseToken: zJobLeaseToken.nullish()
2237
2269
  });
2238
2270
  var zJobResultCorrections = z.object({
2239
2271
  assignee: z.string().nullish(),
@@ -2282,7 +2314,7 @@ var zJobResult = z.union([
2282
2314
  var zJobCompletionRequest = z.object({
2283
2315
  variables: z.record(z.string(), z.unknown()).nullish(),
2284
2316
  result: zJobResult.optional(),
2285
- leaseToken: z.string().nullish(),
2317
+ leaseToken: zJobLeaseToken.nullish(),
2286
2318
  businessId: zBusinessId.nullish()
2287
2319
  });
2288
2320
  var zJobChangeset = z.object({
@@ -2511,16 +2543,14 @@ var zAgentInstanceDefinitionResult = z.object({
2511
2543
  description: "The definition of an agent instance. Set at creation, but can change later via a\nCONFIGURATION history item.\n"
2512
2544
  });
2513
2545
  var zAgentInstanceHistoryItem = z.object({
2514
- historyItemId: z.string().register(z.globalRegistry, {
2515
- description: "Caller-assigned identifier used to detect and dedupe retries of the same\nitem. For example, when a retried job activation resubmits history items\nit already sent in an earlier attempt, those items are not rejected; they\nare flagged via isDuplicate in the response instead. Must be non-blank.\n"
2516
- }),
2546
+ historyItemId: zHistoryItemId,
2517
2547
  loopIteration: zLoopIterationId,
2518
2548
  role: zAgentInstanceHistoryRoleEnum,
2519
2549
  content: z.array(zAgentInstanceMessageContent).register(z.globalRegistry, {
2520
2550
  description: "The content blocks of this history item."
2521
2551
  }),
2522
2552
  toolCalls: z.array(zAgentInstanceToolCall).nullish(),
2523
- metrics: zAgentInstanceHistoryItemMetrics.nullish(),
2553
+ metrics: zAgentInstanceHistoryItemMetricsRequest.nullish(),
2524
2554
  producedAt: z.iso.datetime().register(z.globalRegistry, {
2525
2555
  description: "The agent-side timestamp of when this message was produced."
2526
2556
  }),
@@ -2718,11 +2748,9 @@ var zJobKey = zLongKey;
2718
2748
  var zAgentInstanceCreationRequest = z.object({
2719
2749
  elementInstanceKey: zElementInstanceKey,
2720
2750
  jobKey: zJobKey,
2721
- jobLease: z.string().register(z.globalRegistry, {
2722
- description: "Opaque lease token received from the job activation response. Disambiguates\nthis activation from any other activation of the same job: if the job is\nlater retried, history items submitted under a superseded lease are discarded\nrather than committed.\n"
2723
- }),
2751
+ jobLease: zJobLeaseToken,
2724
2752
  history: z.array(zAgentInstanceHistoryItem).min(1).register(z.globalRegistry, {
2725
- description: "A batch of history items to append to the agent instance's conversation\nhistory, in request order. Each created item is echoed back in the\nresponse's createdHistory, positionally correlated. Must include a\nCONFIGURATION item establishing model, provider, and systemPrompt (and,\nif needed, limits).\n"
2753
+ description: "A batch of history items to append to the agent instance's conversation\nhistory, in request order. Each created item is echoed back in the\nresponse's createdHistory, positionally correlated. Must include a\nCONFIGURATION item establishing model, provider, and systemPrompt (and,\nif needed, limits). Every item's role must be CONFIGURATION or USER, and\nno item may carry non-zero usage-token metrics (inputTokens, outputTokens,\nreasoningTokenCount, cacheCreationTokenCount, cacheReadTokenCount);\ndurationMs is exempt and may be non-zero.\n"
2726
2754
  })
2727
2755
  }).register(z.globalRegistry, {
2728
2756
  description: "Request to create a new agent instance."
@@ -2731,9 +2759,7 @@ var zAgentInstanceUpdateRequest = z.object({
2731
2759
  elementInstanceKey: zElementInstanceKey,
2732
2760
  status: zAgentInstanceUpdateStatusEnum.optional(),
2733
2761
  jobKey: zJobKey,
2734
- jobLease: z.string().register(z.globalRegistry, {
2735
- description: "Opaque lease token received from the job activation response. Disambiguates\nthis activation from any other activation of the same job: if the job is\nlater retried, history items submitted under a superseded lease are discarded\nrather than committed.\n"
2736
- }),
2762
+ jobLease: zJobLeaseToken,
2737
2763
  history: z.array(zAgentInstanceHistoryItem).nullish()
2738
2764
  }).register(z.globalRegistry, {
2739
2765
  description: "Request to update the mutable state of an agent instance.\n"
@@ -2844,7 +2870,7 @@ var zActivatedJobResult = z.object({
2844
2870
  priority: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
2845
2871
  description: "The priority of the job. Higher values indicate higher priority. Jobs created before 8.10 have no stored priority; the API returns 0 for such jobs.\n"
2846
2872
  }),
2847
- leaseToken: z.string().nullable()
2873
+ leaseToken: zJobLeaseToken.nullish()
2848
2874
  });
2849
2875
  var zJobActivationResult = z.object({
2850
2876
  jobs: z.array(zActivatedJobResult).register(z.globalRegistry, {
@@ -3250,7 +3276,7 @@ var zIncidentResolutionRequest = z.object({
3250
3276
  var zJobUpdateRequest = z.object({
3251
3277
  changeset: zJobChangeset,
3252
3278
  operationReference: zOperationReference.optional(),
3253
- leaseToken: z.string().nullish()
3279
+ leaseToken: zJobLeaseToken.nullish()
3254
3280
  });
3255
3281
  var zAgentDefinitionKey = zLongKey;
3256
3282
  var zAgentDefinitionResult = z.object({
@@ -3304,9 +3330,7 @@ var zAgentInstanceResult = z.object({
3304
3330
  });
3305
3331
  var zAgentHistoryItemKey = zLongKey;
3306
3332
  var zAgentInstanceCreatedHistoryItem = z.object({
3307
- historyItemId: z.string().register(z.globalRegistry, {
3308
- description: "The historyItemId of the corresponding item in the request, echoed back\nso callers can correlate response entries with request items by id.\n"
3309
- }),
3333
+ historyItemId: zHistoryItemId,
3310
3334
  historyItemKey: zAgentHistoryItemKey,
3311
3335
  isDuplicate: z.boolean().register(z.globalRegistry, {
3312
3336
  description: "True if this item had already been recorded and no new AGENT_HISTORY event\nwas created for it; false if a new event was created.\n"
@@ -3331,15 +3355,11 @@ var zAgentInstanceUpdateResult = z.object({
3331
3355
  });
3332
3356
  var zAgentInstanceHistoryItemResult = z.object({
3333
3357
  historyItemKey: zAgentHistoryItemKey,
3334
- historyItemId: z.string().register(z.globalRegistry, {
3335
- description: "The client-supplied identifier this item was created with. Empty for items that don't\ncarry one.\n"
3336
- }),
3358
+ historyItemId: zHistoryItemId,
3337
3359
  agentInstanceKey: zAgentInstanceKey,
3338
3360
  elementInstanceKey: zElementInstanceKey,
3339
3361
  jobKey: zJobKey,
3340
- jobLease: z.string().register(z.globalRegistry, {
3341
- description: "The lease token of the activation that produced this item."
3342
- }),
3362
+ jobLease: zJobLeaseToken,
3343
3363
  loopIteration: zLoopIterationId,
3344
3364
  role: zAgentInstanceHistoryRoleEnum,
3345
3365
  content: z.array(zAgentInstanceMessageContent).register(z.globalRegistry, {
@@ -3685,7 +3705,7 @@ var zMappingRuleResult = z.object({
3685
3705
  }),
3686
3706
  mappingRuleId: zMappingRuleId
3687
3707
  });
3688
- var zMappingRuleFilter = z.object({
3708
+ var zMappingRuleFilterFields = z.object({
3689
3709
  claimName: z.string().register(z.globalRegistry, {
3690
3710
  description: "The claim name to match against a token."
3691
3711
  }).optional(),
@@ -3693,10 +3713,13 @@ var zMappingRuleFilter = z.object({
3693
3713
  description: "The value of the claim to match."
3694
3714
  }).optional(),
3695
3715
  name: zStringFilterProperty.optional(),
3696
- mappingRuleId: zMappingRuleId.optional()
3716
+ mappingRuleId: zStringFilterProperty.optional()
3697
3717
  }).register(z.globalRegistry, {
3698
- description: "Mapping rule search filter."
3718
+ description: "Mapping rule search filter fields."
3699
3719
  });
3720
+ var zMappingRuleFilter = zMappingRuleFilterFields.and(z.object({
3721
+ $or: z.array(zMappingRuleFilterFields).nullish()
3722
+ }));
3700
3723
  var zMessageCorrelationRequest = z.object({
3701
3724
  name: z.string().register(z.globalRegistry, {
3702
3725
  description: "The message name as defined in the BPMN process\n"
@@ -3829,9 +3852,7 @@ var zCorrelatedMessageSubscriptionResult = z.object({
3829
3852
  correlationTime: z.iso.datetime().register(z.globalRegistry, {
3830
3853
  description: "The time when the message was correlated."
3831
3854
  }),
3832
- elementId: z.string().register(z.globalRegistry, {
3833
- description: "The element ID that received the message."
3834
- }),
3855
+ elementId: zElementId,
3835
3856
  elementInstanceKey: zElementInstanceKey.nullable(),
3836
3857
  messageKey: zMessageKey,
3837
3858
  messageName: z.string().register(z.globalRegistry, {
@@ -4022,7 +4043,7 @@ var zProcessInstanceCreationRuntimeInstruction = z.object({
4022
4043
  var zProcessInstanceCreationInstructionById = z.object({
4023
4044
  processDefinitionId: zProcessDefinitionId,
4024
4045
  processDefinitionVersion: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
4025
- description: "The version of the process. By default, the latest version of the process is used.\n"
4046
+ description: "The version of the process. If omitted, the latest active version is used.\n"
4026
4047
  }).optional().default(-1),
4027
4048
  variables: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
4028
4049
  description: "JSON object that will instantiate the variables for the root variable scope\nof the process instance.\n"
@@ -4372,12 +4393,15 @@ var zRoleResult = z.object({
4372
4393
  }).register(z.globalRegistry, {
4373
4394
  description: "Role search response item."
4374
4395
  });
4375
- var zRoleFilter = z.object({
4376
- roleId: zRoleId.optional(),
4396
+ var zRoleFilterFields = z.object({
4397
+ roleId: zStringFilterProperty.optional(),
4377
4398
  name: zStringFilterProperty.optional()
4378
4399
  }).register(z.globalRegistry, {
4379
4400
  description: "Role filter request"
4380
4401
  });
4402
+ var zRoleFilter = zRoleFilterFields.and(z.object({
4403
+ $or: z.array(zRoleFilterFields).nullish()
4404
+ }));
4381
4405
  var zRoleUserResult = z.object({
4382
4406
  username: zUsername
4383
4407
  });
@@ -5500,7 +5524,7 @@ var zTenantSearchQuerySortRequest = z.object({
5500
5524
  "name",
5501
5525
  "tenantId"
5502
5526
  ]).register(z.globalRegistry, {
5503
- description: "The field to sort by. `key` is deprecated and should not be used anymore."
5527
+ description: "The field to sort by."
5504
5528
  }),
5505
5529
  order: zSortOrderEnum.optional()
5506
5530
  });
@@ -5785,13 +5809,16 @@ var zUserSearchQuerySortRequest = z.object({
5785
5809
  }),
5786
5810
  order: zSortOrderEnum.optional()
5787
5811
  });
5788
- var zUserFilter = z.object({
5812
+ var zUserFilterFields = z.object({
5789
5813
  username: zStringFilterProperty.optional(),
5790
5814
  name: zStringFilterProperty.optional(),
5791
5815
  email: zStringFilterProperty.optional()
5792
5816
  }).register(z.globalRegistry, {
5793
- description: "User search filter."
5817
+ description: "User search filter fields."
5794
5818
  });
5819
+ var zUserFilter = zUserFilterFields.and(z.object({
5820
+ $or: z.array(zUserFilterFields).nullish()
5821
+ }));
5795
5822
  var zUserSearchQueryRequest = zSearchQueryRequest.and(z.object({
5796
5823
  sort: z.array(zUserSearchQuerySortRequest).register(z.globalRegistry, {
5797
5824
  description: "Sort field criteria."
@@ -8194,6 +8221,7 @@ export {
8194
8221
  zAgentInstanceHistoryFilter,
8195
8222
  zAgentInstanceHistoryItem,
8196
8223
  zAgentInstanceHistoryItemMetrics,
8224
+ zAgentInstanceHistoryItemMetricsRequest,
8197
8225
  zAgentInstanceHistoryItemResult,
8198
8226
  zAgentInstanceHistoryRoleEnum,
8199
8227
  zAgentInstanceHistoryRoleExactMatch,
@@ -8798,6 +8826,7 @@ export {
8798
8826
  zGroupCreateRequest,
8799
8827
  zGroupCreateResult,
8800
8828
  zGroupFilter,
8829
+ zGroupFilterFields,
8801
8830
  zGroupId,
8802
8831
  zGroupMappingRuleSearchResult,
8803
8832
  zGroupResult,
@@ -8815,6 +8844,7 @@ export {
8815
8844
  zHistoryBackupInfoWritable,
8816
8845
  zHistoryBackupSnapshotInfo,
8817
8846
  zHistoryBackupStateCode,
8847
+ zHistoryItemId,
8818
8848
  zIncidentErrorTypeEnum,
8819
8849
  zIncidentErrorTypeExactMatch,
8820
8850
  zIncidentErrorTypeExactMatchWritable,
@@ -8863,6 +8893,7 @@ export {
8863
8893
  zJobKindExactMatch,
8864
8894
  zJobKindExactMatchWritable,
8865
8895
  zJobKindFilterProperty,
8896
+ zJobLeaseToken,
8866
8897
  zJobListenerEventTypeEnum,
8867
8898
  zJobListenerEventTypeExactMatch,
8868
8899
  zJobListenerEventTypeExactMatchWritable,
@@ -8915,6 +8946,7 @@ export {
8915
8946
  zMappingRuleCreateUpdateRequest,
8916
8947
  zMappingRuleCreateUpdateResult,
8917
8948
  zMappingRuleFilter,
8949
+ zMappingRuleFilterFields,
8918
8950
  zMappingRuleId,
8919
8951
  zMappingRuleResult,
8920
8952
  zMappingRuleSearchQueryRequest,
@@ -9117,6 +9149,7 @@ export {
9117
9149
  zRoleCreateRequest,
9118
9150
  zRoleCreateResult,
9119
9151
  zRoleFilter,
9152
+ zRoleFilterFields,
9120
9153
  zRoleGroupResult,
9121
9154
  zRoleGroupSearchQueryRequest,
9122
9155
  zRoleGroupSearchQuerySortRequest,
@@ -9417,6 +9450,7 @@ export {
9417
9450
  zUseSourceParentKeyInstruction,
9418
9451
  zUserCreateResult,
9419
9452
  zUserFilter,
9453
+ zUserFilterFields,
9420
9454
  zUserRequest,
9421
9455
  zUserResult,
9422
9456
  zUserSearchQueryRequest,
@@ -9472,4 +9506,4 @@ export {
9472
9506
  zWaitStateTypeFilterProperty,
9473
9507
  zWebappComponent
9474
9508
  };
9475
- //# sourceMappingURL=zod.gen-2PU225MP.js.map
9509
+ //# sourceMappingURL=zod.gen-A3RZUVR4.js.map