@databricks/sdk-dataquality 0.33.0 → 0.35.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/v1/model.js CHANGED
@@ -1,578 +1,439 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { FieldMask } from '@databricks/sdk-core/wkt';
3
- import { z } from 'zod';
1
+ import { FieldMask } from "@databricks/sdk-core/wkt";
2
+ import { z } from "zod";
3
+
4
+ //#region src/v1/model.ts
4
5
  /** The granularity for aggregating data into time windows based on their timestamp. */
5
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
6
- export const AggregationGranularity = {
7
- AGGREGATION_GRANULARITY_UNSPECIFIED: 'AGGREGATION_GRANULARITY_UNSPECIFIED',
8
- /** 5 minutes. */
9
- AGGREGATION_GRANULARITY_5_MINUTES: 'AGGREGATION_GRANULARITY_5_MINUTES',
10
- /** 30 minutes. */
11
- AGGREGATION_GRANULARITY_30_MINUTES: 'AGGREGATION_GRANULARITY_30_MINUTES',
12
- /** 1 hour. */
13
- AGGREGATION_GRANULARITY_1_HOUR: 'AGGREGATION_GRANULARITY_1_HOUR',
14
- /** 1 day. */
15
- AGGREGATION_GRANULARITY_1_DAY: 'AGGREGATION_GRANULARITY_1_DAY',
16
- /** 1 week. */
17
- AGGREGATION_GRANULARITY_1_WEEK: 'AGGREGATION_GRANULARITY_1_WEEK',
18
- /** 2 weeks. */
19
- AGGREGATION_GRANULARITY_2_WEEKS: 'AGGREGATION_GRANULARITY_2_WEEKS',
20
- /** 3 weeks. */
21
- AGGREGATION_GRANULARITY_3_WEEKS: 'AGGREGATION_GRANULARITY_3_WEEKS',
22
- /** 4 weeks. */
23
- AGGREGATION_GRANULARITY_4_WEEKS: 'AGGREGATION_GRANULARITY_4_WEEKS',
24
- /** 1 month. */
25
- AGGREGATION_GRANULARITY_1_MONTH: 'AGGREGATION_GRANULARITY_1_MONTH',
26
- /** 1 year. */
27
- AGGREGATION_GRANULARITY_1_YEAR: 'AGGREGATION_GRANULARITY_1_YEAR',
6
+ const AggregationGranularity = {
7
+ AGGREGATION_GRANULARITY_UNSPECIFIED: "AGGREGATION_GRANULARITY_UNSPECIFIED",
8
+ AGGREGATION_GRANULARITY_5_MINUTES: "AGGREGATION_GRANULARITY_5_MINUTES",
9
+ AGGREGATION_GRANULARITY_30_MINUTES: "AGGREGATION_GRANULARITY_30_MINUTES",
10
+ AGGREGATION_GRANULARITY_1_HOUR: "AGGREGATION_GRANULARITY_1_HOUR",
11
+ AGGREGATION_GRANULARITY_1_DAY: "AGGREGATION_GRANULARITY_1_DAY",
12
+ AGGREGATION_GRANULARITY_1_WEEK: "AGGREGATION_GRANULARITY_1_WEEK",
13
+ AGGREGATION_GRANULARITY_2_WEEKS: "AGGREGATION_GRANULARITY_2_WEEKS",
14
+ AGGREGATION_GRANULARITY_3_WEEKS: "AGGREGATION_GRANULARITY_3_WEEKS",
15
+ AGGREGATION_GRANULARITY_4_WEEKS: "AGGREGATION_GRANULARITY_4_WEEKS",
16
+ AGGREGATION_GRANULARITY_1_MONTH: "AGGREGATION_GRANULARITY_1_MONTH",
17
+ AGGREGATION_GRANULARITY_1_YEAR: "AGGREGATION_GRANULARITY_1_YEAR"
28
18
  };
29
19
  /** The data quality monitoring workflow cron schedule pause status. */
30
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
31
- export const CronSchedulePauseStatus = {
32
- CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED: 'CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED',
33
- /** The cron schedule is not paused. */
34
- CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED: 'CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED',
35
- /** The cron schedule is paused. */
36
- CRON_SCHEDULE_PAUSE_STATUS_PAUSED: 'CRON_SCHEDULE_PAUSE_STATUS_PAUSED',
20
+ const CronSchedulePauseStatus = {
21
+ CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED: "CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED",
22
+ CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED: "CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED",
23
+ CRON_SCHEDULE_PAUSE_STATUS_PAUSED: "CRON_SCHEDULE_PAUSE_STATUS_PAUSED"
37
24
  };
38
25
  /** The custom metric type. */
39
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
40
- export const DataProfilingCustomMetricType = {
41
- DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED: 'DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED',
42
- /** Only depend on the existing columns in the table. */
43
- DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE: 'DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE',
44
- /** Only depend on previously computed aggregate metrics. */
45
- DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED: 'DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED',
46
- /** Depend on previously computed aggregate or derived metrics. */
47
- DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT: 'DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT',
26
+ const DataProfilingCustomMetricType = {
27
+ DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED: "DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED",
28
+ DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE: "DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE",
29
+ DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED: "DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED",
30
+ DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT: "DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT"
48
31
  };
49
32
  /** The status of the data profiling monitor. */
50
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
51
- export const DataProfilingStatus = {
52
- DATA_PROFILING_STATUS_UNSPECIFIED: 'DATA_PROFILING_STATUS_UNSPECIFIED',
53
- DATA_PROFILING_STATUS_ACTIVE: 'DATA_PROFILING_STATUS_ACTIVE',
54
- DATA_PROFILING_STATUS_PENDING: 'DATA_PROFILING_STATUS_PENDING',
55
- DATA_PROFILING_STATUS_DELETE_PENDING: 'DATA_PROFILING_STATUS_DELETE_PENDING',
56
- DATA_PROFILING_STATUS_ERROR: 'DATA_PROFILING_STATUS_ERROR',
57
- DATA_PROFILING_STATUS_FAILED: 'DATA_PROFILING_STATUS_FAILED',
33
+ const DataProfilingStatus = {
34
+ DATA_PROFILING_STATUS_UNSPECIFIED: "DATA_PROFILING_STATUS_UNSPECIFIED",
35
+ DATA_PROFILING_STATUS_ACTIVE: "DATA_PROFILING_STATUS_ACTIVE",
36
+ DATA_PROFILING_STATUS_PENDING: "DATA_PROFILING_STATUS_PENDING",
37
+ DATA_PROFILING_STATUS_DELETE_PENDING: "DATA_PROFILING_STATUS_DELETE_PENDING",
38
+ DATA_PROFILING_STATUS_ERROR: "DATA_PROFILING_STATUS_ERROR",
39
+ DATA_PROFILING_STATUS_FAILED: "DATA_PROFILING_STATUS_FAILED"
58
40
  };
59
41
  /** Inference problem type the model aims to solve. */
60
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
61
- export const InferenceProblemType = {
62
- INFERENCE_PROBLEM_TYPE_UNSPECIFIED: 'INFERENCE_PROBLEM_TYPE_UNSPECIFIED',
63
- /** Classification inference problem. */
64
- INFERENCE_PROBLEM_TYPE_CLASSIFICATION: 'INFERENCE_PROBLEM_TYPE_CLASSIFICATION',
65
- /** Regression inference problem. */
66
- INFERENCE_PROBLEM_TYPE_REGRESSION: 'INFERENCE_PROBLEM_TYPE_REGRESSION',
42
+ const InferenceProblemType = {
43
+ INFERENCE_PROBLEM_TYPE_UNSPECIFIED: "INFERENCE_PROBLEM_TYPE_UNSPECIFIED",
44
+ INFERENCE_PROBLEM_TYPE_CLASSIFICATION: "INFERENCE_PROBLEM_TYPE_CLASSIFICATION",
45
+ INFERENCE_PROBLEM_TYPE_REGRESSION: "INFERENCE_PROBLEM_TYPE_REGRESSION"
67
46
  };
68
47
  /** The state of the refresh. */
69
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
70
- export const RefreshState = {
71
- MONITOR_REFRESH_STATE_UNKNOWN: 'MONITOR_REFRESH_STATE_UNKNOWN',
72
- /** The refresh is pending. */
73
- MONITOR_REFRESH_STATE_PENDING: 'MONITOR_REFRESH_STATE_PENDING',
74
- /** The refresh is running. */
75
- MONITOR_REFRESH_STATE_RUNNING: 'MONITOR_REFRESH_STATE_RUNNING',
76
- /** The refresh is successful. */
77
- MONITOR_REFRESH_STATE_SUCCESS: 'MONITOR_REFRESH_STATE_SUCCESS',
78
- /** The refresh has failed. */
79
- MONITOR_REFRESH_STATE_FAILED: 'MONITOR_REFRESH_STATE_FAILED',
80
- /** The refresh is cancelled. */
81
- MONITOR_REFRESH_STATE_CANCELED: 'MONITOR_REFRESH_STATE_CANCELED',
48
+ const RefreshState = {
49
+ MONITOR_REFRESH_STATE_UNKNOWN: "MONITOR_REFRESH_STATE_UNKNOWN",
50
+ MONITOR_REFRESH_STATE_PENDING: "MONITOR_REFRESH_STATE_PENDING",
51
+ MONITOR_REFRESH_STATE_RUNNING: "MONITOR_REFRESH_STATE_RUNNING",
52
+ MONITOR_REFRESH_STATE_SUCCESS: "MONITOR_REFRESH_STATE_SUCCESS",
53
+ MONITOR_REFRESH_STATE_FAILED: "MONITOR_REFRESH_STATE_FAILED",
54
+ MONITOR_REFRESH_STATE_CANCELED: "MONITOR_REFRESH_STATE_CANCELED"
82
55
  };
83
56
  /** The trigger of the refresh. */
84
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
85
- export const RefreshTrigger = {
86
- MONITOR_REFRESH_TRIGGER_UNKNOWN: 'MONITOR_REFRESH_TRIGGER_UNKNOWN',
87
- /** The refresh has been triggered manually. */
88
- MONITOR_REFRESH_TRIGGER_MANUAL: 'MONITOR_REFRESH_TRIGGER_MANUAL',
89
- /** The refresh has been triggered from a schedule. */
90
- MONITOR_REFRESH_TRIGGER_SCHEDULE: 'MONITOR_REFRESH_TRIGGER_SCHEDULE',
91
- /** The refresh has been triggered from a data change. */
92
- MONITOR_REFRESH_TRIGGER_DATA_CHANGE: 'MONITOR_REFRESH_TRIGGER_DATA_CHANGE',
57
+ const RefreshTrigger = {
58
+ MONITOR_REFRESH_TRIGGER_UNKNOWN: "MONITOR_REFRESH_TRIGGER_UNKNOWN",
59
+ MONITOR_REFRESH_TRIGGER_MANUAL: "MONITOR_REFRESH_TRIGGER_MANUAL",
60
+ MONITOR_REFRESH_TRIGGER_SCHEDULE: "MONITOR_REFRESH_TRIGGER_SCHEDULE",
61
+ MONITOR_REFRESH_TRIGGER_DATA_CHANGE: "MONITOR_REFRESH_TRIGGER_DATA_CHANGE"
93
62
  };
94
- export const unmarshalAnomalyDetectionConfigSchema = z
95
- .object({
96
- excluded_table_full_names: z.array(z.string()).optional(),
97
- })
98
- .transform(d => ({
99
- excludedTableFullNames: d.excluded_table_full_names,
63
+ const unmarshalAnomalyDetectionConfigSchema = z.object({ excluded_table_full_names: z.array(z.string()).optional() }).transform((d) => ({ excludedTableFullNames: d.excluded_table_full_names }));
64
+ const unmarshalCancelRefreshResponseSchema = z.object({ refresh: z.lazy(() => unmarshalRefreshSchema).optional() }).transform((d) => ({ refresh: d.refresh }));
65
+ const unmarshalCronScheduleSchema = z.object({
66
+ quartz_cron_expression: z.string().optional(),
67
+ timezone_id: z.string().optional(),
68
+ pause_status: z.string().optional()
69
+ }).transform((d) => ({
70
+ quartzCronExpression: d.quartz_cron_expression,
71
+ timezoneId: d.timezone_id,
72
+ pauseStatus: d.pause_status
100
73
  }));
101
- export const unmarshalCancelRefreshResponseSchema = z
102
- .object({
103
- refresh: z.lazy(() => unmarshalRefreshSchema).optional(),
104
- })
105
- .transform(d => ({
106
- refresh: d.refresh,
74
+ const unmarshalDataProfilingConfigSchema = z.object({
75
+ output_schema_id: z.string().optional(),
76
+ assets_dir: z.string().optional(),
77
+ inference_log: z.lazy(() => unmarshalInferenceLogConfigSchema).optional(),
78
+ time_series: z.lazy(() => unmarshalTimeSeriesConfigSchema).optional(),
79
+ snapshot: z.lazy(() => unmarshalSnapshotConfigSchema).optional(),
80
+ slicing_exprs: z.array(z.string()).optional(),
81
+ custom_metrics: z.array(z.lazy(() => unmarshalDataProfilingCustomMetricSchema)).optional(),
82
+ baseline_table_name: z.string().optional(),
83
+ schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),
84
+ notification_settings: z.lazy(() => unmarshalNotificationSettingsSchema).optional(),
85
+ skip_builtin_dashboard: z.boolean().optional(),
86
+ warehouse_id: z.string().optional(),
87
+ monitored_table_name: z.string().optional(),
88
+ status: z.string().optional(),
89
+ latest_monitor_failure_message: z.string().optional(),
90
+ profile_metrics_table_name: z.string().optional(),
91
+ drift_metrics_table_name: z.string().optional(),
92
+ dashboard_id: z.string().optional(),
93
+ monitor_version: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
94
+ effective_warehouse_id: z.string().optional()
95
+ }).transform((d) => ({
96
+ outputSchemaId: d.output_schema_id,
97
+ assetsDir: d.assets_dir,
98
+ analysisConfig: d.inference_log !== void 0 ? {
99
+ $case: "inferenceLog",
100
+ inferenceLog: d.inference_log
101
+ } : d.time_series !== void 0 ? {
102
+ $case: "timeSeries",
103
+ timeSeries: d.time_series
104
+ } : d.snapshot !== void 0 ? {
105
+ $case: "snapshot",
106
+ snapshot: d.snapshot
107
+ } : void 0,
108
+ slicingExprs: d.slicing_exprs,
109
+ customMetrics: d.custom_metrics,
110
+ baselineTableName: d.baseline_table_name,
111
+ schedule: d.schedule,
112
+ notificationSettings: d.notification_settings,
113
+ skipBuiltinDashboard: d.skip_builtin_dashboard,
114
+ warehouseId: d.warehouse_id,
115
+ monitoredTableName: d.monitored_table_name,
116
+ status: d.status,
117
+ latestMonitorFailureMessage: d.latest_monitor_failure_message,
118
+ profileMetricsTableName: d.profile_metrics_table_name,
119
+ driftMetricsTableName: d.drift_metrics_table_name,
120
+ dashboardId: d.dashboard_id,
121
+ monitorVersion: d.monitor_version,
122
+ effectiveWarehouseId: d.effective_warehouse_id
107
123
  }));
108
- export const unmarshalCronScheduleSchema = z
109
- .object({
110
- quartz_cron_expression: z.string().optional(),
111
- timezone_id: z.string().optional(),
112
- pause_status: z.string().optional(),
113
- })
114
- .transform(d => ({
115
- quartzCronExpression: d.quartz_cron_expression,
116
- timezoneId: d.timezone_id,
117
- pauseStatus: d.pause_status,
124
+ const unmarshalDataProfilingCustomMetricSchema = z.object({
125
+ name: z.string().optional(),
126
+ definition: z.string().optional(),
127
+ input_columns: z.array(z.string()).optional(),
128
+ output_data_type: z.string().optional(),
129
+ type: z.string().optional()
130
+ }).transform((d) => ({
131
+ name: d.name,
132
+ definition: d.definition,
133
+ inputColumns: d.input_columns,
134
+ outputDataType: d.output_data_type,
135
+ type: d.type
118
136
  }));
119
- export const unmarshalDataProfilingConfigSchema = z
120
- .object({
121
- output_schema_id: z.string().optional(),
122
- assets_dir: z.string().optional(),
123
- inference_log: z.lazy(() => unmarshalInferenceLogConfigSchema).optional(),
124
- time_series: z.lazy(() => unmarshalTimeSeriesConfigSchema).optional(),
125
- snapshot: z.lazy(() => unmarshalSnapshotConfigSchema).optional(),
126
- slicing_exprs: z.array(z.string()).optional(),
127
- custom_metrics: z
128
- .array(z.lazy(() => unmarshalDataProfilingCustomMetricSchema))
129
- .optional(),
130
- baseline_table_name: z.string().optional(),
131
- schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),
132
- notification_settings: z
133
- .lazy(() => unmarshalNotificationSettingsSchema)
134
- .optional(),
135
- skip_builtin_dashboard: z.boolean().optional(),
136
- warehouse_id: z.string().optional(),
137
- monitored_table_name: z.string().optional(),
138
- status: z.string().optional(),
139
- latest_monitor_failure_message: z.string().optional(),
140
- profile_metrics_table_name: z.string().optional(),
141
- drift_metrics_table_name: z.string().optional(),
142
- dashboard_id: z.string().optional(),
143
- monitor_version: z
144
- .union([z.number(), z.bigint()])
145
- .transform(v => BigInt(v))
146
- .optional(),
147
- effective_warehouse_id: z.string().optional(),
148
- })
149
- .transform(d => ({
150
- outputSchemaId: d.output_schema_id,
151
- assetsDir: d.assets_dir,
152
- analysisConfig: d.inference_log !== undefined
153
- ? { $case: 'inferenceLog', inferenceLog: d.inference_log }
154
- : d.time_series !== undefined
155
- ? { $case: 'timeSeries', timeSeries: d.time_series }
156
- : d.snapshot !== undefined
157
- ? { $case: 'snapshot', snapshot: d.snapshot }
158
- : undefined,
159
- slicingExprs: d.slicing_exprs,
160
- customMetrics: d.custom_metrics,
161
- baselineTableName: d.baseline_table_name,
162
- schedule: d.schedule,
163
- notificationSettings: d.notification_settings,
164
- skipBuiltinDashboard: d.skip_builtin_dashboard,
165
- warehouseId: d.warehouse_id,
166
- monitoredTableName: d.monitored_table_name,
167
- status: d.status,
168
- latestMonitorFailureMessage: d.latest_monitor_failure_message,
169
- profileMetricsTableName: d.profile_metrics_table_name,
170
- driftMetricsTableName: d.drift_metrics_table_name,
171
- dashboardId: d.dashboard_id,
172
- monitorVersion: d.monitor_version,
173
- effectiveWarehouseId: d.effective_warehouse_id,
137
+ const unmarshalInferenceLogConfigSchema = z.object({
138
+ problem_type: z.string().optional(),
139
+ timestamp_column: z.string().optional(),
140
+ granularities: z.array(z.string()).optional(),
141
+ prediction_column: z.string().optional(),
142
+ label_column: z.string().optional(),
143
+ model_id_column: z.string().optional()
144
+ }).transform((d) => ({
145
+ problemType: d.problem_type,
146
+ timestampColumn: d.timestamp_column,
147
+ granularities: d.granularities,
148
+ predictionColumn: d.prediction_column,
149
+ labelColumn: d.label_column,
150
+ modelIdColumn: d.model_id_column
174
151
  }));
175
- export const unmarshalDataProfilingCustomMetricSchema = z
176
- .object({
177
- name: z.string().optional(),
178
- definition: z.string().optional(),
179
- input_columns: z.array(z.string()).optional(),
180
- output_data_type: z.string().optional(),
181
- type: z.string().optional(),
182
- })
183
- .transform(d => ({
184
- name: d.name,
185
- definition: d.definition,
186
- inputColumns: d.input_columns,
187
- outputDataType: d.output_data_type,
188
- type: d.type,
152
+ const unmarshalListMonitorResponseSchema = z.object({
153
+ monitors: z.array(z.lazy(() => unmarshalMonitorSchema)).optional(),
154
+ next_page_token: z.string().optional()
155
+ }).transform((d) => ({
156
+ monitors: d.monitors,
157
+ nextPageToken: d.next_page_token
189
158
  }));
190
- export const unmarshalInferenceLogConfigSchema = z
191
- .object({
192
- problem_type: z.string().optional(),
193
- timestamp_column: z.string().optional(),
194
- granularities: z.array(z.string()).optional(),
195
- prediction_column: z.string().optional(),
196
- label_column: z.string().optional(),
197
- model_id_column: z.string().optional(),
198
- })
199
- .transform(d => ({
200
- problemType: d.problem_type,
201
- timestampColumn: d.timestamp_column,
202
- granularities: d.granularities,
203
- predictionColumn: d.prediction_column,
204
- labelColumn: d.label_column,
205
- modelIdColumn: d.model_id_column,
159
+ const unmarshalListRefreshResponseSchema = z.object({
160
+ refreshes: z.array(z.lazy(() => unmarshalRefreshSchema)).optional(),
161
+ next_page_token: z.string().optional()
162
+ }).transform((d) => ({
163
+ refreshes: d.refreshes,
164
+ nextPageToken: d.next_page_token
206
165
  }));
207
- export const unmarshalListMonitorResponseSchema = z
208
- .object({
209
- monitors: z.array(z.lazy(() => unmarshalMonitorSchema)).optional(),
210
- next_page_token: z.string().optional(),
211
- })
212
- .transform(d => ({
213
- monitors: d.monitors,
214
- nextPageToken: d.next_page_token,
166
+ const unmarshalMonitorSchema = z.object({
167
+ object_type: z.string().optional(),
168
+ object_id: z.string().optional(),
169
+ anomaly_detection_config: z.lazy(() => unmarshalAnomalyDetectionConfigSchema).optional(),
170
+ data_profiling_config: z.lazy(() => unmarshalDataProfilingConfigSchema).optional()
171
+ }).transform((d) => ({
172
+ objectType: d.object_type,
173
+ objectId: d.object_id,
174
+ anomalyDetectionConfig: d.anomaly_detection_config,
175
+ dataProfilingConfig: d.data_profiling_config
215
176
  }));
216
- export const unmarshalListRefreshResponseSchema = z
217
- .object({
218
- refreshes: z.array(z.lazy(() => unmarshalRefreshSchema)).optional(),
219
- next_page_token: z.string().optional(),
220
- })
221
- .transform(d => ({
222
- refreshes: d.refreshes,
223
- nextPageToken: d.next_page_token,
177
+ const unmarshalNotificationDestinationSchema = z.object({ email_addresses: z.array(z.string()).optional() }).transform((d) => ({ emailAddresses: d.email_addresses }));
178
+ const unmarshalNotificationSettingsSchema = z.object({ on_failure: z.lazy(() => unmarshalNotificationDestinationSchema).optional() }).transform((d) => ({ onFailure: d.on_failure }));
179
+ const unmarshalRefreshSchema = z.object({
180
+ object_type: z.string().optional(),
181
+ object_id: z.string().optional(),
182
+ refresh_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
183
+ state: z.string().optional(),
184
+ message: z.string().optional(),
185
+ start_time_ms: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
186
+ end_time_ms: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
187
+ trigger: z.string().optional()
188
+ }).transform((d) => ({
189
+ objectType: d.object_type,
190
+ objectId: d.object_id,
191
+ refreshId: d.refresh_id,
192
+ state: d.state,
193
+ message: d.message,
194
+ startTimeMs: d.start_time_ms,
195
+ endTimeMs: d.end_time_ms,
196
+ trigger: d.trigger
224
197
  }));
225
- export const unmarshalMonitorSchema = z
226
- .object({
227
- object_type: z.string().optional(),
228
- object_id: z.string().optional(),
229
- anomaly_detection_config: z
230
- .lazy(() => unmarshalAnomalyDetectionConfigSchema)
231
- .optional(),
232
- data_profiling_config: z
233
- .lazy(() => unmarshalDataProfilingConfigSchema)
234
- .optional(),
235
- })
236
- .transform(d => ({
237
- objectType: d.object_type,
238
- objectId: d.object_id,
239
- anomalyDetectionConfig: d.anomaly_detection_config,
240
- dataProfilingConfig: d.data_profiling_config,
198
+ const unmarshalSnapshotConfigSchema = z.object({});
199
+ const unmarshalTimeSeriesConfigSchema = z.object({
200
+ timestamp_column: z.string().optional(),
201
+ granularities: z.array(z.string()).optional()
202
+ }).transform((d) => ({
203
+ timestampColumn: d.timestamp_column,
204
+ granularities: d.granularities
241
205
  }));
242
- export const unmarshalNotificationDestinationSchema = z
243
- .object({
244
- email_addresses: z.array(z.string()).optional(),
245
- })
246
- .transform(d => ({
247
- emailAddresses: d.email_addresses,
206
+ const marshalAnomalyDetectionConfigSchema = z.object({ excludedTableFullNames: z.array(z.string()).optional() }).transform((d) => ({ excluded_table_full_names: d.excludedTableFullNames }));
207
+ const marshalCancelRefreshRequestSchema = z.object({
208
+ objectType: z.string().optional(),
209
+ objectId: z.string().optional(),
210
+ refreshId: z.bigint().optional()
211
+ }).transform((d) => ({
212
+ object_type: d.objectType,
213
+ object_id: d.objectId,
214
+ refresh_id: d.refreshId
248
215
  }));
249
- export const unmarshalNotificationSettingsSchema = z
250
- .object({
251
- on_failure: z
252
- .lazy(() => unmarshalNotificationDestinationSchema)
253
- .optional(),
254
- })
255
- .transform(d => ({
256
- onFailure: d.on_failure,
216
+ const marshalCronScheduleSchema = z.object({
217
+ quartzCronExpression: z.string().optional(),
218
+ timezoneId: z.string().optional(),
219
+ pauseStatus: z.string().optional()
220
+ }).transform((d) => ({
221
+ quartz_cron_expression: d.quartzCronExpression,
222
+ timezone_id: d.timezoneId,
223
+ pause_status: d.pauseStatus
257
224
  }));
258
- export const unmarshalRefreshSchema = z
259
- .object({
260
- object_type: z.string().optional(),
261
- object_id: z.string().optional(),
262
- refresh_id: z
263
- .union([z.number(), z.bigint()])
264
- .transform(v => BigInt(v))
265
- .optional(),
266
- state: z.string().optional(),
267
- message: z.string().optional(),
268
- start_time_ms: z
269
- .union([z.number(), z.bigint()])
270
- .transform(v => BigInt(v))
271
- .optional(),
272
- end_time_ms: z
273
- .union([z.number(), z.bigint()])
274
- .transform(v => BigInt(v))
275
- .optional(),
276
- trigger: z.string().optional(),
277
- })
278
- .transform(d => ({
279
- objectType: d.object_type,
280
- objectId: d.object_id,
281
- refreshId: d.refresh_id,
282
- state: d.state,
283
- message: d.message,
284
- startTimeMs: d.start_time_ms,
285
- endTimeMs: d.end_time_ms,
286
- trigger: d.trigger,
225
+ const marshalDataProfilingConfigSchema = z.object({
226
+ outputSchemaId: z.string().optional(),
227
+ assetsDir: z.string().optional(),
228
+ analysisConfig: z.discriminatedUnion("$case", [
229
+ z.object({
230
+ $case: z.literal("inferenceLog"),
231
+ inferenceLog: z.lazy(() => marshalInferenceLogConfigSchema)
232
+ }),
233
+ z.object({
234
+ $case: z.literal("timeSeries"),
235
+ timeSeries: z.lazy(() => marshalTimeSeriesConfigSchema)
236
+ }),
237
+ z.object({
238
+ $case: z.literal("snapshot"),
239
+ snapshot: z.lazy(() => marshalSnapshotConfigSchema)
240
+ })
241
+ ]).optional(),
242
+ slicingExprs: z.array(z.string()).optional(),
243
+ customMetrics: z.array(z.lazy(() => marshalDataProfilingCustomMetricSchema)).optional(),
244
+ baselineTableName: z.string().optional(),
245
+ schedule: z.lazy(() => marshalCronScheduleSchema).optional(),
246
+ notificationSettings: z.lazy(() => marshalNotificationSettingsSchema).optional(),
247
+ skipBuiltinDashboard: z.boolean().optional(),
248
+ warehouseId: z.string().optional(),
249
+ monitoredTableName: z.string().optional(),
250
+ status: z.string().optional(),
251
+ latestMonitorFailureMessage: z.string().optional(),
252
+ profileMetricsTableName: z.string().optional(),
253
+ driftMetricsTableName: z.string().optional(),
254
+ dashboardId: z.string().optional(),
255
+ monitorVersion: z.bigint().optional(),
256
+ effectiveWarehouseId: z.string().optional()
257
+ }).transform((d) => ({
258
+ output_schema_id: d.outputSchemaId,
259
+ assets_dir: d.assetsDir,
260
+ ...d.analysisConfig?.$case === "inferenceLog" && { inference_log: d.analysisConfig.inferenceLog },
261
+ ...d.analysisConfig?.$case === "timeSeries" && { time_series: d.analysisConfig.timeSeries },
262
+ ...d.analysisConfig?.$case === "snapshot" && { snapshot: d.analysisConfig.snapshot },
263
+ slicing_exprs: d.slicingExprs,
264
+ custom_metrics: d.customMetrics,
265
+ baseline_table_name: d.baselineTableName,
266
+ schedule: d.schedule,
267
+ notification_settings: d.notificationSettings,
268
+ skip_builtin_dashboard: d.skipBuiltinDashboard,
269
+ warehouse_id: d.warehouseId,
270
+ monitored_table_name: d.monitoredTableName,
271
+ status: d.status,
272
+ latest_monitor_failure_message: d.latestMonitorFailureMessage,
273
+ profile_metrics_table_name: d.profileMetricsTableName,
274
+ drift_metrics_table_name: d.driftMetricsTableName,
275
+ dashboard_id: d.dashboardId,
276
+ monitor_version: d.monitorVersion,
277
+ effective_warehouse_id: d.effectiveWarehouseId
287
278
  }));
288
- export const unmarshalSnapshotConfigSchema = z.object({});
289
- export const unmarshalTimeSeriesConfigSchema = z
290
- .object({
291
- timestamp_column: z.string().optional(),
292
- granularities: z.array(z.string()).optional(),
293
- })
294
- .transform(d => ({
295
- timestampColumn: d.timestamp_column,
296
- granularities: d.granularities,
279
+ const marshalDataProfilingCustomMetricSchema = z.object({
280
+ name: z.string().optional(),
281
+ definition: z.string().optional(),
282
+ inputColumns: z.array(z.string()).optional(),
283
+ outputDataType: z.string().optional(),
284
+ type: z.string().optional()
285
+ }).transform((d) => ({
286
+ name: d.name,
287
+ definition: d.definition,
288
+ input_columns: d.inputColumns,
289
+ output_data_type: d.outputDataType,
290
+ type: d.type
297
291
  }));
298
- export const marshalAnomalyDetectionConfigSchema = z
299
- .object({
300
- excludedTableFullNames: z.array(z.string()).optional(),
301
- })
302
- .transform(d => ({
303
- excluded_table_full_names: d.excludedTableFullNames,
292
+ const marshalInferenceLogConfigSchema = z.object({
293
+ problemType: z.string().optional(),
294
+ timestampColumn: z.string().optional(),
295
+ granularities: z.array(z.string()).optional(),
296
+ predictionColumn: z.string().optional(),
297
+ labelColumn: z.string().optional(),
298
+ modelIdColumn: z.string().optional()
299
+ }).transform((d) => ({
300
+ problem_type: d.problemType,
301
+ timestamp_column: d.timestampColumn,
302
+ granularities: d.granularities,
303
+ prediction_column: d.predictionColumn,
304
+ label_column: d.labelColumn,
305
+ model_id_column: d.modelIdColumn
304
306
  }));
305
- export const marshalCancelRefreshRequestSchema = z
306
- .object({
307
- objectType: z.string().optional(),
308
- objectId: z.string().optional(),
309
- refreshId: z.bigint().optional(),
310
- })
311
- .transform(d => ({
312
- object_type: d.objectType,
313
- object_id: d.objectId,
314
- refresh_id: d.refreshId,
307
+ const marshalMonitorSchema = z.object({
308
+ objectType: z.string().optional(),
309
+ objectId: z.string().optional(),
310
+ anomalyDetectionConfig: z.lazy(() => marshalAnomalyDetectionConfigSchema).optional(),
311
+ dataProfilingConfig: z.lazy(() => marshalDataProfilingConfigSchema).optional()
312
+ }).transform((d) => ({
313
+ object_type: d.objectType,
314
+ object_id: d.objectId,
315
+ anomaly_detection_config: d.anomalyDetectionConfig,
316
+ data_profiling_config: d.dataProfilingConfig
315
317
  }));
316
- export const marshalCronScheduleSchema = z
317
- .object({
318
- quartzCronExpression: z.string().optional(),
319
- timezoneId: z.string().optional(),
320
- pauseStatus: z.string().optional(),
321
- })
322
- .transform(d => ({
323
- quartz_cron_expression: d.quartzCronExpression,
324
- timezone_id: d.timezoneId,
325
- pause_status: d.pauseStatus,
318
+ const marshalNotificationDestinationSchema = z.object({ emailAddresses: z.array(z.string()).optional() }).transform((d) => ({ email_addresses: d.emailAddresses }));
319
+ const marshalNotificationSettingsSchema = z.object({ onFailure: z.lazy(() => marshalNotificationDestinationSchema).optional() }).transform((d) => ({ on_failure: d.onFailure }));
320
+ const marshalRefreshSchema = z.object({
321
+ objectType: z.string().optional(),
322
+ objectId: z.string().optional(),
323
+ refreshId: z.bigint().optional(),
324
+ state: z.string().optional(),
325
+ message: z.string().optional(),
326
+ startTimeMs: z.bigint().optional(),
327
+ endTimeMs: z.bigint().optional(),
328
+ trigger: z.string().optional()
329
+ }).transform((d) => ({
330
+ object_type: d.objectType,
331
+ object_id: d.objectId,
332
+ refresh_id: d.refreshId,
333
+ state: d.state,
334
+ message: d.message,
335
+ start_time_ms: d.startTimeMs,
336
+ end_time_ms: d.endTimeMs,
337
+ trigger: d.trigger
326
338
  }));
327
- export const marshalDataProfilingConfigSchema = z
328
- .object({
329
- outputSchemaId: z.string().optional(),
330
- assetsDir: z.string().optional(),
331
- analysisConfig: z
332
- .discriminatedUnion('$case', [
333
- z.object({
334
- $case: z.literal('inferenceLog'),
335
- inferenceLog: z.lazy(() => marshalInferenceLogConfigSchema),
336
- }),
337
- z.object({
338
- $case: z.literal('timeSeries'),
339
- timeSeries: z.lazy(() => marshalTimeSeriesConfigSchema),
340
- }),
341
- z.object({
342
- $case: z.literal('snapshot'),
343
- snapshot: z.lazy(() => marshalSnapshotConfigSchema),
344
- }),
345
- ])
346
- .optional(),
347
- slicingExprs: z.array(z.string()).optional(),
348
- customMetrics: z
349
- .array(z.lazy(() => marshalDataProfilingCustomMetricSchema))
350
- .optional(),
351
- baselineTableName: z.string().optional(),
352
- schedule: z.lazy(() => marshalCronScheduleSchema).optional(),
353
- notificationSettings: z
354
- .lazy(() => marshalNotificationSettingsSchema)
355
- .optional(),
356
- skipBuiltinDashboard: z.boolean().optional(),
357
- warehouseId: z.string().optional(),
358
- monitoredTableName: z.string().optional(),
359
- status: z.string().optional(),
360
- latestMonitorFailureMessage: z.string().optional(),
361
- profileMetricsTableName: z.string().optional(),
362
- driftMetricsTableName: z.string().optional(),
363
- dashboardId: z.string().optional(),
364
- monitorVersion: z.bigint().optional(),
365
- effectiveWarehouseId: z.string().optional(),
366
- })
367
- .transform(d => ({
368
- output_schema_id: d.outputSchemaId,
369
- assets_dir: d.assetsDir,
370
- ...(d.analysisConfig?.$case === 'inferenceLog' && {
371
- inference_log: d.analysisConfig.inferenceLog,
372
- }),
373
- ...(d.analysisConfig?.$case === 'timeSeries' && {
374
- time_series: d.analysisConfig.timeSeries,
375
- }),
376
- ...(d.analysisConfig?.$case === 'snapshot' && {
377
- snapshot: d.analysisConfig.snapshot,
378
- }),
379
- slicing_exprs: d.slicingExprs,
380
- custom_metrics: d.customMetrics,
381
- baseline_table_name: d.baselineTableName,
382
- schedule: d.schedule,
383
- notification_settings: d.notificationSettings,
384
- skip_builtin_dashboard: d.skipBuiltinDashboard,
385
- warehouse_id: d.warehouseId,
386
- monitored_table_name: d.monitoredTableName,
387
- status: d.status,
388
- latest_monitor_failure_message: d.latestMonitorFailureMessage,
389
- profile_metrics_table_name: d.profileMetricsTableName,
390
- drift_metrics_table_name: d.driftMetricsTableName,
391
- dashboard_id: d.dashboardId,
392
- monitor_version: d.monitorVersion,
393
- effective_warehouse_id: d.effectiveWarehouseId,
339
+ const marshalSnapshotConfigSchema = z.object({});
340
+ const marshalTimeSeriesConfigSchema = z.object({
341
+ timestampColumn: z.string().optional(),
342
+ granularities: z.array(z.string()).optional()
343
+ }).transform((d) => ({
344
+ timestamp_column: d.timestampColumn,
345
+ granularities: d.granularities
394
346
  }));
395
- export const marshalDataProfilingCustomMetricSchema = z
396
- .object({
397
- name: z.string().optional(),
398
- definition: z.string().optional(),
399
- inputColumns: z.array(z.string()).optional(),
400
- outputDataType: z.string().optional(),
401
- type: z.string().optional(),
402
- })
403
- .transform(d => ({
404
- name: d.name,
405
- definition: d.definition,
406
- input_columns: d.inputColumns,
407
- output_data_type: d.outputDataType,
408
- type: d.type,
409
- }));
410
- export const marshalInferenceLogConfigSchema = z
411
- .object({
412
- problemType: z.string().optional(),
413
- timestampColumn: z.string().optional(),
414
- granularities: z.array(z.string()).optional(),
415
- predictionColumn: z.string().optional(),
416
- labelColumn: z.string().optional(),
417
- modelIdColumn: z.string().optional(),
418
- })
419
- .transform(d => ({
420
- problem_type: d.problemType,
421
- timestamp_column: d.timestampColumn,
422
- granularities: d.granularities,
423
- prediction_column: d.predictionColumn,
424
- label_column: d.labelColumn,
425
- model_id_column: d.modelIdColumn,
426
- }));
427
- export const marshalMonitorSchema = z
428
- .object({
429
- objectType: z.string().optional(),
430
- objectId: z.string().optional(),
431
- anomalyDetectionConfig: z
432
- .lazy(() => marshalAnomalyDetectionConfigSchema)
433
- .optional(),
434
- dataProfilingConfig: z
435
- .lazy(() => marshalDataProfilingConfigSchema)
436
- .optional(),
437
- })
438
- .transform(d => ({
439
- object_type: d.objectType,
440
- object_id: d.objectId,
441
- anomaly_detection_config: d.anomalyDetectionConfig,
442
- data_profiling_config: d.dataProfilingConfig,
443
- }));
444
- export const marshalNotificationDestinationSchema = z
445
- .object({
446
- emailAddresses: z.array(z.string()).optional(),
447
- })
448
- .transform(d => ({
449
- email_addresses: d.emailAddresses,
450
- }));
451
- export const marshalNotificationSettingsSchema = z
452
- .object({
453
- onFailure: z.lazy(() => marshalNotificationDestinationSchema).optional(),
454
- })
455
- .transform(d => ({
456
- on_failure: d.onFailure,
457
- }));
458
- export const marshalRefreshSchema = z
459
- .object({
460
- objectType: z.string().optional(),
461
- objectId: z.string().optional(),
462
- refreshId: z.bigint().optional(),
463
- state: z.string().optional(),
464
- message: z.string().optional(),
465
- startTimeMs: z.bigint().optional(),
466
- endTimeMs: z.bigint().optional(),
467
- trigger: z.string().optional(),
468
- })
469
- .transform(d => ({
470
- object_type: d.objectType,
471
- object_id: d.objectId,
472
- refresh_id: d.refreshId,
473
- state: d.state,
474
- message: d.message,
475
- start_time_ms: d.startTimeMs,
476
- end_time_ms: d.endTimeMs,
477
- trigger: d.trigger,
478
- }));
479
- export const marshalSnapshotConfigSchema = z.object({});
480
- export const marshalTimeSeriesConfigSchema = z
481
- .object({
482
- timestampColumn: z.string().optional(),
483
- granularities: z.array(z.string()).optional(),
484
- })
485
- .transform(d => ({
486
- timestamp_column: d.timestampColumn,
487
- granularities: d.granularities,
488
- }));
489
- const anomalyDetectionConfigFieldMaskSchema = {
490
- excludedTableFullNames: { wire: 'excluded_table_full_names' },
491
- };
347
+ const anomalyDetectionConfigFieldMaskSchema = { excludedTableFullNames: { wire: "excluded_table_full_names" } };
492
348
  const cronScheduleFieldMaskSchema = {
493
- pauseStatus: { wire: 'pause_status' },
494
- quartzCronExpression: { wire: 'quartz_cron_expression' },
495
- timezoneId: { wire: 'timezone_id' },
349
+ pauseStatus: { wire: "pause_status" },
350
+ quartzCronExpression: { wire: "quartz_cron_expression" },
351
+ timezoneId: { wire: "timezone_id" }
496
352
  };
497
353
  const dataProfilingConfigFieldMaskSchema = {
498
- assetsDir: { wire: 'assets_dir' },
499
- baselineTableName: { wire: 'baseline_table_name' },
500
- customMetrics: { wire: 'custom_metrics' },
501
- dashboardId: { wire: 'dashboard_id' },
502
- driftMetricsTableName: { wire: 'drift_metrics_table_name' },
503
- effectiveWarehouseId: { wire: 'effective_warehouse_id' },
504
- inferenceLog: {
505
- wire: 'inference_log',
506
- children: () => inferenceLogConfigFieldMaskSchema,
507
- },
508
- latestMonitorFailureMessage: { wire: 'latest_monitor_failure_message' },
509
- monitorVersion: { wire: 'monitor_version' },
510
- monitoredTableName: { wire: 'monitored_table_name' },
511
- notificationSettings: {
512
- wire: 'notification_settings',
513
- children: () => notificationSettingsFieldMaskSchema,
514
- },
515
- outputSchemaId: { wire: 'output_schema_id' },
516
- profileMetricsTableName: { wire: 'profile_metrics_table_name' },
517
- schedule: { wire: 'schedule', children: () => cronScheduleFieldMaskSchema },
518
- skipBuiltinDashboard: { wire: 'skip_builtin_dashboard' },
519
- slicingExprs: { wire: 'slicing_exprs' },
520
- snapshot: { wire: 'snapshot', children: () => snapshotConfigFieldMaskSchema },
521
- status: { wire: 'status' },
522
- timeSeries: {
523
- wire: 'time_series',
524
- children: () => timeSeriesConfigFieldMaskSchema,
525
- },
526
- warehouseId: { wire: 'warehouse_id' },
354
+ assetsDir: { wire: "assets_dir" },
355
+ baselineTableName: { wire: "baseline_table_name" },
356
+ customMetrics: { wire: "custom_metrics" },
357
+ dashboardId: { wire: "dashboard_id" },
358
+ driftMetricsTableName: { wire: "drift_metrics_table_name" },
359
+ effectiveWarehouseId: { wire: "effective_warehouse_id" },
360
+ inferenceLog: {
361
+ wire: "inference_log",
362
+ children: () => inferenceLogConfigFieldMaskSchema
363
+ },
364
+ latestMonitorFailureMessage: { wire: "latest_monitor_failure_message" },
365
+ monitorVersion: { wire: "monitor_version" },
366
+ monitoredTableName: { wire: "monitored_table_name" },
367
+ notificationSettings: {
368
+ wire: "notification_settings",
369
+ children: () => notificationSettingsFieldMaskSchema
370
+ },
371
+ outputSchemaId: { wire: "output_schema_id" },
372
+ profileMetricsTableName: { wire: "profile_metrics_table_name" },
373
+ schedule: {
374
+ wire: "schedule",
375
+ children: () => cronScheduleFieldMaskSchema
376
+ },
377
+ skipBuiltinDashboard: { wire: "skip_builtin_dashboard" },
378
+ slicingExprs: { wire: "slicing_exprs" },
379
+ snapshot: {
380
+ wire: "snapshot",
381
+ children: () => snapshotConfigFieldMaskSchema
382
+ },
383
+ status: { wire: "status" },
384
+ timeSeries: {
385
+ wire: "time_series",
386
+ children: () => timeSeriesConfigFieldMaskSchema
387
+ },
388
+ warehouseId: { wire: "warehouse_id" }
527
389
  };
528
390
  const inferenceLogConfigFieldMaskSchema = {
529
- granularities: { wire: 'granularities' },
530
- labelColumn: { wire: 'label_column' },
531
- modelIdColumn: { wire: 'model_id_column' },
532
- predictionColumn: { wire: 'prediction_column' },
533
- problemType: { wire: 'problem_type' },
534
- timestampColumn: { wire: 'timestamp_column' },
391
+ granularities: { wire: "granularities" },
392
+ labelColumn: { wire: "label_column" },
393
+ modelIdColumn: { wire: "model_id_column" },
394
+ predictionColumn: { wire: "prediction_column" },
395
+ problemType: { wire: "problem_type" },
396
+ timestampColumn: { wire: "timestamp_column" }
535
397
  };
536
398
  const monitorFieldMaskSchema = {
537
- anomalyDetectionConfig: {
538
- wire: 'anomaly_detection_config',
539
- children: () => anomalyDetectionConfigFieldMaskSchema,
540
- },
541
- dataProfilingConfig: {
542
- wire: 'data_profiling_config',
543
- children: () => dataProfilingConfigFieldMaskSchema,
544
- },
545
- objectId: { wire: 'object_id' },
546
- objectType: { wire: 'object_type' },
399
+ anomalyDetectionConfig: {
400
+ wire: "anomaly_detection_config",
401
+ children: () => anomalyDetectionConfigFieldMaskSchema
402
+ },
403
+ dataProfilingConfig: {
404
+ wire: "data_profiling_config",
405
+ children: () => dataProfilingConfigFieldMaskSchema
406
+ },
407
+ objectId: { wire: "object_id" },
408
+ objectType: { wire: "object_type" }
547
409
  };
548
- export function monitorFieldMask(...paths) {
549
- return FieldMask.build(paths, monitorFieldMaskSchema);
410
+ function monitorFieldMask(...paths) {
411
+ return FieldMask.build(paths, monitorFieldMaskSchema);
550
412
  }
551
- const notificationDestinationFieldMaskSchema = {
552
- emailAddresses: { wire: 'email_addresses' },
553
- };
554
- const notificationSettingsFieldMaskSchema = {
555
- onFailure: {
556
- wire: 'on_failure',
557
- children: () => notificationDestinationFieldMaskSchema,
558
- },
559
- };
413
+ const notificationDestinationFieldMaskSchema = { emailAddresses: { wire: "email_addresses" } };
414
+ const notificationSettingsFieldMaskSchema = { onFailure: {
415
+ wire: "on_failure",
416
+ children: () => notificationDestinationFieldMaskSchema
417
+ } };
560
418
  const refreshFieldMaskSchema = {
561
- endTimeMs: { wire: 'end_time_ms' },
562
- message: { wire: 'message' },
563
- objectId: { wire: 'object_id' },
564
- objectType: { wire: 'object_type' },
565
- refreshId: { wire: 'refresh_id' },
566
- startTimeMs: { wire: 'start_time_ms' },
567
- state: { wire: 'state' },
568
- trigger: { wire: 'trigger' },
419
+ endTimeMs: { wire: "end_time_ms" },
420
+ message: { wire: "message" },
421
+ objectId: { wire: "object_id" },
422
+ objectType: { wire: "object_type" },
423
+ refreshId: { wire: "refresh_id" },
424
+ startTimeMs: { wire: "start_time_ms" },
425
+ state: { wire: "state" },
426
+ trigger: { wire: "trigger" }
569
427
  };
570
- export function refreshFieldMask(...paths) {
571
- return FieldMask.build(paths, refreshFieldMaskSchema);
428
+ function refreshFieldMask(...paths) {
429
+ return FieldMask.build(paths, refreshFieldMaskSchema);
572
430
  }
573
431
  const snapshotConfigFieldMaskSchema = {};
574
432
  const timeSeriesConfigFieldMaskSchema = {
575
- granularities: { wire: 'granularities' },
576
- timestampColumn: { wire: 'timestamp_column' },
433
+ granularities: { wire: "granularities" },
434
+ timestampColumn: { wire: "timestamp_column" }
577
435
  };
436
+
437
+ //#endregion
438
+ export { AggregationGranularity, CronSchedulePauseStatus, DataProfilingCustomMetricType, DataProfilingStatus, InferenceProblemType, RefreshState, RefreshTrigger, marshalAnomalyDetectionConfigSchema, marshalCancelRefreshRequestSchema, marshalCronScheduleSchema, marshalDataProfilingConfigSchema, marshalDataProfilingCustomMetricSchema, marshalInferenceLogConfigSchema, marshalMonitorSchema, marshalNotificationDestinationSchema, marshalNotificationSettingsSchema, marshalRefreshSchema, marshalSnapshotConfigSchema, marshalTimeSeriesConfigSchema, monitorFieldMask, refreshFieldMask, unmarshalAnomalyDetectionConfigSchema, unmarshalCancelRefreshResponseSchema, unmarshalCronScheduleSchema, unmarshalDataProfilingConfigSchema, unmarshalDataProfilingCustomMetricSchema, unmarshalInferenceLogConfigSchema, unmarshalListMonitorResponseSchema, unmarshalListRefreshResponseSchema, unmarshalMonitorSchema, unmarshalNotificationDestinationSchema, unmarshalNotificationSettingsSchema, unmarshalRefreshSchema, unmarshalSnapshotConfigSchema, unmarshalTimeSeriesConfigSchema };
578
439
  //# sourceMappingURL=model.js.map