@databricks/sdk-jobs 0.1.0-dev.1 → 0.1.0-dev.3

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/src/v2/model.ts CHANGED
@@ -1004,8 +1004,8 @@ export interface CancelAllRunsRequest {
1004
1004
  }
1005
1005
 
1006
1006
  /** All runs were cancelled successfully. */
1007
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1008
- export interface CancelAllRunsRequest_Response {}
1007
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1008
+ export interface CancelAllRunsResponse {}
1009
1009
 
1010
1010
  export interface CancelRunRequest {
1011
1011
  /** This field is required. */
@@ -1013,8 +1013,8 @@ export interface CancelRunRequest {
1013
1013
  }
1014
1014
 
1015
1015
  /** Run was cancelled successfully. */
1016
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1017
- export interface CancelRunRequest_Response {}
1016
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1017
+ export interface CancelRunResponse {}
1018
1018
 
1019
1019
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1020
1020
  export interface CleanRoomTaskRunLifeCycleState {}
@@ -1505,13 +1505,6 @@ export interface CreateJobRequest {
1505
1505
  disableAutoOptimization?: boolean | undefined;
1506
1506
  }
1507
1507
 
1508
- /** Job was created successfully */
1509
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1510
- export interface CreateJobRequest_Response {
1511
- /** The canonical identifier for the newly created job. */
1512
- jobId?: bigint | undefined;
1513
- }
1514
-
1515
1508
  /**
1516
1509
  * <Databricks> proto compiler is too old and does not support map.
1517
1510
  * This is wire compatible with map<string,string>.
@@ -1523,6 +1516,12 @@ export interface CreateJobRequest_TagsEntry {
1523
1516
  value?: string | undefined;
1524
1517
  }
1525
1518
 
1519
+ /** Job was created successfully */
1520
+ export interface CreateJobResponse {
1521
+ /** The canonical identifier for the newly created job. */
1522
+ jobId?: bigint | undefined;
1523
+ }
1524
+
1526
1525
  export interface CronSchedule {
1527
1526
  /** A Cron expression using Quartz syntax that describes the schedule for a job. See [Cron Trigger](http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html) for details. This field is required. */
1528
1527
  quartzCronExpression?: string | undefined;
@@ -1690,8 +1689,8 @@ export interface DeleteJobRequest {
1690
1689
  }
1691
1690
 
1692
1691
  /** Job was deleted successfully. */
1693
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1694
- export interface DeleteJobRequest_Response {}
1692
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1693
+ export interface DeleteJobResponse {}
1695
1694
 
1696
1695
  export interface DeleteRunRequest {
1697
1696
  /** ID of the run to delete. */
@@ -1699,8 +1698,8 @@ export interface DeleteRunRequest {
1699
1698
  }
1700
1699
 
1701
1700
  /** Run was deleted successfully. */
1702
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1703
- export interface DeleteRunRequest_Response {}
1701
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1702
+ export interface DeleteRunResponse {}
1704
1703
 
1705
1704
  export interface DockerBasicAuth {
1706
1705
  /** Name of the user */
@@ -1731,8 +1730,7 @@ export interface EnforcePolicyComplianceForJob {
1731
1730
  validateOnly?: boolean | undefined;
1732
1731
  }
1733
1732
 
1734
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1735
- export interface EnforcePolicyComplianceForJob_Response {
1733
+ export interface EnforcePolicyComplianceResponse {
1736
1734
  /**
1737
1735
  * Whether any changes have been made to the job cluster settings for the job to
1738
1736
  * become compliant with its policies.
@@ -1744,7 +1742,7 @@ export interface EnforcePolicyComplianceForJob_Response {
1744
1742
  * policies.
1745
1743
  */
1746
1744
  jobClusterChanges?:
1747
- | EnforcePolicyComplianceForJob_Response_JobClusterSettingsChange[]
1745
+ | EnforcePolicyComplianceResponse_JobClusterSettingsChange[]
1748
1746
  | undefined;
1749
1747
  /**
1750
1748
  * Updated job settings after policy enforcement. Policy enforcement only
@@ -1761,7 +1759,7 @@ export interface EnforcePolicyComplianceForJob_Response {
1761
1759
  * job clusters to become compliant with their policies.
1762
1760
  */
1763
1761
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1764
- export interface EnforcePolicyComplianceForJob_Response_JobClusterSettingsChange {
1762
+ export interface EnforcePolicyComplianceResponse_JobClusterSettingsChange {
1765
1763
  /** The field where this change would be made, prepended with the job cluster key. */
1766
1764
  field?: string | undefined;
1767
1765
  /**
@@ -1824,8 +1822,7 @@ export interface ExportRunRequest {
1824
1822
  }
1825
1823
 
1826
1824
  /** Run was exported successfully. */
1827
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1828
- export interface ExportRunRequest_Response {
1825
+ export interface ExportRunResponse {
1829
1826
  /** The exported content in HTML format (one for every view item). To extract the HTML notebook from the JSON response, download and run this [Python script](/_static/examples/extract.py). */
1830
1827
  views?: ViewItem[] | undefined;
1831
1828
  }
@@ -1969,8 +1966,7 @@ export interface GetJobRequest {
1969
1966
  }
1970
1967
 
1971
1968
  /** Job was retrieved successfully. */
1972
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1973
- export interface GetJobRequest_Response {
1969
+ export interface GetJobResponse {
1974
1970
  /** A token that can be used to list the next page of array properties. */
1975
1971
  nextPageToken?: string | undefined;
1976
1972
  /** The canonical identifier for this job. */
@@ -2011,8 +2007,7 @@ export interface GetPolicyComplianceForJob {
2011
2007
  jobId?: bigint | undefined;
2012
2008
  }
2013
2009
 
2014
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2015
- export interface GetPolicyComplianceForJob_Response {
2010
+ export interface GetPolicyComplianceForJobResponse {
2016
2011
  /**
2017
2012
  * Whether the job is compliant with its policies or not. Jobs could be out of
2018
2013
  * compliance if a policy they are using was updated after the job was
@@ -2032,7 +2027,7 @@ export interface GetPolicyComplianceForJob_Response {
2032
2027
 
2033
2028
  /** Proto defined to model a mapping from string to string. */
2034
2029
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2035
- export interface GetPolicyComplianceForJob_Response_ViolationsEntry {
2030
+ export interface GetPolicyComplianceForJobResponse_ViolationsEntry {
2036
2031
  key?: string | undefined;
2037
2032
  value?: string | undefined;
2038
2033
  }
@@ -2044,8 +2039,7 @@ export interface GetRunOutputRequest {
2044
2039
  }
2045
2040
 
2046
2041
  /** Run output was retrieved successfully. */
2047
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2048
- export interface GetRunOutputRequest_Response {
2042
+ export interface GetRunOutputResponse {
2049
2043
  /** All details of the run except for its output. */
2050
2044
  metadata?: Run | undefined;
2051
2045
  /** An error message indicating why a task failed or why output is not available. The message is unstructured, and its exact format is subject to change. */
@@ -2130,8 +2124,7 @@ export interface GetRunRequest {
2130
2124
  }
2131
2125
 
2132
2126
  /** Run was retrieved successfully */
2133
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2134
- export interface GetRunRequest_Response {
2127
+ export interface GetRunResponse {
2135
2128
  /** A token that can be used to list the next page of array properties. */
2136
2129
  nextPageToken?: string | undefined;
2137
2130
  /** The canonical identifier of the job that contains this run. */
@@ -2677,8 +2670,7 @@ export interface ListJobComplianceForPolicy_JobCompliance_ViolationsEntry {
2677
2670
  value?: string | undefined;
2678
2671
  }
2679
2672
 
2680
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2681
- export interface ListJobComplianceForPolicy_Response {
2673
+ export interface ListJobComplianceResponse {
2682
2674
  /** A list of jobs and their policy compliance statuses. */
2683
2675
  jobs?: ListJobComplianceForPolicy_JobCompliance[] | undefined;
2684
2676
  /**
@@ -2714,8 +2706,7 @@ export interface ListJobsRequest {
2714
2706
  }
2715
2707
 
2716
2708
  /** List of jobs was retrieved successfully. */
2717
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2718
- export interface ListJobsRequest_Response {
2709
+ export interface ListJobsResponse {
2719
2710
  /** The list of jobs. Only included in the response if there are jobs to list. */
2720
2711
  jobs?: BaseJob[] | undefined;
2721
2712
  /** If true, additional jobs matching the provided filter are available for listing. */
@@ -2783,8 +2774,7 @@ export interface ListRunsRequest {
2783
2774
  }
2784
2775
 
2785
2776
  /** List of runs was retrieved successfully. */
2786
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2787
- export interface ListRunsRequest_Response {
2777
+ export interface ListRunsResponse {
2788
2778
  /** A list of runs, from most recently started to least. Only included in the response if there are runs to list. */
2789
2779
  runs?: BaseRun[] | undefined;
2790
2780
  /** If true, additional runs matching the provided filter are available for listing. */
@@ -3226,13 +3216,6 @@ export interface RepairRunRequest_PythonNamedParamsEntry {
3226
3216
  value?: string | undefined;
3227
3217
  }
3228
3218
 
3229
- /** Run repair was initiated. */
3230
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
3231
- export interface RepairRunRequest_Response {
3232
- /** The ID of the repair. Must be provided in subsequent repairs using the `latest_repair_id` field to ensure sequential repairs. */
3233
- repairId?: bigint | undefined;
3234
- }
3235
-
3236
3219
  /** Name-based parameters for jobs running notebook tasks. */
3237
3220
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
3238
3221
  export interface RepairRunRequest_SqlParamsEntry {
@@ -3241,6 +3224,12 @@ export interface RepairRunRequest_SqlParamsEntry {
3241
3224
  value?: string | undefined;
3242
3225
  }
3243
3226
 
3227
+ /** Run repair was initiated. */
3228
+ export interface RepairRunResponse {
3229
+ /** The ID of the repair. Must be provided in subsequent repairs using the `latest_repair_id` field to ensure sequential repairs. */
3230
+ repairId?: bigint | undefined;
3231
+ }
3232
+
3244
3233
  export interface ResetJobRequest {
3245
3234
  /** The canonical identifier of the job to reset. This field is required. */
3246
3235
  jobId?: bigint | undefined;
@@ -3253,8 +3242,8 @@ export interface ResetJobRequest {
3253
3242
  }
3254
3243
 
3255
3244
  /** Job was overwritten successfully. */
3256
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
3257
- export interface ResetJobRequest_Response {}
3245
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
3246
+ export interface ResetJobResponse {}
3258
3247
 
3259
3248
  export interface ResolvedValues {
3260
3249
  resolved?:
@@ -3747,15 +3736,6 @@ export interface RunNowRequest_PythonNamedParamsEntry {
3747
3736
  value?: string | undefined;
3748
3737
  }
3749
3738
 
3750
- /** Run was started successfully. */
3751
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
3752
- export interface RunNowRequest_Response {
3753
- /** The globally unique ID of the newly triggered run. */
3754
- runId?: bigint | undefined;
3755
- /** A unique identifier for this job run. This is set to the same value as `run_id`. */
3756
- numberInJob?: bigint | undefined;
3757
- }
3758
-
3759
3739
  /** Name-based parameters for jobs running notebook tasks. */
3760
3740
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
3761
3741
  export interface RunNowRequest_SqlParamsEntry {
@@ -3764,6 +3744,14 @@ export interface RunNowRequest_SqlParamsEntry {
3764
3744
  value?: string | undefined;
3765
3745
  }
3766
3746
 
3747
+ /** Run was started successfully. */
3748
+ export interface RunNowResponse {
3749
+ /** The globally unique ID of the newly triggered run. */
3750
+ runId?: bigint | undefined;
3751
+ /** A unique identifier for this job run. This is set to the same value as `run_id`. */
3752
+ numberInJob?: bigint | undefined;
3753
+ }
3754
+
3767
3755
  export interface RunParameters {
3768
3756
  /** Controls whether the pipeline should perform a full refresh */
3769
3757
  pipelineParams?: PipelineParameters | undefined;
@@ -4610,8 +4598,7 @@ export interface SubmitRunRequest {
4610
4598
  }
4611
4599
 
4612
4600
  /** Run was created and started successfully. */
4613
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
4614
- export interface SubmitRunRequest_Response {
4601
+ export interface SubmitRunResponse {
4615
4602
  /** The canonical identifier for the newly submitted run. */
4616
4603
  runId?: bigint | undefined;
4617
4604
  }
@@ -4927,8 +4914,8 @@ export interface UpdateJobRequest {
4927
4914
  }
4928
4915
 
4929
4916
  /** Job was updated successfully. */
4930
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
4931
- export interface UpdateJobRequest_Response {}
4917
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
4918
+ export interface UpdateJobResponse {}
4932
4919
 
4933
4920
  export interface ViewItem {
4934
4921
  /** Content of the view. */
@@ -5239,12 +5226,10 @@ export const unmarshalBaseRunSchema: z.ZodType<BaseRun> = z
5239
5226
  queueDuration: d.queue_duration,
5240
5227
  }));
5241
5228
 
5242
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5243
- export const unmarshalCancelAllRunsRequest_ResponseSchema: z.ZodType<CancelAllRunsRequest_Response> =
5229
+ export const unmarshalCancelAllRunsResponseSchema: z.ZodType<CancelAllRunsResponse> =
5244
5230
  z.object({});
5245
5231
 
5246
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5247
- export const unmarshalCancelRunRequest_ResponseSchema: z.ZodType<CancelRunRequest_Response> =
5232
+ export const unmarshalCancelRunResponseSchema: z.ZodType<CancelRunResponse> =
5248
5233
  z.object({});
5249
5234
 
5250
5235
  export const unmarshalCleanRoomTaskRunStateSchema: z.ZodType<CleanRoomTaskRunState> =
@@ -5480,18 +5465,16 @@ export const unmarshalContinuousSettingsSchema: z.ZodType<ContinuousSettings> =
5480
5465
  taskRetryMode: d.task_retry_mode,
5481
5466
  }));
5482
5467
 
5483
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5484
- export const unmarshalCreateJobRequest_ResponseSchema: z.ZodType<CreateJobRequest_Response> =
5485
- z
5486
- .object({
5487
- job_id: z
5488
- .union([z.number(), z.bigint()])
5489
- .transform(v => BigInt(v))
5490
- .optional(),
5491
- })
5492
- .transform(d => ({
5493
- jobId: d.job_id,
5494
- }));
5468
+ export const unmarshalCreateJobResponseSchema: z.ZodType<CreateJobResponse> = z
5469
+ .object({
5470
+ job_id: z
5471
+ .union([z.number(), z.bigint()])
5472
+ .transform(v => BigInt(v))
5473
+ .optional(),
5474
+ })
5475
+ .transform(d => ({
5476
+ jobId: d.job_id,
5477
+ }));
5495
5478
 
5496
5479
  export const unmarshalCronScheduleSchema: z.ZodType<CronSchedule> = z
5497
5480
  .object({
@@ -5675,12 +5658,10 @@ export const unmarshalDbtTask_DbtTaskOutputSchema: z.ZodType<DbtTask_DbtTaskOutp
5675
5658
  artifactsHeaders: d.artifacts_headers,
5676
5659
  }));
5677
5660
 
5678
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5679
- export const unmarshalDeleteJobRequest_ResponseSchema: z.ZodType<DeleteJobRequest_Response> =
5661
+ export const unmarshalDeleteJobResponseSchema: z.ZodType<DeleteJobResponse> =
5680
5662
  z.object({});
5681
5663
 
5682
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5683
- export const unmarshalDeleteRunRequest_ResponseSchema: z.ZodType<DeleteRunRequest_Response> =
5664
+ export const unmarshalDeleteRunResponseSchema: z.ZodType<DeleteRunResponse> =
5684
5665
  z.object({});
5685
5666
 
5686
5667
  export const unmarshalDockerBasicAuthSchema: z.ZodType<DockerBasicAuth> = z
@@ -5706,8 +5687,7 @@ export const unmarshalDockerImageSchema: z.ZodType<DockerImage> = z
5706
5687
  : undefined,
5707
5688
  }));
5708
5689
 
5709
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5710
- export const unmarshalEnforcePolicyComplianceForJob_ResponseSchema: z.ZodType<EnforcePolicyComplianceForJob_Response> =
5690
+ export const unmarshalEnforcePolicyComplianceResponseSchema: z.ZodType<EnforcePolicyComplianceResponse> =
5711
5691
  z
5712
5692
  .object({
5713
5693
  has_changes: z.boolean().optional(),
@@ -5715,7 +5695,7 @@ export const unmarshalEnforcePolicyComplianceForJob_ResponseSchema: z.ZodType<En
5715
5695
  .array(
5716
5696
  z.lazy(
5717
5697
  () =>
5718
- unmarshalEnforcePolicyComplianceForJob_Response_JobClusterSettingsChangeSchema
5698
+ unmarshalEnforcePolicyComplianceResponse_JobClusterSettingsChangeSchema
5719
5699
  )
5720
5700
  )
5721
5701
  .optional(),
@@ -5728,7 +5708,7 @@ export const unmarshalEnforcePolicyComplianceForJob_ResponseSchema: z.ZodType<En
5728
5708
  }));
5729
5709
 
5730
5710
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5731
- export const unmarshalEnforcePolicyComplianceForJob_Response_JobClusterSettingsChangeSchema: z.ZodType<EnforcePolicyComplianceForJob_Response_JobClusterSettingsChange> =
5711
+ export const unmarshalEnforcePolicyComplianceResponse_JobClusterSettingsChangeSchema: z.ZodType<EnforcePolicyComplianceResponse_JobClusterSettingsChange> =
5732
5712
  z
5733
5713
  .object({
5734
5714
  field: z.string().optional(),
@@ -5757,15 +5737,13 @@ export const unmarshalEnvironmentSchema: z.ZodType<Environment> = z
5757
5737
  javaDependencies: d.java_dependencies,
5758
5738
  }));
5759
5739
 
5760
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5761
- export const unmarshalExportRunRequest_ResponseSchema: z.ZodType<ExportRunRequest_Response> =
5762
- z
5763
- .object({
5764
- views: z.array(z.lazy(() => unmarshalViewItemSchema)).optional(),
5765
- })
5766
- .transform(d => ({
5767
- views: d.views,
5768
- }));
5740
+ export const unmarshalExportRunResponseSchema: z.ZodType<ExportRunResponse> = z
5741
+ .object({
5742
+ views: z.array(z.lazy(() => unmarshalViewItemSchema)).optional(),
5743
+ })
5744
+ .transform(d => ({
5745
+ views: d.views,
5746
+ }));
5769
5747
 
5770
5748
  export const unmarshalFileArrivalTriggerConfigurationSchema: z.ZodType<FileArrivalTriggerConfiguration> =
5771
5749
  z
@@ -5853,42 +5831,39 @@ export const unmarshalGenAiComputeTaskSchema: z.ZodType<GenAiComputeTask> = z
5853
5831
  mlflowExperimentName: d.mlflow_experiment_name,
5854
5832
  }));
5855
5833
 
5856
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5857
- export const unmarshalGetJobRequest_ResponseSchema: z.ZodType<GetJobRequest_Response> =
5858
- z
5859
- .object({
5860
- next_page_token: z.string().optional(),
5861
- job_id: z
5862
- .union([z.number(), z.bigint()])
5863
- .transform(v => BigInt(v))
5864
- .optional(),
5865
- creator_user_name: z.string().optional(),
5866
- run_as_user_name: z.string().optional(),
5867
- settings: z.lazy(() => unmarshalJobSettingsSchema).optional(),
5868
- created_time: z
5869
- .union([z.number(), z.bigint()])
5870
- .transform(v => BigInt(v))
5871
- .optional(),
5872
- trigger_state: z.lazy(() => unmarshalTriggerStateSchema).optional(),
5873
- has_more: z.boolean().optional(),
5874
- effective_budget_policy_id: z.string().optional(),
5875
- effective_usage_policy_id: z.string().optional(),
5876
- })
5877
- .transform(d => ({
5878
- nextPageToken: d.next_page_token,
5879
- jobId: d.job_id,
5880
- creatorUserName: d.creator_user_name,
5881
- runAsUserName: d.run_as_user_name,
5882
- settings: d.settings,
5883
- createdTime: d.created_time,
5884
- triggerState: d.trigger_state,
5885
- hasMore: d.has_more,
5886
- effectiveBudgetPolicyId: d.effective_budget_policy_id,
5887
- effectiveUsagePolicyId: d.effective_usage_policy_id,
5888
- }));
5834
+ export const unmarshalGetJobResponseSchema: z.ZodType<GetJobResponse> = z
5835
+ .object({
5836
+ next_page_token: z.string().optional(),
5837
+ job_id: z
5838
+ .union([z.number(), z.bigint()])
5839
+ .transform(v => BigInt(v))
5840
+ .optional(),
5841
+ creator_user_name: z.string().optional(),
5842
+ run_as_user_name: z.string().optional(),
5843
+ settings: z.lazy(() => unmarshalJobSettingsSchema).optional(),
5844
+ created_time: z
5845
+ .union([z.number(), z.bigint()])
5846
+ .transform(v => BigInt(v))
5847
+ .optional(),
5848
+ trigger_state: z.lazy(() => unmarshalTriggerStateSchema).optional(),
5849
+ has_more: z.boolean().optional(),
5850
+ effective_budget_policy_id: z.string().optional(),
5851
+ effective_usage_policy_id: z.string().optional(),
5852
+ })
5853
+ .transform(d => ({
5854
+ nextPageToken: d.next_page_token,
5855
+ jobId: d.job_id,
5856
+ creatorUserName: d.creator_user_name,
5857
+ runAsUserName: d.run_as_user_name,
5858
+ settings: d.settings,
5859
+ createdTime: d.created_time,
5860
+ triggerState: d.trigger_state,
5861
+ hasMore: d.has_more,
5862
+ effectiveBudgetPolicyId: d.effective_budget_policy_id,
5863
+ effectiveUsagePolicyId: d.effective_usage_policy_id,
5864
+ }));
5889
5865
 
5890
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5891
- export const unmarshalGetPolicyComplianceForJob_ResponseSchema: z.ZodType<GetPolicyComplianceForJob_Response> =
5866
+ export const unmarshalGetPolicyComplianceForJobResponseSchema: z.ZodType<GetPolicyComplianceForJobResponse> =
5892
5867
  z
5893
5868
  .object({
5894
5869
  is_compliant: z.boolean().optional(),
@@ -5899,8 +5874,7 @@ export const unmarshalGetPolicyComplianceForJob_ResponseSchema: z.ZodType<GetPol
5899
5874
  violations: d.violations,
5900
5875
  }));
5901
5876
 
5902
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5903
- export const unmarshalGetRunOutputRequest_ResponseSchema: z.ZodType<GetRunOutputRequest_Response> =
5877
+ export const unmarshalGetRunOutputResponseSchema: z.ZodType<GetRunOutputResponse> =
5904
5878
  z
5905
5879
  .object({
5906
5880
  metadata: z.lazy(() => unmarshalRunSchema).optional(),
@@ -5984,125 +5958,123 @@ export const unmarshalGetRunOutputRequest_ResponseSchema: z.ZodType<GetRunOutput
5984
5958
  errorTrace: d.error_trace,
5985
5959
  }));
5986
5960
 
5987
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
5988
- export const unmarshalGetRunRequest_ResponseSchema: z.ZodType<GetRunRequest_Response> =
5989
- z
5990
- .object({
5991
- next_page_token: z.string().optional(),
5992
- job_id: z
5993
- .union([z.number(), z.bigint()])
5994
- .transform(v => BigInt(v))
5995
- .optional(),
5996
- run_id: z
5997
- .union([z.number(), z.bigint()])
5998
- .transform(v => BigInt(v))
5999
- .optional(),
6000
- creator_user_name: z.string().optional(),
6001
- number_in_job: z
6002
- .union([z.number(), z.bigint()])
6003
- .transform(v => BigInt(v))
6004
- .optional(),
6005
- original_attempt_run_id: z
6006
- .union([z.number(), z.bigint()])
6007
- .transform(v => BigInt(v))
6008
- .optional(),
6009
- state: z.lazy(() => unmarshalRunStateSchema).optional(),
6010
- schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),
6011
- cluster_spec: z.lazy(() => unmarshalClusterSpecSchema).optional(),
6012
- cluster_instance: z.lazy(() => unmarshalClusterInstanceSchema).optional(),
6013
- job_parameters: z
6014
- .array(z.lazy(() => unmarshalRun_JobLevelParametersSchema))
6015
- .optional(),
6016
- overriding_parameters: z
6017
- .lazy(() => unmarshalRunParametersSchema)
6018
- .optional(),
6019
- trigger: z.enum(TriggerType).optional(),
6020
- trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
6021
- run_name: z.string().optional(),
6022
- run_page_url: z.string().optional(),
6023
- run_type: z.enum(RunType).optional(),
6024
- tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
6025
- description: z.string().optional(),
6026
- attempt_number: z.number().optional(),
6027
- job_clusters: z.array(z.lazy(() => unmarshalJobClusterSchema)).optional(),
6028
- git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
6029
- repair_history: z.array(z.lazy(() => unmarshalRepairSchema)).optional(),
6030
- status: z.lazy(() => unmarshalRunStatusSchema).optional(),
6031
- job_run_id: z
6032
- .union([z.number(), z.bigint()])
6033
- .transform(v => BigInt(v))
6034
- .optional(),
6035
- has_more: z.boolean().optional(),
6036
- effective_performance_target: z
6037
- .enum(PerformanceTarget_PerformanceTarget)
6038
- .optional(),
6039
- effective_usage_policy_id: z.string().optional(),
6040
- start_time: z
6041
- .union([z.number(), z.bigint()])
6042
- .transform(v => BigInt(v))
6043
- .optional(),
6044
- setup_duration: z
6045
- .union([z.number(), z.bigint()])
6046
- .transform(v => BigInt(v))
6047
- .optional(),
6048
- execution_duration: z
6049
- .union([z.number(), z.bigint()])
6050
- .transform(v => BigInt(v))
6051
- .optional(),
6052
- cleanup_duration: z
6053
- .union([z.number(), z.bigint()])
6054
- .transform(v => BigInt(v))
6055
- .optional(),
6056
- end_time: z
6057
- .union([z.number(), z.bigint()])
6058
- .transform(v => BigInt(v))
6059
- .optional(),
6060
- run_duration: z
6061
- .union([z.number(), z.bigint()])
6062
- .transform(v => BigInt(v))
6063
- .optional(),
6064
- queue_duration: z
6065
- .union([z.number(), z.bigint()])
6066
- .transform(v => BigInt(v))
6067
- .optional(),
6068
- })
6069
- .transform(d => ({
6070
- nextPageToken: d.next_page_token,
6071
- jobId: d.job_id,
6072
- runId: d.run_id,
6073
- creatorUserName: d.creator_user_name,
6074
- numberInJob: d.number_in_job,
6075
- originalAttemptRunId: d.original_attempt_run_id,
6076
- state: d.state,
6077
- schedule: d.schedule,
6078
- clusterSpec: d.cluster_spec,
6079
- clusterInstance: d.cluster_instance,
6080
- jobParameters: d.job_parameters,
6081
- overridingParameters: d.overriding_parameters,
6082
- trigger: d.trigger,
6083
- triggerInfo: d.trigger_info,
6084
- runName: d.run_name,
6085
- runPageUrl: d.run_page_url,
6086
- runType: d.run_type,
6087
- tasks: d.tasks,
6088
- description: d.description,
6089
- attemptNumber: d.attempt_number,
6090
- jobClusters: d.job_clusters,
6091
- gitSource: d.git_source,
6092
- repairHistory: d.repair_history,
6093
- status: d.status,
6094
- jobRunId: d.job_run_id,
6095
- hasMore: d.has_more,
6096
- effectivePerformanceTarget: d.effective_performance_target,
6097
- effectiveUsagePolicyId: d.effective_usage_policy_id,
6098
- startTime: d.start_time,
6099
- setupDuration: d.setup_duration,
6100
- executionDuration: d.execution_duration,
6101
- cleanupDuration: d.cleanup_duration,
6102
- endTime: d.end_time,
6103
- runDuration: d.run_duration,
6104
- queueDuration: d.queue_duration,
6105
- }));
5961
+ export const unmarshalGetRunResponseSchema: z.ZodType<GetRunResponse> = z
5962
+ .object({
5963
+ next_page_token: z.string().optional(),
5964
+ job_id: z
5965
+ .union([z.number(), z.bigint()])
5966
+ .transform(v => BigInt(v))
5967
+ .optional(),
5968
+ run_id: z
5969
+ .union([z.number(), z.bigint()])
5970
+ .transform(v => BigInt(v))
5971
+ .optional(),
5972
+ creator_user_name: z.string().optional(),
5973
+ number_in_job: z
5974
+ .union([z.number(), z.bigint()])
5975
+ .transform(v => BigInt(v))
5976
+ .optional(),
5977
+ original_attempt_run_id: z
5978
+ .union([z.number(), z.bigint()])
5979
+ .transform(v => BigInt(v))
5980
+ .optional(),
5981
+ state: z.lazy(() => unmarshalRunStateSchema).optional(),
5982
+ schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),
5983
+ cluster_spec: z.lazy(() => unmarshalClusterSpecSchema).optional(),
5984
+ cluster_instance: z.lazy(() => unmarshalClusterInstanceSchema).optional(),
5985
+ job_parameters: z
5986
+ .array(z.lazy(() => unmarshalRun_JobLevelParametersSchema))
5987
+ .optional(),
5988
+ overriding_parameters: z
5989
+ .lazy(() => unmarshalRunParametersSchema)
5990
+ .optional(),
5991
+ trigger: z.enum(TriggerType).optional(),
5992
+ trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
5993
+ run_name: z.string().optional(),
5994
+ run_page_url: z.string().optional(),
5995
+ run_type: z.enum(RunType).optional(),
5996
+ tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
5997
+ description: z.string().optional(),
5998
+ attempt_number: z.number().optional(),
5999
+ job_clusters: z.array(z.lazy(() => unmarshalJobClusterSchema)).optional(),
6000
+ git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
6001
+ repair_history: z.array(z.lazy(() => unmarshalRepairSchema)).optional(),
6002
+ status: z.lazy(() => unmarshalRunStatusSchema).optional(),
6003
+ job_run_id: z
6004
+ .union([z.number(), z.bigint()])
6005
+ .transform(v => BigInt(v))
6006
+ .optional(),
6007
+ has_more: z.boolean().optional(),
6008
+ effective_performance_target: z
6009
+ .enum(PerformanceTarget_PerformanceTarget)
6010
+ .optional(),
6011
+ effective_usage_policy_id: z.string().optional(),
6012
+ start_time: z
6013
+ .union([z.number(), z.bigint()])
6014
+ .transform(v => BigInt(v))
6015
+ .optional(),
6016
+ setup_duration: z
6017
+ .union([z.number(), z.bigint()])
6018
+ .transform(v => BigInt(v))
6019
+ .optional(),
6020
+ execution_duration: z
6021
+ .union([z.number(), z.bigint()])
6022
+ .transform(v => BigInt(v))
6023
+ .optional(),
6024
+ cleanup_duration: z
6025
+ .union([z.number(), z.bigint()])
6026
+ .transform(v => BigInt(v))
6027
+ .optional(),
6028
+ end_time: z
6029
+ .union([z.number(), z.bigint()])
6030
+ .transform(v => BigInt(v))
6031
+ .optional(),
6032
+ run_duration: z
6033
+ .union([z.number(), z.bigint()])
6034
+ .transform(v => BigInt(v))
6035
+ .optional(),
6036
+ queue_duration: z
6037
+ .union([z.number(), z.bigint()])
6038
+ .transform(v => BigInt(v))
6039
+ .optional(),
6040
+ })
6041
+ .transform(d => ({
6042
+ nextPageToken: d.next_page_token,
6043
+ jobId: d.job_id,
6044
+ runId: d.run_id,
6045
+ creatorUserName: d.creator_user_name,
6046
+ numberInJob: d.number_in_job,
6047
+ originalAttemptRunId: d.original_attempt_run_id,
6048
+ state: d.state,
6049
+ schedule: d.schedule,
6050
+ clusterSpec: d.cluster_spec,
6051
+ clusterInstance: d.cluster_instance,
6052
+ jobParameters: d.job_parameters,
6053
+ overridingParameters: d.overriding_parameters,
6054
+ trigger: d.trigger,
6055
+ triggerInfo: d.trigger_info,
6056
+ runName: d.run_name,
6057
+ runPageUrl: d.run_page_url,
6058
+ runType: d.run_type,
6059
+ tasks: d.tasks,
6060
+ description: d.description,
6061
+ attemptNumber: d.attempt_number,
6062
+ jobClusters: d.job_clusters,
6063
+ gitSource: d.git_source,
6064
+ repairHistory: d.repair_history,
6065
+ status: d.status,
6066
+ jobRunId: d.job_run_id,
6067
+ hasMore: d.has_more,
6068
+ effectivePerformanceTarget: d.effective_performance_target,
6069
+ effectiveUsagePolicyId: d.effective_usage_policy_id,
6070
+ startTime: d.start_time,
6071
+ setupDuration: d.setup_duration,
6072
+ executionDuration: d.execution_duration,
6073
+ cleanupDuration: d.cleanup_duration,
6074
+ endTime: d.end_time,
6075
+ runDuration: d.run_duration,
6076
+ queueDuration: d.queue_duration,
6077
+ }));
6106
6078
 
6107
6079
  export const unmarshalGitMetadataSnapshotSchema: z.ZodType<GitMetadataSnapshot> =
6108
6080
  z
@@ -6417,8 +6389,7 @@ export const unmarshalListJobComplianceForPolicy_JobComplianceSchema: z.ZodType<
6417
6389
  violations: d.violations,
6418
6390
  }));
6419
6391
 
6420
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
6421
- export const unmarshalListJobComplianceForPolicy_ResponseSchema: z.ZodType<ListJobComplianceForPolicy_Response> =
6392
+ export const unmarshalListJobComplianceResponseSchema: z.ZodType<ListJobComplianceResponse> =
6422
6393
  z
6423
6394
  .object({
6424
6395
  jobs: z
@@ -6435,37 +6406,33 @@ export const unmarshalListJobComplianceForPolicy_ResponseSchema: z.ZodType<ListJ
6435
6406
  prevPageToken: d.prev_page_token,
6436
6407
  }));
6437
6408
 
6438
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
6439
- export const unmarshalListJobsRequest_ResponseSchema: z.ZodType<ListJobsRequest_Response> =
6440
- z
6441
- .object({
6442
- jobs: z.array(z.lazy(() => unmarshalBaseJobSchema)).optional(),
6443
- has_more: z.boolean().optional(),
6444
- next_page_token: z.string().optional(),
6445
- prev_page_token: z.string().optional(),
6446
- })
6447
- .transform(d => ({
6448
- jobs: d.jobs,
6449
- hasMore: d.has_more,
6450
- nextPageToken: d.next_page_token,
6451
- prevPageToken: d.prev_page_token,
6452
- }));
6409
+ export const unmarshalListJobsResponseSchema: z.ZodType<ListJobsResponse> = z
6410
+ .object({
6411
+ jobs: z.array(z.lazy(() => unmarshalBaseJobSchema)).optional(),
6412
+ has_more: z.boolean().optional(),
6413
+ next_page_token: z.string().optional(),
6414
+ prev_page_token: z.string().optional(),
6415
+ })
6416
+ .transform(d => ({
6417
+ jobs: d.jobs,
6418
+ hasMore: d.has_more,
6419
+ nextPageToken: d.next_page_token,
6420
+ prevPageToken: d.prev_page_token,
6421
+ }));
6453
6422
 
6454
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
6455
- export const unmarshalListRunsRequest_ResponseSchema: z.ZodType<ListRunsRequest_Response> =
6456
- z
6457
- .object({
6458
- runs: z.array(z.lazy(() => unmarshalBaseRunSchema)).optional(),
6459
- has_more: z.boolean().optional(),
6460
- next_page_token: z.string().optional(),
6461
- prev_page_token: z.string().optional(),
6462
- })
6463
- .transform(d => ({
6464
- runs: d.runs,
6465
- hasMore: d.has_more,
6466
- nextPageToken: d.next_page_token,
6467
- prevPageToken: d.prev_page_token,
6468
- }));
6423
+ export const unmarshalListRunsResponseSchema: z.ZodType<ListRunsResponse> = z
6424
+ .object({
6425
+ runs: z.array(z.lazy(() => unmarshalBaseRunSchema)).optional(),
6426
+ has_more: z.boolean().optional(),
6427
+ next_page_token: z.string().optional(),
6428
+ prev_page_token: z.string().optional(),
6429
+ })
6430
+ .transform(d => ({
6431
+ runs: d.runs,
6432
+ hasMore: d.has_more,
6433
+ nextPageToken: d.next_page_token,
6434
+ prevPageToken: d.prev_page_token,
6435
+ }));
6469
6436
 
6470
6437
  export const unmarshalLocalFileInfoSchema: z.ZodType<LocalFileInfo> = z
6471
6438
  .object({
@@ -6785,21 +6752,18 @@ export const unmarshalRepairSchema: z.ZodType<Repair> = z
6785
6752
  effectivePerformanceTarget: d.effective_performance_target,
6786
6753
  }));
6787
6754
 
6788
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
6789
- export const unmarshalRepairRunRequest_ResponseSchema: z.ZodType<RepairRunRequest_Response> =
6790
- z
6791
- .object({
6792
- repair_id: z
6793
- .union([z.number(), z.bigint()])
6794
- .transform(v => BigInt(v))
6795
- .optional(),
6796
- })
6797
- .transform(d => ({
6798
- repairId: d.repair_id,
6799
- }));
6755
+ export const unmarshalRepairRunResponseSchema: z.ZodType<RepairRunResponse> = z
6756
+ .object({
6757
+ repair_id: z
6758
+ .union([z.number(), z.bigint()])
6759
+ .transform(v => BigInt(v))
6760
+ .optional(),
6761
+ })
6762
+ .transform(d => ({
6763
+ repairId: d.repair_id,
6764
+ }));
6800
6765
 
6801
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
6802
- export const unmarshalResetJobRequest_ResponseSchema: z.ZodType<ResetJobRequest_Response> =
6766
+ export const unmarshalResetJobResponseSchema: z.ZodType<ResetJobResponse> =
6803
6767
  z.object({});
6804
6768
 
6805
6769
  export const unmarshalResolvedValuesSchema: z.ZodType<ResolvedValues> = z
@@ -7162,23 +7126,21 @@ export const unmarshalRunJobTask_RunJobTaskOutputSchema: z.ZodType<RunJobTask_Ru
7162
7126
  runId: d.run_id,
7163
7127
  }));
7164
7128
 
7165
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
7166
- export const unmarshalRunNowRequest_ResponseSchema: z.ZodType<RunNowRequest_Response> =
7167
- z
7168
- .object({
7169
- run_id: z
7170
- .union([z.number(), z.bigint()])
7171
- .transform(v => BigInt(v))
7172
- .optional(),
7173
- number_in_job: z
7174
- .union([z.number(), z.bigint()])
7175
- .transform(v => BigInt(v))
7176
- .optional(),
7177
- })
7178
- .transform(d => ({
7179
- runId: d.run_id,
7180
- numberInJob: d.number_in_job,
7181
- }));
7129
+ export const unmarshalRunNowResponseSchema: z.ZodType<RunNowResponse> = z
7130
+ .object({
7131
+ run_id: z
7132
+ .union([z.number(), z.bigint()])
7133
+ .transform(v => BigInt(v))
7134
+ .optional(),
7135
+ number_in_job: z
7136
+ .union([z.number(), z.bigint()])
7137
+ .transform(v => BigInt(v))
7138
+ .optional(),
7139
+ })
7140
+ .transform(d => ({
7141
+ runId: d.run_id,
7142
+ numberInJob: d.number_in_job,
7143
+ }));
7182
7144
 
7183
7145
  export const unmarshalRunParametersSchema: z.ZodType<RunParameters> = z
7184
7146
  .object({
@@ -7762,18 +7724,16 @@ export const unmarshalSqlTaskSubscriptionSchema: z.ZodType<SqlTaskSubscription>
7762
7724
  : undefined,
7763
7725
  }));
7764
7726
 
7765
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
7766
- export const unmarshalSubmitRunRequest_ResponseSchema: z.ZodType<SubmitRunRequest_Response> =
7767
- z
7768
- .object({
7769
- run_id: z
7770
- .union([z.number(), z.bigint()])
7771
- .transform(v => BigInt(v))
7772
- .optional(),
7773
- })
7774
- .transform(d => ({
7775
- runId: d.run_id,
7776
- }));
7727
+ export const unmarshalSubmitRunResponseSchema: z.ZodType<SubmitRunResponse> = z
7728
+ .object({
7729
+ run_id: z
7730
+ .union([z.number(), z.bigint()])
7731
+ .transform(v => BigInt(v))
7732
+ .optional(),
7733
+ })
7734
+ .transform(d => ({
7735
+ runId: d.run_id,
7736
+ }));
7777
7737
 
7778
7738
  export const unmarshalSubscriptionSchema: z.ZodType<Subscription> = z
7779
7739
  .object({
@@ -8089,8 +8049,7 @@ export const unmarshalTriggerStateSchema: z.ZodType<TriggerState> = z
8089
8049
  : undefined,
8090
8050
  }));
8091
8051
 
8092
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
8093
- export const unmarshalUpdateJobRequest_ResponseSchema: z.ZodType<UpdateJobRequest_Response> =
8052
+ export const unmarshalUpdateJobResponseSchema: z.ZodType<UpdateJobResponse> =
8094
8053
  z.object({});
8095
8054
 
8096
8055
  export const unmarshalViewItemSchema: z.ZodType<ViewItem> = z