@databricks/sdk-uc-connections 0.49.0 → 0.51.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-connections";
3
- var version = "0.49.0";
3
+ var version = "0.51.0";
4
4
 
5
5
  //#endregion
6
6
  export { name, version };
@@ -29,6 +29,8 @@ declare const ConnectionType: {
29
29
  readonly META_MARKETING: "META_MARKETING";
30
30
  readonly HUBSPOT: "HUBSPOT";
31
31
  readonly ZENDESK: "ZENDESK";
32
+ readonly AWS_SECRETS_MANAGER: "AWS_SECRETS_MANAGER";
33
+ readonly AZURE_KEY_VAULT: "AZURE_KEY_VAULT";
32
34
  readonly GITHUB: "GITHUB";
33
35
  readonly OUTLOOK: "OUTLOOK";
34
36
  readonly SMARTSHEET: "SMARTSHEET";
@@ -72,6 +74,10 @@ declare const SecurableType: {
72
74
  readonly CREDENTIAL: "CREDENTIAL";
73
75
  readonly EXTERNAL_METADATA: "EXTERNAL_METADATA"; /** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */
74
76
  readonly STAGING_TABLE: "STAGING_TABLE";
77
+ readonly MODEL: "MODEL";
78
+ readonly MODEL_SERVICE: "MODEL_SERVICE";
79
+ readonly MCP_SERVICE: "MCP_SERVICE";
80
+ readonly MODEL_PROVIDER_SERVICE: "MODEL_PROVIDER_SERVICE";
75
81
  };
76
82
  type SecurableType = (typeof SecurableType)[keyof typeof SecurableType] | (string & {});
77
83
  declare const ProvisioningInfo_State: {
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;cAKa,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCD,cAAA,WACA,cAAA,eAA6B,cAAA;AAAA,cAI5B,cAAA;EAAA;;;;;;;;;;;;;;;;;KAkBD,cAAA,WACA,cAAA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,OAAA,CAAQ,wBAAA;AAAA,cAGnD,kCAAA,EAAoC,CAAA,CAAE,OAAA,CAAQ,mBAAA;AAAA,cAW9C,sCAAA,EAAwC,CAAA,CAAE,OAAA,CAAQ,uBAAA;AAAA,cAalD,+BAAA,EAAiC,CAAA,CAAE,OAAA,CAAQ,gBAAA;AAAA,cAQ3C,oCAAA,EAAsC,CAAA,CAAE,OAAA;AAAA,cAgDxC,gCAAA,EAAkC,CAAA,CAAE,OAAA;AAAA,cAUpC,6BAAA,EAA+B,CAAA,CAAE,OAAA;AAAA,cAQjC,oCAAA,EAAsC,CAAA,CAAE,OAAA"}
package/dist/v1/model.js CHANGED
@@ -29,6 +29,8 @@ const ConnectionType = {
29
29
  META_MARKETING: "META_MARKETING",
30
30
  HUBSPOT: "HUBSPOT",
31
31
  ZENDESK: "ZENDESK",
32
+ AWS_SECRETS_MANAGER: "AWS_SECRETS_MANAGER",
33
+ AZURE_KEY_VAULT: "AZURE_KEY_VAULT",
32
34
  GITHUB: "GITHUB",
33
35
  OUTLOOK: "OUTLOOK",
34
36
  SMARTSHEET: "SMARTSHEET"
@@ -69,7 +71,11 @@ const SecurableType = {
69
71
  CONNECTION: "CONNECTION",
70
72
  CREDENTIAL: "CREDENTIAL",
71
73
  EXTERNAL_METADATA: "EXTERNAL_METADATA",
72
- STAGING_TABLE: "STAGING_TABLE"
74
+ STAGING_TABLE: "STAGING_TABLE",
75
+ MODEL: "MODEL",
76
+ MODEL_SERVICE: "MODEL_SERVICE",
77
+ MCP_SERVICE: "MCP_SERVICE",
78
+ MODEL_PROVIDER_SERVICE: "MODEL_PROVIDER_SERVICE"
73
79
  };
74
80
  const ProvisioningInfo_State = {
75
81
  STATE_UNSPECIFIED: "STATE_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 {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ConnectionType = {\n UNKNOWN_CONNECTION_TYPE: 'UNKNOWN_CONNECTION_TYPE',\n MYSQL: 'MYSQL',\n POSTGRESQL: 'POSTGRESQL',\n SNOWFLAKE: 'SNOWFLAKE',\n REDSHIFT: 'REDSHIFT',\n SQLDW: 'SQLDW',\n SQLSERVER: 'SQLSERVER',\n DATABRICKS: 'DATABRICKS',\n SALESFORCE: 'SALESFORCE',\n BIGQUERY: 'BIGQUERY',\n NETSUITE: 'NETSUITE',\n WORKDAY_RAAS: 'WORKDAY_RAAS',\n HIVE_METASTORE: 'HIVE_METASTORE',\n GA4_RAW_DATA: 'GA4_RAW_DATA',\n SERVICENOW: 'SERVICENOW',\n SALESFORCE_DATA_CLOUD: 'SALESFORCE_DATA_CLOUD',\n GLUE: 'GLUE',\n ORACLE: 'ORACLE',\n TERADATA: 'TERADATA',\n HTTP: 'HTTP',\n POWER_BI: 'POWER_BI',\n DYNAMICS365: 'DYNAMICS365',\n CONFLUENCE: 'CONFLUENCE',\n JDBC: 'JDBC',\n META_MARKETING: 'META_MARKETING',\n HUBSPOT: 'HUBSPOT',\n ZENDESK: 'ZENDESK',\n GITHUB: 'GITHUB',\n OUTLOOK: 'OUTLOOK',\n SMARTSHEET: 'SMARTSHEET',\n} as const;\nexport type ConnectionType =\n | (typeof ConnectionType)[keyof typeof ConnectionType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const CredentialType = {\n UNKNOWN_CREDENTIAL_TYPE: 'UNKNOWN_CREDENTIAL_TYPE',\n USERNAME_PASSWORD: 'USERNAME_PASSWORD',\n OAUTH_U2M: 'OAUTH_U2M',\n OAUTH_M2M: 'OAUTH_M2M',\n OAUTH_REFRESH_TOKEN: 'OAUTH_REFRESH_TOKEN',\n OAUTH_ACCESS_TOKEN: 'OAUTH_ACCESS_TOKEN',\n OAUTH_RESOURCE_OWNER_PASSWORD: 'OAUTH_RESOURCE_OWNER_PASSWORD',\n SERVICE_CREDENTIAL: 'SERVICE_CREDENTIAL',\n BEARER_TOKEN: 'BEARER_TOKEN',\n OIDC_TOKEN: 'OIDC_TOKEN',\n PEM_PRIVATE_KEY: 'PEM_PRIVATE_KEY',\n OAUTH_U2M_MAPPING: 'OAUTH_U2M_MAPPING',\n ANY_STATIC_CREDENTIAL: 'ANY_STATIC_CREDENTIAL',\n OAUTH_MTLS: 'OAUTH_MTLS',\n SSWS_TOKEN: 'SSWS_TOKEN',\n EDGEGRID_AKAMAI: 'EDGEGRID_AKAMAI',\n} as const;\nexport type CredentialType =\n | (typeof CredentialType)[keyof typeof CredentialType]\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 ProvisioningInfo_State = {\n STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',\n PROVISIONING: 'PROVISIONING',\n ACTIVE: 'ACTIVE',\n FAILED: 'FAILED',\n DELETING: 'DELETING',\n UPDATING: 'UPDATING',\n DEGRADED: 'DEGRADED',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ProvisioningInfo_State =\n | (typeof ProvisioningInfo_State)[keyof typeof ProvisioningInfo_State]\n | (string & {});\n\nexport interface ConnectionInfo {\n /** Name of the connection. */\n name?: string | undefined;\n /** The type of connection. */\n connectionType?: ConnectionType | undefined;\n /** Username of current owner of the connection. */\n owner?: string | undefined;\n /** If the connection is read only. */\n readOnly?: boolean | undefined;\n /** User-provided free-form text description. */\n comment?: string | undefined;\n /** [Create,Update:OPT] Connection environment settings as EnvironmentSettings object. */\n environmentSettings?: EnvironmentSettings | undefined;\n /** Full name of connection. */\n fullName?: string | undefined;\n /** URL of the remote data source, extracted from options. */\n url?: string | undefined;\n /** The type of credential. */\n credentialType?: CredentialType | undefined;\n /** Unique identifier of the Connection. */\n connectionId?: string | undefined;\n /** Unique identifier of parent metastore. */\n metastoreId?: string | undefined;\n /** Time at which this connection was created, in epoch milliseconds. */\n createdAt?: bigint | undefined;\n /** Username of connection creator. */\n createdBy?: string | undefined;\n /** Time at which this connection was updated, in epoch milliseconds. */\n updatedAt?: bigint | undefined;\n /** Username of user who last modified connection. */\n updatedBy?: string | undefined;\n securableType?: SecurableType | undefined;\n provisioningInfo?: ProvisioningInfo | undefined;\n /** A map of key-value properties attached to the securable. */\n options?: Record<string, string> | undefined;\n /** A map of key-value properties attached to the securable. */\n properties?: Record<string, string> | undefined;\n}\n\nexport interface CreateConnectionRequest {\n /**\n * Parent schema for schema-level connections, in format \"schemas/{catalog}.{schema}\".\n * Absent for metastore-level (L1) connections.\n */\n parent?: string | undefined;\n /** Name of the connection. */\n name?: string | undefined;\n /** The type of connection. */\n connectionType?: ConnectionType | undefined;\n /** Username of current owner of the connection. */\n owner?: string | undefined;\n /** If the connection is read only. */\n readOnly?: boolean | undefined;\n /** User-provided free-form text description. */\n comment?: string | undefined;\n /** [Create,Update:OPT] Connection environment settings as EnvironmentSettings object. */\n environmentSettings?: EnvironmentSettings | undefined;\n /** Full name of connection. */\n fullName?: string | undefined;\n /** URL of the remote data source, extracted from options. */\n url?: string | undefined;\n /** The type of credential. */\n credentialType?: CredentialType | undefined;\n /** Unique identifier of the Connection. */\n connectionId?: string | undefined;\n /** Unique identifier of parent metastore. */\n metastoreId?: string | undefined;\n /** Time at which this connection was created, in epoch milliseconds. */\n createdAt?: bigint | undefined;\n /** Username of connection creator. */\n createdBy?: string | undefined;\n /** Time at which this connection was updated, in epoch milliseconds. */\n updatedAt?: bigint | undefined;\n /** Username of user who last modified connection. */\n updatedBy?: string | undefined;\n securableType?: SecurableType | undefined;\n provisioningInfo?: ProvisioningInfo | undefined;\n /** A map of key-value properties attached to the securable. */\n options?: Record<string, string> | undefined;\n /** A map of key-value properties attached to the securable. */\n properties?: Record<string, string> | undefined;\n}\n\nexport interface DeleteConnectionRequest {\n /** The name of the connection to be deleted. */\n nameArg?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DeleteConnectionResponse {}\n\nexport interface EnvironmentSettings {\n javaDependencies?: string[] | undefined;\n environmentVersion?: string | undefined;\n}\n\nexport interface GetConnectionRequest {\n /** Name of the connection. */\n nameArg?: string | undefined;\n}\n\nexport interface ListConnectionsRequest {\n /**\n * Maximum number of connections to return.\n * - If not set, all connections are returned (not recommended).\n * - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;\n * - when set to 0, the page length is set to a server configured value (recommended);\n * - when set to a value less than 0, an invalid parameter error is returned;\n */\n maxResults?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n /** Optional. Parent schema filter for listing schema-level connections, in format \"schemas/{catalog}.{schema}\". */\n parent?: string | undefined;\n}\n\nexport interface ListConnectionsResponse {\n /** An array of connection information objects. */\n connections?: ConnectionInfo[] | undefined;\n /**\n * Opaque token to retrieve the next page of results. Absent if there are no more pages.\n * __page_token__ should be set to this value for the next request (for the next page of results).\n */\n nextPageToken?: string | undefined;\n}\n\n/** Status of an asynchronously provisioned resource. */\nexport interface ProvisioningInfo {\n /** The provisioning state of the resource. */\n state?: ProvisioningInfo_State | undefined;\n}\n\nexport interface UpdateConnectionRequest {\n /** Name of the connection. */\n nameArg?: string | undefined;\n /** New name for the connection. */\n newName?: string | undefined;\n /** Name of the connection. */\n name?: string | undefined;\n /** The type of connection. */\n connectionType?: ConnectionType | undefined;\n /** Username of current owner of the connection. */\n owner?: string | undefined;\n /** If the connection is read only. */\n readOnly?: boolean | undefined;\n /** User-provided free-form text description. */\n comment?: string | undefined;\n /** [Create,Update:OPT] Connection environment settings as EnvironmentSettings object. */\n environmentSettings?: EnvironmentSettings | undefined;\n /** Full name of connection. */\n fullName?: string | undefined;\n /** URL of the remote data source, extracted from options. */\n url?: string | undefined;\n /** The type of credential. */\n credentialType?: CredentialType | undefined;\n /** Unique identifier of the Connection. */\n connectionId?: string | undefined;\n /** Unique identifier of parent metastore. */\n metastoreId?: string | undefined;\n /** Time at which this connection was created, in epoch milliseconds. */\n createdAt?: bigint | undefined;\n /** Username of connection creator. */\n createdBy?: string | undefined;\n /** Time at which this connection was updated, in epoch milliseconds. */\n updatedAt?: bigint | undefined;\n /** Username of user who last modified connection. */\n updatedBy?: string | undefined;\n securableType?: SecurableType | undefined;\n provisioningInfo?: ProvisioningInfo | undefined;\n /** A map of key-value properties attached to the securable. */\n options?: Record<string, string> | undefined;\n /** A map of key-value properties attached to the securable. */\n properties?: Record<string, string> | undefined;\n}\n\nexport const unmarshalConnectionInfoSchema: z.ZodType<ConnectionInfo> = z\n .object({\n name: z.string().optional(),\n connection_type: z.string().optional(),\n owner: z.string().optional(),\n read_only: z.boolean().optional(),\n comment: z.string().optional(),\n environment_settings: z\n .lazy(() => unmarshalEnvironmentSettingsSchema)\n .optional(),\n full_name: z.string().optional(),\n url: z.string().optional(),\n credential_type: z.string().optional(),\n connection_id: z.string().optional(),\n metastore_id: z.string().optional(),\n created_at: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n created_by: z.string().optional(),\n updated_at: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n updated_by: z.string().optional(),\n securable_type: z.string().optional(),\n provisioning_info: z.lazy(() => unmarshalProvisioningInfoSchema).optional(),\n options: z.record(z.string(), z.string()).optional(),\n properties: z.record(z.string(), z.string()).optional(),\n })\n .transform(d => ({\n name: d.name,\n connectionType: d.connection_type,\n owner: d.owner,\n readOnly: d.read_only,\n comment: d.comment,\n environmentSettings: d.environment_settings,\n fullName: d.full_name,\n url: d.url,\n credentialType: d.credential_type,\n connectionId: d.connection_id,\n metastoreId: d.metastore_id,\n createdAt: d.created_at,\n createdBy: d.created_by,\n updatedAt: d.updated_at,\n updatedBy: d.updated_by,\n securableType: d.securable_type,\n provisioningInfo: d.provisioning_info,\n options: d.options,\n properties: d.properties,\n }));\n\nexport const unmarshalDeleteConnectionResponseSchema: z.ZodType<DeleteConnectionResponse> =\n z.object({});\n\nexport const unmarshalEnvironmentSettingsSchema: z.ZodType<EnvironmentSettings> =\n z\n .object({\n java_dependencies: z.array(z.string()).optional(),\n environment_version: z.string().optional(),\n })\n .transform(d => ({\n javaDependencies: d.java_dependencies,\n environmentVersion: d.environment_version,\n }));\n\nexport const unmarshalListConnectionsResponseSchema: z.ZodType<ListConnectionsResponse> =\n z\n .object({\n connections: z\n .array(z.lazy(() => unmarshalConnectionInfoSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n connections: d.connections,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalProvisioningInfoSchema: z.ZodType<ProvisioningInfo> = z\n .object({\n state: z.string().optional(),\n })\n .transform(d => ({\n state: d.state,\n }));\n\nexport const marshalCreateConnectionRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n name: z.string().optional(),\n connectionType: z.string().optional(),\n owner: z.string().optional(),\n readOnly: z.boolean().optional(),\n comment: z.string().optional(),\n environmentSettings: z\n .lazy(() => marshalEnvironmentSettingsSchema)\n .optional(),\n fullName: z.string().optional(),\n url: z.string().optional(),\n credentialType: z.string().optional(),\n connectionId: z.string().optional(),\n metastoreId: z.string().optional(),\n createdAt: z.bigint().optional(),\n createdBy: z.string().optional(),\n updatedAt: z.bigint().optional(),\n updatedBy: z.string().optional(),\n securableType: z.string().optional(),\n provisioningInfo: z.lazy(() => marshalProvisioningInfoSchema).optional(),\n options: z.record(z.string(), z.string()).optional(),\n properties: z.record(z.string(), z.string()).optional(),\n })\n .transform(d => ({\n parent: d.parent,\n name: d.name,\n connection_type: d.connectionType,\n owner: d.owner,\n read_only: d.readOnly,\n comment: d.comment,\n environment_settings: d.environmentSettings,\n full_name: d.fullName,\n url: d.url,\n credential_type: d.credentialType,\n connection_id: d.connectionId,\n metastore_id: d.metastoreId,\n created_at: d.createdAt,\n created_by: d.createdBy,\n updated_at: d.updatedAt,\n updated_by: d.updatedBy,\n securable_type: d.securableType,\n provisioning_info: d.provisioningInfo,\n options: d.options,\n properties: d.properties,\n }));\n\nexport const marshalEnvironmentSettingsSchema: z.ZodType = z\n .object({\n javaDependencies: z.array(z.string()).optional(),\n environmentVersion: z.string().optional(),\n })\n .transform(d => ({\n java_dependencies: d.javaDependencies,\n environment_version: d.environmentVersion,\n }));\n\nexport const marshalProvisioningInfoSchema: z.ZodType = z\n .object({\n state: z.string().optional(),\n })\n .transform(d => ({\n state: d.state,\n }));\n\nexport const marshalUpdateConnectionRequestSchema: z.ZodType = z\n .object({\n nameArg: z.string().optional(),\n newName: z.string().optional(),\n name: z.string().optional(),\n connectionType: z.string().optional(),\n owner: z.string().optional(),\n readOnly: z.boolean().optional(),\n comment: z.string().optional(),\n environmentSettings: z\n .lazy(() => marshalEnvironmentSettingsSchema)\n .optional(),\n fullName: z.string().optional(),\n url: z.string().optional(),\n credentialType: z.string().optional(),\n connectionId: z.string().optional(),\n metastoreId: z.string().optional(),\n createdAt: z.bigint().optional(),\n createdBy: z.string().optional(),\n updatedAt: z.bigint().optional(),\n updatedBy: z.string().optional(),\n securableType: z.string().optional(),\n provisioningInfo: z.lazy(() => marshalProvisioningInfoSchema).optional(),\n options: z.record(z.string(), z.string()).optional(),\n properties: z.record(z.string(), z.string()).optional(),\n })\n .transform(d => ({\n name_arg: d.nameArg,\n new_name: d.newName,\n name: d.name,\n connection_type: d.connectionType,\n owner: d.owner,\n read_only: d.readOnly,\n comment: d.comment,\n environment_settings: d.environmentSettings,\n full_name: d.fullName,\n url: d.url,\n credential_type: d.credentialType,\n connection_id: d.connectionId,\n metastore_id: d.metastoreId,\n created_at: d.createdAt,\n created_by: d.createdBy,\n updated_at: d.updatedAt,\n updated_by: d.updatedBy,\n securable_type: d.securableType,\n provisioning_info: d.provisioningInfo,\n options: d.options,\n properties: d.properties,\n }));\n"],"mappings":";;;AAKA,MAAa,iBAAiB;CAC5B,yBAAyB;CACzB,OAAO;CACP,YAAY;CACZ,WAAW;CACX,UAAU;CACV,OAAO;CACP,WAAW;CACX,YAAY;CACZ,YAAY;CACZ,UAAU;CACV,UAAU;CACV,cAAc;CACd,gBAAgB;CAChB,cAAc;CACd,YAAY;CACZ,uBAAuB;CACvB,MAAM;CACN,QAAQ;CACR,UAAU;CACV,MAAM;CACN,UAAU;CACV,aAAa;CACb,YAAY;CACZ,MAAM;CACN,gBAAgB;CAChB,SAAS;CACT,SAAS;CACT,QAAQ;CACR,SAAS;CACT,YAAY;CACb;AAMD,MAAa,iBAAiB;CAC5B,yBAAyB;CACzB,mBAAmB;CACnB,WAAW;CACX,WAAW;CACX,qBAAqB;CACrB,oBAAoB;CACpB,+BAA+B;CAC/B,oBAAoB;CACpB,cAAc;CACd,YAAY;CACZ,iBAAiB;CACjB,mBAAmB;CACnB,uBAAuB;CACvB,YAAY;CACZ,YAAY;CACZ,iBAAiB;CAClB;;AAOD,MAAa,gBAAgB;CAC3B,SAAS;CACT,QAAQ;CACR,OAAO;CACP,oBAAoB;CACpB,mBAAmB;CACnB,UAAU;CACV,OAAO;CACP,UAA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CACX,sBAAsB,EAAE;CACxB,WAAW,EAAE;CACb,KAAK,EAAE;CACP,iBAAiB,EAAE;CACnB,eAAe,EAAE;CACjB,cAAc,EAAE;CAChB,YAAY,EAAE;CACd,YAAY,EAAE;CACd,YAAY,EAAE;CACd,YAAY,EAAE;CACd,gBAAgB,EAAE;CAClB,mBAAmB,EAAE;CACrB,SAAS,EAAE;CACX,YAAY,EAAE;CACf,EAAE"}
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 {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ConnectionType = {\n UNKNOWN_CONNECTION_TYPE: 'UNKNOWN_CONNECTION_TYPE',\n MYSQL: 'MYSQL',\n POSTGRESQL: 'POSTGRESQL',\n SNOWFLAKE: 'SNOWFLAKE',\n REDSHIFT: 'REDSHIFT',\n SQLDW: 'SQLDW',\n SQLSERVER: 'SQLSERVER',\n DATABRICKS: 'DATABRICKS',\n SALESFORCE: 'SALESFORCE',\n BIGQUERY: 'BIGQUERY',\n NETSUITE: 'NETSUITE',\n WORKDAY_RAAS: 'WORKDAY_RAAS',\n HIVE_METASTORE: 'HIVE_METASTORE',\n GA4_RAW_DATA: 'GA4_RAW_DATA',\n SERVICENOW: 'SERVICENOW',\n SALESFORCE_DATA_CLOUD: 'SALESFORCE_DATA_CLOUD',\n GLUE: 'GLUE',\n ORACLE: 'ORACLE',\n TERADATA: 'TERADATA',\n HTTP: 'HTTP',\n POWER_BI: 'POWER_BI',\n DYNAMICS365: 'DYNAMICS365',\n CONFLUENCE: 'CONFLUENCE',\n JDBC: 'JDBC',\n META_MARKETING: 'META_MARKETING',\n HUBSPOT: 'HUBSPOT',\n ZENDESK: 'ZENDESK',\n AWS_SECRETS_MANAGER: 'AWS_SECRETS_MANAGER',\n AZURE_KEY_VAULT: 'AZURE_KEY_VAULT',\n GITHUB: 'GITHUB',\n OUTLOOK: 'OUTLOOK',\n SMARTSHEET: 'SMARTSHEET',\n} as const;\nexport type ConnectionType =\n | (typeof ConnectionType)[keyof typeof ConnectionType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const CredentialType = {\n UNKNOWN_CREDENTIAL_TYPE: 'UNKNOWN_CREDENTIAL_TYPE',\n USERNAME_PASSWORD: 'USERNAME_PASSWORD',\n OAUTH_U2M: 'OAUTH_U2M',\n OAUTH_M2M: 'OAUTH_M2M',\n OAUTH_REFRESH_TOKEN: 'OAUTH_REFRESH_TOKEN',\n OAUTH_ACCESS_TOKEN: 'OAUTH_ACCESS_TOKEN',\n OAUTH_RESOURCE_OWNER_PASSWORD: 'OAUTH_RESOURCE_OWNER_PASSWORD',\n SERVICE_CREDENTIAL: 'SERVICE_CREDENTIAL',\n BEARER_TOKEN: 'BEARER_TOKEN',\n OIDC_TOKEN: 'OIDC_TOKEN',\n PEM_PRIVATE_KEY: 'PEM_PRIVATE_KEY',\n OAUTH_U2M_MAPPING: 'OAUTH_U2M_MAPPING',\n ANY_STATIC_CREDENTIAL: 'ANY_STATIC_CREDENTIAL',\n OAUTH_MTLS: 'OAUTH_MTLS',\n SSWS_TOKEN: 'SSWS_TOKEN',\n EDGEGRID_AKAMAI: 'EDGEGRID_AKAMAI',\n} as const;\nexport type CredentialType =\n | (typeof CredentialType)[keyof typeof CredentialType]\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 ProvisioningInfo_State = {\n STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',\n PROVISIONING: 'PROVISIONING',\n ACTIVE: 'ACTIVE',\n FAILED: 'FAILED',\n DELETING: 'DELETING',\n UPDATING: 'UPDATING',\n DEGRADED: 'DEGRADED',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ProvisioningInfo_State =\n | (typeof ProvisioningInfo_State)[keyof typeof ProvisioningInfo_State]\n | (string & {});\n\nexport interface ConnectionInfo {\n /** Name of the connection. */\n name?: string | undefined;\n /** The type of connection. */\n connectionType?: ConnectionType | undefined;\n /** Username of current owner of the connection. */\n owner?: string | undefined;\n /** If the connection is read only. */\n readOnly?: boolean | undefined;\n /** User-provided free-form text description. */\n comment?: string | undefined;\n /** [Create,Update:OPT] Connection environment settings as EnvironmentSettings object. */\n environmentSettings?: EnvironmentSettings | undefined;\n /** Full name of connection. */\n fullName?: string | undefined;\n /** URL of the remote data source, extracted from options. */\n url?: string | undefined;\n /** The type of credential. */\n credentialType?: CredentialType | undefined;\n /** Unique identifier of the Connection. */\n connectionId?: string | undefined;\n /** Unique identifier of parent metastore. */\n metastoreId?: string | undefined;\n /** Time at which this connection was created, in epoch milliseconds. */\n createdAt?: bigint | undefined;\n /** Username of connection creator. */\n createdBy?: string | undefined;\n /** Time at which this connection was updated, in epoch milliseconds. */\n updatedAt?: bigint | undefined;\n /** Username of user who last modified connection. */\n updatedBy?: string | undefined;\n securableType?: SecurableType | undefined;\n provisioningInfo?: ProvisioningInfo | undefined;\n /** A map of key-value properties attached to the securable. */\n options?: Record<string, string> | undefined;\n /** A map of key-value properties attached to the securable. */\n properties?: Record<string, string> | undefined;\n}\n\nexport interface CreateConnectionRequest {\n /**\n * Parent schema for schema-level connections, in format \"schemas/{catalog}.{schema}\".\n * Absent for metastore-level (L1) connections.\n */\n parent?: string | undefined;\n /** Name of the connection. */\n name?: string | undefined;\n /** The type of connection. */\n connectionType?: ConnectionType | undefined;\n /** Username of current owner of the connection. */\n owner?: string | undefined;\n /** If the connection is read only. */\n readOnly?: boolean | undefined;\n /** User-provided free-form text description. */\n comment?: string | undefined;\n /** [Create,Update:OPT] Connection environment settings as EnvironmentSettings object. */\n environmentSettings?: EnvironmentSettings | undefined;\n /** Full name of connection. */\n fullName?: string | undefined;\n /** URL of the remote data source, extracted from options. */\n url?: string | undefined;\n /** The type of credential. */\n credentialType?: CredentialType | undefined;\n /** Unique identifier of the Connection. */\n connectionId?: string | undefined;\n /** Unique identifier of parent metastore. */\n metastoreId?: string | undefined;\n /** Time at which this connection was created, in epoch milliseconds. */\n createdAt?: bigint | undefined;\n /** Username of connection creator. */\n createdBy?: string | undefined;\n /** Time at which this connection was updated, in epoch milliseconds. */\n updatedAt?: bigint | undefined;\n /** Username of user who last modified connection. */\n updatedBy?: string | undefined;\n securableType?: SecurableType | undefined;\n provisioningInfo?: ProvisioningInfo | undefined;\n /** A map of key-value properties attached to the securable. */\n options?: Record<string, string> | undefined;\n /** A map of key-value properties attached to the securable. */\n properties?: Record<string, string> | undefined;\n}\n\nexport interface DeleteConnectionRequest {\n /** The name of the connection to be deleted. */\n nameArg?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DeleteConnectionResponse {}\n\nexport interface EnvironmentSettings {\n javaDependencies?: string[] | undefined;\n environmentVersion?: string | undefined;\n}\n\nexport interface GetConnectionRequest {\n /** Name of the connection. */\n nameArg?: string | undefined;\n}\n\nexport interface ListConnectionsRequest {\n /**\n * Maximum number of connections to return.\n * - If not set, all connections are returned (not recommended).\n * - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;\n * - when set to 0, the page length is set to a server configured value (recommended);\n * - when set to a value less than 0, an invalid parameter error is returned;\n */\n maxResults?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n /** Optional. Parent schema filter for listing schema-level connections, in format \"schemas/{catalog}.{schema}\". */\n parent?: string | undefined;\n}\n\nexport interface ListConnectionsResponse {\n /** An array of connection information objects. */\n connections?: ConnectionInfo[] | undefined;\n /**\n * Opaque token to retrieve the next page of results. Absent if there are no more pages.\n * __page_token__ should be set to this value for the next request (for the next page of results).\n */\n nextPageToken?: string | undefined;\n}\n\n/** Status of an asynchronously provisioned resource. */\nexport interface ProvisioningInfo {\n /** The provisioning state of the resource. */\n state?: ProvisioningInfo_State | undefined;\n}\n\nexport interface UpdateConnectionRequest {\n /** Name of the connection. */\n nameArg?: string | undefined;\n /** New name for the connection. */\n newName?: string | undefined;\n /** Name of the connection. */\n name?: string | undefined;\n /** The type of connection. */\n connectionType?: ConnectionType | undefined;\n /** Username of current owner of the connection. */\n owner?: string | undefined;\n /** If the connection is read only. */\n readOnly?: boolean | undefined;\n /** User-provided free-form text description. */\n comment?: string | undefined;\n /** [Create,Update:OPT] Connection environment settings as EnvironmentSettings object. */\n environmentSettings?: EnvironmentSettings | undefined;\n /** Full name of connection. */\n fullName?: string | undefined;\n /** URL of the remote data source, extracted from options. */\n url?: string | undefined;\n /** The type of credential. */\n credentialType?: CredentialType | undefined;\n /** Unique identifier of the Connection. */\n connectionId?: string | undefined;\n /** Unique identifier of parent metastore. */\n metastoreId?: string | undefined;\n /** Time at which this connection was created, in epoch milliseconds. */\n createdAt?: bigint | undefined;\n /** Username of connection creator. */\n createdBy?: string | undefined;\n /** Time at which this connection was updated, in epoch milliseconds. */\n updatedAt?: bigint | undefined;\n /** Username of user who last modified connection. */\n updatedBy?: string | undefined;\n securableType?: SecurableType | undefined;\n provisioningInfo?: ProvisioningInfo | undefined;\n /** A map of key-value properties attached to the securable. */\n options?: Record<string, string> | undefined;\n /** A map of key-value properties attached to the securable. */\n properties?: Record<string, string> | undefined;\n}\n\nexport const unmarshalConnectionInfoSchema: z.ZodType<ConnectionInfo> = z\n .object({\n name: z.string().optional(),\n connection_type: z.string().optional(),\n owner: z.string().optional(),\n read_only: z.boolean().optional(),\n comment: z.string().optional(),\n environment_settings: z\n .lazy(() => unmarshalEnvironmentSettingsSchema)\n .optional(),\n full_name: z.string().optional(),\n url: z.string().optional(),\n credential_type: z.string().optional(),\n connection_id: z.string().optional(),\n metastore_id: z.string().optional(),\n created_at: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n created_by: z.string().optional(),\n updated_at: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n updated_by: z.string().optional(),\n securable_type: z.string().optional(),\n provisioning_info: z.lazy(() => unmarshalProvisioningInfoSchema).optional(),\n options: z.record(z.string(), z.string()).optional(),\n properties: z.record(z.string(), z.string()).optional(),\n })\n .transform(d => ({\n name: d.name,\n connectionType: d.connection_type,\n owner: d.owner,\n readOnly: d.read_only,\n comment: d.comment,\n environmentSettings: d.environment_settings,\n fullName: d.full_name,\n url: d.url,\n credentialType: d.credential_type,\n connectionId: d.connection_id,\n metastoreId: d.metastore_id,\n createdAt: d.created_at,\n createdBy: d.created_by,\n updatedAt: d.updated_at,\n updatedBy: d.updated_by,\n securableType: d.securable_type,\n provisioningInfo: d.provisioning_info,\n options: d.options,\n properties: d.properties,\n }));\n\nexport const unmarshalDeleteConnectionResponseSchema: z.ZodType<DeleteConnectionResponse> =\n z.object({});\n\nexport const unmarshalEnvironmentSettingsSchema: z.ZodType<EnvironmentSettings> =\n z\n .object({\n java_dependencies: z.array(z.string()).optional(),\n environment_version: z.string().optional(),\n })\n .transform(d => ({\n javaDependencies: d.java_dependencies,\n environmentVersion: d.environment_version,\n }));\n\nexport const unmarshalListConnectionsResponseSchema: z.ZodType<ListConnectionsResponse> =\n z\n .object({\n connections: z\n .array(z.lazy(() => unmarshalConnectionInfoSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n connections: d.connections,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalProvisioningInfoSchema: z.ZodType<ProvisioningInfo> = z\n .object({\n state: z.string().optional(),\n })\n .transform(d => ({\n state: d.state,\n }));\n\nexport const marshalCreateConnectionRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n name: z.string().optional(),\n connectionType: z.string().optional(),\n owner: z.string().optional(),\n readOnly: z.boolean().optional(),\n comment: z.string().optional(),\n environmentSettings: z\n .lazy(() => marshalEnvironmentSettingsSchema)\n .optional(),\n fullName: z.string().optional(),\n url: z.string().optional(),\n credentialType: z.string().optional(),\n connectionId: z.string().optional(),\n metastoreId: z.string().optional(),\n createdAt: z.bigint().optional(),\n createdBy: z.string().optional(),\n updatedAt: z.bigint().optional(),\n updatedBy: z.string().optional(),\n securableType: z.string().optional(),\n provisioningInfo: z.lazy(() => marshalProvisioningInfoSchema).optional(),\n options: z.record(z.string(), z.string()).optional(),\n properties: z.record(z.string(), z.string()).optional(),\n })\n .transform(d => ({\n parent: d.parent,\n name: d.name,\n connection_type: d.connectionType,\n owner: d.owner,\n read_only: d.readOnly,\n comment: d.comment,\n environment_settings: d.environmentSettings,\n full_name: d.fullName,\n url: d.url,\n credential_type: d.credentialType,\n connection_id: d.connectionId,\n metastore_id: d.metastoreId,\n created_at: d.createdAt,\n created_by: d.createdBy,\n updated_at: d.updatedAt,\n updated_by: d.updatedBy,\n securable_type: d.securableType,\n provisioning_info: d.provisioningInfo,\n options: d.options,\n properties: d.properties,\n }));\n\nexport const marshalEnvironmentSettingsSchema: z.ZodType = z\n .object({\n javaDependencies: z.array(z.string()).optional(),\n environmentVersion: z.string().optional(),\n })\n .transform(d => ({\n java_dependencies: d.javaDependencies,\n environment_version: d.environmentVersion,\n }));\n\nexport const marshalProvisioningInfoSchema: z.ZodType = z\n .object({\n state: z.string().optional(),\n })\n .transform(d => ({\n state: d.state,\n }));\n\nexport const marshalUpdateConnectionRequestSchema: z.ZodType = z\n .object({\n nameArg: z.string().optional(),\n newName: z.string().optional(),\n name: z.string().optional(),\n connectionType: z.string().optional(),\n owner: z.string().optional(),\n readOnly: z.boolean().optional(),\n comment: z.string().optional(),\n environmentSettings: z\n .lazy(() => marshalEnvironmentSettingsSchema)\n .optional(),\n fullName: z.string().optional(),\n url: z.string().optional(),\n credentialType: z.string().optional(),\n connectionId: z.string().optional(),\n metastoreId: z.string().optional(),\n createdAt: z.bigint().optional(),\n createdBy: z.string().optional(),\n updatedAt: z.bigint().optional(),\n updatedBy: z.string().optional(),\n securableType: z.string().optional(),\n provisioningInfo: z.lazy(() => marshalProvisioningInfoSchema).optional(),\n options: z.record(z.string(), z.string()).optional(),\n properties: z.record(z.string(), z.string()).optional(),\n })\n .transform(d => ({\n name_arg: d.nameArg,\n new_name: d.newName,\n name: d.name,\n connection_type: d.connectionType,\n owner: d.owner,\n read_only: d.readOnly,\n comment: d.comment,\n environment_settings: d.environmentSettings,\n full_name: d.fullName,\n url: d.url,\n credential_type: d.credentialType,\n connection_id: d.connectionId,\n metastore_id: d.metastoreId,\n created_at: d.createdAt,\n created_by: d.createdBy,\n updated_at: d.updatedAt,\n updated_by: d.updatedBy,\n securable_type: d.securableType,\n provisioning_info: d.provisioningInfo,\n options: d.options,\n properties: d.properties,\n }));\n"],"mappings":";;;AAKA,MAAa,iBAAiB;CAC5B,yBAAyB;CACzB,OAAO;CACP,YAAY;CACZ,WAAW;CACX,UAAU;CACV,OAAO;CACP,WAAW;CACX,YAAY;CACZ,YAAY;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KAAK,EAAE,QAAQ,CAAC,UAAU;CAC1B,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,kBAAkB,EAAE,WAAW,8BAA8B,CAAC,UAAU;CACxE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU;CACpD,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU;CACxD,CAAC,CACD,WAAU,OAAM;CACf,UAAU,EAAE;CACZ,UAAU,EAAE;CACZ,MAAM,EAAE;CACR,iBAAiB,EAAE;CACnB,OAAO,EAAE;CACT,WAAW,EAAE;CACb,SAAS,EAAE;CACX,sBAAsB,EAAE;CACxB,WAAW,EAAE;CACb,KAAK,EAAE;CACP,iBAAiB,EAAE;CACnB,eAAe,EAAE;CACjB,cAAc,EAAE;CAChB,YAAY,EAAE;CACd,YAAY,EAAE;CACd,YAAY,EAAE;CACd,YAAY,EAAE;CACd,gBAAgB,EAAE;CAClB,mBAAmB,EAAE;CACrB,SAAS,EAAE;CACX,YAAY,EAAE;CACf,EAAE"}
@@ -15,19 +15,27 @@ import { resolve } from "@databricks/sdk-core/profiles";
15
15
  */
16
16
  async function resolveClientConfig(options) {
17
17
  const profile = await resolve(options.profileOptions);
18
- const host = options.host ?? profile.host;
18
+ const host = normalizeHost(options.host ?? profile.host);
19
19
  if (host === void 0) throw new Error("Host is required.");
20
- let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile }));
20
+ let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile: {
21
+ ...profile,
22
+ host
23
+ } }));
21
24
  if (options.timeout !== void 0) httpClient = new TimeoutHttpClient(httpClient, options.timeout);
