@databricks/sdk-jobs 0.1.0-dev.2 → 0.1.0-dev.4

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/dist/v2/model.js CHANGED
@@ -1,43 +1,43 @@
1
1
  // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
2
  import { z } from 'zod';
3
- export var AuthenticationMethod;
4
- (function (AuthenticationMethod) {
5
- AuthenticationMethod["OAUTH"] = "OAUTH";
6
- AuthenticationMethod["PAT"] = "PAT";
7
- })(AuthenticationMethod || (AuthenticationMethod = {}));
3
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
4
+ export const AuthenticationMethod = {
5
+ OAUTH: 'OAUTH',
6
+ PAT: 'PAT',
7
+ };
8
8
  /**
9
9
  * Availability type used for all subsequent nodes past the `first_on_demand` ones.
10
10
  *
11
11
  * Note: If `first_on_demand` is zero, this availability type will be used for the entire cluster.
12
12
  */
13
- export var AwsAvailability;
14
- (function (AwsAvailability) {
13
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
14
+ export const AwsAvailability = {
15
15
  /** Use spot instances. */
16
- AwsAvailability["SPOT"] = "SPOT";
16
+ SPOT: 'SPOT',
17
17
  /** Use on-demand instances. */
18
- AwsAvailability["ON_DEMAND"] = "ON_DEMAND";
18
+ ON_DEMAND: 'ON_DEMAND',
19
19
  /**
20
20
  * Preferably use spot instances, but fall back to on-demand instances if spot instances cannot
21
21
  * be acquired (e.g., if AWS spot prices are too high).
22
22
  */
23
- AwsAvailability["SPOT_WITH_FALLBACK"] = "SPOT_WITH_FALLBACK";
24
- })(AwsAvailability || (AwsAvailability = {}));
23
+ SPOT_WITH_FALLBACK: 'SPOT_WITH_FALLBACK',
24
+ };
25
25
  /**
26
26
  * Availability type used for all subsequent nodes past the `first_on_demand` ones.
27
27
  * Note: If `first_on_demand` is zero, this availability type will be used for the entire cluster.
28
28
  */
29
- export var AzureAvailability;
30
- (function (AzureAvailability) {
29
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
30
+ export const AzureAvailability = {
31
31
  /** Use spot instances. */
32
- AzureAvailability["SPOT_AZURE"] = "SPOT_AZURE";
32
+ SPOT_AZURE: 'SPOT_AZURE',
33
33
  /** Use on-demand instances. */
34
- AzureAvailability["ON_DEMAND_AZURE"] = "ON_DEMAND_AZURE";
34
+ ON_DEMAND_AZURE: 'ON_DEMAND_AZURE',
35
35
  /**
36
36
  * Preferably use spot instances, but fall back to on-demand instances if spot instances cannot
37
37
  * be acquired (e.g., if Azure is out of Quota).
38
38
  */
39
- AzureAvailability["SPOT_WITH_FALLBACK_AZURE"] = "SPOT_WITH_FALLBACK_AZURE";
40
- })(AzureAvailability || (AzureAvailability = {}));
39
+ SPOT_WITH_FALLBACK_AZURE: 'SPOT_WITH_FALLBACK_AZURE',
40
+ };
41
41
  /**
42
42
  * The kind of compute described by this compute specification.
43
43
  *
@@ -49,23 +49,23 @@ export var AzureAvailability;
49
49
  *
50
50
  * By using the [simple form](https://docs.databricks.com/compute/simple-form.html), your clusters are automatically using `kind = CLASSIC_PREVIEW`.
51
51
  */
52
- export var ComputeKind;
53
- (function (ComputeKind) {
54
- ComputeKind["COMPUTE_KIND_UNSPECIFIED"] = "COMPUTE_KIND_UNSPECIFIED";
55
- ComputeKind["CLASSIC_PREVIEW"] = "CLASSIC_PREVIEW";
56
- })(ComputeKind || (ComputeKind = {}));
52
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
53
+ export const ComputeKind = {
54
+ COMPUTE_KIND_UNSPECIFIED: 'COMPUTE_KIND_UNSPECIFIED',
55
+ CLASSIC_PREVIEW: 'CLASSIC_PREVIEW',
56
+ };
57
57
  /**
58
58
  * Confidential computing technology for GCP instances.
59
59
  * Aligns with gcloud's --confidential-compute-type flag and the REST API's
60
60
  * confidentialInstanceConfig.confidentialInstanceType field.
61
61
  * See: https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance
62
62
  */
63
- export var ConfidentialComputeType;
64
- (function (ConfidentialComputeType) {
65
- ConfidentialComputeType["CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED"] = "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED";
66
- ConfidentialComputeType["CONFIDENTIAL_COMPUTE_TYPE_NONE"] = "CONFIDENTIAL_COMPUTE_TYPE_NONE";
67
- ConfidentialComputeType["SEV_SNP"] = "SEV_SNP";
68
- })(ConfidentialComputeType || (ConfidentialComputeType = {}));
63
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
64
+ export const ConfidentialComputeType = {
65
+ CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED: 'CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED',
66
+ CONFIDENTIAL_COMPUTE_TYPE_NONE: 'CONFIDENTIAL_COMPUTE_TYPE_NONE',
67
+ SEV_SNP: 'SEV_SNP',
68
+ };
69
69
  /**
70
70
  * Data security mode decides what data governance model to use when accessing data
71
71
  * from a cluster.
@@ -87,103 +87,103 @@ export var ConfidentialComputeType;
87
87
  * * `LEGACY_SINGLE_USER`: This mode is for users migrating from legacy Passthrough on standard clusters.
88
88
  * * `LEGACY_SINGLE_USER_STANDARD`: This mode provides a way that doesn’t have UC nor passthrough enabled.
89
89
  */
90
- export var DataSecurityMode;
91
- (function (DataSecurityMode) {
90
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
91
+ export const DataSecurityMode = {
92
92
  /**
93
93
  * No security isolation for multiple users sharing the cluster. Data governance features
94
94
  * are not available in this mode.
95
95
  */
96
- DataSecurityMode["NONE"] = "NONE";
96
+ NONE: 'NONE',
97
97
  /** Legacy alias for `DATA_SECURITY_MODE_DEDICATED`. */
98
- DataSecurityMode["SINGLE_USER"] = "SINGLE_USER";
98
+ SINGLE_USER: 'SINGLE_USER',
99
99
  /** Legacy alias for `DATA_SECURITY_MODE_STANDARD`. */
100
- DataSecurityMode["USER_ISOLATION"] = "USER_ISOLATION";
100
+ USER_ISOLATION: 'USER_ISOLATION',
101
101
  /** This mode is for users migrating from legacy Table ACL clusters. */
102
- DataSecurityMode["LEGACY_TABLE_ACL"] = "LEGACY_TABLE_ACL";
102
+ LEGACY_TABLE_ACL: 'LEGACY_TABLE_ACL',
103
103
  /** This mode is for users migrating from legacy Passthrough on high concurrency clusters. */
104
- DataSecurityMode["LEGACY_PASSTHROUGH"] = "LEGACY_PASSTHROUGH";
104
+ LEGACY_PASSTHROUGH: 'LEGACY_PASSTHROUGH',
105
105
  /** This mode is for users migrating from legacy Passthrough on standard clusters. */
106
- DataSecurityMode["LEGACY_SINGLE_USER"] = "LEGACY_SINGLE_USER";
106
+ LEGACY_SINGLE_USER: 'LEGACY_SINGLE_USER',
107
107
  /** This is mode where single user is enforced but no actual security feature enabled. */
108
- DataSecurityMode["LEGACY_SINGLE_USER_STANDARD"] = "LEGACY_SINGLE_USER_STANDARD";
108
+ LEGACY_SINGLE_USER_STANDARD: 'LEGACY_SINGLE_USER_STANDARD',
109
109
  /**
110
110
  * A secure cluster that can be shared by multiple users. Cluster users are fully isolated
111
111
  * so that they cannot see each other's data and credentials. Most data governance features
112
112
  * are supported in this mode. But programming languages and cluster features might be limited.
113
113
  */
114
- DataSecurityMode["DATA_SECURITY_MODE_STANDARD"] = "DATA_SECURITY_MODE_STANDARD";
114
+ DATA_SECURITY_MODE_STANDARD: 'DATA_SECURITY_MODE_STANDARD',
115
115
  /**
116
116
  * A secure cluster that can only be exclusively used by a single user specified in
117
117
  * `single_user_name`. Most programming languages, cluster features and data governance
118
118
  * features are available in this mode.
119
119
  */
120
- DataSecurityMode["DATA_SECURITY_MODE_DEDICATED"] = "DATA_SECURITY_MODE_DEDICATED";
120
+ DATA_SECURITY_MODE_DEDICATED: 'DATA_SECURITY_MODE_DEDICATED',
121
121
  /**
122
122
  * Databricks will choose `DATA_SECURITY_MODE_STANDARD` or `DATA_SECURITY_MODE_DEDICATED`
123
123
  * depending on the compute configuration.
124
124
  */
125
- DataSecurityMode["DATA_SECURITY_MODE_AUTO"] = "DATA_SECURITY_MODE_AUTO";
126
- })(DataSecurityMode || (DataSecurityMode = {}));
125
+ DATA_SECURITY_MODE_AUTO: 'DATA_SECURITY_MODE_AUTO',
126
+ };
127
127
  /** Response enumeration from calling the dbt platform API, for inclusion in output */
128
- export var DbtPlatformRunStatus;
129
- (function (DbtPlatformRunStatus) {
130
- DbtPlatformRunStatus["DBT_PLATFORM_RUN_STATUS_UNSPECIFIED"] = "DBT_PLATFORM_RUN_STATUS_UNSPECIFIED";
131
- DbtPlatformRunStatus["QUEUED"] = "QUEUED";
132
- DbtPlatformRunStatus["STARTING"] = "STARTING";
133
- DbtPlatformRunStatus["RUNNING"] = "RUNNING";
134
- DbtPlatformRunStatus["SUCCESS"] = "SUCCESS";
135
- DbtPlatformRunStatus["ERROR"] = "ERROR";
136
- DbtPlatformRunStatus["CANCELLED"] = "CANCELLED";
137
- })(DbtPlatformRunStatus || (DbtPlatformRunStatus = {}));
128
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
129
+ export const DbtPlatformRunStatus = {
130
+ DBT_PLATFORM_RUN_STATUS_UNSPECIFIED: 'DBT_PLATFORM_RUN_STATUS_UNSPECIFIED',
131
+ QUEUED: 'QUEUED',
132
+ STARTING: 'STARTING',
133
+ RUNNING: 'RUNNING',
134
+ SUCCESS: 'SUCCESS',
135
+ ERROR: 'ERROR',
136
+ CANCELLED: 'CANCELLED',
137
+ };
138
138
  /**
139
139
  * All EBS volume types that <Databricks> supports.
140
140
  * See https://aws.amazon.com/ebs/details/ for details.
141
141
  */
142
- export var EbsVolumeType;
143
- (function (EbsVolumeType) {
142
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
143
+ export const EbsVolumeType = {
144
144
  /** Provision extra storage using AWS gp2 EBS volumes. */
145
- EbsVolumeType["GENERAL_PURPOSE_SSD"] = "GENERAL_PURPOSE_SSD";
145
+ GENERAL_PURPOSE_SSD: 'GENERAL_PURPOSE_SSD',
146
146
  /** Provision extra storage using AWS st1 volumes. */
147
- EbsVolumeType["THROUGHPUT_OPTIMIZED_HDD"] = "THROUGHPUT_OPTIMIZED_HDD";
148
- })(EbsVolumeType || (EbsVolumeType = {}));
149
- export var Format;
150
- (function (Format) {
151
- Format["SINGLE_TASK"] = "SINGLE_TASK";
152
- Format["MULTI_TASK"] = "MULTI_TASK";
153
- })(Format || (Format = {}));
147
+ THROUGHPUT_OPTIMIZED_HDD: 'THROUGHPUT_OPTIMIZED_HDD',
148
+ };
149
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
150
+ export const Format = {
151
+ SINGLE_TASK: 'SINGLE_TASK',
152
+ MULTI_TASK: 'MULTI_TASK',
153
+ };
154
154
  /**
155
155
  * This field determines whether the instance pool will contain preemptible
156
156
  * VMs, on-demand VMs, or preemptible VMs with a fallback to on-demand VMs if the former is unavailable.
157
157
  */
158
- export var GcpAvailability;
159
- (function (GcpAvailability) {
160
- GcpAvailability["PREEMPTIBLE_GCP"] = "PREEMPTIBLE_GCP";
161
- GcpAvailability["ON_DEMAND_GCP"] = "ON_DEMAND_GCP";
162
- GcpAvailability["PREEMPTIBLE_WITH_FALLBACK_GCP"] = "PREEMPTIBLE_WITH_FALLBACK_GCP";
163
- })(GcpAvailability || (GcpAvailability = {}));
158
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
159
+ export const GcpAvailability = {
160
+ PREEMPTIBLE_GCP: 'PREEMPTIBLE_GCP',
161
+ ON_DEMAND_GCP: 'ON_DEMAND_GCP',
162
+ PREEMPTIBLE_WITH_FALLBACK_GCP: 'PREEMPTIBLE_WITH_FALLBACK_GCP',
163
+ };
164
164
  /**
165
165
  * HardwareAcceleratorType: The type of hardware accelerator to use for compute workloads.
166
166
  * NOTE: This enum is referenced and is intended to be used by other <Databricks> services
167
167
  * that need to specify hardware accelerator requirements for AI compute workloads.
168
168
  */
169
- export var HardwareAcceleratorType;
170
- (function (HardwareAcceleratorType) {
169
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
170
+ export const HardwareAcceleratorType = {
171
171
  /** GPU_1xA10: Single A10 GPU configuration. */
172
- HardwareAcceleratorType["GPU_1X_A10"] = "GPU_1xA10";
172
+ GPU_1X_A10: 'GPU_1xA10',
173
173
  /** GPU_8xH100: 8x H100 GPU configuration. */
174
- HardwareAcceleratorType["GPU_8X_H100"] = "GPU_8xH100";
175
- })(HardwareAcceleratorType || (HardwareAcceleratorType = {}));
174
+ GPU_8X_H100: 'GPU_8xH100',
175
+ };
176
176
  /**
177
177
  * Edit mode of the job.
178
178
  *
179
179
  * * `UI_LOCKED`: The job is in a locked UI state and cannot be modified.
180
180
  * * `EDITABLE`: The job is in an editable state and can be modified.
181
181
  */
