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

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.
@@ -25,6 +25,15 @@ var zAgentInstanceMetrics = z.object({
25
25
  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
26
  description: "Total output tokens produced across all model calls."
27
27
  }),
28
+ 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, {
29
+ description: "Total reasoning tokens consumed across all model calls."
30
+ }),
31
+ 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, {
32
+ description: "Total tokens used to create prompt cache entries across all model calls."
33
+ }),
34
+ 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, {
35
+ description: "Total tokens read from prompt cache across all model calls."
36
+ }),
28
37
  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
38
  description: "Total number of LLM calls made."
30
39
  }),
@@ -120,9 +129,22 @@ var zAgentInstanceToolCall = z.object({
120
129
  }).register(z.globalRegistry, {
121
130
  description: "A tool call associated with a history item. Used in both ASSISTANT and TOOL_RESULT items.\n"
122
131
  });
132
+ var zAgentInstanceHistoryItemMetricsRequest = z.object({
133
+ 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(),
134
+ 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(),
135
+ 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(),
136
+ 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(),
137
+ 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(),
138
+ 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()
139
+ }).register(z.globalRegistry, {
140
+ 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"
141
+ });
123
142
  var zAgentInstanceHistoryItemMetrics = z.object({
124
143
  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
144
  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(),
145
+ 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(),
146
+ 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(),
147
+ 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
148
  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
149
  }).register(z.globalRegistry, {
128
150
  description: "Per-call token and latency metrics for an ASSISTANT history item."
@@ -784,7 +806,9 @@ var zClusterRebalanceOperationPartition = z.object({
784
806
  "LEADER_CHANGED",
785
807
  "NO_LEADER",
786
808
  "NO_RESPONSE",
787
- "CANCELLED"
809
+ "CANCELLED",
810
+ "PHYSICAL_TENANT_DISABLED",
811
+ "PHYSICAL_TENANT_RECOVERING"
788
812
  ]).register(z.globalRegistry, {
789
813
  description: "The terminal outcome, present only when progress is COMPLETED."
790
814
  })
@@ -890,7 +914,8 @@ var zPartition = z.object({
890
914
  "joining",
891
915
  "active",
892
916
  "leaving",
893
- "recovering"
917
+ "recovering",
918
+ "learner"
894
919
  ]).register(z.globalRegistry, {
895
920
  description: "Describes the current operational state of the partition within the cluster configuration.\n"
896
921
  })
@@ -1809,14 +1834,17 @@ var zGroupUpdateRequest = z.object({
1809
1834
  description: "The new description of the group."
1810
1835
  }).optional()
1811
1836
  });
