@databricks/sdk-alerts 0.51.0 → 0.52.1
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/package.js +1 -1
- package/dist/v1/model.d.ts +0 -30
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +1 -38
- package/dist/v1/model.js.map +1 -1
- package/dist/v2/index.d.ts +2 -2
- package/dist/v2/index.js +2 -2
- package/dist/v2/model.d.ts +23 -1
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +15 -5
- package/dist/v2/model.js.map +1 -1
- package/package.json +4 -4
package/dist/package.js
CHANGED
package/dist/v1/model.d.ts
CHANGED
|
@@ -98,34 +98,20 @@ interface CreateAlertRequest {
|
|
|
98
98
|
autoResolveDisplayName?: boolean | undefined;
|
|
99
99
|
}
|
|
100
100
|
interface CreateAlertRequestAlert {
|
|
101
|
-
/** UUID identifying the alert. */
|
|
102
|
-
id?: string | undefined;
|
|
103
101
|
/** The display name of the alert. */
|
|
104
102
|
displayName?: string | undefined;
|
|
105
103
|
/** UUID of the query attached to the alert. */
|
|
106
104
|
queryId?: string | undefined;
|
|
107
|
-
/** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */
|
|
108
|
-
state?: AlertState | undefined;
|
|
109
105
|
/** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */
|
|
110
106
|
secondsToRetrigger?: number | undefined;
|
|
111
|
-
/** The workspace state of the alert. Used for tracking trashed status. */
|
|
112
|
-
lifecycleState?: LifecycleState | undefined;
|
|
113
|
-
/** Timestamp when the alert was last triggered, if the alert has been triggered before. */
|
|
114
|
-
triggerTime?: Temporal.Instant | undefined;
|
|
115
107
|
/** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */
|
|
116
108
|
customBody?: string | undefined;
|
|
117
109
|
/** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */
|
|
118
110
|
customSubject?: string | undefined;
|
|
119
111
|
/** Trigger conditions of the alert. */
|
|
120
112
|
condition?: AlertCondition | undefined;
|
|
121
|
-
/** The owner's username. This field is set to "Unavailable" if the user has been deleted. */
|
|
122
|
-
ownerUserName?: string | undefined;
|
|
123
113
|
/** The workspace path of the folder containing the alert. */
|
|
124
114
|
parentPath?: string | undefined;
|
|
125
|
-
/** The timestamp indicating when the alert was created. */
|
|
126
|
-
createTime?: Temporal.Instant | undefined;
|
|
127
|
-
/** The timestamp indicating when the alert was updated. */
|
|
128
|
-
updateTime?: Temporal.Instant | undefined;
|
|
129
115
|
/** Whether to notify alert subscribers when alert returns back to normal. */
|
|
130
116
|
notifyOnOk?: boolean | undefined;
|
|
131
117
|
}
|
|
@@ -168,8 +154,6 @@ interface ListAlertsResponseAlert {
|
|
|
168
154
|
condition?: AlertCondition | undefined;
|
|
169
155
|
/** The owner's username. This field is set to "Unavailable" if the user has been deleted. */
|
|
170
156
|
ownerUserName?: string | undefined;
|
|
171
|
-
/** The workspace path of the folder containing the alert. */
|
|
172
|
-
parentPath?: string | undefined;
|
|
173
157
|
/** The timestamp indicating when the alert was created. */
|
|
174
158
|
createTime?: Temporal.Instant | undefined;
|
|
175
159
|
/** The timestamp indicating when the alert was updated. */
|
|
@@ -188,20 +172,12 @@ interface UpdateAlertRequest {
|
|
|
188
172
|
autoResolveDisplayName?: boolean | undefined;
|
|
189
173
|
}
|
|
190
174
|
interface UpdateAlertRequestAlert {
|
|
191
|
-
/** UUID identifying the alert. */
|
|
192
|
-
id?: string | undefined;
|
|
193
175
|
/** The display name of the alert. */
|
|
194
176
|
displayName?: string | undefined;
|
|
195
177
|
/** UUID of the query attached to the alert. */
|
|
196
178
|
queryId?: string | undefined;
|
|
197
|
-
/** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */
|
|
198
|
-
state?: AlertState | undefined;
|
|
199
179
|
/** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */
|
|
200
180
|
secondsToRetrigger?: number | undefined;
|
|
201
|
-
/** The workspace state of the alert. Used for tracking trashed status. */
|
|
202
|
-
lifecycleState?: LifecycleState | undefined;
|
|
203
|
-
/** Timestamp when the alert was last triggered, if the alert has been triggered before. */
|
|
204
|
-
triggerTime?: Temporal.Instant | undefined;
|
|
205
181
|
/** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */
|
|
206
182
|
customBody?: string | undefined;
|
|
207
183
|
/** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */
|
|
@@ -210,12 +186,6 @@ interface UpdateAlertRequestAlert {
|
|
|
210
186
|
condition?: AlertCondition | undefined;
|
|
211
187
|
/** The owner's username. This field is set to "Unavailable" if the user has been deleted. */
|
|
212
188
|
ownerUserName?: string | undefined;
|
|
213
|
-
/** The workspace path of the folder containing the alert. */
|
|
214
|
-
parentPath?: string | undefined;
|
|
215
|
-
/** The timestamp indicating when the alert was created. */
|
|
216
|
-
createTime?: Temporal.Instant | undefined;
|
|
217
|
-
/** The timestamp indicating when the alert was updated. */
|
|
218
|
-
updateTime?: Temporal.Instant | undefined;
|
|
219
189
|
/** Whether to notify alert subscribers when alert returns back to normal. */
|
|
220
190
|
notifyOnOk?: boolean | undefined;
|
|
221
191
|
}
|
package/dist/v1/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;;;cAQa,aAAA;EAAA;;;;;;;;KASD,aAAA,WACA,aAAA,eAA4B,aAAA;AAAA,cAI3B,UAAA;EAAA;;;;KAKD,UAAA,WACA,UAAA,eAAyB,UAAA;AAAA,cAIxB,cAAA;EAAA,SAGH,MAAA;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CAAA,CAAE,OAAA,CAAQ,iBAAA;AAAA,cAiB5C,oBAAA,EAAsB,CAAA,CAAE,OAAA,CAAQ,KAAA;AAAA,cAEhC,iCAAA,EAAmC,CAAA,CAAE,OAAA,CAAQ,kBAAA;AAAA,cAa7C,sCAAA,EAAwC,CAAA,CAAE,OAAA,CAAQ,uBAAA;AAAA,cA4ClD,2BAAA,EAA6B,CAAA,CAAE,OAAA;AAAA,cAc/B,yBAAA,EAA2B,CAAA,CAAE,OAAA;AAAA,cAoB7B,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,cAQnC,8BAAA,EAAgC,CAAA,CAAE,OAAA;AAAA,cAsBlC,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,cAUnC,oCAAA,EAAsC,CAAA,CAAE,OAAA;AAAA,cAsBxC,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,cAiBnC,oCAAA,EAAsC,CAAA,CAAE,OAAA;AAAA,iBAuDrC,gCAAA,CAAA,GACX,KAAA,aACF,SAAA,CAAU,uBAAA"}
|
package/dist/v1/model.js
CHANGED
|
@@ -110,7 +110,6 @@ const unmarshalListAlertsResponseAlertSchema = z.object({
|
|
|
110
110
|
custom_subject: z.string().optional(),
|
|
111
111
|
condition: z.lazy(() => unmarshalAlertConditionSchema).optional(),
|
|
112
112
|
owner_user_name: z.string().optional(),
|
|
113
|
-
parent_path: z.string().optional(),
|
|
114
113
|
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
115
114
|
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
116
115
|
notify_on_ok: z.boolean().optional()
|
|
@@ -126,7 +125,6 @@ const unmarshalListAlertsResponseAlertSchema = z.object({
|
|
|
126
125
|
customSubject: d.custom_subject,
|
|
127
126
|
condition: d.condition,
|
|
128
127
|
ownerUserName: d.owner_user_name,
|
|
129
|
-
parentPath: d.parent_path,
|
|
130
128
|
createTime: d.create_time,
|
|
131
129
|
updateTime: d.update_time,
|
|
132
130
|
notifyOnOk: d.notify_on_ok
|
|
@@ -179,36 +177,22 @@ const marshalCreateAlertRequestSchema = z.object({
|
|
|
179
177
|
auto_resolve_display_name: d.autoResolveDisplayName
|
|
180
178
|
}));
|
|
181
179
|
const marshalCreateAlertRequestAlertSchema = z.object({
|
|
182
|
-
id: z.string().optional(),
|
|
183
180
|
displayName: z.string().optional(),
|
|
184
181
|
queryId: z.string().optional(),
|
|
185
|
-
state: z.string().optional(),
|
|
186
182
|
secondsToRetrigger: z.number().optional(),
|
|
187
|
-
lifecycleState: z.string().optional(),
|
|
188
|
-
triggerTime: z.any().transform((d) => d.toString()).optional(),
|
|
189
183
|
customBody: z.string().optional(),
|
|
190
184
|
customSubject: z.string().optional(),
|
|
191
185
|
condition: z.lazy(() => marshalAlertConditionSchema).optional(),
|
|
192
|
-
ownerUserName: z.string().optional(),
|
|
193
186
|
parentPath: z.string().optional(),
|
|
194
|
-
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
195
|
-
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
196
187
|
notifyOnOk: z.boolean().optional()
|
|
197
188
|
}).transform((d) => ({
|
|
198
|
-
id: d.id,
|
|
199
189
|
display_name: d.displayName,
|
|
200
190
|
query_id: d.queryId,
|
|
201
|
-
state: d.state,
|
|
202
191
|
seconds_to_retrigger: d.secondsToRetrigger,
|
|
203
|
-
lifecycle_state: d.lifecycleState,
|
|
204
|
-
trigger_time: d.triggerTime,
|
|
205
192
|
custom_body: d.customBody,
|
|
206
193
|
custom_subject: d.customSubject,
|
|
207
194
|
condition: d.condition,
|
|
208
|
-
owner_user_name: d.ownerUserName,
|
|
209
195
|
parent_path: d.parentPath,
|
|
210
|
-
create_time: d.createTime,
|
|
211
|
-
update_time: d.updateTime,
|
|
212
196
|
notify_on_ok: d.notifyOnOk
|
|
213
197
|
}));
|
|
214
198
|
const marshalUpdateAlertRequestSchema = z.object({
|
|
@@ -223,36 +207,22 @@ const marshalUpdateAlertRequestSchema = z.object({
|
|
|
223
207
|
auto_resolve_display_name: d.autoResolveDisplayName
|
|
224
208
|
}));
|
|
225
209
|
const marshalUpdateAlertRequestAlertSchema = z.object({
|
|
226
|
-
id: z.string().optional(),
|
|
227
210
|
displayName: z.string().optional(),
|
|
228
211
|
queryId: z.string().optional(),
|
|
229
|
-
state: z.string().optional(),
|
|
230
212
|
secondsToRetrigger: z.number().optional(),
|
|
231
|
-
lifecycleState: z.string().optional(),
|
|
232
|
-
triggerTime: z.any().transform((d) => d.toString()).optional(),
|
|
233
213
|
customBody: z.string().optional(),
|
|
234
214
|
customSubject: z.string().optional(),
|
|
235
215
|
condition: z.lazy(() => marshalAlertConditionSchema).optional(),
|
|
236
216
|
ownerUserName: z.string().optional(),
|
|
237
|
-
parentPath: z.string().optional(),
|
|
238
|
-
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
239
|
-
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
240
217
|
notifyOnOk: z.boolean().optional()
|
|
241
218
|
}).transform((d) => ({
|
|
242
|
-
id: d.id,
|
|
243
219
|
display_name: d.displayName,
|
|
244
220
|
query_id: d.queryId,
|
|
245
|
-
state: d.state,
|
|
246
221
|
seconds_to_retrigger: d.secondsToRetrigger,
|
|
247
|
-
lifecycle_state: d.lifecycleState,
|
|
248
|
-
trigger_time: d.triggerTime,
|
|
249
222
|
custom_body: d.customBody,
|
|
250
223
|
custom_subject: d.customSubject,
|
|
251
224
|
condition: d.condition,
|
|
252
225
|
owner_user_name: d.ownerUserName,
|
|
253
|
-
parent_path: d.parentPath,
|
|
254
|
-
create_time: d.createTime,
|
|
255
|
-
update_time: d.updateTime,
|
|
256
226
|
notify_on_ok: d.notifyOnOk
|
|
257
227
|
}));
|
|
258
228
|
const alertConditionFieldMaskSchema = {
|
|
@@ -288,20 +258,13 @@ const updateAlertRequestAlertFieldMaskSchema = {
|
|
|
288
258
|
wire: "condition",
|
|
289
259
|
children: () => alertConditionFieldMaskSchema
|
|
290
260
|
},
|
|
291
|
-
createTime: { wire: "create_time" },
|
|
292
261
|
customBody: { wire: "custom_body" },
|
|
293
262
|
customSubject: { wire: "custom_subject" },
|
|
294
263
|
displayName: { wire: "display_name" },
|
|
295
|
-
id: { wire: "id" },
|
|
296
|
-
lifecycleState: { wire: "lifecycle_state" },
|
|
297
264
|
notifyOnOk: { wire: "notify_on_ok" },
|
|
298
265
|
ownerUserName: { wire: "owner_user_name" },
|
|
299
|
-
parentPath: { wire: "parent_path" },
|
|
300
266
|
queryId: { wire: "query_id" },
|
|
301
|
-
secondsToRetrigger: { wire: "seconds_to_retrigger" }
|
|
302
|
-
state: { wire: "state" },
|
|
303
|
-
triggerTime: { wire: "trigger_time" },
|
|
304
|
-
updateTime: { wire: "update_time" }
|
|
267
|
+
secondsToRetrigger: { wire: "seconds_to_retrigger" }
|
|
305
268
|
};
|
|
306
269
|
function updateAlertRequestAlertFieldMask(...paths) {
|
|
307
270
|
return FieldMask.build(paths, updateAlertRequestAlertFieldMaskSchema);
|
package/dist/v1/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertOperator = {\n GREATER_THAN: 'GREATER_THAN',\n GREATER_THAN_OR_EQUAL: 'GREATER_THAN_OR_EQUAL',\n LESS_THAN: 'LESS_THAN',\n LESS_THAN_OR_EQUAL: 'LESS_THAN_OR_EQUAL',\n EQUAL: 'EQUAL',\n NOT_EQUAL: 'NOT_EQUAL',\n IS_NULL: 'IS_NULL',\n} as const;\nexport type AlertOperator =\n | (typeof AlertOperator)[keyof typeof AlertOperator]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertState = {\n UNKNOWN: 'UNKNOWN',\n OK: 'OK',\n TRIGGERED: 'TRIGGERED',\n} as const;\nexport type AlertState =\n | (typeof AlertState)[keyof typeof AlertState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const LifecycleState = {\n ACTIVE: 'ACTIVE',\n TRASHED: 'TRASHED',\n} as const;\nexport type LifecycleState =\n | (typeof LifecycleState)[keyof typeof LifecycleState]\n | (string & {});\n\nexport interface Alert {\n /** UUID identifying the alert. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */\n state?: AlertState | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** The workspace state of the alert. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /** Timestamp when the alert was last triggered, if the alert has been triggered before. */\n triggerTime?: Temporal.Instant | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The workspace path of the folder containing the alert. */\n parentPath?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport interface AlertCondition {\n /** Operator used for comparison in alert evaluation. */\n op?: AlertOperator | undefined;\n /** Name of the column from the query result to use for comparison in alert evaluation. */\n operand?: AlertOperand | undefined;\n /** Threshold value used for comparison in alert evaluation. */\n threshold?: AlertOperand | undefined;\n /** Alert state if result is empty. */\n emptyResultState?: AlertState | undefined;\n}\n\nexport interface AlertOperand {\n /** Only one of the following fields may be set, depending on the type of operand/threshold. */\n operand?:\n | {$case: 'value'; value: AlertOperandValue}\n | {$case: 'column'; column: AlertOperandColumn}\n | undefined;\n}\n\nexport interface AlertOperandColumn {\n name?: string | undefined;\n}\n\nexport interface AlertOperandValue {\n /** Only one of the following fields may be set, depending on the type of threshold value. */\n thresholdValue?:\n | {$case: 'stringValue'; stringValue: string}\n | {$case: 'doubleValue'; doubleValue: number}\n | {$case: 'boolValue'; boolValue: boolean}\n | undefined;\n}\n\nexport interface CreateAlertRequest {\n alert?: CreateAlertRequestAlert | undefined;\n /** If true, automatically resolve alert display name conflicts. Otherwise, fail the request if the alert's display name conflicts with an existing alert's display name. */\n autoResolveDisplayName?: boolean | undefined;\n}\n\nexport interface CreateAlertRequestAlert {\n /** UUID identifying the alert. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */\n state?: AlertState | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** The workspace state of the alert. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /** Timestamp when the alert was last triggered, if the alert has been triggered before. */\n triggerTime?: Temporal.Instant | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The workspace path of the folder containing the alert. */\n parentPath?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\n/**\n * Represents an empty message, similar to google.protobuf.Empty, which is not available in the firm\n * right now.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface Empty {}\n\nexport interface GetAlertRequest {\n id?: string | undefined;\n}\n\nexport interface ListAlertsRequest {\n pageToken?: string | undefined;\n pageSize?: number | undefined;\n}\n\nexport interface ListAlertsResponse {\n results?: ListAlertsResponseAlert[] | undefined;\n nextPageToken?: string | undefined;\n}\n\nexport interface ListAlertsResponseAlert {\n /** UUID identifying the alert. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */\n state?: AlertState | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** The workspace state of the alert. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /** Timestamp when the alert was last triggered, if the alert has been triggered before. */\n triggerTime?: Temporal.Instant | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The workspace path of the folder containing the alert. */\n parentPath?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport interface TrashAlertRequest {\n id?: string | undefined;\n}\n\nexport interface UpdateAlertRequest {\n alert?: UpdateAlertRequestAlert | undefined;\n updateMask?: FieldMask<UpdateAlertRequestAlert> | undefined;\n id?: string | undefined;\n /** If true, automatically resolve alert display name conflicts. Otherwise, fail the request if the alert's display name conflicts with an existing alert's display name. */\n autoResolveDisplayName?: boolean | undefined;\n}\n\nexport interface UpdateAlertRequestAlert {\n /** UUID identifying the alert. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */\n state?: AlertState | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** The workspace state of the alert. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /** Timestamp when the alert was last triggered, if the alert has been triggered before. */\n triggerTime?: Temporal.Instant | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The workspace path of the folder containing the alert. */\n parentPath?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport const unmarshalAlertSchema: z.ZodType<Alert> = z\n .object({\n id: z.string().optional(),\n display_name: z.string().optional(),\n query_id: z.string().optional(),\n state: z.string().optional(),\n seconds_to_retrigger: z.number().optional(),\n lifecycle_state: z.string().optional(),\n trigger_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n custom_body: z.string().optional(),\n custom_subject: z.string().optional(),\n condition: z.lazy(() => unmarshalAlertConditionSchema).optional(),\n owner_user_name: z.string().optional(),\n parent_path: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n notify_on_ok: z.boolean().optional(),\n })\n .transform(d => ({\n id: d.id,\n displayName: d.display_name,\n queryId: d.query_id,\n state: d.state,\n secondsToRetrigger: d.seconds_to_retrigger,\n lifecycleState: d.lifecycle_state,\n triggerTime: d.trigger_time,\n customBody: d.custom_body,\n customSubject: d.custom_subject,\n condition: d.condition,\n ownerUserName: d.owner_user_name,\n parentPath: d.parent_path,\n createTime: d.create_time,\n updateTime: d.update_time,\n notifyOnOk: d.notify_on_ok,\n }));\n\nexport const unmarshalAlertConditionSchema: z.ZodType<AlertCondition> = z\n .object({\n op: z.string().optional(),\n operand: z.lazy(() => unmarshalAlertOperandSchema).optional(),\n threshold: z.lazy(() => unmarshalAlertOperandSchema).optional(),\n empty_result_state: z.string().optional(),\n })\n .transform(d => ({\n op: d.op,\n operand: d.operand,\n threshold: d.threshold,\n emptyResultState: d.empty_result_state,\n }));\n\nexport const unmarshalAlertOperandSchema: z.ZodType<AlertOperand> = z\n .object({\n value: z.lazy(() => unmarshalAlertOperandValueSchema).optional(),\n column: z.lazy(() => unmarshalAlertOperandColumnSchema).optional(),\n })\n .transform(d => ({\n operand:\n d.value !== undefined\n ? {$case: 'value' as const, value: d.value}\n : d.column !== undefined\n ? {$case: 'column' as const, column: d.column}\n : undefined,\n }));\n\nexport const unmarshalAlertOperandColumnSchema: z.ZodType<AlertOperandColumn> =\n z\n .object({\n name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n }));\n\nexport const unmarshalAlertOperandValueSchema: z.ZodType<AlertOperandValue> = z\n .object({\n string_value: z.string().optional(),\n double_value: z.number().optional(),\n bool_value: z.boolean().optional(),\n })\n .transform(d => ({\n thresholdValue:\n d.string_value !== undefined\n ? {$case: 'stringValue' as const, stringValue: d.string_value}\n : d.double_value !== undefined\n ? {$case: 'doubleValue' as const, doubleValue: d.double_value}\n : d.bool_value !== undefined\n ? {$case: 'boolValue' as const, boolValue: d.bool_value}\n : undefined,\n }));\n\nexport const unmarshalEmptySchema: z.ZodType<Empty> = z.object({});\n\nexport const unmarshalListAlertsResponseSchema: z.ZodType<ListAlertsResponse> =\n z\n .object({\n results: z\n .array(z.lazy(() => unmarshalListAlertsResponseAlertSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n results: d.results,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListAlertsResponseAlertSchema: z.ZodType<ListAlertsResponseAlert> =\n z\n .object({\n id: z.string().optional(),\n display_name: z.string().optional(),\n query_id: z.string().optional(),\n state: z.string().optional(),\n seconds_to_retrigger: z.number().optional(),\n lifecycle_state: z.string().optional(),\n trigger_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n custom_body: z.string().optional(),\n custom_subject: z.string().optional(),\n condition: z.lazy(() => unmarshalAlertConditionSchema).optional(),\n owner_user_name: z.string().optional(),\n parent_path: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n notify_on_ok: z.boolean().optional(),\n })\n .transform(d => ({\n id: d.id,\n displayName: d.display_name,\n queryId: d.query_id,\n state: d.state,\n secondsToRetrigger: d.seconds_to_retrigger,\n lifecycleState: d.lifecycle_state,\n triggerTime: d.trigger_time,\n customBody: d.custom_body,\n customSubject: d.custom_subject,\n condition: d.condition,\n ownerUserName: d.owner_user_name,\n parentPath: d.parent_path,\n createTime: d.create_time,\n updateTime: d.update_time,\n notifyOnOk: d.notify_on_ok,\n }));\n\nexport const marshalAlertConditionSchema: z.ZodType = z\n .object({\n op: z.string().optional(),\n operand: z.lazy(() => marshalAlertOperandSchema).optional(),\n threshold: z.lazy(() => marshalAlertOperandSchema).optional(),\n emptyResultState: z.string().optional(),\n })\n .transform(d => ({\n op: d.op,\n operand: d.operand,\n threshold: d.threshold,\n empty_result_state: d.emptyResultState,\n }));\n\nexport const marshalAlertOperandSchema: z.ZodType = z\n .object({\n operand: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('value'),\n value: z.lazy(() => marshalAlertOperandValueSchema),\n }),\n z.object({\n $case: z.literal('column'),\n column: z.lazy(() => marshalAlertOperandColumnSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.operand?.$case === 'value' && {value: d.operand.value}),\n ...(d.operand?.$case === 'column' && {column: d.operand.column}),\n }));\n\nexport const marshalAlertOperandColumnSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n }));\n\nexport const marshalAlertOperandValueSchema: z.ZodType = z\n .object({\n thresholdValue: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('stringValue'), stringValue: z.string()}),\n z.object({$case: z.literal('doubleValue'), doubleValue: z.number()}),\n z.object({$case: z.literal('boolValue'), boolValue: z.boolean()}),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.thresholdValue?.$case === 'stringValue' && {\n string_value: d.thresholdValue.stringValue,\n }),\n ...(d.thresholdValue?.$case === 'doubleValue' && {\n double_value: d.thresholdValue.doubleValue,\n }),\n ...(d.thresholdValue?.$case === 'boolValue' && {\n bool_value: d.thresholdValue.boolValue,\n }),\n }));\n\nexport const marshalCreateAlertRequestSchema: z.ZodType = z\n .object({\n alert: z.lazy(() => marshalCreateAlertRequestAlertSchema).optional(),\n autoResolveDisplayName: z.boolean().optional(),\n })\n .transform(d => ({\n alert: d.alert,\n auto_resolve_display_name: d.autoResolveDisplayName,\n }));\n\nexport const marshalCreateAlertRequestAlertSchema: z.ZodType = z\n .object({\n id: z.string().optional(),\n displayName: z.string().optional(),\n queryId: z.string().optional(),\n state: z.string().optional(),\n secondsToRetrigger: z.number().optional(),\n lifecycleState: z.string().optional(),\n triggerTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n customBody: z.string().optional(),\n customSubject: z.string().optional(),\n condition: z.lazy(() => marshalAlertConditionSchema).optional(),\n ownerUserName: z.string().optional(),\n parentPath: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n notifyOnOk: z.boolean().optional(),\n })\n .transform(d => ({\n id: d.id,\n display_name: d.displayName,\n query_id: d.queryId,\n state: d.state,\n seconds_to_retrigger: d.secondsToRetrigger,\n lifecycle_state: d.lifecycleState,\n trigger_time: d.triggerTime,\n custom_body: d.customBody,\n custom_subject: d.customSubject,\n condition: d.condition,\n owner_user_name: d.ownerUserName,\n parent_path: d.parentPath,\n create_time: d.createTime,\n update_time: d.updateTime,\n notify_on_ok: d.notifyOnOk,\n }));\n\nexport const marshalUpdateAlertRequestSchema: z.ZodType = z\n .object({\n alert: z.lazy(() => marshalUpdateAlertRequestAlertSchema).optional(),\n updateMask: z\n .any()\n .transform((m: FieldMask) => m.toString())\n .optional(),\n id: z.string().optional(),\n autoResolveDisplayName: z.boolean().optional(),\n })\n .transform(d => ({\n alert: d.alert,\n update_mask: d.updateMask,\n id: d.id,\n auto_resolve_display_name: d.autoResolveDisplayName,\n }));\n\nexport const marshalUpdateAlertRequestAlertSchema: z.ZodType = z\n .object({\n id: z.string().optional(),\n displayName: z.string().optional(),\n queryId: z.string().optional(),\n state: z.string().optional(),\n secondsToRetrigger: z.number().optional(),\n lifecycleState: z.string().optional(),\n triggerTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n customBody: z.string().optional(),\n customSubject: z.string().optional(),\n condition: z.lazy(() => marshalAlertConditionSchema).optional(),\n ownerUserName: z.string().optional(),\n parentPath: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n notifyOnOk: z.boolean().optional(),\n })\n .transform(d => ({\n id: d.id,\n display_name: d.displayName,\n query_id: d.queryId,\n state: d.state,\n seconds_to_retrigger: d.secondsToRetrigger,\n lifecycle_state: d.lifecycleState,\n trigger_time: d.triggerTime,\n custom_body: d.customBody,\n custom_subject: d.customSubject,\n condition: d.condition,\n owner_user_name: d.ownerUserName,\n parent_path: d.parentPath,\n create_time: d.createTime,\n update_time: d.updateTime,\n notify_on_ok: d.notifyOnOk,\n }));\n\nconst alertConditionFieldMaskSchema: FieldMaskSchema = {\n emptyResultState: {wire: 'empty_result_state'},\n op: {wire: 'op'},\n operand: {wire: 'operand', children: () => alertOperandFieldMaskSchema},\n threshold: {wire: 'threshold', children: () => alertOperandFieldMaskSchema},\n};\n\nconst alertOperandFieldMaskSchema: FieldMaskSchema = {\n column: {wire: 'column', children: () => alertOperandColumnFieldMaskSchema},\n value: {wire: 'value', children: () => alertOperandValueFieldMaskSchema},\n};\n\nconst alertOperandColumnFieldMaskSchema: FieldMaskSchema = {\n name: {wire: 'name'},\n};\n\nconst alertOperandValueFieldMaskSchema: FieldMaskSchema = {\n boolValue: {wire: 'bool_value'},\n doubleValue: {wire: 'double_value'},\n stringValue: {wire: 'string_value'},\n};\n\nconst updateAlertRequestAlertFieldMaskSchema: FieldMaskSchema = {\n condition: {wire: 'condition', children: () => alertConditionFieldMaskSchema},\n createTime: {wire: 'create_time'},\n customBody: {wire: 'custom_body'},\n customSubject: {wire: 'custom_subject'},\n displayName: {wire: 'display_name'},\n id: {wire: 'id'},\n lifecycleState: {wire: 'lifecycle_state'},\n notifyOnOk: {wire: 'notify_on_ok'},\n ownerUserName: {wire: 'owner_user_name'},\n parentPath: {wire: 'parent_path'},\n queryId: {wire: 'query_id'},\n secondsToRetrigger: {wire: 'seconds_to_retrigger'},\n state: {wire: 'state'},\n triggerTime: {wire: 'trigger_time'},\n updateTime: {wire: 'update_time'},\n};\n\nexport function updateAlertRequestAlertFieldMask(\n ...paths: string[]\n): FieldMask<UpdateAlertRequestAlert> {\n return FieldMask.build<UpdateAlertRequestAlert>(\n paths,\n updateAlertRequestAlertFieldMaskSchema\n );\n}\n"],"mappings":";;;;;AAQA,MAAa,gBAAgB;CAC3B,cAAc;CACd,uBAAuB;CACvB,WAAW;CACX,oBAAoB;CACpB,OAAO;CACP,WAAW;CACX,SAAS;CACV;AAMD,MAAa,aAAa;CACxB,SAAS;CACT,IAAI;CACJ,WAAW;CACZ;AAMD,MAAa,iBAAiB;CAC5B,QAAQ;CACR,SAAS;CACV;AAgND,MAAa,uBAAyC,EACnD,OAAO;CACN,IAAI,EAAE,QAAQ,CAAC,UAAU;CACzB,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,sBAAsB,EAAE,QAAQ,CAAC,UAAU;CAC3C,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,cAAc,EACX,QAAQ,CACR,WAAU,MAAK,SAAS,QAAQ,KAAK,EAAE,CAAC,CACxC,UAAU;CACb,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,WAAW,EAAE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AAC,MAAM,QAAO,EACrB;AAED,MAAM,mCAAoD;CACxD,WAAW,EAAC,MAAM,cAAa;CAC/B,aAAa,EAAC,MAAM,gBAAe;CACnC,aAAa,EAAC,MAAM,gBAAe;CACpC;AAED,MAAM,yCAA0D;CAC9D,WAAW;EAAC,MAAM;EAAa,gBAAgB;EAA8B;CAC7E,YAAY,EAAC,MAAM,eAAc;CACjC,YAAY,EAAC,MAAM,eAAc;CACjC,eAAe,EAAC,MAAM,kBAAiB;CACvC,aAAa,EAAC,MAAM,gBAAe;CACnC,IAAI,EAAC,MAAM,MAAK;CAChB,gBAAgB,EAAC,MAAM,mBAAkB;CACzC,YAAY,EAAC,MAAM,gBAAe;CAClC,eAAe,EAAC,MAAM,mBAAkB;CACxC,YAAY,EAAC,MAAM,eAAc;CACjC,SAAS,EAAC,MAAM,YAAW;CAC3B,oBAAoB,EAAC,MAAM,wBAAuB;CAClD,OAAO,EAAC,MAAM,SAAQ;CACtB,aAAa,EAAC,MAAM,gBAAe;CACnC,YAAY,EAAC,MAAM,eAAc;CAClC;AAED,SAAgB,iCACd,GAAG,OACiC;AACpC,QAAO,UAAU,MACf,OACA,uCACD"}
|
|
1
|
+
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertOperator = {\n GREATER_THAN: 'GREATER_THAN',\n GREATER_THAN_OR_EQUAL: 'GREATER_THAN_OR_EQUAL',\n LESS_THAN: 'LESS_THAN',\n LESS_THAN_OR_EQUAL: 'LESS_THAN_OR_EQUAL',\n EQUAL: 'EQUAL',\n NOT_EQUAL: 'NOT_EQUAL',\n IS_NULL: 'IS_NULL',\n} as const;\nexport type AlertOperator =\n | (typeof AlertOperator)[keyof typeof AlertOperator]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertState = {\n UNKNOWN: 'UNKNOWN',\n OK: 'OK',\n TRIGGERED: 'TRIGGERED',\n} as const;\nexport type AlertState =\n | (typeof AlertState)[keyof typeof AlertState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const LifecycleState = {\n ACTIVE: 'ACTIVE',\n TRASHED: 'TRASHED',\n} as const;\nexport type LifecycleState =\n | (typeof LifecycleState)[keyof typeof LifecycleState]\n | (string & {});\n\nexport interface Alert {\n /** UUID identifying the alert. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */\n state?: AlertState | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** The workspace state of the alert. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /** Timestamp when the alert was last triggered, if the alert has been triggered before. */\n triggerTime?: Temporal.Instant | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The workspace path of the folder containing the alert. */\n parentPath?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport interface AlertCondition {\n /** Operator used for comparison in alert evaluation. */\n op?: AlertOperator | undefined;\n /** Name of the column from the query result to use for comparison in alert evaluation. */\n operand?: AlertOperand | undefined;\n /** Threshold value used for comparison in alert evaluation. */\n threshold?: AlertOperand | undefined;\n /** Alert state if result is empty. */\n emptyResultState?: AlertState | undefined;\n}\n\nexport interface AlertOperand {\n /** Only one of the following fields may be set, depending on the type of operand/threshold. */\n operand?:\n | {$case: 'value'; value: AlertOperandValue}\n | {$case: 'column'; column: AlertOperandColumn}\n | undefined;\n}\n\nexport interface AlertOperandColumn {\n name?: string | undefined;\n}\n\nexport interface AlertOperandValue {\n /** Only one of the following fields may be set, depending on the type of threshold value. */\n thresholdValue?:\n | {$case: 'stringValue'; stringValue: string}\n | {$case: 'doubleValue'; doubleValue: number}\n | {$case: 'boolValue'; boolValue: boolean}\n | undefined;\n}\n\nexport interface CreateAlertRequest {\n alert?: CreateAlertRequestAlert | undefined;\n /** If true, automatically resolve alert display name conflicts. Otherwise, fail the request if the alert's display name conflicts with an existing alert's display name. */\n autoResolveDisplayName?: boolean | undefined;\n}\n\nexport interface CreateAlertRequestAlert {\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The workspace path of the folder containing the alert. */\n parentPath?: string | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\n/**\n * Represents an empty message, similar to google.protobuf.Empty, which is not available in the firm\n * right now.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface Empty {}\n\nexport interface GetAlertRequest {\n id?: string | undefined;\n}\n\nexport interface ListAlertsRequest {\n pageToken?: string | undefined;\n pageSize?: number | undefined;\n}\n\nexport interface ListAlertsResponse {\n results?: ListAlertsResponseAlert[] | undefined;\n nextPageToken?: string | undefined;\n}\n\nexport interface ListAlertsResponseAlert {\n /** UUID identifying the alert. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation. */\n state?: AlertState | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** The workspace state of the alert. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /** Timestamp when the alert was last triggered, if the alert has been triggered before. */\n triggerTime?: Temporal.Instant | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport interface TrashAlertRequest {\n id?: string | undefined;\n}\n\nexport interface UpdateAlertRequest {\n alert?: UpdateAlertRequestAlert | undefined;\n updateMask?: FieldMask<UpdateAlertRequestAlert> | undefined;\n id?: string | undefined;\n /** If true, automatically resolve alert display name conflicts. Otherwise, fail the request if the alert's display name conflicts with an existing alert's display name. */\n autoResolveDisplayName?: boolean | undefined;\n}\n\nexport interface UpdateAlertRequestAlert {\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** UUID of the query attached to the alert. */\n queryId?: string | undefined;\n /** Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again. */\n secondsToRetrigger?: number | undefined;\n /** Custom body of alert notification, if it exists. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customBody?: string | undefined;\n /** Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See [here](/sql/user/alerts/index.html) for custom templating instructions. */\n customSubject?: string | undefined;\n /** Trigger conditions of the alert. */\n condition?: AlertCondition | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport const unmarshalAlertSchema: z.ZodType<Alert> = z\n .object({\n id: z.string().optional(),\n display_name: z.string().optional(),\n query_id: z.string().optional(),\n state: z.string().optional(),\n seconds_to_retrigger: z.number().optional(),\n lifecycle_state: z.string().optional(),\n trigger_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n custom_body: z.string().optional(),\n custom_subject: z.string().optional(),\n condition: z.lazy(() => unmarshalAlertConditionSchema).optional(),\n owner_user_name: z.string().optional(),\n parent_path: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n notify_on_ok: z.boolean().optional(),\n })\n .transform(d => ({\n id: d.id,\n displayName: d.display_name,\n queryId: d.query_id,\n state: d.state,\n secondsToRetrigger: d.seconds_to_retrigger,\n lifecycleState: d.lifecycle_state,\n triggerTime: d.trigger_time,\n customBody: d.custom_body,\n customSubject: d.custom_subject,\n condition: d.condition,\n ownerUserName: d.owner_user_name,\n parentPath: d.parent_path,\n createTime: d.create_time,\n updateTime: d.update_time,\n notifyOnOk: d.notify_on_ok,\n }));\n\nexport const unmarshalAlertConditionSchema: z.ZodType<AlertCondition> = z\n .object({\n op: z.string().optional(),\n operand: z.lazy(() => unmarshalAlertOperandSchema).optional(),\n threshold: z.lazy(() => unmarshalAlertOperandSchema).optional(),\n empty_result_state: z.string().optional(),\n })\n .transform(d => ({\n op: d.op,\n operand: d.operand,\n threshold: d.threshold,\n emptyResultState: d.empty_result_state,\n }));\n\nexport const unmarshalAlertOperandSchema: z.ZodType<AlertOperand> = z\n .object({\n value: z.lazy(() => unmarshalAlertOperandValueSchema).optional(),\n column: z.lazy(() => unmarshalAlertOperandColumnSchema).optional(),\n })\n .transform(d => ({\n operand:\n d.value !== undefined\n ? {$case: 'value' as const, value: d.value}\n : d.column !== undefined\n ? {$case: 'column' as const, column: d.column}\n : undefined,\n }));\n\nexport const unmarshalAlertOperandColumnSchema: z.ZodType<AlertOperandColumn> =\n z\n .object({\n name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n }));\n\nexport const unmarshalAlertOperandValueSchema: z.ZodType<AlertOperandValue> = z\n .object({\n string_value: z.string().optional(),\n double_value: z.number().optional(),\n bool_value: z.boolean().optional(),\n })\n .transform(d => ({\n thresholdValue:\n d.string_value !== undefined\n ? {$case: 'stringValue' as const, stringValue: d.string_value}\n : d.double_value !== undefined\n ? {$case: 'doubleValue' as const, doubleValue: d.double_value}\n : d.bool_value !== undefined\n ? {$case: 'boolValue' as const, boolValue: d.bool_value}\n : undefined,\n }));\n\nexport const unmarshalEmptySchema: z.ZodType<Empty> = z.object({});\n\nexport const unmarshalListAlertsResponseSchema: z.ZodType<ListAlertsResponse> =\n z\n .object({\n results: z\n .array(z.lazy(() => unmarshalListAlertsResponseAlertSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n results: d.results,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListAlertsResponseAlertSchema: z.ZodType<ListAlertsResponseAlert> =\n z\n .object({\n id: z.string().optional(),\n display_name: z.string().optional(),\n query_id: z.string().optional(),\n state: z.string().optional(),\n seconds_to_retrigger: z.number().optional(),\n lifecycle_state: z.string().optional(),\n trigger_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n custom_body: z.string().optional(),\n custom_subject: z.string().optional(),\n condition: z.lazy(() => unmarshalAlertConditionSchema).optional(),\n owner_user_name: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n notify_on_ok: z.boolean().optional(),\n })\n .transform(d => ({\n id: d.id,\n displayName: d.display_name,\n queryId: d.query_id,\n state: d.state,\n secondsToRetrigger: d.seconds_to_retrigger,\n lifecycleState: d.lifecycle_state,\n triggerTime: d.trigger_time,\n customBody: d.custom_body,\n customSubject: d.custom_subject,\n condition: d.condition,\n ownerUserName: d.owner_user_name,\n createTime: d.create_time,\n updateTime: d.update_time,\n notifyOnOk: d.notify_on_ok,\n }));\n\nexport const marshalAlertConditionSchema: z.ZodType = z\n .object({\n op: z.string().optional(),\n operand: z.lazy(() => marshalAlertOperandSchema).optional(),\n threshold: z.lazy(() => marshalAlertOperandSchema).optional(),\n emptyResultState: z.string().optional(),\n })\n .transform(d => ({\n op: d.op,\n operand: d.operand,\n threshold: d.threshold,\n empty_result_state: d.emptyResultState,\n }));\n\nexport const marshalAlertOperandSchema: z.ZodType = z\n .object({\n operand: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('value'),\n value: z.lazy(() => marshalAlertOperandValueSchema),\n }),\n z.object({\n $case: z.literal('column'),\n column: z.lazy(() => marshalAlertOperandColumnSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.operand?.$case === 'value' && {value: d.operand.value}),\n ...(d.operand?.$case === 'column' && {column: d.operand.column}),\n }));\n\nexport const marshalAlertOperandColumnSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n }));\n\nexport const marshalAlertOperandValueSchema: z.ZodType = z\n .object({\n thresholdValue: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('stringValue'), stringValue: z.string()}),\n z.object({$case: z.literal('doubleValue'), doubleValue: z.number()}),\n z.object({$case: z.literal('boolValue'), boolValue: z.boolean()}),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.thresholdValue?.$case === 'stringValue' && {\n string_value: d.thresholdValue.stringValue,\n }),\n ...(d.thresholdValue?.$case === 'doubleValue' && {\n double_value: d.thresholdValue.doubleValue,\n }),\n ...(d.thresholdValue?.$case === 'boolValue' && {\n bool_value: d.thresholdValue.boolValue,\n }),\n }));\n\nexport const marshalCreateAlertRequestSchema: z.ZodType = z\n .object({\n alert: z.lazy(() => marshalCreateAlertRequestAlertSchema).optional(),\n autoResolveDisplayName: z.boolean().optional(),\n })\n .transform(d => ({\n alert: d.alert,\n auto_resolve_display_name: d.autoResolveDisplayName,\n }));\n\nexport const marshalCreateAlertRequestAlertSchema: z.ZodType = z\n .object({\n displayName: z.string().optional(),\n queryId: z.string().optional(),\n secondsToRetrigger: z.number().optional(),\n customBody: z.string().optional(),\n customSubject: z.string().optional(),\n condition: z.lazy(() => marshalAlertConditionSchema).optional(),\n parentPath: z.string().optional(),\n notifyOnOk: z.boolean().optional(),\n })\n .transform(d => ({\n display_name: d.displayName,\n query_id: d.queryId,\n seconds_to_retrigger: d.secondsToRetrigger,\n custom_body: d.customBody,\n custom_subject: d.customSubject,\n condition: d.condition,\n parent_path: d.parentPath,\n notify_on_ok: d.notifyOnOk,\n }));\n\nexport const marshalUpdateAlertRequestSchema: z.ZodType = z\n .object({\n alert: z.lazy(() => marshalUpdateAlertRequestAlertSchema).optional(),\n updateMask: z\n .any()\n .transform((m: FieldMask) => m.toString())\n .optional(),\n id: z.string().optional(),\n autoResolveDisplayName: z.boolean().optional(),\n })\n .transform(d => ({\n alert: d.alert,\n update_mask: d.updateMask,\n id: d.id,\n auto_resolve_display_name: d.autoResolveDisplayName,\n }));\n\nexport const marshalUpdateAlertRequestAlertSchema: z.ZodType = z\n .object({\n displayName: z.string().optional(),\n queryId: z.string().optional(),\n secondsToRetrigger: z.number().optional(),\n customBody: z.string().optional(),\n customSubject: z.string().optional(),\n condition: z.lazy(() => marshalAlertConditionSchema).optional(),\n ownerUserName: z.string().optional(),\n notifyOnOk: z.boolean().optional(),\n })\n .transform(d => ({\n display_name: d.displayName,\n query_id: d.queryId,\n seconds_to_retrigger: d.secondsToRetrigger,\n custom_body: d.customBody,\n custom_subject: d.customSubject,\n condition: d.condition,\n owner_user_name: d.ownerUserName,\n notify_on_ok: d.notifyOnOk,\n }));\n\nconst alertConditionFieldMaskSchema: FieldMaskSchema = {\n emptyResultState: {wire: 'empty_result_state'},\n op: {wire: 'op'},\n operand: {wire: 'operand', children: () => alertOperandFieldMaskSchema},\n threshold: {wire: 'threshold', children: () => alertOperandFieldMaskSchema},\n};\n\nconst alertOperandFieldMaskSchema: FieldMaskSchema = {\n column: {wire: 'column', children: () => alertOperandColumnFieldMaskSchema},\n value: {wire: 'value', children: () => alertOperandValueFieldMaskSchema},\n};\n\nconst alertOperandColumnFieldMaskSchema: FieldMaskSchema = {\n name: {wire: 'name'},\n};\n\nconst alertOperandValueFieldMaskSchema: FieldMaskSchema = {\n boolValue: {wire: 'bool_value'},\n doubleValue: {wire: 'double_value'},\n stringValue: {wire: 'string_value'},\n};\n\nconst updateAlertRequestAlertFieldMaskSchema: FieldMaskSchema = {\n condition: {wire: 'condition', children: () => alertConditionFieldMaskSchema},\n customBody: {wire: 'custom_body'},\n customSubject: {wire: 'custom_subject'},\n displayName: {wire: 'display_name'},\n notifyOnOk: {wire: 'notify_on_ok'},\n ownerUserName: {wire: 'owner_user_name'},\n queryId: {wire: 'query_id'},\n secondsToRetrigger: {wire: 'seconds_to_retrigger'},\n};\n\nexport function updateAlertRequestAlertFieldMask(\n ...paths: string[]\n): FieldMask<UpdateAlertRequestAlert> {\n return FieldMask.build<UpdateAlertRequestAlert>(\n paths,\n updateAlertRequestAlertFieldMaskSchema\n );\n}\n"],"mappings":";;;;;AAQA,MAAa,gBAAgB;CAC3B,cAAc;CACd,uBAAuB;CACvB,WAAW;CACX,oBAAoB;CACpB,OAAO;CACP,WAAW;CACX,SAAS;CACV;AAMD,MAAa,aAAa;CACxB,SAAS;CACT,IAAI;CACJ,WAAW;CACZ;AAMD,MAAa,iBAAiB;CAC5B,QAAQ;CACR,SAAS;CACV;AAkLD,MAAa,uBAAyC,EACnD,OAAO;CACN,IAAI,EAAE,QAAQ,CAAC,UAAU;CACzB,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,sBAAsB,EAAE,QAAQ,CAAC,UAAU;CAC3C,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,cAAc,EACX,QAAQ,CACR,WAAU,MAAK,SAAS,QAAQ,KAAK,EAAE,CAAC,CACxC,UAAU;CACb,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,WAAW,EAAE,WAAW,8BAA8B,CAAC,UAAU;CACjE,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,aAAa,EACV,QAAQ,CACR,WAAU,MAAK,SAAS,QAAQ,KAAK,EAAE,CAAC,CACxC,UAAU;CACb,aAAa,EACV,QAAQ,CACR,WAAU,MAAK,SAAS,QAAQ,KAAK,EAAE,CAAC,CACxC,UAAU;CACb,cAAc,EAAE,SAAS,CAAC,UAAU;CACrC,CAAC,CACD,WAAU,OAAM;CACf,IAAI,EAAE;CACN,aAAa,EAAE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C9D,WAAW;EAAC,MAAM;EAAa,gBAAgB;EAA8B;CAC7E,YAAY,EAAC,MAAM,eAAc;CACjC,eAAe,EAAC,MAAM,kBAAiB;CACvC,aAAa,EAAC,MAAM,gBAAe;CACnC,YAAY,EAAC,MAAM,gBAAe;CAClC,eAAe,EAAC,MAAM,mBAAkB;CACxC,SAAS,EAAC,MAAM,YAAW;CAC3B,oBAAoB,EAAC,MAAM,wBAAuB;CACnD;AAED,SAAgB,iCACd,GAAG,OACiC;AACpC,QAAO,UAAU,MACf,OACA,uCACD"}
|
package/dist/v2/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Aggregation, Alert, AlertEvaluation, AlertEvaluationState, AlertLifecycleState, AlertNotification, AlertOperand, AlertOperandColumn, AlertOperandValue, AlertRunAs, AlertStatementParameter, AlertSubscription, ComparisonOperator, CreateAlertRequest, CronSchedule, Empty, GetAlertRequest, ListAlertsRequest, ListAlertsResponse, SchedulePauseStatus, TrashAlertRequest, UpdateAlertRequest, alertFieldMask } from "./model.js";
|
|
1
|
+
import { Aggregation, Alert, AlertEvaluation, AlertEvaluationState, AlertLifecycleState, AlertNotification, AlertOperand, AlertOperandColumn, AlertOperandValue, AlertRunAs, AlertStatementParameter, AlertSubscription, ComparisonOperator, CreateAlertRequest, CronSchedule, CustomTemplateFormat, Empty, GetAlertRequest, ListAlertsRequest, ListAlertsResponse, SchedulePauseStatus, TrashAlertRequest, UpdateAlertRequest, alertFieldMask } from "./model.js";
|
|
2
2
|
import { AlertsClient } from "./client.js";
|
|
3
|
-
export { Aggregation, type Alert, type AlertEvaluation, AlertEvaluationState, AlertLifecycleState, type AlertNotification, type AlertOperand, type AlertOperandColumn, type AlertOperandValue, type AlertRunAs, type AlertStatementParameter, type AlertSubscription, AlertsClient, ComparisonOperator, type CreateAlertRequest, type CronSchedule, type Empty, type GetAlertRequest, type ListAlertsRequest, type ListAlertsResponse, SchedulePauseStatus, type TrashAlertRequest, type UpdateAlertRequest, alertFieldMask };
|
|
3
|
+
export { Aggregation, type Alert, type AlertEvaluation, AlertEvaluationState, AlertLifecycleState, type AlertNotification, type AlertOperand, type AlertOperandColumn, type AlertOperandValue, type AlertRunAs, type AlertStatementParameter, type AlertSubscription, AlertsClient, ComparisonOperator, type CreateAlertRequest, type CronSchedule, CustomTemplateFormat, type Empty, type GetAlertRequest, type ListAlertsRequest, type ListAlertsResponse, SchedulePauseStatus, type TrashAlertRequest, type UpdateAlertRequest, alertFieldMask };
|
package/dist/v2/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Aggregation, AlertEvaluationState, AlertLifecycleState, ComparisonOperator, SchedulePauseStatus, alertFieldMask } from "./model.js";
|
|
1
|
+
import { Aggregation, AlertEvaluationState, AlertLifecycleState, ComparisonOperator, CustomTemplateFormat, SchedulePauseStatus, alertFieldMask } from "./model.js";
|
|
2
2
|
import { AlertsClient } from "./client.js";
|
|
3
3
|
|
|
4
|
-
export { Aggregation, AlertEvaluationState, AlertLifecycleState, AlertsClient, ComparisonOperator, SchedulePauseStatus, alertFieldMask };
|
|
4
|
+
export { Aggregation, AlertEvaluationState, AlertLifecycleState, AlertsClient, ComparisonOperator, CustomTemplateFormat, SchedulePauseStatus, alertFieldMask };
|
package/dist/v2/model.d.ts
CHANGED
|
@@ -44,6 +44,16 @@ declare const ComparisonOperator: {
|
|
|
44
44
|
readonly IS_NOT_NULL: "IS_NOT_NULL";
|
|
45
45
|
};
|
|
46
46
|
type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator] | (string & {});
|
|
47
|
+
/** Rendering format for the `custom_summary` and `custom_description` templates. */
|
|
48
|
+
declare const CustomTemplateFormat: {
|
|
49
|
+
/** Templates are HTML with Mustache `{{VARIABLE_NAME}}` placeholders. */readonly HTML: "HTML";
|
|
50
|
+
/**
|
|
51
|
+
* Templates are Markdown with allowlisted `@VARIABLE_NAME` placeholders, converted to the
|
|
52
|
+
* format each notification destination expects.
|
|
53
|
+
*/
|
|
54
|
+
readonly MARKDOWN: "MARKDOWN";
|
|
55
|
+
};
|
|
56
|
+
type CustomTemplateFormat = (typeof CustomTemplateFormat)[keyof typeof CustomTemplateFormat] | (string & {});
|
|
47
57
|
declare const SchedulePauseStatus: {
|
|
48
58
|
readonly UNPAUSED: "UNPAUSED";
|
|
49
59
|
readonly PAUSED: "PAUSED";
|
|
@@ -108,6 +118,18 @@ interface Alert {
|
|
|
108
118
|
* the section [`cast` function](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.
|
|
109
119
|
*/
|
|
110
120
|
parameters?: AlertStatementParameter[] | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* The format used to interpret the `custom_summary` and `custom_description` templates.
|
|
123
|
+
*
|
|
124
|
+
* `HTML` treats both templates as HTML with Mustache `{{VARIABLE_NAME}}` placeholders.
|
|
125
|
+
* `MARKDOWN` treats them as Markdown with allowlisted `@VARIABLE_NAME` placeholders and converts
|
|
126
|
+
* them to the format each notification destination expects, so a single template renders
|
|
127
|
+
* correctly in email, Slack, and Microsoft Teams.
|
|
128
|
+
*
|
|
129
|
+
* When unset, the API applies no default. Responses omit the field unless a format is stored,
|
|
130
|
+
* and a template with no format is rendered as HTML.
|
|
131
|
+
*/
|
|
132
|
+
customTemplateFormat?: CustomTemplateFormat | undefined;
|
|
111
133
|
}
|
|
112
134
|
interface AlertEvaluation {
|
|
113
135
|
/** Source column from result to use to evaluate alert */
|
|
@@ -268,5 +290,5 @@ declare const marshalAlertSubscriptionSchema: z.ZodType;
|
|
|
268
290
|
declare const marshalCronScheduleSchema: z.ZodType;
|
|
269
291
|
declare function alertFieldMask(...paths: string[]): FieldMask<Alert>;
|
|
270
292
|
//#endregion
|
|
271
|
-
export { Aggregation, Alert, AlertEvaluation, AlertEvaluationState, AlertLifecycleState, AlertNotification, AlertOperand, AlertOperandColumn, AlertOperandValue, AlertRunAs, AlertStatementParameter, AlertSubscription, ComparisonOperator, CreateAlertRequest, CronSchedule, Empty, GetAlertRequest, ListAlertsRequest, ListAlertsResponse, SchedulePauseStatus, TrashAlertRequest, UpdateAlertRequest, alertFieldMask, marshalAlertEvaluationSchema, marshalAlertNotificationSchema, marshalAlertOperandColumnSchema, marshalAlertOperandSchema, marshalAlertOperandValueSchema, marshalAlertRunAsSchema, marshalAlertSchema, marshalAlertStatementParameterSchema, marshalAlertSubscriptionSchema, marshalCronScheduleSchema, unmarshalAlertEvaluationSchema, unmarshalAlertNotificationSchema, unmarshalAlertOperandColumnSchema, unmarshalAlertOperandSchema, unmarshalAlertOperandValueSchema, unmarshalAlertRunAsSchema, unmarshalAlertSchema, unmarshalAlertStatementParameterSchema, unmarshalAlertSubscriptionSchema, unmarshalCronScheduleSchema, unmarshalEmptySchema, unmarshalListAlertsResponseSchema };
|
|
293
|
+
export { Aggregation, Alert, AlertEvaluation, AlertEvaluationState, AlertLifecycleState, AlertNotification, AlertOperand, AlertOperandColumn, AlertOperandValue, AlertRunAs, AlertStatementParameter, AlertSubscription, ComparisonOperator, CreateAlertRequest, CronSchedule, CustomTemplateFormat, Empty, GetAlertRequest, ListAlertsRequest, ListAlertsResponse, SchedulePauseStatus, TrashAlertRequest, UpdateAlertRequest, alertFieldMask, marshalAlertEvaluationSchema, marshalAlertNotificationSchema, marshalAlertOperandColumnSchema, marshalAlertOperandSchema, marshalAlertOperandValueSchema, marshalAlertRunAsSchema, marshalAlertSchema, marshalAlertStatementParameterSchema, marshalAlertSubscriptionSchema, marshalCronScheduleSchema, unmarshalAlertEvaluationSchema, unmarshalAlertNotificationSchema, unmarshalAlertOperandColumnSchema, unmarshalAlertOperandSchema, unmarshalAlertOperandValueSchema, unmarshalAlertRunAsSchema, unmarshalAlertSchema, unmarshalAlertStatementParameterSchema, unmarshalAlertSubscriptionSchema, unmarshalCronScheduleSchema, unmarshalEmptySchema, unmarshalListAlertsResponseSchema };
|
|
272
294
|
//# sourceMappingURL=model.d.ts.map
|
package/dist/v2/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v2/model.ts"],"mappings":";;;;;cAQa,WAAA;EAAA;;;;;;;;;KAUD,WAAA,WACA,WAAA,eAA0B,WAAA;;;;;;AADtC;;cAYa,oBAAA;EAXD;;;;;KAkBA,oBAAA,WACA,oBAAA,eAAmC,oBAAA;AAAA,cAIlC,mBAAA;EAAA,SAGH,MAAA;EAAA,SAAA,OAAA;AAAA;AAAA,KACE,mBAAA,WACA,mBAAA,eAAkC,mBAAA;AAAA,cAIjC,kBAAA;EAAA;;;;;;;;;KAUD,kBAAA,WACA,kBAAA,eAAiC,kBAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v2/model.ts"],"mappings":";;;;;cAQa,WAAA;EAAA;;;;;;;;;KAUD,WAAA,WACA,WAAA,eAA0B,WAAA;;;;;;AADtC;;cAYa,oBAAA;EAXD;;;;;KAkBA,oBAAA,WACA,oBAAA,eAAmC,oBAAA;AAAA,cAIlC,mBAAA;EAAA,SAGH,MAAA;EAAA,SAAA,OAAA;AAAA;AAAA,KACE,mBAAA,WACA,mBAAA,eAAkC,mBAAA;AAAA,cAIjC,kBAAA;EAAA;;;;;;;;;KAUD,kBAAA,WACA,kBAAA,eAAiC,kBAAA;;cAKhC,oBAAA;EApBD,kFA4BF,IAAA;EAxBG;;;;EAAA,SAwBH,QAAA;AAAA;AAAA,KACE,oBAAA,WACA,oBAAA,eAAmC,oBAAA;AAAA,cAIlC,mBAAA;EAAA,SAGH,QAAA;EAAA,SAAA,MAAA;AAAA;AAAA,KACE,mBAAA,WACA,mBAAA,eAAkC,mBAAA;AAAA,UAG7B,KAAA;;EAEf,EAAA;EA9B4B;EAgC5B,WAAA;EA/BU;EAiCV,aAAA;EA5BW;EA8BX,UAAA,GAAa,QAAA,CAAS,OAAA;;EAEtB,UAAA,GAAa,QAAA,CAAS,OAAA;;EAEtB,UAAA;EAzB8B;EA2B9B,SAAA;EA1BU;E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AAQ,KAAA;AAAA,cAEhC,iCAAA,EAAmC,CAAA,CAAE,OAAA,CAAQ,kBAAA;AAAA,cAW7C,kBAAA,EAAoB,CAAA,CAAE,OAAA;AAAA,cAkDtB,4BAAA,EAA8B,CAAA,CAAE,OAAA;AAAA,cAuBhC,8BAAA,EAAgC,CAAA,CAAE,OAAA;AAAA,cAclC,yBAAA,EAA2B,CAAA,CAAE,OAAA;AAAA,cAoB7B,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,cAYnC,8BAAA,EAAgC,CAAA,CAAE,OAAA;AAAA,cAoBlC,uBAAA,EAAyB,CAAA,CAAE,OAAA;AAAA,cAmB3B,oCAAA,EAAsC,CAAA,CAAE,OAAA;AAAA,cAYxC,8BAAA,EAAgC,CAAA,CAAE,OAAA;AAAA,cAqBlC,yBAAA,EAA2B,CAAA,CAAE,OAAA;AAAA,iBAuC1B,cAAA,CAAA,GAAkB,KAAA,aAAkB,SAAA,CAAU,KAAA"}
|
package/dist/v2/model.js
CHANGED
|
@@ -40,6 +40,11 @@ const ComparisonOperator = {
|
|
|
40
40
|
IS_NULL: "IS_NULL",
|
|
41
41
|
IS_NOT_NULL: "IS_NOT_NULL"
|
|
42
42
|
};
|
|
43
|
+
/** Rendering format for the `custom_summary` and `custom_description` templates. */
|
|
44
|
+
const CustomTemplateFormat = {
|
|
45
|
+
HTML: "HTML",
|
|
46
|
+
MARKDOWN: "MARKDOWN"
|
|
47
|
+
};
|
|
43
48
|
const SchedulePauseStatus = {
|
|
44
49
|
UNPAUSED: "UNPAUSED",
|
|
45
50
|
PAUSED: "PAUSED"
|
|
@@ -61,7 +66,8 @@ const unmarshalAlertSchema = z.object({
|
|
|
61
66
|
custom_description: z.string().optional(),
|
|
62
67
|
run_as: z.lazy(() => unmarshalAlertRunAsSchema).optional(),
|
|
63
68
|
effective_run_as: z.lazy(() => unmarshalAlertRunAsSchema).optional(),
|
|
64
|
-
parameters: z.array(z.lazy(() => unmarshalAlertStatementParameterSchema)).optional()
|
|
69
|
+
parameters: z.array(z.lazy(() => unmarshalAlertStatementParameterSchema)).optional(),
|
|
70
|
+
custom_template_format: z.string().optional()
|
|
65
71
|
}).transform((d) => ({
|
|
66
72
|
id: d.id,
|
|
67
73
|
displayName: d.display_name,
|
|
@@ -79,7 +85,8 @@ const unmarshalAlertSchema = z.object({
|
|
|
79
85
|
customDescription: d.custom_description,
|
|
80
86
|
runAs: d.run_as,
|
|
81
87
|
effectiveRunAs: d.effective_run_as,
|
|
82
|
-
parameters: d.parameters
|
|
88
|
+
parameters: d.parameters,
|
|
89
|
+
customTemplateFormat: d.custom_template_format
|
|
83
90
|
}));
|
|
84
91
|
const unmarshalAlertEvaluationSchema = z.object({
|
|
85
92
|
source: z.lazy(() => unmarshalAlertOperandColumnSchema).optional(),
|
|
@@ -203,7 +210,8 @@ const marshalAlertSchema = z.object({
|
|
|
203
210
|
customDescription: z.string().optional(),
|
|
204
211
|
runAs: z.lazy(() => marshalAlertRunAsSchema).optional(),
|
|
205
212
|
effectiveRunAs: z.lazy(() => marshalAlertRunAsSchema).optional(),
|
|
206
|
-
parameters: z.array(z.lazy(() => marshalAlertStatementParameterSchema)).optional()
|
|
213
|
+
parameters: z.array(z.lazy(() => marshalAlertStatementParameterSchema)).optional(),
|
|
214
|
+
customTemplateFormat: z.string().optional()
|
|
207
215
|
}).transform((d) => ({
|
|
208
216
|
id: d.id,
|
|
209
217
|
display_name: d.displayName,
|
|
@@ -221,7 +229,8 @@ const marshalAlertSchema = z.object({
|
|
|
221
229
|
custom_description: d.customDescription,
|
|
222
230
|
run_as: d.runAs,
|
|
223
231
|
effective_run_as: d.effectiveRunAs,
|
|
224
|
-
parameters: d.parameters
|
|
232
|
+
parameters: d.parameters,
|
|
233
|
+
custom_template_format: d.customTemplateFormat
|
|
225
234
|
}));
|
|
226
235
|
const marshalAlertEvaluationSchema = z.object({
|
|
227
236
|
source: z.lazy(() => marshalAlertOperandColumnSchema).optional(),
|
|
@@ -328,6 +337,7 @@ const alertFieldMaskSchema = {
|
|
|
328
337
|
createTime: { wire: "create_time" },
|
|
329
338
|
customDescription: { wire: "custom_description" },
|
|
330
339
|
customSummary: { wire: "custom_summary" },
|
|
340
|
+
customTemplateFormat: { wire: "custom_template_format" },
|
|
331
341
|
displayName: { wire: "display_name" },
|
|
332
342
|
effectiveRunAs: {
|
|
333
343
|
wire: "effective_run_as",
|
|
@@ -412,5 +422,5 @@ const cronScheduleFieldMaskSchema = {
|
|
|
412
422
|
};
|
|
413
423
|
|
|
414
424
|
//#endregion
|
|
415
|
-
export { Aggregation, AlertEvaluationState, AlertLifecycleState, ComparisonOperator, SchedulePauseStatus, alertFieldMask, marshalAlertEvaluationSchema, marshalAlertNotificationSchema, marshalAlertOperandColumnSchema, marshalAlertOperandSchema, marshalAlertOperandValueSchema, marshalAlertRunAsSchema, marshalAlertSchema, marshalAlertStatementParameterSchema, marshalAlertSubscriptionSchema, marshalCronScheduleSchema, unmarshalAlertEvaluationSchema, unmarshalAlertNotificationSchema, unmarshalAlertOperandColumnSchema, unmarshalAlertOperandSchema, unmarshalAlertOperandValueSchema, unmarshalAlertRunAsSchema, unmarshalAlertSchema, unmarshalAlertStatementParameterSchema, unmarshalAlertSubscriptionSchema, unmarshalCronScheduleSchema, unmarshalEmptySchema, unmarshalListAlertsResponseSchema };
|
|
425
|
+
export { Aggregation, AlertEvaluationState, AlertLifecycleState, ComparisonOperator, CustomTemplateFormat, SchedulePauseStatus, alertFieldMask, marshalAlertEvaluationSchema, marshalAlertNotificationSchema, marshalAlertOperandColumnSchema, marshalAlertOperandSchema, marshalAlertOperandValueSchema, marshalAlertRunAsSchema, marshalAlertSchema, marshalAlertStatementParameterSchema, marshalAlertSubscriptionSchema, marshalCronScheduleSchema, unmarshalAlertEvaluationSchema, unmarshalAlertNotificationSchema, unmarshalAlertOperandColumnSchema, unmarshalAlertOperandSchema, unmarshalAlertOperandValueSchema, unmarshalAlertRunAsSchema, unmarshalAlertSchema, unmarshalAlertStatementParameterSchema, unmarshalAlertSubscriptionSchema, unmarshalCronScheduleSchema, unmarshalEmptySchema, unmarshalListAlertsResponseSchema };
|
|
416
426
|
//# sourceMappingURL=model.js.map
|
package/dist/v2/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","names":[],"sources":["../../src/v2/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Aggregation = {\n SUM: 'SUM',\n COUNT: 'COUNT',\n COUNT_DISTINCT: 'COUNT_DISTINCT',\n AVG: 'AVG',\n MEDIAN: 'MEDIAN',\n MIN: 'MIN',\n MAX: 'MAX',\n STDDEV: 'STDDEV',\n} as const;\nexport type Aggregation =\n | (typeof Aggregation)[keyof typeof Aggregation]\n | (string & {});\n\n/**\n * UNSPECIFIED - default unspecify value for proto enum, do not use it in the code\n * UNKNOWN - alert not yet evaluated\n * TRIGGERED - alert is triggered\n * OK - alert is not triggered\n * ERROR - alert evaluation failed\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertEvaluationState = {\n /** Deprecated. Please avoid using `UNKNOWN` as empty_result_state. */\n UNKNOWN: 'UNKNOWN',\n TRIGGERED: 'TRIGGERED',\n OK: 'OK',\n ERROR: 'ERROR',\n} as const;\nexport type AlertEvaluationState =\n | (typeof AlertEvaluationState)[keyof typeof AlertEvaluationState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertLifecycleState = {\n ACTIVE: 'ACTIVE',\n DELETED: 'DELETED',\n} as const;\nexport type AlertLifecycleState =\n | (typeof AlertLifecycleState)[keyof typeof AlertLifecycleState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ComparisonOperator = {\n LESS_THAN: 'LESS_THAN',\n GREATER_THAN: 'GREATER_THAN',\n EQUAL: 'EQUAL',\n NOT_EQUAL: 'NOT_EQUAL',\n GREATER_THAN_OR_EQUAL: 'GREATER_THAN_OR_EQUAL',\n LESS_THAN_OR_EQUAL: 'LESS_THAN_OR_EQUAL',\n IS_NULL: 'IS_NULL',\n IS_NOT_NULL: 'IS_NOT_NULL',\n} as const;\nexport type ComparisonOperator =\n | (typeof ComparisonOperator)[keyof typeof ComparisonOperator]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SchedulePauseStatus = {\n UNPAUSED: 'UNPAUSED',\n PAUSED: 'PAUSED',\n} as const;\nexport type SchedulePauseStatus =\n | (typeof SchedulePauseStatus)[keyof typeof SchedulePauseStatus]\n | (string & {});\n\nexport interface Alert {\n /** The canonical identifier of the alert to retrieve information about. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated. */\n parentPath?: string | undefined;\n /** Text of the query to be run. */\n queryText?: string | undefined;\n /** ID of the SQL warehouse attached to the alert. */\n warehouseId?: string | undefined;\n /**\n * The run as username or application ID of service principal.\n * On Create and Update, this field can be set to application ID of an active service principal. Setting this field requires the servicePrincipal/user role.\n * Deprecated: Use `run_as` field instead. This field will be removed in a future release.\n */\n runAsUserName?: string | undefined;\n evaluation?: AlertEvaluation | undefined;\n schedule?: CronSchedule | undefined;\n /** Indicates whether the query is trashed. */\n lifecycleState?: AlertLifecycleState | undefined;\n /** Custom summary for the alert. support mustache template. */\n customSummary?: string | undefined;\n /** Custom description for the alert. support mustache template. */\n customDescription?: string | undefined;\n /**\n * Specifies the identity that will be used to run the alert.\n * This field allows you to configure alerts to run as a specific user or service principal.\n * - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.\n * - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.\n * If not specified, the alert will run as the request user.\n */\n runAs?: AlertRunAs | undefined;\n /**\n * The actual identity that will be used to execute the alert.\n * This is an output-only field that shows the resolved run-as identity after applying\n * permissions and defaults.\n */\n effectiveRunAs?: AlertRunAs | undefined;\n /**\n * A list of parameters to pass into the alert SQL query statement containing parameter markers. Static values only.\n *\n * Reference a parameter in the query text as `:name`. Each parameter must have a unique, non-empty name.\n * Each parameter consists of a name, a value, and optionally a type. To represent a NULL\n * value, the `value` field may be omitted or set to `null` explicitly. If the `type` field\n * is omitted, the value is interpreted as a string.\n *\n * If the type is given, parameters will be checked for type correctness according\n * to the given type. A value is correct if the provided string can be converted to\n * the requested type using the `cast` function. The exact semantics are described in\n * the section [`cast` function](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.\n */\n parameters?: AlertStatementParameter[] | undefined;\n}\n\nexport interface AlertEvaluation {\n /** Source column from result to use to evaluate alert */\n source?: AlertOperandColumn | undefined;\n /** Operator used for comparison in alert evaluation. */\n comparisonOperator?: ComparisonOperator | undefined;\n /** Threshold to user for alert evaluation, can be a column or a value. */\n threshold?: AlertOperand | undefined;\n /** User or Notification Destination to notify when alert is triggered. */\n notification?: AlertNotification | undefined;\n /** Latest state of alert evaluation. */\n state?: AlertEvaluationState | undefined;\n /** Timestamp of the last evaluation. */\n lastEvaluatedAt?: Temporal.Instant | undefined;\n /** Alert state if result is empty. Please avoid setting this field to be `UNKNOWN` because `UNKNOWN` state is planned to be deprecated. */\n emptyResultState?: AlertEvaluationState | undefined;\n}\n\nexport interface AlertNotification {\n subscriptions?: AlertSubscription[] | undefined;\n /**\n * Number of seconds an alert waits after being triggered before it is allowed to send another notification.\n * If set to 0 or omitted, the alert will not send any further notifications after the first trigger\n * Setting this value to 1 allows the alert to send a notification on every evaluation where the condition is met, effectively making it always retrigger for notification purposes.\n */\n retriggerSeconds?: number | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport interface AlertOperand {\n /** Only one of the following fields may be set, depending on the type of operand/threshold. */\n operand?:\n | {$case: 'column'; column: AlertOperandColumn}\n | {$case: 'value'; value: AlertOperandValue}\n | undefined;\n}\n\nexport interface AlertOperandColumn {\n name?: string | undefined;\n display?: string | undefined;\n /** If not set, the behavior is equivalent to using `First row` in the UI. */\n aggregation?: Aggregation | undefined;\n}\n\nexport interface AlertOperandValue {\n /** Only one of the following fields may be set, depending on the type of threshold value. */\n value?:\n | {$case: 'stringValue'; stringValue: string}\n | {$case: 'doubleValue'; doubleValue: number}\n | {$case: 'boolValue'; boolValue: boolean}\n | undefined;\n}\n\nexport interface AlertRunAs {\n identity?:\n | {\n $case: 'userName';\n /** The email of an active workspace user. Can only set this field to their own email. */\n userName: string;\n }\n | {\n $case: 'servicePrincipalName';\n /** Application ID of an active service principal. Setting this field requires the `servicePrincipal/user` role. */\n servicePrincipalName: string;\n }\n | undefined;\n}\n\n/**\n * A named parameter bound to the alert query. Only flat, named scalar parameters are\n * supported; complex types such as ARRAY, MAP, and STRUCT are not.\n */\nexport interface AlertStatementParameter {\n /**\n * The name of the parameter. Reference it in the query text as `:name`. Required, must be\n * non-empty, and must be unique across the alert's parameters.\n */\n name?: string | undefined;\n /** The value bound to the parameter, represented as a string. If omitted, the value is interpreted as NULL. */\n value?: string | undefined;\n /**\n * The SQL data type of the parameter, for example `STRING`, `INT`, or `DECIMAL(10, 2)`. If no type is given\n * the type is assumed to be `STRING`. Complex types such as `ARRAY`, `MAP`, and `STRUCT` are not supported.\n */\n type?: string | undefined;\n}\n\nexport interface AlertSubscription {\n subscriptionType?:\n | {$case: 'userEmail'; userEmail: string}\n | {$case: 'destinationId'; destinationId: string}\n | undefined;\n}\n\nexport interface CreateAlertRequest {\n alert?: Alert | undefined;\n}\n\nexport interface CronSchedule {\n /**\n * A cron expression using quartz syntax that specifies the schedule for this pipeline.\n * Should use the quartz format described here: http://www.quartz-scheduler.org/documentation/quartz-2.1.7/tutorials/tutorial-lesson-06.html\n */\n quartzCronSchedule?: string | undefined;\n /**\n * A Java timezone id. The schedule will be resolved using this timezone.\n * This will be combined with the quartz_cron_schedule to determine the schedule.\n * See https://docs.databricks.com/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set-timezone.html for details.\n */\n timezoneId?: string | undefined;\n /** Indicate whether this schedule is paused or not. */\n pauseStatus?: SchedulePauseStatus | undefined;\n}\n\n/**\n * Represents an empty message, similar to google.protobuf.Empty, which is not available in the firm\n * right now.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface Empty {}\n\nexport interface GetAlertRequest {\n id?: string | undefined;\n}\n\nexport interface ListAlertsRequest {\n pageToken?: string | undefined;\n pageSize?: number | undefined;\n}\n\nexport interface ListAlertsResponse {\n alerts?: Alert[] | undefined;\n nextPageToken?: string | undefined;\n}\n\nexport interface TrashAlertRequest {\n id?: string | undefined;\n /** Whether to permanently delete the alert. If not set, the alert will only be soft deleted. */\n purge?: boolean | undefined;\n}\n\nexport interface UpdateAlertRequest {\n alert?: Alert | undefined;\n updateMask?: FieldMask<Alert> | undefined;\n}\n\nexport const unmarshalAlertSchema: z.ZodType<Alert> = z\n .object({\n id: z.string().optional(),\n display_name: z.string().optional(),\n owner_user_name: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n parent_path: z.string().optional(),\n query_text: z.string().optional(),\n warehouse_id: z.string().optional(),\n run_as_user_name: z.string().optional(),\n evaluation: z.lazy(() => unmarshalAlertEvaluationSchema).optional(),\n schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),\n lifecycle_state: z.string().optional(),\n custom_summary: z.string().optional(),\n custom_description: z.string().optional(),\n run_as: z.lazy(() => unmarshalAlertRunAsSchema).optional(),\n effective_run_as: z.lazy(() => unmarshalAlertRunAsSchema).optional(),\n parameters: z\n .array(z.lazy(() => unmarshalAlertStatementParameterSchema))\n .optional(),\n })\n .transform(d => ({\n id: d.id,\n displayName: d.display_name,\n ownerUserName: d.owner_user_name,\n createTime: d.create_time,\n updateTime: d.update_time,\n parentPath: d.parent_path,\n queryText: d.query_text,\n warehouseId: d.warehouse_id,\n runAsUserName: d.run_as_user_name,\n evaluation: d.evaluation,\n schedule: d.schedule,\n lifecycleState: d.lifecycle_state,\n customSummary: d.custom_summary,\n customDescription: d.custom_description,\n runAs: d.run_as,\n effectiveRunAs: d.effective_run_as,\n parameters: d.parameters,\n }));\n\nexport const unmarshalAlertEvaluationSchema: z.ZodType<AlertEvaluation> = z\n .object({\n source: z.lazy(() => unmarshalAlertOperandColumnSchema).optional(),\n comparison_operator: z.string().optional(),\n threshold: z.lazy(() => unmarshalAlertOperandSchema).optional(),\n notification: z.lazy(() => unmarshalAlertNotificationSchema).optional(),\n state: z.string().optional(),\n last_evaluated_at: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n empty_result_state: z.string().optional(),\n })\n .transform(d => ({\n source: d.source,\n comparisonOperator: d.comparison_operator,\n threshold: d.threshold,\n notification: d.notification,\n state: d.state,\n lastEvaluatedAt: d.last_evaluated_at,\n emptyResultState: d.empty_result_state,\n }));\n\nexport const unmarshalAlertNotificationSchema: z.ZodType<AlertNotification> = z\n .object({\n subscriptions: z\n .array(z.lazy(() => unmarshalAlertSubscriptionSchema))\n .optional(),\n retrigger_seconds: z.number().optional(),\n notify_on_ok: z.boolean().optional(),\n })\n .transform(d => ({\n subscriptions: d.subscriptions,\n retriggerSeconds: d.retrigger_seconds,\n notifyOnOk: d.notify_on_ok,\n }));\n\nexport const unmarshalAlertOperandSchema: z.ZodType<AlertOperand> = z\n .object({\n column: z.lazy(() => unmarshalAlertOperandColumnSchema).optional(),\n value: z.lazy(() => unmarshalAlertOperandValueSchema).optional(),\n })\n .transform(d => ({\n operand:\n d.column !== undefined\n ? {$case: 'column' as const, column: d.column}\n : d.value !== undefined\n ? {$case: 'value' as const, value: d.value}\n : undefined,\n }));\n\nexport const unmarshalAlertOperandColumnSchema: z.ZodType<AlertOperandColumn> =\n z\n .object({\n name: z.string().optional(),\n display: z.string().optional(),\n aggregation: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n display: d.display,\n aggregation: d.aggregation,\n }));\n\nexport const unmarshalAlertOperandValueSchema: z.ZodType<AlertOperandValue> = z\n .object({\n string_value: z.string().optional(),\n double_value: z.number().optional(),\n bool_value: z.boolean().optional(),\n })\n .transform(d => ({\n value:\n d.string_value !== undefined\n ? {$case: 'stringValue' as const, stringValue: d.string_value}\n : d.double_value !== undefined\n ? {$case: 'doubleValue' as const, doubleValue: d.double_value}\n : d.bool_value !== undefined\n ? {$case: 'boolValue' as const, boolValue: d.bool_value}\n : undefined,\n }));\n\nexport const unmarshalAlertRunAsSchema: z.ZodType<AlertRunAs> = z\n .object({\n user_name: z.string().optional(),\n service_principal_name: z.string().optional(),\n })\n .transform(d => ({\n identity:\n d.user_name !== undefined\n ? {$case: 'userName' as const, userName: d.user_name}\n : d.service_principal_name !== undefined\n ? {\n $case: 'servicePrincipalName' as const,\n servicePrincipalName: d.service_principal_name,\n }\n : undefined,\n }));\n\nexport const unmarshalAlertStatementParameterSchema: z.ZodType<AlertStatementParameter> =\n z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n type: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n value: d.value,\n type: d.type,\n }));\n\nexport const unmarshalAlertSubscriptionSchema: z.ZodType<AlertSubscription> = z\n .object({\n user_email: z.string().optional(),\n destination_id: z.string().optional(),\n })\n .transform(d => ({\n subscriptionType:\n d.user_email !== undefined\n ? {$case: 'userEmail' as const, userEmail: d.user_email}\n : d.destination_id !== undefined\n ? {$case: 'destinationId' as const, destinationId: d.destination_id}\n : undefined,\n }));\n\nexport const unmarshalCronScheduleSchema: z.ZodType<CronSchedule> = z\n .object({\n quartz_cron_schedule: z.string().optional(),\n timezone_id: z.string().optional(),\n pause_status: z.string().optional(),\n })\n .transform(d => ({\n quartzCronSchedule: d.quartz_cron_schedule,\n timezoneId: d.timezone_id,\n pauseStatus: d.pause_status,\n }));\n\nexport const unmarshalEmptySchema: z.ZodType<Empty> = z.object({});\n\nexport const unmarshalListAlertsResponseSchema: z.ZodType<ListAlertsResponse> =\n z\n .object({\n alerts: z.array(z.lazy(() => unmarshalAlertSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n alerts: d.alerts,\n nextPageToken: d.next_page_token,\n }));\n\nexport const marshalAlertSchema: z.ZodType = z\n .object({\n id: z.string().optional(),\n displayName: z.string().optional(),\n ownerUserName: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n parentPath: z.string().optional(),\n queryText: z.string().optional(),\n warehouseId: z.string().optional(),\n runAsUserName: z.string().optional(),\n evaluation: z.lazy(() => marshalAlertEvaluationSchema).optional(),\n schedule: z.lazy(() => marshalCronScheduleSchema).optional(),\n lifecycleState: z.string().optional(),\n customSummary: z.string().optional(),\n customDescription: z.string().optional(),\n runAs: z.lazy(() => marshalAlertRunAsSchema).optional(),\n effectiveRunAs: z.lazy(() => marshalAlertRunAsSchema).optional(),\n parameters: z\n .array(z.lazy(() => marshalAlertStatementParameterSchema))\n .optional(),\n })\n .transform(d => ({\n id: d.id,\n display_name: d.displayName,\n owner_user_name: d.ownerUserName,\n create_time: d.createTime,\n update_time: d.updateTime,\n parent_path: d.parentPath,\n query_text: d.queryText,\n warehouse_id: d.warehouseId,\n run_as_user_name: d.runAsUserName,\n evaluation: d.evaluation,\n schedule: d.schedule,\n lifecycle_state: d.lifecycleState,\n custom_summary: d.customSummary,\n custom_description: d.customDescription,\n run_as: d.runAs,\n effective_run_as: d.effectiveRunAs,\n parameters: d.parameters,\n }));\n\nexport const marshalAlertEvaluationSchema: z.ZodType = z\n .object({\n source: z.lazy(() => marshalAlertOperandColumnSchema).optional(),\n comparisonOperator: z.string().optional(),\n threshold: z.lazy(() => marshalAlertOperandSchema).optional(),\n notification: z.lazy(() => marshalAlertNotificationSchema).optional(),\n state: z.string().optional(),\n lastEvaluatedAt: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n emptyResultState: z.string().optional(),\n })\n .transform(d => ({\n source: d.source,\n comparison_operator: d.comparisonOperator,\n threshold: d.threshold,\n notification: d.notification,\n state: d.state,\n last_evaluated_at: d.lastEvaluatedAt,\n empty_result_state: d.emptyResultState,\n }));\n\nexport const marshalAlertNotificationSchema: z.ZodType = z\n .object({\n subscriptions: z\n .array(z.lazy(() => marshalAlertSubscriptionSchema))\n .optional(),\n retriggerSeconds: z.number().optional(),\n notifyOnOk: z.boolean().optional(),\n })\n .transform(d => ({\n subscriptions: d.subscriptions,\n retrigger_seconds: d.retriggerSeconds,\n notify_on_ok: d.notifyOnOk,\n }));\n\nexport const marshalAlertOperandSchema: z.ZodType = z\n .object({\n operand: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('column'),\n column: z.lazy(() => marshalAlertOperandColumnSchema),\n }),\n z.object({\n $case: z.literal('value'),\n value: z.lazy(() => marshalAlertOperandValueSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.operand?.$case === 'column' && {column: d.operand.column}),\n ...(d.operand?.$case === 'value' && {value: d.operand.value}),\n }));\n\nexport const marshalAlertOperandColumnSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n display: z.string().optional(),\n aggregation: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n display: d.display,\n aggregation: d.aggregation,\n }));\n\nexport const marshalAlertOperandValueSchema: z.ZodType = z\n .object({\n value: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('stringValue'), stringValue: z.string()}),\n z.object({$case: z.literal('doubleValue'), doubleValue: z.number()}),\n z.object({$case: z.literal('boolValue'), boolValue: z.boolean()}),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.value?.$case === 'stringValue' && {\n string_value: d.value.stringValue,\n }),\n ...(d.value?.$case === 'doubleValue' && {\n double_value: d.value.doubleValue,\n }),\n ...(d.value?.$case === 'boolValue' && {bool_value: d.value.boolValue}),\n }));\n\nexport const marshalAlertRunAsSchema: z.ZodType = z\n .object({\n identity: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('userName'), userName: z.string()}),\n z.object({\n $case: z.literal('servicePrincipalName'),\n servicePrincipalName: z.string(),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.identity?.$case === 'userName' && {user_name: d.identity.userName}),\n ...(d.identity?.$case === 'servicePrincipalName' && {\n service_principal_name: d.identity.servicePrincipalName,\n }),\n }));\n\nexport const marshalAlertStatementParameterSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n type: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n value: d.value,\n type: d.type,\n }));\n\nexport const marshalAlertSubscriptionSchema: z.ZodType = z\n .object({\n subscriptionType: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('userEmail'), userEmail: z.string()}),\n z.object({\n $case: z.literal('destinationId'),\n destinationId: z.string(),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.subscriptionType?.$case === 'userEmail' && {\n user_email: d.subscriptionType.userEmail,\n }),\n ...(d.subscriptionType?.$case === 'destinationId' && {\n destination_id: d.subscriptionType.destinationId,\n }),\n }));\n\nexport const marshalCronScheduleSchema: z.ZodType = z\n .object({\n quartzCronSchedule: z.string().optional(),\n timezoneId: z.string().optional(),\n pauseStatus: z.string().optional(),\n })\n .transform(d => ({\n quartz_cron_schedule: d.quartzCronSchedule,\n timezone_id: d.timezoneId,\n pause_status: d.pauseStatus,\n }));\n\nconst alertFieldMaskSchema: FieldMaskSchema = {\n createTime: {wire: 'create_time'},\n customDescription: {wire: 'custom_description'},\n customSummary: {wire: 'custom_summary'},\n displayName: {wire: 'display_name'},\n effectiveRunAs: {\n wire: 'effective_run_as',\n children: () => alertRunAsFieldMaskSchema,\n },\n evaluation: {\n wire: 'evaluation',\n children: () => alertEvaluationFieldMaskSchema,\n },\n id: {wire: 'id'},\n lifecycleState: {wire: 'lifecycle_state'},\n ownerUserName: {wire: 'owner_user_name'},\n parameters: {wire: 'parameters'},\n parentPath: {wire: 'parent_path'},\n queryText: {wire: 'query_text'},\n runAs: {wire: 'run_as', children: () => alertRunAsFieldMaskSchema},\n runAsUserName: {wire: 'run_as_user_name'},\n schedule: {wire: 'schedule', children: () => cronScheduleFieldMaskSchema},\n updateTime: {wire: 'update_time'},\n warehouseId: {wire: 'warehouse_id'},\n};\n\nexport function alertFieldMask(...paths: string[]): FieldMask<Alert> {\n return FieldMask.build<Alert>(paths, alertFieldMaskSchema);\n}\n\nconst alertEvaluationFieldMaskSchema: FieldMaskSchema = {\n comparisonOperator: {wire: 'comparison_operator'},\n emptyResultState: {wire: 'empty_result_state'},\n lastEvaluatedAt: {wire: 'last_evaluated_at'},\n notification: {\n wire: 'notification',\n children: () => alertNotificationFieldMaskSchema,\n },\n source: {wire: 'source', children: () => alertOperandColumnFieldMaskSchema},\n state: {wire: 'state'},\n threshold: {wire: 'threshold', children: () => alertOperandFieldMaskSchema},\n};\n\nconst alertNotificationFieldMaskSchema: FieldMaskSchema = {\n notifyOnOk: {wire: 'notify_on_ok'},\n retriggerSeconds: {wire: 'retrigger_seconds'},\n subscriptions: {wire: 'subscriptions'},\n};\n\nconst alertOperandFieldMaskSchema: FieldMaskSchema = {\n column: {wire: 'column', children: () => alertOperandColumnFieldMaskSchema},\n value: {wire: 'value', children: () => alertOperandValueFieldMaskSchema},\n};\n\nconst alertOperandColumnFieldMaskSchema: FieldMaskSchema = {\n aggregation: {wire: 'aggregation'},\n display: {wire: 'display'},\n name: {wire: 'name'},\n};\n\nconst alertOperandValueFieldMaskSchema: FieldMaskSchema = {\n boolValue: {wire: 'bool_value'},\n doubleValue: {wire: 'double_value'},\n stringValue: {wire: 'string_value'},\n};\n\nconst alertRunAsFieldMaskSchema: FieldMaskSchema = {\n servicePrincipalName: {wire: 'service_principal_name'},\n userName: {wire: 'user_name'},\n};\n\nconst cronScheduleFieldMaskSchema: FieldMaskSchema = {\n pauseStatus: {wire: 'pause_status'},\n quartzCronSchedule: {wire: 'quartz_cron_schedule'},\n timezoneId: {wire: 'timezone_id'},\n};\n"],"mappings":";;;;;AAQA,MAAa,cAAc;CACzB,KAAK;CACL,OAAO;CACP,gBAAgB;CAChB,KAAK;CACL,QAAQ;CACR,KAAK;CACL,KAAK;CACL,QAAQ;CACT;;;;;;;;AAaD,MAAa,uBAAuB;CAElC,SAAS;CACT,WAAW;CACX,IAAI;CACJ,OAAO;CACR;AAMD,MAAa,sBAAsB;CACjC,QAAQ;CACR,SAAS;CACV;AAMD,MAAa,qBAAqB;CAChC,WAAW;CACX,cAAc;CACd,OAAO;CACP,WAAW;CACX,uBAAuB;CACvB,oBAAoB;CACpB,SAAS;CACT,aAAa;CACd;AAMD,MAAa,sBAAsB;CACjC,UAAU;CACV,QAAQ;CACT;AAoND,MAAa,uBAAyC,EACnD,OAAO;CACN,IAAI,EAAE,QAAQ,CAAC,UAAU;CACzB,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,aAAa,EACV,QAAQ,CACR,WAAU,MAAK,SAAS,QAAQ,KAAK,EAAE,CAAC,CACxC,UAAU;CACb,aAAa,EACV,QAAQ,CACR,WAAU,MAAK,SAAS,QAAQ,KAAK,EAAE,CAAC,CACxC,UAAU;CACb,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,kBAAkB,EA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EAAC,MAAM,aAAY;CAC9B;AAED,MAAM,8BAA+C;CACnD,aAAa,EAAC,MAAM,gBAAe;CACnC,oBAAoB,EAAC,MAAM,wBAAuB;CAClD,YAAY,EAAC,MAAM,eAAc;CAClC"}
|
|
1
|
+
{"version":3,"file":"model.js","names":[],"sources":["../../src/v2/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Aggregation = {\n SUM: 'SUM',\n COUNT: 'COUNT',\n COUNT_DISTINCT: 'COUNT_DISTINCT',\n AVG: 'AVG',\n MEDIAN: 'MEDIAN',\n MIN: 'MIN',\n MAX: 'MAX',\n STDDEV: 'STDDEV',\n} as const;\nexport type Aggregation =\n | (typeof Aggregation)[keyof typeof Aggregation]\n | (string & {});\n\n/**\n * UNSPECIFIED - default unspecify value for proto enum, do not use it in the code\n * UNKNOWN - alert not yet evaluated\n * TRIGGERED - alert is triggered\n * OK - alert is not triggered\n * ERROR - alert evaluation failed\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertEvaluationState = {\n /** Deprecated. Please avoid using `UNKNOWN` as empty_result_state. */\n UNKNOWN: 'UNKNOWN',\n TRIGGERED: 'TRIGGERED',\n OK: 'OK',\n ERROR: 'ERROR',\n} as const;\nexport type AlertEvaluationState =\n | (typeof AlertEvaluationState)[keyof typeof AlertEvaluationState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertLifecycleState = {\n ACTIVE: 'ACTIVE',\n DELETED: 'DELETED',\n} as const;\nexport type AlertLifecycleState =\n | (typeof AlertLifecycleState)[keyof typeof AlertLifecycleState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ComparisonOperator = {\n LESS_THAN: 'LESS_THAN',\n GREATER_THAN: 'GREATER_THAN',\n EQUAL: 'EQUAL',\n NOT_EQUAL: 'NOT_EQUAL',\n GREATER_THAN_OR_EQUAL: 'GREATER_THAN_OR_EQUAL',\n LESS_THAN_OR_EQUAL: 'LESS_THAN_OR_EQUAL',\n IS_NULL: 'IS_NULL',\n IS_NOT_NULL: 'IS_NOT_NULL',\n} as const;\nexport type ComparisonOperator =\n | (typeof ComparisonOperator)[keyof typeof ComparisonOperator]\n | (string & {});\n\n/** Rendering format for the `custom_summary` and `custom_description` templates. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const CustomTemplateFormat = {\n /** Templates are HTML with Mustache `{{VARIABLE_NAME}}` placeholders. */\n HTML: 'HTML',\n /**\n * Templates are Markdown with allowlisted `@VARIABLE_NAME` placeholders, converted to the\n * format each notification destination expects.\n */\n MARKDOWN: 'MARKDOWN',\n} as const;\nexport type CustomTemplateFormat =\n | (typeof CustomTemplateFormat)[keyof typeof CustomTemplateFormat]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SchedulePauseStatus = {\n UNPAUSED: 'UNPAUSED',\n PAUSED: 'PAUSED',\n} as const;\nexport type SchedulePauseStatus =\n | (typeof SchedulePauseStatus)[keyof typeof SchedulePauseStatus]\n | (string & {});\n\nexport interface Alert {\n /** The canonical identifier of the alert to retrieve information about. */\n id?: string | undefined;\n /** The display name of the alert. */\n displayName?: string | undefined;\n /** The owner's username. This field is set to \"Unavailable\" if the user has been deleted. */\n ownerUserName?: string | undefined;\n /** The timestamp indicating when the alert was created. */\n createTime?: Temporal.Instant | undefined;\n /** The timestamp indicating when the alert was updated. */\n updateTime?: Temporal.Instant | undefined;\n /** The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated. */\n parentPath?: string | undefined;\n /** Text of the query to be run. */\n queryText?: string | undefined;\n /** ID of the SQL warehouse attached to the alert. */\n warehouseId?: string | undefined;\n /**\n * The run as username or application ID of service principal.\n * On Create and Update, this field can be set to application ID of an active service principal. Setting this field requires the servicePrincipal/user role.\n * Deprecated: Use `run_as` field instead. This field will be removed in a future release.\n */\n runAsUserName?: string | undefined;\n evaluation?: AlertEvaluation | undefined;\n schedule?: CronSchedule | undefined;\n /** Indicates whether the query is trashed. */\n lifecycleState?: AlertLifecycleState | undefined;\n /** Custom summary for the alert. support mustache template. */\n customSummary?: string | undefined;\n /** Custom description for the alert. support mustache template. */\n customDescription?: string | undefined;\n /**\n * Specifies the identity that will be used to run the alert.\n * This field allows you to configure alerts to run as a specific user or service principal.\n * - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.\n * - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.\n * If not specified, the alert will run as the request user.\n */\n runAs?: AlertRunAs | undefined;\n /**\n * The actual identity that will be used to execute the alert.\n * This is an output-only field that shows the resolved run-as identity after applying\n * permissions and defaults.\n */\n effectiveRunAs?: AlertRunAs | undefined;\n /**\n * A list of parameters to pass into the alert SQL query statement containing parameter markers. Static values only.\n *\n * Reference a parameter in the query text as `:name`. Each parameter must have a unique, non-empty name.\n * Each parameter consists of a name, a value, and optionally a type. To represent a NULL\n * value, the `value` field may be omitted or set to `null` explicitly. If the `type` field\n * is omitted, the value is interpreted as a string.\n *\n * If the type is given, parameters will be checked for type correctness according\n * to the given type. A value is correct if the provided string can be converted to\n * the requested type using the `cast` function. The exact semantics are described in\n * the section [`cast` function](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.\n */\n parameters?: AlertStatementParameter[] | undefined;\n /**\n * The format used to interpret the `custom_summary` and `custom_description` templates.\n *\n * `HTML` treats both templates as HTML with Mustache `{{VARIABLE_NAME}}` placeholders.\n * `MARKDOWN` treats them as Markdown with allowlisted `@VARIABLE_NAME` placeholders and converts\n * them to the format each notification destination expects, so a single template renders\n * correctly in email, Slack, and Microsoft Teams.\n *\n * When unset, the API applies no default. Responses omit the field unless a format is stored,\n * and a template with no format is rendered as HTML.\n */\n customTemplateFormat?: CustomTemplateFormat | undefined;\n}\n\nexport interface AlertEvaluation {\n /** Source column from result to use to evaluate alert */\n source?: AlertOperandColumn | undefined;\n /** Operator used for comparison in alert evaluation. */\n comparisonOperator?: ComparisonOperator | undefined;\n /** Threshold to user for alert evaluation, can be a column or a value. */\n threshold?: AlertOperand | undefined;\n /** User or Notification Destination to notify when alert is triggered. */\n notification?: AlertNotification | undefined;\n /** Latest state of alert evaluation. */\n state?: AlertEvaluationState | undefined;\n /** Timestamp of the last evaluation. */\n lastEvaluatedAt?: Temporal.Instant | undefined;\n /** Alert state if result is empty. Please avoid setting this field to be `UNKNOWN` because `UNKNOWN` state is planned to be deprecated. */\n emptyResultState?: AlertEvaluationState | undefined;\n}\n\nexport interface AlertNotification {\n subscriptions?: AlertSubscription[] | undefined;\n /**\n * Number of seconds an alert waits after being triggered before it is allowed to send another notification.\n * If set to 0 or omitted, the alert will not send any further notifications after the first trigger\n * Setting this value to 1 allows the alert to send a notification on every evaluation where the condition is met, effectively making it always retrigger for notification purposes.\n */\n retriggerSeconds?: number | undefined;\n /** Whether to notify alert subscribers when alert returns back to normal. */\n notifyOnOk?: boolean | undefined;\n}\n\nexport interface AlertOperand {\n /** Only one of the following fields may be set, depending on the type of operand/threshold. */\n operand?:\n | {$case: 'column'; column: AlertOperandColumn}\n | {$case: 'value'; value: AlertOperandValue}\n | undefined;\n}\n\nexport interface AlertOperandColumn {\n name?: string | undefined;\n display?: string | undefined;\n /** If not set, the behavior is equivalent to using `First row` in the UI. */\n aggregation?: Aggregation | undefined;\n}\n\nexport interface AlertOperandValue {\n /** Only one of the following fields may be set, depending on the type of threshold value. */\n value?:\n | {$case: 'stringValue'; stringValue: string}\n | {$case: 'doubleValue'; doubleValue: number}\n | {$case: 'boolValue'; boolValue: boolean}\n | undefined;\n}\n\nexport interface AlertRunAs {\n identity?:\n | {\n $case: 'userName';\n /** The email of an active workspace user. Can only set this field to their own email. */\n userName: string;\n }\n | {\n $case: 'servicePrincipalName';\n /** Application ID of an active service principal. Setting this field requires the `servicePrincipal/user` role. */\n servicePrincipalName: string;\n }\n | undefined;\n}\n\n/**\n * A named parameter bound to the alert query. Only flat, named scalar parameters are\n * supported; complex types such as ARRAY, MAP, and STRUCT are not.\n */\nexport interface AlertStatementParameter {\n /**\n * The name of the parameter. Reference it in the query text as `:name`. Required, must be\n * non-empty, and must be unique across the alert's parameters.\n */\n name?: string | undefined;\n /** The value bound to the parameter, represented as a string. If omitted, the value is interpreted as NULL. */\n value?: string | undefined;\n /**\n * The SQL data type of the parameter, for example `STRING`, `INT`, or `DECIMAL(10, 2)`. If no type is given\n * the type is assumed to be `STRING`. Complex types such as `ARRAY`, `MAP`, and `STRUCT` are not supported.\n */\n type?: string | undefined;\n}\n\nexport interface AlertSubscription {\n subscriptionType?:\n | {$case: 'userEmail'; userEmail: string}\n | {$case: 'destinationId'; destinationId: string}\n | undefined;\n}\n\nexport interface CreateAlertRequest {\n alert?: Alert | undefined;\n}\n\nexport interface CronSchedule {\n /**\n * A cron expression using quartz syntax that specifies the schedule for this pipeline.\n * Should use the quartz format described here: http://www.quartz-scheduler.org/documentation/quartz-2.1.7/tutorials/tutorial-lesson-06.html\n */\n quartzCronSchedule?: string | undefined;\n /**\n * A Java timezone id. The schedule will be resolved using this timezone.\n * This will be combined with the quartz_cron_schedule to determine the schedule.\n * See https://docs.databricks.com/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set-timezone.html for details.\n */\n timezoneId?: string | undefined;\n /** Indicate whether this schedule is paused or not. */\n pauseStatus?: SchedulePauseStatus | undefined;\n}\n\n/**\n * Represents an empty message, similar to google.protobuf.Empty, which is not available in the firm\n * right now.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface Empty {}\n\nexport interface GetAlertRequest {\n id?: string | undefined;\n}\n\nexport interface ListAlertsRequest {\n pageToken?: string | undefined;\n pageSize?: number | undefined;\n}\n\nexport interface ListAlertsResponse {\n alerts?: Alert[] | undefined;\n nextPageToken?: string | undefined;\n}\n\nexport interface TrashAlertRequest {\n id?: string | undefined;\n /** Whether to permanently delete the alert. If not set, the alert will only be soft deleted. */\n purge?: boolean | undefined;\n}\n\nexport interface UpdateAlertRequest {\n alert?: Alert | undefined;\n updateMask?: FieldMask<Alert> | undefined;\n}\n\nexport const unmarshalAlertSchema: z.ZodType<Alert> = z\n .object({\n id: z.string().optional(),\n display_name: z.string().optional(),\n owner_user_name: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n parent_path: z.string().optional(),\n query_text: z.string().optional(),\n warehouse_id: z.string().optional(),\n run_as_user_name: z.string().optional(),\n evaluation: z.lazy(() => unmarshalAlertEvaluationSchema).optional(),\n schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),\n lifecycle_state: z.string().optional(),\n custom_summary: z.string().optional(),\n custom_description: z.string().optional(),\n run_as: z.lazy(() => unmarshalAlertRunAsSchema).optional(),\n effective_run_as: z.lazy(() => unmarshalAlertRunAsSchema).optional(),\n parameters: z\n .array(z.lazy(() => unmarshalAlertStatementParameterSchema))\n .optional(),\n custom_template_format: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n displayName: d.display_name,\n ownerUserName: d.owner_user_name,\n createTime: d.create_time,\n updateTime: d.update_time,\n parentPath: d.parent_path,\n queryText: d.query_text,\n warehouseId: d.warehouse_id,\n runAsUserName: d.run_as_user_name,\n evaluation: d.evaluation,\n schedule: d.schedule,\n lifecycleState: d.lifecycle_state,\n customSummary: d.custom_summary,\n customDescription: d.custom_description,\n runAs: d.run_as,\n effectiveRunAs: d.effective_run_as,\n parameters: d.parameters,\n customTemplateFormat: d.custom_template_format,\n }));\n\nexport const unmarshalAlertEvaluationSchema: z.ZodType<AlertEvaluation> = z\n .object({\n source: z.lazy(() => unmarshalAlertOperandColumnSchema).optional(),\n comparison_operator: z.string().optional(),\n threshold: z.lazy(() => unmarshalAlertOperandSchema).optional(),\n notification: z.lazy(() => unmarshalAlertNotificationSchema).optional(),\n state: z.string().optional(),\n last_evaluated_at: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n empty_result_state: z.string().optional(),\n })\n .transform(d => ({\n source: d.source,\n comparisonOperator: d.comparison_operator,\n threshold: d.threshold,\n notification: d.notification,\n state: d.state,\n lastEvaluatedAt: d.last_evaluated_at,\n emptyResultState: d.empty_result_state,\n }));\n\nexport const unmarshalAlertNotificationSchema: z.ZodType<AlertNotification> = z\n .object({\n subscriptions: z\n .array(z.lazy(() => unmarshalAlertSubscriptionSchema))\n .optional(),\n retrigger_seconds: z.number().optional(),\n notify_on_ok: z.boolean().optional(),\n })\n .transform(d => ({\n subscriptions: d.subscriptions,\n retriggerSeconds: d.retrigger_seconds,\n notifyOnOk: d.notify_on_ok,\n }));\n\nexport const unmarshalAlertOperandSchema: z.ZodType<AlertOperand> = z\n .object({\n column: z.lazy(() => unmarshalAlertOperandColumnSchema).optional(),\n value: z.lazy(() => unmarshalAlertOperandValueSchema).optional(),\n })\n .transform(d => ({\n operand:\n d.column !== undefined\n ? {$case: 'column' as const, column: d.column}\n : d.value !== undefined\n ? {$case: 'value' as const, value: d.value}\n : undefined,\n }));\n\nexport const unmarshalAlertOperandColumnSchema: z.ZodType<AlertOperandColumn> =\n z\n .object({\n name: z.string().optional(),\n display: z.string().optional(),\n aggregation: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n display: d.display,\n aggregation: d.aggregation,\n }));\n\nexport const unmarshalAlertOperandValueSchema: z.ZodType<AlertOperandValue> = z\n .object({\n string_value: z.string().optional(),\n double_value: z.number().optional(),\n bool_value: z.boolean().optional(),\n })\n .transform(d => ({\n value:\n d.string_value !== undefined\n ? {$case: 'stringValue' as const, stringValue: d.string_value}\n : d.double_value !== undefined\n ? {$case: 'doubleValue' as const, doubleValue: d.double_value}\n : d.bool_value !== undefined\n ? {$case: 'boolValue' as const, boolValue: d.bool_value}\n : undefined,\n }));\n\nexport const unmarshalAlertRunAsSchema: z.ZodType<AlertRunAs> = z\n .object({\n user_name: z.string().optional(),\n service_principal_name: z.string().optional(),\n })\n .transform(d => ({\n identity:\n d.user_name !== undefined\n ? {$case: 'userName' as const, userName: d.user_name}\n : d.service_principal_name !== undefined\n ? {\n $case: 'servicePrincipalName' as const,\n servicePrincipalName: d.service_principal_name,\n }\n : undefined,\n }));\n\nexport const unmarshalAlertStatementParameterSchema: z.ZodType<AlertStatementParameter> =\n z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n type: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n value: d.value,\n type: d.type,\n }));\n\nexport const unmarshalAlertSubscriptionSchema: z.ZodType<AlertSubscription> = z\n .object({\n user_email: z.string().optional(),\n destination_id: z.string().optional(),\n })\n .transform(d => ({\n subscriptionType:\n d.user_email !== undefined\n ? {$case: 'userEmail' as const, userEmail: d.user_email}\n : d.destination_id !== undefined\n ? {$case: 'destinationId' as const, destinationId: d.destination_id}\n : undefined,\n }));\n\nexport const unmarshalCronScheduleSchema: z.ZodType<CronSchedule> = z\n .object({\n quartz_cron_schedule: z.string().optional(),\n timezone_id: z.string().optional(),\n pause_status: z.string().optional(),\n })\n .transform(d => ({\n quartzCronSchedule: d.quartz_cron_schedule,\n timezoneId: d.timezone_id,\n pauseStatus: d.pause_status,\n }));\n\nexport const unmarshalEmptySchema: z.ZodType<Empty> = z.object({});\n\nexport const unmarshalListAlertsResponseSchema: z.ZodType<ListAlertsResponse> =\n z\n .object({\n alerts: z.array(z.lazy(() => unmarshalAlertSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n alerts: d.alerts,\n nextPageToken: d.next_page_token,\n }));\n\nexport const marshalAlertSchema: z.ZodType = z\n .object({\n id: z.string().optional(),\n displayName: z.string().optional(),\n ownerUserName: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n parentPath: z.string().optional(),\n queryText: z.string().optional(),\n warehouseId: z.string().optional(),\n runAsUserName: z.string().optional(),\n evaluation: z.lazy(() => marshalAlertEvaluationSchema).optional(),\n schedule: z.lazy(() => marshalCronScheduleSchema).optional(),\n lifecycleState: z.string().optional(),\n customSummary: z.string().optional(),\n customDescription: z.string().optional(),\n runAs: z.lazy(() => marshalAlertRunAsSchema).optional(),\n effectiveRunAs: z.lazy(() => marshalAlertRunAsSchema).optional(),\n parameters: z\n .array(z.lazy(() => marshalAlertStatementParameterSchema))\n .optional(),\n customTemplateFormat: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n display_name: d.displayName,\n owner_user_name: d.ownerUserName,\n create_time: d.createTime,\n update_time: d.updateTime,\n parent_path: d.parentPath,\n query_text: d.queryText,\n warehouse_id: d.warehouseId,\n run_as_user_name: d.runAsUserName,\n evaluation: d.evaluation,\n schedule: d.schedule,\n lifecycle_state: d.lifecycleState,\n custom_summary: d.customSummary,\n custom_description: d.customDescription,\n run_as: d.runAs,\n effective_run_as: d.effectiveRunAs,\n parameters: d.parameters,\n custom_template_format: d.customTemplateFormat,\n }));\n\nexport const marshalAlertEvaluationSchema: z.ZodType = z\n .object({\n source: z.lazy(() => marshalAlertOperandColumnSchema).optional(),\n comparisonOperator: z.string().optional(),\n threshold: z.lazy(() => marshalAlertOperandSchema).optional(),\n notification: z.lazy(() => marshalAlertNotificationSchema).optional(),\n state: z.string().optional(),\n lastEvaluatedAt: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n emptyResultState: z.string().optional(),\n })\n .transform(d => ({\n source: d.source,\n comparison_operator: d.comparisonOperator,\n threshold: d.threshold,\n notification: d.notification,\n state: d.state,\n last_evaluated_at: d.lastEvaluatedAt,\n empty_result_state: d.emptyResultState,\n }));\n\nexport const marshalAlertNotificationSchema: z.ZodType = z\n .object({\n subscriptions: z\n .array(z.lazy(() => marshalAlertSubscriptionSchema))\n .optional(),\n retriggerSeconds: z.number().optional(),\n notifyOnOk: z.boolean().optional(),\n })\n .transform(d => ({\n subscriptions: d.subscriptions,\n retrigger_seconds: d.retriggerSeconds,\n notify_on_ok: d.notifyOnOk,\n }));\n\nexport const marshalAlertOperandSchema: z.ZodType = z\n .object({\n operand: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('column'),\n column: z.lazy(() => marshalAlertOperandColumnSchema),\n }),\n z.object({\n $case: z.literal('value'),\n value: z.lazy(() => marshalAlertOperandValueSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.operand?.$case === 'column' && {column: d.operand.column}),\n ...(d.operand?.$case === 'value' && {value: d.operand.value}),\n }));\n\nexport const marshalAlertOperandColumnSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n display: z.string().optional(),\n aggregation: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n display: d.display,\n aggregation: d.aggregation,\n }));\n\nexport const marshalAlertOperandValueSchema: z.ZodType = z\n .object({\n value: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('stringValue'), stringValue: z.string()}),\n z.object({$case: z.literal('doubleValue'), doubleValue: z.number()}),\n z.object({$case: z.literal('boolValue'), boolValue: z.boolean()}),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.value?.$case === 'stringValue' && {\n string_value: d.value.stringValue,\n }),\n ...(d.value?.$case === 'doubleValue' && {\n double_value: d.value.doubleValue,\n }),\n ...(d.value?.$case === 'boolValue' && {bool_value: d.value.boolValue}),\n }));\n\nexport const marshalAlertRunAsSchema: z.ZodType = z\n .object({\n identity: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('userName'), userName: z.string()}),\n z.object({\n $case: z.literal('servicePrincipalName'),\n servicePrincipalName: z.string(),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.identity?.$case === 'userName' && {user_name: d.identity.userName}),\n ...(d.identity?.$case === 'servicePrincipalName' && {\n service_principal_name: d.identity.servicePrincipalName,\n }),\n }));\n\nexport const marshalAlertStatementParameterSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n type: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n value: d.value,\n type: d.type,\n }));\n\nexport const marshalAlertSubscriptionSchema: z.ZodType = z\n .object({\n subscriptionType: z\n .discriminatedUnion('$case', [\n z.object({$case: z.literal('userEmail'), userEmail: z.string()}),\n z.object({\n $case: z.literal('destinationId'),\n destinationId: z.string(),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.subscriptionType?.$case === 'userEmail' && {\n user_email: d.subscriptionType.userEmail,\n }),\n ...(d.subscriptionType?.$case === 'destinationId' && {\n destination_id: d.subscriptionType.destinationId,\n }),\n }));\n\nexport const marshalCronScheduleSchema: z.ZodType = z\n .object({\n quartzCronSchedule: z.string().optional(),\n timezoneId: z.string().optional(),\n pauseStatus: z.string().optional(),\n })\n .transform(d => ({\n quartz_cron_schedule: d.quartzCronSchedule,\n timezone_id: d.timezoneId,\n pause_status: d.pauseStatus,\n }));\n\nconst alertFieldMaskSchema: FieldMaskSchema = {\n createTime: {wire: 'create_time'},\n customDescription: {wire: 'custom_description'},\n customSummary: {wire: 'custom_summary'},\n customTemplateFormat: {wire: 'custom_template_format'},\n displayName: {wire: 'display_name'},\n effectiveRunAs: {\n wire: 'effective_run_as',\n children: () => alertRunAsFieldMaskSchema,\n },\n evaluation: {\n wire: 'evaluation',\n children: () => alertEvaluationFieldMaskSchema,\n },\n id: {wire: 'id'},\n lifecycleState: {wire: 'lifecycle_state'},\n ownerUserName: {wire: 'owner_user_name'},\n parameters: {wire: 'parameters'},\n parentPath: {wire: 'parent_path'},\n queryText: {wire: 'query_text'},\n runAs: {wire: 'run_as', children: () => alertRunAsFieldMaskSchema},\n runAsUserName: {wire: 'run_as_user_name'},\n schedule: {wire: 'schedule', children: () => cronScheduleFieldMaskSchema},\n updateTime: {wire: 'update_time'},\n warehouseId: {wire: 'warehouse_id'},\n};\n\nexport function alertFieldMask(...paths: string[]): FieldMask<Alert> {\n return FieldMask.build<Alert>(paths, alertFieldMaskSchema);\n}\n\nconst alertEvaluationFieldMaskSchema: FieldMaskSchema = {\n comparisonOperator: {wire: 'comparison_operator'},\n emptyResultState: {wire: 'empty_result_state'},\n lastEvaluatedAt: {wire: 'last_evaluated_at'},\n notification: {\n wire: 'notification',\n children: () => alertNotificationFieldMaskSchema,\n },\n source: {wire: 'source', children: () => alertOperandColumnFieldMaskSchema},\n state: {wire: 'state'},\n threshold: {wire: 'threshold', children: () => alertOperandFieldMaskSchema},\n};\n\nconst alertNotificationFieldMaskSchema: FieldMaskSchema = {\n notifyOnOk: {wire: 'notify_on_ok'},\n retriggerSeconds: {wire: 'retrigger_seconds'},\n subscriptions: {wire: 'subscriptions'},\n};\n\nconst alertOperandFieldMaskSchema: FieldMaskSchema = {\n column: {wire: 'column', children: () => alertOperandColumnFieldMaskSchema},\n value: {wire: 'value', children: () => alertOperandValueFieldMaskSchema},\n};\n\nconst alertOperandColumnFieldMaskSchema: FieldMaskSchema = {\n aggregation: {wire: 'aggregation'},\n display: {wire: 'display'},\n name: {wire: 'name'},\n};\n\nconst alertOperandValueFieldMaskSchema: FieldMaskSchema = {\n boolValue: {wire: 'bool_value'},\n doubleValue: {wire: 'double_value'},\n stringValue: {wire: 'string_value'},\n};\n\nconst alertRunAsFieldMaskSchema: FieldMaskSchema = {\n servicePrincipalName: {wire: 'service_principal_name'},\n userName: {wire: 'user_name'},\n};\n\nconst cronScheduleFieldMaskSchema: FieldMaskSchema = {\n pauseStatus: {wire: 'pause_status'},\n quartzCronSchedule: {wire: 'quartz_cron_schedule'},\n timezoneId: {wire: 'timezone_id'},\n};\n"],"mappings":";;;;;AAQA,MAAa,cAAc;CACzB,KAAK;CACL,OAAO;CACP,gBAAgB;CAChB,KAAK;CACL,QAAQ;CACR,KAAK;CACL,KAAK;CACL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
"version": "0.52.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"directory": "packages/alerts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@databricks/sdk-auth": ">=0.
|
|
42
|
-
"@databricks/sdk-core": ">=0.51.
|
|
43
|
-
"@databricks/sdk-options": ">=0.51.
|
|
41
|
+
"@databricks/sdk-auth": ">=0.52.0 <1.0.0",
|
|
42
|
+
"@databricks/sdk-core": ">=0.51.1 <1.0.0",
|
|
43
|
+
"@databricks/sdk-options": ">=0.51.1 <1.0.0",
|
|
44
44
|
"@js-temporal/polyfill": "^0.5.0",
|
|
45
45
|
"json-bigint": "^1.0.0",
|
|
46
46
|
"zod": "^4.3.6"
|