182
- export var JobEditMode;
183
- (function (JobEditMode) {
184
- JobEditMode["UI_LOCKED"] = "UI_LOCKED";
185
- JobEditMode["EDITABLE"] = "EDITABLE";
186
- })(JobEditMode || (JobEditMode = {}));
182
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
183
+ export const JobEditMode = {
184
+ UI_LOCKED: 'UI_LOCKED',
185
+ EDITABLE: 'EDITABLE',
186
+ };
187
187
  /**
188
188
  * Specifies the health metric that is being evaluated for a particular health rule.
189
189
  *
@@ -193,57 +193,57 @@ export var JobEditMode;
193
193
  * * `STREAMING_BACKLOG_SECONDS`: An estimate of the maximum consumer delay across all streams. This metric is in Public Preview.
194
194
  * * `STREAMING_BACKLOG_FILES`: An estimate of the maximum number of outstanding files across all streams. This metric is in Public Preview.
195
195
  */
196
- export var JobsHealthMetric;
197
- (function (JobsHealthMetric) {
198
- JobsHealthMetric["RUN_DURATION_SECONDS"] = "RUN_DURATION_SECONDS";
199
- JobsHealthMetric["STREAMING_BACKLOG_BYTES"] = "STREAMING_BACKLOG_BYTES";
200
- JobsHealthMetric["STREAMING_BACKLOG_RECORDS"] = "STREAMING_BACKLOG_RECORDS";
201
- JobsHealthMetric["STREAMING_BACKLOG_SECONDS"] = "STREAMING_BACKLOG_SECONDS";
202
- JobsHealthMetric["STREAMING_BACKLOG_FILES"] = "STREAMING_BACKLOG_FILES";
203
- })(JobsHealthMetric || (JobsHealthMetric = {}));
196
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
197
+ export const JobsHealthMetric = {
198
+ RUN_DURATION_SECONDS: 'RUN_DURATION_SECONDS',
199
+ STREAMING_BACKLOG_BYTES: 'STREAMING_BACKLOG_BYTES',
200
+ STREAMING_BACKLOG_RECORDS: 'STREAMING_BACKLOG_RECORDS',
201
+ STREAMING_BACKLOG_SECONDS: 'STREAMING_BACKLOG_SECONDS',
202
+ STREAMING_BACKLOG_FILES: 'STREAMING_BACKLOG_FILES',
203
+ };
204
204
  /** Specifies the operator used to compare the health metric value with the specified threshold. */
205
- export var JobsHealthOperator;
206
- (function (JobsHealthOperator) {
207
- JobsHealthOperator["GREATER_THAN"] = "GREATER_THAN";
208
- })(JobsHealthOperator || (JobsHealthOperator = {}));
205
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
206
+ export const JobsHealthOperator = {
207
+ GREATER_THAN: 'GREATER_THAN',
208
+ };
209
209
  /**
210
210
  * The repair history item type. Indicates whether a run is the original run or
211
211
  * a repair run.
212
212
  */
213
- export var RepairType;
214
- (function (RepairType) {
215
- RepairType["ORIGINAL"] = "ORIGINAL";
216
- RepairType["REPAIR"] = "REPAIR";
217
- })(RepairType || (RepairType = {}));
213
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
214
+ export const RepairType = {
215
+ ORIGINAL: 'ORIGINAL',
216
+ REPAIR: 'REPAIR',
217
+ };
218
218
  /**
219
219
  * The type of a run.
220
220
  * * `JOB_RUN`: Normal job run. A run created with :method:jobs/runNow.
221
221
  * * `WORKFLOW_RUN`: Workflow run. A run created with [dbutils.notebook.run](/dev-tools/databricks-utils.html#dbutils-workflow).
222
222
  * * `SUBMIT_RUN`: Submit run. A run created with :method:jobs/submit.
223
223
  */
224
- export var RunType;
225
- (function (RunType) {
226
- RunType["JOB_RUN"] = "JOB_RUN";
227
- RunType["WORKFLOW_RUN"] = "WORKFLOW_RUN";
228
- RunType["SUBMIT_RUN"] = "SUBMIT_RUN";
229
- })(RunType || (RunType = {}));
230
- export var RuntimeEngine;
231
- (function (RuntimeEngine) {
224
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
225
+ export const RunType = {
226
+ JOB_RUN: 'JOB_RUN',
227
+ WORKFLOW_RUN: 'WORKFLOW_RUN',
228
+ SUBMIT_RUN: 'SUBMIT_RUN',
229
+ };
230
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
231
+ export const RuntimeEngine = {
232
232
  /**
233
233
  * Default value. In this case, ignore the RUNTIME_ENGINE
234
234
  * parameter and do a spark version lookup entirely on the sparkVersion string.
235
235
  */
236
- RuntimeEngine["NULL"] = "NULL";
236
+ NULL: 'NULL',
237
237
  /** Use standard engine */
238
- RuntimeEngine["STANDARD"] = "STANDARD";
238
+ STANDARD: 'STANDARD',
239
239
  /** Use Photon engine */
240
- RuntimeEngine["PHOTON"] = "PHOTON";
241
- })(RuntimeEngine || (RuntimeEngine = {}));
242
- export var SchedulePauseStatus;
243
- (function (SchedulePauseStatus) {
244
- SchedulePauseStatus["UNPAUSED"] = "UNPAUSED";
245
- SchedulePauseStatus["PAUSED"] = "PAUSED";
246
- })(SchedulePauseStatus || (SchedulePauseStatus = {}));
240
+ PHOTON: 'PHOTON',
241
+ };
242
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
243
+ export const SchedulePauseStatus = {
244
+ UNPAUSED: 'UNPAUSED',
245
+ PAUSED: 'PAUSED',
246
+ };
247
247
  /**
248
248
  * Optional location type of the SQL file. When set to `WORKSPACE`, the SQL file will be retrieved\
249
249
  * from the local <Databricks> workspace. When set to `GIT`, the SQL file will be retrieved from a Git repository
@@ -252,17 +252,17 @@ export var SchedulePauseStatus;
252
252
  * * `WORKSPACE`: SQL file is located in <Databricks> workspace.
253
253
  * * `GIT`: SQL file is located in cloud Git provider.
254
254
  */
255
- export var Source;
256
- (function (Source) {
257
- Source["WORKSPACE"] = "WORKSPACE";
258
- Source["GIT"] = "GIT";
259
- })(Source || (Source = {}));
260
- export var StorageMode;
261
- (function (StorageMode) {
262
- StorageMode["DIRECT_QUERY"] = "DIRECT_QUERY";
263
- StorageMode["IMPORT"] = "IMPORT";
264
- StorageMode["DUAL"] = "DUAL";
265
- })(StorageMode || (StorageMode = {}));
255
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
256
+ export const Source = {
257
+ WORKSPACE: 'WORKSPACE',
258
+ GIT: 'GIT',
259
+ };
260
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
261
+ export const StorageMode = {
262
+ DIRECT_QUERY: 'DIRECT_QUERY',
263
+ IMPORT: 'IMPORT',
264
+ DUAL: 'DUAL',
265
+ };
266
266
  /**
267
267
  * An optional value indicating the condition that determines whether the task should be run once its dependencies have been completed. When omitted, defaults to `ALL_SUCCESS`.
268
268
  *
@@ -274,26 +274,26 @@ export var StorageMode;
274
274
  * * `AT_LEAST_ONE_FAILED`: At least one dependency failed
275
275
  * * `ALL_FAILED`: ALl dependencies have failed
276
276
  */
277
- export var TaskDependencyType;
278
- (function (TaskDependencyType) {
279
- TaskDependencyType["ALL_SUCCESS"] = "ALL_SUCCESS";
280
- TaskDependencyType["ALL_DONE"] = "ALL_DONE";
281
- TaskDependencyType["NONE_FAILED"] = "NONE_FAILED";
282
- TaskDependencyType["AT_LEAST_ONE_SUCCESS"] = "AT_LEAST_ONE_SUCCESS";
283
- TaskDependencyType["ALL_FAILED"] = "ALL_FAILED";
284
- TaskDependencyType["AT_LEAST_ONE_FAILED"] = "AT_LEAST_ONE_FAILED";
285
- })(TaskDependencyType || (TaskDependencyType = {}));
277
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
278
+ export const TaskDependencyType = {
279
+ ALL_SUCCESS: 'ALL_SUCCESS',
280
+ ALL_DONE: 'ALL_DONE',
281
+ NONE_FAILED: 'NONE_FAILED',
282
+ AT_LEAST_ONE_SUCCESS: 'AT_LEAST_ONE_SUCCESS',
283
+ ALL_FAILED: 'ALL_FAILED',
284
+ AT_LEAST_ONE_FAILED: 'AT_LEAST_ONE_FAILED',
285
+ };
286
286
  /**
287
287
  * task retry mode of the continuous job
288
288
  * * NEVER: The failed task will not be retried.
289
289
  * * ON_FAILURE: Retry a failed task if at least one other task in the job is still running its first attempt.
290
290
  * When this condition is no longer met or the retry limit is reached, the job run is cancelled and a new run is started.
291
291
  */
292
- export var TaskRetryMode;
293
- (function (TaskRetryMode) {
294
- TaskRetryMode["NEVER"] = "NEVER";
295
- TaskRetryMode["ON_FAILURE"] = "ON_FAILURE";
296
- })(TaskRetryMode || (TaskRetryMode = {}));
292
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
293
+ export const TaskRetryMode = {
294
+ NEVER: 'NEVER',
295
+ ON_FAILURE: 'ON_FAILURE',
296
+ };
297
297
  /**
298
298
  * The type of trigger that fired this run.
299
299
  *
@@ -307,121 +307,115 @@ export var TaskRetryMode;
307
307
  * * `CONTINUOUS_RESTART`: Indicates a run created by user to manually restart a continuous job run.
308
308
  * * `MODEL`: Indicates a run that is triggered by a model update.
309
309
  */
310
- export var TriggerType;
311
- (function (TriggerType) {
312
- TriggerType["PERIODIC"] = "PERIODIC";
313
- TriggerType["ONE_TIME"] = "ONE_TIME";
314
- TriggerType["RETRY"] = "RETRY";
315
- TriggerType["RUN_JOB_TASK"] = "RUN_JOB_TASK";
316
- TriggerType["FILE_ARRIVAL"] = "FILE_ARRIVAL";
317
- TriggerType["CONTINUOUS"] = "CONTINUOUS";
318
- TriggerType["TABLE"] = "TABLE";
319
- TriggerType["CONTINUOUS_RESTART"] = "CONTINUOUS_RESTART";
320
- })(TriggerType || (TriggerType = {}));
310
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
311
+ export const TriggerType = {
312
+ PERIODIC: 'PERIODIC',
313
+ ONE_TIME: 'ONE_TIME',
314
+ RETRY: 'RETRY',
315
+ RUN_JOB_TASK: 'RUN_JOB_TASK',
316
+ FILE_ARRIVAL: 'FILE_ARRIVAL',
317
+ CONTINUOUS: 'CONTINUOUS',
318
+ TABLE: 'TABLE',
319
+ CONTINUOUS_RESTART: 'CONTINUOUS_RESTART',
320
+ };
321
321
  /**
322
322
  * * `NOTEBOOK`: Notebook view item.
323
323
  * * `DASHBOARD`: Dashboard view item.
324
324
  */
325
- export var ViewType;
326
- (function (ViewType) {
327
- ViewType["NOTEBOOK"] = "NOTEBOOK";
328
- ViewType["DASHBOARD"] = "DASHBOARD";
329
- })(ViewType || (ViewType = {}));
325
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
326
+ export const ViewType = {
327
+ NOTEBOOK: 'NOTEBOOK',
328
+ DASHBOARD: 'DASHBOARD',
329
+ };
330
330
  /**
331
331
  * * `CODE`: Code view of the notebook.
332
332
  * * `DASHBOARDS`: All dashboard views of the notebook.
333
333
  * * `ALL`: All views of the notebook.
334
334
  */
335
- export var ViewsToExport;
336
- (function (ViewsToExport) {
337
- ViewsToExport["CODE"] = "CODE";
338
- ViewsToExport["DASHBOARDS"] = "DASHBOARDS";
339
- ViewsToExport["ALL"] = "ALL";
340
- })(ViewsToExport || (ViewsToExport = {}));
341
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
342
- export var AccessControlRequest_JobPermission;
343
- (function (AccessControlRequest_JobPermission) {
344
- AccessControlRequest_JobPermission["CAN_VIEW"] = "CAN_VIEW";
345
- AccessControlRequest_JobPermission["CAN_MANAGE_RUN"] = "CAN_MANAGE_RUN";
346
- AccessControlRequest_JobPermission["IS_OWNER"] = "IS_OWNER";
347
- AccessControlRequest_JobPermission["CAN_MANAGE"] = "CAN_MANAGE";
348
- })(AccessControlRequest_JobPermission || (AccessControlRequest_JobPermission = {}));
335
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
336
+ export const ViewsToExport = {
337
+ CODE: 'CODE',
338
+ DASHBOARDS: 'DASHBOARDS',
339
+ ALL: 'ALL',
340
+ };
341
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
342
+ export const AccessControlRequest_JobPermission = {
343
+ CAN_VIEW: 'CAN_VIEW',
344
+ CAN_MANAGE_RUN: 'CAN_MANAGE_RUN',
345
+ IS_OWNER: 'IS_OWNER',
346
+ CAN_MANAGE: 'CAN_MANAGE',
347
+ };
349
348
  /** Same alert evaluation state as in redash-v2/api/proto/alertsv2/alerts.proto */
