@databricks/sdk-jobs 0.6.0 → 0.7.0
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/index.d.ts +2 -2
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/index.js.map +1 -1
- package/dist/v2/model.d.ts +182 -0
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +143 -4
- package/dist/v2/model.js.map +1 -1
- package/package.json +4 -4
package/dist/v2/model.js
CHANGED
|
@@ -392,6 +392,20 @@ export const CleanRoomTaskRunResultState_CleanRoomTaskRunResultState = {
|
|
|
392
392
|
/** 12 is reserved for previously used SUCCESS_WITH_SKIPPED_CELLS */
|
|
393
393
|
DISABLED: 'DISABLED',
|
|
394
394
|
};
|
|
395
|
+
/**
|
|
396
|
+
* Customer-facing AcceleratorType: hardware accelerator type for the
|
|
397
|
+
* AiRuntime workload. Per-node accelerator count is encoded in the value
|
|
398
|
+
* name (e.g. `GPU_8xH100` means 8 H100s per node).
|
|
399
|
+
*/
|
|
400
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
401
|
+
export const ComputeSpec_AcceleratorType = {
|
|
402
|
+
/** Single A10 GPU per node. Good for development and small workloads. */
|
|
403
|
+
GPU_1X_A10: 'GPU_1xA10',
|
|
404
|
+
/** Single H100 GPU per node. */
|
|
405
|
+
GPU_1X_H100: 'GPU_1xH100',
|
|
406
|
+
/** Eight H100 GPUs per node. Typical for distributed training. */
|
|
407
|
+
GPU_8X_H100: 'GPU_8xH100',
|
|
408
|
+
};
|
|
395
409
|
/**
|
|
396
410
|
* * `EQUAL_TO`, `NOT_EQUAL` operators perform string comparison of their operands. This means that `“12.0” == “12”` will evaluate to `false`.
|
|
397
411
|
* * `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`.
|
|
@@ -679,6 +693,32 @@ export const unmarshalAdlsgen2InfoSchema = z
|
|
|
679
693
|
.transform(d => ({
|
|
680
694
|
destination: d.destination,
|
|
681
695
|
}));
|
|
696
|
+
export const unmarshalAiRuntimeTaskSchema = z
|
|
697
|
+
.object({
|
|
698
|
+
experiment: z.string().optional(),
|
|
699
|
+
deployments: z
|
|
700
|
+
.array(z.lazy(() => unmarshalDeploymentSpecSchema))
|
|
701
|
+
.optional(),
|
|
702
|
+
code_source_path: z.string().optional(),
|
|
703
|
+
mlflow_run: z.string().optional(),
|
|
704
|
+
mlflow_experiment_directory: z.string().optional(),
|
|
705
|
+
})
|
|
706
|
+
.transform(d => ({
|
|
707
|
+
experiment: d.experiment,
|
|
708
|
+
deployments: d.deployments,
|
|
709
|
+
codeSourcePath: d.code_source_path,
|
|
710
|
+
mlflowRun: d.mlflow_run,
|
|
711
|
+
mlflowExperimentDirectory: d.mlflow_experiment_directory,
|
|
712
|
+
}));
|
|
713
|
+
export const unmarshalAiRuntimeTaskOutputSchema = z
|
|
714
|
+
.object({
|
|
715
|
+
mlflow_experiment_id: z.string().optional(),
|
|
716
|
+
mlflow_run_id: z.string().optional(),
|
|
717
|
+
})
|
|
718
|
+
.transform(d => ({
|
|
719
|
+
mlflowExperimentId: d.mlflow_experiment_id,
|
|
720
|
+
mlflowRunId: d.mlflow_run_id,
|
|
721
|
+
}));
|
|
682
722
|
export const unmarshalAlertTaskSchema = z
|
|
683
723
|
.object({
|
|
684
724
|
alert_id: z.string().optional(),
|
|
@@ -1096,6 +1136,15 @@ export const unmarshalComputeConfigSchema = z
|
|
|
1096
1136
|
gpuNodePoolId: d.gpu_node_pool_id,
|
|
1097
1137
|
gpuType: d.gpu_type,
|
|
1098
1138
|
}));
|
|
1139
|
+
export const unmarshalComputeSpecSchema = z
|
|
1140
|
+
.object({
|
|
1141
|
+
accelerator_type: z.string().optional(),
|
|
1142
|
+
accelerator_count: z.number().optional(),
|
|
1143
|
+
})
|
|
1144
|
+
.transform(d => ({
|
|
1145
|
+
acceleratorType: d.accelerator_type,
|
|
1146
|
+
acceleratorCount: d.accelerator_count,
|
|
1147
|
+
}));
|
|
1099
1148
|
export const unmarshalConditionTaskSchema = z
|
|
1100
1149
|
.object({
|
|
1101
1150
|
op: z.string().optional(),
|
|
@@ -1292,6 +1341,17 @@ export const unmarshalDbtTask_DbtTaskOutputSchema = z
|
|
|
1292
1341
|
}));
|
|
1293
1342
|
export const unmarshalDeleteJobResponseSchema = z.object({});
|
|
1294
1343
|
export const unmarshalDeleteRunResponseSchema = z.object({});
|
|
1344
|
+
export const unmarshalDeploymentSpecSchema = z
|
|
1345
|
+
.object({
|
|
1346
|
+
command_path: z.string().optional(),
|
|
1347
|
+
compute: z.lazy(() => unmarshalComputeSpecSchema).optional(),
|
|
1348
|
+
name: z.string().optional(),
|
|
1349
|
+
})
|
|
1350
|
+
.transform(d => ({
|
|
1351
|
+
commandPath: d.command_path,
|
|
1352
|
+
compute: d.compute,
|
|
1353
|
+
name: d.name,
|
|
1354
|
+
}));
|
|
1295
1355
|
export const unmarshalDockerBasicAuthSchema = z
|
|
1296
1356
|
.object({
|
|
1297
1357
|
username: z.string().optional(),
|
|
@@ -1503,6 +1563,9 @@ export const unmarshalGetRunOutputResponseSchema = z
|
|
|
1503
1563
|
.lazy(() => unmarshalDbtPlatformTaskOutputSchema)
|
|
1504
1564
|
.optional(),
|
|
1505
1565
|
alert_output: z.lazy(() => unmarshalAlertTaskOutputSchema).optional(),
|
|
1566
|
+
ai_runtime_task_output: z
|
|
1567
|
+
.lazy(() => unmarshalAiRuntimeTaskOutputSchema)
|
|
1568
|
+
.optional(),
|
|
1506
1569
|
logs: z.string().optional(),
|
|
1507
1570
|
logs_truncated: z.boolean().optional(),
|
|
1508
1571
|
error_trace: z.string().optional(),
|
|
@@ -1550,7 +1613,12 @@ export const unmarshalGetRunOutputResponseSchema = z
|
|
|
1550
1613
|
$case: 'alertOutput',
|
|
1551
1614
|
alertOutput: d.alert_output,
|
|
1552
1615
|
}
|
|
1553
|
-
: undefined
|
|
1616
|
+
: d.ai_runtime_task_output !== undefined
|
|
1617
|
+
? {
|
|
1618
|
+
$case: 'aiRuntimeTaskOutput',
|
|
1619
|
+
aiRuntimeTaskOutput: d.ai_runtime_task_output,
|
|
1620
|
+
}
|
|
1621
|
+
: undefined,
|
|
1554
1622
|
logs: d.logs,
|
|
1555
1623
|
logsTruncated: d.logs_truncated,
|
|
1556
1624
|
errorTrace: d.error_trace,
|
|
@@ -2327,6 +2395,9 @@ export const unmarshalResolvedValuesSchema = z
|
|
|
2327
2395
|
pipeline_task: z
|
|
2328
2396
|
.lazy(() => unmarshalResolvedValues_PipelineTaskResolvedValuesSchema)
|
|
2329
2397
|
.optional(),
|
|
2398
|
+
ai_runtime_task: z
|
|
2399
|
+
.lazy(() => unmarshalResolvedValues_AiRuntimeTaskResolvedValuesSchema)
|
|
2400
|
+
.optional(),
|
|
2330
2401
|
})
|
|
2331
2402
|
.transform(d => ({
|
|
2332
2403
|
resolved: d.notebook_task !== undefined
|
|
@@ -2372,9 +2443,16 @@ export const unmarshalResolvedValuesSchema = z
|
|
|
2372
2443
|
$case: 'pipelineTask',
|
|
2373
2444
|
pipelineTask: d.pipeline_task,
|
|
2374
2445
|
}
|
|
2375
|
-
: undefined
|
|
2446
|
+
: d.ai_runtime_task !== undefined
|
|
2447
|
+
? {
|
|
2448
|
+
$case: 'aiRuntimeTask',
|
|
2449
|
+
aiRuntimeTask: d.ai_runtime_task,
|
|
2450
|
+
}
|
|
2451
|
+
: undefined,
|
|
2376
2452
|
}));
|
|
2377
2453
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2454
|
+
export const unmarshalResolvedValues_AiRuntimeTaskResolvedValuesSchema = z.object({});
|
|
2455
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2378
2456
|
export const unmarshalResolvedValues_ConditionTaskResolvedValuesSchema = z
|
|
2379
2457
|
.object({
|
|
2380
2458
|
left: z.string().optional(),
|
|
@@ -2741,6 +2819,7 @@ export const unmarshalRunTaskSchema = z
|
|
|
2741
2819
|
python_operator_task: z
|
|
2742
2820
|
.lazy(() => unmarshalPythonOperatorTaskSchema)
|
|
2743
2821
|
.optional(),
|
|
2822
|
+
ai_runtime_task: z.lazy(() => unmarshalAiRuntimeTaskSchema).optional(),
|
|
2744
2823
|
existing_cluster_id: z.string().optional(),
|
|
2745
2824
|
new_cluster: z.lazy(() => unmarshalClusterSpec_NewClusterSchema).optional(),
|
|
2746
2825
|
job_cluster_key: z.string().optional(),
|
|
@@ -2885,7 +2964,12 @@ export const unmarshalRunTaskSchema = z
|
|
|
2885
2964
|
$case: 'pythonOperatorTask',
|
|
2886
2965
|
pythonOperatorTask: d.python_operator_task,
|
|
2887
2966
|
}
|
|
2888
|
-
: undefined
|
|
2967
|
+
: d.ai_runtime_task !== undefined
|
|
2968
|
+
? {
|
|
2969
|
+
$case: 'aiRuntimeTask',
|
|
2970
|
+
aiRuntimeTask: d.ai_runtime_task,
|
|
2971
|
+
}
|
|
2972
|
+
: undefined,
|
|
2889
2973
|
spec: d.existing_cluster_id !== undefined
|
|
2890
2974
|
? {
|
|
2891
2975
|
$case: 'existingClusterId',
|
|
@@ -3297,6 +3381,7 @@ export const unmarshalTaskSettingsSchema = z
|
|
|
3297
3381
|
python_operator_task: z
|
|
3298
3382
|
.lazy(() => unmarshalPythonOperatorTaskSchema)
|
|
3299
3383
|
.optional(),
|
|
3384
|
+
ai_runtime_task: z.lazy(() => unmarshalAiRuntimeTaskSchema).optional(),
|
|
3300
3385
|
existing_cluster_id: z.string().optional(),
|
|
3301
3386
|
new_cluster: z.lazy(() => unmarshalClusterSpec_NewClusterSchema).optional(),
|
|
3302
3387
|
job_cluster_key: z.string().optional(),
|
|
@@ -3404,7 +3489,12 @@ export const unmarshalTaskSettingsSchema = z
|
|
|
3404
3489
|
$case: 'pythonOperatorTask',
|
|
3405
3490
|
pythonOperatorTask: d.python_operator_task,
|
|
3406
3491
|
}
|
|
3407
|
-
: undefined
|
|
3492
|
+
: d.ai_runtime_task !== undefined
|
|
3493
|
+
? {
|
|
3494
|
+
$case: 'aiRuntimeTask',
|
|
3495
|
+
aiRuntimeTask: d.ai_runtime_task,
|
|
3496
|
+
}
|
|
3497
|
+
: undefined,
|
|
3408
3498
|
spec: d.existing_cluster_id !== undefined
|
|
3409
3499
|
? {
|
|
3410
3500
|
$case: 'existingClusterId',
|
|
@@ -3584,6 +3674,21 @@ export const marshalAdlsgen2InfoSchema = z
|
|
|
3584
3674
|
.transform(d => ({
|
|
3585
3675
|
destination: d.destination,
|
|
3586
3676
|
}));
|
|
3677
|
+
export const marshalAiRuntimeTaskSchema = z
|
|
3678
|
+
.object({
|
|
3679
|
+
experiment: z.string().optional(),
|
|
3680
|
+
deployments: z.array(z.lazy(() => marshalDeploymentSpecSchema)).optional(),
|
|
3681
|
+
codeSourcePath: z.string().optional(),
|
|
3682
|
+
mlflowRun: z.string().optional(),
|
|
3683
|
+
mlflowExperimentDirectory: z.string().optional(),
|
|
3684
|
+
})
|
|
3685
|
+
.transform(d => ({
|
|
3686
|
+
experiment: d.experiment,
|
|
3687
|
+
deployments: d.deployments,
|
|
3688
|
+
code_source_path: d.codeSourcePath,
|
|
3689
|
+
mlflow_run: d.mlflowRun,
|
|
3690
|
+
mlflow_experiment_directory: d.mlflowExperimentDirectory,
|
|
3691
|
+
}));
|
|
3587
3692
|
export const marshalAlertTaskSchema = z
|
|
3588
3693
|
.object({
|
|
3589
3694
|
alertId: z.string().optional(),
|
|
@@ -3824,6 +3929,15 @@ export const marshalComputeConfigSchema = z
|
|
|
3824
3929
|
gpu_node_pool_id: d.gpuNodePoolId,
|
|
3825
3930
|
gpu_type: d.gpuType,
|
|
3826
3931
|
}));
|
|
3932
|
+
export const marshalComputeSpecSchema = z
|
|
3933
|
+
.object({
|
|
3934
|
+
acceleratorType: z.string().optional(),
|
|
3935
|
+
acceleratorCount: z.number().optional(),
|
|
3936
|
+
})
|
|
3937
|
+
.transform(d => ({
|
|
3938
|
+
accelerator_type: d.acceleratorType,
|
|
3939
|
+
accelerator_count: d.acceleratorCount,
|
|
3940
|
+
}));
|
|
3827
3941
|
export const marshalConditionTaskSchema = z
|
|
3828
3942
|
.object({
|
|
3829
3943
|
op: z.string().optional(),
|
|
@@ -4003,6 +4117,17 @@ export const marshalDeleteRunRequestSchema = z
|
|
|
4003
4117
|
.transform(d => ({
|
|
4004
4118
|
run_id: d.runId,
|
|
4005
4119
|
}));
|
|
4120
|
+
export const marshalDeploymentSpecSchema = z
|
|
4121
|
+
.object({
|
|
4122
|
+
commandPath: z.string().optional(),
|
|
4123
|
+
compute: z.lazy(() => marshalComputeSpecSchema).optional(),
|
|
4124
|
+
name: z.string().optional(),
|
|
4125
|
+
})
|
|
4126
|
+
.transform(d => ({
|
|
4127
|
+
command_path: d.commandPath,
|
|
4128
|
+
compute: d.compute,
|
|
4129
|
+
name: d.name,
|
|
4130
|
+
}));
|
|
4006
4131
|
export const marshalDockerBasicAuthSchema = z
|
|
4007
4132
|
.object({
|
|
4008
4133
|
username: z.string().optional(),
|
|
@@ -4852,6 +4977,10 @@ export const marshalRunTaskSettingsSchema = z
|
|
|
4852
4977
|
$case: z.literal('pythonOperatorTask'),
|
|
4853
4978
|
pythonOperatorTask: z.lazy(() => marshalPythonOperatorTaskSchema),
|
|
4854
4979
|
}),
|
|
4980
|
+
z.object({
|
|
4981
|
+
$case: z.literal('aiRuntimeTask'),
|
|
4982
|
+
aiRuntimeTask: z.lazy(() => marshalAiRuntimeTaskSchema),
|
|
4983
|
+
}),
|
|
4855
4984
|
])
|
|
4856
4985
|
.optional(),
|
|
4857
4986
|
spec: z
|
|
@@ -4936,6 +5065,9 @@ export const marshalRunTaskSettingsSchema = z
|
|
|
4936
5065
|
...(d.task?.$case === 'pythonOperatorTask' && {
|
|
4937
5066
|
python_operator_task: d.task.pythonOperatorTask,
|
|
4938
5067
|
}),
|
|
5068
|
+
...(d.task?.$case === 'aiRuntimeTask' && {
|
|
5069
|
+
ai_runtime_task: d.task.aiRuntimeTask,
|
|
5070
|
+
}),
|
|
4939
5071
|
...(d.spec?.$case === 'existingClusterId' && {
|
|
4940
5072
|
existing_cluster_id: d.spec.existingClusterId,
|
|
4941
5073
|
}),
|
|
@@ -5313,6 +5445,10 @@ export const marshalTaskSettingsSchema = z
|
|
|
5313
5445
|
$case: z.literal('pythonOperatorTask'),
|
|
5314
5446
|
pythonOperatorTask: z.lazy(() => marshalPythonOperatorTaskSchema),
|
|
5315
5447
|
}),
|
|
5448
|
+
z.object({
|
|
5449
|
+
$case: z.literal('aiRuntimeTask'),
|
|
5450
|
+
aiRuntimeTask: z.lazy(() => marshalAiRuntimeTaskSchema),
|
|
5451
|
+
}),
|
|
5316
5452
|
])
|
|
5317
5453
|
.optional(),
|
|
5318
5454
|
spec: z
|
|
@@ -5397,6 +5533,9 @@ export const marshalTaskSettingsSchema = z
|
|
|
5397
5533
|
...(d.task?.$case === 'pythonOperatorTask' && {
|
|
5398
5534
|
python_operator_task: d.task.pythonOperatorTask,
|
|
5399
5535
|
}),
|
|
5536
|
+
...(d.task?.$case === 'aiRuntimeTask' && {
|
|
5537
|
+
ai_runtime_task: d.task.aiRuntimeTask,
|
|
5538
|
+
}),
|
|
5400
5539
|
...(d.spec?.$case === 'existingClusterId' && {
|
|
5401
5540
|
existing_cluster_id: d.spec.existingClusterId,
|
|
5402
5541
|
}),
|