22
25
  const accountId = options.accountId ?? profile.accountId;
23
26
  const workspaceId = options.workspaceId ?? profile.workspaceId;
24
27
  return {
25
- host: host.replace(/\/$/, ""),
28
+ host,
26
29
  httpClient,
27
30
  ...accountId !== void 0 && { accountId },
28
31
  ...workspaceId !== void 0 && { workspaceId }
29
32
  };
30
33
  }
34
+ function normalizeHost(host) {
35
+ const trimmed = host?.trim();
36
+ if (trimmed === void 0 || trimmed === "") return;
37
+ return (/^https?:\/\//i.test(trimmed) ? trimmed : `https://${trimmed}`).replace(/\/$/, "");
38
+ }
31
39
  /** Wraps an HttpClient and adds authentication headers to requests. */
32
40
  var AuthHttpClient = class {
33
41
  constructor(base, credentials) {
@@ -1 +1 @@
1
- {"version":3,"file":"transport.js","names":[],"sources":["../../src/v1/transport.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Credentials} from '@databricks/sdk-auth';\nimport {defaultCredentials} from '@databricks/sdk-auth/credentials';\nimport type {\n HttpClient,\n HttpRequest,\n HttpResponse,\n} from '@databricks/sdk-core/http';\nimport {newFetchHttpClient} from '@databricks/sdk-core/http';\nimport type {Profile} from '@databricks/sdk-core/profiles';\nimport {resolve} from '@databricks/sdk-core/profiles';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\n\n/**\n * The configuration a client needs to issue requests, resolved from\n * {@link ClientOptions} and a configuration profile.\n */\nexport interface ResolvedClientConfig {\n /** Host with any trailing slash removed. */\n host: string;\n\n /**\n * Default account ID for account-level paths that contain an account_id\n * segment. A request's own accountId still wins.\n */\n accountId?: string;\n\n /**\n * Workspace ID used to route workspace-level calls on unified hosts (SPOG).\n */\n workspaceId?: string;\n\n /** HTTP client with authentication, and any configured timeout, applied. */\n httpClient: HttpClient;\n}\n\n/**\n * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.\n *\n * A configuration profile is always resolved from the config file and\n * environment variables (per options.profileOptions); it supplies host,\n * accountId, workspaceId, and credentials wherever the caller did not set them\n * explicitly. Explicit options always take precedence.\n *\n * @throws if host is neither provided nor present in the resolved profile.\n */\nexport async function resolveClientConfig(\n options: ClientOptions\n): Promise<ResolvedClientConfig> {\n const profile: Profile = await resolve(options.profileOptions);\n\n const host = options.host ?? profile.host;\n if (host === undefined) {\n throw new Error('Host is required.');\n }\n\n // The provided httpClient (or the default fetch client) is the base wire;\n // authentication and the optional timeout are layered on top of it. The\n // default credential chain reuses the profile resolved above so that the\n // same profileOptions govern host and authentication alike.\n const base = options.httpClient ?? newFetchHttpClient();\n const credentials = options.credentials ?? defaultCredentials({profile});\n let httpClient: HttpClient = new AuthHttpClient(base, credentials);\n if (options.timeout !== undefined) {\n httpClient = new TimeoutHttpClient(httpClient, options.timeout);\n }\n\n const accountId = options.accountId ?? profile.accountId;\n const workspaceId = options.workspaceId ?? profile.workspaceId;\n\n return {\n host: host.replace(/\\/$/, ''),\n httpClient,\n ...(accountId !== undefined && {accountId}),\n ...(workspaceId !== undefined && {workspaceId}),\n };\n}\n\n/** Wraps an HttpClient and adds authentication headers to requests. */\nclass AuthHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly credentials: Credentials\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const authHeaders = await this.credentials.authHeaders();\n // Do not modify the original request.\n const headers = new Headers(request.headers);\n for (const h of authHeaders) {\n headers.set(h.key, h.value);\n }\n return this.base.send({...request, headers});\n }\n}\n\n/** Wraps an HttpClient and applies a default timeout to requests. */\nclass TimeoutHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly timeout: number\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const timeoutSignal = AbortSignal.timeout(this.timeout);\n const signal =\n request.signal !== undefined\n ? AbortSignal.any([request.sign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AAK;GAAC,GAAG;GAAS;GAAO,CAAC"}
1
+ {"version":3,"file":"transport.js","names":[],"sources":["../../src/v1/transport.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Credentials} from '@databricks/sdk-auth';\nimport {defaultCredentials} from '@databricks/sdk-auth/credentials';\nimport type {\n HttpClient,\n HttpRequest,\n HttpResponse,\n} from '@databricks/sdk-core/http';\nimport {newFetchHttpClient} from '@databricks/sdk-core/http';\nimport type {Profile} from '@databricks/sdk-core/profiles';\nimport {resolve} from '@databricks/sdk-core/profiles';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\n\n/**\n * The configuration a client needs to issue requests, resolved from\n * {@link ClientOptions} and a configuration profile.\n */\nexport interface ResolvedClientConfig {\n /** Host with any trailing slash removed. */\n host: string;\n\n /**\n * Default account ID for account-level paths that contain an account_id\n * segment. A request's own accountId still wins.\n */\n accountId?: string;\n\n /**\n * Workspace ID used to route workspace-level calls on unified hosts (SPOG).\n */\n workspaceId?: string;\n\n /** HTTP client with authentication, and any configured timeout, applied. */\n httpClient: HttpClient;\n}\n\n/**\n * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.\n *\n * A configuration profile is always resolved from the config file and\n * environment variables (per options.profileOptions); it supplies host,\n * accountId, workspaceId, and credentials wherever the caller did not set them\n * explicitly. Explicit options always take precedence.\n *\n * @throws if host is neither provided nor present in the resolved profile.\n */\nexport async function resolveClientConfig(\n options: ClientOptions\n): Promise<ResolvedClientConfig> {\n const profile: Profile = await resolve(options.profileOptions);\n\n const host = normalizeHost(options.host ?? profile.host);\n if (host === undefined) {\n throw new Error('Host is required.');\n }\n\n // The provided httpClient (or the default fetch client) is the base wire;\n // authentication and the optional timeout are layered on top of it. The\n // default credential chain reuses the profile resolved above so that the\n // same profileOptions govern host and authentication alike.\n const base = options.httpClient ?? newFetchHttpClient();\n const credentials =\n options.credentials ?? defaultCredentials({profile: {...profile, host}});\n let httpClient: HttpClient = new AuthHttpClient(base, credentials);\n if (options.timeout !== undefined) {\n httpClient = new TimeoutHttpClient(httpClient, options.timeout);\n }\n\n const accountId = options.accountId ?? profile.accountId;\n const workspaceId = options.workspaceId ?? profile.workspaceId;\n\n return {\n host,\n httpClient,\n ...(accountId !== undefined && {accountId}),\n ...(workspaceId !== undefined && {workspaceId}),\n };\n}\n\nfunction normalizeHost(host: string | undefined): string | undefined {\n const trimmed = host?.trim();\n if (trimmed === undefined || trimmed === '') {\n return undefined;\n }\n const absolute = /^https?:\\/\\//i.test(trimmed)\n ? trimmed\n : `https://${trimmed}`;\n return absolute.replace(/\\/$/, '');\n}\n\n/** Wraps an HttpClient and adds authentication headers to requests. */\nclass AuthHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly credentials: Credentials\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const authHeaders = await this.credentials.authHeaders();\n // Do not modify the original request.\n const headers = new Headers(request.headers);\n for (const h of authHeaders) {\n headers.set(h.key, h.value);\n }\n return this.base.send({...request, headers});\n }\n}\n\n/** Wraps an HttpClient and applies a default timeout to requests. */\nclass TimeoutHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly timeout: number\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const timeoutSignal = AbortSignal.timeout(this.timeout);\n const signal =\n request.signal !== undefined\n ? AbortSignal.any([request.signal, timeoutSignal])\n : timeoutSignal;\n return this.base.send({...request, signal});\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,eAAsB,oBACpB,SAC+B;CAC/B,MAAM,UAAmB,MAAM,QAAQ,QAAQ,eAAe;CAE9D,MAAM,OAAO,cAAc,QAAQ,QAAQ,QAAQ,KAAK;AACxD,KAAI,SAAS,OACX,OAAM,IAAI,MAAM,oBAAoB;CAUtC,IAAI,aAAyB,IAAI,eAHpB,QAAQ,cAAc,oBAAoB,EAErD,QAAQ,eAAe,mBAAmB,EAAC,SAAS;EAAC,GAAG;EAAS;EAAK,EAAC,CAAC,CACR;AAClE,KAAI,QAAQ,YAAY,OACtB,cAAa,IAAI,kBAAkB,YAAY,QAAQ,QAAQ;CAGjE,MAAM,YAAY,QAAQ,aAAa,QAAQ;CAC/C,MAAM,cAAc,QAAQ,eAAe,QAAQ;AAEnD,QAAO;EACL;EACA;EACA,GAAI,cAAc,UAAa,EAAC,WAAU;EAC1C,GAAI,gBAAgB,UAAa,EAAC,aAAY;EAC/C;;AAGH,SAAS,cAAc,MAA8C;CACnE,MAAM,UAAU,MAAM,MAAM;AAC5B,KAAI,YAAY,UAAa,YAAY,GACvC;AAKF,SAHiB,gBAAgB,KAAK,QAAQ,GAC1C,UACA,WAAW,WACC,QAAQ,OAAO,GAAG;;;AAIpC,IAAM,iBAAN,MAA2C;CACzC,YACE,AAAiB,MACjB,AAAiB,aACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,cAAc,MAAM,KAAK,YAAY,aAAa;EAExD,MAAM,UAAU,IAAI,QAAQ,QAAQ,QAAQ;AAC5C,OAAK,MAAM,KAAK,YACd,SAAQ,IAAI,EAAE,KAAK,EAAE,MAAM;AAE7B,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAQ,CAAC;;;;AAKhD,IAAM,oBAAN,MAA8C;CAC5C,YACE,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,gBAAgB,YAAY,QAAQ,KAAK,QAAQ;EACvD,MAAM,SACJ,QAAQ,WAAW,SACf,YAAY,IAAI,CAAC,QAAQ,QAAQ,cAAc,CAAC,GAChD;AACN,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-uc-connections",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "directory": "packages/uc/connections"
34
34
  },
35
35
  "dependencies": {
36
- "@databricks/sdk-auth": ">=0.49.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.49.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.49.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.51.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.51.0 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.51.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"