350
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
351
- export var AlertEvaluationState_AlertEvaluationState;
352
- (function (AlertEvaluationState_AlertEvaluationState) {
353
- AlertEvaluationState_AlertEvaluationState["ALERT_EVALUATION_STATE_UNSPECIFIED"] = "ALERT_EVALUATION_STATE_UNSPECIFIED";
354
- AlertEvaluationState_AlertEvaluationState["UNKNOWN"] = "UNKNOWN";
355
- AlertEvaluationState_AlertEvaluationState["TRIGGERED"] = "TRIGGERED";
356
- AlertEvaluationState_AlertEvaluationState["OK"] = "OK";
357
- AlertEvaluationState_AlertEvaluationState["ERROR"] = "ERROR";
358
- })(AlertEvaluationState_AlertEvaluationState || (AlertEvaluationState_AlertEvaluationState = {}));
349
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
350
+ export const AlertEvaluationState_AlertEvaluationState = {
351
+ ALERT_EVALUATION_STATE_UNSPECIFIED: 'ALERT_EVALUATION_STATE_UNSPECIFIED',
352
+ UNKNOWN: 'UNKNOWN',
353
+ TRIGGERED: 'TRIGGERED',
354
+ OK: 'OK',
355
+ ERROR: 'ERROR',
356
+ };
359
357
  /**
360
358
  * Copied from elastic-spark-common/api/messages/runs.proto.
361
359
  * Using the original definition to remove coupling with jobs API definition
362
360
  */
363
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
364
- export var CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState;
365
- (function (CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState) {
366
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["RUN_LIFE_CYCLE_STATE_UNSPECIFIED"] = "RUN_LIFE_CYCLE_STATE_UNSPECIFIED";
367
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["PENDING"] = "PENDING";
368
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["RUNNING"] = "RUNNING";
369
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["TERMINATING"] = "TERMINATING";
370
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["TERMINATED"] = "TERMINATED";
371
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["SKIPPED"] = "SKIPPED";
372
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["INTERNAL_ERROR"] = "INTERNAL_ERROR";
373
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["BLOCKED"] = "BLOCKED";
374
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["WAITING_FOR_RETRY"] = "WAITING_FOR_RETRY";
375
- CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState["QUEUED"] = "QUEUED";
376
- })(CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState || (CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState = {}));
361
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
362
+ export const CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState = {
363
+ RUN_LIFE_CYCLE_STATE_UNSPECIFIED: 'RUN_LIFE_CYCLE_STATE_UNSPECIFIED',
364
+ PENDING: 'PENDING',
365
+ RUNNING: 'RUNNING',
366
+ TERMINATING: 'TERMINATING',
367
+ TERMINATED: 'TERMINATED',
368
+ SKIPPED: 'SKIPPED',
369
+ INTERNAL_ERROR: 'INTERNAL_ERROR',
370
+ BLOCKED: 'BLOCKED',
371
+ WAITING_FOR_RETRY: 'WAITING_FOR_RETRY',
372
+ QUEUED: 'QUEUED',
373
+ };
377
374
  /**
378
375
  * Copied from elastic-spark-common/api/messages/runs.proto.
379
376
  * Using the original definition to avoid cyclic dependency.
380
377
  */
381
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
382
- export var CleanRoomTaskRunResultState_CleanRoomTaskRunResultState;
383
- (function (CleanRoomTaskRunResultState_CleanRoomTaskRunResultState) {
384
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["RUN_RESULT_STATE_UNSPECIFIED"] = "RUN_RESULT_STATE_UNSPECIFIED";
385
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["SUCCESS"] = "SUCCESS";
386
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["FAILED"] = "FAILED";
387
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["TIMEDOUT"] = "TIMEDOUT";
388
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["CANCELED"] = "CANCELED";
389
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["MAXIMUM_CONCURRENT_RUNS_REACHED"] = "MAXIMUM_CONCURRENT_RUNS_REACHED";
390
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["UPSTREAM_CANCELED"] = "UPSTREAM_CANCELED";
391
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["UPSTREAM_FAILED"] = "UPSTREAM_FAILED";
392
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["EXCLUDED"] = "EXCLUDED";
393
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["EVICTED"] = "EVICTED";
394
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["SUCCESS_WITH_FAILURES"] = "SUCCESS_WITH_FAILURES";
395
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["UPSTREAM_EVICTED"] = "UPSTREAM_EVICTED";
378
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
379
+ export const CleanRoomTaskRunResultState_CleanRoomTaskRunResultState = {
380
+ RUN_RESULT_STATE_UNSPECIFIED: 'RUN_RESULT_STATE_UNSPECIFIED',
381
+ SUCCESS: 'SUCCESS',
382
+ FAILED: 'FAILED',
383
+ TIMEDOUT: 'TIMEDOUT',
384
+ CANCELED: 'CANCELED',
385
+ MAXIMUM_CONCURRENT_RUNS_REACHED: 'MAXIMUM_CONCURRENT_RUNS_REACHED',
386
+ UPSTREAM_CANCELED: 'UPSTREAM_CANCELED',
387
+ UPSTREAM_FAILED: 'UPSTREAM_FAILED',
388
+ EXCLUDED: 'EXCLUDED',
389
+ EVICTED: 'EVICTED',
390
+ SUCCESS_WITH_FAILURES: 'SUCCESS_WITH_FAILURES',
391
+ UPSTREAM_EVICTED: 'UPSTREAM_EVICTED',
396
392
  /** 12 is reserved for previously used SUCCESS_WITH_SKIPPED_CELLS */
397
- CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["DISABLED"] = "DISABLED";
398
- })(CleanRoomTaskRunResultState_CleanRoomTaskRunResultState || (CleanRoomTaskRunResultState_CleanRoomTaskRunResultState = {}));
393
+ DISABLED: 'DISABLED',
394
+ };
399
395
  /**
400
396
  * * `EQUAL_TO`, `NOT_EQUAL` operators perform string comparison of their operands. This means that `“12.0” == “12”` will evaluate to `false`.
401
397
  * * `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL` operators perform numeric comparison of their operands. `“12.0” >= “12”` will evaluate to `true`, `“10.0” >= “12”` will evaluate to `false`.
402
398
  *
403
399
  * The boolean comparison to task values can be implemented with operators `EQUAL_TO`, `NOT_EQUAL`. If a task value was set to a boolean value, it will be serialized to `“true”` or `“false”` for the comparison.
404
400
  */
