@databricks/sdk-alerts 0.52.5 → 0.53.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.map +1 -1
- package/dist/v1/model.js +4 -4
- package/dist/v1/model.js.map +1 -1
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +7 -7
- package/dist/v2/model.js.map +1 -1
- package/package.json +5 -5
package/dist/package.js
CHANGED
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;EAAA,SAAA,OAAA;AAAA;AAAA,KACE,cAAA,WACA,cAAA,eAA6B,cAAA;AAAA,UAGxB,KAAA;;EAEf,EAAA;;EAEA,WAAA;;EAEA,OAAA;;EAEA,KAAA,GAAQ,UAAA;EArBY;EAuBpB,kBAAA;EAtBU;EAwBV,cAAA,GAAiB,cAAA;EApBN;EAsBX,WAAA,GAAc,QAAA,CAAS,OAAA;;EAEvB,UAAA;;EAEA,aAAA;EAtBwB;EAwBxB,SAAA,GAAY,cAAA;EAvBF;EAyBV,aAAA;EAtBe;EAwBf,UAAA;;EAEA,UAAA,GAAa,QAAA,CAAS,OAAA;EAdL;EAgBjB,UAAA,GAAa,QAAA,CAAS,OAAA;EARV;EAUZ,UAAA;AAAA;AAAA,UAGe,cAAA;EALc;EAO7B,EAAA,GAAK,aAAA;EA/BL;EAiCA,OAAA,GAAU,YAAA;EA7BV;EA+BA,SAAA,GAAY,YAAA;EA7BZ;EA+BA,gBAAA,GAAmB,UAAA;AAAA;AAAA,UAGJ,YAAA;EA9B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HANGED
|
@@ -31,7 +31,7 @@ const unmarshalAlertSchema = z.object({
|
|
|
31
31
|
trigger_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
32
32
|
custom_body: z.string().optional(),
|
|
33
33
|
custom_subject: z.string().optional(),
|
|
34
|
-
condition: z.lazy(() => unmarshalAlertConditionSchema).
|
|
34
|
+
condition: z.lazy(() => unmarshalAlertConditionSchema).nullish().transform((v) => v ?? void 0),
|
|
35
35
|
owner_user_name: z.string().optional(),
|
|
36
36
|
parent_path: z.string().optional(),
|
|
37
37
|
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
@@ -56,8 +56,8 @@ const unmarshalAlertSchema = z.object({
|
|
|
56
56
|
}));
|
|
57
57
|
const unmarshalAlertConditionSchema = z.object({
|
|
58
58
|
op: z.string().optional(),
|
|
59
|
-
operand: z.lazy(() => unmarshalAlertOperandSchema).
|
|
60
|
-
threshold: z.lazy(() => unmarshalAlertOperandSchema).
|
|
59
|
+
operand: z.lazy(() => unmarshalAlertOperandSchema).nullish().transform((v) => v ?? void 0),
|
|
60
|
+
threshold: z.lazy(() => unmarshalAlertOperandSchema).nullish().transform((v) => v ?? void 0),
|
|
61
61
|
empty_result_state: z.string().optional()
|
|
62
62
|
}).transform((d) => ({
|
|
63
63
|
op: d.op,
|
|
@@ -108,7 +108,7 @@ const unmarshalListAlertsResponseAlertSchema = z.object({
|
|
|
108
108
|
trigger_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
109
109
|
custom_body: z.string().optional(),
|
|
110
110
|
custom_subject: z.string().optional(),
|
|
111
|
-
condition: z.lazy(() => unmarshalAlertConditionSchema).
|
|
111
|
+
condition: z.lazy(() => unmarshalAlertConditionSchema).nullish().transform((v) => v ?? void 0),
|
|
112
112
|
owner_user_name: z.string().optional(),
|
|
113
113
|
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
114
114
|
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
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 /** 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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E;CACb,iBAAiB,EAAE;CACnB,cAAc,EAAE;CACjB,EAAE;AAEL,MAAM,gCAAiD;CACrD,kBAAkB,EAAC,MAAM,sBAAqB;CAC9C,IAAI,EAAC,MAAM,MAAK;CAChB,SAAS;EAAC,MAAM;EAAW,gBAAgB;EAA4B;CACvE,WAAW;EAAC,MAAM;EAAa,gBAAgB;EAA4B;CAC5E;AAED,MAAM,8BAA+C;CACnD,QAAQ;EAAC,MAAM;EAAU,gBAAgB;EAAkC;CAC3E,OAAO;EAAC,MAAM;EAAS,gBAAgB;EAAiC;CACzE;AAED,MAAM,oCAAqD,EACzD,MAAM,EAAC,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,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"}
|
|
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\n .lazy(() => unmarshalAlertConditionSchema)\n .nullish()\n .transform(v => v ?? undefined),\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\n .lazy(() => unmarshalAlertOperandSchema)\n .nullish()\n .transform(v => v ?? undefined),\n threshold: z\n .lazy(() => unmarshalAlertOperandSchema)\n .nullish()\n .transform(v => v ?? undefined),\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\n .lazy(() => unmarshalAlertConditionSchema)\n .nullish()\n .transform(v => v ?? undefined),\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,EACR,WAAW,8BAA8B,CACzC,SAAS,CACT,WAAU,MAAK,KAAK,OAAU;CACjC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;C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GED
|
@@ -59,13 +59,13 @@ const unmarshalAlertSchema = z.object({
|
|
|
59
59
|
query_text: z.string().optional(),
|
|
60
60
|
warehouse_id: z.string().optional(),
|
|
61
61
|
run_as_user_name: z.string().optional(),
|
|
62
|
-
evaluation: z.lazy(() => unmarshalAlertEvaluationSchema).
|
|
63
|
-
schedule: z.lazy(() => unmarshalCronScheduleSchema).
|
|
62
|
+
evaluation: z.lazy(() => unmarshalAlertEvaluationSchema).nullish().transform((v) => v ?? void 0),
|
|
63
|
+
schedule: z.lazy(() => unmarshalCronScheduleSchema).nullish().transform((v) => v ?? void 0),
|
|
64
64
|
lifecycle_state: z.string().optional(),
|
|
65
65
|
custom_summary: z.string().optional(),
|
|
66
66
|
custom_description: z.string().optional(),
|
|
67
|
-
run_as: z.lazy(() => unmarshalAlertRunAsSchema).
|
|
68
|
-
effective_run_as: z.lazy(() => unmarshalAlertRunAsSchema).
|
|
67
|
+
run_as: z.lazy(() => unmarshalAlertRunAsSchema).nullish().transform((v) => v ?? void 0),
|
|
68
|
+
effective_run_as: z.lazy(() => unmarshalAlertRunAsSchema).nullish().transform((v) => v ?? void 0),
|
|
69
69
|
parameters: z.array(z.lazy(() => unmarshalAlertStatementParameterSchema)).optional(),
|
|
70
70
|
custom_template_format: z.string().optional()
|
|
71
71
|
}).transform((d) => ({
|
|
@@ -89,10 +89,10 @@ const unmarshalAlertSchema = z.object({
|
|
|
89
89
|
customTemplateFormat: d.custom_template_format
|
|
90
90
|
}));
|
|
91
91
|
const unmarshalAlertEvaluationSchema = z.object({
|
|
92
|
-
source: z.lazy(() => unmarshalAlertOperandColumnSchema).
|
|
92
|
+
source: z.lazy(() => unmarshalAlertOperandColumnSchema).nullish().transform((v) => v ?? void 0),
|
|
93
93
|
comparison_operator: z.string().optional(),
|
|
94
|
-
threshold: z.lazy(() => unmarshalAlertOperandSchema).
|
|
95
|
-
notification: z.lazy(() => unmarshalAlertNotificationSchema).
|
|
94
|
+
threshold: z.lazy(() => unmarshalAlertOperandSchema).nullish().transform((v) => v ?? void 0),
|
|
95
|
+
notification: z.lazy(() => unmarshalAlertNotificationSchema).nullish().transform((v) => v ?? void 0),
|
|
96
96
|
state: z.string().optional(),
|
|
97
97
|
last_evaluated_at: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
98
98
|
empty_result_state: z.string().optional()
|
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/** 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. Interpreted according to `custom_template_format`. */\n customSummary?: string | undefined;\n /** Custom description for the alert. Interpreted according to `custom_template_format`. */\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: 'tim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c;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. Interpreted according to `custom_template_format`. */\n customSummary?: string | undefined;\n /** Custom description for the alert. Interpreted according to `custom_template_format`. */\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\n .lazy(() => unmarshalAlertEvaluationSchema)\n .nullish()\n .transform(v => v ?? undefined),\n schedule: z\n .lazy(() => unmarshalCronScheduleSchema)\n .nullish()\n .transform(v => v ?? undefined),\n lifecycle_state: z.string().optional(),\n custom_summary: z.string().optional(),\n custom_description: z.string().optional(),\n run_as: z\n .lazy(() => unmarshalAlertRunAsSchema)\n .nullish()\n .transform(v => v ?? undefined),\n effective_run_as: z\n .lazy(() => unmarshalAlertRunAsSchema)\n .nullish()\n .transform(v => v ?? undefined),\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\n .lazy(() => unmarshalAlertOperandColumnSchema)\n .nullish()\n .transform(v => v ?? undefined),\n comparison_operator: z.string().optional(),\n threshold: z\n .lazy(() => unmarshalAlertOperandSchema)\n .nullish()\n .transform(v => v ?? undefined),\n notification: z\n .lazy(() => unmarshalAlertNotificationSchema)\n .nullish()\n .transform(v => v ?? undefined),\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;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AAY;CAC9B;AAED,MAAM,8BAA+C;CACnD,aAAa,EAAC,MAAM,gBAAe;CACnC,oBAAoB,EAAC,MAAM,wBAAuB;CAClD,YAAY,EAAC,MAAM,eAAc;CAClC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sdk-alerts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"directory": "packages/alerts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@databricks/sdk-auth": ">=0.
|
|
42
|
-
"@databricks/sdk-core": ">=0.
|
|
43
|
-
"@databricks/sdk-options": ">=0.
|
|
41
|
+
"@databricks/sdk-auth": ">=0.56.0 <1.0.0",
|
|
42
|
+
"@databricks/sdk-core": ">=0.52.0 <1.0.0",
|
|
43
|
+
"@databricks/sdk-options": ">=0.52.0 <1.0.0",
|
|
44
44
|
"@js-temporal/polyfill": "^0.5.0",
|
|
45
45
|
"json-bigint": "^1.0.0",
|
|
46
46
|
"zod": "^4.3.6"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"node": "
|
|
49
|
+
"node": "^22.23.4 || ^24.22.1 || >=26.12.1"
|
|
50
50
|
}
|
|
51
51
|
}
|