@camunda8/orchestration-cluster-api 10.0.0-alpha.34 → 10.0.0-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/{CamundaClient-FYepah9u.d.cts → CamundaClient-4QsvzZPR.d.cts} +405 -7
- package/dist/{CamundaClient-BHhMv8K7.d.ts → CamundaClient-Dc_Mlc8U.d.ts} +405 -7
- package/dist/{chunk-DVCU3RZY.js → chunk-2SYK2XZI.js} +174 -3
- package/dist/chunk-2SYK2XZI.js.map +1 -0
- package/dist/effect/index.cjs +331 -2
- package/dist/effect/index.cjs.map +1 -1
- package/dist/effect/index.d.cts +1 -1
- package/dist/effect/index.d.ts +1 -1
- package/dist/effect/index.js +1 -1
- package/dist/index.cjs +332 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{zod.gen-GHFW5D76.js → zod.gen-JARMY5IR.js} +159 -1
- package/dist/zod.gen-JARMY5IR.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-DVCU3RZY.js.map +0 -1
- package/dist/zod.gen-GHFW5D76.js.map +0 -1
|
@@ -740,6 +740,142 @@ var zClusterHistoryBackupInfo = z.object({
|
|
|
740
740
|
}).register(z.globalRegistry, {
|
|
741
741
|
description: "A history backup id and what each physical tenant reports for it. No cluster-level state is aggregated from the per-tenant states."
|
|
742
742
|
});
|
|
743
|
+
var zClusterRebalanceRequest = z.object({
|
|
744
|
+
replicationLagThreshold: z.coerce.number().int().gte(0).max(9223372036854776e3, { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, {
|
|
745
|
+
description: "The highest replication lag (in bytes) that a desired leader may have for its transfer to be accepted."
|
|
746
|
+
}).optional(),
|
|
747
|
+
replicationTimeout: z.string().register(z.globalRegistry, {
|
|
748
|
+
description: "How long a partition may stay frozen waiting for its desired leader to catch up (as a positive ISO-8601 duration)."
|
|
749
|
+
}).optional(),
|
|
750
|
+
maxTransferAttempts: z.int().gte(1).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
|
|
751
|
+
description: "How many times a current leader may prompt the desired leader to take over leadership before giving up."
|
|
752
|
+
}).optional(),
|
|
753
|
+
leaderWaitTimeout: z.string().register(z.globalRegistry, {
|
|
754
|
+
description: "How long the coordinator waits for a partition without a leader to acquire one before reporting `NO_LEADER` and moving on (as a positive ISO-8601 duration)."
|
|
755
|
+
}).optional()
|
|
756
|
+
}).register(z.globalRegistry, {
|
|
757
|
+
description: 'The settings to run a given rebalance with. Every setting is optional; an absent request body is equivalent to a body with every field absent, and means "use the configured settings".'
|
|
758
|
+
});
|
|
759
|
+
var zClusterRebalancePartition = z.object({
|
|
760
|
+
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, {
|
|
761
|
+
description: "The unique ID of this partition, within its physical tenant."
|
|
762
|
+
}),
|
|
763
|
+
physicalTenantId: z.string().register(z.globalRegistry, {
|
|
764
|
+
description: "The partition group this partition belongs to. Partition IDs are unique only within a group, so this is needed to identify the partition."
|
|
765
|
+
}),
|
|
766
|
+
currentLeader: z.string().nullable(),
|
|
767
|
+
desiredLeader: z.string().register(z.globalRegistry, {
|
|
768
|
+
description: "The broker ID the current configuration wants to lead this partition."
|
|
769
|
+
}),
|
|
770
|
+
state: z.enum([
|
|
771
|
+
"TRANSFERRING",
|
|
772
|
+
"UNBALANCED",
|
|
773
|
+
"BALANCED"
|
|
774
|
+
]).register(z.globalRegistry, {
|
|
775
|
+
description: "Whether this partition is being actively transferred, unbalanced, or balanced."
|
|
776
|
+
})
|
|
777
|
+
}).register(z.globalRegistry, {
|
|
778
|
+
description: "One partition's leadership/balance status - its current leader, its desired leader, and whether a rebalance is currently moving it."
|
|
779
|
+
});
|
|
780
|
+
var zClusterRebalanceOperationPartition = z.object({
|
|
781
|
+
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, {
|
|
782
|
+
description: "The unique ID of this partition, within its physical tenant."
|
|
783
|
+
}),
|
|
784
|
+
physicalTenantId: z.string().register(z.globalRegistry, {
|
|
785
|
+
description: "The partition group this partition belongs to."
|
|
786
|
+
}),
|
|
787
|
+
currentLeader: z.string().nullable(),
|
|
788
|
+
desiredLeader: z.string().register(z.globalRegistry, {
|
|
789
|
+
description: "The leader selected when this rebalance was planned."
|
|
790
|
+
}),
|
|
791
|
+
progress: z.enum([
|
|
792
|
+
"PENDING",
|
|
793
|
+
"TRANSFERRING",
|
|
794
|
+
"COMPLETED"
|
|
795
|
+
]).register(z.globalRegistry, {
|
|
796
|
+
description: "Where this rebalance has reached for the partition."
|
|
797
|
+
}),
|
|
798
|
+
result: z.enum([
|
|
799
|
+
"TRANSFERRED",
|
|
800
|
+
"ALREADY_LEADER",
|
|
801
|
+
"NOT_MEMBER",
|
|
802
|
+
"NOT_REPLICATING",
|
|
803
|
+
"UNREACHABLE",
|
|
804
|
+
"NOT_COORDINATOR",
|
|
805
|
+
"STALE_CONFIGURATION",
|
|
806
|
+
"TRANSFER_IN_PROGRESS",
|
|
807
|
+
"LAG_TOO_HIGH",
|
|
808
|
+
"LEADER_INITIALIZING",
|
|
809
|
+
"CONFIGURATION_CHANGE_IN_PROGRESS",
|
|
810
|
+
"PAUSE_FAILED",
|
|
811
|
+
"REPLICATION_TIMED_OUT",
|
|
812
|
+
"TIMEOUT_NOW_EXHAUSTED",
|
|
813
|
+
"LEADER_CHANGED",
|
|
814
|
+
"NO_LEADER",
|
|
815
|
+
"NO_RESPONSE",
|
|
816
|
+
"CANCELLED"
|
|
817
|
+
]).register(z.globalRegistry, {
|
|
818
|
+
description: "The terminal outcome, present only when progress is COMPLETED."
|
|
819
|
+
})
|
|
820
|
+
}).register(z.globalRegistry, {
|
|
821
|
+
description: "One partition's plan, progress, and outcome within a rebalance."
|
|
822
|
+
});
|
|
823
|
+
var zClusterRebalance = z.object({
|
|
824
|
+
rebalanceId: 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, {
|
|
825
|
+
description: "The ID of this rebalance."
|
|
826
|
+
}),
|
|
827
|
+
partitions: z.array(zClusterRebalanceOperationPartition).register(z.globalRegistry, {
|
|
828
|
+
description: "Every partition in the rebalance plan and its progress within this rebalance."
|
|
829
|
+
}),
|
|
830
|
+
startedAt: z.iso.datetime().register(z.globalRegistry, {
|
|
831
|
+
description: "When this rebalance was created."
|
|
832
|
+
})
|
|
833
|
+
}).register(z.globalRegistry, {
|
|
834
|
+
description: "The fields common to a running and a completed rebalance."
|
|
835
|
+
});
|
|
836
|
+
var zClusterRunningRebalance = zClusterRebalance.and(z.object({
|
|
837
|
+
dryRun: z.boolean().register(z.globalRegistry, {
|
|
838
|
+
description: "Whether this rebalance is a dry run."
|
|
839
|
+
}),
|
|
840
|
+
cancelRequested: z.boolean().register(z.globalRegistry, {
|
|
841
|
+
description: "Whether cancellation has been requested."
|
|
842
|
+
})
|
|
843
|
+
}));
|
|
844
|
+
var zClusterCompletedRebalance = zClusterRebalance.and(z.object({
|
|
845
|
+
finishedAt: z.iso.datetime().register(z.globalRegistry, {
|
|
846
|
+
description: "When this rebalance finished."
|
|
847
|
+
}),
|
|
848
|
+
result: z.enum([
|
|
849
|
+
"COMPLETED",
|
|
850
|
+
"CANCELLED",
|
|
851
|
+
"FAILED"
|
|
852
|
+
]).register(z.globalRegistry, {
|
|
853
|
+
description: "How the rebalance ended."
|
|
854
|
+
})
|
|
855
|
+
}));
|
|
856
|
+
var zClusterBalanceResponse = z.object({
|
|
857
|
+
state: z.enum([
|
|
858
|
+
"BALANCED",
|
|
859
|
+
"BALANCING",
|
|
860
|
+
"UNBALANCED"
|
|
861
|
+
]).register(z.globalRegistry, {
|
|
862
|
+
description: "The cluster's aggregate balance state as of the time of the request."
|
|
863
|
+
}),
|
|
864
|
+
partitions: z.array(zClusterRebalancePartition).register(z.globalRegistry, {
|
|
865
|
+
description: "The balance state of each partition as of the time of the request."
|
|
866
|
+
}),
|
|
867
|
+
runningRebalance: zClusterRunningRebalance.nullable(),
|
|
868
|
+
lastCompletedRebalance: zClusterCompletedRebalance.nullable()
|
|
869
|
+
}).register(z.globalRegistry, {
|
|
870
|
+
description: "The cluster's current per-partition balance state, the running rebalance, and the last completed rebalance."
|
|
871
|
+
});
|
|
872
|
+
var zRebalanceCancellationResponse = z.object({
|
|
873
|
+
wasRunning: z.boolean().register(z.globalRegistry, {
|
|
874
|
+
description: "Whether there was a rebalance to stop."
|
|
875
|
+
})
|
|
876
|
+
}).register(z.globalRegistry, {
|
|
877
|
+
description: "Response to a rebalance cancellation request."
|
|
878
|
+
});
|
|
743
879
|
var zClusterVariableKindEnum = z.enum(["JSON", "SECRET_REFERENCE"]).register(z.globalRegistry, {
|
|
744
880
|
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."
|
|
745
881
|
});
|
|
@@ -7897,6 +8033,15 @@ var zChangeClusterModeAsClusterAdminQuery = z.object({
|
|
|
7897
8033
|
}).optional().default(false)
|
|
7898
8034
|
});
|
|
7899
8035
|
var zChangeClusterModeAsClusterAdminResponse = zClusterModeChangeResponse;
|
|
8036
|
+
var zCancelClusterRebalanceResponse = zRebalanceCancellationResponse;
|
|
8037
|
+
var zGetClusterRebalanceResponse = zClusterBalanceResponse;
|
|
8038
|
+
var zTriggerClusterRebalanceBody = zClusterRebalanceRequest;
|
|
8039
|
+
var zTriggerClusterRebalanceQuery = z.object({
|
|
8040
|
+
dryRun: z.boolean().register(z.globalRegistry, {
|
|
8041
|
+
description: "If true, report the plan the rebalance would carry out without pausing any partition or transferring any leadership."
|
|
8042
|
+
}).optional().default(false)
|
|
8043
|
+
});
|
|
8044
|
+
var zTriggerClusterRebalanceResponse = zClusterBalanceResponse;
|
|
7900
8045
|
var zRestoreAsClusterAdminBody = zClusterRestoreRequest;
|
|
7901
8046
|
var zRestoreAsClusterAdminQuery = z.object({
|
|
7902
8047
|
physicalTenantId: z.string().register(z.globalRegistry, {
|
|
@@ -8247,6 +8392,7 @@ export {
|
|
|
8247
8392
|
zCancelBatchOperationBody,
|
|
8248
8393
|
zCancelBatchOperationPath,
|
|
8249
8394
|
zCancelBatchOperationResponse,
|
|
8395
|
+
zCancelClusterRebalanceResponse,
|
|
8250
8396
|
zCancelProcessInstanceBody,
|
|
8251
8397
|
zCancelProcessInstancePath,
|
|
8252
8398
|
zCancelProcessInstanceRequest,
|
|
@@ -8267,7 +8413,9 @@ export {
|
|
|
8267
8413
|
zClockPinRequest,
|
|
8268
8414
|
zCloudConfigurationResponse,
|
|
8269
8415
|
zCloudStage,
|
|
8416
|
+
zClusterBalanceResponse,
|
|
8270
8417
|
zClusterBrokerInfo,
|
|
8418
|
+
zClusterCompletedRebalance,
|
|
8271
8419
|
zClusterHistoryBackupInfo,
|
|
8272
8420
|
zClusterHistoryBackupInfoWritable,
|
|
8273
8421
|
zClusterHistoryBackupTakeResult,
|
|
@@ -8277,6 +8425,10 @@ export {
|
|
|
8277
8425
|
zClusterModeChangeOperation,
|
|
8278
8426
|
zClusterModeChangePlannedChange,
|
|
8279
8427
|
zClusterModeChangeResponse,
|
|
8428
|
+
zClusterRebalance,
|
|
8429
|
+
zClusterRebalanceOperationPartition,
|
|
8430
|
+
zClusterRebalancePartition,
|
|
8431
|
+
zClusterRebalanceRequest,
|
|
8280
8432
|
zClusterRestoreAwaitModeChangeOperation,
|
|
8281
8433
|
zClusterRestoreBrokerOperation,
|
|
8282
8434
|
zClusterRestoreModeChangeOperation,
|
|
@@ -8286,6 +8438,7 @@ export {
|
|
|
8286
8438
|
zClusterRestorePlannedChange,
|
|
8287
8439
|
zClusterRestoreRequest,
|
|
8288
8440
|
zClusterRestoreResponse,
|
|
8441
|
+
zClusterRunningRebalance,
|
|
8289
8442
|
zClusterRuntimeBackupInfo,
|
|
8290
8443
|
zClusterRuntimeBackupInfoWritable,
|
|
8291
8444
|
zClusterRuntimeBackupState,
|
|
@@ -8568,6 +8721,7 @@ export {
|
|
|
8568
8721
|
zGetBatchOperationPath,
|
|
8569
8722
|
zGetBatchOperationResponse,
|
|
8570
8723
|
zGetClusterExportingStatusResponse,
|
|
8724
|
+
zGetClusterRebalanceResponse,
|
|
8571
8725
|
zGetClusterStatusResponse,
|
|
8572
8726
|
zGetClusterTopologyResponse,
|
|
8573
8727
|
zGetDecisionDefinitionPath,
|
|
@@ -8971,6 +9125,7 @@ export {
|
|
|
8971
9125
|
zProcessInstanceWaitStateStatisticsResult,
|
|
8972
9126
|
zPublishMessageBody,
|
|
8973
9127
|
zPublishMessageResponse,
|
|
9128
|
+
zRebalanceCancellationResponse,
|
|
8974
9129
|
zResetClockResponse,
|
|
8975
9130
|
zResolveIncidentBody,
|
|
8976
9131
|
zResolveIncidentPath,
|
|
@@ -9247,6 +9402,9 @@ export {
|
|
|
9247
9402
|
zThrowJobErrorResponse,
|
|
9248
9403
|
zTimerWaitStateDetails,
|
|
9249
9404
|
zTopologyResponse,
|
|
9405
|
+
zTriggerClusterRebalanceBody,
|
|
9406
|
+
zTriggerClusterRebalanceQuery,
|
|
9407
|
+
zTriggerClusterRebalanceResponse,
|
|
9250
9408
|
zUnassignClientFromGroupPath,
|
|
9251
9409
|
zUnassignClientFromGroupResponse,
|
|
9252
9410
|
zUnassignClientFromTenantPath,
|
|
@@ -9372,4 +9530,4 @@ export {
|
|
|
9372
9530
|
zWaitStateTypeFilterProperty,
|
|
9373
9531
|
zWebappComponent
|
|
9374
9532
|
};
|
|
9375
|
-
//# sourceMappingURL=zod.gen-
|
|
9533
|
+
//# sourceMappingURL=zod.gen-JARMY5IR.js.map
|