405
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
406
- export var ConditionTask_ConditionTaskOperator;
407
- (function (ConditionTask_ConditionTaskOperator) {
408
- ConditionTask_ConditionTaskOperator["EQUAL_TO"] = "EQUAL_TO";
409
- ConditionTask_ConditionTaskOperator["GREATER_THAN"] = "GREATER_THAN";
410
- ConditionTask_ConditionTaskOperator["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
411
- ConditionTask_ConditionTaskOperator["LESS_THAN"] = "LESS_THAN";
412
- ConditionTask_ConditionTaskOperator["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
413
- ConditionTask_ConditionTaskOperator["NOT_EQUAL"] = "NOT_EQUAL";
414
- })(ConditionTask_ConditionTaskOperator || (ConditionTask_ConditionTaskOperator = {}));
401
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
402
+ export const ConditionTask_ConditionTaskOperator = {
403
+ EQUAL_TO: 'EQUAL_TO',
404
+ GREATER_THAN: 'GREATER_THAN',
405
+ GREATER_THAN_OR_EQUAL: 'GREATER_THAN_OR_EQUAL',
406
+ LESS_THAN: 'LESS_THAN',
407
+ LESS_THAN_OR_EQUAL: 'LESS_THAN_OR_EQUAL',
408
+ NOT_EQUAL: 'NOT_EQUAL',
409
+ };
415
410
  /**
416
411
  * * `BUNDLE`: The job is managed by Databricks Asset Bundle.
417
412
  * * `SYSTEM_MANAGED`: The job is managed by <Databricks> and is read-only.
418
413
  */
419
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
420
- export var JobDeployment_DeploymentKind;
421
- (function (JobDeployment_DeploymentKind) {
422
- JobDeployment_DeploymentKind["BUNDLE"] = "BUNDLE";
423
- JobDeployment_DeploymentKind["SYSTEM_MANAGED"] = "SYSTEM_MANAGED";
424
- })(JobDeployment_DeploymentKind || (JobDeployment_DeploymentKind = {}));
414
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
415
+ export const JobDeployment_DeploymentKind = {
416
+ BUNDLE: 'BUNDLE',
417
+ SYSTEM_MANAGED: 'SYSTEM_MANAGED',
418
+ };
425
419
  /**
426
420
  * Dirty state indicates the job is not fully synced with the job specification
427
421
  * in the remote repository.
@@ -430,53 +424,48 @@ export var JobDeployment_DeploymentKind;
430
424
  * * `NOT_SYNCED`: The job is not yet synced with the remote job specification. Import the remote job specification from UI to make the job fully synced.
431
425
  * * `DISCONNECTED`: The job is temporary disconnected from the remote job specification and is allowed for live edit. Import the remote job specification again from UI to make the job fully synced.
432
426
  */
433
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
434
- export var JobSource_DirtyState;
435
- (function (JobSource_DirtyState) {
436
- JobSource_DirtyState["NOT_SYNCED"] = "NOT_SYNCED";
437
- JobSource_DirtyState["DISCONNECTED"] = "DISCONNECTED";
438
- })(JobSource_DirtyState || (JobSource_DirtyState = {}));
439
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
440
- export var ModelTriggerConfiguration_ModelTriggerCondition;
441
- (function (ModelTriggerConfiguration_ModelTriggerCondition) {
442
- ModelTriggerConfiguration_ModelTriggerCondition["CONDITION_UNSPECIFIED"] = "CONDITION_UNSPECIFIED";
443
- ModelTriggerConfiguration_ModelTriggerCondition["MODEL_CREATED"] = "MODEL_CREATED";
444
- ModelTriggerConfiguration_ModelTriggerCondition["MODEL_VERSION_READY"] = "MODEL_VERSION_READY";
445
- ModelTriggerConfiguration_ModelTriggerCondition["MODEL_ALIAS_SET"] = "MODEL_ALIAS_SET";
446
- })(ModelTriggerConfiguration_ModelTriggerCondition || (ModelTriggerConfiguration_ModelTriggerCondition = {}));
427
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
428
+ export const JobSource_DirtyState = {
429
+ NOT_SYNCED: 'NOT_SYNCED',
430
+ DISCONNECTED: 'DISCONNECTED',
431
+ };
432
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
433
+ export const ModelTriggerConfiguration_ModelTriggerCondition = {
434
+ CONDITION_UNSPECIFIED: 'CONDITION_UNSPECIFIED',
435
+ MODEL_CREATED: 'MODEL_CREATED',
436
+ MODEL_VERSION_READY: 'MODEL_VERSION_READY',
437
+ MODEL_ALIAS_SET: 'MODEL_ALIAS_SET',
438
+ };
447
439
  /**
448
440
  * PerformanceTarget defines how performant (lower latency) or cost efficient the execution of run on serverless compute should be.
449
441
  * The performance mode on the job or pipeline should map to a performance setting that is passed to Cluster Manager
450
442
  * (see cluster-common PerformanceTarget).
451
443
  */
452
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
453
- export var PerformanceTarget_PerformanceTarget;
454
- (function (PerformanceTarget_PerformanceTarget) {
455
- PerformanceTarget_PerformanceTarget["PERFORMANCE_TARGET_UNSPECIFIED"] = "PERFORMANCE_TARGET_UNSPECIFIED";
456
- PerformanceTarget_PerformanceTarget["PERFORMANCE_OPTIMIZED"] = "PERFORMANCE_OPTIMIZED";
457
- PerformanceTarget_PerformanceTarget["STANDARD"] = "STANDARD";
458
- })(PerformanceTarget_PerformanceTarget || (PerformanceTarget_PerformanceTarget = {}));
459
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
460
- export var PeriodicTriggerConfiguration_TimeUnit;
461
- (function (PeriodicTriggerConfiguration_TimeUnit) {
462
- PeriodicTriggerConfiguration_TimeUnit["TIME_UNIT_UNSPECIFIED"] = "TIME_UNIT_UNSPECIFIED";
463
- PeriodicTriggerConfiguration_TimeUnit["HOURS"] = "HOURS";
464
- PeriodicTriggerConfiguration_TimeUnit["DAYS"] = "DAYS";
465
- PeriodicTriggerConfiguration_TimeUnit["WEEKS"] = "WEEKS";
466
- })(PeriodicTriggerConfiguration_TimeUnit || (PeriodicTriggerConfiguration_TimeUnit = {}));
444
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
445
+ export const PerformanceTarget_PerformanceTarget = {
446
+ PERFORMANCE_TARGET_UNSPECIFIED: 'PERFORMANCE_TARGET_UNSPECIFIED',
447
+ PERFORMANCE_OPTIMIZED: 'PERFORMANCE_OPTIMIZED',
448
+ STANDARD: 'STANDARD',
449
+ };
450
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
451
+ export const PeriodicTriggerConfiguration_TimeUnit = {
452
+ TIME_UNIT_UNSPECIFIED: 'TIME_UNIT_UNSPECIFIED',
453
+ HOURS: 'HOURS',
454
+ DAYS: 'DAYS',
455
+ WEEKS: 'WEEKS',
456
+ };
467
457
  /**
468
458
  * The reason for queuing the run.
469
459
  * * `ACTIVE_RUNS_LIMIT_REACHED`: The run was queued due to reaching the workspace limit of active task runs.
470
460
  * * `MAX_CONCURRENT_RUNS_REACHED`: The run was queued due to reaching the per-job limit of concurrent job runs.
471
461
  * * `ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED`: The run was queued due to reaching the workspace limit of active run job tasks.
472
462
  */
473
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
474
- export var QueueDetailsCode_Code;
475
- (function (QueueDetailsCode_Code) {
476
- QueueDetailsCode_Code["ACTIVE_RUNS_LIMIT_REACHED"] = "ACTIVE_RUNS_LIMIT_REACHED";
477
- QueueDetailsCode_Code["MAX_CONCURRENT_RUNS_REACHED"] = "MAX_CONCURRENT_RUNS_REACHED";
478
- QueueDetailsCode_Code["ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED"] = "ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED";
479
- })(QueueDetailsCode_Code || (QueueDetailsCode_Code = {}));
463
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
464
+ export const QueueDetailsCode_Code = {
465
+ ACTIVE_RUNS_LIMIT_REACHED: 'ACTIVE_RUNS_LIMIT_REACHED',
466
+ MAX_CONCURRENT_RUNS_REACHED: 'MAX_CONCURRENT_RUNS_REACHED',
467
+ ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED: 'ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED',
468
+ };
480
469
  /**
481
470
  * A value indicating the run's lifecycle state. The possible values are:
482
471
  * * `QUEUED`: The run is queued.
@@ -489,35 +478,33 @@ export var QueueDetailsCode_Code;
489
478
  * * `BLOCKED`: The run is blocked on an upstream dependency.
490
479
  * * `WAITING_FOR_RETRY`: The run is waiting for a retry.
491
480
  */
492
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
493
- export var RunLifeCycleState_RunLifeCycleState;
494
- (function (RunLifeCycleState_RunLifeCycleState) {
495
- RunLifeCycleState_RunLifeCycleState["PENDING"] = "PENDING";
496
- RunLifeCycleState_RunLifeCycleState["RUNNING"] = "RUNNING";
497
- RunLifeCycleState_RunLifeCycleState["TERMINATING"] = "TERMINATING";
498
- RunLifeCycleState_RunLifeCycleState["TERMINATED"] = "TERMINATED";
499
- RunLifeCycleState_RunLifeCycleState["SKIPPED"] = "SKIPPED";
500
- RunLifeCycleState_RunLifeCycleState["INTERNAL_ERROR"] = "INTERNAL_ERROR";
501
- RunLifeCycleState_RunLifeCycleState["BLOCKED"] = "BLOCKED";
502
- RunLifeCycleState_RunLifeCycleState["WAITING_FOR_RETRY"] = "WAITING_FOR_RETRY";
503
- RunLifeCycleState_RunLifeCycleState["QUEUED"] = "QUEUED";
504
- })(RunLifeCycleState_RunLifeCycleState || (RunLifeCycleState_RunLifeCycleState = {}));
481
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
482
+ export const RunLifeCycleState_RunLifeCycleState = {
483
+ PENDING: 'PENDING',
484
+ RUNNING: 'RUNNING',
485
+ TERMINATING: 'TERMINATING',
486
+ TERMINATED: 'TERMINATED',
487
+ SKIPPED: 'SKIPPED',
488
+ INTERNAL_ERROR: 'INTERNAL_ERROR',
489
+ BLOCKED: 'BLOCKED',
490
+ WAITING_FOR_RETRY: 'WAITING_FOR_RETRY',
491
+ QUEUED: 'QUEUED',
492
+ };
505
493
  /** The current state of the run. */
506
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
507
- export var RunLifecycleStateV2_State;
508
- (function (RunLifecycleStateV2_State) {
509
- RunLifecycleStateV2_State["BLOCKED"] = "BLOCKED";
510
- RunLifecycleStateV2_State["PENDING"] = "PENDING";
511
- RunLifecycleStateV2_State["QUEUED"] = "QUEUED";
512
- RunLifecycleStateV2_State["RUNNING"] = "RUNNING";
513
- RunLifecycleStateV2_State["TERMINATING"] = "TERMINATING";
514
- RunLifecycleStateV2_State["TERMINATED"] = "TERMINATED";
494
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
495
+ export const RunLifecycleStateV2_State = {
496
+ BLOCKED: 'BLOCKED',
497
+ PENDING: 'PENDING',
498
+ QUEUED: 'QUEUED',
499
+ RUNNING: 'RUNNING',
500
+ TERMINATING: 'TERMINATING',
501
+ TERMINATED: 'TERMINATED',
515
502
  /**
516
503
  * Runs in the Waiting state (e.g. cost-optimized runs) are intentionally delayed until an
517
504
  * optimal compute scheduling time
518
505
  */
519
- RunLifecycleStateV2_State["WAITING"] = "WAITING";
520
- })(RunLifecycleStateV2_State || (RunLifecycleStateV2_State = {}));
506
+ WAITING: 'WAITING',
507
+ };
521
508
  /**
522
509
  * A value indicating the run's result. The possible values are:
523
510
  * * `SUCCESS`: The task completed successfully.
@@ -531,20 +518,19 @@ export var RunLifecycleStateV2_State;
531
518
  * * `UPSTREAM_CANCELED`: The run was skipped because an upstream task was canceled.
532
519
  * * `DISABLED`: The run was skipped because it was disabled explicitly by the user.
533
520
  */
534
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
535
- export var RunResultState_RunResultState;
536
- (function (RunResultState_RunResultState) {
537
- RunResultState_RunResultState["SUCCESS"] = "SUCCESS";
538
- RunResultState_RunResultState["FAILED"] = "FAILED";
539
- RunResultState_RunResultState["TIMEDOUT"] = "TIMEDOUT";
540
- RunResultState_RunResultState["CANCELED"] = "CANCELED";
541
- RunResultState_RunResultState["MAXIMUM_CONCURRENT_RUNS_REACHED"] = "MAXIMUM_CONCURRENT_RUNS_REACHED";
542
- RunResultState_RunResultState["UPSTREAM_CANCELED"] = "UPSTREAM_CANCELED";
543
- RunResultState_RunResultState["UPSTREAM_FAILED"] = "UPSTREAM_FAILED";
544
- RunResultState_RunResultState["EXCLUDED"] = "EXCLUDED";
545
- RunResultState_RunResultState["SUCCESS_WITH_FAILURES"] = "SUCCESS_WITH_FAILURES";
546
- RunResultState_RunResultState["DISABLED"] = "DISABLED";
547
- })(RunResultState_RunResultState || (RunResultState_RunResultState = {}));
521
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
522
+ export const RunResultState_RunResultState = {
523
+ SUCCESS: 'SUCCESS',
524
+ FAILED: 'FAILED',
525
+ TIMEDOUT: 'TIMEDOUT',
526
+ CANCELED: 'CANCELED',
527
+ MAXIMUM_CONCURRENT_RUNS_REACHED: 'MAXIMUM_CONCURRENT_RUNS_REACHED',
528
+ UPSTREAM_CANCELED: 'UPSTREAM_CANCELED',
529
+ UPSTREAM_FAILED: 'UPSTREAM_FAILED',
530
+ EXCLUDED: 'EXCLUDED',
531
+ SUCCESS_WITH_FAILURES: 'SUCCESS_WITH_FAILURES',
532
+ DISABLED: 'DISABLED',
533
+ };
548
534
  /**
549
535
  * The state of the SQL alert.
550
536
  *
@@ -552,28 +538,25 @@ export var RunResultState_RunResultState;
552
538
  * * OK: alert evaluated and did not fulfill trigger conditions
553
539
  * * TRIGGERED: alert evaluated and fulfilled trigger conditions
554
540
  */
555
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
556
- export var SqlAlertState_SqlAlertState;
557
- (function (SqlAlertState_SqlAlertState) {
558
- SqlAlertState_SqlAlertState["UNKNOWN"] = "UNKNOWN";
559
- SqlAlertState_SqlAlertState["OK"] = "OK";
560
- SqlAlertState_SqlAlertState["TRIGGERED"] = "TRIGGERED";
561
- })(SqlAlertState_SqlAlertState || (SqlAlertState_SqlAlertState = {}));
562
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
563
- export var SqlTask_SqlTaskQueryStatus;
564
- (function (SqlTask_SqlTaskQueryStatus) {
565
- SqlTask_SqlTaskQueryStatus["PENDING"] = "PENDING";
566
- SqlTask_SqlTaskQueryStatus["RUNNING"] = "RUNNING";
567
- SqlTask_SqlTaskQueryStatus["SUCCESS"] = "SUCCESS";
568
- SqlTask_SqlTaskQueryStatus["FAILED"] = "FAILED";
569
- SqlTask_SqlTaskQueryStatus["CANCELLED"] = "CANCELLED";
570
- })(SqlTask_SqlTaskQueryStatus || (SqlTask_SqlTaskQueryStatus = {}));
571
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
572
- export var TableTriggerConfiguration_Condition;
573
- (function (TableTriggerConfiguration_Condition) {
574
- TableTriggerConfiguration_Condition["ANY_UPDATED"] = "ANY_UPDATED";
575
- TableTriggerConfiguration_Condition["ALL_UPDATED"] = "ALL_UPDATED";
576
- })(TableTriggerConfiguration_Condition || (TableTriggerConfiguration_Condition = {}));
541
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
542
+ export const SqlAlertState_SqlAlertState = {
543
+ UNKNOWN: 'UNKNOWN',
544
+ OK: 'OK',
545
+ TRIGGERED: 'TRIGGERED',
546
+ };
547
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
548
+ export const SqlTask_SqlTaskQueryStatus = {
549
+ PENDING: 'PENDING',
550
+ RUNNING: 'RUNNING',
551
+ SUCCESS: 'SUCCESS',
552
+ FAILED: 'FAILED',
553
+ CANCELLED: 'CANCELLED',
554
+ };
555
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
556
+ export const TableTriggerConfiguration_Condition = {
557
+ ANY_UPDATED: 'ANY_UPDATED',
558
+ ALL_UPDATED: 'ALL_UPDATED',
559
+ };
577
560
  /**
578
561
  * The code indicates why the run was terminated. Additional codes might be introduced in future releases.
579
562
  * * `SUCCESS`: The run was completed successfully.
@@ -603,27 +586,26 @@ export var TableTriggerConfiguration_Condition;
603
586
  * * `BREAKING_CHANGE`: Run failed because of an intentional breaking change in Spark, but it will be retried with a mitigation config.
604
587
  * * `CLUSTER_TERMINATED_BY_USER`: The run failed because the externally managed cluster entered an unusable state, likely due to the user terminating or restarting it outside the jobs service.
605
588
  */
606
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
607
- export var TerminationCode_Code;
608
- (function (TerminationCode_Code) {
609
- TerminationCode_Code["SUCCESS"] = "SUCCESS";
610
- TerminationCode_Code["CANCELED"] = "CANCELED";
589
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
590
+ export const TerminationCode_Code = {
591
+ SUCCESS: 'SUCCESS',
592
+ CANCELED: 'CANCELED',
611
593
  /** DriverError represents failures when the driver restarted, or became unhealthy or unreachable during the run. */
612
- TerminationCode_Code["DRIVER_ERROR"] = "DRIVER_ERROR";
594
+ DRIVER_ERROR: 'DRIVER_ERROR',
613
595
  /**
614
596
  * ClusterError represents failures due to cluster issues. These include the failures that occur during
615
597
  * creation of a new cluster / starting up an existing cluster, cluster issues and timeouts during the job run
616
598
  */
617
- TerminationCode_Code["CLUSTER_ERROR"] = "CLUSTER_ERROR";
599
+ CLUSTER_ERROR: 'CLUSTER_ERROR',
618
600
  /** Returned if [[ProjectCheckoutInternalRepo]] RPC fails */
619
- TerminationCode_Code["REPOSITORY_CHECKOUT_FAILED"] = "REPOSITORY_CHECKOUT_FAILED";
601
+ REPOSITORY_CHECKOUT_FAILED: 'REPOSITORY_CHECKOUT_FAILED',
620
602
  /**
621
603
  * *
622
604
  * InvalidClusterRequest represents failures when the user provides invalid input for a cluster
623
605
  * configuration for the run. For example, providing invalid parameter Values in the request/
624
606
  * providing a bad request etc
625
607
  */
626
- TerminationCode_Code["INVALID_CLUSTER_REQUEST"] = "INVALID_CLUSTER_REQUEST";
608
+ INVALID_CLUSTER_REQUEST: 'INVALID_CLUSTER_REQUEST',
627
609
  /**
628
610
  * *
629
611
  * Returned if an org set a limit for number of their concurrent active runs and the run couldn't start
@@ -632,24 +614,24 @@ export var TerminationCode_Code;
632
614
  * It should be looked into how we're handling the scenario where a given job exceeds its own internal concurrency
633
615
  * limits.
634
616
  */
635
- TerminationCode_Code["WORKSPACE_RUN_LIMIT_EXCEEDED"] = "WORKSPACE_RUN_LIMIT_EXCEEDED";
636
- TerminationCode_Code["FEATURE_DISABLED"] = "FEATURE_DISABLED";
617
+ WORKSPACE_RUN_LIMIT_EXCEEDED: 'WORKSPACE_RUN_LIMIT_EXCEEDED',
618
+ FEATURE_DISABLED: 'FEATURE_DISABLED',
637
619
  /**
638
620
  * *
639
621
  * ClusterRequestLimitExceeded represents failures when cluster
640
622
  * creation, start, and upsize requests for a workspace exceeded the rate limit of
641
623
  * [[com.databricks.backend.cluster.ClusterSizeConf.upsizeRefillRatePerMinPerOrg]] nodes per min.
642
624
  */
643
- TerminationCode_Code["CLUSTER_REQUEST_LIMIT_EXCEEDED"] = "CLUSTER_REQUEST_LIMIT_EXCEEDED";
625
+ CLUSTER_REQUEST_LIMIT_EXCEEDED: 'CLUSTER_REQUEST_LIMIT_EXCEEDED',
644
626
  /**
645
627
  * *
646
628
  * StorageAccessError represents failures when the access to user's <Databricks> file system fails.
647
629
  * For example, misconfiguration on user's side like deleting AWS S3 bucket without cancelling the workspace,
648
630
  * their Azure account being disabled, the storage buckets not being found etc.
649
631
  */
650
- TerminationCode_Code["STORAGE_ACCESS_ERROR"] = "STORAGE_ACCESS_ERROR";
651
- TerminationCode_Code["RUN_EXECUTION_ERROR"] = "RUN_EXECUTION_ERROR";
652
- TerminationCode_Code["UNAUTHORIZED_ERROR"] = "UNAUTHORIZED_ERROR";
632
+ STORAGE_ACCESS_ERROR: 'STORAGE_ACCESS_ERROR',
633
+ RUN_EXECUTION_ERROR: 'RUN_EXECUTION_ERROR',
634
+ UNAUTHORIZED_ERROR: 'UNAUTHORIZED_ERROR',
653
635
  /**
654
636
  * *
655
637
  * LibraryInstallationError represents failures due to issues related library installation.
@@ -657,40 +639,39 @@ export var TerminationCode_Code;
657
639
  * enough permissions to install the library or any cloud dependency/ infrastructure failures during
658
640
  * library installation etc
659
641
  */
660
- TerminationCode_Code["LIBRARY_INSTALLATION_ERROR"] = "LIBRARY_INSTALLATION_ERROR";
661
- TerminationCode_Code["MAX_CONCURRENT_RUNS_EXCEEDED"] = "MAX_CONCURRENT_RUNS_EXCEEDED";
662
- TerminationCode_Code["MAX_SPARK_CONTEXTS_EXCEEDED"] = "MAX_SPARK_CONTEXTS_EXCEEDED";
663
- TerminationCode_Code["RESOURCE_NOT_FOUND"] = "RESOURCE_NOT_FOUND";
664
- TerminationCode_Code["INVALID_RUN_CONFIGURATION"] = "INVALID_RUN_CONFIGURATION";
665
- TerminationCode_Code["INTERNAL_ERROR"] = "INTERNAL_ERROR";
666
- TerminationCode_Code["CLOUD_FAILURE"] = "CLOUD_FAILURE";
667
- TerminationCode_Code["MAX_JOB_QUEUE_SIZE_EXCEEDED"] = "MAX_JOB_QUEUE_SIZE_EXCEEDED";
668
- TerminationCode_Code["SKIPPED"] = "SKIPPED";
669
- TerminationCode_Code["USER_CANCELED"] = "USER_CANCELED";
670
- TerminationCode_Code["BUDGET_POLICY_LIMIT_EXCEEDED"] = "BUDGET_POLICY_LIMIT_EXCEEDED";
671
- TerminationCode_Code["DISABLED"] = "DISABLED";
642
+ LIBRARY_INSTALLATION_ERROR: 'LIBRARY_INSTALLATION_ERROR',
643
+ MAX_CONCURRENT_RUNS_EXCEEDED: 'MAX_CONCURRENT_RUNS_EXCEEDED',
644
+ MAX_SPARK_CONTEXTS_EXCEEDED: 'MAX_SPARK_CONTEXTS_EXCEEDED',
645
+ RESOURCE_NOT_FOUND: 'RESOURCE_NOT_FOUND',
646
+ INVALID_RUN_CONFIGURATION: 'INVALID_RUN_CONFIGURATION',
647
+ INTERNAL_ERROR: 'INTERNAL_ERROR',
648
+ CLOUD_FAILURE: 'CLOUD_FAILURE',
649
+ MAX_JOB_QUEUE_SIZE_EXCEEDED: 'MAX_JOB_QUEUE_SIZE_EXCEEDED',
650
+ SKIPPED: 'SKIPPED',
651
+ USER_CANCELED: 'USER_CANCELED',
652
+ BUDGET_POLICY_LIMIT_EXCEEDED: 'BUDGET_POLICY_LIMIT_EXCEEDED',
653
+ DISABLED: 'DISABLED',
672
654
  /**
673
655
  * SuccessWithFailures represents that some child runs failed
674
656
  * but the run was ultimately successful.
675
657
  */
676
- TerminationCode_Code["SUCCESS_WITH_FAILURES"] = "SUCCESS_WITH_FAILURES";
658
+ SUCCESS_WITH_FAILURES: 'SUCCESS_WITH_FAILURES',
677
659
  /** Run failed because of an intentional breaking change in Spark, but it will be retried with a mitigation config. */
678
- TerminationCode_Code["BREAKING_CHANGE"] = "BREAKING_CHANGE";
679
- })(TerminationCode_Code || (TerminationCode_Code = {}));
660
+ BREAKING_CHANGE: 'BREAKING_CHANGE',
661
+ };
680
662
  /**
681
663
  * * `SUCCESS`: The run terminated without any issues
682
664
  * * `INTERNAL_ERROR`: An error occurred in the <Databricks> platform. Please look at the [status page](https://status.databricks.com/) or contact support if the issue persists.
683
665
  * * `CLIENT_ERROR`: The run was terminated because of an error caused by user input or the job configuration.
684
666
  * * `CLOUD_FAILURE`: The run was terminated because of an issue with your cloud provider.
685
667
  */
686
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
687
- export var TerminationType_Type;
688
- (function (TerminationType_Type) {
689
- TerminationType_Type["SUCCESS"] = "SUCCESS";
690
- TerminationType_Type["INTERNAL_ERROR"] = "INTERNAL_ERROR";
691
- TerminationType_Type["CLIENT_ERROR"] = "CLIENT_ERROR";
692
- TerminationType_Type["CLOUD_FAILURE"] = "CLOUD_FAILURE";
693
- })(TerminationType_Type || (TerminationType_Type = {}));
668
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
669
+ export const TerminationType_Type = {
670
+ SUCCESS: 'SUCCESS',
671
+ INTERNAL_ERROR: 'INTERNAL_ERROR',
672
+ CLIENT_ERROR: 'CLIENT_ERROR',
673
+ CLOUD_FAILURE: 'CLOUD_FAILURE',
674
+ };
694
675
  export const unmarshalAdlsgen2InfoSchema = z
695
676
  .object({
696
677
  destination: z.string().optional(),
@@ -715,7 +696,7 @@ export const unmarshalAlertTaskSchema = z
715
696
  }));
716
697
  export const unmarshalAlertTaskOutputSchema = z
717
698
  .object({
718
- alert_state: z.enum(AlertEvaluationState_AlertEvaluationState).optional(),
699
+ alert_state: z.string().optional(),
719
700
  })
720
701
  .transform(d => ({
721
702
  alertState: d.alert_state,
@@ -744,11 +725,11 @@ export const unmarshalAutoScaleSchema = z
744
725
  export const unmarshalAwsAttributesSchema = z
745
726
  .object({
746
727
  first_on_demand: z.number().optional(),
747
- availability: z.enum(AwsAvailability).optional(),
728
+ availability: z.string().optional(),
748
729
  zone_id: z.string().optional(),
749
730
  instance_profile_arn: z.string().optional(),
750
731
  spot_bid_price_percent: z.number().optional(),
751
- ebs_volume_type: z.enum(EbsVolumeType).optional(),
732
+ ebs_volume_type: z.string().optional(),
752
733
  ebs_volume_count: z.number().optional(),
753
734
  ebs_volume_size: z.number().optional(),
754
735
  ebs_volume_iops: z.number().optional(),
@@ -772,7 +753,7 @@ export const unmarshalAzureAttributesSchema = z
772
753
  .lazy(() => unmarshalLogAnalyticsInfoSchema)
773
754
  .optional(),
774
755
  first_on_demand: z.number().optional(),
775
- availability: z.enum(AzureAvailability).optional(),
756
+ availability: z.string().optional(),
776
757
  spot_bid_max_price: z.number().optional(),
777
758
  })
778
759
  .transform(d => ({
@@ -839,11 +820,11 @@ export const unmarshalBaseRunSchema = z
839
820
  overriding_parameters: z
840
821
  .lazy(() => unmarshalRunParametersSchema)
841
822
  .optional(),
842
- trigger: z.enum(TriggerType).optional(),
823
+ trigger: z.string().optional(),
843
824
  trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
844
825
  run_name: z.string().optional(),
845
826
  run_page_url: z.string().optional(),
846
- run_type: z.enum(RunType).optional(),
827
+ run_type: z.string().optional(),
847
828
  tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
848
829
  description: z.string().optional(),
849
830
  attempt_number: z.number().optional(),
@@ -856,9 +837,7 @@ export const unmarshalBaseRunSchema = z
856
837
  .transform(v => BigInt(v))
857
838
  .optional(),
858
839
  has_more: z.boolean().optional(),
859
- effective_performance_target: z
860
- .enum(PerformanceTarget_PerformanceTarget)
861
- .optional(),
840
+ effective_performance_target: z.string().optional(),
862
841
  effective_usage_policy_id: z.string().optional(),
863
842
  start_time: z
864
843
  .union([z.number(), z.bigint()])
@@ -925,18 +904,12 @@ export const unmarshalBaseRunSchema = z
925
904
  runDuration: d.run_duration,
926
905
  queueDuration: d.queue_duration,
927
906
  }));
928
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
929
- export const unmarshalCancelAllRunsRequest_ResponseSchema = z.object({});
930
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
931
- export const unmarshalCancelRunRequest_ResponseSchema = z.object({});
907
+ export const unmarshalCancelAllRunsResponseSchema = z.object({});
908
+ export const unmarshalCancelRunResponseSchema = z.object({});
932
909
  export const unmarshalCleanRoomTaskRunStateSchema = z
933
910
  .object({
934
- life_cycle_state: z
935
- .enum(CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState)
936
- .optional(),
937
- result_state: z
938
- .enum(CleanRoomTaskRunResultState_CleanRoomTaskRunResultState)
939
- .optional(),
911
+ life_cycle_state: z.string().optional(),
912
+ result_state: z.string().optional(),
940
913
  })
941
914
  .transform(d => ({
942
915
  lifeCycleState: d.life_cycle_state,
@@ -1054,9 +1027,9 @@ export const unmarshalClusterSpec_NewClusterSchema = z
1054
1027
  enable_local_disk_encryption: z.boolean().optional(),
1055
1028
  driver_instance_pool_id: z.string().optional(),
1056
1029
  workload_type: z.lazy(() => unmarshalWorkloadTypeSchema).optional(),
1057
- data_security_mode: z.enum(DataSecurityMode).optional(),
1058
- runtime_engine: z.enum(RuntimeEngine).optional(),
1059
- kind: z.enum(ComputeKind).optional(),
1030
+ data_security_mode: z.string().optional(),
1031
+ runtime_engine: z.string().optional(),
1032
+ kind: z.string().optional(),
1060
1033
  use_ml_runtime: z.boolean().optional(),
1061
1034
  is_single_node: z.boolean().optional(),
1062
1035
  remote_disk_throughput: z.number().optional(),
@@ -1105,7 +1078,7 @@ export const unmarshalClusterSpec_NewClusterSchema = z
1105
1078
  }));
1106
1079
  export const unmarshalComputeSchema = z
1107
1080
  .object({
1108
- hardware_accelerator: z.enum(HardwareAcceleratorType).optional(),
1081
+ hardware_accelerator: z.string().optional(),
1109
1082
  })
1110
1083
  .transform(d => ({
1111
1084
  hardwareAccelerator: d.hardware_accelerator,
@@ -1123,7 +1096,7 @@ export const unmarshalComputeConfigSchema = z
1123
1096
  }));
1124
1097
  export const unmarshalConditionTaskSchema = z
1125
1098
  .object({
1126
- op: z.enum(ConditionTask_ConditionTaskOperator).optional(),
1099
+ op: z.string().optional(),
1127
1100
  left: z.string().optional(),
1128
1101
  right: z.string().optional(),
1129
1102
  outcome: z.string().optional(),
@@ -1136,15 +1109,14 @@ export const unmarshalConditionTaskSchema = z
1136
1109
  }));
1137
1110
  export const unmarshalContinuousSettingsSchema = z
1138
1111
  .object({
1139
- pause_status: z.enum(SchedulePauseStatus).optional(),
1140
- task_retry_mode: z.enum(TaskRetryMode).optional(),
1112
+ pause_status: z.string().optional(),
1113
+ task_retry_mode: z.string().optional(),
1141
1114
  })
1142
1115
  .transform(d => ({
1143
1116
  pauseStatus: d.pause_status,
1144
1117
  taskRetryMode: d.task_retry_mode,
1145
1118
  }));
1146
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1147
- export const unmarshalCreateJobRequest_ResponseSchema = z
1119
+ export const unmarshalCreateJobResponseSchema = z
1148
1120
  .object({
1149
1121
  job_id: z
1150
1122
  .union([z.number(), z.bigint()])
@@ -1158,7 +1130,7 @@ export const unmarshalCronScheduleSchema = z
1158
1130
  .object({
1159
1131
  quartz_cron_expression: z.string().optional(),
1160
1132
  timezone_id: z.string().optional(),
1161
- pause_status: z.enum(SchedulePauseStatus).optional(),
1133
+ pause_status: z.string().optional(),
1162
1134
  })
1163
1135
  .transform(d => ({
1164
1136
  quartzCronExpression: d.quartz_cron_expression,
@@ -1209,7 +1181,7 @@ export const unmarshalDbtCloudJobRunStepSchema = z
1209
1181
  .object({
1210
1182
  index: z.number().optional(),
1211
1183
  name: z.string().optional(),
1212
- status: z.enum(DbtPlatformRunStatus).optional(),
1184
+ status: z.string().optional(),
1213
1185
  logs: z.string().optional(),
1214
1186
  })
1215
1187
  .transform(d => ({
@@ -1250,7 +1222,7 @@ export const unmarshalDbtPlatformJobRunStepSchema = z
1250
1222
  .object({
1251
1223
  index: z.number().optional(),
1252
1224
  name: z.string().optional(),
1253
- status: z.enum(DbtPlatformRunStatus).optional(),
1225
+ status: z.string().optional(),
1254
1226
  logs: z.string().optional(),
1255
1227
  name_truncated: z.boolean().optional(),
1256
1228
  logs_truncated: z.boolean().optional(),
@@ -1295,7 +1267,7 @@ export const unmarshalDbtTaskSchema = z
1295
1267
  warehouse_id: z.string().optional(),
1296
1268
  profiles_directory: z.string().optional(),
1297
1269
  catalog: z.string().optional(),
1298
- source: z.enum(Source).optional(),
1270
+ source: z.string().optional(),
1299
1271
  })
1300
1272
  .transform(d => ({
1301
1273
  projectDirectory: d.project_directory,
@@ -1316,10 +1288,8 @@ export const unmarshalDbtTask_DbtTaskOutputSchema = z
1316
1288
  artifactsLink: d.artifacts_link,
1317
1289
  artifactsHeaders: d.artifacts_headers,
1318
1290
  }));
1319
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1320
- export const unmarshalDeleteJobRequest_ResponseSchema = z.object({});
1321
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1322
- export const unmarshalDeleteRunRequest_ResponseSchema = z.object({});
1291
+ export const unmarshalDeleteJobResponseSchema = z.object({});
1292
+ export const unmarshalDeleteRunResponseSchema = z.object({});
1323
1293
  export const unmarshalDockerBasicAuthSchema = z
1324
1294
  .object({
1325
1295
  username: z.string().optional(),
@@ -1340,12 +1310,11 @@ export const unmarshalDockerImageSchema = z
1340
1310
  ? { $case: 'basicAuth', basicAuth: d.basic_auth }
1341
1311
  : undefined,
1342
1312
  }));
1343
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1344
- export const unmarshalEnforcePolicyComplianceForJob_ResponseSchema = z
1313
+ export const unmarshalEnforcePolicyComplianceResponseSchema = z
1345
1314
  .object({
1346
1315
  has_changes: z.boolean().optional(),
1347
1316
  job_cluster_changes: z
1348
- .array(z.lazy(() => unmarshalEnforcePolicyComplianceForJob_Response_JobClusterSettingsChangeSchema))
1317
+ .array(z.lazy(() => unmarshalEnforcePolicyComplianceResponse_JobClusterSettingsChangeSchema))
1349
1318
  .optional(),
1350
1319
  settings: z.lazy(() => unmarshalJobSettingsSchema).optional(),
1351
1320
  })
@@ -1355,7 +1324,7 @@ export const unmarshalEnforcePolicyComplianceForJob_ResponseSchema = z
1355
1324
  settings: d.settings,
1356
1325
  }));
1357
1326
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1358
- export const unmarshalEnforcePolicyComplianceForJob_Response_JobClusterSettingsChangeSchema = z
1327
+ export const unmarshalEnforcePolicyComplianceResponse_JobClusterSettingsChangeSchema = z
1359
1328
  .object({
1360
1329
  field: z.string().optional(),
1361
1330
  previous_value: z.string().optional(),
@@ -1381,8 +1350,7 @@ export const unmarshalEnvironmentSchema = z
1381
1350
  environmentVersion: d.environment_version,
1382
1351
  javaDependencies: d.java_dependencies,
1383
1352
  }));
1384
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1385
- export const unmarshalExportRunRequest_ResponseSchema = z
1353
+ export const unmarshalExportRunResponseSchema = z
1386
1354
  .object({
1387
1355
  views: z.array(z.lazy(() => unmarshalViewItemSchema)).optional(),
1388
1356
  })
@@ -1423,11 +1391,11 @@ export const unmarshalGcpAttributesSchema = z
1423
1391
  use_preemptible_executors: z.boolean().optional(),
1424
1392
  google_service_account: z.string().optional(),
1425
1393
  boot_disk_size: z.number().optional(),
1426
- availability: z.enum(GcpAvailability).optional(),
1394
+ availability: z.string().optional(),
1427
1395
  zone_id: z.string().optional(),
1428
1396
  local_ssd_count: z.number().optional(),
1429
1397
  first_on_demand: z.number().optional(),
1430
- confidential_compute_type: z.enum(ConfidentialComputeType).optional(),
1398
+ confidential_compute_type: z.string().optional(),
1431
1399
  })
1432
1400
  .transform(d => ({
1433
1401
  usePreemptibleExecutors: d.use_preemptible_executors,
@@ -1451,7 +1419,7 @@ export const unmarshalGenAiComputeTaskSchema = z
1451
1419
  dl_runtime_image: z.string().optional(),
1452
1420
  compute: z.lazy(() => unmarshalComputeConfigSchema).optional(),
1453
1421
  command: z.string().optional(),
1454
- source: z.enum(Source).optional(),
1422
+ source: z.string().optional(),
1455
1423
  training_script_path: z.string().optional(),
1456
1424
  yaml_parameters_file_path: z.string().optional(),
1457
1425
  yaml_parameters: z.string().optional(),
@@ -1467,8 +1435,7 @@ export const unmarshalGenAiComputeTaskSchema = z
1467
1435
  yamlParameters: d.yaml_parameters,
1468
1436
  mlflowExperimentName: d.mlflow_experiment_name,
1469
1437
  }));
1470
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1471
- export const unmarshalGetJobRequest_ResponseSchema = z
1438
+ export const unmarshalGetJobResponseSchema = z
1472
1439
  .object({
1473
1440
  next_page_token: z.string().optional(),
1474
1441
  job_id: z
@@ -1499,8 +1466,7 @@ export const unmarshalGetJobRequest_ResponseSchema = z
1499
1466
  effectiveBudgetPolicyId: d.effective_budget_policy_id,
1500
1467
  effectiveUsagePolicyId: d.effective_usage_policy_id,
1501
1468
  }));
1502
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1503
- export const unmarshalGetPolicyComplianceForJob_ResponseSchema = z
1469
+ export const unmarshalGetPolicyComplianceForJobResponseSchema = z
1504
1470
  .object({
1505
1471
  is_compliant: z.boolean().optional(),
1506
1472
  violations: z.record(z.string(), z.string()).optional(),
@@ -1509,8 +1475,7 @@ export const unmarshalGetPolicyComplianceForJob_ResponseSchema = z
1509
1475
  isCompliant: d.is_compliant,
1510
1476
  violations: d.violations,
1511
1477
  }));
1512
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1513
- export const unmarshalGetRunOutputRequest_ResponseSchema = z
1478
+ export const unmarshalGetRunOutputResponseSchema = z
1514
1479
  .object({
1515
1480
  metadata: z.lazy(() => unmarshalRunSchema).optional(),
1516
1481
  error: z.string().optional(),
@@ -1588,8 +1553,7 @@ export const unmarshalGetRunOutputRequest_ResponseSchema = z
1588
1553
  logsTruncated: d.logs_truncated,
1589
1554
  errorTrace: d.error_trace,
1590
1555
  }));
1591
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1592
- export const unmarshalGetRunRequest_ResponseSchema = z
1556
+ export const unmarshalGetRunResponseSchema = z
1593
1557
  .object({
1594
1558
  next_page_token: z.string().optional(),
1595
1559
  job_id: z
@@ -1619,11 +1583,11 @@ export const unmarshalGetRunRequest_ResponseSchema = z
1619
1583
  overriding_parameters: z
1620
1584
  .lazy(() => unmarshalRunParametersSchema)
1621
1585
  .optional(),
1622
- trigger: z.enum(TriggerType).optional(),
1586
+ trigger: z.string().optional(),
1623
1587
  trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
1624
1588
  run_name: z.string().optional(),
1625
1589
  run_page_url: z.string().optional(),
1626
- run_type: z.enum(RunType).optional(),
1590
+ run_type: z.string().optional(),
1627
1591
  tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
1628
1592
  description: z.string().optional(),
1629
1593
  attempt_number: z.number().optional(),
@@ -1636,9 +1600,7 @@ export const unmarshalGetRunRequest_ResponseSchema = z
1636
1600
  .transform(v => BigInt(v))
1637
1601
  .optional(),
1638
1602
  has_more: z.boolean().optional(),
1639
- effective_performance_target: z
1640
- .enum(PerformanceTarget_PerformanceTarget)
1641
- .optional(),
1603
+ effective_performance_target: z.string().optional(),
1642
1604
  effective_usage_policy_id: z.string().optional(),
1643
1605
  start_time: z
1644
1606
  .union([z.number(), z.bigint()])
@@ -1776,7 +1738,7 @@ export const unmarshalJobClusterSchema = z
1776
1738
  }));
