@databricks/sdk-accessmanagement 0.35.0 → 0.37.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region package.json
2
2
  var name = "@databricks/sdk-accessmanagement";
3
- var version = "0.35.0";
3
+ var version = "0.37.0";
4
4
 
5
5
  //#endregion
6
6
  export { name, version };
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cAmEa,sBAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAQI;EAFN,mCAAA,CACJ,GAAA,EAAK,0CAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,2CAAA;EAAR;EA0BG,kCAAA,CACJ,GAAA,EAAK,yCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,0CAAA;EADC;EA2BN,wBAAA,CACJ,GAAA,EAAK,+BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,gCAAA;EA7BR;EAuDG,mCAAA,CACJ,GAAA,EAAK,0CAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,mCAAA;EA9BC;;;;EA+DN,UAAA,CACJ,GAAA,EAAK,iBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,OAAA;EApCA;;;;EAuEL,eAAA,CACJ,GAAA,EAAK,iBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,OAAA;EAtCR;;;;EAyEG,8BAAA,CACJ,GAAA,EAAK,qCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,sCAAA;EAFJ;;;;EAqCD,mCAAA,CACJ,GAAA,EAAK,qCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ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AAQ,mCAAA;EA9BC;;;;EA+DN,UAAA,CACJ,GAAA,EAAK,iBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,OAAA;EApCA;;;;EAuEL,eAAA,CACJ,GAAA,EAAK,iBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,OAAA;EAtCR;;;;EA+EG,8BAAA,CACJ,GAAA,EAAK,qCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,sCAAA;EAFJ;;;;EAqCD,mCAAA,CACJ,GAAA,EAAK,qCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,sCAAA;EADC;;;;EA0CN,aAAA,CACJ,GAAA,EAAK,oBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,OAAA;EAAA;;;;EA2BL,kBAAA,CACJ,GAAA,EAAK,oBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,OAAA;EAAR;EA2BG,oBAAA,CACJ,GAAA,EAAK,2BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,mBAAA;EADC;EA2BN,oBAAA,CACJ,GAAA,EAAK,2BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,4BAAA;EA7BR;EA0DG,oBAAA,CACJ,GAAA,EAAK,2BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,mBAAA;EAjCC;EA4DN,uBAAA,CACJ,GAAA,EAAK,8BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,mBAAA;EA9DR;EA4FG,WAAA,CACJ,GAAA,EAAK,kBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,mBAAA;AAAA"}
package/dist/v1/client.js CHANGED
@@ -135,9 +135,10 @@ var AccessManagementClient = class {
135
135
  * said resource. Currently only a default rule set for each resource is supported.
136
136
  */
137
137
  async getRuleSetProxy(req, options) {
138
- const { host, accountId, httpClient } = await this.resolveConfig();
139
- const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ""}/access-control/rule-sets`;
138
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
139
+ const url = `${host}/api/2.0/preview/accounts/access-control/rule-sets`;
140
140
  const params = new URLSearchParams();
141
+ if (req.accountId !== void 0) params.append("account_id", req.accountId);
141
142
  if (req.name !== void 0) params.append("name", req.name);
142
143
  if (req.etag !== void 0) params.append("etag", req.etag);
143
144
  const query = params.toString();
@@ -145,6 +146,7 @@ var AccessManagementClient = class {
145
146
  let resp;
146
147
  const call = async (callSignal) => {
147
148
  const headers = new Headers();
149
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
148
150
  headers.set("User-Agent", this.userAgent);
149
151
  resp = parseResponse(await executeHttpCall({
150
152
  request: buildHttpRequest("GET", fullUrl, headers, callSignal),
@@ -186,15 +188,17 @@ var AccessManagementClient = class {
186
188
  * resource can contain an access rule of the role.
187
189
  */
188
190
  async listAssignableRolesForResourceProxy(req, options) {
189
- const { host, accountId, httpClient } = await this.resolveConfig();
190
- const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ""}/access-control/assignable-roles`;
191
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
192
+ const url = `${host}/api/2.0/preview/accounts/access-control/assignable-roles`;
191
193
  const params = new URLSearchParams();
194
+ if (req.accountId !== void 0) params.append("account_id", req.accountId);
192
195
  if (req.resource !== void 0) params.append("resource", req.resource);
193
196
  const query = params.toString();
194
197
  const fullUrl = query !== "" ? `${url}?${query}` : url;
195
198
  let resp;
196
199
  const call = async (callSignal) => {
197
200
  const headers = new Headers();
201
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
198
202
  headers.set("User-Agent", this.userAgent);
199
203
  resp = parseResponse(await executeHttpCall({
200
204
  request: buildHttpRequest("GET", fullUrl, headers, callSignal),
@@ -233,12 +237,13 @@ var AccessManagementClient = class {
233
237
  * This pattern helps prevent conflicts between concurrent updates.
234
238
  */
235
239
  async updateRuleSetProxy(req, options) {
236
- const { host, accountId, httpClient } = await this.resolveConfig();
237
- const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ""}/access-control/rule-sets`;
240
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
241
+ const url = `${host}/api/2.0/preview/accounts/access-control/rule-sets`;
238
242
  const body = marshalRequest(req, marshalUpdateRuleSetRequestSchema);
239
243
  let resp;
240
244
  const call = async (callSignal) => {
241
245
  const headers = new Headers({ "Content-Type": "application/json" });
246
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
242
247
  headers.set("User-Agent", this.userAgent);
243
248
  resp = parseResponse(await executeHttpCall({
244
249
  request: buildHttpRequest("PUT", url, headers, callSignal, body),
@@ -1 +1 @@
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 flattenQueryParams,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n CheckPolicyRequest,\n CheckPolicyResponse,\n DeleteWorkspacePermissionAssignmentRequest,\n DeleteWorkspacePermissionAssignmentResponse,\n GetObjectPermissionsRequest,\n GetRuleSetRequest,\n ListAssignableRolesForResourceRequest,\n ListAssignableRolesForResourceResponse,\n ListPermissionLevelsRequest,\n ListPermissionLevelsResponse,\n ListWorkspacePermissionAssignmentsRequest,\n ListWorkspacePermissionAssignmentsResponse,\n ListWorkspacePermissionsRequest,\n ListWorkspacePermissionsResponse,\n PermissionsResponse,\n RuleSet,\n SetObjectPermissionsRequest,\n UpdateObjectPermissionsRequest,\n UpdateRuleSetRequest,\n UpdateWorkspacePermissionAssignmentRequest,\n WorkspacePermissionAssignmentOutput,\n} from './model';\nimport {\n marshalActorSchema,\n marshalConsistencyTokenSchema,\n marshalResourceInfoSchema,\n marshalSetObjectPermissionsRequestSchema,\n marshalUpdateObjectPermissionsRequestSchema,\n marshalUpdateRuleSetRequestSchema,\n marshalUpdateWorkspacePermissionAssignmentRequestSchema,\n unmarshalCheckPolicyResponseSchema,\n unmarshalDeleteWorkspacePermissionAssignmentResponseSchema,\n unmarshalListAssignableRolesForResourceResponseSchema,\n unmarshalListPermissionLevelsResponseSchema,\n unmarshalListWorkspacePermissionAssignmentsResponseSchema,\n unmarshalListWorkspacePermissionsResponseSchema,\n unmarshalPermissionsResponseSchema,\n unmarshalRuleSetSchema,\n unmarshalWorkspacePermissionAssignmentOutputSchema,\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 AccessManagementClient {\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 /** Deletes the workspace permissions assignment in a given account and workspace for the specified principal. */\n async deleteWorkspacePermissionAssignment(\n req: DeleteWorkspacePermissionAssignmentRequest,\n options?: CallOptions\n ): Promise<DeleteWorkspacePermissionAssignmentResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments/principals/${String(req.principalId ?? '')}`;\n let resp: DeleteWorkspacePermissionAssignmentResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalDeleteWorkspacePermissionAssignmentResponseSchema\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 /** Get the permission assignments for the specified <Account> and <Workspace>. */\n async listWorkspacePermissionAssignments(\n req: ListWorkspacePermissionAssignmentsRequest,\n options?: CallOptions\n ): Promise<ListWorkspacePermissionAssignmentsResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments`;\n let resp: ListWorkspacePermissionAssignmentsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalListWorkspacePermissionAssignmentsResponseSchema\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 /** Get an array of workspace permissions for the specified account and workspace. */\n async listWorkspacePermissions(\n req: ListWorkspacePermissionsRequest,\n options?: CallOptions\n ): Promise<ListWorkspacePermissionsResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments/permissions`;\n let resp: ListWorkspacePermissionsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalListWorkspacePermissionsResponseSchema\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 /** Creates or updates the workspace permissions assignment in a given account and workspace for the specified principal. */\n async updateWorkspacePermissionAssignment(\n req: UpdateWorkspacePermissionAssignmentRequest,\n options?: CallOptions\n ): Promise<WorkspacePermissionAssignmentOutput> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments/principals/${String(req.principalId ?? '')}`;\n const body = marshalRequest(\n req,\n marshalUpdateWorkspacePermissionAssignmentRequestSchema\n );\n let resp: WorkspacePermissionAssignmentOutput | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalWorkspacePermissionAssignmentOutputSchema\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 /**\n * Get a rule set by its name. A rule set is always attached to a resource and contains a list of access rules on the\n * said resource. Currently only a default rule set for each resource is supported.\n */\n async getRuleSet(\n req: GetRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/rule-sets`;\n const params = new URLSearchParams();\n if (req.name !== undefined) {\n params.append('name', req.name);\n }\n if (req.etag !== undefined) {\n params.append('etag', req.etag);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: RuleSet | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(respBody, unmarshalRuleSetSchema);\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 /**\n * Get a rule set by its name. A rule set is always attached to a resource and contains a list of access rules on the\n * said resource. Currently only a default rule set for each resource is supported.\n */\n async getRuleSetProxy(\n req: GetRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/rule-sets`;\n const params = new URLSearchParams();\n if (req.name !== undefined) {\n params.append('name', req.name);\n }\n if (req.etag !== undefined) {\n params.append('etag', req.etag);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: RuleSet | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(respBody, unmarshalRuleSetSchema);\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 /**\n * Gets all the roles that can be granted on an account level resource. A role is grantable if the rule set on the\n * resource can contain an access rule of the role.\n */\n async listAssignableRolesForResource(\n req: ListAssignableRolesForResourceRequest,\n options?: CallOptions\n ): Promise<ListAssignableRolesForResourceResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/assignable-roles`;\n const params = new URLSearchParams();\n if (req.resource !== undefined) {\n params.append('resource', req.resource);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListAssignableRolesForResourceResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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 unmarshalListAssignableRolesForResourceResponseSchema\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 /**\n * Gets all the roles that can be granted on an account level resource. A role is grantable if the rule set on the\n * resource can contain an access rule of the role.\n */\n async listAssignableRolesForResourceProxy(\n req: ListAssignableRolesForResourceRequest,\n options?: CallOptions\n ): Promise<ListAssignableRolesForResourceResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/assignable-roles`;\n const params = new URLSearchParams();\n if (req.resource !== undefined) {\n params.append('resource', req.resource);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListAssignableRolesForResourceResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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 unmarshalListAssignableRolesForResourceResponseSchema\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 /**\n * Replace the rules of a rule set. First, use get to read the current version of the rule set before modifying it.\n * This pattern helps prevent conflicts between concurrent updates.\n */\n async updateRuleSet(\n req: UpdateRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/rule-sets`;\n const body = marshalRequest(req, marshalUpdateRuleSetRequestSchema);\n let resp: RuleSet | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalRuleSetSchema);\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 /**\n * Replace the rules of a rule set. First, use get to read the current version of the rule set before modifying it.\n * This pattern helps prevent conflicts between concurrent updates.\n */\n async updateRuleSetProxy(\n req: UpdateRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/rule-sets`;\n const body = marshalRequest(req, marshalUpdateRuleSetRequestSchema);\n let resp: RuleSet | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalRuleSetSchema);\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 the permissions of an object. Objects can inherit permissions from their parent objects or root object. */\n async getObjectPermissions(\n req: GetObjectPermissionsRequest,\n options?: CallOptions\n ): Promise<PermissionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}`;\n let resp: PermissionsResponse | 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, unmarshalPermissionsResponseSchema);\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 the permission levels that a user can have on an object. */\n async listPermissionLevels(\n req: ListPermissionLevelsRequest,\n options?: CallOptions\n ): Promise<ListPermissionLevelsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}/permissionLevels`;\n let resp: ListPermissionLevelsResponse | 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(\n respBody,\n unmarshalListPermissionLevelsResponseSchema\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 /** Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their parent objects or root object. */\n async setObjectPermissions(\n req: SetObjectPermissionsRequest,\n options?: CallOptions\n ): Promise<PermissionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}`;\n const body = marshalRequest(req, marshalSetObjectPermissionsRequestSchema);\n let resp: PermissionsResponse | 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('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalPermissionsResponseSchema);\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 /** Updates the permissions on an object. Objects can inherit permissions from their parent objects or root object. */\n async updateObjectPermissions(\n req: UpdateObjectPermissionsRequest,\n options?: CallOptions\n ): Promise<PermissionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}`;\n const body = marshalRequest(\n req,\n marshalUpdateObjectPermissionsRequestSchema\n );\n let resp: PermissionsResponse | 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, unmarshalPermissionsResponseSchema);\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 /** Check access policy to a resource. */\n async checkPolicy(\n req: CheckPolicyRequest,\n options?: CallOptions\n ): Promise<CheckPolicyResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/access-control/check-policy-v2`;\n const params = new URLSearchParams();\n if (req.actor !== undefined) {\n flattenQueryParams('actor', marshalActorSchema.parse(req.actor), params);\n }\n if (req.permission !== undefined) {\n params.append('permission', req.permission);\n }\n if (req.resource !== undefined) {\n params.append('resource', req.resource);\n }\n if (req.consistencyToken !== undefined) {\n flattenQueryParams(\n 'consistency_token',\n marshalConsistencyTokenSchema.parse(req.consistencyToken),\n params\n );\n }\n if (req.authzIdentity !== undefined) {\n params.append('authz_identity', req.authzIdentity);\n }\n if (req.resourceInfo !== undefined) {\n flattenQueryParams(\n 'resource_info',\n marshalResourceInfoSchema.parse(req.resourceInfo),\n params\n );\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: CheckPolicyResponse | 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(respBody, unmarshalCheckPolicyResponseSchema);\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":";;;;;;;;;AA8DA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,yBAAb,MAAoC;CAClC,AAAiB;CACjB,A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EAC6B,mCAAmC;;AAEpE,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
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 flattenQueryParams,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n CheckPolicyRequest,\n CheckPolicyResponse,\n DeleteWorkspacePermissionAssignmentRequest,\n DeleteWorkspacePermissionAssignmentResponse,\n GetObjectPermissionsRequest,\n GetRuleSetRequest,\n ListAssignableRolesForResourceRequest,\n ListAssignableRolesForResourceResponse,\n ListPermissionLevelsRequest,\n ListPermissionLevelsResponse,\n ListWorkspacePermissionAssignmentsRequest,\n ListWorkspacePermissionAssignmentsResponse,\n ListWorkspacePermissionsRequest,\n ListWorkspacePermissionsResponse,\n PermissionsResponse,\n RuleSet,\n SetObjectPermissionsRequest,\n UpdateObjectPermissionsRequest,\n UpdateRuleSetRequest,\n UpdateWorkspacePermissionAssignmentRequest,\n WorkspacePermissionAssignmentOutput,\n} from './model';\nimport {\n marshalActorSchema,\n marshalConsistencyTokenSchema,\n marshalResourceInfoSchema,\n marshalSetObjectPermissionsRequestSchema,\n marshalUpdateObjectPermissionsRequestSchema,\n marshalUpdateRuleSetRequestSchema,\n marshalUpdateWorkspacePermissionAssignmentRequestSchema,\n unmarshalCheckPolicyResponseSchema,\n unmarshalDeleteWorkspacePermissionAssignmentResponseSchema,\n unmarshalListAssignableRolesForResourceResponseSchema,\n unmarshalListPermissionLevelsResponseSchema,\n unmarshalListWorkspacePermissionAssignmentsResponseSchema,\n unmarshalListWorkspacePermissionsResponseSchema,\n unmarshalPermissionsResponseSchema,\n unmarshalRuleSetSchema,\n unmarshalWorkspacePermissionAssignmentOutputSchema,\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 AccessManagementClient {\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 /** Deletes the workspace permissions assignment in a given account and workspace for the specified principal. */\n async deleteWorkspacePermissionAssignment(\n req: DeleteWorkspacePermissionAssignmentRequest,\n options?: CallOptions\n ): Promise<DeleteWorkspacePermissionAssignmentResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments/principals/${String(req.principalId ?? '')}`;\n let resp: DeleteWorkspacePermissionAssignmentResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalDeleteWorkspacePermissionAssignmentResponseSchema\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 /** Get the permission assignments for the specified <Account> and <Workspace>. */\n async listWorkspacePermissionAssignments(\n req: ListWorkspacePermissionAssignmentsRequest,\n options?: CallOptions\n ): Promise<ListWorkspacePermissionAssignmentsResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments`;\n let resp: ListWorkspacePermissionAssignmentsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalListWorkspacePermissionAssignmentsResponseSchema\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 /** Get an array of workspace permissions for the specified account and workspace. */\n async listWorkspacePermissions(\n req: ListWorkspacePermissionsRequest,\n options?: CallOptions\n ): Promise<ListWorkspacePermissionsResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments/permissions`;\n let resp: ListWorkspacePermissionsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalListWorkspacePermissionsResponseSchema\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 /** Creates or updates the workspace permissions assignment in a given account and workspace for the specified principal. */\n async updateWorkspacePermissionAssignment(\n req: UpdateWorkspacePermissionAssignmentRequest,\n options?: CallOptions\n ): Promise<WorkspacePermissionAssignmentOutput> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/accounts/${req.accountId ?? accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/permissionassignments/principals/${String(req.principalId ?? '')}`;\n const body = marshalRequest(\n req,\n marshalUpdateWorkspacePermissionAssignmentRequestSchema\n );\n let resp: WorkspacePermissionAssignmentOutput | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalWorkspacePermissionAssignmentOutputSchema\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 /**\n * Get a rule set by its name. A rule set is always attached to a resource and contains a list of access rules on the\n * said resource. Currently only a default rule set for each resource is supported.\n */\n async getRuleSet(\n req: GetRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/rule-sets`;\n const params = new URLSearchParams();\n if (req.name !== undefined) {\n params.append('name', req.name);\n }\n if (req.etag !== undefined) {\n params.append('etag', req.etag);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: RuleSet | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(respBody, unmarshalRuleSetSchema);\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 /**\n * Get a rule set by its name. A rule set is always attached to a resource and contains a list of access rules on the\n * said resource. Currently only a default rule set for each resource is supported.\n */\n async getRuleSetProxy(\n req: GetRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/access-control/rule-sets`;\n const params = new URLSearchParams();\n if (req.accountId !== undefined) {\n params.append('account_id', req.accountId);\n }\n if (req.name !== undefined) {\n params.append('name', req.name);\n }\n if (req.etag !== undefined) {\n params.append('etag', req.etag);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: RuleSet | 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(respBody, unmarshalRuleSetSchema);\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 /**\n * Gets all the roles that can be granted on an account level resource. A role is grantable if the rule set on the\n * resource can contain an access rule of the role.\n */\n async listAssignableRolesForResource(\n req: ListAssignableRolesForResourceRequest,\n options?: CallOptions\n ): Promise<ListAssignableRolesForResourceResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/assignable-roles`;\n const params = new URLSearchParams();\n if (req.resource !== undefined) {\n params.append('resource', req.resource);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListAssignableRolesForResourceResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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 unmarshalListAssignableRolesForResourceResponseSchema\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 /**\n * Gets all the roles that can be granted on an account level resource. A role is grantable if the rule set on the\n * resource can contain an access rule of the role.\n */\n async listAssignableRolesForResourceProxy(\n req: ListAssignableRolesForResourceRequest,\n options?: CallOptions\n ): Promise<ListAssignableRolesForResourceResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/access-control/assignable-roles`;\n const params = new URLSearchParams();\n if (req.accountId !== undefined) {\n params.append('account_id', req.accountId);\n }\n if (req.resource !== undefined) {\n params.append('resource', req.resource);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListAssignableRolesForResourceResponse | 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 unmarshalListAssignableRolesForResourceResponseSchema\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 /**\n * Replace the rules of a rule set. First, use get to read the current version of the rule set before modifying it.\n * This pattern helps prevent conflicts between concurrent updates.\n */\n async updateRuleSet(\n req: UpdateRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/${req.accountId ?? accountId ?? ''}/access-control/rule-sets`;\n const body = marshalRequest(req, marshalUpdateRuleSetRequestSchema);\n let resp: RuleSet | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalRuleSetSchema);\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 /**\n * Replace the rules of a rule set. First, use get to read the current version of the rule set before modifying it.\n * This pattern helps prevent conflicts between concurrent updates.\n */\n async updateRuleSetProxy(\n req: UpdateRuleSetRequest,\n options?: CallOptions\n ): Promise<RuleSet> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/preview/accounts/access-control/rule-sets`;\n const body = marshalRequest(req, marshalUpdateRuleSetRequestSchema);\n let resp: RuleSet | 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('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalRuleSetSchema);\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 the permissions of an object. Objects can inherit permissions from their parent objects or root object. */\n async getObjectPermissions(\n req: GetObjectPermissionsRequest,\n options?: CallOptions\n ): Promise<PermissionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}`;\n let resp: PermissionsResponse | 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, unmarshalPermissionsResponseSchema);\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 the permission levels that a user can have on an object. */\n async listPermissionLevels(\n req: ListPermissionLevelsRequest,\n options?: CallOptions\n ): Promise<ListPermissionLevelsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}/permissionLevels`;\n let resp: ListPermissionLevelsResponse | 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(\n respBody,\n unmarshalListPermissionLevelsResponseSchema\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 /** Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their parent objects or root object. */\n async setObjectPermissions(\n req: SetObjectPermissionsRequest,\n options?: CallOptions\n ): Promise<PermissionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}`;\n const body = marshalRequest(req, marshalSetObjectPermissionsRequestSchema);\n let resp: PermissionsResponse | 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('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalPermissionsResponseSchema);\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 /** Updates the permissions on an object. Objects can inherit permissions from their parent objects or root object. */\n async updateObjectPermissions(\n req: UpdateObjectPermissionsRequest,\n options?: CallOptions\n ): Promise<PermissionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/permissions/${req.requestObjectType ?? ''}/${req.requestObjectId ?? ''}`;\n const body = marshalRequest(\n req,\n marshalUpdateObjectPermissionsRequestSchema\n );\n let resp: PermissionsResponse | 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, unmarshalPermissionsResponseSchema);\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 /** Check access policy to a resource. */\n async checkPolicy(\n req: CheckPolicyRequest,\n options?: CallOptions\n ): Promise<CheckPolicyResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/access-control/check-policy-v2`;\n const params = new URLSearchParams();\n if (req.actor !== undefined) {\n flattenQueryParams('actor', marshalActorSchema.parse(req.actor), params);\n }\n if (req.permission !== undefined) {\n params.append('permission', req.permission);\n }\n if (req.resource !== undefined) {\n params.append('resource', req.resource);\n }\n if (req.consistencyToken !== undefined) {\n flattenQueryParams(\n 'consistency_token',\n marshalConsistencyTokenSchema.parse(req.consistencyToken),\n params\n );\n }\n if (req.authzIdentity !== undefined) {\n params.append('authz_identity', req.authzIdentity);\n }\n if (req.resourceInfo !== undefined) {\n flattenQueryParams(\n 'resource_info',\n marshalResourceInfoSchema.parse(req.resourceInfo),\n params\n );\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: CheckPolicyResponse | 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(respBody, unmarshalCheckPolicyResponseSchema);\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":";;;;;;;;;AA8DA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,yBAAb,MAAoC;CAClC,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,OA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AC6B,mCAAmC;;AAEpE,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-accessmanagement",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "directory": "packages/accessmanagement"
34
34
  },
35
35
  "dependencies": {
36
- "@databricks/sdk-auth": ">=0.35.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.35.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.35.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.37.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.37.0 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.37.0 <1.0.0",
39
39
  "@js-temporal/polyfill": "^0.5.0",
40
40
  "json-bigint": "^1.0.0",
41
41
  "zod": "^4.3.6"