@databricks/sdk-forecasting 0.34.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/v1/model.js CHANGED
@@ -1,73 +1,61 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { z } from 'zod';
3
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
4
- export const ForecastingExperiment_State = {
5
- /** The forecasting experiment is pending and has not started yet. */
6
- PENDING: 'PENDING',
7
- /** The forecasting experiment is currently running. */
8
- RUNNING: 'RUNNING',
9
- /** The forecasting experiment has completed successfully. */
10
- SUCCEEDED: 'SUCCEEDED',
11
- /** The forecasting experiment has failed. */
12
- FAILED: 'FAILED',
13
- /** The forecasting experiment has been cancelled. */
14
- CANCELLED: 'CANCELLED',
1
+ import { z } from "zod";
2
+
3
+ //#region src/v1/model.ts
4
+ const ForecastingExperiment_State = {
5
+ PENDING: "PENDING",
6
+ RUNNING: "RUNNING",
7
+ SUCCEEDED: "SUCCEEDED",
8
+ FAILED: "FAILED",
9
+ CANCELLED: "CANCELLED"
15
10
  };
16
- export const unmarshalCreateForecastingExperimentResponseSchema = z
17
- .object({
18
- experiment_id: z.string().optional(),
19
- })
20
- .transform(d => ({
21
- experimentId: d.experiment_id,
11
+ const unmarshalCreateForecastingExperimentResponseSchema = z.object({ experiment_id: z.string().optional() }).transform((d) => ({ experimentId: d.experiment_id }));
12
+ const unmarshalForecastingExperimentSchema = z.object({
13
+ experiment_id: z.string().optional(),
14
+ experiment_page_url: z.string().optional(),
15
+ state: z.string().optional()
16
+ }).transform((d) => ({
17
+ experimentId: d.experiment_id,
18
+ experimentPageUrl: d.experiment_page_url,
19
+ state: d.state
22
20
  }));
23
- export const unmarshalForecastingExperimentSchema = z
24
- .object({
25
- experiment_id: z.string().optional(),
26
- experiment_page_url: z.string().optional(),
27
- state: z.string().optional(),
28
- })
29
- .transform(d => ({
30
- experimentId: d.experiment_id,
31
- experimentPageUrl: d.experiment_page_url,
32
- state: d.state,
33
- }));
34
- export const marshalCreateForecastingExperimentRequestSchema = z
35
- .object({
36
- trainDataPath: z.string().optional(),
37
- targetColumn: z.string().optional(),
38
- timeColumn: z.string().optional(),
39
- forecastGranularity: z.string().optional(),
40
- forecastHorizon: z.bigint().optional(),
41
- primaryMetric: z.string().optional(),
42
- trainingFrameworks: z.array(z.string()).optional(),
43
- experimentPath: z.string().optional(),
44
- maxRuntime: z.bigint().optional(),
45
- splitColumn: z.string().optional(),
46
- customWeightsColumn: z.string().optional(),
47
- registerTo: z.string().optional(),
48
- holidayRegions: z.array(z.string()).optional(),
49
- timeseriesIdentifierColumns: z.array(z.string()).optional(),
50
- predictionDataPath: z.string().optional(),
51
- includeFeatures: z.array(z.string()).optional(),
52
- futureFeatureDataPath: z.string().optional(),
53
- })
54
- .transform(d => ({
55
- train_data_path: d.trainDataPath,
56
- target_column: d.targetColumn,
57
- time_column: d.timeColumn,
58
- forecast_granularity: d.forecastGranularity,
59
- forecast_horizon: d.forecastHorizon,
60
- primary_metric: d.primaryMetric,
61
- training_frameworks: d.trainingFrameworks,
62
- experiment_path: d.experimentPath,
63
- max_runtime: d.maxRuntime,
64
- split_column: d.splitColumn,
65
- custom_weights_column: d.customWeightsColumn,
66
- register_to: d.registerTo,
67
- holiday_regions: d.holidayRegions,
68
- timeseries_identifier_columns: d.timeseriesIdentifierColumns,
69
- prediction_data_path: d.predictionDataPath,
70
- include_features: d.includeFeatures,
71
- future_feature_data_path: d.futureFeatureDataPath,
21
+ const marshalCreateForecastingExperimentRequestSchema = z.object({
22
+ trainDataPath: z.string().optional(),
23
+ targetColumn: z.string().optional(),
24
+ timeColumn: z.string().optional(),
25
+ forecastGranularity: z.string().optional(),
26
+ forecastHorizon: z.bigint().optional(),
27
+ primaryMetric: z.string().optional(),
28
+ trainingFrameworks: z.array(z.string()).optional(),
29
+ experimentPath: z.string().optional(),
30
+ maxRuntime: z.bigint().optional(),
31
+ splitColumn: z.string().optional(),
32
+ customWeightsColumn: z.string().optional(),
33
+ registerTo: z.string().optional(),
34
+ holidayRegions: z.array(z.string()).optional(),
35
+ timeseriesIdentifierColumns: z.array(z.string()).optional(),
36
+ predictionDataPath: z.string().optional(),
37
+ includeFeatures: z.array(z.string()).optional(),
38
+ futureFeatureDataPath: z.string().optional()
39
+ }).transform((d) => ({
40
+ train_data_path: d.trainDataPath,
41
+ target_column: d.targetColumn,
42
+ time_column: d.timeColumn,
43
+ forecast_granularity: d.forecastGranularity,
44
+ forecast_horizon: d.forecastHorizon,
45
+ primary_metric: d.primaryMetric,
46
+ training_frameworks: d.trainingFrameworks,
47
+ experiment_path: d.experimentPath,
48
+ max_runtime: d.maxRuntime,
49
+ split_column: d.splitColumn,
50
+ custom_weights_column: d.customWeightsColumn,
51
+ register_to: d.registerTo,
52
+ holiday_regions: d.holidayRegions,
53
+ timeseries_identifier_columns: d.timeseriesIdentifierColumns,
54
+ prediction_data_path: d.predictionDataPath,
55
+ include_features: d.includeFeatures,
56
+ future_feature_data_path: d.futureFeatureDataPath
72
57
  }));
58
+
59
+ //#endregion
60
+ export { ForecastingExperiment_State, marshalCreateForecastingExperimentRequestSchema, unmarshalCreateForecastingExperimentResponseSchema, unmarshalForecastingExperimentSchema };
73
61
  //# sourceMappingURL=model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,4FAA4F;AAC5F,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,qEAAqE;IACrE,OAAO,EAAE,SAAS;IAClB,uDAAuD;IACvD,OAAO,EAAE,SAAS;IAClB,6DAA6D;IAC7D,SAAS,EAAE,WAAW;IACtB,6CAA6C;IAC7C,MAAM,EAAE,QAAQ;IAChB,qDAAqD;IACrD,SAAS,EAAE,WAAW;CACd,CAAC;AAyEX,MA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C,cAAc;IACjC,6BAA6B,EAAE,CAAC,CAAC,2BAA2B;IAC5D,oBAAoB,EAAE,CAAC,CAAC,kBAAkB;IAC1C,gBAAgB,EAAE,CAAC,CAAC,eAAe;IACnC,wBAAwB,EAAE,CAAC,CAAC,qBAAqB;CAClD,CAAC,CAAC,CAAC"}
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 ForecastingExperiment_State = {\n /** The forecasting experiment is pending and has not started yet. */\n PENDING: 'PENDING',\n /** The forecasting experiment is currently running. */\n RUNNING: 'RUNNING',\n /** The forecasting experiment has completed successfully. */\n SUCCEEDED: 'SUCCEEDED',\n /** The forecasting experiment has failed. */\n FAILED: 'FAILED',\n /** The forecasting experiment has been cancelled. */\n CANCELLED: 'CANCELLED',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ForecastingExperiment_State =\n | (typeof ForecastingExperiment_State)[keyof typeof ForecastingExperiment_State]\n | (string & {});\n\nexport interface CreateForecastingExperimentRequest {\n /** The fully qualified path of a Unity Catalog table, formatted as catalog_name.schema_name.table_name, used as training data for the forecasting model. */\n trainDataPath?: string | undefined;\n /** The column in the input training table used as the prediction target for model training. The values in this column are used as the ground truth for model training. */\n targetColumn?: string | undefined;\n /** The column in the input training table that represents each row's timestamp. */\n timeColumn?: string | undefined;\n /**\n * The time interval between consecutive rows in the time series data.\n * Possible values include: '1 second', '1 minute', '5 minutes', '10 minutes', '15 minutes', '30 minutes', 'Hourly', 'Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly'.\n */\n forecastGranularity?: string | undefined;\n /** The number of time steps into the future to make predictions, calculated as a multiple of forecast_granularity. This value represents how far ahead the model should forecast. */\n forecastHorizon?: bigint | undefined;\n /** The evaluation metric used to optimize the forecasting model. */\n primaryMetric?: string | undefined;\n /** List of frameworks to include for model tuning. Possible values are 'Prophet', 'ARIMA', 'DeepAR'. An empty list includes all supported frameworks. */\n trainingFrameworks?: string[] | undefined;\n /** The path in the workspace to store the created experiment. */\n experimentPath?: string | undefined;\n /** The maximum duration for the experiment in minutes. The experiment stops automatically if it exceeds this limit. */\n maxRuntime?: bigint | undefined;\n /** // The column in the training table used for custom data splits. Values must be 'train', 'validate', or 'test'. */\n splitColumn?: string | undefined;\n /** The column in the training table used to customize weights for each time series. */\n customWeightsColumn?: string | undefined;\n /** The fully qualified path of a Unity Catalog model, formatted as catalog_name.schema_name.model_name, used to store the best model. */\n registerTo?: string | undefined;\n /** The region code(s) to automatically add holiday features. Currently supports only one region. */\n holidayRegions?: string[] | undefined;\n /** The column in the training table used to group the dataset for predicting individual time series. */\n timeseriesIdentifierColumns?: string[] | undefined;\n /** The fully qualified path of a Unity Catalog table, formatted as catalog_name.schema_name.table_name, used to store predictions. */\n predictionDataPath?: string | undefined;\n /**\n * Specifies the list of feature columns to include in model training. These columns must exist\n * in the training data and be of type string, numerical, or boolean. If not specified, no additional\n * features will be included.\n * Note: Certain columns are automatically handled:\n * - Automatically excluded: split_column, target_column, custom_weights_column.\n * - Automatically included: time_column.\n */\n includeFeatures?: string[] | undefined;\n /** The fully qualified path of a Unity Catalog table, formatted as catalog_name.schema_name.table_name, used to store future feature data for predictions. */\n futureFeatureDataPath?: string | undefined;\n}\n\nexport interface CreateForecastingExperimentResponse {\n /** The unique ID of the created forecasting experiment */\n experimentId?: string | undefined;\n}\n\n/** Represents a forecasting experiment with its unique identifier, URL, and state. */\nexport interface ForecastingExperiment {\n /** The unique ID for the forecasting experiment. */\n experimentId?: string | undefined;\n /** The URL to the forecasting experiment page. */\n experimentPageUrl?: string | undefined;\n /** The current state of the forecasting experiment. */\n state?: ForecastingExperiment_State | undefined;\n}\n\nexport interface GetForecastingExperimentRequest {\n /** The unique ID of a forecasting experiment */\n experimentId?: string | undefined;\n}\n\nexport const unmarshalCreateForecastingExperimentResponseSchema: z.ZodType<CreateForecastingExperimentResponse> =\n z\n .object({\n experiment_id: z.string().optional(),\n })\n .transform(d => ({\n experimentId: d.experiment_id,\n }));\n\nexport const unmarshalForecastingExperimentSchema: z.ZodType<ForecastingExperiment> =\n z\n .object({\n experiment_id: z.string().optional(),\n experiment_page_url: z.string().optional(),\n state: z.string().optional(),\n })\n .transform(d => ({\n experimentId: d.experiment_id,\n experimentPageUrl: d.experiment_page_url,\n state: d.state,\n }));\n\nexport const marshalCreateForecastingExperimentRequestSchema: z.ZodType = z\n .object({\n trainDataPath: z.string().optional(),\n targetColumn: z.string().optional(),\n timeColumn: z.string().optional(),\n forecastGranularity: z.string().optional(),\n forecastHorizon: z.bigint().optional(),\n primaryMetric: z.string().optional(),\n trainingFrameworks: z.array(z.string()).optional(),\n experimentPath: z.string().optional(),\n maxRuntime: z.bigint().optional(),\n splitColumn: z.string().optional(),\n customWeightsColumn: z.string().optional(),\n registerTo: z.string().optional(),\n holidayRegions: z.array(z.string()).optional(),\n timeseriesIdentifierColumns: z.array(z.string()).optional(),\n predictionDataPath: z.string().optional(),\n includeFeatures: z.array(z.string()).optional(),\n futureFeatureDataPath: z.string().optional(),\n })\n .transform(d => ({\n train_data_path: d.trainDataPath,\n target_column: d.targetColumn,\n time_column: d.timeColumn,\n forecast_granularity: d.forecastGranularity,\n forecast_horizon: d.forecastHorizon,\n primary_metric: d.primaryMetric,\n training_frameworks: d.trainingFrameworks,\n experiment_path: d.experimentPath,\n max_runtime: d.maxRuntime,\n split_column: d.splitColumn,\n custom_weights_column: d.customWeightsColumn,\n register_to: d.registerTo,\n holiday_regions: d.holidayRegions,\n timeseries_identifier_columns: d.timeseriesIdentifierColumns,\n prediction_data_path: d.predictionDataPath,\n include_features: d.includeFeatures,\n future_feature_data_path: d.futureFeatureDataPath,\n }));\n"],"mappings":";;;AAKA,MAAa,8BAA8B;CAEzC,SAAS;CAET,SAAS;CAET,WAAW;CAEX,QAAQ;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CACf,sBAAsB,EAAE;CACxB,kBAAkB,EAAE;CACpB,gBAAgB,EAAE;CAClB,qBAAqB,EAAE;CACvB,iBAAiB,EAAE;CACnB,aAAa,EAAE;CACf,cAAc,EAAE;CAChB,uBAAuB,EAAE;CACzB,aAAa,EAAE;CACf,iBAAiB,EAAE;CACnB,+BAA+B,EAAE;CACjC,sBAAsB,EAAE;CACxB,kBAAkB,EAAE;CACpB,0BAA0B,EAAE;CAC7B,EAAE"}
@@ -1,23 +1,25 @@
1
- import type { HttpClient } from '@databricks/sdk-core/http';
2
- import type { ClientOptions } from '@databricks/sdk-options/client';
1
+ import { HttpClient } from "@databricks/sdk-core/http";
2
+ import { ClientOptions } from "@databricks/sdk-options/client";
3
+
4
+ //#region src/v1/transport.d.ts
3
5
  /**
4
6
  * The configuration a client needs to issue requests, resolved from
5
7
  * {@link ClientOptions} and a configuration profile.
6
8
  */
7
- export interface ResolvedClientConfig {
8
- /** Host with any trailing slash removed. */
9
- host: string;
10
- /**
11
- * Default account ID for account-level paths that contain an account_id
12
- * segment. A request's own accountId still wins.
13
- */
14
- accountId?: string;
15
- /**
16
- * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
17
- */
18
- workspaceId?: string;
19
- /** HTTP client with authentication, and any configured timeout, applied. */
20
- httpClient: HttpClient;
9
+ interface ResolvedClientConfig {
10
+ /** Host with any trailing slash removed. */
11
+ host: string;
12
+ /**
13
+ * Default account ID for account-level paths that contain an account_id
14
+ * segment. A request's own accountId still wins.
15
+ */
16
+ accountId?: string;
17
+ /**
18
+ * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
19
+ */
20
+ workspaceId?: string;
21
+ /** HTTP client with authentication, and any configured timeout, applied. */
22
+ httpClient: HttpClient;
21
23
  }
22
24
  /**
23
25
  * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
@@ -29,5 +31,7 @@ export interface ResolvedClientConfig {
29
31
  *
30
32
  * @throws if host is neither provided nor present in the resolved profile.
31
33
  */
32
- export declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
34
+ declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
35
+ //#endregion
36
+ export { ResolvedClientConfig, resolveClientConfig };
33
37
  //# sourceMappingURL=transport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,4EAA4E;IAC5E,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,oBAAoB,CAAC,CA4B/B"}
1
+ {"version":3,"file":"transport.d.ts","names":[],"sources":["../../src/v1/transport.ts"],"mappings":";;;;;;AAkBA;;UAAiB,oBAAA;EAgBO;EAdtB,IAAA;EAMA;;;;EAAA,SAAA;EAQsB;AAaxB;;EAhBE,WAAA;EAiBS;EAdT,UAAA,EAAY,UAAA;AAAA;;;;;;;;;;;iBAaQ,mBAAA,CACpB,OAAA,EAAS,aAAA,GACR,OAAA,CAAQ,oBAAA"}
@@ -1,74 +1,65 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { defaultCredentials } from '@databricks/sdk-auth/credentials';
3
- import { newFetchHttpClient } from '@databricks/sdk-core/http';
4
- import { resolve } from '@databricks/sdk-core/profiles';
1
+ import { defaultCredentials } from "@databricks/sdk-auth/credentials";
2
+ import { newFetchHttpClient } from "@databricks/sdk-core/http";
3
+ import { resolve } from "@databricks/sdk-core/profiles";
4
+
5
+ //#region src/v1/transport.ts
5
6
  /**
6
- * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
7
- *
8
- * A configuration profile is always resolved from the config file and
9
- * environment variables (per options.profileOptions); it supplies host,
10
- * accountId, workspaceId, and credentials wherever the caller did not set them
11
- * explicitly. Explicit options always take precedence.
12
- *
13
- * @throws if host is neither provided nor present in the resolved profile.
14
- */
15
- export async function resolveClientConfig(options) {
16
- const profile = await resolve(options.profileOptions);
17
- const host = options.host ?? profile.host;
18
- if (host === undefined) {
19
- throw new Error('Host is required.');
20
- }
21
- // The provided httpClient (or the default fetch client) is the base wire;
22
- // authentication and the optional timeout are layered on top of it. The
23
- // default credential chain reuses the profile resolved above so that the
24
- // same profileOptions govern host and authentication alike.
25
- const base = options.httpClient ?? newFetchHttpClient();
26
- const credentials = options.credentials ?? defaultCredentials({ profile });
27
- let httpClient = new AuthHttpClient(base, credentials);
28
- if (options.timeout !== undefined) {
29
- httpClient = new TimeoutHttpClient(httpClient, options.timeout);
30
- }
31
- const accountId = options.accountId ?? profile.accountId;
32
- const workspaceId = options.workspaceId ?? profile.workspaceId;
33
- return {
34
- host: host.replace(/\/$/, ''),
35
- httpClient,
36
- ...(accountId !== undefined && { accountId }),
37
- ...(workspaceId !== undefined && { workspaceId }),
38
- };
7
+ * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
8
+ *
9
+ * A configuration profile is always resolved from the config file and
10
+ * environment variables (per options.profileOptions); it supplies host,
11
+ * accountId, workspaceId, and credentials wherever the caller did not set them
12
+ * explicitly. Explicit options always take precedence.
13
+ *
14
+ * @throws if host is neither provided nor present in the resolved profile.
15
+ */
16
+ async function resolveClientConfig(options) {
17
+ const profile = await resolve(options.profileOptions);
18
+ const host = options.host ?? profile.host;
19
+ if (host === void 0) throw new Error("Host is required.");
20
+ let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile }));
21
+ if (options.timeout !== void 0) httpClient = new TimeoutHttpClient(httpClient, options.timeout);
22
+ const accountId = options.accountId ?? profile.accountId;
23
+ const workspaceId = options.workspaceId ?? profile.workspaceId;
24
+ return {
25
+ host: host.replace(/\/$/, ""),
26
+ httpClient,
27
+ ...accountId !== void 0 && { accountId },
28
+ ...workspaceId !== void 0 && { workspaceId }
29
+ };
39
30
  }
40
31
  /** Wraps an HttpClient and adds authentication headers to requests. */
41
- class AuthHttpClient {
42
- base;
43
- credentials;
44
- constructor(base, credentials) {
45
- this.base = base;
46
- this.credentials = credentials;
47
- }
48
- async send(request) {
49
- const authHeaders = await this.credentials.authHeaders();
50
- // Do not modify the original request.
51
- const headers = new Headers(request.headers);
52
- for (const h of authHeaders) {
53
- headers.set(h.key, h.value);
54
- }
55
- return this.base.send({ ...request, headers });
56
- }
57
- }
32
+ var AuthHttpClient = class {
33
+ constructor(base, credentials) {
34
+ this.base = base;
35
+ this.credentials = credentials;
36
+ }
37
+ async send(request) {
38
+ const authHeaders = await this.credentials.authHeaders();
39
+ const headers = new Headers(request.headers);
40
+ for (const h of authHeaders) headers.set(h.key, h.value);
41
+ return this.base.send({
42
+ ...request,
43
+ headers
44
+ });
45
+ }
46
+ };
58
47
  /** Wraps an HttpClient and applies a default timeout to requests. */
59
- class TimeoutHttpClient {
60
- base;
61
- timeout;
62
- constructor(base, timeout) {
63
- this.base = base;
64
- this.timeout = timeout;
65
- }
66
- async send(request) {
67
- const timeoutSignal = AbortSignal.timeout(this.timeout);
68
- const signal = request.signal !== undefined
69
- ? AbortSignal.any([request.signal, timeoutSignal])
70
- : timeoutSignal;
71
- return this.base.send({ ...request, signal });
72
- }
73
- }
48
+ var TimeoutHttpClient = class {
49
+ constructor(base, timeout) {
50
+ this.base = base;
51
+ this.timeout = timeout;
52
+ }
53
+ async send(request) {
54
+ const timeoutSignal = AbortSignal.timeout(this.timeout);
55
+ const signal = request.signal !== void 0 ? AbortSignal.any([request.signal, timeoutSignal]) : timeoutSignal;
56
+ return this.base.send({
57
+ ...request,
58
+ signal
59
+ });
60
+ }
61
+ };
62
+
63
+ //#endregion
64
+ export { resolveClientConfig };
74
65
  //# sourceMappingURL=transport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAG/E,OAAO,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAMpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,+BAA+B,CAAC;AA0BtD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAsB;IAEtB,MAAM,OAAO,GAAY,MAAM,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE/D,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAC1C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,0EAA0E;IAC1E,wEAAwE;IACxE,yEAAyE;IACzE,4DAA4D;IAC5D,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,IAAI,kBAAkB,EAAE,CAAC;IACxD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,kBAAkB,CAAC,EAAC,OAAO,EAAC,CAAC,CAAC;IACzE,IAAI,UAAU,GAAe,IAAI,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACnE,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAClC,UAAU,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC;IACzD,MAAM,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K,SAAS;YAC1B,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;YAClD,CAAC,CAAC,aAAa,CAAC;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,GAAG,OAAO,EAAE,MAAM,EAAC,CAAC,CAAC;IAC9C,CAAC;CACF"}
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.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,QAAQ,QAAQ,QAAQ;AACrC,KAAI,SAAS,OACX,OAAM,IAAI,MAAM,oBAAoB;CAStC,IAAI,aAAyB,IAAI,eAFpB,QAAQ,cAAc,oBAAoB,EACnC,QAAQ,eAAe,mBAAmB,EAAC,SAAQ,CAAC,CACN;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,MAAM,KAAK,QAAQ,OAAO,GAAG;EAC7B;EACA,GAAI,cAAc,UAAa,EAAC,WAAU;EAC1C,GAAI,gBAAgB,UAAa,EAAC,aAAY;EAC/C;;;AAIH,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"}
@@ -1,34 +1,37 @@
1
- import type { HttpClient, HttpRequest } from '@databricks/sdk-core/http';
2
- import type { Logger } from '@databricks/sdk-core/logger';
3
- import type { CallOptions } from '@databricks/sdk-options/call';
4
- import type { LroOptions } from '@databricks/sdk-options/lro';
5
- import type { z } from 'zod';
6
- export interface HttpCallOptions {
7
- readonly request: HttpRequest;
8
- readonly httpClient: HttpClient;
9
- readonly logger: Logger;
1
+ import { Logger } from "@databricks/sdk-core/logger";
2
+ import { HttpClient, HttpRequest } from "@databricks/sdk-core/http";
3
+ import { z } from "zod";
4
+ import { CallOptions } from "@databricks/sdk-options/call";
5
+ import { LroOptions } from "@databricks/sdk-options/lro";
6
+
7
+ //#region src/v1/utils.d.ts
8
+ interface HttpCallOptions {
9
+ readonly request: HttpRequest;
10
+ readonly httpClient: HttpClient;
11
+ readonly logger: Logger;
10
12
  }
11
13
  /**
12
14
  * Translates public CallOptions to the internal Options shape accepted by
13
15
  * execute(). Even though the shapes match today, this isolates the public
14
16
  * API from the executor's internal type so they can diverge.
15
17
  */
16
- export declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
18
+ declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
17
19
  /**
18
20
  * Sentinel thrown by a polling call to signal that the operation has not
19
21
  * yet reached a terminal state. {@link executeWait} treats this error as
20
22
  * retriable; any other error aborts the wait.
21
23
  */
22
- export declare class StillRunningError extends Error {
23
- }
24
+ declare class StillRunningError extends Error {}
24
25
  /**
25
26
  * Polls until the call returns without throwing {@link StillRunningError}.
26
27
  * Abort and overall-deadline behavior come from the supplied LroOptions.
27
28
  */
28
- export declare function executeWait(call: (signal?: AbortSignal) => Promise<void>, options?: LroOptions): Promise<void>;
29
- export declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
30
- export declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
31
- export declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
32
- export declare function marshalRequest(data: unknown, schema: z.ZodType): string;
33
- export declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
29
+ declare function executeWait(call: (signal?: AbortSignal) => Promise<void>, options?: LroOptions): Promise<void>;
30
+ declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
31
+ declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
32
+ declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
33
+ declare function marshalRequest(data: unknown, schema: z.ZodType): string;
34
+ declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
35
+ //#endregion
36
+ export { HttpCallOptions, StillRunningError, buildHttpRequest, executeCall, executeHttpCall, executeWait, flattenQueryParams, marshalRequest, parseResponse };
34
37
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/v1/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AAE5D,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAO3B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,EAC7C,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,IAAI,CAAC,CASf;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAE/C;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,EAC7C,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CA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