1777
1739
  export const unmarshalJobDeploymentSchema = z
1778
1740
  .object({
1779
- kind: z.enum(JobDeployment_DeploymentKind).optional(),
1741
+ kind: z.string().optional(),
1780
1742
  metadata_file_path: z.string().optional(),
1781
1743
  deployment_id: z.string().optional(),
1782
1744
  version_id: z.string().optional(),
@@ -1863,20 +1825,20 @@ export const unmarshalJobSettingsSchema = z
1863
1825
  job_clusters: z.array(z.lazy(() => unmarshalJobClusterSchema)).optional(),
1864
1826
  git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
1865
1827
  tags: z.record(z.string(), z.string()).optional(),
1866
- format: z.enum(Format).optional(),
1828
+ format: z.string().optional(),
1867
1829
  queue: z.lazy(() => unmarshalQueueSettingsSchema).optional(),
1868
1830
  parameters: z
1869
1831
  .array(z.lazy(() => unmarshalJobLevelParameterSchema))
1870
1832
  .optional(),
1871
1833
  run_as: z.lazy(() => unmarshalJobRunAsSchema).optional(),
1872
- edit_mode: z.enum(JobEditMode).optional(),
1834
+ edit_mode: z.string().optional(),
1873
1835
  deployment: z.lazy(() => unmarshalJobDeploymentSchema).optional(),
1874
1836
  environments: z
1875
1837
  .array(z.lazy(() => unmarshalJobEnvironmentSchema))
1876
1838
  .optional(),
1877
1839
  budget_policy_id: z.string().optional(),
1878
1840
  usage_policy_id: z.string().optional(),
1879
- performance_target: z.enum(PerformanceTarget_PerformanceTarget).optional(),
1841
+ performance_target: z.string().optional(),
1880
1842
  max_retries: z.number().optional(),
1881
1843
  min_retry_interval_millis: z.number().optional(),
1882
1844
  retry_on_timeout: z.boolean().optional(),
@@ -1917,7 +1879,7 @@ export const unmarshalJobSourceSchema = z
1917
1879
  .object({
1918
1880
  job_config_path: z.string().optional(),
1919
1881
  import_from_git_branch: z.string().optional(),
1920
- dirty_state: z.enum(JobSource_DirtyState).optional(),
1882
+ dirty_state: z.string().optional(),
1921
1883
  })
1922
1884
  .transform(d => ({
1923
1885
  jobConfigPath: d.job_config_path,
@@ -1931,8 +1893,8 @@ export const unmarshalJobSourceSchema = z
1931
1893
  }));
1932
1894
  export const unmarshalJobsHealthRuleSchema = z
1933
1895
  .object({
1934
- metric: z.enum(JobsHealthMetric).optional(),
1935
- op: z.enum(JobsHealthOperator).optional(),
1896
+ metric: z.string().optional(),
1897
+ op: z.string().optional(),
1936
1898
  value: z
1937
1899
  .union([z.number(), z.bigint()])
1938
1900
  .transform(v => BigInt(v))
@@ -1995,8 +1957,7 @@ export const unmarshalListJobComplianceForPolicy_JobComplianceSchema = z
1995
1957
  isCompliant: d.is_compliant,
1996
1958
  violations: d.violations,
1997
1959
  }));
1998
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1999
- export const unmarshalListJobComplianceForPolicy_ResponseSchema = z
1960
+ export const unmarshalListJobComplianceResponseSchema = z
2000
1961
  .object({
2001
1962
  jobs: z
2002
1963
  .array(z.lazy(() => unmarshalListJobComplianceForPolicy_JobComplianceSchema))
@@ -2009,8 +1970,7 @@ export const unmarshalListJobComplianceForPolicy_ResponseSchema = z
2009
1970
  nextPageToken: d.next_page_token,
2010
1971
  prevPageToken: d.prev_page_token,
2011
1972
  }));
