@databricks/sdk-notificationdestinations 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +25 -21
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +146 -185
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -7
- package/dist/v1/index.js +4 -7
- package/dist/v1/model.d.ts +144 -141
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +230 -286
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.d.ts
CHANGED
|
@@ -1,157 +1,160 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/v1/model.d.ts
|
|
4
|
+
declare const DestinationType: {
|
|
5
|
+
readonly SLACK: "SLACK";
|
|
6
|
+
readonly EMAIL: "EMAIL";
|
|
7
|
+
readonly WEBHOOK: "WEBHOOK";
|
|
8
|
+
readonly PAGERDUTY: "PAGERDUTY";
|
|
9
|
+
readonly MICROSOFT_TEAMS: "MICROSOFT_TEAMS";
|
|
8
10
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
type DestinationType = (typeof DestinationType)[keyof typeof DestinationType] | (string & {});
|
|
12
|
+
interface Config {
|
|
13
|
+
config?: {
|
|
14
|
+
$case: 'slack';
|
|
15
|
+
slack: SlackConfig;
|
|
16
|
+
} | {
|
|
17
|
+
$case: 'email';
|
|
18
|
+
email: EmailConfig;
|
|
19
|
+
} | {
|
|
20
|
+
$case: 'genericWebhook';
|
|
21
|
+
genericWebhook: GenericWebhookConfig;
|
|
22
|
+
} | {
|
|
23
|
+
$case: 'pagerduty';
|
|
24
|
+
pagerduty: PagerdutyConfig;
|
|
25
|
+
} | {
|
|
26
|
+
$case: 'microsoftTeams';
|
|
27
|
+
microsoftTeams: MicrosoftTeamsConfig;
|
|
28
|
+
} | undefined;
|
|
27
29
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
interface CreateNotificationDestinationRequest {
|
|
31
|
+
/** The display name for the notification destination. */
|
|
32
|
+
displayName?: string | undefined;
|
|
33
|
+
/** The configuration for the notification destination. Must wrap EXACTLY one of the nested configs. */
|
|
34
|
+
config?: Config | undefined;
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
interface DeleteNotificationDestinationRequest {
|
|
37
|
+
id?: string | undefined;
|
|
36
38
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
interface EmailConfig {
|
|
40
|
+
/** Email addresses to notify. */
|
|
41
|
+
addresses?: string[] | undefined;
|
|
40
42
|
}
|
|
41
|
-
|
|
43
|
+
interface Empty {}
|
|
44
|
+
interface GenericWebhookConfig {
|
|
45
|
+
/** [Input-Only] URL for webhook. */
|
|
46
|
+
url?: string | undefined;
|
|
47
|
+
/** [Output-Only] Whether URL is set. */
|
|
48
|
+
urlSet?: boolean | undefined;
|
|
49
|
+
/** [Input-Only][Optional] Username for webhook. */
|
|
50
|
+
username?: string | undefined;
|
|
51
|
+
/** [Output-Only] Whether username is set. */
|
|
52
|
+
usernameSet?: boolean | undefined;
|
|
53
|
+
/** [Input-Only][Optional] Password for webhook. */
|
|
54
|
+
password?: string | undefined;
|
|
55
|
+
/** [Output-Only] Whether password is set. */
|
|
56
|
+
passwordSet?: boolean | undefined;
|
|
42
57
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
url?: string | undefined;
|
|
46
|
-
/** [Output-Only] Whether URL is set. */
|
|
47
|
-
urlSet?: boolean | undefined;
|
|
48
|
-
/** [Input-Only][Optional] Username for webhook. */
|
|
49
|
-
username?: string | undefined;
|
|
50
|
-
/** [Output-Only] Whether username is set. */
|
|
51
|
-
usernameSet?: boolean | undefined;
|
|
52
|
-
/** [Input-Only][Optional] Password for webhook. */
|
|
53
|
-
password?: string | undefined;
|
|
54
|
-
/** [Output-Only] Whether password is set. */
|
|
55
|
-
passwordSet?: boolean | undefined;
|
|
58
|
+
interface GetNotificationDestinationRequest {
|
|
59
|
+
id?: string | undefined;
|
|
56
60
|
}
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
interface ListNotificationDestinationsRequest {
|
|
62
|
+
pageToken?: string | undefined;
|
|
63
|
+
pageSize?: bigint | undefined;
|
|
59
64
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
interface ListNotificationDestinationsResponse {
|
|
66
|
+
results?: ListNotificationDestinationsResult[] | undefined;
|
|
67
|
+
/** Page token for next of results. */
|
|
68
|
+
nextPageToken?: string | undefined;
|
|
63
69
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
interface ListNotificationDestinationsResult {
|
|
71
|
+
/** UUID identifying notification destination. */
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
/** The display name for the notification destination. */
|
|
74
|
+
displayName?: string | undefined;
|
|
75
|
+
/** [Output-only] The type of the notification destination. The type can not be changed once set. */
|
|
76
|
+
destinationType?: DestinationType | undefined;
|
|
77
|
+
/** The configuration for the notification destination. Will be exactly one of the nested configs. Only returns for users with workspace admin permissions. */
|
|
78
|
+
config?: Config | undefined;
|
|
68
79
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
interface MicrosoftTeamsConfig {
|
|
81
|
+
/** [Input-Only] URL for Microsoft Teams webhook. */
|
|
82
|
+
url?: string | undefined;
|
|
83
|
+
/** [Output-Only] Whether URL is set. */
|
|
84
|
+
urlSet?: boolean | undefined;
|
|
85
|
+
/** [Input-Only] App ID for Microsoft Teams App. */
|
|
86
|
+
appId?: string | undefined;
|
|
87
|
+
/** [Output-Only] Whether App ID is set. */
|
|
88
|
+
appIdSet?: boolean | undefined;
|
|
89
|
+
/** [Input-Only] Secret for Microsoft Teams App authentication. */
|
|
90
|
+
authSecret?: string | undefined;
|
|
91
|
+
/** [Output-Only] Whether secret is set. */
|
|
92
|
+
authSecretSet?: boolean | undefined;
|
|
93
|
+
/** [Input-Only] Channel URL for Microsoft Teams App. */
|
|
94
|
+
channelUrl?: string | undefined;
|
|
95
|
+
/** [Output-Only] Whether Channel URL is set. */
|
|
96
|
+
channelUrlSet?: boolean | undefined;
|
|
97
|
+
/** [Input-Only] Tenant ID for Microsoft Teams App. */
|
|
98
|
+
tenantId?: string | undefined;
|
|
99
|
+
/** [Output-Only] Whether Tenant ID is set. */
|
|
100
|
+
tenantIdSet?: boolean | undefined;
|
|
78
101
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/** [Input-Only] Secret for Microsoft Teams App authentication. */
|
|
89
|
-
authSecret?: string | undefined;
|
|
90
|
-
/** [Output-Only] Whether secret is set. */
|
|
91
|
-
authSecretSet?: boolean | undefined;
|
|
92
|
-
/** [Input-Only] Channel URL for Microsoft Teams App. */
|
|
93
|
-
channelUrl?: string | undefined;
|
|
94
|
-
/** [Output-Only] Whether Channel URL is set. */
|
|
95
|
-
channelUrlSet?: boolean | undefined;
|
|
96
|
-
/** [Input-Only] Tenant ID for Microsoft Teams App. */
|
|
97
|
-
tenantId?: string | undefined;
|
|
98
|
-
/** [Output-Only] Whether Tenant ID is set. */
|
|
99
|
-
tenantIdSet?: boolean | undefined;
|
|
102
|
+
interface NotificationDestination {
|
|
103
|
+
/** UUID identifying notification destination. */
|
|
104
|
+
id?: string | undefined;
|
|
105
|
+
/** The display name for the notification destination. */
|
|
106
|
+
displayName?: string | undefined;
|
|
107
|
+
/** [Output-only] The type of the notification destination. The type can not be changed once set. */
|
|
108
|
+
destinationType?: DestinationType | undefined;
|
|
109
|
+
/** The configuration for the notification destination. Will be exactly one of the nested configs. Only returns for users with workspace admin permissions. */
|
|
110
|
+
config?: Config | undefined;
|
|
100
111
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/** [Output-only] The type of the notification destination. The type can not be changed once set. */
|
|
107
|
-
destinationType?: DestinationType | undefined;
|
|
108
|
-
/** The configuration for the notification destination. Will be exactly one of the nested configs. Only returns for users with workspace admin permissions. */
|
|
109
|
-
config?: Config | undefined;
|
|
112
|
+
interface PagerdutyConfig {
|
|
113
|
+
/** [Input-Only] Integration key for PagerDuty. */
|
|
114
|
+
integrationKey?: string | undefined;
|
|
115
|
+
/** [Output-Only] Whether integration key is set. */
|
|
116
|
+
integrationKeySet?: boolean | undefined;
|
|
110
117
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
118
|
+
interface SlackConfig {
|
|
119
|
+
/** [Input-Only] URL for Slack destination. */
|
|
120
|
+
url?: string | undefined;
|
|
121
|
+
/** [Output-Only] Whether URL is set. */
|
|
122
|
+
urlSet?: boolean | undefined;
|
|
123
|
+
/** [Input-Only] OAuth token for Slack authentication. */
|
|
124
|
+
oauthToken?: string | undefined;
|
|
125
|
+
/** [Output-Only] Whether OAuth token is set. */
|
|
126
|
+
oauthTokenSet?: boolean | undefined;
|
|
127
|
+
/** [Input-Only] Slack channel ID for notifications. */
|
|
128
|
+
channelId?: string | undefined;
|
|
129
|
+
/** [Output-Only] Whether channel ID is set. */
|
|
130
|
+
channelIdSet?: boolean | undefined;
|
|
116
131
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/** [Output-Only] Whether OAuth token is set. */
|
|
125
|
-
oauthTokenSet?: boolean | undefined;
|
|
126
|
-
/** [Input-Only] Slack channel ID for notifications. */
|
|
127
|
-
channelId?: string | undefined;
|
|
128
|
-
/** [Output-Only] Whether channel ID is set. */
|
|
129
|
-
channelIdSet?: boolean | undefined;
|
|
132
|
+
interface UpdateNotificationDestinationRequest {
|
|
133
|
+
/** UUID identifying notification destination. */
|
|
134
|
+
id?: string | undefined;
|
|
135
|
+
/** The display name for the notification destination. */
|
|
136
|
+
displayName?: string | undefined;
|
|
137
|
+
/** The configuration for the notification destination. Must wrap EXACTLY one of the nested configs. */
|
|
138
|
+
config?: Config | undefined;
|
|
130
139
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
export
|
|
151
|
-
export declare const marshalEmailConfigSchema: z.ZodType;
|
|
152
|
-
export declare const marshalGenericWebhookConfigSchema: z.ZodType;
|
|
153
|
-
export declare const marshalMicrosoftTeamsConfigSchema: z.ZodType;
|
|
154
|
-
export declare const marshalPagerdutyConfigSchema: z.ZodType;
|
|
155
|
-
export declare const marshalSlackConfigSchema: z.ZodType;
|
|
156
|
-
export declare const marshalUpdateNotificationDestinationRequestSchema: z.ZodType;
|
|
140
|
+
declare const unmarshalConfigSchema: z.ZodType<Config>;
|
|
141
|
+
declare const unmarshalEmailConfigSchema: z.ZodType<EmailConfig>;
|
|
142
|
+
declare const unmarshalEmptySchema: z.ZodType<Empty>;
|
|
143
|
+
declare const unmarshalGenericWebhookConfigSchema: z.ZodType<GenericWebhookConfig>;
|
|
144
|
+
declare const unmarshalListNotificationDestinationsResponseSchema: z.ZodType<ListNotificationDestinationsResponse>;
|
|
145
|
+
declare const unmarshalListNotificationDestinationsResultSchema: z.ZodType<ListNotificationDestinationsResult>;
|
|
146
|
+
declare const unmarshalMicrosoftTeamsConfigSchema: z.ZodType<MicrosoftTeamsConfig>;
|
|
147
|
+
declare const unmarshalNotificationDestinationSchema: z.ZodType<NotificationDestination>;
|
|
148
|
+
declare const unmarshalPagerdutyConfigSchema: z.ZodType<PagerdutyConfig>;
|
|
149
|
+
declare const unmarshalSlackConfigSchema: z.ZodType<SlackConfig>;
|
|
150
|
+
declare const marshalConfigSchema: z.ZodType;
|
|
151
|
+
declare const marshalCreateNotificationDestinationRequestSchema: z.ZodType;
|
|
152
|
+
declare const marshalEmailConfigSchema: z.ZodType;
|
|
153
|
+
declare const marshalGenericWebhookConfigSchema: z.ZodType;
|
|
154
|
+
declare const marshalMicrosoftTeamsConfigSchema: z.ZodType;
|
|
155
|
+
declare const marshalPagerdutyConfigSchema: z.ZodType;
|
|
156
|
+
declare const marshalSlackConfigSchema: z.ZodType;
|
|
157
|
+
declare const marshalUpdateNotificationDestinationRequestSchema: z.ZodType;
|
|
158
|
+
//#endregion
|
|
159
|
+
export { Config, CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, DestinationType, EmailConfig, Empty, GenericWebhookConfig, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, MicrosoftTeamsConfig, NotificationDestination, PagerdutyConfig, SlackConfig, UpdateNotificationDestinationRequest, marshalConfigSchema, marshalCreateNotificationDestinationRequestSchema, marshalEmailConfigSchema, marshalGenericWebhookConfigSchema, marshalMicrosoftTeamsConfigSchema, marshalPagerdutyConfigSchema, marshalSlackConfigSchema, marshalUpdateNotificationDestinationRequestSchema, unmarshalConfigSchema, unmarshalEmailConfigSchema, unmarshalEmptySchema, unmarshalGenericWebhookConfigSchema, unmarshalListNotificationDestinationsResponseSchema, unmarshalListNotificationDestinationsResultSchema, unmarshalMicrosoftTeamsConfigSchema, unmarshalNotificationDestinationSchema, unmarshalPagerdutyConfigSchema, unmarshalSlackConfigSchema };
|
|
157
160
|
//# sourceMappingURL=model.d.ts.map
|
package/dist/v1/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","
|
|
1
|
+
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;cAKa,eAAA;EAAA;;;;;;KAOD,eAAA,WACA,eAAA,eAA8B,eAAA;AAAA,UAGzB,MAAA;EACf,MAAA;IACK,KAAA;IAAgB,KAAA,EAAO,WAAA;EAAA;IACvB,KAAA;IAAgB,KAAA,EAAO,WAAA;EAAA;IACvB,KAAA;IAAyB,cAAA,EAAgB,oBAAA;EAAA;IACzC,KAAA;IAAoB,SAAA,EAAW,eAAA;EAAA;IAC/B,KAAA;IAAyB,cAAA,EAAgB,oBAAA;EAAA;AAAA;AAAA,UAI/B,oCAAA;EAJmD;EAMlE,WAAA;EAVK;EAYL,MAAA,GAAS,MAAA;AAAA;AAAA,UAGM,oCAAA;EACf,EAAA;AAAA;AAAA,UAGe,WAAA;EAjBe;EAmB9B,SAAA;AAAA;AAAA,UAIe,KAAA;AAAA,UAEA,oBAAA;EAvBe;EAyB9B,GAAA;EAzBkE;EA2BlE,MAAA;EAvB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