@databricks/sdk-uc-rfa 0.48.0 → 0.50.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-uc-rfa";
3
- var version = "0.48.0";
3
+ var version = "0.50.0";
4
4
 
5
5
  //#endregion
6
6
  export { name, version };
@@ -32,7 +32,7 @@ declare class RfaClient {
32
32
  /**
33
33
  * Updates the access request destinations for the given securable.
34
34
  * The caller must be a metastore admin, the owner of the securable, or a user that has the **MANAGE** privilege on the securable in order to assign destinations.
35
- * A maximum of 5 emails and 5 external notification destinations (Slack, Microsoft Teams, and Generic Webhook destinations) can be assigned to a securable.
35
+ * A maximum of 5 emails and 5 external notification destinations (Slack, Microsoft Teams, Generic Webhook, and Databricks App Slack/Teams destinations) can be assigned to a securable.
36
36
  * If a URL destination is assigned, no other destinations can be set.
37
37
  *
38
38
  * The supported securable types are: "metastore", "catalog", "schema", "table",
package/dist/v1/client.js CHANGED
@@ -88,7 +88,7 @@ var RfaClient = class {
88
88
  /**
89
89
  * Updates the access request destinations for the given securable.
90
90
  * The caller must be a metastore admin, the owner of the securable, or a user that has the **MANAGE** privilege on the securable in order to assign destinations.
91
- * A maximum of 5 emails and 5 external notification destinations (Slack, Microsoft Teams, and Generic Webhook destinations) can be assigned to a securable.
91
+ * A maximum of 5 emails and 5 external notification destinations (Slack, Microsoft Teams, Generic Webhook, and Databricks App Slack/Teams destinations) can be assigned to a securable.
92
92
  * If a URL destination is assigned, no other destinations can be set.
93
93
  *
94
94
  * The supported securable types are: "metastore", "catalog", "schema", "table",
@@ -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} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n AccessRequestDestinations,\n BatchCreateAccessRequestsRequest,\n BatchCreateAccessRequestsResponse,\n GetAccessRequestDestinationsRequest,\n UpdateAccessRequestDestinationsRequest,\n} from './model';\nimport {\n marshalAccessRequestDestinationsSchema,\n marshalBatchCreateAccessRequestsRequestSchema,\n unmarshalAccessRequestDestinationsSchema,\n unmarshalBatchCreateAccessRequestsResponseSchema,\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 RfaClient {\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 /**\n * Creates access requests for Unity Catalog permissions for a specified principal on a securable object.\n * This Batch API can take in multiple principals, securable objects,\n * and permissions as the input and returns the access request destinations for each.\n * Principals must be unique across the API call.\n *\n * The supported securable types are: \"metastore\", \"catalog\", \"schema\", \"table\",\n * \"external_location\", \"connection\", \"credential\", \"function\", \"registered_model\", and \"volume\".\n */\n async batchCreateAccessRequests(\n req: BatchCreateAccessRequestsRequest,\n options?: CallOptions\n ): Promise<BatchCreateAccessRequestsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/3.0/rfa/requests`;\n const body = marshalRequest(\n req,\n marshalBatchCreateAccessRequestsRequestSchema\n );\n let resp: BatchCreateAccessRequestsResponse | 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(\n respBody,\n unmarshalBatchCreateAccessRequestsResponseSchema\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 an array of access request destinations for the specified securable.\n * Any caller can see URL destinations or the destinations on the metastore.\n * Otherwise, only those with **BROWSE** permissions on the securable can see destinations.\n *\n * The supported securable types are: \"metastore\", \"catalog\", \"schema\", \"table\",\n * \"external_location\", \"connection\", \"credential\", \"function\", \"registered_model\", and \"volume\".\n */\n async getAccessRequestDestinations(\n req: GetAccessRequestDestinationsRequest,\n options?: CallOptions\n ): Promise<AccessRequestDestinations> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/3.0/rfa/destinations/${req.securableType ?? ''}/${req.fullName ?? ''}`;\n let resp: AccessRequestDestinations | 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, unmarshalAccessRequestDestinationsSchema);\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 * Updates the access request destinations for the given securable.\n * The caller must be a metastore admin, the owner of the securable, or a user that has the **MANAGE** privilege on the securable in order to assign destinations.\n * A maximum of 5 emails and 5 external notification destinations (Slack, Microsoft Teams, and Generic Webhook destinations) can be assigned to a securable.\n * If a URL destination is assigned, no other destinations can be set.\n *\n * The supported securable types are: \"metastore\", \"catalog\", \"schema\", \"table\",\n * \"external_location\", \"connection\", \"credential\", \"function\", \"registered_model\", and \"volume\".\n */\n async updateAccessRequestDestinations(\n req: UpdateAccessRequestDestinationsRequest,\n options?: CallOptions\n ): Promise<AccessRequestDestinations> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/3.0/rfa/destinations`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.accessRequestDestinations,\n marshalAccessRequestDestinationsSchema\n );\n let resp: AccessRequestDestinations | 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(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalAccessRequestDestinationsSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new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AM,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} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n AccessRequestDestinations,\n BatchCreateAccessRequestsRequest,\n BatchCreateAccessRequestsResponse,\n GetAccessRequestDestinationsRequest,\n UpdateAccessRequestDestinationsRequest,\n} from './model';\nimport {\n marshalAccessRequestDestinationsSchema,\n marshalBatchCreateAccessRequestsRequestSchema,\n unmarshalAccessRequestDestinationsSchema,\n unmarshalBatchCreateAccessRequestsResponseSchema,\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 RfaClient {\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 /**\n * Creates access requests for Unity Catalog permissions for a specified principal on a securable object.\n * This Batch API can take in multiple principals, securable objects,\n * and permissions as the input and returns the access request destinations for each.\n * Principals must be unique across the API call.\n *\n * The supported securable types are: \"metastore\", \"catalog\", \"schema\", \"table\",\n * \"external_location\", \"connection\", \"credential\", \"function\", \"registered_model\", and \"volume\".\n */\n async batchCreateAccessRequests(\n req: BatchCreateAccessRequestsRequest,\n options?: CallOptions\n ): Promise<BatchCreateAccessRequestsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/3.0/rfa/requests`;\n const body = marshalRequest(\n req,\n marshalBatchCreateAccessRequestsRequestSchema\n );\n let resp: BatchCreateAccessRequestsResponse | 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(\n respBody,\n unmarshalBatchCreateAccessRequestsResponseSchema\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 an array of access request destinations for the specified securable.\n * Any caller can see URL destinations or the destinations on the metastore.\n * Otherwise, only those with **BROWSE** permissions on the securable can see destinations.\n *\n * The supported securable types are: \"metastore\", \"catalog\", \"schema\", \"table\",\n * \"external_location\", \"connection\", \"credential\", \"function\", \"registered_model\", and \"volume\".\n */\n async getAccessRequestDestinations(\n req: GetAccessRequestDestinationsRequest,\n options?: CallOptions\n ): Promise<AccessRequestDestinations> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/3.0/rfa/destinations/${req.securableType ?? ''}/${req.fullName ?? ''}`;\n let resp: AccessRequestDestinations | 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, unmarshalAccessRequestDestinationsSchema);\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 * Updates the access request destinations for the given securable.\n * The caller must be a metastore admin, the owner of the securable, or a user that has the **MANAGE** privilege on the securable in order to assign destinations.\n * A maximum of 5 emails and 5 external notification destinations (Slack, Microsoft Teams, Generic Webhook, and Databricks App Slack/Teams destinations) can be assigned to a securable.\n * If a URL destination is assigned, no other destinations can be set.\n *\n * The supported securable types are: \"metastore\", \"catalog\", \"schema\", \"table\",\n * \"external_location\", \"connection\", \"credential\", \"function\", \"registered_model\", and \"volume\".\n */\n async updateAccessRequestDestinations(\n req: UpdateAccessRequestDestinationsRequest,\n options?: CallOptions\n ): Promise<AccessRequestDestinations> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/3.0/rfa/destinations`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.accessRequestDestinations,\n marshalAccessRequestDestinationsSchema\n );\n let resp: AccessRequestDestinations | 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(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalAccessRequestDestinationsSchema);\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":";;;;;;;;;AAiCA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,YAAb,MAAuB;CACrB,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;;;;;;;;;;;CAYd,MAAM,0BACJ,KACA,SAC4C;EAC5C,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK;EACpB,MAAM,OAAO,eACX,KACA,8CACD;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,Q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AI,cAAc,KAAK,UAAU;AAazC,UAAO,cALU,MAAM,gBAAgB;IACrC,SARc,iBACd,SACA,SACA,SACA,YACA,KACD;IAGC;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,yCAAyC;;AAE1E,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
@@ -37,6 +37,10 @@ declare const SecurableType: {
37
37
  readonly CREDENTIAL: "CREDENTIAL";
38
38
  readonly EXTERNAL_METADATA: "EXTERNAL_METADATA"; /** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */
39
39
  readonly STAGING_TABLE: "STAGING_TABLE";
40
+ readonly MODEL: "MODEL";
41
+ readonly MODEL_SERVICE: "MODEL_SERVICE";
42
+ readonly MCP_SERVICE: "MCP_SERVICE";
43
+ readonly MODEL_PROVIDER_SERVICE: "MODEL_PROVIDER_SERVICE";
40
44
  };