2012
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2013
- export const unmarshalListJobsRequest_ResponseSchema = z
1973
+ export const unmarshalListJobsResponseSchema = z
2014
1974
  .object({
2015
1975
  jobs: z.array(z.lazy(() => unmarshalBaseJobSchema)).optional(),
2016
1976
  has_more: z.boolean().optional(),
@@ -2023,8 +1983,7 @@ export const unmarshalListJobsRequest_ResponseSchema = z
2023
1983
  nextPageToken: d.next_page_token,
2024
1984
  prevPageToken: d.prev_page_token,
2025
1985
  }));
2026
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2027
- export const unmarshalListRunsRequest_ResponseSchema = z
1986
+ export const unmarshalListRunsResponseSchema = z
2028
1987
  .object({
2029
1988
  runs: z.array(z.lazy(() => unmarshalBaseRunSchema)).optional(),
2030
1989
  has_more: z.boolean().optional(),
@@ -2068,9 +2027,7 @@ export const unmarshalModelTriggerConfigurationSchema = z
2068
2027
  .object({
2069
2028
  securable_name: z.string().optional(),
2070
2029
  aliases: z.array(z.string()).optional(),
2071
- condition: z
2072
- .enum(ModelTriggerConfiguration_ModelTriggerCondition)
2073
- .optional(),
2030
+ condition: z.string().optional(),
2074
2031
  min_time_between_triggers_seconds: z.number().optional(),
2075
2032
  wait_after_last_change_seconds: z.number().optional(),
2076
2033
  })
@@ -2092,7 +2049,7 @@ export const unmarshalNotebookTaskSchema = z
2092
2049
  .object({
2093
2050
  notebook_path: z.string().optional(),
2094
2051
  base_parameters: z.record(z.string(), z.string()).optional(),
2095
- source: z.enum(Source).optional(),
2052
+ source: z.string().optional(),
2096
2053
  warehouse_id: z.string().optional(),
2097
2054
  })
2098
2055
  .transform(d => ({
@@ -2139,7 +2096,7 @@ export const unmarshalOutputSchemaInfoSchema = z
2139
2096
  export const unmarshalPeriodicTriggerConfigurationSchema = z
2140
2097
  .object({
2141
2098
  interval: z.number().optional(),
2142
- unit: z.enum(PeriodicTriggerConfiguration_TimeUnit).optional(),
2099
+ unit: z.string().optional(),
2143
2100
  })
2144
2101
  .transform(d => ({
2145
2102
  interval: d.interval,
@@ -2183,8 +2140,8 @@ export const unmarshalPowerBiModelSchema = z
2183
2140
  .object({
2184
2141
  workspace_name: z.string().optional(),
2185
2142
  model_name: z.string().optional(),
2186
- storage_mode: z.enum(StorageMode).optional(),
2187
- authentication_method: z.enum(AuthenticationMethod).optional(),
2143
+ storage_mode: z.string().optional(),
2144
+ authentication_method: z.string().optional(),
2188
2145
  overwrite_existing: z.boolean().optional(),
2189
2146
  })
2190
2147
  .transform(d => ({
@@ -2199,7 +2156,7 @@ export const unmarshalPowerBiTableSchema = z
2199
2156
  name: z.string().optional(),
2200
2157
  catalog: z.string().optional(),
2201
2158
  schema: z.string().optional(),
2202
- storage_mode: z.enum(StorageMode).optional(),
2159
+ storage_mode: z.string().optional(),
2203
2160
  })
2204
2161
  .transform(d => ({
2205
2162
  name: d.name,
@@ -2267,7 +2224,7 @@ export const unmarshalPythonWheelTaskSchema = z
2267
2224
  }));
2268
2225
  export const unmarshalQueueDetailsSchema = z
2269
2226
  .object({
2270
- code: z.enum(QueueDetailsCode_Code).optional(),
2227
+ code: z.string().optional(),
2271
2228
  message: z.string().optional(),
2272
2229
  })
2273
2230
  .transform(d => ({
@@ -2292,7 +2249,7 @@ export const unmarshalRCranLibrarySchema = z
2292
2249
  }));
2293
2250
  export const unmarshalRepairSchema = z
2294
2251
  .object({
2295
- type: z.enum(RepairType).optional(),
2252
+ type: z.string().optional(),
2296
2253
  start_time: z
2297
2254
  .union([z.number(), z.bigint()])
2298
2255
  .transform(v => BigInt(v))
@@ -2310,9 +2267,7 @@ export const unmarshalRepairSchema = z
2310
2267
  .array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
2311
2268
  .optional(),
2312
2269
  status: z.lazy(() => unmarshalRunStatusSchema).optional(),
2313
- effective_performance_target: z
2314
- .enum(PerformanceTarget_PerformanceTarget)
2315
- .optional(),
2270
+ effective_performance_target: z.string().optional(),
2316
2271
  })
2317
2272
  .transform(d => ({
2318
2273
  type: d.type,
@@ -2324,8 +2279,7 @@ export const unmarshalRepairSchema = z
2324
2279
  status: d.status,
2325
2280
  effectivePerformanceTarget: d.effective_performance_target,
2326
2281
  }));
2327
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2328
- export const unmarshalRepairRunRequest_ResponseSchema = z
2282
+ export const unmarshalRepairRunResponseSchema = z
2329
2283
  .object({
2330
2284
  repair_id: z
2331
2285
  .union([z.number(), z.bigint()])
@@ -2335,8 +2289,7 @@ export const unmarshalRepairRunRequest_ResponseSchema = z
2335
2289
  .transform(d => ({
2336
2290
  repairId: d.repair_id,
2337
2291
  }));
2338
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2339
- export const unmarshalResetJobRequest_ResponseSchema = z.object({});
2292
+ export const unmarshalResetJobResponseSchema = z.object({});
2340
2293
  export const unmarshalResolvedValuesSchema = z
2341
2294
  .object({
2342
2295
  notebook_task: z
@@ -2530,11 +2483,11 @@ export const unmarshalRunSchema = z
2530
2483
  overriding_parameters: z
2531
2484
  .lazy(() => unmarshalRunParametersSchema)
2532
2485
  .optional(),
2533
- trigger: z.enum(TriggerType).optional(),
2486
+ trigger: z.string().optional(),
2534
2487
  trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
2535
2488
  run_name: z.string().optional(),
2536
2489
  run_page_url: z.string().optional(),
2537
- run_type: z.enum(RunType).optional(),
2490
+ run_type: z.string().optional(),
2538
2491
  tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
2539
2492
  description: z.string().optional(),
2540
2493
  attempt_number: z.number().optional(),
@@ -2547,9 +2500,7 @@ export const unmarshalRunSchema = z
2547
2500
  .transform(v => BigInt(v))
2548
2501
  .optional(),
2549
2502
  has_more: z.boolean().optional(),
2550
- effective_performance_target: z
2551
- .enum(PerformanceTarget_PerformanceTarget)
2552
- .optional(),
2503
+ effective_performance_target: z.string().optional(),
2553
2504
  effective_usage_policy_id: z.string().optional(),
2554
2505
  start_time: z
2555
2506
  .union([z.number(), z.bigint()])
@@ -2667,8 +2618,7 @@ export const unmarshalRunJobTask_RunJobTaskOutputSchema = z
2667
2618
  .transform(d => ({
2668
2619
  runId: d.run_id,
2669
2620
  }));
2670
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2671
- export const unmarshalRunNowRequest_ResponseSchema = z
2621
+ export const unmarshalRunNowResponseSchema = z
2672
2622
  .object({
2673
2623
  run_id: z
2674
2624
  .union([z.number(), z.bigint()])
@@ -2706,8 +2656,8 @@ export const unmarshalRunParametersSchema = z
2706
2656
  }));
2707
2657
  export const unmarshalRunStateSchema = z
2708
2658
  .object({
2709
- life_cycle_state: z.enum(RunLifeCycleState_RunLifeCycleState).optional(),
2710
- result_state: z.enum(RunResultState_RunResultState).optional(),
2659
+ life_cycle_state: z.string().optional(),
2660
+ result_state: z.string().optional(),
2711
2661
  state_message: z.string().optional(),
2712
2662
  user_cancelled_or_timedout: z.boolean().optional(),
2713
2663
  queue_reason: z.string().optional(),
@@ -2721,7 +2671,7 @@ export const unmarshalRunStateSchema = z
2721
2671
  }));
2722
2672
  export const unmarshalRunStatusSchema = z
2723
2673
  .object({
2724
- state: z.enum(RunLifecycleStateV2_State).optional(),
2674
+ state: z.string().optional(),
2725
2675
  termination_details: z
2726
2676
  .lazy(() => unmarshalTerminationDetailsSchema)
2727
2677
  .optional(),
@@ -2745,13 +2695,11 @@ export const unmarshalRunTaskSchema = z
2745
2695
  git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
2746
2696
  resolved_values: z.lazy(() => unmarshalResolvedValuesSchema).optional(),
2747
2697
  status: z.lazy(() => unmarshalRunStatusSchema).optional(),
2748
- effective_performance_target: z
2749
- .enum(PerformanceTarget_PerformanceTarget)
2750
- .optional(),
2698
+ effective_performance_target: z.string().optional(),
2751
2699
  task_key: z.string().optional(),
2752
2700
  description: z.string().optional(),
2753
2701
  depends_on: z.array(z.lazy(() => unmarshalTaskDependencySchema)).optional(),
2754
- run_if: z.enum(TaskDependencyType).optional(),
2702
+ run_if: z.string().optional(),
2755
2703
  timeout_seconds: z.number().optional(),
2756
2704
  email_notifications: z
2757
2705
  .lazy(() => unmarshalJobEmailNotificationsSchema)
@@ -3008,7 +2956,7 @@ export const unmarshalSparkPythonTaskSchema = z
3008
2956
  .object({
3009
2957
  python_file: z.string().optional(),
3010
2958
  parameters: z.array(z.string()).optional(),
3011
- source: z.enum(Source).optional(),
2959
+ source: z.string().optional(),
3012
2960
  })
3013
2961
  .transform(d => ({
3014
2962
  pythonFile: d.python_file,
@@ -3060,7 +3008,7 @@ export const unmarshalSqlTask_SqlAlertOutputSchema = z
3060
3008
  .optional(),
3061
3009
  output_link: z.string().optional(),
3062
3010
  warehouse_id: z.string().optional(),
3063
- alert_state: z.enum(SqlAlertState_SqlAlertState).optional(),
3011
+ alert_state: z.string().optional(),
3064
3012
  })
3065
3013
  .transform(d => ({
3066
3014
  queryText: d.query_text,
@@ -3087,7 +3035,7 @@ export const unmarshalSqlTask_SqlDashboardWidgetOutputSchema = z
3087
3035
  widget_id: z.string().optional(),
3088
3036
  widget_title: z.string().optional(),
3089
3037
  output_link: z.string().optional(),
3090
- status: z.enum(SqlTask_SqlTaskQueryStatus).optional(),
3038
+ status: z.string().optional(),
3091
3039
  error: z.lazy(() => unmarshalSqlTask_SqlOutputErrorSchema).optional(),
3092
3040
  start_time: z
3093
3041
  .union([z.number(), z.bigint()])
@@ -3197,7 +3145,7 @@ export const unmarshalSqlTaskDashboardSchema = z
3197
3145
  export const unmarshalSqlTaskFileSchema = z
3198
3146
  .object({
3199
3147
  path: z.string().optional(),
3200
- source: z.enum(Source).optional(),
3148
+ source: z.string().optional(),
3201
3149
  })
3202
3150
  .transform(d => ({
3203
3151
  path: d.path,
@@ -3224,8 +3172,7 @@ export const unmarshalSqlTaskSubscriptionSchema = z
3224
3172
  ? { $case: 'destinationId', destinationId: d.destination_id }
3225
3173
  : undefined,
3226
3174
  }));
3227
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
3228
- export const unmarshalSubmitRunRequest_ResponseSchema = z
3175
+ export const unmarshalSubmitRunResponseSchema = z
3229
3176
  .object({
3230
3177
  run_id: z
3231
3178
  .union([z.number(), z.bigint()])
@@ -3275,7 +3222,7 @@ export const unmarshalTableTriggerConfigurationSchema = z
3275
3222
  table_names: z.array(z.string()).optional(),
3276
3223
  min_time_between_triggers_seconds: z.number().optional(),
3277
3224
  wait_after_last_change_seconds: z.number().optional(),
3278
- condition: z.enum(TableTriggerConfiguration_Condition).optional(),
3225
+ condition: z.string().optional(),
3279
3226
  })
3280
3227
  .transform(d => ({
3281
3228
  tableNames: d.table_names,
@@ -3307,7 +3254,7 @@ export const unmarshalTaskSettingsSchema = z
3307
3254
  .object({
3308
3255
  task_key: z.string().optional(),
3309
3256
  depends_on: z.array(z.lazy(() => unmarshalTaskDependencySchema)).optional(),
3310
- run_if: z.enum(TaskDependencyType).optional(),
3257
+ run_if: z.string().optional(),
3311
3258
  timeout_seconds: z.number().optional(),
3312
3259
  health: z.lazy(() => unmarshalJobsHealthRulesSchema).optional(),
3313
3260
  email_notifications: z
@@ -3477,8 +3424,8 @@ export const unmarshalTaskSettingsSchema = z
3477
3424
  }));
3478
3425
  export const unmarshalTerminationDetailsSchema = z
3479
3426
  .object({
3480
- code: z.enum(TerminationCode_Code).optional(),
3481
- type: z.enum(TerminationType_Type).optional(),
3427
+ code: z.string().optional(),
3428
+ type: z.string().optional(),
3482
3429
  message: z.string().optional(),
3483
3430
  })
3484
3431
  .transform(d => ({
@@ -3488,7 +3435,7 @@ export const unmarshalTerminationDetailsSchema = z
3488
3435
  }));
3489
3436
  export const unmarshalTriggerSettingsSchema = z
3490
3437
  .object({
3491
- pause_status: z.enum(SchedulePauseStatus).optional(),
3438
+ pause_status: z.string().optional(),
3492
3439
  file_arrival: z
3493
3440
  .lazy(() => unmarshalFileArrivalTriggerConfigurationSchema)
3494
3441
  .optional(),
@@ -3526,13 +3473,12 @@ export const unmarshalTriggerStateSchema = z
3526
3473
  ? { $case: 'fileArrival', fileArrival: d.file_arrival }
3527
3474
  : undefined,
3528
3475
  }));
3529
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
3530
- export const unmarshalUpdateJobRequest_ResponseSchema = z.object({});
3476
+ export const unmarshalUpdateJobResponseSchema = z.object({});
3531
3477
  export const unmarshalViewItemSchema = z
3532
3478
  .object({
3533
3479
  content: z.string().optional(),
3534
3480
  name: z.string().optional(),
3535
- type: z.enum(ViewType).optional(),
3481
+ type: z.string().optional(),
3536
3482
  })
3537
3483
  .transform(d => ({
3538
3484
  content: d.content,
@@ -3615,7 +3561,7 @@ export const marshalAccessControlRequestSchema = z
3615
3561
  }),
3616
3562
  ])
3617
3563
  .optional(),
3618
- permissionLevel: z.enum(AccessControlRequest_JobPermission).optional(),
3564
+ permissionLevel: z.string().optional(),
3619
3565
  })
3620
3566
  .transform(d => ({
3621
3567
  ...(d.principalName?.$case === 'userName' && {
@@ -3683,11 +3629,11 @@ export const marshalAutoScaleSchema = z
3683
3629
  export const marshalAwsAttributesSchema = z
3684
3630
  .object({
3685
3631
  firstOnDemand: z.number().optional(),
3686
- availability: z.enum(AwsAvailability).optional(),
3632
+ availability: z.string().optional(),
3687
3633
  zoneId: z.string().optional(),
3688
3634
  instanceProfileArn: z.string().optional(),
3689
3635
  spotBidPricePercent: z.number().optional(),
3690
- ebsVolumeType: z.enum(EbsVolumeType).optional(),
3636
+ ebsVolumeType: z.string().optional(),
3691
3637
  ebsVolumeCount: z.number().optional(),
3692
3638
  ebsVolumeSize: z.number().optional(),
3693
3639
  ebsVolumeIops: z.number().optional(),
@@ -3709,7 +3655,7 @@ export const marshalAzureAttributesSchema = z
3709
3655
  .object({
3710
3656
  logAnalyticsInfo: z.lazy(() => marshalLogAnalyticsInfoSchema).optional(),
3711
3657
  firstOnDemand: z.number().optional(),
3712
- availability: z.enum(AzureAvailability).optional(),
3658
+ availability: z.string().optional(),
3713
3659
  spotBidMaxPrice: z.number().optional(),
3714
3660
  })
3715
3661
  .transform(d => ({
@@ -3803,9 +3749,9 @@ export const marshalClusterSpec_NewClusterSchema = z
3803
3749
  enableLocalDiskEncryption: z.boolean().optional(),
3804
3750
  driverInstancePoolId: z.string().optional(),
3805
3751
  workloadType: z.lazy(() => marshalWorkloadTypeSchema).optional(),
3806
- dataSecurityMode: z.enum(DataSecurityMode).optional(),
3807
- runtimeEngine: z.enum(RuntimeEngine).optional(),
3808
- kind: z.enum(ComputeKind).optional(),
3752
+ dataSecurityMode: z.string().optional(),
3753
+ runtimeEngine: z.string().optional(),
3754
+ kind: z.string().optional(),
3809
3755
  useMlRuntime: z.boolean().optional(),
3810
3756
  isSingleNode: z.boolean().optional(),
3811
3757
  remoteDiskThroughput: z.number().optional(),
@@ -3858,7 +3804,7 @@ export const marshalClusterSpec_NewClusterSchema = z
3858
3804
  }));
3859
3805
  export const marshalComputeSchema = z
3860
3806
  .object({
3861
- hardwareAccelerator: z.enum(HardwareAcceleratorType).optional(),
3807
+ hardwareAccelerator: z.string().optional(),
3862
3808
  })
3863
3809
  .transform(d => ({
3864
3810
  hardware_accelerator: d.hardwareAccelerator,
@@ -3876,7 +3822,7 @@ export const marshalComputeConfigSchema = z
3876
3822
  }));
3877
3823
  export const marshalConditionTaskSchema = z
3878
3824
  .object({
3879
- op: z.enum(ConditionTask_ConditionTaskOperator).optional(),
3825
+ op: z.string().optional(),
3880
3826
  left: z.string().optional(),
3881
3827
  right: z.string().optional(),
3882
3828
  outcome: z.string().optional(),
@@ -3889,8 +3835,8 @@ export const marshalConditionTaskSchema = z
3889
3835
  }));
3890
3836
  export const marshalContinuousSettingsSchema = z
3891
3837
  .object({
3892
- pauseStatus: z.enum(SchedulePauseStatus).optional(),
3893
- taskRetryMode: z.enum(TaskRetryMode).optional(),
3838
+ pauseStatus: z.string().optional(),
3839
+ taskRetryMode: z.string().optional(),
3894
3840
  })
3895
3841
  .transform(d => ({
3896
3842
  pause_status: d.pauseStatus,
@@ -3922,18 +3868,18 @@ export const marshalCreateJobRequestSchema = z
3922
3868
  jobClusters: z.array(z.lazy(() => marshalJobClusterSchema)).optional(),
3923
3869
  gitSource: z.lazy(() => marshalGitSourceSchema).optional(),
3924
3870
  tags: z.record(z.string(), z.string()).optional(),
3925
- format: z.enum(Format).optional(),
3871
+ format: z.string().optional(),
3926
3872
  queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
3927
3873
  parameters: z
3928
3874
  .array(z.lazy(() => marshalJobLevelParameterSchema))
3929
3875
  .optional(),
3930
3876
  runAs: z.lazy(() => marshalJobRunAsSchema).optional(),
3931
- editMode: z.enum(JobEditMode).optional(),
3877
+ editMode: z.string().optional(),
3932
3878
  deployment: z.lazy(() => marshalJobDeploymentSchema).optional(),
3933
3879
  environments: z.array(z.lazy(() => marshalJobEnvironmentSchema)).optional(),
3934
3880
  budgetPolicyId: z.string().optional(),
3935
3881
  usagePolicyId: z.string().optional(),
3936
- performanceTarget: z.enum(PerformanceTarget_PerformanceTarget).optional(),
3882
+ performanceTarget: z.string().optional(),
3937
3883
  maxRetries: z.number().optional(),
3938
3884
  minRetryIntervalMillis: z.number().optional(),
3939
3885
  retryOnTimeout: z.boolean().optional(),
@@ -3975,7 +3921,7 @@ export const marshalCronScheduleSchema = z
3975
3921
  .object({
3976
3922
  quartzCronExpression: z.string().optional(),
3977
3923
  timezoneId: z.string().optional(),
3978
- pauseStatus: z.enum(SchedulePauseStatus).optional(),
3924
+ pauseStatus: z.string().optional(),
3979
3925
  })
3980
3926
  .transform(d => ({
3981
3927
  quartz_cron_expression: d.quartzCronExpression,
@@ -4028,7 +3974,7 @@ export const marshalDbtTaskSchema = z
4028
3974
  warehouseId: z.string().optional(),
4029
3975
  profilesDirectory: z.string().optional(),
4030
3976
  catalog: z.string().optional(),
4031
- source: z.enum(Source).optional(),
3977
+ source: z.string().optional(),
4032
3978
  })
4033
3979
  .transform(d => ({
4034
3980
  project_directory: d.projectDirectory,
@@ -4131,11 +4077,11 @@ export const marshalGcpAttributesSchema = z
4131
4077
  usePreemptibleExecutors: z.boolean().optional(),
4132
4078
  googleServiceAccount: z.string().optional(),
4133
4079
  bootDiskSize: z.number().optional(),
4134
- availability: z.enum(GcpAvailability).optional(),
4080
+ availability: z.string().optional(),
4135
4081
  zoneId: z.string().optional(),
4136
4082
  localSsdCount: z.number().optional(),
4137
4083
  firstOnDemand: z.number().optional(),
4138
- confidentialComputeType: z.enum(ConfidentialComputeType).optional(),
4084
+ confidentialComputeType: z.string().optional(),
4139
4085
  })
4140
4086
  .transform(d => ({
4141
4087
  use_preemptible_executors: d.usePreemptibleExecutors,
@@ -4159,7 +4105,7 @@ export const marshalGenAiComputeTaskSchema = z
4159
4105
  dlRuntimeImage: z.string().optional(),
4160
4106
  compute: z.lazy(() => marshalComputeConfigSchema).optional(),
4161
4107
  command: z.string().optional(),
4162
- source: z.enum(Source).optional(),
4108
+ source: z.string().optional(),
4163
4109
  trainingScriptPath: z.string().optional(),
4164
4110
  yamlParametersFilePath: z.string().optional(),
4165
4111
  yamlParameters: z.string().optional(),
@@ -4268,7 +4214,7 @@ export const marshalJobClusterSchema = z
4268
4214
  }));
4269
4215
  export const marshalJobDeploymentSchema = z
4270
4216
  .object({
4271
- kind: z.enum(JobDeployment_DeploymentKind).optional(),
4217
+ kind: z.string().optional(),
4272
4218
  metadataFilePath: z.string().optional(),
4273
4219
  deploymentId: z.string().optional(),
4274
4220
  versionId: z.string().optional(),
@@ -4359,18 +4305,18 @@ export const marshalJobSettingsSchema = z
4359
4305
  jobClusters: z.array(z.lazy(() => marshalJobClusterSchema)).optional(),
4360
4306
  gitSource: z.lazy(() => marshalGitSourceSchema).optional(),
4361
4307
  tags: z.record(z.string(), z.string()).optional(),
4362
- format: z.enum(Format).optional(),
4308
+ format: z.string().optional(),
4363
4309
  queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
4364
4310
  parameters: z
4365
4311
  .array(z.lazy(() => marshalJobLevelParameterSchema))
4366
4312
  .optional(),
4367
4313
  runAs: z.lazy(() => marshalJobRunAsSchema).optional(),
4368
- editMode: z.enum(JobEditMode).optional(),
4314
+ editMode: z.string().optional(),
4369
4315
  deployment: z.lazy(() => marshalJobDeploymentSchema).optional(),
4370
4316
  environments: z.array(z.lazy(() => marshalJobEnvironmentSchema)).optional(),
4371
4317
  budgetPolicyId: z.string().optional(),
4372
4318
  usagePolicyId: z.string().optional(),
4373
- performanceTarget: z.enum(PerformanceTarget_PerformanceTarget).optional(),
4319
+ performanceTarget: z.string().optional(),
4374
4320
  maxRetries: z.number().optional(),
4375
4321
  minRetryIntervalMillis: z.number().optional(),
4376
4322
  retryOnTimeout: z.boolean().optional(),
@@ -4418,7 +4364,7 @@ export const marshalJobSourceSchema = z
4418
4364
  }),
4419
4365
  ])
4420
4366
  .optional(),
4421
- dirtyState: z.enum(JobSource_DirtyState).optional(),
4367
+ dirtyState: z.string().optional(),
4422
4368
  })
4423
4369
  .transform(d => ({
4424
4370
  job_config_path: d.jobConfigPath,
@@ -4429,8 +4375,8 @@ export const marshalJobSourceSchema = z
4429
4375
  }));
4430
4376
  export const marshalJobsHealthRuleSchema = z
4431
4377
  .object({
4432
- metric: z.enum(JobsHealthMetric).optional(),
4433
- op: z.enum(JobsHealthOperator).optional(),
4378
+ metric: z.string().optional(),
4379
+ op: z.string().optional(),
4434
4380
  value: z.bigint().optional(),
4435
4381
  })
4436
4382
  .transform(d => ({
@@ -4508,9 +4454,7 @@ export const marshalModelTriggerConfigurationSchema = z
4508
4454
  .object({
4509
4455
  securableName: z.string().optional(),
4510
4456
  aliases: z.array(z.string()).optional(),
4511
- condition: z
4512
- .enum(ModelTriggerConfiguration_ModelTriggerCondition)
4513
- .optional(),
4457
+ condition: z.string().optional(),
4514
4458
  minTimeBetweenTriggersSeconds: z.number().optional(),
4515
4459
  waitAfterLastChangeSeconds: z.number().optional(),
4516
4460
  })
@@ -4532,7 +4476,7 @@ export const marshalNotebookTaskSchema = z
4532
4476
  .object({
4533
4477
  notebookPath: z.string().optional(),
4534
4478
  baseParameters: z.record(z.string(), z.string()).optional(),
4535
- source: z.enum(Source).optional(),
4479
+ source: z.string().optional(),
4536
4480
  warehouseId: z.string().optional(),
4537
4481
  })
4538
4482
  .transform(d => ({
@@ -4555,7 +4499,7 @@ export const marshalNotificationSettingsSchema = z
4555
4499
  export const marshalPeriodicTriggerConfigurationSchema = z
4556
4500
  .object({
4557
4501
  interval: z.number().optional(),
4558
- unit: z.enum(PeriodicTriggerConfiguration_TimeUnit).optional(),
4502
+ unit: z.string().optional(),
4559
4503
  })
4560
4504
  .transform(d => ({
4561
4505
  interval: d.interval,
@@ -4599,8 +4543,8 @@ export const marshalPowerBiModelSchema = z
4599
4543
  .object({
4600
4544
  workspaceName: z.string().optional(),
4601
4545
  modelName: z.string().optional(),
4602
- storageMode: z.enum(StorageMode).optional(),
4603
- authenticationMethod: z.enum(AuthenticationMethod).optional(),
4546
+ storageMode: z.string().optional(),
4547
+ authenticationMethod: z.string().optional(),
4604
4548
  overwriteExisting: z.boolean().optional(),
4605
4549
  })
4606
4550
  .transform(d => ({
@@ -4615,7 +4559,7 @@ export const marshalPowerBiTableSchema = z
4615
4559
  name: z.string().optional(),
4616
4560
  catalog: z.string().optional(),
4617
4561
  schema: z.string().optional(),
4618
- storageMode: z.enum(StorageMode).optional(),
4562
+ storageMode: z.string().optional(),
4619
4563
  })
4620
4564
  .transform(d => ({
4621
4565
  name: d.name,
@@ -4705,7 +4649,7 @@ export const marshalRepairRunRequestSchema = z
4705
4649
  jobParameters: z.record(z.string(), z.string()).optional(),
4706
4650
  rerunAllFailedTasks: z.boolean().optional(),
4707
4651
  rerunDependentTasks: z.boolean().optional(),
4708
- performanceTarget: z.enum(PerformanceTarget_PerformanceTarget).optional(),
4652
+ performanceTarget: z.string().optional(),
4709
4653
  pipelineParams: z.lazy(() => marshalPipelineParametersSchema).optional(),
4710
4654
  jarParams: z.array(z.string()).optional(),
4711
4655
  notebookParams: z.record(z.string(), z.string()).optional(),
@@ -4773,7 +4717,7 @@ export const marshalRunNowRequestSchema = z
4773
4717
  idempotencyToken: z.string().optional(),
4774
4718
  queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
4775
4719
  only: z.array(z.string()).optional(),
4776
- performanceTarget: z.enum(PerformanceTarget_PerformanceTarget).optional(),
4720
+ performanceTarget: z.string().optional(),
4777
4721
  pipelineParams: z.lazy(() => marshalPipelineParametersSchema).optional(),
4778
4722
  jarParams: z.array(z.string()).optional(),
4779
4723
  notebookParams: z.record(z.string(), z.string()).optional(),
@@ -4804,7 +4748,7 @@ export const marshalRunTaskSettingsSchema = z
4804
4748
  taskKey: z.string().optional(),
4805
4749
  description: z.string().optional(),
4806
4750
  dependsOn: z.array(z.lazy(() => marshalTaskDependencySchema)).optional(),
4807
- runIf: z.enum(TaskDependencyType).optional(),
4751
+ runIf: z.string().optional(),
4808
4752
  timeoutSeconds: z.number().optional(),
4809
4753
  emailNotifications: z
4810
4754
  .lazy(() => marshalJobEmailNotificationsSchema)
@@ -5037,7 +4981,7 @@ export const marshalSparkPythonTaskSchema = z
5037
4981
  .object({
5038
4982
  pythonFile: z.string().optional(),
5039
4983
  parameters: z.array(z.string()).optional(),
5040
- source: z.enum(Source).optional(),
4984
+ source: z.string().optional(),
5041
4985
  })
5042
4986
  .transform(d => ({
5043
4987
  python_file: d.pythonFile,
@@ -5124,7 +5068,7 @@ export const marshalSqlTaskDashboardSchema = z
5124
5068
  export const marshalSqlTaskFileSchema = z
5125
5069
  .object({
5126
5070
  path: z.string().optional(),
5127
- source: z.enum(Source).optional(),
5071
+ source: z.string().optional(),
5128
5072
  })
5129
5073
  .transform(d => ({
5130
5074
  path: d.path,
@@ -5243,7 +5187,7 @@ export const marshalTableTriggerConfigurationSchema = z
5243
5187
  tableNames: z.array(z.string()).optional(),
5244
5188
  minTimeBetweenTriggersSeconds: z.number().optional(),
5245
5189
  waitAfterLastChangeSeconds: z.number().optional(),
5246
- condition: z.enum(TableTriggerConfiguration_Condition).optional(),
5190
+ condition: z.string().optional(),
5247
5191
  })
5248
5192
  .transform(d => ({
5249
5193
  table_names: d.tableNames,
@@ -5264,7 +5208,7 @@ export const marshalTaskSettingsSchema = z
5264
5208
  .object({
5265
5209
  taskKey: z.string().optional(),
5266
5210
  dependsOn: z.array(z.lazy(() => marshalTaskDependencySchema)).optional(),
5267
- runIf: z.enum(TaskDependencyType).optional(),
5211
+ runIf: z.string().optional(),
5268
5212
  timeoutSeconds: z.number().optional(),
5269
5213
  health: z.lazy(() => marshalJobsHealthRulesSchema).optional(),
5270
5214
  emailNotifications: z
@@ -5464,7 +5408,7 @@ export const marshalTaskSettingsSchema = z
5464
5408
  }));
5465
5409
  export const marshalTriggerSettingsSchema = z
5466
5410
  .object({
5467
- pauseStatus: z.enum(SchedulePauseStatus).optional(),
5411
+ pauseStatus: z.string().optional(),
5468
5412
  configuration: z
5469
5413
  .discriminatedUnion('$case', [
5470
5414
  z.object({