@camunda8/orchestration-cluster-api 10.0.0-alpha.26 → 10.0.0-alpha.28

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,13 @@ import "./chunk-DGUM43GV.js";
2
2
 
3
3
  // src/gen/zod.gen.ts
4
4
  import * as z from "zod";
5
+ var zAgentDefinitionTypeEnum = z.enum([
6
+ "AI_AGENT_SUB_PROCESS",
7
+ "AI_AGENT_TASK",
8
+ "EXTERNAL_AGENT"
9
+ ]).register(z.globalRegistry, {
10
+ description: "The kind of agent an agent definition describes."
11
+ });
5
12
  var zAgentInstanceDefinition = z.object({
6
13
  model: z.string().register(z.globalRegistry, {
7
14
  description: "The LLM model identifier (for example, gpt-4o)."
@@ -91,7 +98,8 @@ var zAgentInstanceMetricsDelta = z.object({
91
98
  var zAgentInstanceHistoryRoleEnum = z.enum([
92
99
  "USER",
93
100
  "ASSISTANT",
94
- "TOOL_RESULT"
101
+ "TOOL_RESULT",
102
+ "CONFIGURATION"
95
103
  ]).register(z.globalRegistry, {
96
104
  description: "The role of a history item in the agent conversation."
97
105
  });
@@ -139,7 +147,7 @@ var zAgentInstanceToolCall = z.object({
139
147
  elementId: z.string().nullable(),
140
148
  arguments: z.record(z.string(), z.unknown()).nullable()
141
149
  }).register(z.globalRegistry, {
142
- description: "A tool call associated with a history item. Used in both ASSISTANT and TOOL_RESULT items.\nASSISTANT items carry arguments; TOOL_RESULT items carry arguments as null.\n"
150
+ description: "A tool call associated with a history item. Used in both ASSISTANT and TOOL_RESULT items.\n"
143
151
  });
144
152
  var zAgentInstanceHistoryItemMetrics = z.object({
145
153
  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(),
@@ -493,6 +501,54 @@ var zRuntimeBackupState = z.object({
493
501
  }).register(z.globalRegistry, {
494
502
  description: "Information about the checkpoint and backup state of the physical tenant."
495
503
  });
504
+ var zHistoryBackupStateCode = z.enum([
505
+ "IN_PROGRESS",
506
+ "COMPLETED",
507
+ "FAILED",
508
+ "INCOMPLETE",
509
+ "INCOMPATIBLE"
510
+ ]).register(z.globalRegistry, {
511
+ description: "The aggregated state of a history backup, computed from the state of each of its\nsnapshots.\n"
512
+ });
513
+ var zTakeHistoryBackupRequest = z.object({
514
+ backupId: zBackupId
515
+ }).register(z.globalRegistry, {
516
+ description: "Request body for taking a history backup."
517
+ });
518
+ var zTakeHistoryBackupResponse = z.object({
519
+ backupId: zBackupId,
520
+ scheduledSnapshots: z.array(z.string().register(z.globalRegistry, {
521
+ description: "The name of a scheduled snapshot."
522
+ })).register(z.globalRegistry, {
523
+ description: "The names of the snapshots that have been scheduled for this backup."
524
+ })
525
+ }).register(z.globalRegistry, {
526
+ description: "Response body for taking a history backup."
527
+ });
528
+ var zHistoryBackupSnapshotInfo = z.object({
529
+ snapshotName: z.string().register(z.globalRegistry, {
530
+ description: "The name of the snapshot."
531
+ }).readonly(),
532
+ state: z.string().readonly().nullable(),
533
+ startTime: z.iso.datetime().readonly().nullable(),
534
+ failures: z.array(z.string().register(z.globalRegistry, {
535
+ description: "A failure reported by the secondary storage for this snapshot."
536
+ })).register(z.globalRegistry, {
537
+ description: "The failures reported for this snapshot. Empty if there were none."
538
+ }).readonly()
539
+ }).register(z.globalRegistry, {
540
+ description: "Detailed info of a single snapshot making up a history backup."
541
+ });
542
+ var zHistoryBackupInfo = z.object({
543
+ backupId: zBackupId,
544
+ state: zHistoryBackupStateCode,
545
+ failureReason: z.string().nullable(),
546
+ details: z.array(zHistoryBackupSnapshotInfo).register(z.globalRegistry, {
547
+ description: "Detailed status of the backup per snapshot. Always lists every snapshot found for\nthe backup; when the backup was read without snapshot detail, each entry carries\nonly its name.\n"
548
+ }).readonly()
549
+ }).register(z.globalRegistry, {
550
+ description: "Detailed status of a history backup. The aggregated state is computed from the state of\neach of its snapshots as:\n- If every expected snapshot exists and all are complete, the overall state is\n 'COMPLETED'.\n- If one snapshot failed or is partial, the overall state is 'FAILED'.\n- Otherwise, if one snapshot is incompatible, the overall state is 'INCOMPATIBLE'.\n- Otherwise, if one snapshot is still running, the overall state is 'IN_PROGRESS'.\n- Otherwise, if snapshots are missing and the backup has not progressed within the\n configured timeout, the overall state is 'INCOMPLETE'.\n"
551
+ });
496
552
  var zBatchOperationError = z.object({
497
553
  partitionId: 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, {
498
554
  description: "The partition ID where the error occurred."
@@ -545,6 +601,17 @@ var zClockPinRequest = z.object({
545
601
  description: "The exact time in epoch milliseconds to which the clock should be pinned."
546
602
  })
547
603
  });
604
+ var zClusterStatusResponse = z.object({
605
+ status: z.enum([
606
+ "HEALTHY",
607
+ "DEGRADED",
608
+ "DOWN"
609
+ ]).register(z.globalRegistry, {
610
+ description: "`HEALTHY` when every physical tenant is healthy, `DOWN` when no physical tenant can process work, `DEGRADED` in every other case."
611
+ })
612
+ }).register(z.globalRegistry, {
613
+ description: "The aggregated status of the whole cluster."
614
+ });
548
615
  var zClusterVariableKindEnum = z.enum(["JSON", "SECRET_REFERENCE"]).register(z.globalRegistry, {
549
616
  description: "The kind of a cluster variable. JSON is the default. SECRET_REFERENCE allows the value to contain camunda.secrets.X references that are resolved at job activation time."
550
617
  });
@@ -562,17 +629,6 @@ var zUpdateClusterVariableRequest = z.object({
562
629
  description: "A generic key-value metadata bag attached to the cluster variable. Values must be strings or numbers. Limited to 100 entries and a configurable maximum serialized size (default: 100 entries at max key length of a cluster variable name (256 chars) plus the maximum value length, 8192 characters)."
563
630
  }).optional()
564
631
  });
565
- var zClusterStatusResponse = z.object({
566
- status: z.enum([
567
- "HEALTHY",
568
- "DEGRADED",
569
- "DOWN"
570
- ]).register(z.globalRegistry, {
571
- description: "`HEALTHY` when every physical tenant is healthy, `DOWN` when no physical tenant can process work, `DEGRADED` in every other case."
572
- })
573
- }).register(z.globalRegistry, {
574
- description: "The aggregated status of the whole cluster."
575
- });
576
632
  var zMode = z.enum(["PROCESSING", "RECOVERING"]).register(z.globalRegistry, {
577
633
  description: "The operating mode of a cluster's partitions."
578
634
  });
@@ -660,12 +716,20 @@ var zClusterModeChangeOperation = z.object({
660
716
  }).register(z.globalRegistry, {
661
717
  description: "A single operation that is part of a cluster mode change."
662
718
  });
719
+ var zClusterModeChangePlannedChange = z.object({
720
+ physicalTenantId: z.string().nullable(),
721
+ operations: z.array(zClusterModeChangeOperation).register(z.globalRegistry, {
722
+ description: "The ordered list of operations that will be applied to the physical tenant."
723
+ })
724
+ }).register(z.globalRegistry, {
725
+ description: "The operations of a cluster mode change that apply to one physical tenant."
726
+ });
663
727
  var zClusterModeChangeResponse = z.object({
664
728
  changeId: z.string().register(z.globalRegistry, {
665
729
  description: "The ID of the cluster change that was triggered by the request."
666
730
  }),
667
- plannedChanges: z.array(zClusterModeChangeOperation).register(z.globalRegistry, {
668
- description: "The ordered list of operations that will be applied to complete the change."
731
+ plannedChanges: z.array(zClusterModeChangePlannedChange).register(z.globalRegistry, {
732
+ description: "The operations that will be applied to complete the change, grouped by the physical tenant they belong to. Groups are transitioned in parallel; the operations within a group are applied in the given order."
669
733
  })
670
734
  }).register(z.globalRegistry, {
671
735
  description: "The planned changes resulting from a cluster mode transition request."
@@ -945,6 +1009,22 @@ var zExpressionEvaluationResult = z.object({
945
1009
  var zLikeFilter = z.string().register(z.globalRegistry, {
946
1010
  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"
947
1011
  });
1012
+ var zAdvancedAgentDefinitionTypeFilter = z.object({
1013
+ $eq: zAgentDefinitionTypeEnum.optional(),
1014
+ $neq: zAgentDefinitionTypeEnum.optional(),
1015
+ $exists: z.boolean().register(z.globalRegistry, {
1016
+ description: "Checks if the current property exists."
1017
+ }).optional(),
1018
+ $in: z.array(zAgentDefinitionTypeEnum).register(z.globalRegistry, {
1019
+ description: "Checks if the property matches any of the provided values."
1020
+ }).optional(),
1021
+ $notIn: z.array(zAgentDefinitionTypeEnum).register(z.globalRegistry, {
1022
+ description: "Checks if the property matches none of the provided values."
1023
+ }).optional(),
1024
+ $like: zLikeFilter.optional()
1025
+ }).register(z.globalRegistry, {
1026
+ description: "Advanced AgentDefinitionTypeEnum filter."
1027
+ });
948
1028
  var zAdvancedAgentInstanceStatusFilter = z.object({
949
1029
  $eq: zAgentInstanceStatusEnum.optional(),
950
1030
  $neq: zAgentInstanceStatusEnum.optional(),
@@ -1514,7 +1594,7 @@ var zBusinessId = z.string().min(1).max(256).register(z.globalRegistry, {
1514
1594
  description: "An optional, user-defined string identifier that identifies the process instance\nwithin the scope of a process definition (scoped by tenant). If provided and uniqueness\nenforcement is enabled, the engine will reject creation if another root process instance\nwith the same business id is already active for the same process definition.\nNote that any active child process instances with the same business id are not taken into account.\n"
1515
1595
  });
1516
1596
  var zLoopIterationId = z.int().gte(1).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
1517
- description: "A client-provided sequential integer identifying one pass through the agent\nfeedback loop: one LLM call, its tool dispatches, and their results. Must be\na positive integer, increasing with each loopIteration. Established by the\nconnector when appending the first history item of a loopIteration.\n"
1597
+ 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"
1518
1598
  });
1519
1599
  var zAdvancedElementIdFilter = z.object({
1520
1600
  $eq: zElementId.optional(),
@@ -2032,6 +2112,23 @@ var zAgentInstanceMessageContent = z.discriminatedUnion("contentType", [
2032
2112
  zAgentInstanceDocumentContent.extend({ contentType: z.literal("DOCUMENT") }),
2033
2113
  zAgentInstanceObjectContent.extend({ contentType: z.literal("OBJECT") })
2034
2114
  ]);
2115
+ var zAgentInstanceHistoryItem = z.object({
2116
+ historyItemId: z.string().register(z.globalRegistry, {
2117
+ 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"
2118
+ }),
2119
+ loopIteration: zLoopIterationId,
2120
+ role: zAgentInstanceHistoryRoleEnum,
2121
+ content: z.array(zAgentInstanceMessageContent).register(z.globalRegistry, {
2122
+ description: "The content blocks of this history item."
2123
+ }),
2124
+ toolCalls: z.array(zAgentInstanceToolCall).nullish(),
2125
+ metrics: zAgentInstanceHistoryItemMetrics.nullish(),
2126
+ producedAt: z.iso.datetime().register(z.globalRegistry, {
2127
+ description: "The agent-side timestamp of when this message was produced."
2128
+ })
2129
+ }).register(z.globalRegistry, {
2130
+ description: "A single history item to append to the agent instance's conversation history,\nsubmitted as part of the batch on an agent instance update request.\n"
2131
+ });
2035
2132
  var zDocumentCreationBatchResponse = z.object({
2036
2133
  failedDocuments: z.array(zDocumentCreationFailureDetail).register(z.globalRegistry, {
2037
2134
  description: "Documents that were successfully created."
@@ -2094,14 +2191,6 @@ var zAgentInstanceCreationRequest = z.object({
2094
2191
  }).register(z.globalRegistry, {
2095
2192
  description: "Request to create a new agent instance."
2096
2193
  });
2097
- var zAgentInstanceUpdateRequest = z.object({
2098
- elementInstanceKey: zElementInstanceKey,
2099
- status: zAgentInstanceUpdateStatusEnum.optional(),
2100
- metrics: zAgentInstanceMetricsDelta.optional(),
2101
- tools: z.array(zAgentTool).nullish()
2102
- }).register(z.globalRegistry, {
2103
- description: "Request to update the mutable state of an agent instance.\n"
2104
- });
2105
2194
  var zUserTaskKey = zLongKey;
2106
2195
  var zUserTaskWaitStateDetails = zBaseWaitStateDetails.and(z.object({
2107
2196
  taskKey: zUserTaskKey,
@@ -2226,6 +2315,17 @@ var zElementInstanceResult = z.object({
2226
2315
  incidentKey: zIncidentKey.nullable()
2227
2316
  });
2228
2317
  var zJobKey = zLongKey;
2318
+ var zAgentInstanceUpdateRequest = z.object({
2319
+ elementInstanceKey: zElementInstanceKey,
2320
+ status: zAgentInstanceUpdateStatusEnum.optional(),
2321
+ metrics: zAgentInstanceMetricsDelta.optional(),
2322
+ tools: z.array(zAgentTool).nullish(),
2323
+ jobKey: zJobKey.nullish(),
2324
+ jobLease: z.string().nullish(),
2325
+ history: z.array(zAgentInstanceHistoryItem).nullish()
2326
+ }).register(z.globalRegistry, {
2327
+ description: "Request to update the mutable state of an agent instance.\n"
2328
+ });
2229
2329
  var zAgentInstanceHistoryItemRequest = z.object({
2230
2330
  elementInstanceKey: zElementInstanceKey,
2231
2331
  jobKey: zJobKey,
@@ -2240,7 +2340,7 @@ var zAgentInstanceHistoryItemRequest = z.object({
2240
2340
  toolCalls: z.array(zAgentInstanceToolCall).nullish(),
2241
2341
  metrics: zAgentInstanceHistoryItemMetrics.nullish(),
2242
2342
  producedAt: z.iso.datetime().register(z.globalRegistry, {
2243
- description: "The connector-side timestamp of when this message was produced."
2343
+ description: "The agent-side timestamp of when this message was produced."
2244
2344
  })
2245
2345
  }).register(z.globalRegistry, {
2246
2346
  description: "Request to append a single history item to an agent instance's conversation history."
@@ -2748,7 +2848,7 @@ var zDeleteDecisionInstanceRequest = z.object({
2748
2848
  var zDeleteResourceRequest = z.object({
2749
2849
  operationReference: zOperationReference.optional(),
2750
2850
  deleteHistory: z.boolean().register(z.globalRegistry, {
2751
- description: "Indicates if the historic data of a process resource should be deleted via a\nbatch operation asynchronously.\n\nThis flag is only effective for process resources. For other resource types\n(decisions, forms, generic resources), this flag is ignored and no history\nwill be deleted. In those cases, the `batchOperation` field in the response\nwill not be populated.\n"
2851
+ description: "Indicates if the historic data associated with the resource should also be deleted\nasynchronously.\n\nThis flag is effective for process definitions and decision requirements definitions.\nFor other resource types (forms, generic resources) it is ignored and no history is\ndeleted. For a decision requirements definition the `batchOperation` field in the\nresponse carries the created batch operation. For a process definition the history is\ndeleted as part of the definition's draining/deletion lifecycle and no batch operation is\nreturned.\n"
2752
2852
  }).optional().default(false)
2753
2853
  }).nullable();
2754
2854
  var zIncidentResolutionRequest = z.object({
@@ -2759,9 +2859,28 @@ var zJobUpdateRequest = z.object({
2759
2859
  operationReference: zOperationReference.optional(),
2760
2860
  leaseToken: z.string().nullish()
2761
2861
  });
2862
+ var zAgentDefinitionKey = zLongKey;
2863
+ var zAgentDefinitionResult = z.object({
2864
+ agentDefinitionKey: zAgentDefinitionKey,
2865
+ agentType: zAgentDefinitionTypeEnum,
2866
+ name: z.string().register(z.globalRegistry, {
2867
+ description: "The human-readable name of the process element that owns the agent definition. Falls\nback to elementId when the element has no BPMN name configured.\n"
2868
+ }),
2869
+ elementId: zElementId,
2870
+ processDefinitionId: zProcessDefinitionId,
2871
+ processDefinitionKey: zProcessDefinitionKey,
2872
+ 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, {
2873
+ description: "The version of the process definition that owns the agent definition."
2874
+ }),
2875
+ processDefinitionVersionTag: z.string().nullable(),
2876
+ tenantId: zTenantId
2877
+ }).register(z.globalRegistry, {
2878
+ description: "An agent definition, created at deploy time for the process element it belongs to."
2879
+ });
2762
2880
  var zAgentInstanceKey = zLongKey;
2763
2881
  var zAgentInstanceResult = z.object({
2764
2882
  agentInstanceKey: zAgentInstanceKey,
2883
+ agentDefinitionKey: zAgentDefinitionKey,
2765
2884
  status: zAgentInstanceStatusEnum,
2766
2885
  definition: zAgentInstanceDefinition,
2767
2886
  metrics: zAgentInstanceMetrics,
@@ -2796,6 +2915,24 @@ var zAgentInstanceCreationResult = z.object({
2796
2915
  description: "Response returned after successfully creating an agent instance."
2797
2916
  });
2798
2917
  var zAgentHistoryItemKey = zLongKey;
2918
+ var zAgentInstanceCreatedHistoryItem = z.object({
2919
+ historyItemId: z.string().register(z.globalRegistry, {
2920
+ description: "The historyItemId of the corresponding item in the request, echoed back\nso callers can correlate response entries with request items by id.\n"
2921
+ }),
2922
+ historyItemKey: zAgentHistoryItemKey,
2923
+ isDuplicate: z.boolean().register(z.globalRegistry, {
2924
+ 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"
2925
+ })
2926
+ }).register(z.globalRegistry, {
2927
+ description: "The outcome of appending a single history item from an update request's\nhistory batch.\n"
2928
+ });
2929
+ var zAgentInstanceUpdateResult = z.object({
2930
+ createdHistory: z.array(zAgentInstanceCreatedHistoryItem).register(z.globalRegistry, {
2931
+ description: "One entry per history item submitted in the request, in request order.\nEmpty when no history items were submitted.\n"
2932
+ })
2933
+ }).register(z.globalRegistry, {
2934
+ description: "Response returned after successfully updating an agent instance."
2935
+ });
2799
2936
  var zAgentInstanceHistoryItemCreationResult = z.object({
2800
2937
  historyItemKey: zAgentHistoryItemKey
2801
2938
  }).register(z.globalRegistry, {
@@ -2803,6 +2940,9 @@ var zAgentInstanceHistoryItemCreationResult = z.object({
2803
2940
  });
2804
2941
  var zAgentInstanceHistoryItemResult = z.object({
2805
2942
  historyItemKey: zAgentHistoryItemKey,
2943
+ historyItemId: z.string().register(z.globalRegistry, {
2944
+ description: "The client-supplied identifier this item was created with. Empty for items that don't\ncarry one.\n"
2945
+ }),
2806
2946
  agentInstanceKey: zAgentInstanceKey,
2807
2947
  elementInstanceKey: zElementInstanceKey,
2808
2948
  jobKey: zJobKey,
@@ -2815,12 +2955,21 @@ var zAgentInstanceHistoryItemResult = z.object({
2815
2955
  description: "The content blocks of this history item."
2816
2956
  }),
2817
2957
  toolCalls: z.array(zAgentInstanceToolCall).register(z.globalRegistry, {
2818
- description: "Tool calls for this item. Empty for USER items and ASSISTANT items with no tool dispatches.\nASSISTANT items: dispatched tool calls with arguments populated.\nTOOL_RESULT items: single-entry array referencing the originating tool call (arguments null).\n"
2958
+ description: "Tool calls for this item. Empty for USER items and ASSISTANT items with no tool dispatches.\nASSISTANT items: dispatched tool calls.\nTOOL_RESULT items: single-entry array referencing the originating tool call.\n"
2819
2959
  }),
2820
2960
  metrics: zAgentInstanceHistoryItemMetrics.nullable(),
2821
2961
  commitStatus: zAgentInstanceHistoryCommitStatusEnum,
2822
2962
  producedAt: z.iso.datetime().register(z.globalRegistry, {
2823
- description: "The connector-side timestamp of when this message was produced."
2963
+ description: "The agent-side timestamp of when this message was produced."
2964
+ }),
2965
+ tools: z.array(zAgentTool).register(z.globalRegistry, {
2966
+ description: "The complete list of tools available to the agent as of this entry. CONFIGURATION\nitems only; empty for other roles.\n"
2967
+ }),
2968
+ model: z.string().nullable(),
2969
+ provider: z.string().nullable(),
2970
+ limits: zAgentInstanceLimits,
2971
+ systemPrompt: z.array(zAgentInstanceMessageContent).register(z.globalRegistry, {
2972
+ description: "The system prompt, as content blocks, as of this entry. CONFIGURATION items only;\nempty for other roles.\n"
2824
2973
  })
2825
2974
  }).register(z.globalRegistry, {
2826
2975
  description: "A single conversation history item belonging to an agent instance."
@@ -2985,6 +3134,21 @@ var zAdvancedDecisionEvaluationInstanceKeyFilter = z.object({
2985
3134
  }).register(z.globalRegistry, {
2986
3135
  description: "Advanced DecisionEvaluationInstanceKey filter."
2987
3136
  });
3137
+ var zAdvancedAgentDefinitionKeyFilter = z.object({
3138
+ $eq: zAgentDefinitionKey.optional(),
3139
+ $neq: zAgentDefinitionKey.optional(),
3140
+ $exists: z.boolean().register(z.globalRegistry, {
3141
+ description: "Checks if the current property exists."
3142
+ }).optional(),
3143
+ $in: z.array(zAgentDefinitionKey).register(z.globalRegistry, {
3144
+ description: "Checks if the property matches any of the provided values."
3145
+ }).optional(),
3146
+ $notIn: z.array(zAgentDefinitionKey).register(z.globalRegistry, {
3147
+ description: "Checks if the property matches none of the provided values."
3148
+ }).optional()
3149
+ }).register(z.globalRegistry, {
3150
+ description: "Advanced AgentDefinitionKey filter."
3151
+ });
2988
3152
  var zAdvancedAgentInstanceKeyFilter = z.object({
2989
3153
  $eq: zAgentInstanceKey.optional(),
2990
3154
  $neq: zAgentInstanceKey.optional(),
@@ -3901,6 +4065,22 @@ var zProcessDefinitionVariableNameSearchQuery = zSearchQueryRequest.and(z.object
3901
4065
  var zSortOrderEnum = z.enum(["ASC", "DESC"]).register(z.globalRegistry, {
3902
4066
  description: "The order in which to sort the related field."
3903
4067
  }).default("ASC");
4068
+ var zAgentDefinitionSearchQuerySortRequest = z.object({
4069
+ field: z.enum([
4070
+ "agentDefinitionKey",
4071
+ "agentType",
4072
+ "name",
4073
+ "elementId",
4074
+ "processDefinitionId",
4075
+ "processDefinitionKey",
4076
+ "processDefinitionVersion",
4077
+ "processDefinitionVersionTag",
4078
+ "tenantId"
4079
+ ]).register(z.globalRegistry, {
4080
+ description: "The field to sort by."
4081
+ }),
4082
+ order: zSortOrderEnum.optional()
4083
+ });
3904
4084
  var zAgentInstanceSearchQuerySortRequest = z.object({
3905
4085
  field: z.enum([
3906
4086
  "agentInstanceKey",
@@ -4445,6 +4625,13 @@ var zSearchQueryPageResponse = z.object({
4445
4625
  var zSearchQueryResponse = z.object({
4446
4626
  page: zSearchQueryPageResponse
4447
4627
  });
4628
+ var zAgentDefinitionSearchQueryResult = zSearchQueryResponse.and(z.object({
4629
+ items: z.array(zAgentDefinitionResult).register(z.globalRegistry, {
4630
+ description: "The matching agent definitions."
4631
+ })
4632
+ }).register(z.globalRegistry, {
4633
+ description: "Agent definition search response."
4634
+ }));
4448
4635
  var zAgentInstanceSearchQueryResult = zSearchQueryResponse.and(z.object({
4449
4636
  items: z.array(zAgentInstanceResult).register(z.globalRegistry, {
4450
4637
  description: "The matching agent instances."
@@ -5298,6 +5485,11 @@ default, with local set to \`false\`, scope '1' will be { "foo": 5 } and scope '
5298
5485
  }).optional().default(false),
5299
5486
  operationReference: zOperationReference.optional()
5300
5487
  });
5488
+ var zAgentDefinitionTypeExactMatch = zAgentDefinitionTypeEnum;
5489
+ var zAgentDefinitionTypeFilterProperty = z.union([
5490
+ zAgentDefinitionTypeExactMatch,
5491
+ zAdvancedAgentDefinitionTypeFilter
5492
+ ]);
5301
5493
  var zAgentInstanceStatusExactMatch = zAgentInstanceStatusEnum;
5302
5494
  var zAgentInstanceStatusFilterProperty = z.union([
5303
5495
  zAgentInstanceStatusExactMatch,
@@ -5768,6 +5960,32 @@ var zDecisionEvaluationInstanceKeyFilterProperty = z.union([
5768
5960
  zDecisionEvaluationInstanceKeyExactMatch,
5769
5961
  zAdvancedDecisionEvaluationInstanceKeyFilter
5770
5962
  ]);
5963
+ var zAgentDefinitionKeyExactMatch = zAgentDefinitionKey;
5964
+ var zAgentDefinitionKeyFilterProperty = z.union([
5965
+ zAgentDefinitionKeyExactMatch,
5966
+ zAdvancedAgentDefinitionKeyFilter
5967
+ ]);
5968
+ var zAgentDefinitionFilter = z.object({
5969
+ agentDefinitionKey: zAgentDefinitionKeyFilterProperty.optional(),
5970
+ agentType: zAgentDefinitionTypeFilterProperty.optional(),
5971
+ name: zStringFilterProperty.optional(),
5972
+ elementId: zElementIdFilterProperty.optional(),
5973
+ processDefinitionId: zProcessDefinitionIdFilterProperty.optional(),
5974
+ processDefinitionKey: zProcessDefinitionKeyFilterProperty.optional(),
5975
+ processDefinitionVersion: zIntegerFilterProperty.optional(),
5976
+ processDefinitionVersionTag: zStringFilterProperty.optional(),
5977
+ tenantId: zStringFilterProperty.optional()
5978
+ }).register(z.globalRegistry, {
5979
+ description: "Agent definition search filter."
5980
+ });
5981
+ var zAgentDefinitionSearchQuery = zSearchQueryRequest.and(z.object({
5982
+ sort: z.array(zAgentDefinitionSearchQuerySortRequest).register(z.globalRegistry, {
5983
+ description: "Sort field criteria."
5984
+ }).optional(),
5985
+ filter: zAgentDefinitionFilter.optional()
5986
+ }).register(z.globalRegistry, {
5987
+ description: "Agent definition search request."
5988
+ }));
5771
5989
  var zAgentInstanceKeyExactMatch = zAgentInstanceKey;
5772
5990
  var zAgentInstanceKeyFilterProperty = z.union([
5773
5991
  zAgentInstanceKeyExactMatch,
@@ -6161,6 +6379,11 @@ var zPartitionBackupInfoWritable = z.object({
6161
6379
  }).register(z.globalRegistry, {
6162
6380
  description: "Detailed info of the backup for a given partition."
6163
6381
  });
6382
+ var zHistoryBackupInfoWritable = z.object({
6383
+ failureReason: z.string().nullable()
6384
+ }).register(z.globalRegistry, {
6385
+ description: "Detailed status of a history backup. The aggregated state is computed from the state of\neach of its snapshots as:\n- If every expected snapshot exists and all are complete, the overall state is\n 'COMPLETED'.\n- If one snapshot failed or is partial, the overall state is 'FAILED'.\n- Otherwise, if one snapshot is incompatible, the overall state is 'INCOMPATIBLE'.\n- Otherwise, if one snapshot is still running, the overall state is 'IN_PROGRESS'.\n- Otherwise, if snapshots are missing and the backup has not progressed within the\n configured timeout, the overall state is 'INCOMPLETE'.\n"
6386
+ });
6164
6387
  var zConditionalEvaluationKeyWritable = zLongKey;
6165
6388
  var zDeploymentKeyWritable = zLongKey;
6166
6389
  var zGlobalTaskListenerEventTypesWritable = z.array(zGlobalTaskListenerEventTypeEnum).register(z.globalRegistry, {
@@ -6191,12 +6414,14 @@ var zResourceKeyWritable = z.union([
6191
6414
  zDecisionDefinitionKeyWritable
6192
6415
  ]);
6193
6416
  var zDecisionInstanceKeyWritable = zLongKey;
6417
+ var zAgentDefinitionKeyWritable = zLongKey;
6194
6418
  var zAgentInstanceKeyWritable = zLongKey;
6195
6419
  var zAgentHistoryItemKeyWritable = zLongKey;
6196
6420
  var zAuditLogKeyWritable = zLongKey;
6197
6421
  var zMessageSubscriptionKeyWritable = zLongKey;
6198
6422
  var zMessageKeyWritable = zLongKey;
6199
6423
  var zSignalKeyWritable = zLongKey;
6424
+ var zAgentDefinitionTypeExactMatchWritable = zAgentDefinitionTypeEnum;
6200
6425
  var zAgentInstanceStatusExactMatchWritable = zAgentInstanceStatusEnum;
6201
6426
  var zAgentInstanceHistoryRoleExactMatchWritable = zAgentInstanceHistoryRoleEnum;
6202
6427
  var zAgentInstanceHistoryCommitStatusExactMatchWritable = zAgentInstanceHistoryCommitStatusEnum;
@@ -6234,6 +6459,7 @@ var zDecisionDefinitionKeyExactMatchWritable = zDecisionDefinitionKeyWritable;
6234
6459
  var zScopeKeyExactMatchWritable = zScopeKeyWritable;
6235
6460
  var zVariableKeyExactMatchWritable = zVariableKeyWritable;
6236
6461
  var zDecisionEvaluationInstanceKeyExactMatchWritable = zDecisionEvaluationInstanceKey;
6462
+ var zAgentDefinitionKeyExactMatchWritable = zAgentDefinitionKeyWritable;
6237
6463
  var zAgentInstanceKeyExactMatchWritable = zAgentInstanceKeyWritable;
6238
6464
  var zAgentHistoryItemKeyExactMatchWritable = zAgentHistoryItemKeyWritable;
6239
6465
  var zAuditLogKeyExactMatchWritable = zAuditLogKeyWritable;
@@ -6245,6 +6471,12 @@ var zMessageSubscriptionStateExactMatchWritable = zMessageSubscriptionStateEnum;
6245
6471
  var zMessageSubscriptionKeyExactMatchWritable = zMessageSubscriptionKeyWritable;
6246
6472
  var zProcessInstanceStateExactMatchWritable = zProcessInstanceStateEnum;
6247
6473
  var zUserTaskStateExactMatchWritable = zUserTaskStateEnum;
6474
+ var zGetAgentDefinitionPath = z.object({
6475
+ agentDefinitionKey: zAgentDefinitionKeyWritable
6476
+ });
6477
+ var zGetAgentDefinitionResponse = zAgentDefinitionResult;
6478
+ var zSearchAgentDefinitionsBody = zAgentDefinitionSearchQuery;
6479
+ var zSearchAgentDefinitionsResponse = zAgentDefinitionSearchQueryResult;
6248
6480
  var zCreateAgentInstanceBody = zAgentInstanceCreationRequest;
6249
6481
  var zCreateAgentInstanceResponse = zAgentInstanceCreationResult;
6250
6482
  var zGetAgentInstancePath = z.object({
@@ -6255,9 +6487,7 @@ var zUpdateAgentInstanceBody = zAgentInstanceUpdateRequest;
6255
6487
  var zUpdateAgentInstancePath = z.object({
6256
6488
  agentInstanceKey: zAgentInstanceKeyWritable
6257
6489
  });
6258
- var zUpdateAgentInstanceResponse = z.void().register(z.globalRegistry, {
6259
- description: "The agent instance was updated successfully."
6260
- });
6490
+ var zUpdateAgentInstanceResponse = zAgentInstanceUpdateResult;
6261
6491
  var zSearchAgentInstancesBody = zAgentInstanceSearchQuery;
6262
6492
  var zSearchAgentInstancesResponse = zAgentInstanceSearchQueryResult;
6263
6493
  var zCreateAgentInstanceHistoryItemBody = zAgentInstanceHistoryItemRequest;
@@ -6323,6 +6553,27 @@ var zGetRuntimeBackupPath = z.object({
6323
6553
  backupId: zBackupId
6324
6554
  });
6325
6555
  var zGetRuntimeBackupResponse = zBackupInfo;
6556
+ var zListHistoryBackupsQuery = z.object({
6557
+ prefix: zBackupIdPrefix.optional(),
6558
+ verbose: z.boolean().register(z.globalRegistry, {
6559
+ description: "Whether to ask the secondary storage for snapshot-level detail. Setting this to\n`false` makes the query cheaper, but the store then reports neither snapshot state\nnor start time, so both the per-snapshot `details` and the aggregated `state` are\nincomplete and the listing order is unspecified.\n"
6560
+ }).optional().default(true)
6561
+ });
6562
+ var zListHistoryBackupsResponse = z.array(zHistoryBackupInfo).register(z.globalRegistry, {
6563
+ description: "The list of history backups."
6564
+ });
6565
+ var zTakeHistoryBackupBody = zTakeHistoryBackupRequest;
6566
+ var zTakeHistoryBackupResponse2 = zTakeHistoryBackupResponse;
6567
+ var zDeleteHistoryBackupPath = z.object({
6568
+ backupId: zBackupId
6569
+ });
6570
+ var zDeleteHistoryBackupResponse = z.void().register(z.globalRegistry, {
6571
+ description: "The backup has been successfully deleted."
6572
+ });
6573
+ var zGetHistoryBackupPath = z.object({
6574
+ backupId: zBackupId
6575
+ });
6576
+ var zGetHistoryBackupResponse = zHistoryBackupInfo;
6326
6577
  var zSearchBatchOperationItemsBody = zBatchOperationItemSearchQuery;
6327
6578
  var zSearchBatchOperationItemsResponse = zBatchOperationItemSearchQueryResult;
6328
6579
  var zSearchBatchOperationsBody = zBatchOperationSearchQuery;
@@ -7030,7 +7281,6 @@ var zBroadcastSignalResponse = zSignalBroadcastResult;
7030
7281
  var zGetStatusResponse = z.void().register(z.globalRegistry, {
7031
7282
  description: "The default physical tenant is UP and has at least one partition with a healthy leader."
7032
7283
  });
7033
- var zGetClusterStatusResponse = zClusterStatusResponse;
7034
7284
  var zGetUsageMetricsQuery = z.object({
7035
7285
  startTime: z.iso.datetime().register(z.globalRegistry, {
7036
7286
  description: "The start date for usage metrics, including this date. Value in ISO 8601 format."
@@ -7169,7 +7419,23 @@ var zChangeClusterModeQuery = z.object({
7169
7419
  var zChangeClusterModeResponse = zClusterModeChangeResponse;
7170
7420
  var zGetRestoreStatusResponse = zRestoreStatusResponse;
7171
7421
  var zRestoreBody = zRestoreRequest;
7422
+ var zRestoreQuery = z.object({
7423
+ dryRun: z.boolean().register(z.globalRegistry, {
7424
+ description: "If true, the requested change is only validated and the resulting plan is returned, without applying it to the cluster."
7425
+ }).optional().default(false)
7426
+ });
7172
7427
  var zRestoreResponse = zClusterModeChangeResponse;
7428
+ var zChangeClusterModeAsClusterAdminQuery = z.object({
7429
+ mode: zMode,
7430
+ physicalTenantId: z.string().register(z.globalRegistry, {
7431
+ description: "The physical tenant to apply the change to. When omitted, the change is applied to every physical tenant of the cluster."
7432
+ }).optional(),
7433
+ dryRun: z.boolean().register(z.globalRegistry, {
7434
+ description: "If true, the requested change is only validated and the resulting plan is returned, without applying it to the cluster."
7435
+ }).optional().default(false)
7436
+ });
7437
+ var zChangeClusterModeAsClusterAdminResponse = zClusterModeChangeResponse;
7438
+ var zGetClusterStatusResponse = zClusterStatusResponse;
7173
7439
  var zCreateUserBody = zUserRequest;
7174
7440
  var zCreateUserResponse = zUserCreateResult;
7175
7441
  var zSearchUsersBody = zUserSearchQueryRequest;
@@ -7277,6 +7543,8 @@ export {
7277
7543
  zAdHocSubProcessActivateActivitiesInstruction,
7278
7544
  zAdHocSubProcessActivateActivityReference,
7279
7545
  zAdvancedActorTypeFilter,
7546
+ zAdvancedAgentDefinitionKeyFilter,
7547
+ zAdvancedAgentDefinitionTypeFilter,
7280
7548
  zAdvancedAgentHistoryItemKeyFilter,
7281
7549
  zAdvancedAgentInstanceHistoryCommitStatusFilter,
7282
7550
  zAdvancedAgentInstanceHistoryRoleFilter,
@@ -7328,11 +7596,26 @@ export {
7328
7596
  zAdvancedVariableKeyFilter,
7329
7597
  zAdvancedWaitStateElementTypeFilter,
7330
7598
  zAdvancedWaitStateTypeFilter,
7599
+ zAgentDefinitionFilter,
7600
+ zAgentDefinitionKey,
7601
+ zAgentDefinitionKeyExactMatch,
7602
+ zAgentDefinitionKeyExactMatchWritable,
7603
+ zAgentDefinitionKeyFilterProperty,
7604
+ zAgentDefinitionKeyWritable,
7605
+ zAgentDefinitionResult,
7606
+ zAgentDefinitionSearchQuery,
7607
+ zAgentDefinitionSearchQueryResult,
7608
+ zAgentDefinitionSearchQuerySortRequest,
7609
+ zAgentDefinitionTypeEnum,
7610
+ zAgentDefinitionTypeExactMatch,
7611
+ zAgentDefinitionTypeExactMatchWritable,
7612
+ zAgentDefinitionTypeFilterProperty,
7331
7613
  zAgentHistoryItemKey,
7332
7614
  zAgentHistoryItemKeyExactMatch,
7333
7615
  zAgentHistoryItemKeyExactMatchWritable,
7334
7616
  zAgentHistoryItemKeyFilterProperty,
7335
7617
  zAgentHistoryItemKeyWritable,
7618
+ zAgentInstanceCreatedHistoryItem,
7336
7619
  zAgentInstanceCreationRequest,
7337
7620
  zAgentInstanceCreationResult,
7338
7621
  zAgentInstanceDefinition,
@@ -7343,6 +7626,7 @@ export {
7343
7626
  zAgentInstanceHistoryCommitStatusExactMatchWritable,
7344
7627
  zAgentInstanceHistoryCommitStatusFilterProperty,
7345
7628
  zAgentInstanceHistoryFilter,
7629
+ zAgentInstanceHistoryItem,
7346
7630
  zAgentInstanceHistoryItemCreationResult,
7347
7631
  zAgentInstanceHistoryItemMetrics,
7348
7632
  zAgentInstanceHistoryItemRequest,
@@ -7376,6 +7660,7 @@ export {
7376
7660
  zAgentInstanceTextContent,
7377
7661
  zAgentInstanceToolCall,
7378
7662
  zAgentInstanceUpdateRequest,
7663
+ zAgentInstanceUpdateResult,
7379
7664
  zAgentInstanceUpdateStatusEnum,
7380
7665
  zAgentTool,
7381
7666
  zAncestorScopeInstruction,
@@ -7497,6 +7782,8 @@ export {
7497
7782
  zCategoryExactMatch,
7498
7783
  zCategoryExactMatchWritable,
7499
7784
  zCategoryFilterProperty,
7785
+ zChangeClusterModeAsClusterAdminQuery,
7786
+ zChangeClusterModeAsClusterAdminResponse,
7500
7787
  zChangeClusterModeQuery,
7501
7788
  zChangeClusterModeResponse,
7502
7789
  zChangeset,
@@ -7507,6 +7794,7 @@ export {
7507
7794
  zCloudConfigurationResponse,
7508
7795
  zCloudStage,
7509
7796
  zClusterModeChangeOperation,
7797
+ zClusterModeChangePlannedChange,
7510
7798
  zClusterModeChangeResponse,
7511
7799
  zClusterStatusResponse,
7512
7800
  zClusterVariableKindEnum,
@@ -7656,6 +7944,8 @@ export {
7656
7944
  zDeleteGlobalTaskListenerResponse,
7657
7945
  zDeleteGroupPath,
7658
7946
  zDeleteGroupResponse,
7947
+ zDeleteHistoryBackupPath,
7948
+ zDeleteHistoryBackupResponse,
7659
7949
  zDeleteMappingRulePath,
7660
7950
  zDeleteMappingRuleResponse,
7661
7951
  zDeleteProcessInstanceBody,
@@ -7756,6 +8046,8 @@ export {
7756
8046
  zFormKeyFilterProperty,
7757
8047
  zFormKeyWritable,
7758
8048
  zFormResult,
8049
+ zGetAgentDefinitionPath,
8050
+ zGetAgentDefinitionResponse,
7759
8051
  zGetAgentInstancePath,
7760
8052
  zGetAgentInstanceResponse,
7761
8053
  zGetAuditLogPath,
@@ -7792,6 +8084,8 @@ export {
7792
8084
  zGetGlobalTaskListenerResponse,
7793
8085
  zGetGroupPath,
7794
8086
  zGetGroupResponse,
8087
+ zGetHistoryBackupPath,
8088
+ zGetHistoryBackupResponse,
7795
8089
  zGetIncidentPath,
7796
8090
  zGetIncidentResponse,
7797
8091
  zGetJobErrorStatisticsBody,
@@ -7902,6 +8196,10 @@ export {
7902
8196
  zGroupUserSearchQueryRequest,
7903
8197
  zGroupUserSearchQuerySortRequest,
7904
8198
  zGroupUserSearchResult,
8199
+ zHistoryBackupInfo,
8200
+ zHistoryBackupInfoWritable,
8201
+ zHistoryBackupSnapshotInfo,
8202
+ zHistoryBackupStateCode,
7905
8203
  zIncidentErrorTypeEnum,
7906
8204
  zIncidentErrorTypeExactMatch,
7907
8205
  zIncidentErrorTypeExactMatchWritable,
@@ -7985,6 +8283,8 @@ export {
7985
8283
  zLicenseResponse,
7986
8284
  zLikeFilter,
7987
8285
  zLimitPagination,
8286
+ zListHistoryBackupsQuery,
8287
+ zListHistoryBackupsResponse,
7988
8288
  zListRuntimeBackupsQuery,
7989
8289
  zListRuntimeBackupsResponse,
7990
8290
  zListSecretsBody,
@@ -8167,6 +8467,7 @@ export {
8167
8467
  zRestoreBody,
8168
8468
  zRestoreBrokerStatus,
8169
8469
  zRestorePartitionStatus,
8470
+ zRestoreQuery,
8170
8471
  zRestoreRequest,
8171
8472
  zRestoreResponse,
8172
8473
  zRestoreStatusResponse,
@@ -8209,6 +8510,8 @@ export {
8209
8510
  zScopeKeyExactMatchWritable,
8210
8511
  zScopeKeyFilterProperty,
8211
8512
  zScopeKeyWritable,
8513
+ zSearchAgentDefinitionsBody,
8514
+ zSearchAgentDefinitionsResponse,
8212
8515
  zSearchAgentInstanceHistoryBody,
8213
8516
  zSearchAgentInstanceHistoryPath,
8214
8517
  zSearchAgentInstanceHistoryResponse,
@@ -8365,6 +8668,10 @@ export {
8365
8668
  zTag,
8366
8669
  zTagSet,
8367
8670
  zTagSetWritable,
8671
+ zTakeHistoryBackupBody,
8672
+ zTakeHistoryBackupRequest,
8673
+ zTakeHistoryBackupResponse,
8674
+ zTakeHistoryBackupResponse2,
8368
8675
  zTakeRuntimeBackupBody,
8369
8676
  zTakeRuntimeBackupRequest,
8370
8677
  zTakeRuntimeBackupResponse,
@@ -8524,4 +8831,4 @@ export {
8524
8831
  zWaitStateTypeFilterProperty,
8525
8832
  zWebappComponent
8526
8833
  };
8527
- //# sourceMappingURL=zod.gen-4DQL5SMC.js.map
8834
+ //# sourceMappingURL=zod.gen-AXFHZMWR.js.map