1812
- var zGroupFilter = z.object({
1837
+ var zGroupFilterFields = z.object({
1813
1838
  groupId: zStringFilterProperty.optional(),
1814
- name: z.string().register(z.globalRegistry, {
1815
- description: "The group name search filters."
1816
- }).optional()
1839
+ name: zStringFilterProperty.optional()
1817
1840
  }).register(z.globalRegistry, {
1818
1841
  description: "Group filter request"
1819
1842
  });
1843
+ var zGroupFilter = zGroupFilterFields.and(z.object({
1844
+ $or: z.array(zGroupFilterFields).register(z.globalRegistry, {
1845
+ description: 'Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied.\n\nTop-level fields and the `$or` clause are combined using AND logic \u2014 meaning: (top-level filters) AND (any of the `$or` filters) must match.\n<br>\n<em>Example:</em>\n\n```json\n{\n "$or": [\n { "groupId": "group-1" },\n { "groupId": "group-2" }\n ]\n}\n```\nThis matches groups whose <code>groupId</code> is <em>group-1</em> or <em>group-2</em>.\n<br>\n<p>Note: Using complex <code>$or</code> conditions may impact performance, use with caution in high-volume environments.\n'
1846
+ }).optional()
1847
+ }));
1820
1848
  var zProcessDefinitionId = z.string().min(1).regex(/^[\p{L}_][\p{L}\p{N}_\-\.]*$/u).register(z.globalRegistry, {
1821
1849
  description: "Id of a process definition, from the model. Only ids of process definitions that are deployed are useful."
1822
1850
  });
@@ -1981,6 +2009,12 @@ var zBusinessId = z.string().min(1).max(256).register(z.globalRegistry, {
1981
2009
  var zLoopIterationId = z.int().gte(1).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
1982
2010
  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
2011
  });
2012
+ var zHistoryItemId = z.string().min(1).max(256).register(z.globalRegistry, {
2013
+ description: "The client-supplied identifier this item was created with."
2014
+ });
2015
+ var zJobLeaseToken = z.string().min(1).register(z.globalRegistry, {
2016
+ 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"
2017
+ });
1984
2018
  var zAdvancedElementIdFilter = z.object({
1985
2019
  $eq: zElementId.optional(),
1986
2020
  $neq: zElementId.optional(),
@@ -2225,7 +2259,7 @@ var zJobFailRequest = z.object({
2225
2259
  variables: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
2226
2260
  description: "JSON object that will instantiate the variables at the local scope of the job's associated task.\n"
2227
2261
  }).optional(),
2228
- leaseToken: z.string().nullish()
2262
+ leaseToken: zJobLeaseToken.nullish()
2229
2263
  });
2230
2264
  var zJobErrorRequest = z.object({
2231
2265
  errorCode: z.string().register(z.globalRegistry, {
@@ -2233,7 +2267,7 @@ var zJobErrorRequest = z.object({
2233
2267
  }),
2234
2268
  errorMessage: z.string().nullish(),
2235
2269
  variables: z.record(z.string(), z.unknown()).nullish(),
2236
- leaseToken: z.string().nullish()
2270
+ leaseToken: zJobLeaseToken.nullish()
2237
2271
  });
2238
2272
  var zJobResultCorrections = z.object({
2239
2273
  assignee: z.string().nullish(),
@@ -2282,7 +2316,7 @@ var zJobResult = z.union([
2282
2316
  var zJobCompletionRequest = z.object({
2283
2317
  variables: z.record(z.string(), z.unknown()).nullish(),
2284
2318
  result: zJobResult.optional(),
2285
- leaseToken: z.string().nullish(),
2319
+ leaseToken: zJobLeaseToken.nullish(),
2286
2320
  businessId: zBusinessId.nullish()
2287
2321
  });
2288
2322
  var zJobChangeset = z.object({
@@ -2511,16 +2545,14 @@ var zAgentInstanceDefinitionResult = z.object({
2511
2545
  description: "The definition of an agent instance. Set at creation, but can change later via a\nCONFIGURATION history item.\n"
2512
2546
  });
2513
2547
  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
- }),
2548
+ historyItemId: zHistoryItemId,
2517
2549
  loopIteration: zLoopIterationId,
2518
2550
  role: zAgentInstanceHistoryRoleEnum,
2519
2551
  content: z.array(zAgentInstanceMessageContent).register(z.globalRegistry, {
2520
2552
  description: "The content blocks of this history item."
2521
2553
  }),
2522
2554
  toolCalls: z.array(zAgentInstanceToolCall).nullish(),
2523
- metrics: zAgentInstanceHistoryItemMetrics.nullish(),
2555
+ metrics: zAgentInstanceHistoryItemMetricsRequest.nullish(),
2524
2556
  producedAt: z.iso.datetime().register(z.globalRegistry, {
2525
2557
  description: "The agent-side timestamp of when this message was produced."
2526
2558
  }),
@@ -2718,11 +2750,9 @@ var zJobKey = zLongKey;
2718
2750
  var zAgentInstanceCreationRequest = z.object({
2719
2751
  elementInstanceKey: zElementInstanceKey,
2720
2752
  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
- }),
2753
+ jobLease: zJobLeaseToken,
2724
2754
  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"
2755
+ 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
2756
  })
2727
2757
  }).register(z.globalRegistry, {
2728
2758
  description: "Request to create a new agent instance."
@@ -2731,9 +2761,7 @@ var zAgentInstanceUpdateRequest = z.object({
2731
2761
  elementInstanceKey: zElementInstanceKey,
2732
2762
  status: zAgentInstanceUpdateStatusEnum.optional(),
2733
2763
  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
- }),
2764
+ jobLease: zJobLeaseToken,
2737
2765
  history: z.array(zAgentInstanceHistoryItem).nullish()
2738
2766
  }).register(z.globalRegistry, {
2739
2767
  description: "Request to update the mutable state of an agent instance.\n"
@@ -2844,7 +2872,7 @@ var zActivatedJobResult = z.object({
2844
2872
  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
2873
  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
2874
  }),
2847
- leaseToken: z.string().nullable()
2875
+ leaseToken: zJobLeaseToken.nullable()
2848
2876
  });
2849
2877
  var zJobActivationResult = z.object({
2850
2878
  jobs: z.array(zActivatedJobResult).register(z.globalRegistry, {
@@ -3250,7 +3278,7 @@ var zIncidentResolutionRequest = z.object({
3250
3278
  var zJobUpdateRequest = z.object({
3251
3279
  changeset: zJobChangeset,
3252
3280
  operationReference: zOperationReference.optional(),
3253
- leaseToken: z.string().nullish()
3281
+ leaseToken: zJobLeaseToken.nullish()
3254
3282
  });
3255
3283
  var zAgentDefinitionKey = zLongKey;
3256
3284
  var zAgentDefinitionResult = z.object({
@@ -3304,9 +3332,7 @@ var zAgentInstanceResult = z.object({
3304
3332
  });
3305
3333
  var zAgentHistoryItemKey = zLongKey;
3306
3334
  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
- }),
3335
+ historyItemId: zHistoryItemId,
3310
3336
  historyItemKey: zAgentHistoryItemKey,
3311
3337
  isDuplicate: z.boolean().register(z.globalRegistry, {
3312
3338
  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 +3357,11 @@ var zAgentInstanceUpdateResult = z.object({
3331
3357
  });
3332
3358
  var zAgentInstanceHistoryItemResult = z.object({
3333
3359
  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
- }),
3360
+ historyItemId: zHistoryItemId,
3337
3361
  agentInstanceKey: zAgentInstanceKey,
3338
3362
  elementInstanceKey: zElementInstanceKey,
3339
3363
  jobKey: zJobKey,
3340
- jobLease: z.string().register(z.globalRegistry, {
3341
- description: "The lease token of the activation that produced this item."
3342
- }),
3364
+ jobLease: zJobLeaseToken,
3343
3365
  loopIteration: zLoopIterationId,
3344
3366
  role: zAgentInstanceHistoryRoleEnum,
3345
3367
  content: z.array(zAgentInstanceMessageContent).register(z.globalRegistry, {
@@ -3685,7 +3707,7 @@ var zMappingRuleResult = z.object({
3685
3707
  }),
3686
3708
  mappingRuleId: zMappingRuleId
3687
3709
  });
3688
- var zMappingRuleFilter = z.object({
3710
+ var zMappingRuleFilterFields = z.object({
3689
3711
  claimName: z.string().register(z.globalRegistry, {
3690
3712
  description: "The claim name to match against a token."
3691
3713
  }).optional(),
@@ -3693,10 +3715,15 @@ var zMappingRuleFilter = z.object({
3693
3715
  description: "The value of the claim to match."
3694
3716
  }).optional(),
3695
3717
  name: zStringFilterProperty.optional(),
3696
- mappingRuleId: zMappingRuleId.optional()
3718
+ mappingRuleId: zStringFilterProperty.optional()
3697
3719
  }).register(z.globalRegistry, {
3698
- description: "Mapping rule search filter."
3720
+ description: "Mapping rule search filter fields."
3699
3721
  });
3722
+ var zMappingRuleFilter = zMappingRuleFilterFields.and(z.object({
3723
+ $or: z.array(zMappingRuleFilterFields).register(z.globalRegistry, {
3724
+ description: 'Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied.\n\nTop-level fields and the `$or` clause are combined using AND logic \u2014 meaning: (top-level filters) AND (any of the `$or` filters) must match.\n<br>\n<em>Example:</em>\n\n```json\n{\n "$or": [\n { "mappingRuleId": "rule-1" },\n { "mappingRuleId": "rule-2" }\n ]\n}\n```\nThis matches mapping rules whose <code>mappingRuleId</code> is <em>rule-1</em> or <em>rule-2</em>.\n<br>\n<p>Note: Using complex <code>$or</code> conditions may impact performance, use with caution in high-volume environments.\n'
3725
+ }).optional()
3726
+ }));
3700
3727
  var zMessageCorrelationRequest = z.object({
3701
3728
  name: z.string().register(z.globalRegistry, {
3702
3729
  description: "The message name as defined in the BPMN process\n"
@@ -4022,7 +4049,7 @@ var zProcessInstanceCreationRuntimeInstruction = z.object({
4022
4049
  var zProcessInstanceCreationInstructionById = z.object({
4023
4050
  processDefinitionId: zProcessDefinitionId,
4024
4051
  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"
4052
+ description: "The version of the process. If omitted, the latest active version is used.\n"
4026
4053
  }).optional().default(-1),
4027
4054
  variables: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
4028
4055
  description: "JSON object that will instantiate the variables for the root variable scope\nof the process instance.\n"
@@ -4372,12 +4399,17 @@ var zRoleResult = z.object({
4372
4399
  }).register(z.globalRegistry, {
4373
4400
  description: "Role search response item."
4374
4401
  });
4375
- var zRoleFilter = z.object({
4376
- roleId: zRoleId.optional(),
4402
+ var zRoleFilterFields = z.object({
4403
+ roleId: zStringFilterProperty.optional(),
4377
4404
  name: zStringFilterProperty.optional()
4378
4405
  }).register(z.globalRegistry, {
4379
4406
  description: "Role filter request"
4380
4407
  });
4408
+ var zRoleFilter = zRoleFilterFields.and(z.object({
4409
+ $or: z.array(zRoleFilterFields).register(z.globalRegistry, {
4410
+ description: 'Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied.\n\nTop-level fields and the `$or` clause are combined using AND logic \u2014 meaning: (top-level filters) AND (any of the `$or` filters) must match.\n<br>\n<em>Example:</em>\n\n```json\n{\n "name": "Admin",\n "$or": [\n { "roleId": "role-1" },\n { "roleId": "role-2" }\n ]\n}\n```\nThis matches roles that:\n\n<ul style="padding-left: 20px; margin-left: 20px;">\n <li style="list-style-type: disc;">have name equal to <em>Admin</em></li>\n <li style="list-style-type: disc;">and match either:\n <ul style="padding-left: 20px; margin-left: 20px;">\n <li style="list-style-type: circle;"><code>roleId</code> is <em>role-1</em>, or</li>\n <li style="list-style-type: circle;"><code>roleId</code> is <em>role-2</em></li>\n </ul>\n </li>\n</ul>\n<br>\n<p>Note: Using complex <code>$or</code> conditions may impact performance, use with caution in high-volume environments.\n'
4411
+ }).optional()
4412
+ }));
4381
4413
  var zRoleUserResult = z.object({
4382
4414
  username: zUsername
4383
4415
  });
@@ -5500,7 +5532,7 @@ var zTenantSearchQuerySortRequest = z.object({
5500
5532
  "name",
5501
5533
  "tenantId"
5502
5534
  ]).register(z.globalRegistry, {
5503
- description: "The field to sort by. `key` is deprecated and should not be used anymore."
5535
+ description: "The field to sort by."
5504
5536
  }),
5505
5537
  order: zSortOrderEnum.optional()
5506
5538
  });
@@ -5785,13 +5817,18 @@ var zUserSearchQuerySortRequest = z.object({
5785
5817
  }),
5786
5818
  order: zSortOrderEnum.optional()
5787
5819
  });
5788
- var zUserFilter = z.object({
5820
+ var zUserFilterFields = z.object({
5789
5821
  username: zStringFilterProperty.optional(),
5790
5822
  name: zStringFilterProperty.optional(),
5791
5823
  email: zStringFilterProperty.optional()
5792
5824
  }).register(z.globalRegistry, {
5793
- description: "User search filter."
5825
+ description: "User search filter fields."
5794
5826
  });
5827
+ var zUserFilter = zUserFilterFields.and(z.object({
5828
+ $or: z.array(zUserFilterFields).register(z.globalRegistry, {
5829
+ description: 'Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied.\n\nTop-level fields and the `$or` clause are combined using AND logic \u2014 meaning: (top-level filters) AND (any of the `$or` filters) must match.\n<br>\n<em>Example:</em>\n\n```json\n{\n "$or": [\n { "username": "user-1" },\n { "username": "user-2" }\n ]\n}\n```\nThis matches users whose <code>username</code> is <em>user-1</em> or <em>user-2</em>.\n<br>\n<p>Note: Using complex <code>$or</code> conditions may impact performance, use with caution in high-volume environments.\n'
5830
+ }).optional()
5831
+ }));
5795
5832
  var zUserSearchQueryRequest = zSearchQueryRequest.and(z.object({
5796
5833
  sort: z.array(zUserSearchQuerySortRequest).register(z.globalRegistry, {
5797
5834
  description: "Sort field criteria."
@@ -8194,6 +8231,7 @@ export {
8194
8231
  zAgentInstanceHistoryFilter,
8195
8232
  zAgentInstanceHistoryItem,
8196
8233
  zAgentInstanceHistoryItemMetrics,
8234
+ zAgentInstanceHistoryItemMetricsRequest,
8197
8235
  zAgentInstanceHistoryItemResult,
8198
8236
  zAgentInstanceHistoryRoleEnum,
8199
8237
  zAgentInstanceHistoryRoleExactMatch,
@@ -8798,6 +8836,7 @@ export {
8798
8836
  zGroupCreateRequest,
8799
8837
  zGroupCreateResult,
8800
8838
  zGroupFilter,
8839
+ zGroupFilterFields,
8801
8840
  zGroupId,
8802
8841
  zGroupMappingRuleSearchResult,
8803
8842
  zGroupResult,
@@ -8815,6 +8854,7 @@ export {
8815
8854
  zHistoryBackupInfoWritable,
8816
8855
  zHistoryBackupSnapshotInfo,
8817
8856
  zHistoryBackupStateCode,
8857
+ zHistoryItemId,
8818
8858
  zIncidentErrorTypeEnum,
8819
8859
  zIncidentErrorTypeExactMatch,
8820
8860
  zIncidentErrorTypeExactMatchWritable,
@@ -8863,6 +8903,7 @@ export {
8863
8903
  zJobKindExactMatch,
8864
8904
  zJobKindExactMatchWritable,
8865
8905
  zJobKindFilterProperty,
8906
+ zJobLeaseToken,
8866
8907
  zJobListenerEventTypeEnum,
8867
8908
  zJobListenerEventTypeExactMatch,
8868
8909
  zJobListenerEventTypeExactMatchWritable,
@@ -8915,6 +8956,7 @@ export {
8915
8956
  zMappingRuleCreateUpdateRequest,
8916
8957
  zMappingRuleCreateUpdateResult,
8917
8958
  zMappingRuleFilter,
8959
+ zMappingRuleFilterFields,
8918
8960
  zMappingRuleId,
8919
8961
  zMappingRuleResult,
8920
8962
  zMappingRuleSearchQueryRequest,
@@ -9117,6 +9159,7 @@ export {
9117
9159
  zRoleCreateRequest,
9118
9160
  zRoleCreateResult,
9119
9161
  zRoleFilter,
9162
+ zRoleFilterFields,
9120
9163
  zRoleGroupResult,
9121
9164
  zRoleGroupSearchQueryRequest,
9122
9165
  zRoleGroupSearchQuerySortRequest,
@@ -9417,6 +9460,7 @@ export {
9417
9460
  zUseSourceParentKeyInstruction,
9418
9461
  zUserCreateResult,
9419
9462
  zUserFilter,
9463
+ zUserFilterFields,
9420
9464
  zUserRequest,
9421
9465
  zUserResult,
9422
9466
  zUserSearchQueryRequest,
@@ -9472,4 +9516,4 @@ export {
9472
9516
  zWaitStateTypeFilterProperty,
9473
9517
  zWebappComponent
9474
9518
  };
9475
- //# sourceMappingURL=zod.gen-2PU225MP.js.map
9519
+ //# sourceMappingURL=zod.gen-SZTQQ6VL.js.map