@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.
@@ -0,0 +1,7 @@
1
+ //#region package.json
2
+ var name = "@databricks/sdk-notificationdestinations";
3
+ var version = "0.36.0";
4
+
5
+ //#endregion
6
+ export { name, version };
7
+ //# sourceMappingURL=package.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
@@ -1,23 +1,27 @@
1
- import type { CallOptions } from '@databricks/sdk-options/call';
2
- import type { ClientOptions } from '@databricks/sdk-options/client';
3
- import type { CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, Empty, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, NotificationDestination, UpdateNotificationDestinationRequest } from './model';
4
- export declare class NotificationDestinationsClient {
5
- private readonly options;
6
- private readonly logger;
7
- private readonly userAgent;
8
- private config;
9
- constructor(options: ClientOptions);
10
- private resolveConfig;
11
- /** Creates a notification destination. Requires workspace admin permissions. */
12
- createNotificationDestination(req: CreateNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
13
- /** Deletes a notification destination. Requires workspace admin permissions. */
14
- deleteNotificationDestination(req: DeleteNotificationDestinationRequest, options?: CallOptions): Promise<Empty>;
15
- /** Gets a notification destination. */
16
- getNotificationDestination(req: GetNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
17
- /** Lists notification destinations. */
18
- listNotificationDestinations(req: ListNotificationDestinationsRequest, options?: CallOptions): Promise<ListNotificationDestinationsResponse>;
19
- listNotificationDestinationsIter(req: ListNotificationDestinationsRequest, options?: CallOptions): AsyncGenerator<ListNotificationDestinationsResult>;
20
- /** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */
21
- updateNotificationDestination(req: UpdateNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
1
+ import { CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, Empty, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, NotificationDestination, UpdateNotificationDestinationRequest } from "./model.js";
2
+ import { CallOptions } from "@databricks/sdk-options/call";
3
+ import { ClientOptions } from "@databricks/sdk-options/client";
4
+
5
+ //#region src/v1/client.d.ts
6
+ declare class NotificationDestinationsClient {
7
+ private readonly options;
8
+ private readonly logger;
9
+ private readonly userAgent;
10
+ private config;
11
+ constructor(options: ClientOptions);
12
+ private resolveConfig;
13
+ /** Creates a notification destination. Requires workspace admin permissions. */
14
+ createNotificationDestination(req: CreateNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
15
+ /** Deletes a notification destination. Requires workspace admin permissions. */
16
+ deleteNotificationDestination(req: DeleteNotificationDestinationRequest, options?: CallOptions): Promise<Empty>;
17
+ /** Gets a notification destination. */
18
+ getNotificationDestination(req: GetNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
19
+ /** Lists notification destinations. */
20
+ listNotificationDestinations(req: ListNotificationDestinationsRequest, options?: CallOptions): Promise<ListNotificationDestinationsResponse>;
21
+ listNotificationDestinationsIter(req: ListNotificationDestinationsRequest, options?: CallOptions): AsyncGenerator<ListNotificationDestinationsResult>;
22
+ /** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */
23
+ updateNotificationDestination(req: UpdateNotificationDestinationRequest, options?: CallOptions): Promise<NotificationDestination>;
22
24
  }
25
+ //#endregion
26
+ export { NotificationDestinationsClient };
23
27
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAWlE,OA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AA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAQI;EAFN,6BAAA,CACJ,GAAA,EAAK,oCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;EAAR;EA8BG,6BAAA,CACJ,GAAA,EAAK,oCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,KAAA;EADC;EA2BN,0BAAA,CACJ,GAAA,EAAK,iCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;EA7BR;EAuDG,4BAAA,CACJ,GAAA,EAAK,mCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,oCAAA;EAqCJ,gCAAA,CACL,GAAA,EAAK,mCAAA,EACL,OAAA,GAAU,WAAA,GACT,cAAA,CAAe,kCAAA;EArEP;EAoFL,6BAAA,CACJ,GAAA,EAAK,oCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;AAAA"}
package/dist/v1/client.js CHANGED
@@ -1,188 +1,149 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { VERSION as AUTH_VERSION } from '@databricks/sdk-auth';
3
- import { createDefault } from '@databricks/sdk-core/clientinfo';
4
- import { NoOpLogger } from '@databricks/sdk-core/logger';
5
- import { resolveClientConfig } from './transport';
6
- import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse, } from './utils';
7
- import pkgJson from '../../package.json' with { type: 'json' };
8
- import { marshalCreateNotificationDestinationRequestSchema, marshalUpdateNotificationDestinationRequestSchema, unmarshalEmptySchema, unmarshalListNotificationDestinationsResponseSchema, unmarshalNotificationDestinationSchema, } from './model';
9
- // Package identity segment for this client to be used in the User-Agent header.
1
+ import { resolveClientConfig } from "./transport.js";
2
+ import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse } from "./utils.js";
3
+ import { name, version } from "../package.js";
4
+ import { marshalCreateNotificationDestinationRequestSchema, marshalUpdateNotificationDestinationRequestSchema, unmarshalEmptySchema, unmarshalListNotificationDestinationsResponseSchema, unmarshalNotificationDestinationSchema } from "./model.js";
5
+ import { VERSION } from "@databricks/sdk-auth";
6
+ import { createDefault } from "@databricks/sdk-core/clientinfo";
7
+ import { NoOpLogger } from "@databricks/sdk-core/logger";
8
+
9
+ //#region src/v1/client.ts
10
10
  const PACKAGE_SEGMENT = {
11
- key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\/sdk-/, ''),
12
- value: pkgJson.version,
11
+ key: "sdk-js-" + name.replace(/^@[^/]+\/sdk-/, ""),
12
+ value: version
13
13
  };
14
- export class NotificationDestinationsClient {
15
- options;
16
- logger;
17
- // User-Agent header value. Composed once at construction from
18
- // createDefault() merged with this package's identity and the active
19
- // credential's name.
20
- userAgent;
21
- // Memoized configuration. The profile is resolved once, lazily, on the first
22
- // request, then reused; host, workspaceId/accountId, and credentials are
23
- // filled from it when not set explicitly on the options.
24
- config;
25
- constructor(options) {
26
- this.options = options;
27
- this.logger = options.logger ?? new NoOpLogger();
28
- const info = createDefault()
29
- .with(PACKAGE_SEGMENT)
30
- .with({ key: 'sdk-js-auth', value: AUTH_VERSION })
31
- .with({ key: 'auth', value: options.credentials?.name() ?? 'default' });
32
- this.userAgent = info.toString();
33
- }
34
- resolveConfig() {
35
- this.config ??= resolveClientConfig(this.options);
36
- return this.config;
37
- }
38
- /** Creates a notification destination. Requires workspace admin permissions. */
39
- async createNotificationDestination(req, options) {
40
- const { host, workspaceId, httpClient } = await this.resolveConfig();
41
- const url = `${host}/api/2.0/notification-destinations`;
42
- const body = marshalRequest(req, marshalCreateNotificationDestinationRequestSchema);
43
- let resp;
44
- const call = async (callSignal) => {
45
- const headers = new Headers({ 'Content-Type': 'application/json' });
46
- if (workspaceId !== undefined) {
47
- headers.set('X-Databricks-Workspace-Id', workspaceId);
48
- }
49
- headers.set('User-Agent', this.userAgent);
50
- const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
51
- const respBody = await executeHttpCall({
52
- request: httpReq,
53
- httpClient,
54
- logger: this.logger,
55
- });
56
- resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);
57
- };
58
- await executeCall(call, options);
59
- if (resp === undefined) {
60
- throw new Error('operation completed without a result.');
61
- }
62
- return resp;
63
- }
64
- /** Deletes a notification destination. Requires workspace admin permissions. */
65
- async deleteNotificationDestination(req, options) {
66
- const { host, workspaceId, httpClient } = await this.resolveConfig();
67
- const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;
68
- let resp;
69
- const call = async (callSignal) => {
70
- const headers = new Headers();
71
- if (workspaceId !== undefined) {
72
- headers.set('X-Databricks-Workspace-Id', workspaceId);
73
- }
74
- headers.set('User-Agent', this.userAgent);
75
- const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
76
- const respBody = await executeHttpCall({
77
- request: httpReq,
78
- httpClient,
79
- logger: this.logger,
80
- });
81
- resp = parseResponse(respBody, unmarshalEmptySchema);
82
- };
83
- await executeCall(call, options);
84
- if (resp === undefined) {
85
- throw new Error('operation completed without a result.');
86
- }
87
- return resp;
88
- }
89
- /** Gets a notification destination. */
90
- async getNotificationDestination(req, options) {
91
- const { host, workspaceId, httpClient } = await this.resolveConfig();
92
- const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;
93
- let resp;
94
- const call = async (callSignal) => {
95
- const headers = new Headers();
96
- if (workspaceId !== undefined) {
97
- headers.set('X-Databricks-Workspace-Id', workspaceId);
98
- }
99
- headers.set('User-Agent', this.userAgent);
100
- const httpReq = buildHttpRequest('GET', url, headers, callSignal);
101
- const respBody = await executeHttpCall({
102
- request: httpReq,
103
- httpClient,
104
- logger: this.logger,
105
- });
106
- resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);
107
- };
108
- await executeCall(call, options);
109
- if (resp === undefined) {
110
- throw new Error('operation completed without a result.');
111
- }
112
- return resp;
113
- }
114
- /** Lists notification destinations. */
115
- async listNotificationDestinations(req, options) {
116
- const { host, workspaceId, httpClient } = await this.resolveConfig();
117
- const url = `${host}/api/2.0/notification-destinations`;
118
- const params = new URLSearchParams();
119
- if (req.pageToken !== undefined) {
120
- params.append('page_token', req.pageToken);
121
- }
122
- if (req.pageSize !== undefined) {
123
- params.append('page_size', String(req.pageSize));
124
- }
125
- const query = params.toString();
126
- const fullUrl = query !== '' ? `${url}?${query}` : url;
127
- let resp;
128
- const call = async (callSignal) => {
129
- const headers = new Headers();
130
- if (workspaceId !== undefined) {
131
- headers.set('X-Databricks-Workspace-Id', workspaceId);
132
- }
133
- headers.set('User-Agent', this.userAgent);
134
- const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
135
- const respBody = await executeHttpCall({
136
- request: httpReq,
137
- httpClient,
138
- logger: this.logger,
139
- });
140
- resp = parseResponse(respBody, unmarshalListNotificationDestinationsResponseSchema);
141
- };
142
- await executeCall(call, options);
143
- if (resp === undefined) {
144
- throw new Error('operation completed without a result.');
145
- }
146
- return resp;
147
- }
148
- async *listNotificationDestinationsIter(req, options) {
149
- const pageReq = { ...req };
150
- for (;;) {
151
- const resp = await this.listNotificationDestinations(pageReq, options);
152
- for (const item of resp.results ?? []) {
153
- yield item;
154
- }
155
- if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
156
- return;
157
- }
158
- pageReq.pageToken = resp.nextPageToken;
159
- }
160
- }
161
- /** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */
162
- async updateNotificationDestination(req, options) {
163
- const { host, workspaceId, httpClient } = await this.resolveConfig();
164
- const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;
165
- const body = marshalRequest(req, marshalUpdateNotificationDestinationRequestSchema);
166
- let resp;
167
- const call = async (callSignal) => {
168
- const headers = new Headers({ 'Content-Type': 'application/json' });
169
- if (workspaceId !== undefined) {
170
- headers.set('X-Databricks-Workspace-Id', workspaceId);
171
- }
172
- headers.set('User-Agent', this.userAgent);
173
- const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);
174
- const respBody = await executeHttpCall({
175
- request: httpReq,
176
- httpClient,
177
- logger: this.logger,
178
- });
179
- resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);
180
- };
181
- await executeCall(call, options);
182
- if (resp === undefined) {
183
- throw new Error('operation completed without a result.');
184
- }
185
- return resp;
186
- }
187
- }
14
+ var NotificationDestinationsClient = class {
15
+ options;
16
+ logger;
17
+ userAgent;
18
+ config;
19
+ constructor(options) {
20
+ this.options = options;
21
+ this.logger = options.logger ?? new NoOpLogger();
22
+ this.userAgent = createDefault().with(PACKAGE_SEGMENT).with({
23
+ key: "sdk-js-auth",
24
+ value: VERSION
25
+ }).with({
26
+ key: "auth",
27
+ value: options.credentials?.name() ?? "default"
28
+ }).toString();
29
+ }
30
+ resolveConfig() {
31
+ this.config ??= resolveClientConfig(this.options);
32
+ return this.config;
33
+ }
34
+ /** Creates a notification destination. Requires workspace admin permissions. */
35
+ async createNotificationDestination(req, options) {
36
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
37
+ const url = `${host}/api/2.0/notification-destinations`;
38
+ const body = marshalRequest(req, marshalCreateNotificationDestinationRequestSchema);
39
+ let resp;
40
+ const call = async (callSignal) => {
41
+ const headers = new Headers({ "Content-Type": "application/json" });
42
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
43
+ headers.set("User-Agent", this.userAgent);
44
+ resp = parseResponse(await executeHttpCall({
45
+ request: buildHttpRequest("POST", url, headers, callSignal, body),
46
+ httpClient,
47
+ logger: this.logger
48
+ }), unmarshalNotificationDestinationSchema);
49
+ };
50
+ await executeCall(call, options);
51
+ if (resp === void 0) throw new Error("operation completed without a result.");
52
+ return resp;
53
+ }
54
+ /** Deletes a notification destination. Requires workspace admin permissions. */
55
+ async deleteNotificationDestination(req, options) {
56
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
57
+ const url = `${host}/api/2.0/notification-destinations/${req.id ?? ""}`;
58
+ let resp;
59
+ const call = async (callSignal) => {
60
+ const headers = new Headers();
61
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
62
+ headers.set("User-Agent", this.userAgent);
63
+ resp = parseResponse(await executeHttpCall({
64
+ request: buildHttpRequest("DELETE", url, headers, callSignal),
65
+ httpClient,
66
+ logger: this.logger
67
+ }), unmarshalEmptySchema);
68
+ };
69
+ await executeCall(call, options);
70
+ if (resp === void 0) throw new Error("operation completed without a result.");
71
+ return resp;
72
+ }
73
+ /** Gets a notification destination. */
74
+ async getNotificationDestination(req, options) {
75
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
76
+ const url = `${host}/api/2.0/notification-destinations/${req.id ?? ""}`;
77
+ let resp;
78
+ const call = async (callSignal) => {
79
+ const headers = new Headers();
80
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
81
+ headers.set("User-Agent", this.userAgent);
82
+ resp = parseResponse(await executeHttpCall({
83
+ request: buildHttpRequest("GET", url, headers, callSignal),
84
+ httpClient,
85
+ logger: this.logger
86
+ }), unmarshalNotificationDestinationSchema);
87
+ };
88
+ await executeCall(call, options);
89
+ if (resp === void 0) throw new Error("operation completed without a result.");
90
+ return resp;
91
+ }
92
+ /** Lists notification destinations. */
93
+ async listNotificationDestinations(req, options) {
94
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
95
+ const url = `${host}/api/2.0/notification-destinations`;
96
+ const params = new URLSearchParams();
97
+ if (req.pageToken !== void 0) params.append("page_token", req.pageToken);
98
+ if (req.pageSize !== void 0) params.append("page_size", String(req.pageSize));
99
+ const query = params.toString();
100
+ const fullUrl = query !== "" ? `${url}?${query}` : url;
101
+ let resp;
102
+ const call = async (callSignal) => {
103
+ const headers = new Headers();
104
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
105
+ headers.set("User-Agent", this.userAgent);
106
+ resp = parseResponse(await executeHttpCall({
107
+ request: buildHttpRequest("GET", fullUrl, headers, callSignal),
108
+ httpClient,
109
+ logger: this.logger
110
+ }), unmarshalListNotificationDestinationsResponseSchema);
111
+ };
112
+ await executeCall(call, options);
113
+ if (resp === void 0) throw new Error("operation completed without a result.");
114
+ return resp;
115
+ }
116
+ async *listNotificationDestinationsIter(req, options) {
117
+ const pageReq = { ...req };
118
+ for (;;) {
119
+ const resp = await this.listNotificationDestinations(pageReq, options);
120
+ for (const item of resp.results ?? []) yield item;
121
+ if (resp.nextPageToken === void 0 || resp.nextPageToken === "") return;
122
+ pageReq.pageToken = resp.nextPageToken;
123
+ }
124
+ }
125
+ /** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */
126
+ async updateNotificationDestination(req, options) {
127
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
128
+ const url = `${host}/api/2.0/notification-destinations/${req.id ?? ""}`;
129
+ const body = marshalRequest(req, marshalUpdateNotificationDestinationRequestSchema);
130
+ let resp;
131
+ const call = async (callSignal) => {
132
+ const headers = new Headers({ "Content-Type": "application/json" });
133
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
134
+ headers.set("User-Agent", this.userAgent);
135
+ resp = parseResponse(await executeHttpCall({
136
+ request: buildHttpRequest("PATCH", url, headers, callSignal, body),
137
+ httpClient,
138
+ logger: this.logger
139
+ }), unmarshalNotificationDestinationSchema);
140
+ };
141
+ await executeCall(call, options);
142
+ if (resp === void 0) throw new Error("operation completed without a result.");
143
+ return resp;
144
+ }
145
+ };
146
+
147
+ //#endregion
148
+ export { NotificationDestinationsClient };
188
149
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AAIvD,OAAO,E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gB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;YAC1E,MAAM,QAAQ,GAAG,MAAM,eAAe,CAAC;gBACrC,OAAO,EAAE,OAAO;gBAChB,UAAU;gBACV,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;YACH,IAAI,GAAG,aAAa,CAAC,QAAQ,EAAE,sCAAsC,CAAC,CAAC;QACzE,CAAC,CAAC;QACF,MAAM,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
1
+ {"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n CreateNotificationDestinationRequest,\n DeleteNotificationDestinationRequest,\n Empty,\n GetNotificationDestinationRequest,\n ListNotificationDestinationsRequest,\n ListNotificationDestinationsResponse,\n ListNotificationDestinationsResult,\n NotificationDestination,\n UpdateNotificationDestinationRequest,\n} from './model';\nimport {\n marshalCreateNotificationDestinationRequestSchema,\n marshalUpdateNotificationDestinationRequestSchema,\n unmarshalEmptySchema,\n unmarshalListNotificationDestinationsResponseSchema,\n unmarshalNotificationDestinationSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class NotificationDestinationsClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /** Creates a notification destination. Requires workspace admin permissions. */\n async createNotificationDestination(\n req: CreateNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<NotificationDestination> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations`;\n const body = marshalRequest(\n req,\n marshalCreateNotificationDestinationRequestSchema\n );\n let resp: NotificationDestination | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Deletes a notification destination. Requires workspace admin permissions. */\n async deleteNotificationDestination(\n req: DeleteNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<Empty> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;\n let resp: Empty | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalEmptySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a notification destination. */\n async getNotificationDestination(\n req: GetNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<NotificationDestination> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;\n let resp: NotificationDestination | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Lists notification destinations. */\n async listNotificationDestinations(\n req: ListNotificationDestinationsRequest,\n options?: CallOptions\n ): Promise<ListNotificationDestinationsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations`;\n const params = new URLSearchParams();\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListNotificationDestinationsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListNotificationDestinationsResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listNotificationDestinationsIter(\n req: ListNotificationDestinationsRequest,\n options?: CallOptions\n ): AsyncGenerator<ListNotificationDestinationsResult> {\n const pageReq: ListNotificationDestinationsRequest = {...req};\n for (;;) {\n const resp = await this.listNotificationDestinations(pageReq, options);\n for (const item of resp.results ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates a notification destination. Requires workspace admin permissions. At least one field is required in the request body. */\n async updateNotificationDestination(\n req: UpdateNotificationDestinationRequest,\n options?: CallOptions\n ): Promise<NotificationDestination> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/notification-destinations/${req.id ?? ''}`;\n const body = marshalRequest(\n req,\n marshalUpdateNotificationDestinationRequestSchema\n );\n let resp: NotificationDestination | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalNotificationDestinationSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n"],"mappings":";;;;;;;;;AAsCA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,iCAAb,MAA4C;CAC1C,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;CAId,MAAM,8BACJ,KACA,SACkC;EAClC,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK;EACpB,MAAM,OAAO,eACX,KACA,kDACD;EACD,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,OAAI,gBAAgB,OAClB,SAAQ,IAAI,6BAA6B,YAAY;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,QAAQ,KAAK,SAAS,YAAY,KAAK;IAGtE;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,uCAAuC;;AAExE,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,S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;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,SAAS,KAAK,SAAS,YAAY,KAAK;IAGvE;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,uCAAuC;;AAExE,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
@@ -1,7 +1,3 @@
1
- /**
2
- * @module v1
3
- */
4
- export { NotificationDestinationsClient } from './client';
5
- export { DestinationType } from './model';
6
- export type { Config, CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, EmailConfig, Empty, GenericWebhookConfig, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, MicrosoftTeamsConfig, NotificationDestination, PagerdutyConfig, SlackConfig, UpdateNotificationDestinationRequest, } from './model';
7
- //# sourceMappingURL=index.d.ts.map
1
+ import { Config, CreateNotificationDestinationRequest, DeleteNotificationDestinationRequest, DestinationType, EmailConfig, Empty, GenericWebhookConfig, GetNotificationDestinationRequest, ListNotificationDestinationsRequest, ListNotificationDestinationsResponse, ListNotificationDestinationsResult, MicrosoftTeamsConfig, NotificationDestination, PagerdutyConfig, SlackConfig, UpdateNotificationDestinationRequest } from "./model.js";
2
+ import { NotificationDestinationsClient } from "./client.js";
3
+ export { type Config, type CreateNotificationDestinationRequest, type DeleteNotificationDestinationRequest, DestinationType, type EmailConfig, type Empty, type GenericWebhookConfig, type GetNotificationDestinationRequest, type ListNotificationDestinationsRequest, type ListNotificationDestinationsResponse, type ListNotificationDestinationsResult, type MicrosoftTeamsConfig, type NotificationDestination, NotificationDestinationsClient, type PagerdutyConfig, type SlackConfig, type UpdateNotificationDestinationRequest };
package/dist/v1/index.js CHANGED
@@ -1,7 +1,4 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- /**
3
- * @module v1
4
- */
5
- export { NotificationDestinationsClient } from './client';
6
- export { DestinationType } from './model';
7
- //# sourceMappingURL=index.js.map
1
+ import { DestinationType } from "./model.js";
2
+ import { NotificationDestinationsClient } from "./client.js";
3
+
4
+ export { DestinationType, NotificationDestinationsClient };