41
45
  type SecurableType = (typeof SecurableType)[keyof typeof SecurableType] | (string & {});
42
46
  declare const SpecialDestination: {
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;;cAOa,eAAA;EAAA;;;;;;;KAQD,eAAA,WACA,eAAA,eAA8B,eAAA;AAAA,cAI7B,aAAA;EAAA;;;;;KAMD,aAAA,WACA,aAAA,eAA4B,aAAA;;cAK3B,aAAA;EAAA;;;;;;;;;;;;;;;mDAAA;EAAA;;KAoBD,aAAA,WACA,aAAA,eAA4B,aAAA;AAAA,cAI3B,kBAAA;EAAA;;;;;;;;;;;;KAeD,kBAAA,WACA,kBAAA,eAAiC,kBAAA;AAAA,UAG5B,yBAAA;;EAEf,YAAA,GAAe,uBAAA;;EAEf,SAAA,GAAY,SAAA;EA5BF;;;;EAiCV,wBAAA;EA5BW;;;;EAiCX,0BAAA,GAA6B,SAAA;;EAE7B,aAAA;;EAEA,QAAA;AAAA;AAAA,UAGe,gCAAA;;;;;;;EAOf,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AAA,iBAsBlC,kCAAA,CAAA,GACX,KAAA,aACF,SAAA,CAAU,yBAAA"}
package/dist/v1/model.js CHANGED
@@ -34,7 +34,11 @@ const SecurableType = {
34
34
  CONNECTION: "CONNECTION",
35
35
  CREDENTIAL: "CREDENTIAL",
36
36
  EXTERNAL_METADATA: "EXTERNAL_METADATA",
37
- STAGING_TABLE: "STAGING_TABLE"
37
+ STAGING_TABLE: "STAGING_TABLE",
38
+ MODEL: "MODEL",
39
+ MODEL_SERVICE: "MODEL_SERVICE",
40
+ MCP_SERVICE: "MCP_SERVICE",
41
+ MODEL_PROVIDER_SERVICE: "MODEL_PROVIDER_SERVICE"
38
42
  };
39
43
  const SpecialDestination = {
40
44
  SPECIAL_DESTINATION_UNSPECIFIED: "SPECIAL_DESTINATION_UNSPECIFIED",
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const DestinationType = {\n DESTINATION_TYPE_UNSPECIFIED: 'DESTINATION_TYPE_UNSPECIFIED',\n EMAIL: 'EMAIL',\n SLACK: 'SLACK',\n GENERIC_WEBHOOK: 'GENERIC_WEBHOOK',\n MICROSOFT_TEAMS: 'MICROSOFT_TEAMS',\n URL: 'URL',\n} as const;\nexport type DestinationType =\n | (typeof DestinationType)[keyof typeof DestinationType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PrincipalType = {\n PRINCIPAL_TYPE_UNSPECIFIED: 'PRINCIPAL_TYPE_UNSPECIFIED',\n USER_PRINCIPAL: 'USER_PRINCIPAL',\n GROUP_PRINCIPAL: 'GROUP_PRINCIPAL',\n SERVICE_PRINCIPAL: 'SERVICE_PRINCIPAL',\n} as const;\nexport type PrincipalType =\n | (typeof PrincipalType)[keyof typeof PrincipalType]\n | (string & {});\n\n/** The type of Unity Catalog securable. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SecurableType = {\n CATALOG: 'CATALOG',\n SCHEMA: 'SCHEMA',\n TABLE: 'TABLE',\n STORAGE_CREDENTIAL: 'STORAGE_CREDENTIAL',\n EXTERNAL_LOCATION: 'EXTERNAL_LOCATION',\n FUNCTION: 'FUNCTION',\n SHARE: 'SHARE',\n PROVIDER: 'PROVIDER',\n RECIPIENT: 'RECIPIENT',\n CLEAN_ROOM: 'CLEAN_ROOM',\n METASTORE: 'METASTORE',\n PIPELINE: 'PIPELINE',\n VOLUME: 'VOLUME',\n CONNECTION: 'CONNECTION',\n CREDENTIAL: 'CREDENTIAL',\n EXTERNAL_METADATA: 'EXTERNAL_METADATA',\n /** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */\n STAGING_TABLE: 'STAGING_TABLE',\n} as const;\nexport type SecurableType =\n | (typeof SecurableType)[keyof typeof SecurableType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SpecialDestination = {\n SPECIAL_DESTINATION_UNSPECIFIED: 'SPECIAL_DESTINATION_UNSPECIFIED',\n SPECIAL_DESTINATION_CATALOG_OWNER: 'SPECIAL_DESTINATION_CATALOG_OWNER',\n SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER:\n 'SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER',\n SPECIAL_DESTINATION_CONNECTION_OWNER: 'SPECIAL_DESTINATION_CONNECTION_OWNER',\n SPECIAL_DESTINATION_CREDENTIAL_OWNER: 'SPECIAL_DESTINATION_CREDENTIAL_OWNER',\n SPECIAL_DESTINATION_METASTORE_OWNER: 'SPECIAL_DESTINATION_METASTORE_OWNER',\n SPECIAL_DESTINATION_SCHEMA_OWNER: 'SPECIAL_DESTINATION_SCHEMA_OWNER',\n SPECIAL_DESTINATION_TABLE_OWNER: 'SPECIAL_DESTINATION_TABLE_OWNER',\n SPECIAL_DESTINATION_VOLUME_OWNER: 'SPECIAL_DESTINATION_VOLUME_OWNER',\n SPECIAL_DESTINATION_FUNCTION_OWNER: 'SPECIAL_DESTINATION_FUNCTION_OWNER',\n SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER:\n 'SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER',\n} as const;\nexport type SpecialDestination =\n | (typeof SpecialDestination)[keyof typeof SpecialDestination]\n | (string & {});\n\nexport interface AccessRequestDestinations {\n /** The access request destinations for the securable. */\n destinations?: NotificationDestination[] | undefined;\n /** The securable for which the access request destinations are being modified or read. */\n securable?: Securable | undefined;\n /**\n * Indicates whether any destinations are hidden from the caller due to a lack of permissions.\n * This value is true if the caller does not have permission to see all destinations.\n */\n areAnyDestinationsHidden?: boolean | undefined;\n /**\n * The source securable from which the destinations are inherited. Either the same value as securable (if destination\n * is set directly on the securable) or the nearest parent securable with destinations set.\n */\n destinationSourceSecurable?: Securable | undefined;\n /** The type of the securable. Redundant with the type in the securable object, but necessary for Terraform integration */\n securableType?: string | undefined;\n /** The full name of the securable. Redundant with the name in the securable object, but necessary for Terraform integration */\n fullName?: string | undefined;\n}\n\nexport interface BatchCreateAccessRequestsRequest {\n /**\n * A list of individual access requests, where each request corresponds to\n * a set of permissions being requested on a list of securables for a specified principal.\n *\n * At most 30 requests per API call.\n */\n requests?: CreateAccessRequest[] | undefined;\n}\n\nexport interface BatchCreateAccessRequestsResponse {\n /** The access request destinations for each securable object the principal requested. */\n responses?: CreateAccessRequestResponse[] | undefined;\n}\n\nexport interface CreateAccessRequest {\n /**\n * Optional. The principal this request is for.\n * Empty `behalf_of` defaults to the requester's identity.\n *\n * Principals must be unique across the API call.\n */\n behalfOf?: Principal | undefined;\n /**\n * Optional. Comment associated with the request.\n *\n * At most 200 characters, can only contain lowercase/uppercase\n * letters (a-z, A-Z), numbers (0-9), punctuation, and spaces.\n */\n comment?: string | undefined;\n /**\n * List of securables and their corresponding requested UC privileges.\n *\n * At most 30 securables can be requested for a principal per batched call.\n * Each securable can only be requested once per principal.\n */\n securablePermissions?: SecurablePermissions[] | undefined;\n}\n\nexport interface CreateAccessRequestResponse {\n /** The principal the request was made on behalf of. */\n behalfOf?: Principal | undefined;\n /** The access request destinations for all the securables the principal requested. */\n requestDestinations?: AccessRequestDestinations[] | undefined;\n}\n\nexport interface GetAccessRequestDestinationsRequest {\n /** The type of the securable. */\n securableType?: string | undefined;\n /** The full name of the securable. */\n fullName?: string | undefined;\n}\n\nexport interface NotificationDestination {\n /**\n * The identifier for the destination. This is the email address for EMAIL destinations, the URL for URL destinations,\n * or the unique <Databricks> notification destination ID for all other external destinations.\n */\n destinationId?: string | undefined;\n /** The type of the destination. */\n destinationType?: DestinationType | undefined;\n /**\n * This field is used to denote whether the destination is the email of the owner of the securable object.\n * The special destination cannot be assigned to a securable and only represents the default destination of the securable.\n * The securable types that support default special destinations are: \"catalog\", \"external_location\", \"connection\", \"credential\", and \"metastore\".\n * The **destination_type** of a **special_destination** is always EMAIL.\n */\n specialDestination?: SpecialDestination | undefined;\n}\n\nexport interface Principal {\n /** <Databricks> user, group or service principal ID. */\n id?: string | undefined;\n principalType?: PrincipalType | undefined;\n}\n\n/**\n * Generic definition of a securable, which is uniquely defined in a metastore\n * by its type and full name.\n */\nexport interface Securable {\n /**\n * Required. The type of securable (catalog/schema/table).\n * Optional if resource_name is present.\n */\n type?: SecurableType | undefined;\n /**\n * Required. The full name of the catalog/schema/table.\n * Optional if resource_name is present.\n */\n fullName?: string | undefined;\n /**\n * Optional. The name of the Share object that contains the securable when the securable is\n * getting shared in D2D Delta Sharing.\n */\n providerShare?: string | undefined;\n}\n\nexport interface SecurablePermissions {\n /** The securable for which the access request destinations are being requested. */\n securable?: Securable | undefined;\n /** List of requested Unity Catalog permissions. */\n permissions?: string[] | undefined;\n}\n\nexport interface UpdateAccessRequestDestinationsRequest {\n /**\n * The access request destinations to assign to the securable.\n * For each destination, a **destination_id** and **destination_type** must be defined.\n */\n accessRequestDestinations?: AccessRequestDestinations | undefined;\n updateMask?: FieldMask<AccessRequestDestinations> | undefined;\n}\n\nexport const unmarshalAccessRequestDestinationsSchema: z.ZodType<AccessRequestDestinations> =\n z\n .object({\n destinations: z\n .array(z.lazy(() => unmarshalNotificationDestinationSchema))\n .optional(),\n securable: z.lazy(() => unmarshalSecurableSchema).optional(),\n are_any_destinations_hidden: z.boolean().optional(),\n destination_source_securable: z\n .lazy(() => unmarshalSecurableSchema)\n .optional(),\n securable_type: z.string().optional(),\n full_name: z.string().optional(),\n })\n .transform(d => ({\n destinations: d.destinations,\n securable: d.securable,\n areAnyDestinationsHidden: d.are_any_destinations_hidden,\n destinationSourceSecurable: d.destination_source_securable,\n securableType: d.securable_type,\n fullName: d.full_name,\n }));\n\nexport const unmarshalBatchCreateAccessRequestsResponseSchema: z.ZodType<BatchCreateAccessRequestsResponse> =\n z\n .object({\n responses: z\n .array(z.lazy(() => unmarshalCreateAccessRequestResponseSchema))\n .optional(),\n })\n .transform(d => ({\n responses: d.responses,\n }));\n\nexport const unmarshalCreateAccessRequestResponseSchema: z.ZodType<CreateAccessRequestResponse> =\n z\n .object({\n behalf_of: z.lazy(() => unmarshalPrincipalSchema).optional(),\n request_destinations: z\n .array(z.lazy(() => unmarshalAccessRequestDestinationsSchema))\n .optional(),\n })\n .transform(d => ({\n behalfOf: d.behalf_of,\n requestDestinations: d.request_destinations,\n }));\n\nexport const unmarshalNotificationDestinationSchema: z.ZodType<NotificationDestination> =\n z\n .object({\n destination_id: z.string().optional(),\n destination_type: z.string().optional(),\n special_destination: z.string().optional(),\n })\n .transform(d => ({\n destinationId: d.destination_id,\n destinationType: d.destination_type,\n specialDestination: d.special_destination,\n }));\n\nexport const unmarshalPrincipalSchema: z.ZodType<Principal> = z\n .object({\n id: z.string().optional(),\n principal_type: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n principalType: d.principal_type,\n }));\n\nexport const unmarshalSecurableSchema: z.ZodType<Securable> = z\n .object({\n type: z.string().optional(),\n full_name: z.string().optional(),\n provider_share: z.string().optional(),\n })\n .transform(d => ({\n type: d.type,\n fullName: d.full_name,\n providerShare: d.provider_share,\n }));\n\nexport const marshalAccessRequestDestinationsSchema: z.ZodType = z\n .object({\n destinations: z\n .array(z.lazy(() => marshalNotificationDestinationSchema))\n .optional(),\n securable: z.lazy(() => marshalSecurableSchema).optional(),\n areAnyDestinationsHidden: z.boolean().optional(),\n destinationSourceSecurable: z.lazy(() => marshalSecurableSchema).optional(),\n securableType: z.string().optional(),\n fullName: z.string().optional(),\n })\n .transform(d => ({\n destinations: d.destinations,\n securable: d.securable,\n are_any_destinations_hidden: d.areAnyDestinationsHidden,\n destination_source_securable: d.destinationSourceSecurable,\n securable_type: d.securableType,\n full_name: d.fullName,\n }));\n\nexport const marshalBatchCreateAccessRequestsRequestSchema: z.ZodType = z\n .object({\n requests: z\n .array(z.lazy(() => marshalCreateAccessRequestSchema))\n .optional(),\n })\n .transform(d => ({\n requests: d.requests,\n }));\n\nexport const marshalCreateAccessRequestSchema: z.ZodType = z\n .object({\n behalfOf: z.lazy(() => marshalPrincipalSchema).optional(),\n comment: z.string().optional(),\n securablePermissions: z\n .array(z.lazy(() => marshalSecurablePermissionsSchema))\n .optional(),\n })\n .transform(d => ({\n behalf_of: d.behalfOf,\n comment: d.comment,\n securable_permissions: d.securablePermissions,\n }));\n\nexport const marshalNotificationDestinationSchema: z.ZodType = z\n .object({\n destinationId: z.string().optional(),\n destinationType: z.string().optional(),\n specialDestination: z.string().optional(),\n })\n .transform(d => ({\n destination_id: d.destinationId,\n destination_type: d.destinationType,\n special_destination: d.specialDestination,\n }));\n\nexport const marshalPrincipalSchema: z.ZodType = z\n .object({\n id: z.string().optional(),\n principalType: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n principal_type: d.principalType,\n }));\n\nexport const marshalSecurableSchema: z.ZodType = z\n .object({\n type: z.string().optional(),\n fullName: z.string().optional(),\n providerShare: z.string().optional(),\n })\n .transform(d => ({\n type: d.type,\n full_name: d.fullName,\n provider_share: d.providerShare,\n }));\n\nexport const marshalSecurablePermissionsSchema: z.ZodType = z\n .object({\n securable: z.lazy(() => marshalSecurableSchema).optional(),\n permissions: z.array(z.string()).optional(),\n })\n .transform(d => ({\n securable: d.securable,\n permissions: d.permissions,\n }));\n\nconst accessRequestDestinationsFieldMaskSchema: FieldMaskSchema = {\n areAnyDestinationsHidden: {wire: 'are_any_destinations_hidden'},\n destinationSourceSecurable: {\n wire: 'destination_source_securable',\n children: () => securableFieldMaskSchema,\n },\n destinations: {wire: 'destinations'},\n fullName: {wire: 'full_name'},\n securable: {wire: 'securable', children: () => securableFieldMaskSchema},\n securableType: {wire: 'securable_type'},\n};\n\nexport function accessRequestDestinationsFieldMask(\n ...paths: string[]\n): FieldMask<AccessRequestDestinations> {\n return FieldMask.build<AccessRequestDestinations>(\n paths,\n accessRequestDestinationsFieldMaskSchema\n );\n}\n\nconst securableFieldMaskSchema: FieldMaskSchema = {\n fullName: {wire: 'full_name'},\n providerShare: {wire: 'provider_share'},\n type: {wire: 'type'},\n};\n"],"mappings":";;;;AAOA,MAAa,kBAAkB;CAC7B,8BAA8B;CAC9B,OAAO;CACP,OAAO;CACP,iBAAiB;CACjB,iBAAiB;CACjB,KAAK;CACN;AAMD,MAAa,gBAAgB;CAC3B,4BAA4B;CAC5B,gBAAgB;CAChB,iBAAiB;CACjB,mBAAmB;CACpB;;AAOD,MAAa,gBAAgB;CAC3B,SAAS;CACT,QAAQ;CACR,OAAO;CACP,oBAAoB;CACpB,mBAAmB;CACnB,UAAU;CACV,OAAO;CACP,UAAU;CACV,WAAW;CACX,YAAY;CACZ,WAAW;CACX,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,YAAY;CACZ,mBAAmB;CAEnB,eAAe;CAChB;AAMD,MAAa,qBAAqB;CAChC,iCAAiC;CACjC,mCAAmC;CACnC,6CACE;CAC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D,UAAU,EAAC,MAAM,aAAY;CAC7B,eAAe,EAAC,MAAM,kBAAiB;CACvC,MAAM,EAAC,MAAM,QAAO;CACrB"}
1
+ {"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const DestinationType = {\n DESTINATION_TYPE_UNSPECIFIED: 'DESTINATION_TYPE_UNSPECIFIED',\n EMAIL: 'EMAIL',\n SLACK: 'SLACK',\n GENERIC_WEBHOOK: 'GENERIC_WEBHOOK',\n MICROSOFT_TEAMS: 'MICROSOFT_TEAMS',\n URL: 'URL',\n} as const;\nexport type DestinationType =\n | (typeof DestinationType)[keyof typeof DestinationType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PrincipalType = {\n PRINCIPAL_TYPE_UNSPECIFIED: 'PRINCIPAL_TYPE_UNSPECIFIED',\n USER_PRINCIPAL: 'USER_PRINCIPAL',\n GROUP_PRINCIPAL: 'GROUP_PRINCIPAL',\n SERVICE_PRINCIPAL: 'SERVICE_PRINCIPAL',\n} as const;\nexport type PrincipalType =\n | (typeof PrincipalType)[keyof typeof PrincipalType]\n | (string & {});\n\n/** The type of Unity Catalog securable. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SecurableType = {\n CATALOG: 'CATALOG',\n SCHEMA: 'SCHEMA',\n TABLE: 'TABLE',\n STORAGE_CREDENTIAL: 'STORAGE_CREDENTIAL',\n EXTERNAL_LOCATION: 'EXTERNAL_LOCATION',\n FUNCTION: 'FUNCTION',\n SHARE: 'SHARE',\n PROVIDER: 'PROVIDER',\n RECIPIENT: 'RECIPIENT',\n CLEAN_ROOM: 'CLEAN_ROOM',\n METASTORE: 'METASTORE',\n PIPELINE: 'PIPELINE',\n VOLUME: 'VOLUME',\n CONNECTION: 'CONNECTION',\n CREDENTIAL: 'CREDENTIAL',\n EXTERNAL_METADATA: 'EXTERNAL_METADATA',\n /** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */\n STAGING_TABLE: 'STAGING_TABLE',\n MODEL: 'MODEL',\n MODEL_SERVICE: 'MODEL_SERVICE',\n MCP_SERVICE: 'MCP_SERVICE',\n MODEL_PROVIDER_SERVICE: 'MODEL_PROVIDER_SERVICE',\n} as const;\nexport type SecurableType =\n | (typeof SecurableType)[keyof typeof SecurableType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SpecialDestination = {\n SPECIAL_DESTINATION_UNSPECIFIED: 'SPECIAL_DESTINATION_UNSPECIFIED',\n SPECIAL_DESTINATION_CATALOG_OWNER: 'SPECIAL_DESTINATION_CATALOG_OWNER',\n SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER:\n 'SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER',\n SPECIAL_DESTINATION_CONNECTION_OWNER: 'SPECIAL_DESTINATION_CONNECTION_OWNER',\n SPECIAL_DESTINATION_CREDENTIAL_OWNER: 'SPECIAL_DESTINATION_CREDENTIAL_OWNER',\n SPECIAL_DESTINATION_METASTORE_OWNER: 'SPECIAL_DESTINATION_METASTORE_OWNER',\n SPECIAL_DESTINATION_SCHEMA_OWNER: 'SPECIAL_DESTINATION_SCHEMA_OWNER',\n SPECIAL_DESTINATION_TABLE_OWNER: 'SPECIAL_DESTINATION_TABLE_OWNER',\n SPECIAL_DESTINATION_VOLUME_OWNER: 'SPECIAL_DESTINATION_VOLUME_OWNER',\n SPECIAL_DESTINATION_FUNCTION_OWNER: 'SPECIAL_DESTINATION_FUNCTION_OWNER',\n SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER:\n 'SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER',\n} as const;\nexport type SpecialDestination =\n | (typeof SpecialDestination)[keyof typeof SpecialDestination]\n | (string & {});\n\nexport interface AccessRequestDestinations {\n /** The access request destinations for the securable. */\n destinations?: NotificationDestination[] | undefined;\n /** The securable for which the access request destinations are being modified or read. */\n securable?: Securable | undefined;\n /**\n * Indicates whether any destinations are hidden from the caller due to a lack of permissions.\n * This value is true if the caller does not have permission to see all destinations.\n */\n areAnyDestinationsHidden?: boolean | undefined;\n /**\n * The source securable from which the destinations are inherited. Either the same value as securable (if destination\n * is set directly on the securable) or the nearest parent securable with destinations set.\n */\n destinationSourceSecurable?: Securable | undefined;\n /** The type of the securable. Redundant with the type in the securable object, but necessary for Terraform integration */\n securableType?: string | undefined;\n /** The full name of the securable. Redundant with the name in the securable object, but necessary for Terraform integration */\n fullName?: string | undefined;\n}\n\nexport interface BatchCreateAccessRequestsRequest {\n /**\n * A list of individual access requests, where each request corresponds to\n * a set of permissions being requested on a list of securables for a specified principal.\n *\n * At most 30 requests per API call.\n */\n requests?: CreateAccessRequest[] | undefined;\n}\n\nexport interface BatchCreateAccessRequestsResponse {\n /** The access request destinations for each securable object the principal requested. */\n responses?: CreateAccessRequestResponse[] | undefined;\n}\n\nexport interface CreateAccessRequest {\n /**\n * Optional. The principal this request is for.\n * Empty `behalf_of` defaults to the requester's identity.\n *\n * Principals must be unique across the API call.\n */\n behalfOf?: Principal | undefined;\n /**\n * Optional. Comment associated with the request.\n *\n * At most 200 characters, can only contain lowercase/uppercase\n * letters (a-z, A-Z), numbers (0-9), punctuation, and spaces.\n */\n comment?: string | undefined;\n /**\n * List of securables and their corresponding requested UC privileges.\n *\n * At most 30 securables can be requested for a principal per batched call.\n * Each securable can only be requested once per principal.\n */\n securablePermissions?: SecurablePermissions[] | undefined;\n}\n\nexport interface CreateAccessRequestResponse {\n /** The principal the request was made on behalf of. */\n behalfOf?: Principal | undefined;\n /** The access request destinations for all the securables the principal requested. */\n requestDestinations?: AccessRequestDestinations[] | undefined;\n}\n\nexport interface GetAccessRequestDestinationsRequest {\n /** The type of the securable. */\n securableType?: string | undefined;\n /** The full name of the securable. */\n fullName?: string | undefined;\n}\n\nexport interface NotificationDestination {\n /**\n * The identifier for the destination. This is the email address for EMAIL destinations, the URL for URL destinations,\n * or the unique <Databricks> notification destination ID for all other external destinations.\n */\n destinationId?: string | undefined;\n /** The type of the destination. */\n destinationType?: DestinationType | undefined;\n /**\n * This field is used to denote whether the destination is the email of the owner of the securable object.\n * The special destination cannot be assigned to a securable and only represents the default destination of the securable.\n * The securable types that support default special destinations are: \"catalog\", \"external_location\", \"connection\", \"credential\", and \"metastore\".\n * The **destination_type** of a **special_destination** is always EMAIL.\n */\n specialDestination?: SpecialDestination | undefined;\n}\n\nexport interface Principal {\n /** <Databricks> user, group or service principal ID. */\n id?: string | undefined;\n principalType?: PrincipalType | undefined;\n}\n\n/**\n * Generic definition of a securable, which is uniquely defined in a metastore\n * by its type and full name.\n */\nexport interface Securable {\n /**\n * Required. The type of securable (catalog/schema/table).\n * Optional if resource_name is present.\n */\n type?: SecurableType | undefined;\n /**\n * Required. The full name of the catalog/schema/table.\n * Optional if resource_name is present.\n */\n fullName?: string | undefined;\n /**\n * Optional. The name of the Share object that contains the securable when the securable is\n * getting shared in D2D Delta Sharing.\n */\n providerShare?: string | undefined;\n}\n\nexport interface SecurablePermissions {\n /** The securable for which the access request destinations are being requested. */\n securable?: Securable | undefined;\n /** List of requested Unity Catalog permissions. */\n permissions?: string[] | undefined;\n}\n\nexport interface UpdateAccessRequestDestinationsRequest {\n /**\n * The access request destinations to assign to the securable.\n * For each destination, a **destination_id** and **destination_type** must be defined.\n */\n accessRequestDestinations?: AccessRequestDestinations | undefined;\n updateMask?: FieldMask<AccessRequestDestinations> | undefined;\n}\n\nexport const unmarshalAccessRequestDestinationsSchema: z.ZodType<AccessRequestDestinations> =\n z\n .object({\n destinations: z\n .array(z.lazy(() => unmarshalNotificationDestinationSchema))\n .optional(),\n securable: z.lazy(() => unmarshalSecurableSchema).optional(),\n are_any_destinations_hidden: z.boolean().optional(),\n destination_source_securable: z\n .lazy(() => unmarshalSecurableSchema)\n .optional(),\n securable_type: z.string().optional(),\n full_name: z.string().optional(),\n })\n .transform(d => ({\n destinations: d.destinations,\n securable: d.securable,\n areAnyDestinationsHidden: d.are_any_destinations_hidden,\n destinationSourceSecurable: d.destination_source_securable,\n securableType: d.securable_type,\n fullName: d.full_name,\n }));\n\nexport const unmarshalBatchCreateAccessRequestsResponseSchema: z.ZodType<BatchCreateAccessRequestsResponse> =\n z\n .object({\n responses: z\n .array(z.lazy(() => unmarshalCreateAccessRequestResponseSchema))\n .optional(),\n })\n .transform(d => ({\n responses: d.responses,\n }));\n\nexport const unmarshalCreateAccessRequestResponseSchema: z.ZodType<CreateAccessRequestResponse> =\n z\n .object({\n behalf_of: z.lazy(() => unmarshalPrincipalSchema).optional(),\n request_destinations: z\n .array(z.lazy(() => unmarshalAccessRequestDestinationsSchema))\n .optional(),\n })\n .transform(d => ({\n behalfOf: d.behalf_of,\n requestDestinations: d.request_destinations,\n }));\n\nexport const unmarshalNotificationDestinationSchema: z.ZodType<NotificationDestination> =\n z\n .object({\n destination_id: z.string().optional(),\n destination_type: z.string().optional(),\n special_destination: z.string().optional(),\n })\n .transform(d => ({\n destinationId: d.destination_id,\n destinationType: d.destination_type,\n specialDestination: d.special_destination,\n }));\n\nexport const unmarshalPrincipalSchema: z.ZodType<Principal> = z\n .object({\n id: z.string().optional(),\n principal_type: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n principalType: d.principal_type,\n }));\n\nexport const unmarshalSecurableSchema: z.ZodType<Securable> = z\n .object({\n type: z.string().optional(),\n full_name: z.string().optional(),\n provider_share: z.string().optional(),\n })\n .transform(d => ({\n type: d.type,\n fullName: d.full_name,\n providerShare: d.provider_share,\n }));\n\nexport const marshalAccessRequestDestinationsSchema: z.ZodType = z\n .object({\n destinations: z\n .array(z.lazy(() => marshalNotificationDestinationSchema))\n .optional(),\n securable: z.lazy(() => marshalSecurableSchema).optional(),\n areAnyDestinationsHidden: z.boolean().optional(),\n destinationSourceSecurable: z.lazy(() => marshalSecurableSchema).optional(),\n securableType: z.string().optional(),\n fullName: z.string().optional(),\n })\n .transform(d => ({\n destinations: d.destinations,\n securable: d.securable,\n are_any_destinations_hidden: d.areAnyDestinationsHidden,\n destination_source_securable: d.destinationSourceSecurable,\n securable_type: d.securableType,\n full_name: d.fullName,\n }));\n\nexport const marshalBatchCreateAccessRequestsRequestSchema: z.ZodType = z\n .object({\n requests: z\n .array(z.lazy(() => marshalCreateAccessRequestSchema))\n .optional(),\n })\n .transform(d => ({\n requests: d.requests,\n }));\n\nexport const marshalCreateAccessRequestSchema: z.ZodType = z\n .object({\n behalfOf: z.lazy(() => marshalPrincipalSchema).optional(),\n comment: z.string().optional(),\n securablePermissions: z\n .array(z.lazy(() => marshalSecurablePermissionsSchema))\n .optional(),\n })\n .transform(d => ({\n behalf_of: d.behalfOf,\n comment: d.comment,\n securable_permissions: d.securablePermissions,\n }));\n\nexport const marshalNotificationDestinationSchema: z.ZodType = z\n .object({\n destinationId: z.string().optional(),\n destinationType: z.string().optional(),\n specialDestination: z.string().optional(),\n })\n .transform(d => ({\n destination_id: d.destinationId,\n destination_type: d.destinationType,\n special_destination: d.specialDestination,\n }));\n\nexport const marshalPrincipalSchema: z.ZodType = z\n .object({\n id: z.string().optional(),\n principalType: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n principal_type: d.principalType,\n }));\n\nexport const marshalSecurableSchema: z.ZodType = z\n .object({\n type: z.string().optional(),\n fullName: z.string().optional(),\n providerShare: z.string().optional(),\n })\n .transform(d => ({\n type: d.type,\n full_name: d.fullName,\n provider_share: d.providerShare,\n }));\n\nexport const marshalSecurablePermissionsSchema: z.ZodType = z\n .object({\n securable: z.lazy(() => marshalSecurableSchema).optional(),\n permissions: z.array(z.string()).optional(),\n })\n .transform(d => ({\n securable: d.securable,\n permissions: d.permissions,\n }));\n\nconst accessRequestDestinationsFieldMaskSchema: FieldMaskSchema = {\n areAnyDestinationsHidden: {wire: 'are_any_destinations_hidden'},\n destinationSourceSecurable: {\n wire: 'destination_source_securable',\n children: () => securableFieldMaskSchema,\n },\n destinations: {wire: 'destinations'},\n fullName: {wire: 'full_name'},\n securable: {wire: 'securable', children: () => securableFieldMaskSchema},\n securableType: {wire: 'securable_type'},\n};\n\nexport function accessRequestDestinationsFieldMask(\n ...paths: string[]\n): FieldMask<AccessRequestDestinations> {\n return FieldMask.build<AccessRequestDestinations>(\n paths,\n accessRequestDestinationsFieldMaskSchema\n );\n}\n\nconst securableFieldMaskSchema: FieldMaskSchema = {\n fullName: {wire: 'full_name'},\n providerShare: {wire: 'provider_share'},\n type: {wire: 'type'},\n};\n"],"mappings":";;;;AAOA,MAAa,kBAAkB;CAC7B,8BAA8B;CAC9B,OAAO;CACP,OAAO;CACP,iBAAiB;CACjB,iBAAiB;CACjB,KAAK;CACN;AAMD,MAAa,gBAAgB;CAC3B,4BAA4B;CAC5B,gBAAgB;CAChB,iBAAiB;CACjB,mBAAmB;CACpB;;AAOD,MAAa,gBAAgB;CAC3B,SAAS;CACT,QAAQ;CACR,OAAO;CACP,oBAAoB;CACpB,mBAAmB;CACnB,UAAU;CACV,OAAO;CACP,UAAU;CACV,WAAW;CACX,YAAY;CACZ,WAAW;CACX,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,YAAY;CACZ,mBAAmB;CAEnB,eAAe;CACf,OAAO;CACP,eAAe;CACf,aAAa;CACb,wBAAwB;CACzB;AAMD,MAAa,qBAAqB;CAChC,iCAAiC;CACjC,mCAAmC;CACnC,6CACE;CACF,sCAAsC;CACtC,sCAAsC;CACtC,qCAAqC;CACrC,kCAAkC;CAClC,iCAAiC;CACjC,kCAAkC;CAClC,oCAAoC;CACpC,4CACE;CACH;AA4ID,MAAa,2CACX,EACG,OAAO;CACN,cAAc,EACX,MAAM,EAAE,WAAW,uCAAuC,CAAC,CAC3D,UAAU;CACb,WAAW,EAAE,WAAW,yBAAyB,CAAC,U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AAE;CACxB,EAAE;AAEL,MAAa,yBAAoC,EAC9C,OAAO;CACN,IAAI,EAAE,QAAQ,CAAC,UAAU;CACzB,eAAe,EAAE,QAAQ,CAAC,UAAU;CACrC,CAAC,CACD,WAAU,OAAM;CACf,IAAI,EAAE;CACN,gBAAgB,EAAE;CACnB,EAAE;AAEL,MAAa,yBAAoC,EAC9C,OAAO;CACN,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,eAAe,EAAE,QAAQ,CAAC,UAAU;CACrC,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,WAAW,EAAE;CACb,gBAAgB,EAAE;CACnB,EAAE;AAEL,MAAa,oCAA+C,EACzD,OAAO;CACN,WAAW,EAAE,WAAW,uBAAuB,CAAC,UAAU;CAC1D,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CAC5C,CAAC,CACD,WAAU,OAAM;CACf,WAAW,EAAE;CACb,aAAa,EAAE;CAChB,EAAE;AAEL,MAAM,2CAA4D;CAChE,0BAA0B,EAAC,MAAM,+BAA8B;CAC/D,4BAA4B;EAC1B,MAAM;EACN,gBAAgB;EACjB;CACD,cAAc,EAAC,MAAM,gBAAe;CACpC,UAAU,EAAC,MAAM,aAAY;CAC7B,WAAW;EAAC,MAAM;EAAa,gBAAgB;EAAyB;CACxE,eAAe,EAAC,MAAM,kBAAiB;CACxC;AAED,SAAgB,mCACd,GAAG,OACmC;AACtC,QAAO,UAAU,MACf,OACA,yCACD;;AAGH,MAAM,2BAA4C;CAChD,UAAU,EAAC,MAAM,aAAY;CAC7B,eAAe,EAAC,MAAM,kBAAiB;CACvC,MAAM,EAAC,MAAM,QAAO;CACrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-uc-rfa",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "directory": "packages/uc/rfa"
34
34
  },
35
35
  "dependencies": {
36
- "@databricks/sdk-auth": ">=0.48.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.48.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.48.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.50.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.50.0 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.50.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"